From a9177bdbdbba60c86b22bda4a7061c31d3485e4a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 7 Jul 2024 00:20:17 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2675) --- alloydb/v1/alloydb-api.json | 43 +- alloydb/v1/alloydb-gen.go | 37 + alloydb/v1alpha/alloydb-api.json | 6 +- alloydb/v1alpha/alloydb-gen.go | 9 +- alloydb/v1beta/alloydb-api.json | 6 +- alloydb/v1beta/alloydb-gen.go | 9 +- backupdr/v1/backupdr-api.json | 2442 +++++++- backupdr/v1/backupdr-gen.go | 5152 +++++++++++++++-- container/v1beta1/container-api.json | 47 +- container/v1beta1/container-gen.go | 75 + gkebackup/v1/gkebackup-api.json | 10 +- gkebackup/v1/gkebackup-gen.go | 8 +- networksecurity/v1/networksecurity-api.json | 20 +- networksecurity/v1/networksecurity-gen.go | 46 +- .../v1beta1/networksecurity-api.json | 20 +- .../v1beta1/networksecurity-gen.go | 46 +- 16 files changed, 7329 insertions(+), 647 deletions(-) diff --git a/alloydb/v1/alloydb-api.json b/alloydb/v1/alloydb-api.json index 632b39ebf7b..b793566b0e6 100644 --- a/alloydb/v1/alloydb-api.json +++ b/alloydb/v1/alloydb-api.json @@ -1489,7 +1489,7 @@ } } }, - "revision": "20240612", + "revision": "20240627", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -1968,6 +1968,25 @@ "readOnly": true, "type": "string" }, + "subscriptionType": { + "description": "Optional. Subscription type of the cluster.", + "enum": [ + "SUBSCRIPTION_TYPE_UNSPECIFIED", + "STANDARD", + "TRIAL" + ], + "enumDescriptions": [ + "This is an unknown Subscription type (By default, Subscription Type is STANDARD)", + "Standard subscription.", + "Trial subscription." + ], + "type": "string" + }, + "trialMetadata": { + "$ref": "TrialMetadata", + "description": "Output only. Metadata for free trial clusters", + "readOnly": true + }, "uid": { "description": "Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.", "readOnly": true, @@ -4577,6 +4596,28 @@ }, "type": "object" }, + "TrialMetadata": { + "description": "Contains information and all metadata related to TRIAL clusters.", + "id": "TrialMetadata", + "properties": { + "endTime": { + "description": "End time of the trial cluster.", + "format": "google-datetime", + "type": "string" + }, + "startTime": { + "description": "start time of the trial cluster.", + "format": "google-datetime", + "type": "string" + }, + "upgradeTime": { + "description": "Upgrade time of trial cluster to Standard cluster.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "User": { "description": "Message describing User object.", "id": "User", diff --git a/alloydb/v1/alloydb-gen.go b/alloydb/v1/alloydb-gen.go index 2047066ca17..89d0c9c20be 100644 --- a/alloydb/v1/alloydb-gen.go +++ b/alloydb/v1/alloydb-gen.go @@ -652,6 +652,16 @@ type Cluster struct { // cluster are not allowed while the cluster is in this state. // "PROMOTING" - The cluster is being promoted. State string `json:"state,omitempty"` + // SubscriptionType: Optional. Subscription type of the cluster. + // + // Possible values: + // "SUBSCRIPTION_TYPE_UNSPECIFIED" - This is an unknown Subscription type (By + // default, Subscription Type is STANDARD) + // "STANDARD" - Standard subscription. + // "TRIAL" - Trial subscription. + SubscriptionType string `json:"subscriptionType,omitempty"` + // TrialMetadata: Output only. Metadata for free trial clusters + TrialMetadata *TrialMetadata `json:"trialMetadata,omitempty"` // Uid: Output only. The system-generated UID of the resource. The UID is // assigned when the resource is created, and it is retained until it is // deleted. @@ -3524,6 +3534,33 @@ func (s *TimeBasedRetention) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// TrialMetadata: Contains information and all metadata related to TRIAL +// clusters. +type TrialMetadata struct { + // EndTime: End time of the trial cluster. + EndTime string `json:"endTime,omitempty"` + // StartTime: start time of the trial cluster. + StartTime string `json:"startTime,omitempty"` + // UpgradeTime: Upgrade time of trial cluster to Standard cluster. + UpgradeTime string `json:"upgradeTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EndTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *TrialMetadata) MarshalJSON() ([]byte, error) { + type NoMethod TrialMetadata + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // User: Message describing User object. type User struct { // DatabaseRoles: Optional. List of database roles this user has. The database diff --git a/alloydb/v1alpha/alloydb-api.json b/alloydb/v1alpha/alloydb-api.json index 2b5629bc8a8..a387171a603 100644 --- a/alloydb/v1alpha/alloydb-api.json +++ b/alloydb/v1alpha/alloydb-api.json @@ -1489,7 +1489,7 @@ } } }, - "revision": "20240612", + "revision": "20240627", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -2864,7 +2864,7 @@ "id": "ObservabilityInstanceConfig", "properties": { "enabled": { - "description": "Observability feature status for an instance. This is a read-only flag and modifiable only by producer API. This flag is turned \"off\" by default.", + "description": "Observability feature status for an instance. This flag is turned \"off\" by default.", "type": "boolean" }, "maxQueryStringLength": { @@ -2877,7 +2877,7 @@ "type": "boolean" }, "queryPlansPerMinute": { - "description": "Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 to 20 is considered valid.", + "description": "Number of query execution plans captured by Insights per minute for all queries combined. The default value is 200. Any integer between 0 to 200 is considered valid.", "format": "int32", "type": "integer" }, diff --git a/alloydb/v1alpha/alloydb-gen.go b/alloydb/v1alpha/alloydb-gen.go index 5153fbb1ef7..1be0ed95630 100644 --- a/alloydb/v1alpha/alloydb-gen.go +++ b/alloydb/v1alpha/alloydb-gen.go @@ -1750,9 +1750,8 @@ func (s *Node) MarshalJSON() ([]byte, error) { // ObservabilityInstanceConfig: Observability Instance specific configuration. type ObservabilityInstanceConfig struct { - // Enabled: Observability feature status for an instance. This is a read-only - // flag and modifiable only by producer API. This flag is turned "off" by - // default. + // Enabled: Observability feature status for an instance. This flag is turned + // "off" by default. Enabled bool `json:"enabled,omitempty"` // MaxQueryStringLength: Query string length. The default value is 10k. MaxQueryStringLength int64 `json:"maxQueryStringLength,omitempty"` @@ -1760,8 +1759,8 @@ type ObservabilityInstanceConfig struct { // flag is turned "off" by default. PreserveComments bool `json:"preserveComments,omitempty"` // QueryPlansPerMinute: Number of query execution plans captured by Insights - // per minute for all queries combined. The default value is 5. Any integer - // between 0 to 20 is considered valid. + // per minute for all queries combined. The default value is 200. Any integer + // between 0 to 200 is considered valid. QueryPlansPerMinute int64 `json:"queryPlansPerMinute,omitempty"` // RecordApplicationTags: Record application tags for an instance. This flag is // turned "off" by default. diff --git a/alloydb/v1beta/alloydb-api.json b/alloydb/v1beta/alloydb-api.json index 7152ea747f5..b1627085799 100644 --- a/alloydb/v1beta/alloydb-api.json +++ b/alloydb/v1beta/alloydb-api.json @@ -1486,7 +1486,7 @@ } } }, - "revision": "20240612", + "revision": "20240627", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -2840,7 +2840,7 @@ "id": "ObservabilityInstanceConfig", "properties": { "enabled": { - "description": "Observability feature status for an instance. This is a read-only flag and modifiable only by producer API. This flag is turned \"off\" by default.", + "description": "Observability feature status for an instance. This flag is turned \"off\" by default.", "type": "boolean" }, "maxQueryStringLength": { @@ -2853,7 +2853,7 @@ "type": "boolean" }, "queryPlansPerMinute": { - "description": "Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 to 20 is considered valid.", + "description": "Number of query execution plans captured by Insights per minute for all queries combined. The default value is 200. Any integer between 0 to 200 is considered valid.", "format": "int32", "type": "integer" }, diff --git a/alloydb/v1beta/alloydb-gen.go b/alloydb/v1beta/alloydb-gen.go index ef4ccfdff90..aef08884dde 100644 --- a/alloydb/v1beta/alloydb-gen.go +++ b/alloydb/v1beta/alloydb-gen.go @@ -1740,9 +1740,8 @@ func (s *Node) MarshalJSON() ([]byte, error) { // ObservabilityInstanceConfig: Observability Instance specific configuration. type ObservabilityInstanceConfig struct { - // Enabled: Observability feature status for an instance. This is a read-only - // flag and modifiable only by producer API. This flag is turned "off" by - // default. + // Enabled: Observability feature status for an instance. This flag is turned + // "off" by default. Enabled bool `json:"enabled,omitempty"` // MaxQueryStringLength: Query string length. The default value is 10k. MaxQueryStringLength int64 `json:"maxQueryStringLength,omitempty"` @@ -1750,8 +1749,8 @@ type ObservabilityInstanceConfig struct { // flag is turned "off" by default. PreserveComments bool `json:"preserveComments,omitempty"` // QueryPlansPerMinute: Number of query execution plans captured by Insights - // per minute for all queries combined. The default value is 5. Any integer - // between 0 to 20 is considered valid. + // per minute for all queries combined. The default value is 200. Any integer + // between 0 to 200 is considered valid. QueryPlansPerMinute int64 `json:"queryPlansPerMinute,omitempty"` // RecordApplicationTags: Record application tags for an instance. This flag is // turned "off" by default. diff --git a/backupdr/v1/backupdr-api.json b/backupdr/v1/backupdr-api.json index ea21ddd74b0..3dcd04ca84d 100644 --- a/backupdr/v1/backupdr-api.json +++ b/backupdr/v1/backupdr-api.json @@ -177,6 +177,727 @@ } }, "resources": { + "backupVaults": { + "methods": { + "create": { + "description": "", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults", + "httpMethod": "POST", + "id": "backupdr.projects.locations.backupVaults.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "backupVaultId": { + "description": "Required. ID of the requesting object If auto-generating ID server-side, remove this field and backup_vault_id from the method_signature of Create RPC", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Value for parent.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "validateOnly": { + "description": "Optional. Only validate the request, but do not perform mutations. The default is 'false'.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+parent}/backupVaults", + "request": { + "$ref": "BackupVault" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a BackupVault.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}", + "httpMethod": "DELETE", + "id": "backupdr.projects.locations.backupVaults.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "allowMissing": { + "description": "Optional. If true and the BackupVault is not found, the request will succeed but no action will be taken.", + "location": "query", + "type": "boolean" + }, + "etag": { + "description": "The current etag of the backup vault. If an etag is provided and does not match the current etag of the connection, deletion will be blocked.", + "location": "query", + "type": "string" + }, + "force": { + "description": "Optional. If set to true, any data source from this backup vault will also be deleted.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. Name of the resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "validateOnly": { + "description": "Optional. Only validate the request, but do not perform mutations. The default is 'false'.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "fetchUsable": { + "description": "FetchUsableBackupVaults lists usable BackupVaults in a given project and location. Usable BackupVault are the ones that user has backupdr.backupVaults.get permission.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults:fetchUsable", + "httpMethod": "GET", + "id": "backupdr.projects.locations.backupVaults.fetchUsable", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filtering results.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Hint for how to order the results.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results the server should return.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The project and location for which to retrieve backupvault stores information, in the format 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR, locations map to Google Cloud regions, for example **us-central1**. To retrieve backupvault stores for all locations, use \"-\" for the '{location}' value.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/backupVaults:fetchUsable", + "response": { + "$ref": "FetchUsableBackupVaultsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a BackupVault.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}", + "httpMethod": "GET", + "id": "backupdr.projects.locations.backupVaults.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the backupvault store resource name, in the format 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}'", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "BackupVault" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists BackupVaults in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults", + "httpMethod": "GET", + "id": "backupdr.projects.locations.backupVaults.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filtering results.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Hint for how to order the results.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results the server should return.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The project and location for which to retrieve backupvault stores information, in the format 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR, locations map to Google Cloud regions, for example **us-central1**. To retrieve backupvault stores for all locations, use \"-\" for the '{location}' value.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/backupVaults", + "response": { + "$ref": "ListBackupVaultsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the settings of a BackupVault.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}", + "httpMethod": "PATCH", + "id": "backupdr.projects.locations.backupVaults.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The resource name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. Field mask is used to specify the fields to be overwritten in the BackupVault resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then the request will fail.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "validateOnly": { + "description": "Optional. Only validate the request, but do not perform mutations. The default is 'false'.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "BackupVault" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns the caller's permissions on a BackupVault resource. A caller is not required to have Google IAM permission to make this request.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}:testIamPermissions", + "httpMethod": "POST", + "id": "backupdr.projects.locations.backupVaults.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "dataSources": { + "methods": { + "abandonBackup": { + "description": "Internal only. Abandons a backup.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}:abandonBackup", + "httpMethod": "POST", + "id": "backupdr.projects.locations.backupVaults.dataSources.abandonBackup", + "parameterOrder": [ + "dataSource" + ], + "parameters": { + "dataSource": { + "description": "Required. The resource name of the instance, in the format 'projects/*/locations/*/backupVaults/*/dataSources/'.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/dataSources/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+dataSource}:abandonBackup", + "request": { + "$ref": "AbandonBackupRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "fetchAccessToken": { + "description": "Internal only. Fetch access token for a given data source.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}:fetchAccessToken", + "httpMethod": "POST", + "id": "backupdr.projects.locations.backupVaults.dataSources.fetchAccessToken", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name for the location for which static IPs should be returned. Must be in the format 'projects/*/locations/*/backupVaults/*/dataSources'.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/dataSources/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:fetchAccessToken", + "request": { + "$ref": "FetchAccessTokenRequest" + }, + "response": { + "$ref": "FetchAccessTokenResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "finalizeBackup": { + "description": "Internal only. Finalize a backup that was started by a call to InitiateBackup.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}:finalizeBackup", + "httpMethod": "POST", + "id": "backupdr.projects.locations.backupVaults.dataSources.finalizeBackup", + "parameterOrder": [ + "dataSource" + ], + "parameters": { + "dataSource": { + "description": "Required. The resource name of the instance, in the format 'projects/*/locations/*/backupVaults/*/dataSources/'.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/dataSources/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+dataSource}:finalizeBackup", + "request": { + "$ref": "FinalizeBackupRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a DataSource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}", + "httpMethod": "GET", + "id": "backupdr.projects.locations.backupVaults.dataSources.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the data source resource name, in the format 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}/dataSource/{resource_name}'", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/dataSources/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "DataSource" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "initiateBackup": { + "description": "Internal only. Initiates a backup.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}:initiateBackup", + "httpMethod": "POST", + "id": "backupdr.projects.locations.backupVaults.dataSources.initiateBackup", + "parameterOrder": [ + "dataSource" + ], + "parameters": { + "dataSource": { + "description": "Required. The resource name of the instance, in the format 'projects/*/locations/*/backupVaults/*/dataSources/'.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/dataSources/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+dataSource}:initiateBackup", + "request": { + "$ref": "InitiateBackupRequest" + }, + "response": { + "$ref": "InitiateBackupResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists DataSources in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources", + "httpMethod": "GET", + "id": "backupdr.projects.locations.backupVaults.dataSources.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filtering results.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Hint for how to order the results.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results the server should return.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The project and location for which to retrieve data sources information, in the format 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR, locations map to Google Cloud regions, for example **us-central1**. To retrieve data sources for all locations, use \"-\" for the '{location}' value.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/dataSources", + "response": { + "$ref": "ListDataSourcesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the settings of a DataSource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}", + "httpMethod": "PATCH", + "id": "backupdr.projects.locations.backupVaults.dataSources.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "allowMissing": { + "description": "Optional. Enable upsert.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Output only. The resource name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/dataSources/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. Field mask is used to specify the fields to be overwritten in the DataSource resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then the request will fail.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "DataSource" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "remove": { + "description": "Deletes a DataSource. This is a custom method instead of a standard delete method because external clients will not delete DataSources except for BackupDR backup appliances.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}:remove", + "httpMethod": "POST", + "id": "backupdr.projects.locations.backupVaults.dataSources.remove", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/dataSources/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:remove", + "request": { + "$ref": "RemoveDataSourceRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setInternalStatus": { + "description": "Sets the internal status of a DataSource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}:setInternalStatus", + "httpMethod": "POST", + "id": "backupdr.projects.locations.backupVaults.dataSources.setInternalStatus", + "parameterOrder": [ + "dataSource" + ], + "parameters": { + "dataSource": { + "description": "Required. The resource name of the instance, in the format 'projects/*/locations/*/backupVaults/*/dataSources/'.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/dataSources/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+dataSource}:setInternalStatus", + "request": { + "$ref": "SetInternalStatusRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "backups": { + "methods": { + "delete": { + "description": "Deletes a Backup.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}/backups/{backupsId}", + "httpMethod": "DELETE", + "id": "backupdr.projects.locations.backupVaults.dataSources.backups.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/dataSources/[^/]+/backups/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a Backup.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}/backups/{backupsId}", + "httpMethod": "GET", + "id": "backupdr.projects.locations.backupVaults.dataSources.backups.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the data source resource name, in the format 'projects/{project_id}/locations/{location}/backupVaults/{backupVault}/dataSources/{datasource}/backups/{backup}'", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/dataSources/[^/]+/backups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Backup" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Backups in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}/backups", + "httpMethod": "GET", + "id": "backupdr.projects.locations.backupVaults.dataSources.backups.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filtering results.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Hint for how to order the results.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results the server should return.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The project and location for which to retrieve backup information, in the format 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR, locations map to Google Cloud regions, for example **us-central1**. To retrieve data sources for all locations, use \"-\" for the '{location}' value.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/dataSources/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/backups", + "response": { + "$ref": "ListBackupsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the settings of a Backup.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}/backups/{backupsId}", + "httpMethod": "PATCH", + "id": "backupdr.projects.locations.backupVaults.dataSources.backups.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Name of the resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/dataSources/[^/]+/backups/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. Field mask is used to specify the fields to be overwritten in the Backup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then the request will fail.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "Backup" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + }, "managementServers": { "methods": { "create": { @@ -194,7 +915,7 @@ "type": "string" }, "parent": { - "description": "Required. The management server project and location in the format `projects/{project_id}/locations/{location}`. In Cloud Backup and DR locations map to GCP regions, for example **us-central1**.", + "description": "Required. The management server project and location in the format 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR locations map to Google Cloud regions, for example **us-central1**.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, @@ -257,7 +978,7 @@ ], "parameters": { "name": { - "description": "Required. Name of the management server resource name, in the format `projects/{project_id}/locations/{location}/managementServers/{resource_name}`", + "description": "Required. Name of the management server resource name, in the format 'projects/{project_id}/locations/{location}/managementServers/{resource_name}'", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/managementServers/[^/]+$", "required": true, @@ -334,7 +1055,7 @@ "type": "string" }, "parent": { - "description": "Required. The project and location for which to retrieve management servers information, in the format `projects/{project_id}/locations/{location}`. In Cloud BackupDR, locations map to GCP regions, for example **us-central1**. To retrieve management servers for all locations, use \"-\" for the `{location}` value.", + "description": "Required. The project and location for which to retrieve management servers information, in the format 'projects/{project_id}/locations/{location}'. In Cloud BackupDR, locations map to Google Cloud regions, for example **us-central1**. To retrieve management servers for all locations, use \"-\" for the '{location}' value.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, @@ -535,110 +1256,1343 @@ } } }, - "revision": "20240522", + "revision": "20240626", "rootUrl": "https://backupdr.googleapis.com/", "schemas": { - "AuditConfig": { - "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.", - "id": "AuditConfig", + "AbandonBackupRequest": { + "description": "request message for AbandonBackup.", + "id": "AbandonBackupRequest", "properties": { - "auditLogConfigs": { - "description": "The configuration for logging of each type of permission.", + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "type": "string" + } + }, + "type": "object" + }, + "AcceleratorConfig": { + "description": "A specification of the type and number of accelerator cards attached to the instance.", + "id": "AcceleratorConfig", + "properties": { + "acceleratorCount": { + "description": "Optional. The number of the guest accelerator cards exposed to this instance.", + "format": "int32", + "type": "integer" + }, + "acceleratorType": { + "description": "Optional. Full or partial URL of the accelerator type resource to attach to this instance.", + "type": "string" + } + }, + "type": "object" + }, + "AccessConfig": { + "description": "An access configuration attached to an instance's network interface. Only one access config per instance is supported.", + "id": "AccessConfig", + "properties": { + "externalIpv6": { + "description": "Optional. The external IPv6 address of this access configuration.", + "type": "string" + }, + "externalIpv6PrefixLength": { + "description": "Optional. The prefix length of the external IPv6 range.", + "format": "int32", + "type": "integer" + }, + "name": { + "description": "Optional. The name of this access configuration.", + "type": "string" + }, + "natIP": { + "description": "Optional. The external IP address of this access configuration.", + "type": "string" + }, + "networkTier": { + "description": "Optional. This signifies the networking tier used for configuring this access", + "enum": [ + "NETWORK_TIER_UNSPECIFIED", + "PREMIUM", + "STANDARD" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "High quality, Google-grade network tier, support for all networking products.", + "Public internet quality, only limited support for other networking products." + ], + "type": "string" + }, + "publicPtrDomainName": { + "description": "Optional. The DNS domain name for the public PTR record.", + "type": "string" + }, + "setPublicPtr": { + "description": "Optional. Specifies whether a public DNS 'PTR' record should be created to map the external IP address of the instance to a DNS domain name.", + "type": "boolean" + }, + "type": { + "description": "Optional. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.", + "enum": [ + "ACCESS_TYPE_UNSPECIFIED", + "ONE_TO_ONE_NAT", + "DIRECT_IPV6" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "ONE_TO_ONE_NAT", + "Direct IPv6 access." + ], + "type": "string" + } + }, + "type": "object" + }, + "AliasIpRange": { + "description": "An alias IP range attached to an instance's network interface.", + "id": "AliasIpRange", + "properties": { + "ipCidrRange": { + "description": "Optional. The IP alias ranges to allocate for this interface.", + "type": "string" + }, + "subnetworkRangeName": { + "description": "Optional. The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.", + "type": "string" + } + }, + "type": "object" + }, + "AttachedDisk": { + "description": "An instance-attached disk resource.", + "id": "AttachedDisk", + "properties": { + "autoDelete": { + "description": "Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).", + "type": "boolean" + }, + "boot": { + "description": "Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.", + "type": "boolean" + }, + "deviceName": { + "description": "Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)", + "type": "string" + }, + "diskEncryptionKey": { + "$ref": "CustomerEncryptionKey", + "description": "Optional. Encrypts or decrypts a disk using a customer-supplied encryption key." + }, + "diskInterface": { + "description": "Optional. Specifies the disk interface to use for attaching this disk.", + "enum": [ + "DISK_INTERFACE_UNSPECIFIED", + "SCSI", + "NVME", + "NVDIMM", + "ISCSI" + ], + "enumDescriptions": [ + "Default value, which is unused.", + "SCSI Disk Interface.", + "NVME Disk Interface.", + "NVDIMM Disk Interface.", + "ISCSI Disk Interface." + ], + "type": "string" + }, + "diskSizeGb": { + "description": "Optional. The size of the disk in GB.", + "format": "int64", + "type": "string" + }, + "diskType": { + "description": "Optional. Specifies the type of the disk.", + "enum": [ + "DISK_TYPE_UNSPECIFIED", + "SCRATCH", + "PERSISTENT" + ], + "enumDescriptions": [ + "Default value, which is unused.", + "A scratch disk type.", + "A persistent disk type." + ], + "type": "string" + }, + "guestOsFeature": { + "description": "Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.", + "items": { + "$ref": "GuestOsFeature" + }, + "type": "array" + }, + "index": { + "description": "Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.", + "format": "int64", + "type": "string" + }, + "initializeParams": { + "$ref": "InitializeParams", + "description": "Optional. Specifies the parameters to initialize this disk." + }, + "kind": { + "description": "Optional. Type of the resource.", + "type": "string" + }, + "license": { + "description": "Optional. Any valid publicly visible licenses.", + "items": { + "type": "string" + }, + "type": "array" + }, + "mode": { + "description": "Optional. The mode in which to attach this disk.", + "enum": [ + "DISK_MODE_UNSPECIFIED", + "READ_WRITE", + "READ_ONLY", + "LOCKED" + ], + "enumDescriptions": [ + "Default value, which is unused.", + "Attaches this disk in read-write mode. Only one virtual machine at a time can be attached to a disk in read-write mode.", + "Attaches this disk in read-only mode. Multiple virtual machines can use a disk in read-only mode at a time.", + "The disk is locked for administrative reasons. Nobody else can use the disk. This mode is used (for example) when taking a snapshot of a disk to prevent mounting the disk while it is being snapshotted." + ], + "type": "string" + }, + "savedState": { + "description": "Optional. Output only. The state of the disk.", + "enum": [ + "DISK_SAVED_STATE_UNSPECIFIED", + "PRESERVED" + ], + "enumDescriptions": [ + "Default Disk state has not been preserved.", + "Disk state has been preserved." + ], + "readOnly": true, + "type": "string" + }, + "source": { + "description": "Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.", + "type": "string" + } + }, + "type": "object" + }, + "AuditConfig": { + "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.", + "id": "AuditConfig", + "properties": { + "auditLogConfigs": { + "description": "The configuration for logging of each type of permission.", + "items": { + "$ref": "AuditLogConfig" + }, + "type": "array" + }, + "service": { + "description": "Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.", + "type": "string" + } + }, + "type": "object" + }, + "AuditLogConfig": { + "description": "Provides the configuration for logging a type of permissions. Example: { \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.", + "id": "AuditLogConfig", + "properties": { + "exemptedMembers": { + "description": "Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.", + "items": { + "type": "string" + }, + "type": "array" + }, + "logType": { + "description": "The log type that this config enables.", + "enum": [ + "LOG_TYPE_UNSPECIFIED", + "ADMIN_READ", + "DATA_WRITE", + "DATA_READ" + ], + "enumDescriptions": [ + "Default case. Should never be this.", + "Admin reads. Example: CloudIAM getIamPolicy", + "Data writes. Example: CloudSQL Users create", + "Data reads. Example: CloudSQL Users list" + ], + "type": "string" + } + }, + "type": "object" + }, + "Backup": { + "description": "Message describing a Backup object.", + "id": "Backup", + "properties": { + "backupApplianceBackupProperties": { + "$ref": "BackupApplianceBackupProperties", + "readOnly": true + }, + "backupApplianceLocks": { + "description": "Optional. The list of BackupLocks taken by the accessor Backup Appliance.", + "items": { + "$ref": "BackupLock" + }, + "type": "array" + }, + "backupType": { + "enum": [ + "BACKUP_TYPE_UNSPECIFIED", + "SCHEDULED", + "ON_DEMAND" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "readOnly": true, + "type": "string" + }, + "computeInstanceBackupProperties": { + "$ref": "ComputeInstanceBackupProperties", + "readOnly": true + }, + "consistencyTime": { + "description": "Output only. The point in time when this backup was captured from the source.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "createTime": { + "description": "Output only. The time when the instance was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Output only. The description of the Backup instance (2048 characters or less).", + "readOnly": true, + "type": "string" + }, + "enforcedRetentionEndTime": { + "description": "Optional. The backup can not be deleted before this time.", + "format": "google-datetime", + "type": "string" + }, + "etag": { + "description": "Optional. Server specified ETag to prevent updates from overwriting each other.", + "type": "string" + }, + "expireTime": { + "description": "Optional. When this backup is automatically expired.", + "format": "google-datetime", + "type": "string" + }, + "gcpBackupPlanInfo": { + "$ref": "GCPBackupPlanInfo", + "description": "Output only. Configuration for a Google Cloud resource.", + "readOnly": true + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Resource labels to represent user provided metadata. No labels currently defined.", + "type": "object" + }, + "name": { + "description": "Output only. Name of the resource.", + "readOnly": true, + "type": "string" + }, + "resourceSizeBytes": { + "description": "Output only. source resource size in bytes at the time of the backup.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "serviceLocks": { + "description": "Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.", + "items": { + "$ref": "BackupLock" + }, + "readOnly": true, + "type": "array" + }, + "state": { + "description": "Output only. The Backup resource instance state.", + "enum": [ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "DELETING", + "ERROR" + ], + "enumDescriptions": [ + "State not set.", + "The backup is being created.", + "The backup has been created and is fully usable.", + "The backup is being deleted.", + "The backup is experiencing an issue and might be unusable." + ], + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. The time when the instance was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "BackupApplianceBackupConfig": { + "description": "BackupApplianceBackupConfig captures the backup configuration for applications that are protected by Backup Appliances.", + "id": "BackupApplianceBackupConfig", + "properties": { + "applicationName": { + "description": "The name of the application.", + "type": "string" + }, + "backupApplianceId": { + "description": "The ID of the backup appliance.", + "format": "int64", + "type": "string" + }, + "backupApplianceName": { + "description": "The name of the backup appliance.", + "type": "string" + }, + "hostName": { + "description": "The name of the host where the application is running.", + "type": "string" + }, + "slaId": { + "description": "The ID of the SLA of this application.", + "format": "int64", + "type": "string" + }, + "slpName": { + "description": "The name of the SLP associated with the application.", + "type": "string" + }, + "sltName": { + "description": "The name of the SLT associated with the application.", + "type": "string" + } + }, + "type": "object" + }, + "BackupApplianceBackupProperties": { + "description": "BackupApplianceBackupProperties represents BackupDR backup appliance's properties.", + "id": "BackupApplianceBackupProperties", + "properties": { + "finalizeTime": { + "description": "Output only. The time when this backup object was finalized (if none, backup is not finalized).", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "generationId": { + "description": "Output only. The numeric generation ID of the backup (monotonically increasing).", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "recoveryRangeEndTime": { + "description": "Optional. The latest timestamp of data available in this Backup.", + "format": "google-datetime", + "type": "string" + }, + "recoveryRangeStartTime": { + "description": "Optional. The earliest timestamp of data available in this Backup.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "BackupApplianceLockInfo": { + "description": "BackupApplianceLockInfo contains metadata about the backupappliance that created the lock.", + "id": "BackupApplianceLockInfo", + "properties": { + "backupApplianceId": { + "description": "Required. The ID of the backup/recovery appliance that created this lock.", + "format": "int64", + "type": "string" + }, + "backupApplianceName": { + "description": "Required. The name of the backup/recovery appliance that created this lock.", + "type": "string" + }, + "backupImage": { + "description": "The image name that depends on this Backup.", + "type": "string" + }, + "jobName": { + "description": "The job name on the backup/recovery appliance that created this lock.", + "type": "string" + }, + "lockReason": { + "description": "Required. The reason for the lock: e.g. MOUNT/RESTORE/BACKUP/etc. The value of this string is only meaningful to the client and it is not interpreted by the BackupVault service.", + "type": "string" + }, + "slaId": { + "description": "The SLA on the backup/recovery appliance that owns the lock.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "BackupConfigInfo": { + "description": "BackupConfigInfo has information about how the resource is configured for Backup and about the most recent backup to this vault.", + "id": "BackupConfigInfo", + "properties": { + "backupApplianceBackupConfig": { + "$ref": "BackupApplianceBackupConfig", + "description": "Configuration for an application backed up by a Backup Appliance." + }, + "gcpBackupConfig": { + "$ref": "GcpBackupConfig", + "description": "Configuration for a Google Cloud resource." + }, + "lastBackupError": { + "$ref": "Status", + "description": "Output only. If the last backup failed, this field has the error message.", + "readOnly": true + }, + "lastBackupState": { + "description": "Output only. The status of the last backup to this BackupVault", + "enum": [ + "LAST_BACKUP_STATE_UNSPECIFIED", + "FIRST_BACKUP_PENDING", + "SUCCEEDED", + "FAILED", + "PERMISSION_DENIED" + ], + "enumDescriptions": [ + "Status not set.", + "The first backup has not yet completed", + "The most recent backup was successful", + "The most recent backup failed", + "The most recent backup could not be run/failed because of the lack of permissions" + ], + "readOnly": true, + "type": "string" + }, + "lastSuccessfulBackupConsistencyTime": { + "description": "Output only. If the last backup were successful, this field has the consistency date.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "BackupLock": { + "description": "BackupLock represents a single lock on a Backup resource. An unexpired lock on a Backup prevents the Backup from being deleted.", + "id": "BackupLock", + "properties": { + "backupApplianceLockInfo": { + "$ref": "BackupApplianceLockInfo", + "description": "If the client is a backup and recovery appliance, this contains metadata about why the lock exists." + }, + "lockUntilTime": { + "description": "Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.", + "format": "google-datetime", + "type": "string" + }, + "serviceLockInfo": { + "$ref": "ServiceLockInfo", + "description": "Output only. Contains metadata about the lock exist for Google Cloud native backups.", + "readOnly": true + } + }, + "type": "object" + }, + "BackupVault": { + "description": "Message describing a BackupVault object.", + "id": "BackupVault", + "properties": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. User annotations. See https://google.aip.dev/128#annotations Stores small amounts of arbitrary data.", + "type": "object" + }, + "backupCount": { + "description": "Output only. The number of backups in this backup vault.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "backupMinimumEnforcedRetentionDuration": { + "description": "Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended.", + "format": "google-duration", + "type": "string" + }, + "createTime": { + "description": "Output only. The time when the instance was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "deletable": { + "description": "Output only. Set to true when there are no backups nested under this resource.", + "readOnly": true, + "type": "boolean" + }, + "description": { + "description": "Optional. The description of the BackupVault instance (2048 characters or less).", + "type": "string" + }, + "effectiveTime": { + "description": "Optional. Time after which the BackupVault resource is locked.", + "format": "google-datetime", + "type": "string" + }, + "enforcedRetentionDuration": { + "description": "Required. The default retention period for each backup in the backup vault (Deprecated).", + "format": "google-duration", + "type": "string" + }, + "etag": { + "description": "Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates from overwiting each other.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Resource labels to represent user provided metadata. No labels currently defined:", + "type": "object" + }, + "name": { + "description": "Output only. The resource name.", + "readOnly": true, + "type": "string" + }, + "serviceAccount": { + "description": "Output only. Service account used by the BackupVault Service for this BackupVault. The user should grant this account permissions in their workload project to enable the service to run backups and restores there.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The BackupVault resource instance state.", + "enum": [ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "DELETING", + "ERROR" + ], + "enumDescriptions": [ + "State not set.", + "The backup vault is being created.", + "The backup vault has been created and is fully usable.", + "The backup vault is being deleted.", + "The backup vault is experiencing an issue and might be unusable." + ], + "readOnly": true, + "type": "string" + }, + "totalStoredBytes": { + "description": "Output only. Total size of the storage used by all backup resources.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "uid": { + "description": "Output only. Output only Immutable after resource creation until resource deletion.", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. The time when the instance was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "Binding": { + "description": "Associates `members`, or principals, with a `role`.", + "id": "Binding", + "properties": { + "condition": { + "$ref": "Expr", + "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." + }, + "members": { + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.", + "items": { + "type": "string" + }, + "type": "array" + }, + "role": { + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", + "type": "string" + } + }, + "type": "object" + }, + "CancelOperationRequest": { + "description": "The request message for Operations.CancelOperation.", + "id": "CancelOperationRequest", + "properties": {}, + "type": "object" + }, + "ComputeInstanceBackupProperties": { + "description": "ComputeInstanceBackupProperties represents Compute Engine instance backup properties.", + "id": "ComputeInstanceBackupProperties", + "properties": { + "canIpForward": { + "description": "Enables instances created based on these properties to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify `true`. If unsure, leave this set to `false`. See the https://cloud.google.com/vpc/docs/using-routes#canipforward documentation for more information.", + "type": "boolean" + }, + "description": { + "description": "An optional text description for the instances that are created from these properties.", + "type": "string" + }, + "disk": { + "description": "An array of disks that are associated with the instances that are created from these properties.", + "items": { + "$ref": "AttachedDisk" + }, + "type": "array" + }, + "guestAccelerator": { + "description": "A list of guest accelerator cards' type and count to use for instances created from these properties.", + "items": { + "$ref": "AcceleratorConfig" + }, + "type": "array" + }, + "keyRevocationActionType": { + "description": "KeyRevocationActionType of the instance. Supported options are \"STOP\" and \"NONE\". The default value is \"NONE\" if it is not specified.", + "enum": [ + "KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED", + "NONE", + "STOP" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "Indicates user chose no operation.", + "Indicates user chose to opt for VM shutdown on key revocation." + ], + "type": "string" + }, + "machineType": { + "description": "The machine type to use for instances that are created from these properties.", + "type": "string" + }, + "metadata": { + "$ref": "Metadata", + "description": "The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See https://cloud.google.com/compute/docs/metadata/overview for more information." + }, + "minCpuPlatform": { + "description": "Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: Intel Haswell` or `minCpuPlatform: Intel Sandy Bridge`. For more information, read https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.", + "type": "string" + }, + "networkInterface": { + "description": "An array of network access configurations for this interface.", + "items": { + "$ref": "NetworkInterface" + }, + "type": "array" + }, + "scheduling": { + "$ref": "Scheduling", + "description": "Specifies the scheduling options for the instances that are created from these properties." + }, + "serviceAccount": { + "description": "A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.", + "items": { + "$ref": "ServiceAccount" + }, + "type": "array" + }, + "sourceInstanceName": { + "description": "Name of the source instance at the time of backup. The name is 1-63 characters long, and complies with RFC1035.", + "type": "string" + }, + "tags": { + "$ref": "Tags", + "description": "A list of tags to apply to the instances that are created from these properties. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035 (https://www.ietf.org/rfc/rfc1035.txt)." + } + }, + "type": "object" + }, + "ComputeInstanceDataSourceProperties": { + "description": "ComputeInstanceDataSourceProperties represents the properties of a ComputeEngine resource that are stored in the DataSource.", + "id": "ComputeInstanceDataSourceProperties", + "properties": { + "description": { + "description": "The description of the Compute Engine instance.", + "type": "string" + }, + "machineType": { + "description": "The machine type of the instance.", + "type": "string" + }, + "name": { + "description": "Name of the compute instance backed up by the datasource.", + "type": "string" + }, + "totalDiskCount": { + "description": "The total number of disks attached to the Instance.", + "format": "int64", + "type": "string" + }, + "totalDiskSizeGb": { + "description": "The sum of all the disk sizes.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "CustomerEncryptionKey": { + "description": "A customer-supplied encryption key.", + "id": "CustomerEncryptionKey", + "properties": { + "kmsKeyName": { + "description": "Optional. The name of the encryption key that is stored in Google Cloud KMS.", + "type": "string" + }, + "kmsKeyServiceAccount": { + "description": "Optional. The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.", + "type": "string" + }, + "rawKey": { + "description": "Optional. Specifies a 256-bit customer-supplied encryption key.", + "type": "string" + }, + "rsaEncryptedKey": { + "description": "Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.", + "type": "string" + } + }, + "type": "object" + }, + "DataSource": { + "description": "Message describing a DataSource object. Datasource object used to represent Datasource details for both admin and basic view.", + "id": "DataSource", + "properties": { + "backupConfigInfo": { + "$ref": "BackupConfigInfo", + "description": "Output only. Details of how the resource is configured for backup.", + "readOnly": true + }, + "backupCount": { + "description": "Number of backups in the data source.", + "format": "int64", + "type": "string" + }, + "configState": { + "description": "The backup configuration state.", + "enum": [ + "BACKUP_CONFIG_STATE_UNSPECIFIED", + "ACTIVE", + "PASSIVE" + ], + "enumDescriptions": [ + "The possible states of backup configuration. Status not set.", + "The data source is actively protected (i.e. there is a BackupPlanAssociation or Appliance SLA pointing to it)", + "The data source is no longer protected (but may have backups under it)" + ], + "type": "string" + }, + "createTime": { + "description": "Output only. The time when the instance was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "dataSourceBackupApplianceApplication": { + "$ref": "DataSourceBackupApplianceApplication", + "description": "The backed up resource is a backup appliance application." + }, + "dataSourceGcpResource": { + "$ref": "DataSourceGcpResource", + "description": "The backed up resource is a Google Cloud resource. The word 'DataSource' was included in the names to indicate that this is the representation of the Google Cloud resource used within the DataSource object." + }, + "etag": { + "description": "Server specified ETag for the ManagementServer resource to prevent simultaneous updates from overwiting each other.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Resource labels to represent user provided metadata. No labels currently defined:", + "type": "object" + }, + "name": { + "description": "Output only. The resource name.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The DataSource resource instance state.", + "enum": [ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "DELETING", + "ERROR" + ], + "enumDescriptions": [ + "State not set.", + "The data source is being created.", + "The data source has been created and is fully usable.", + "The data source is being deleted.", + "The data source is experiencing an issue and might be unusable." + ], + "readOnly": true, + "type": "string" + }, + "totalStoredBytes": { + "description": "The number of bytes (metadata and data) stored in this datasource.", + "format": "int64", + "type": "string" + }, + "updateTime": { + "description": "Output only. The time when the instance was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "DataSourceBackupApplianceApplication": { + "description": "BackupApplianceApplication describes a Source Resource when it is an application backed up by a BackupAppliance.", + "id": "DataSourceBackupApplianceApplication", + "properties": { + "applianceId": { + "description": "Appliance Id of the Backup Appliance.", + "format": "int64", + "type": "string" + }, + "applicationId": { + "description": "The appid field of the application within the Backup Appliance.", + "format": "int64", + "type": "string" + }, + "applicationName": { + "description": "The name of the Application as known to the Backup Appliance.", + "type": "string" + }, + "backupAppliance": { + "description": "Appliance name.", + "type": "string" + }, + "hostId": { + "description": "Hostid of the application host.", + "format": "int64", + "type": "string" + }, + "hostname": { + "description": "Hostname of the host where the application is running.", + "type": "string" + }, + "type": { + "description": "The type of the application. e.g. VMBackup", + "type": "string" + } + }, + "type": "object" + }, + "DataSourceGcpResource": { + "description": "DataSourceGcpResource is used for protected resources that are Google Cloud Resources. This name is easeier to understand than GcpResourceDataSource or GcpDataSourceResource", + "id": "DataSourceGcpResource", + "properties": { + "computeInstanceDatasourceProperties": { + "$ref": "ComputeInstanceDataSourceProperties", + "description": "ComputeInstanceDataSourceProperties has a subset of Compute Instance properties that are useful at the Datasource level." + }, + "gcpResourcename": { + "description": "Output only. Full resource pathname URL of the source Google Cloud resource.", + "readOnly": true, + "type": "string" + }, + "location": { + "description": "Location of the resource: //\"global\"/\"unspecified\".", + "type": "string" + }, + "type": { + "description": "The type of the Google Cloud resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.", + "type": "string" + } + }, + "type": "object" + }, + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", + "id": "Empty", + "properties": {}, + "type": "object" + }, + "Entry": { + "description": "A key/value pair to be used for storing metadata.", + "id": "Entry", + "properties": { + "key": { + "description": "Optional. Key for the metadata entry.", + "type": "string" + }, + "value": { + "description": "Optional. Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 262144 bytes (256 KiB).", + "type": "string" + } + }, + "type": "object" + }, + "Expr": { + "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", + "id": "Expr", + "properties": { + "description": { + "description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.", + "type": "string" + }, + "expression": { + "description": "Textual representation of an expression in Common Expression Language syntax.", + "type": "string" + }, + "location": { + "description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.", + "type": "string" + }, + "title": { + "description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.", + "type": "string" + } + }, + "type": "object" + }, + "FetchAccessTokenRequest": { + "description": "Request message for FetchAccessToken.", + "id": "FetchAccessTokenRequest", + "properties": { + "generationId": { + "description": "Required. The generation of the backup to update.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "FetchAccessTokenResponse": { + "description": "Response message for FetchAccessToken.", + "id": "FetchAccessTokenResponse", + "properties": { + "expireTime": { + "description": "The token is valid until this time.", + "format": "google-datetime", + "type": "string" + }, + "readLocation": { + "description": "The location in bucket that can be used for reading.", + "type": "string" + }, + "token": { + "description": "The downscoped token that was created.", + "type": "string" + }, + "writeLocation": { + "description": "The location in bucket that can be used for writing.", + "type": "string" + } + }, + "type": "object" + }, + "FetchUsableBackupVaultsResponse": { + "description": "Response message for fetching usable BackupVaults.", + "id": "FetchUsableBackupVaultsResponse", + "properties": { + "backupVaults": { + "description": "The list of BackupVault instances in the project for the specified location. If the '{location}' value in the request is \"-\", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return backup vaults in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.", + "items": { + "$ref": "BackupVault" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "FinalizeBackupRequest": { + "description": "Message for finalizing a Backup.", + "id": "FinalizeBackupRequest", + "properties": { + "backupId": { + "description": "Required. Resource ID of the Backup resource to be finalized. This must be the same backup_id that was used in the InitiateBackupRequest.", + "type": "string" + }, + "consistencyTime": { + "description": "The point in time when this backup was captured from the source. This will be assigned to the consistency_time field of the newly created Backup.", + "format": "google-datetime", + "type": "string" + }, + "description": { + "description": "This will be assigned to the description field of the newly created Backup.", + "type": "string" + }, + "recoveryRangeEndTime": { + "description": "The latest timestamp of data available in this Backup. This will be set on the newly created Backup.", + "format": "google-datetime", + "type": "string" + }, + "recoveryRangeStartTime": { + "description": "The earliest timestamp of data available in this Backup. This will set on the newly created Backup.", + "format": "google-datetime", + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "type": "string" + }, + "retentionDuration": { + "description": "The ExpireTime on the backup will be set to FinalizeTime plus this duration. If the resulting ExpireTime is less than EnforcedRetentionEndTime, then ExpireTime is set to EnforcedRetentionEndTime.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "GCPBackupPlanInfo": { + "description": "GCPBackupPlanInfo captures the plan configuration details of Google Cloud resources at the time of backup.", + "id": "GCPBackupPlanInfo", + "properties": { + "backupPlan": { + "description": "Resource name of backup plan by which workload is protected at the time of the backup. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}", + "type": "string" + }, + "backupPlanRuleId": { + "description": "The rule id of the backup plan which triggered this backup in case of scheduled backup or used for", + "type": "string" + } + }, + "type": "object" + }, + "GcpBackupConfig": { + "description": "GcpBackupConfig captures the Backup configuration details for Google Cloud resources. All Google Cloud resources regardless of type are protected with backup plan associations.", + "id": "GcpBackupConfig", + "properties": { + "backupPlan": { + "description": "The name of the backup plan.", + "type": "string" + }, + "backupPlanAssociation": { + "description": "The name of the backup plan association.", + "type": "string" + }, + "backupPlanDescription": { + "description": "The description of the backup plan.", + "type": "string" + }, + "backupPlanRules": { + "description": "The names of the backup plan rules which point to this backupvault", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GuestOsFeature": { + "description": "Feature type of the Guest OS.", + "id": "GuestOsFeature", + "properties": { + "type": { + "description": "The ID of a supported feature.", + "enum": [ + "FEATURE_TYPE_UNSPECIFIED", + "VIRTIO_SCSI_MULTIQUEUE", + "WINDOWS", + "MULTI_IP_SUBNET", + "UEFI_COMPATIBLE", + "SECURE_BOOT", + "GVNIC", + "SEV_CAPABLE", + "BARE_METAL_LINUX_COMPATIBLE", + "SUSPEND_RESUME_COMPATIBLE", + "SEV_LIVE_MIGRATABLE", + "SEV_SNP_CAPABLE", + "TDX_CAPABLE", + "IDPF", + "SEV_LIVE_MIGRATABLE_V2" + ], + "enumDescriptions": [ + "Default value, which is unused.", + "VIRTIO_SCSI_MULTIQUEUE feature type.", + "WINDOWS feature type.", + "MULTI_IP_SUBNET feature type.", + "UEFI_COMPATIBLE feature type.", + "SECURE_BOOT feature type.", + "GVNIC feature type.", + "SEV_CAPABLE feature type.", + "BARE_METAL_LINUX_COMPATIBLE feature type.", + "SUSPEND_RESUME_COMPATIBLE feature type.", + "SEV_LIVE_MIGRATABLE feature type.", + "SEV_SNP_CAPABLE feature type.", + "TDX_CAPABLE feature type.", + "IDPF feature type.", + "SEV_LIVE_MIGRATABLE_V2 feature type." + ], + "type": "string" + } + }, + "type": "object" + }, + "InitializeParams": { + "description": "Specifies the parameters to initialize this disk.", + "id": "InitializeParams", + "properties": { + "diskName": { + "description": "Optional. Specifies the disk name. If not specified, the default is to use the name of the instance.", + "type": "string" + }, + "replicaZones": { + "description": "Optional. URL of the zone where the disk should be created. Required for each regional disk associated with the instance.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "InitiateBackupRequest": { + "description": "request message for InitiateBackup.", + "id": "InitiateBackupRequest", + "properties": { + "backupId": { + "description": "Required. Resource ID of the Backup resource.", + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "type": "string" + } + }, + "type": "object" + }, + "InitiateBackupResponse": { + "description": "Response message for InitiateBackup.", + "id": "InitiateBackupResponse", + "properties": { + "backup": { + "description": "The name of the backup that was created.", + "type": "string" + }, + "baseBackupGenerationId": { + "description": "The generation id of the base backup. It is needed for the incremental backups.", + "format": "int32", + "type": "integer" + }, + "newBackupGenerationId": { + "description": "The generation id of the new backup.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "ListBackupVaultsResponse": { + "description": "Response message for listing BackupVaults.", + "id": "ListBackupVaultsResponse", + "properties": { + "backupVaults": { + "description": "The list of BackupVault instances in the project for the specified location. If the '{location}' value in the request is \"-\", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return backup vaults in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.", + "items": { + "$ref": "BackupVault" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", "items": { - "$ref": "AuditLogConfig" + "type": "string" }, "type": "array" - }, - "service": { - "description": "Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.", - "type": "string" } }, "type": "object" }, - "AuditLogConfig": { - "description": "Provides the configuration for logging a type of permissions. Example: { \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.", - "id": "AuditLogConfig", + "ListBackupsResponse": { + "description": "Response message for listing Backups.", + "id": "ListBackupsResponse", "properties": { - "exemptedMembers": { - "description": "Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.", + "backups": { + "description": "The list of Backup instances in the project for the specified location. If the '{location}' value in the request is \"-\", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.", "items": { - "type": "string" + "$ref": "Backup" }, "type": "array" }, - "logType": { - "description": "The log type that this config enables.", - "enum": [ - "LOG_TYPE_UNSPECIFIED", - "ADMIN_READ", - "DATA_WRITE", - "DATA_READ" - ], - "enumDescriptions": [ - "Default case. Should never be this.", - "Admin reads. Example: CloudIAM getIamPolicy", - "Data writes. Example: CloudSQL Users create", - "Data reads. Example: CloudSQL Users list" - ], + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", "type": "string" - } - }, - "type": "object" - }, - "Binding": { - "description": "Associates `members`, or principals, with a `role`.", - "id": "Binding", - "properties": { - "condition": { - "$ref": "Expr", - "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, - "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.", + "unreachable": { + "description": "Locations that could not be reached.", "items": { "type": "string" }, "type": "array" - }, - "role": { - "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", - "type": "string" } }, "type": "object" }, - "CancelOperationRequest": { - "description": "The request message for Operations.CancelOperation.", - "id": "CancelOperationRequest", - "properties": {}, - "type": "object" - }, - "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", - "id": "Empty", - "properties": {}, - "type": "object" - }, - "Expr": { - "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", - "id": "Expr", + "ListDataSourcesResponse": { + "description": "Response message for listing DataSources.", + "id": "ListDataSourcesResponse", "properties": { - "description": { - "description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.", - "type": "string" - }, - "expression": { - "description": "Textual representation of an expression in Common Expression Language syntax.", - "type": "string" + "dataSources": { + "description": "The list of DataSource instances in the project for the specified location. If the '{location}' value in the request is \"-\", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.", + "items": { + "$ref": "DataSource" + }, + "type": "array" }, - "location": { - "description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.", + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", "type": "string" }, - "title": { - "description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.", - "type": "string" + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -666,7 +2620,7 @@ "id": "ListManagementServersResponse", "properties": { "managementServers": { - "description": "The list of ManagementServer instances in the project for the specified location. If the `{location}` value in the request is \"-\", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return management servers in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.", + "description": "The list of ManagementServer instances in the project for the specified location. If the '{location}' value in the request is \"-\", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return management servers in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.", "items": { "$ref": "ManagementServer" }, @@ -789,7 +2743,7 @@ "type": "array" }, "oauth2ClientId": { - "description": "Output only. The OAuth 2.0 client id is required to make API calls to the BackupDR instance API of this ManagementServer. This is the value that should be provided in the ‘aud’ field of the OIDC ID Token (see openid specification https://openid.net/specs/openid-connect-core-1_0.html#IDToken).", + "description": "Output only. The OAuth 2.0 client id is required to make API calls to the BackupDR instance API of this ManagementServer. This is the value that should be provided in the 'aud' field of the OIDC ID Token (see openid specification https://openid.net/specs/openid-connect-core-1_0.html#IDToken).", "readOnly": true, "type": "string" }, @@ -876,6 +2830,20 @@ }, "type": "object" }, + "Metadata": { + "description": "A metadata key/value entry.", + "id": "Metadata", + "properties": { + "items": { + "description": "Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.", + "items": { + "$ref": "Entry" + }, + "type": "array" + } + }, + "type": "object" + }, "NetworkConfig": { "description": "Network configuration for ManagementServer instance.", "id": "NetworkConfig", @@ -899,6 +2867,143 @@ }, "type": "object" }, + "NetworkInterface": { + "description": "A network interface resource attached to an instance. s", + "id": "NetworkInterface", + "properties": { + "accessConfigs": { + "description": "Optional. An array of configurations for this interface. Currently, only one access config,ONE_TO_ONE_NAT is supported. If there are no accessConfigs specified, then this instance will have no external internet access.", + "items": { + "$ref": "AccessConfig" + }, + "type": "array" + }, + "aliasIpRanges": { + "description": "Optional. An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.", + "items": { + "$ref": "AliasIpRange" + }, + "type": "array" + }, + "internalIpv6PrefixLength": { + "description": "Optional. The prefix length of the primary internal IPv6 range.", + "format": "int32", + "type": "integer" + }, + "ipv6AccessConfigs": { + "description": "Optional. An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.", + "items": { + "$ref": "AccessConfig" + }, + "type": "array" + }, + "ipv6AccessType": { + "description": "Optional. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.", + "enum": [ + "UNSPECIFIED_IPV6_ACCESS_TYPE", + "INTERNAL", + "EXTERNAL" + ], + "enumDescriptions": [ + "IPv6 access type not set. Means this network interface hasn't been turned on IPv6 yet.", + "This network interface can have internal IPv6.", + "This network interface can have external IPv6." + ], + "type": "string" + }, + "ipv6Address": { + "description": "Optional. An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.", + "type": "string" + }, + "name": { + "description": "Output only. [Output Only] The name of the network interface, which is generated by the server.", + "readOnly": true, + "type": "string" + }, + "network": { + "description": "Optional. URL of the VPC network resource for this instance.", + "type": "string" + }, + "networkAttachment": { + "description": "Optional. The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.", + "type": "string" + }, + "networkIP": { + "description": "Optional. An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.", + "type": "string" + }, + "nicType": { + "description": "Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.", + "enum": [ + "NIC_TYPE_UNSPECIFIED", + "VIRTIO_NET", + "GVNIC" + ], + "enumDescriptions": [ + "Default should be NIC_TYPE_UNSPECIFIED.", + "VIRTIO", + "GVNIC" + ], + "type": "string" + }, + "queueCount": { + "description": "Optional. The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It'll be empty if not specified by the users.", + "format": "int32", + "type": "integer" + }, + "stackType": { + "description": "The stack type for this network interface.", + "enum": [ + "STACK_TYPE_UNSPECIFIED", + "IPV4_ONLY", + "IPV4_IPV6" + ], + "enumDescriptions": [ + "Default should be STACK_TYPE_UNSPECIFIED.", + "The network interface will be assigned IPv4 address.", + "The network interface can have both IPv4 and IPv6 addresses." + ], + "type": "string" + }, + "subnetwork": { + "description": "Optional. The URL of the Subnetwork resource for this instance.", + "type": "string" + } + }, + "type": "object" + }, + "NodeAffinity": { + "description": "Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.", + "id": "NodeAffinity", + "properties": { + "key": { + "description": "Optional. Corresponds to the label key of Node resource.", + "type": "string" + }, + "operator": { + "description": "Optional. Defines the operation of node selection.", + "enum": [ + "OPERATOR_UNSPECIFIED", + "IN", + "NOT_IN" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "Requires Compute Engine to seek for matched nodes.", + "Requires Compute Engine to avoid certain nodes." + ], + "type": "string" + }, + "values": { + "description": "Optional. Corresponds to the label values of Node resource.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", @@ -964,7 +3069,7 @@ "type": "string" }, "requestedCancellation": { - "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to 'Code.CANCELLED'.", "readOnly": true, "type": "boolean" }, @@ -1017,6 +3122,137 @@ }, "type": "object" }, + "RemoveDataSourceRequest": { + "description": "Message for deleting a DataSource.", + "id": "RemoveDataSourceRequest", + "properties": { + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "type": "string" + } + }, + "type": "object" + }, + "Scheduling": { + "description": "Sets the scheduling options for an Instance.", + "id": "Scheduling", + "properties": { + "automaticRestart": { + "description": "Optional. Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).", + "type": "boolean" + }, + "instanceTerminationAction": { + "description": "Optional. Specifies the termination action for the instance.", + "enum": [ + "INSTANCE_TERMINATION_ACTION_UNSPECIFIED", + "DELETE", + "STOP" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "Delete the VM.", + "Stop the VM without storing in-memory content. default action." + ], + "type": "string" + }, + "localSsdRecoveryTimeout": { + "$ref": "SchedulingDuration", + "description": "Optional. Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour." + }, + "minNodeCpus": { + "description": "Optional. The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.", + "format": "int32", + "type": "integer" + }, + "nodeAffinities": { + "description": "Optional. A set of node affinity and anti-affinity configurations. Overrides reservationAffinity.", + "items": { + "$ref": "NodeAffinity" + }, + "type": "array" + }, + "onHostMaintenance": { + "description": "Optional. Defines the maintenance behavior for this instance.", + "enum": [ + "ON_HOST_MAINTENANCE_UNSPECIFIED", + "TERMINATE", + "MIGRATE" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "Tells Compute Engine to terminate and (optionally) restart the instance away from the maintenance activity.", + "Default, Allows Compute Engine to automatically migrate instances out of the way of maintenance events." + ], + "type": "string" + }, + "preemptible": { + "description": "Optional. Defines whether the instance is preemptible.", + "type": "boolean" + }, + "provisioningModel": { + "description": "Optional. Specifies the provisioning model of the instance.", + "enum": [ + "PROVISIONING_MODEL_UNSPECIFIED", + "STANDARD", + "SPOT" + ], + "enumDescriptions": [ + "Default value. This value is not used.", + "Standard provisioning with user controlled runtime, no discounts.", + "Heavily discounted, no guaranteed runtime." + ], + "type": "string" + } + }, + "type": "object" + }, + "SchedulingDuration": { + "description": "A SchedulingDuration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like \"day\" or \"month\". Range is approximately 10,000 years.", + "id": "SchedulingDuration", + "properties": { + "nanos": { + "description": "Optional. Span of time that's a fraction of a second at nanosecond resolution.", + "format": "int32", + "type": "integer" + }, + "seconds": { + "description": "Optional. Span of time at a resolution of a second.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "ServiceAccount": { + "description": "A service account.", + "id": "ServiceAccount", + "properties": { + "email": { + "description": "Optional. Email address of the service account.", + "type": "string" + }, + "scopes": { + "description": "Optional. The list of scopes to be made available for this service account.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ServiceLockInfo": { + "description": "ServiceLockInfo represents the details of a lock taken by the service on a Backup resource.", + "id": "ServiceLockInfo", + "properties": { + "operation": { + "description": "Output only. The name of the operation that created this lock. The lock will automatically be released when the operation completes.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "SetIamPolicyRequest": { "description": "Request message for `SetIamPolicy` method.", "id": "SetIamPolicyRequest", @@ -1033,6 +3269,36 @@ }, "type": "object" }, + "SetInternalStatusRequest": { + "description": "Request message for SetStatusInternal method.", + "id": "SetInternalStatusRequest", + "properties": { + "backupConfigState": { + "description": "Required. The new BackupConfigState to set for the DataSource.", + "enum": [ + "BACKUP_CONFIG_STATE_UNSPECIFIED", + "ACTIVE", + "PASSIVE" + ], + "enumDescriptions": [ + "The possible states of backup configuration. Status not set.", + "The data source is actively protected (i.e. there is a BackupPlanAssociation or Appliance SLA pointing to it)", + "The data source is no longer protected (but may have backups under it)" + ], + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "type": "string" + }, + "value": { + "description": "Required. The value required for this method to work. This field must be the 32-byte SHA256 hash of the DataSourceID. The DataSourceID used here is only the final piece of the fully qualified resource path for this DataSource (i.e. the part after '.../dataSources/'). This field exists to make this method difficult to call since it is intended for use only by Backup Appliances.", + "format": "byte", + "type": "string" + } + }, + "type": "object" + }, "Status": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "Status", @@ -1060,6 +3326,20 @@ }, "type": "object" }, + "Tags": { + "description": "A set of instance tags.", + "id": "Tags", + "properties": { + "items": { + "description": "Optional. An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "TestIamPermissionsRequest": { "description": "Request message for `TestIamPermissions` method.", "id": "TestIamPermissionsRequest", diff --git a/backupdr/v1/backupdr-gen.go b/backupdr/v1/backupdr-gen.go index 2358bf3b2d4..6b466f33313 100644 --- a/backupdr/v1/backupdr-gen.go +++ b/backupdr/v1/backupdr-gen.go @@ -168,6 +168,7 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} + rs.BackupVaults = NewProjectsLocationsBackupVaultsService(s) rs.ManagementServers = NewProjectsLocationsManagementServersService(s) rs.Operations = NewProjectsLocationsOperationsService(s) return rs @@ -176,11 +177,46 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { type ProjectsLocationsService struct { s *Service + BackupVaults *ProjectsLocationsBackupVaultsService + ManagementServers *ProjectsLocationsManagementServersService Operations *ProjectsLocationsOperationsService } +func NewProjectsLocationsBackupVaultsService(s *Service) *ProjectsLocationsBackupVaultsService { + rs := &ProjectsLocationsBackupVaultsService{s: s} + rs.DataSources = NewProjectsLocationsBackupVaultsDataSourcesService(s) + return rs +} + +type ProjectsLocationsBackupVaultsService struct { + s *Service + + DataSources *ProjectsLocationsBackupVaultsDataSourcesService +} + +func NewProjectsLocationsBackupVaultsDataSourcesService(s *Service) *ProjectsLocationsBackupVaultsDataSourcesService { + rs := &ProjectsLocationsBackupVaultsDataSourcesService{s: s} + rs.Backups = NewProjectsLocationsBackupVaultsDataSourcesBackupsService(s) + return rs +} + +type ProjectsLocationsBackupVaultsDataSourcesService struct { + s *Service + + Backups *ProjectsLocationsBackupVaultsDataSourcesBackupsService +} + +func NewProjectsLocationsBackupVaultsDataSourcesBackupsService(s *Service) *ProjectsLocationsBackupVaultsDataSourcesBackupsService { + rs := &ProjectsLocationsBackupVaultsDataSourcesBackupsService{s: s} + return rs +} + +type ProjectsLocationsBackupVaultsDataSourcesBackupsService struct { + s *Service +} + func NewProjectsLocationsManagementServersService(s *Service) *ProjectsLocationsManagementServersService { rs := &ProjectsLocationsManagementServersService{s: s} return rs @@ -199,6 +235,236 @@ type ProjectsLocationsOperationsService struct { s *Service } +// AbandonBackupRequest: request message for AbandonBackup. +type AbandonBackupRequest struct { + // RequestId: Optional. An optional request ID to identify requests. Specify a + // unique request ID so that if you must retry your request, the server will + // know to ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. For example, + // consider a situation where you make an initial request and the request times + // out. If you make the request again with the same request ID, the server can + // check if original operation with the same request ID was received, and if + // so, will ignore the second request. This prevents clients from accidentally + // creating duplicate commitments. The request ID must be a valid UUID with the + // exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + RequestId string `json:"requestId,omitempty"` + // ForceSendFields is a list of field names (e.g. "RequestId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "RequestId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *AbandonBackupRequest) MarshalJSON() ([]byte, error) { + type NoMethod AbandonBackupRequest + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// AcceleratorConfig: A specification of the type and number of accelerator +// cards attached to the instance. +type AcceleratorConfig struct { + // AcceleratorCount: Optional. The number of the guest accelerator cards + // exposed to this instance. + AcceleratorCount int64 `json:"acceleratorCount,omitempty"` + // AcceleratorType: Optional. Full or partial URL of the accelerator type + // resource to attach to this instance. + AcceleratorType string `json:"acceleratorType,omitempty"` + // ForceSendFields is a list of field names (e.g. "AcceleratorCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AcceleratorCount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *AcceleratorConfig) MarshalJSON() ([]byte, error) { + type NoMethod AcceleratorConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// AccessConfig: An access configuration attached to an instance's network +// interface. Only one access config per instance is supported. +type AccessConfig struct { + // ExternalIpv6: Optional. The external IPv6 address of this access + // configuration. + ExternalIpv6 string `json:"externalIpv6,omitempty"` + // ExternalIpv6PrefixLength: Optional. The prefix length of the external IPv6 + // range. + ExternalIpv6PrefixLength int64 `json:"externalIpv6PrefixLength,omitempty"` + // Name: Optional. The name of this access configuration. + Name string `json:"name,omitempty"` + // NatIP: Optional. The external IP address of this access configuration. + NatIP string `json:"natIP,omitempty"` + // NetworkTier: Optional. This signifies the networking tier used for + // configuring this access + // + // Possible values: + // "NETWORK_TIER_UNSPECIFIED" - Default value. This value is unused. + // "PREMIUM" - High quality, Google-grade network tier, support for all + // networking products. + // "STANDARD" - Public internet quality, only limited support for other + // networking products. + NetworkTier string `json:"networkTier,omitempty"` + // PublicPtrDomainName: Optional. The DNS domain name for the public PTR + // record. + PublicPtrDomainName string `json:"publicPtrDomainName,omitempty"` + // SetPublicPtr: Optional. Specifies whether a public DNS 'PTR' record should + // be created to map the external IP address of the instance to a DNS domain + // name. + SetPublicPtr bool `json:"setPublicPtr,omitempty"` + // Type: Optional. In accessConfigs (IPv4), the default and only option is + // ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is + // DIRECT_IPV6. + // + // Possible values: + // "ACCESS_TYPE_UNSPECIFIED" - Default value. This value is unused. + // "ONE_TO_ONE_NAT" - ONE_TO_ONE_NAT + // "DIRECT_IPV6" - Direct IPv6 access. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "ExternalIpv6") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ExternalIpv6") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *AccessConfig) MarshalJSON() ([]byte, error) { + type NoMethod AccessConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// AliasIpRange: An alias IP range attached to an instance's network interface. +type AliasIpRange struct { + // IpCidrRange: Optional. The IP alias ranges to allocate for this interface. + IpCidrRange string `json:"ipCidrRange,omitempty"` + // SubnetworkRangeName: Optional. The name of a subnetwork secondary IP range + // from which to allocate an IP alias range. If not specified, the primary + // range of the subnetwork is used. + SubnetworkRangeName string `json:"subnetworkRangeName,omitempty"` + // ForceSendFields is a list of field names (e.g. "IpCidrRange") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "IpCidrRange") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *AliasIpRange) MarshalJSON() ([]byte, error) { + type NoMethod AliasIpRange + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// AttachedDisk: An instance-attached disk resource. +type AttachedDisk struct { + // AutoDelete: Optional. Specifies whether the disk will be auto-deleted when + // the instance is deleted (but not when the disk is detached from the + // instance). + AutoDelete bool `json:"autoDelete,omitempty"` + // Boot: Optional. Indicates that this is a boot disk. The virtual machine will + // use the first partition of the disk for its root filesystem. + Boot bool `json:"boot,omitempty"` + // DeviceName: Optional. This is used as an identifier for the disks. This is + // the unique name has to provided to modify disk parameters like disk_name and + // replica_zones (in case of RePDs) + DeviceName string `json:"deviceName,omitempty"` + // DiskEncryptionKey: Optional. Encrypts or decrypts a disk using a + // customer-supplied encryption key. + DiskEncryptionKey *CustomerEncryptionKey `json:"diskEncryptionKey,omitempty"` + // DiskInterface: Optional. Specifies the disk interface to use for attaching + // this disk. + // + // Possible values: + // "DISK_INTERFACE_UNSPECIFIED" - Default value, which is unused. + // "SCSI" - SCSI Disk Interface. + // "NVME" - NVME Disk Interface. + // "NVDIMM" - NVDIMM Disk Interface. + // "ISCSI" - ISCSI Disk Interface. + DiskInterface string `json:"diskInterface,omitempty"` + // DiskSizeGb: Optional. The size of the disk in GB. + DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"` + // DiskType: Optional. Specifies the type of the disk. + // + // Possible values: + // "DISK_TYPE_UNSPECIFIED" - Default value, which is unused. + // "SCRATCH" - A scratch disk type. + // "PERSISTENT" - A persistent disk type. + DiskType string `json:"diskType,omitempty"` + // GuestOsFeature: Optional. A list of features to enable on the guest + // operating system. Applicable only for bootable images. + GuestOsFeature []*GuestOsFeature `json:"guestOsFeature,omitempty"` + // Index: Optional. A zero-based index to this disk, where 0 is reserved for + // the boot disk. + Index int64 `json:"index,omitempty,string"` + // InitializeParams: Optional. Specifies the parameters to initialize this + // disk. + InitializeParams *InitializeParams `json:"initializeParams,omitempty"` + // Kind: Optional. Type of the resource. + Kind string `json:"kind,omitempty"` + // License: Optional. Any valid publicly visible licenses. + License []string `json:"license,omitempty"` + // Mode: Optional. The mode in which to attach this disk. + // + // Possible values: + // "DISK_MODE_UNSPECIFIED" - Default value, which is unused. + // "READ_WRITE" - Attaches this disk in read-write mode. Only one virtual + // machine at a time can be attached to a disk in read-write mode. + // "READ_ONLY" - Attaches this disk in read-only mode. Multiple virtual + // machines can use a disk in read-only mode at a time. + // "LOCKED" - The disk is locked for administrative reasons. Nobody else can + // use the disk. This mode is used (for example) when taking a snapshot of a + // disk to prevent mounting the disk while it is being snapshotted. + Mode string `json:"mode,omitempty"` + // SavedState: Optional. Output only. The state of the disk. + // + // Possible values: + // "DISK_SAVED_STATE_UNSPECIFIED" - Default Disk state has not been + // preserved. + // "PRESERVED" - Disk state has been preserved. + SavedState string `json:"savedState,omitempty"` + // Source: Optional. Specifies a valid partial or full URL to an existing + // Persistent Disk resource. + Source string `json:"source,omitempty"` + // ForceSendFields is a list of field names (e.g. "AutoDelete") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AutoDelete") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *AttachedDisk) MarshalJSON() ([]byte, error) { + type NoMethod AttachedDisk + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // AuditConfig: Specifies the audit configuration for a service. The // configuration determines which permission types are logged, and what // identities, if any, are exempted from logging. An AuditConfig must have one @@ -275,6 +541,336 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// Backup: Message describing a Backup object. +type Backup struct { + BackupApplianceBackupProperties *BackupApplianceBackupProperties `json:"backupApplianceBackupProperties,omitempty"` + // BackupApplianceLocks: Optional. The list of BackupLocks taken by the + // accessor Backup Appliance. + BackupApplianceLocks []*BackupLock `json:"backupApplianceLocks,omitempty"` + // Possible values: + // "BACKUP_TYPE_UNSPECIFIED" + // "SCHEDULED" + // "ON_DEMAND" + BackupType string `json:"backupType,omitempty"` + ComputeInstanceBackupProperties *ComputeInstanceBackupProperties `json:"computeInstanceBackupProperties,omitempty"` + // ConsistencyTime: Output only. The point in time when this backup was + // captured from the source. + ConsistencyTime string `json:"consistencyTime,omitempty"` + // CreateTime: Output only. The time when the instance was created. + CreateTime string `json:"createTime,omitempty"` + // Description: Output only. The description of the Backup instance (2048 + // characters or less). + Description string `json:"description,omitempty"` + // EnforcedRetentionEndTime: Optional. The backup can not be deleted before + // this time. + EnforcedRetentionEndTime string `json:"enforcedRetentionEndTime,omitempty"` + // Etag: Optional. Server specified ETag to prevent updates from overwriting + // each other. + Etag string `json:"etag,omitempty"` + // ExpireTime: Optional. When this backup is automatically expired. + ExpireTime string `json:"expireTime,omitempty"` + // GcpBackupPlanInfo: Output only. Configuration for a Google Cloud resource. + GcpBackupPlanInfo *GCPBackupPlanInfo `json:"gcpBackupPlanInfo,omitempty"` + // Labels: Optional. Resource labels to represent user provided metadata. No + // labels currently defined. + Labels map[string]string `json:"labels,omitempty"` + // Name: Output only. Name of the resource. + Name string `json:"name,omitempty"` + // ResourceSizeBytes: Output only. source resource size in bytes at the time of + // the backup. + ResourceSizeBytes int64 `json:"resourceSizeBytes,omitempty,string"` + // ServiceLocks: Output only. The list of BackupLocks taken by the service to + // prevent the deletion of the backup. + ServiceLocks []*BackupLock `json:"serviceLocks,omitempty"` + // State: Output only. The Backup resource instance state. + // + // Possible values: + // "STATE_UNSPECIFIED" - State not set. + // "CREATING" - The backup is being created. + // "ACTIVE" - The backup has been created and is fully usable. + // "DELETING" - The backup is being deleted. + // "ERROR" - The backup is experiencing an issue and might be unusable. + State string `json:"state,omitempty"` + // UpdateTime: Output only. The time when the instance was updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. + // "BackupApplianceBackupProperties") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BackupApplianceBackupProperties") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *Backup) MarshalJSON() ([]byte, error) { + type NoMethod Backup + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// BackupApplianceBackupConfig: BackupApplianceBackupConfig captures the backup +// configuration for applications that are protected by Backup Appliances. +type BackupApplianceBackupConfig struct { + // ApplicationName: The name of the application. + ApplicationName string `json:"applicationName,omitempty"` + // BackupApplianceId: The ID of the backup appliance. + BackupApplianceId int64 `json:"backupApplianceId,omitempty,string"` + // BackupApplianceName: The name of the backup appliance. + BackupApplianceName string `json:"backupApplianceName,omitempty"` + // HostName: The name of the host where the application is running. + HostName string `json:"hostName,omitempty"` + // SlaId: The ID of the SLA of this application. + SlaId int64 `json:"slaId,omitempty,string"` + // SlpName: The name of the SLP associated with the application. + SlpName string `json:"slpName,omitempty"` + // SltName: The name of the SLT associated with the application. + SltName string `json:"sltName,omitempty"` + // ForceSendFields is a list of field names (e.g. "ApplicationName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ApplicationName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *BackupApplianceBackupConfig) MarshalJSON() ([]byte, error) { + type NoMethod BackupApplianceBackupConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// BackupApplianceBackupProperties: BackupApplianceBackupProperties represents +// BackupDR backup appliance's properties. +type BackupApplianceBackupProperties struct { + // FinalizeTime: Output only. The time when this backup object was finalized + // (if none, backup is not finalized). + FinalizeTime string `json:"finalizeTime,omitempty"` + // GenerationId: Output only. The numeric generation ID of the backup + // (monotonically increasing). + GenerationId int64 `json:"generationId,omitempty"` + // RecoveryRangeEndTime: Optional. The latest timestamp of data available in + // this Backup. + RecoveryRangeEndTime string `json:"recoveryRangeEndTime,omitempty"` + // RecoveryRangeStartTime: Optional. The earliest timestamp of data available + // in this Backup. + RecoveryRangeStartTime string `json:"recoveryRangeStartTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "FinalizeTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "FinalizeTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *BackupApplianceBackupProperties) MarshalJSON() ([]byte, error) { + type NoMethod BackupApplianceBackupProperties + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// BackupApplianceLockInfo: BackupApplianceLockInfo contains metadata about the +// backupappliance that created the lock. +type BackupApplianceLockInfo struct { + // BackupApplianceId: Required. The ID of the backup/recovery appliance that + // created this lock. + BackupApplianceId int64 `json:"backupApplianceId,omitempty,string"` + // BackupApplianceName: Required. The name of the backup/recovery appliance + // that created this lock. + BackupApplianceName string `json:"backupApplianceName,omitempty"` + // BackupImage: The image name that depends on this Backup. + BackupImage string `json:"backupImage,omitempty"` + // JobName: The job name on the backup/recovery appliance that created this + // lock. + JobName string `json:"jobName,omitempty"` + // LockReason: Required. The reason for the lock: e.g. + // MOUNT/RESTORE/BACKUP/etc. The value of this string is only meaningful to the + // client and it is not interpreted by the BackupVault service. + LockReason string `json:"lockReason,omitempty"` + // SlaId: The SLA on the backup/recovery appliance that owns the lock. + SlaId int64 `json:"slaId,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "BackupApplianceId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BackupApplianceId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *BackupApplianceLockInfo) MarshalJSON() ([]byte, error) { + type NoMethod BackupApplianceLockInfo + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// BackupConfigInfo: BackupConfigInfo has information about how the resource is +// configured for Backup and about the most recent backup to this vault. +type BackupConfigInfo struct { + // BackupApplianceBackupConfig: Configuration for an application backed up by a + // Backup Appliance. + BackupApplianceBackupConfig *BackupApplianceBackupConfig `json:"backupApplianceBackupConfig,omitempty"` + // GcpBackupConfig: Configuration for a Google Cloud resource. + GcpBackupConfig *GcpBackupConfig `json:"gcpBackupConfig,omitempty"` + // LastBackupError: Output only. If the last backup failed, this field has the + // error message. + LastBackupError *Status `json:"lastBackupError,omitempty"` + // LastBackupState: Output only. The status of the last backup to this + // BackupVault + // + // Possible values: + // "LAST_BACKUP_STATE_UNSPECIFIED" - Status not set. + // "FIRST_BACKUP_PENDING" - The first backup has not yet completed + // "SUCCEEDED" - The most recent backup was successful + // "FAILED" - The most recent backup failed + // "PERMISSION_DENIED" - The most recent backup could not be run/failed + // because of the lack of permissions + LastBackupState string `json:"lastBackupState,omitempty"` + // LastSuccessfulBackupConsistencyTime: Output only. If the last backup were + // successful, this field has the consistency date. + LastSuccessfulBackupConsistencyTime string `json:"lastSuccessfulBackupConsistencyTime,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "BackupApplianceBackupConfig") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BackupApplianceBackupConfig") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *BackupConfigInfo) MarshalJSON() ([]byte, error) { + type NoMethod BackupConfigInfo + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// BackupLock: BackupLock represents a single lock on a Backup resource. An +// unexpired lock on a Backup prevents the Backup from being deleted. +type BackupLock struct { + // BackupApplianceLockInfo: If the client is a backup and recovery appliance, + // this contains metadata about why the lock exists. + BackupApplianceLockInfo *BackupApplianceLockInfo `json:"backupApplianceLockInfo,omitempty"` + // LockUntilTime: Required. The time after which this lock is not considered + // valid and will no longer protect the Backup from deletion. + LockUntilTime string `json:"lockUntilTime,omitempty"` + // ServiceLockInfo: Output only. Contains metadata about the lock exist for + // Google Cloud native backups. + ServiceLockInfo *ServiceLockInfo `json:"serviceLockInfo,omitempty"` + // ForceSendFields is a list of field names (e.g. "BackupApplianceLockInfo") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BackupApplianceLockInfo") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *BackupLock) MarshalJSON() ([]byte, error) { + type NoMethod BackupLock + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// BackupVault: Message describing a BackupVault object. +type BackupVault struct { + // Annotations: Optional. User annotations. See + // https://google.aip.dev/128#annotations Stores small amounts of arbitrary + // data. + Annotations map[string]string `json:"annotations,omitempty"` + // BackupCount: Output only. The number of backups in this backup vault. + BackupCount int64 `json:"backupCount,omitempty,string"` + // BackupMinimumEnforcedRetentionDuration: Required. The default and minimum + // enforced retention for each backup within the backup vault. The enforced + // retention for each backup can be extended. + BackupMinimumEnforcedRetentionDuration string `json:"backupMinimumEnforcedRetentionDuration,omitempty"` + // CreateTime: Output only. The time when the instance was created. + CreateTime string `json:"createTime,omitempty"` + // Deletable: Output only. Set to true when there are no backups nested under + // this resource. + Deletable bool `json:"deletable,omitempty"` + // Description: Optional. The description of the BackupVault instance (2048 + // characters or less). + Description string `json:"description,omitempty"` + // EffectiveTime: Optional. Time after which the BackupVault resource is + // locked. + EffectiveTime string `json:"effectiveTime,omitempty"` + // EnforcedRetentionDuration: Required. The default retention period for each + // backup in the backup vault (Deprecated). + EnforcedRetentionDuration string `json:"enforcedRetentionDuration,omitempty"` + // Etag: Optional. Server specified ETag for the backup vault resource to + // prevent simultaneous updates from overwiting each other. + Etag string `json:"etag,omitempty"` + // Labels: Optional. Resource labels to represent user provided metadata. No + // labels currently defined: + Labels map[string]string `json:"labels,omitempty"` + // Name: Output only. The resource name. + Name string `json:"name,omitempty"` + // ServiceAccount: Output only. Service account used by the BackupVault Service + // for this BackupVault. The user should grant this account permissions in + // their workload project to enable the service to run backups and restores + // there. + ServiceAccount string `json:"serviceAccount,omitempty"` + // State: Output only. The BackupVault resource instance state. + // + // Possible values: + // "STATE_UNSPECIFIED" - State not set. + // "CREATING" - The backup vault is being created. + // "ACTIVE" - The backup vault has been created and is fully usable. + // "DELETING" - The backup vault is being deleted. + // "ERROR" - The backup vault is experiencing an issue and might be unusable. + State string `json:"state,omitempty"` + // TotalStoredBytes: Output only. Total size of the storage used by all backup + // resources. + TotalStoredBytes int64 `json:"totalStoredBytes,omitempty,string"` + // Uid: Output only. Output only Immutable after resource creation until + // resource deletion. + Uid string `json:"uid,omitempty"` + // UpdateTime: Output only. The time when the instance was updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Annotations") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Annotations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *BackupVault) MarshalJSON() ([]byte, error) { + type NoMethod BackupVault + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // Binding: Associates `members`, or principals, with a `role`. type Binding struct { // Condition: The condition that is associated with this binding. If the @@ -378,24 +974,340 @@ func (s *Binding) MarshalJSON() ([]byte, error) { type CancelOperationRequest struct { } -// Empty: A generic empty message that you can re-use to avoid defining -// duplicated empty messages in your APIs. A typical example is to use it as -// the request or the response type of an API method. For instance: service Foo -// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } -type Empty struct { - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` +// ComputeInstanceBackupProperties: ComputeInstanceBackupProperties represents +// Compute Engine instance backup properties. +type ComputeInstanceBackupProperties struct { + // CanIpForward: Enables instances created based on these properties to send + // packets with source IP addresses other than their own and receive packets + // with destination IP addresses other than their own. If these instances will + // be used as an IP gateway or it will be set as the next-hop in a Route + // resource, specify `true`. If unsure, leave this set to `false`. See the + // https://cloud.google.com/vpc/docs/using-routes#canipforward documentation + // for more information. + CanIpForward bool `json:"canIpForward,omitempty"` + // Description: An optional text description for the instances that are created + // from these properties. + Description string `json:"description,omitempty"` + // Disk: An array of disks that are associated with the instances that are + // created from these properties. + Disk []*AttachedDisk `json:"disk,omitempty"` + // GuestAccelerator: A list of guest accelerator cards' type and count to use + // for instances created from these properties. + GuestAccelerator []*AcceleratorConfig `json:"guestAccelerator,omitempty"` + // KeyRevocationActionType: KeyRevocationActionType of the instance. Supported + // options are "STOP" and "NONE". The default value is "NONE" if it is not + // specified. + // + // Possible values: + // "KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED" - Default value. This value is + // unused. + // "NONE" - Indicates user chose no operation. + // "STOP" - Indicates user chose to opt for VM shutdown on key revocation. + KeyRevocationActionType string `json:"keyRevocationActionType,omitempty"` + // MachineType: The machine type to use for instances that are created from + // these properties. + MachineType string `json:"machineType,omitempty"` + // Metadata: The metadata key/value pairs to assign to instances that are + // created from these properties. These pairs can consist of custom metadata or + // predefined keys. See https://cloud.google.com/compute/docs/metadata/overview + // for more information. + Metadata *Metadata `json:"metadata,omitempty"` + // MinCpuPlatform: Minimum cpu/platform to be used by instances. The instance + // may be scheduled on the specified or newer cpu/platform. Applicable values + // are the friendly names of CPU platforms, such as `minCpuPlatform: Intel + // Haswell` or `minCpuPlatform: Intel Sandy Bridge`. For more information, read + // https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. + MinCpuPlatform string `json:"minCpuPlatform,omitempty"` + // NetworkInterface: An array of network access configurations for this + // interface. + NetworkInterface []*NetworkInterface `json:"networkInterface,omitempty"` + // Scheduling: Specifies the scheduling options for the instances that are + // created from these properties. + Scheduling *Scheduling `json:"scheduling,omitempty"` + // ServiceAccount: A list of service accounts with specified scopes. Access + // tokens for these service accounts are available to the instances that are + // created from these properties. Use metadata queries to obtain the access + // tokens for these instances. + ServiceAccount []*ServiceAccount `json:"serviceAccount,omitempty"` + // SourceInstanceName: Name of the source instance at the time of backup. The + // name is 1-63 characters long, and complies with RFC1035. + SourceInstanceName string `json:"sourceInstanceName,omitempty"` + // Tags: A list of tags to apply to the instances that are created from these + // properties. The tags identify valid sources or targets for network + // firewalls. The setTags method can modify this list of tags. Each tag within + // the list must comply with RFC1035 (https://www.ietf.org/rfc/rfc1035.txt). + Tags *Tags `json:"tags,omitempty"` + // ForceSendFields is a list of field names (e.g. "CanIpForward") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CanIpForward") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` } -// Expr: Represents a textual expression in the Common Expression Language -// (CEL) syntax. CEL is a C-like expression language. The syntax and semantics -// of CEL are documented at https://github.com/google/cel-spec. Example -// (Comparison): title: "Summary size limit" description: "Determines if a -// summary is less than 100 chars" expression: "document.summary.size() < 100" -// Example (Equality): title: "Requestor is owner" description: "Determines if -// requestor is the document owner" expression: "document.owner == -// request.auth.claims.email" Example (Logic): title: "Public documents" -// description: "Determine whether the document should be publicly visible" +func (s *ComputeInstanceBackupProperties) MarshalJSON() ([]byte, error) { + type NoMethod ComputeInstanceBackupProperties + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// ComputeInstanceDataSourceProperties: ComputeInstanceDataSourceProperties +// represents the properties of a ComputeEngine resource that are stored in the +// DataSource. +type ComputeInstanceDataSourceProperties struct { + // Description: The description of the Compute Engine instance. + Description string `json:"description,omitempty"` + // MachineType: The machine type of the instance. + MachineType string `json:"machineType,omitempty"` + // Name: Name of the compute instance backed up by the datasource. + Name string `json:"name,omitempty"` + // TotalDiskCount: The total number of disks attached to the Instance. + TotalDiskCount int64 `json:"totalDiskCount,omitempty,string"` + // TotalDiskSizeGb: The sum of all the disk sizes. + TotalDiskSizeGb int64 `json:"totalDiskSizeGb,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *ComputeInstanceDataSourceProperties) MarshalJSON() ([]byte, error) { + type NoMethod ComputeInstanceDataSourceProperties + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// CustomerEncryptionKey: A customer-supplied encryption key. +type CustomerEncryptionKey struct { + // KmsKeyName: Optional. The name of the encryption key that is stored in + // Google Cloud KMS. + KmsKeyName string `json:"kmsKeyName,omitempty"` + // KmsKeyServiceAccount: Optional. The service account being used for the + // encryption request for the given KMS key. If absent, the Compute Engine + // default service account is used. + KmsKeyServiceAccount string `json:"kmsKeyServiceAccount,omitempty"` + // RawKey: Optional. Specifies a 256-bit customer-supplied encryption key. + RawKey string `json:"rawKey,omitempty"` + // RsaEncryptedKey: Optional. RSA-wrapped 2048-bit customer-supplied encryption + // key to either encrypt or decrypt this resource. + RsaEncryptedKey string `json:"rsaEncryptedKey,omitempty"` + // ForceSendFields is a list of field names (e.g. "KmsKeyName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "KmsKeyName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *CustomerEncryptionKey) MarshalJSON() ([]byte, error) { + type NoMethod CustomerEncryptionKey + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// DataSource: Message describing a DataSource object. Datasource object used +// to represent Datasource details for both admin and basic view. +type DataSource struct { + // BackupConfigInfo: Output only. Details of how the resource is configured for + // backup. + BackupConfigInfo *BackupConfigInfo `json:"backupConfigInfo,omitempty"` + // BackupCount: Number of backups in the data source. + BackupCount int64 `json:"backupCount,omitempty,string"` + // ConfigState: The backup configuration state. + // + // Possible values: + // "BACKUP_CONFIG_STATE_UNSPECIFIED" - The possible states of backup + // configuration. Status not set. + // "ACTIVE" - The data source is actively protected (i.e. there is a + // BackupPlanAssociation or Appliance SLA pointing to it) + // "PASSIVE" - The data source is no longer protected (but may have backups + // under it) + ConfigState string `json:"configState,omitempty"` + // CreateTime: Output only. The time when the instance was created. + CreateTime string `json:"createTime,omitempty"` + // DataSourceBackupApplianceApplication: The backed up resource is a backup + // appliance application. + DataSourceBackupApplianceApplication *DataSourceBackupApplianceApplication `json:"dataSourceBackupApplianceApplication,omitempty"` + // DataSourceGcpResource: The backed up resource is a Google Cloud resource. + // The word 'DataSource' was included in the names to indicate that this is the + // representation of the Google Cloud resource used within the DataSource + // object. + DataSourceGcpResource *DataSourceGcpResource `json:"dataSourceGcpResource,omitempty"` + // Etag: Server specified ETag for the ManagementServer resource to prevent + // simultaneous updates from overwiting each other. + Etag string `json:"etag,omitempty"` + // Labels: Optional. Resource labels to represent user provided metadata. No + // labels currently defined: + Labels map[string]string `json:"labels,omitempty"` + // Name: Output only. The resource name. + Name string `json:"name,omitempty"` + // State: Output only. The DataSource resource instance state. + // + // Possible values: + // "STATE_UNSPECIFIED" - State not set. + // "CREATING" - The data source is being created. + // "ACTIVE" - The data source has been created and is fully usable. + // "DELETING" - The data source is being deleted. + // "ERROR" - The data source is experiencing an issue and might be unusable. + State string `json:"state,omitempty"` + // TotalStoredBytes: The number of bytes (metadata and data) stored in this + // datasource. + TotalStoredBytes int64 `json:"totalStoredBytes,omitempty,string"` + // UpdateTime: Output only. The time when the instance was updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "BackupConfigInfo") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BackupConfigInfo") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *DataSource) MarshalJSON() ([]byte, error) { + type NoMethod DataSource + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// DataSourceBackupApplianceApplication: BackupApplianceApplication describes a +// Source Resource when it is an application backed up by a BackupAppliance. +type DataSourceBackupApplianceApplication struct { + // ApplianceId: Appliance Id of the Backup Appliance. + ApplianceId int64 `json:"applianceId,omitempty,string"` + // ApplicationId: The appid field of the application within the Backup + // Appliance. + ApplicationId int64 `json:"applicationId,omitempty,string"` + // ApplicationName: The name of the Application as known to the Backup + // Appliance. + ApplicationName string `json:"applicationName,omitempty"` + // BackupAppliance: Appliance name. + BackupAppliance string `json:"backupAppliance,omitempty"` + // HostId: Hostid of the application host. + HostId int64 `json:"hostId,omitempty,string"` + // Hostname: Hostname of the host where the application is running. + Hostname string `json:"hostname,omitempty"` + // Type: The type of the application. e.g. VMBackup + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "ApplianceId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ApplianceId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *DataSourceBackupApplianceApplication) MarshalJSON() ([]byte, error) { + type NoMethod DataSourceBackupApplianceApplication + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// DataSourceGcpResource: DataSourceGcpResource is used for protected resources +// that are Google Cloud Resources. This name is easeier to understand than +// GcpResourceDataSource or GcpDataSourceResource +type DataSourceGcpResource struct { + // ComputeInstanceDatasourceProperties: ComputeInstanceDataSourceProperties has + // a subset of Compute Instance properties that are useful at the Datasource + // level. + ComputeInstanceDatasourceProperties *ComputeInstanceDataSourceProperties `json:"computeInstanceDatasourceProperties,omitempty"` + // GcpResourcename: Output only. Full resource pathname URL of the source + // Google Cloud resource. + GcpResourcename string `json:"gcpResourcename,omitempty"` + // Location: Location of the resource: //"global"/"unspecified". + Location string `json:"location,omitempty"` + // Type: The type of the Google Cloud resource. Use the Unified Resource Type, + // eg. compute.googleapis.com/Instance. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "ComputeInstanceDatasourceProperties") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. + // "ComputeInstanceDatasourceProperties") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for + // more details. + NullFields []string `json:"-"` +} + +func (s *DataSourceGcpResource) MarshalJSON() ([]byte, error) { + type NoMethod DataSourceGcpResource + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// Empty: A generic empty message that you can re-use to avoid defining +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } +type Empty struct { + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` +} + +// Entry: A key/value pair to be used for storing metadata. +type Entry struct { + // Key: Optional. Key for the metadata entry. + Key string `json:"key,omitempty"` + // Value: Optional. Value for the metadata entry. These are free-form strings, + // and only have meaning as interpreted by the image running in the instance. + // The only restriction placed on values is that their size must be less than + // or equal to 262144 bytes (256 KiB). + Value string `json:"value,omitempty"` + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *Entry) MarshalJSON() ([]byte, error) { + type NoMethod Entry + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// Expr: Represents a textual expression in the Common Expression Language +// (CEL) syntax. CEL is a C-like expression language. The syntax and semantics +// of CEL are documented at https://github.com/google/cel-spec. Example +// (Comparison): title: "Summary size limit" description: "Determines if a +// summary is less than 100 chars" expression: "document.summary.size() < 100" +// Example (Equality): title: "Requestor is owner" description: "Determines if +// requestor is the document owner" expression: "document.owner == +// request.auth.claims.email" Example (Logic): title: "Public documents" +// description: "Determine whether the document should be publicly visible" // expression: "document.type != 'private' && document.type != 'internal'" // Example (Data Manipulation): title: "Notification string" description: // "Create a notification string with a timestamp." expression: "'New message @@ -435,44 +1347,69 @@ func (s *Expr) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// ListLocationsResponse: The response message for Locations.ListLocations. -type ListLocationsResponse struct { - // Locations: A list of locations that matches the specified filter in the - // request. - Locations []*Location `json:"locations,omitempty"` - // NextPageToken: The standard List next-page token. - NextPageToken string `json:"nextPageToken,omitempty"` +// FetchAccessTokenRequest: Request message for FetchAccessToken. +type FetchAccessTokenRequest struct { + // GenerationId: Required. The generation of the backup to update. + GenerationId int64 `json:"generationId,omitempty"` + // ForceSendFields is a list of field names (e.g. "GenerationId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "GenerationId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *FetchAccessTokenRequest) MarshalJSON() ([]byte, error) { + type NoMethod FetchAccessTokenRequest + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// FetchAccessTokenResponse: Response message for FetchAccessToken. +type FetchAccessTokenResponse struct { + // ExpireTime: The token is valid until this time. + ExpireTime string `json:"expireTime,omitempty"` + // ReadLocation: The location in bucket that can be used for reading. + ReadLocation string `json:"readLocation,omitempty"` + // Token: The downscoped token that was created. + Token string `json:"token,omitempty"` + // WriteLocation: The location in bucket that can be used for writing. + WriteLocation string `json:"writeLocation,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Locations") to + // ForceSendFields is a list of field names (e.g. "ExpireTime") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Locations") to include in API + // NullFields is a list of field names (e.g. "ExpireTime") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListLocationsResponse +func (s *FetchAccessTokenResponse) MarshalJSON() ([]byte, error) { + type NoMethod FetchAccessTokenResponse return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// ListManagementServersResponse: Response message for listing management -// servers. -type ListManagementServersResponse struct { - // ManagementServers: The list of ManagementServer instances in the project for - // the specified location. If the `{location}` value in the request is "-", the +// FetchUsableBackupVaultsResponse: Response message for fetching usable +// BackupVaults. +type FetchUsableBackupVaultsResponse struct { + // BackupVaults: The list of BackupVault instances in the project for the + // specified location. If the '{location}' value in the request is "-", the // response contains a list of instances from all locations. In case any - // location is unreachable, the response will only return management servers in + // location is unreachable, the response will only return backup vaults in // reachable locations and the 'unreachable' field will be populated with a // list of unreachable locations. - ManagementServers []*ManagementServer `json:"managementServers,omitempty"` + BackupVaults []*BackupVault `json:"backupVaults,omitempty"` // NextPageToken: A token identifying a page of results the server should // return. NextPageToken string `json:"nextPageToken,omitempty"` @@ -481,584 +1418,3716 @@ type ListManagementServersResponse struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ManagementServers") to + // ForceSendFields is a list of field names (e.g. "BackupVaults") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ManagementServers") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "BackupVaults") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListManagementServersResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListManagementServersResponse +func (s *FetchUsableBackupVaultsResponse) MarshalJSON() ([]byte, error) { + type NoMethod FetchUsableBackupVaultsResponse return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// ListOperationsResponse: The response message for Operations.ListOperations. -type ListOperationsResponse struct { - // NextPageToken: The standard List next-page token. - NextPageToken string `json:"nextPageToken,omitempty"` - // Operations: A list of operations that matches the specified filter in the - // request. - Operations []*Operation `json:"operations,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to +// FinalizeBackupRequest: Message for finalizing a Backup. +type FinalizeBackupRequest struct { + // BackupId: Required. Resource ID of the Backup resource to be finalized. This + // must be the same backup_id that was used in the InitiateBackupRequest. + BackupId string `json:"backupId,omitempty"` + // ConsistencyTime: The point in time when this backup was captured from the + // source. This will be assigned to the consistency_time field of the newly + // created Backup. + ConsistencyTime string `json:"consistencyTime,omitempty"` + // Description: This will be assigned to the description field of the newly + // created Backup. + Description string `json:"description,omitempty"` + // RecoveryRangeEndTime: The latest timestamp of data available in this Backup. + // This will be set on the newly created Backup. + RecoveryRangeEndTime string `json:"recoveryRangeEndTime,omitempty"` + // RecoveryRangeStartTime: The earliest timestamp of data available in this + // Backup. This will set on the newly created Backup. + RecoveryRangeStartTime string `json:"recoveryRangeStartTime,omitempty"` + // RequestId: Optional. An optional request ID to identify requests. Specify a + // unique request ID so that if you must retry your request, the server will + // know to ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes after the first request. For example, + // consider a situation where you make an initial request and the request times + // out. If you make the request again with the same request ID, the server can + // check if original operation with the same request ID was received, and if + // so, will ignore the second request. This prevents clients from accidentally + // creating duplicate commitments. The request ID must be a valid UUID with the + // exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + RequestId string `json:"requestId,omitempty"` + // RetentionDuration: The ExpireTime on the backup will be set to FinalizeTime + // plus this duration. If the resulting ExpireTime is less than + // EnforcedRetentionEndTime, then ExpireTime is set to + // EnforcedRetentionEndTime. + RetentionDuration string `json:"retentionDuration,omitempty"` + // ForceSendFields is a list of field names (e.g. "BackupId") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // NullFields is a list of field names (e.g. "BackupId") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListOperationsResponse +func (s *FinalizeBackupRequest) MarshalJSON() ([]byte, error) { + type NoMethod FinalizeBackupRequest return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// Location: A resource that represents a Google Cloud location. -type Location struct { - // DisplayName: The friendly name for this location, typically a nearby city - // name. For example, "Tokyo". - DisplayName string `json:"displayName,omitempty"` - // Labels: Cross-service attributes for the location. For example - // {"cloud.googleapis.com/region": "us-east1"} - Labels map[string]string `json:"labels,omitempty"` - // LocationId: The canonical id for this location. For example: "us-east1". - LocationId string `json:"locationId,omitempty"` - // Metadata: Service-specific metadata. For example the available capacity at - // the given location. - Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: Resource name for the location, which may vary between - // implementations. For example: - // "projects/example-project/locations/us-east1" - Name string `json:"name,omitempty"` +// GCPBackupPlanInfo: GCPBackupPlanInfo captures the plan configuration details +// of Google Cloud resources at the time of backup. +type GCPBackupPlanInfo struct { + // BackupPlan: Resource name of backup plan by which workload is protected at + // the time of the backup. Format: + // projects/{project}/locations/{location}/backupPlans/{backupPlanId} + BackupPlan string `json:"backupPlan,omitempty"` + // BackupPlanRuleId: The rule id of the backup plan which triggered this backup + // in case of scheduled backup or used for + BackupPlanRuleId string `json:"backupPlanRuleId,omitempty"` + // ForceSendFields is a list of field names (e.g. "BackupPlan") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BackupPlan") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to +func (s *GCPBackupPlanInfo) MarshalJSON() ([]byte, error) { + type NoMethod GCPBackupPlanInfo + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// GcpBackupConfig: GcpBackupConfig captures the Backup configuration details +// for Google Cloud resources. All Google Cloud resources regardless of type +// are protected with backup plan associations. +type GcpBackupConfig struct { + // BackupPlan: The name of the backup plan. + BackupPlan string `json:"backupPlan,omitempty"` + // BackupPlanAssociation: The name of the backup plan association. + BackupPlanAssociation string `json:"backupPlanAssociation,omitempty"` + // BackupPlanDescription: The description of the backup plan. + BackupPlanDescription string `json:"backupPlanDescription,omitempty"` + // BackupPlanRules: The names of the backup plan rules which point to this + // backupvault + BackupPlanRules []string `json:"backupPlanRules,omitempty"` + // ForceSendFields is a list of field names (e.g. "BackupPlan") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DisplayName") to include in API + // NullFields is a list of field names (e.g. "BackupPlan") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Location) MarshalJSON() ([]byte, error) { - type NoMethod Location +func (s *GcpBackupConfig) MarshalJSON() ([]byte, error) { + type NoMethod GcpBackupConfig return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// ManagementServer: ManagementServer describes a single BackupDR -// ManagementServer instance. -type ManagementServer struct { - // BaProxyUri: Output only. The hostname or ip address of the exposed AGM - // endpoints, used by BAs to connect to BA proxy. - BaProxyUri []string `json:"baProxyUri,omitempty"` - // CreateTime: Output only. The time when the instance was created. - CreateTime string `json:"createTime,omitempty"` - // Description: Optional. The description of the ManagementServer instance - // (2048 characters or less). - Description string `json:"description,omitempty"` - // Etag: Optional. Server specified ETag for the ManagementServer resource to - // prevent simultaneous updates from overwiting each other. - Etag string `json:"etag,omitempty"` - // Labels: Optional. Resource labels to represent user provided metadata. - // Labels currently defined: 1. migrate_from_go= If set to true, the MS is - // created in migration ready mode. - Labels map[string]string `json:"labels,omitempty"` - // ManagementUri: Output only. The hostname or ip address of the exposed AGM - // endpoints, used by clients to connect to AGM/RD graphical user interface and - // APIs. - ManagementUri *ManagementURI `json:"managementUri,omitempty"` - // Name: Output only. Identifier. The resource name. - Name string `json:"name,omitempty"` - // Networks: Required. VPC networks to which the ManagementServer instance is - // connected. For this version, only a single network is supported. - Networks []*NetworkConfig `json:"networks,omitempty"` - // Oauth2ClientId: Output only. The OAuth 2.0 client id is required to make API - // calls to the BackupDR instance API of this ManagementServer. This is the - // value that should be provided in the ‘aud’ field of the OIDC ID Token - // (see openid specification - // https://openid.net/specs/openid-connect-core-1_0.html#IDToken). - Oauth2ClientId string `json:"oauth2ClientId,omitempty"` - // SatisfiesPzi: Output only. Reserved for future use. - SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` - // SatisfiesPzs: Output only. Reserved for future use. - SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` - // State: Output only. The ManagementServer state. +// GuestOsFeature: Feature type of the Guest OS. +type GuestOsFeature struct { + // Type: The ID of a supported feature. // // Possible values: - // "INSTANCE_STATE_UNSPECIFIED" - State not set. - // "CREATING" - The instance is being created. - // "READY" - The instance has been created and is fully usable. - // "UPDATING" - The instance configuration is being updated. Certain kinds of - // updates may cause the instance to become unusable while the update is in - // progress. - // "DELETING" - The instance is being deleted. - // "REPAIRING" - The instance is being repaired and may be unstable. - // "MAINTENANCE" - Maintenance is being performed on this instance. - // "ERROR" - The instance is experiencing an issue and might be unusable. You - // can get further details from the statusMessage field of Instance resource. - State string `json:"state,omitempty"` - // Type: Optional. The type of the ManagementServer resource. - // - // Possible values: - // "INSTANCE_TYPE_UNSPECIFIED" - Instance type is not mentioned. - // "BACKUP_RESTORE" - Instance for backup and restore management (i.e., AGM). + // "FEATURE_TYPE_UNSPECIFIED" - Default value, which is unused. + // "VIRTIO_SCSI_MULTIQUEUE" - VIRTIO_SCSI_MULTIQUEUE feature type. + // "WINDOWS" - WINDOWS feature type. + // "MULTI_IP_SUBNET" - MULTI_IP_SUBNET feature type. + // "UEFI_COMPATIBLE" - UEFI_COMPATIBLE feature type. + // "SECURE_BOOT" - SECURE_BOOT feature type. + // "GVNIC" - GVNIC feature type. + // "SEV_CAPABLE" - SEV_CAPABLE feature type. + // "BARE_METAL_LINUX_COMPATIBLE" - BARE_METAL_LINUX_COMPATIBLE feature type. + // "SUSPEND_RESUME_COMPATIBLE" - SUSPEND_RESUME_COMPATIBLE feature type. + // "SEV_LIVE_MIGRATABLE" - SEV_LIVE_MIGRATABLE feature type. + // "SEV_SNP_CAPABLE" - SEV_SNP_CAPABLE feature type. + // "TDX_CAPABLE" - TDX_CAPABLE feature type. + // "IDPF" - IDPF feature type. + // "SEV_LIVE_MIGRATABLE_V2" - SEV_LIVE_MIGRATABLE_V2 feature type. Type string `json:"type,omitempty"` - // UpdateTime: Output only. The time when the instance was updated. - UpdateTime string `json:"updateTime,omitempty"` - // WorkforceIdentityBasedManagementUri: Output only. The hostnames of the - // exposed AGM endpoints for both types of user i.e. 1p and 3p, used to connect - // AGM/RM UI. - WorkforceIdentityBasedManagementUri *WorkforceIdentityBasedManagementURI `json:"workforceIdentityBasedManagementUri,omitempty"` - // WorkforceIdentityBasedOauth2ClientId: Output only. The OAuth client IDs for - // both types of user i.e. 1p and 3p. - WorkforceIdentityBasedOauth2ClientId *WorkforceIdentityBasedOAuth2ClientID `json:"workforceIdentityBasedOauth2ClientId,omitempty"` + // ForceSendFields is a list of field names (e.g. "Type") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Type") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "BaProxyUri") to +func (s *GuestOsFeature) MarshalJSON() ([]byte, error) { + type NoMethod GuestOsFeature + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// InitializeParams: Specifies the parameters to initialize this disk. +type InitializeParams struct { + // DiskName: Optional. Specifies the disk name. If not specified, the default + // is to use the name of the instance. + DiskName string `json:"diskName,omitempty"` + // ReplicaZones: Optional. URL of the zone where the disk should be created. + // Required for each regional disk associated with the instance. + ReplicaZones []string `json:"replicaZones,omitempty"` + // ForceSendFields is a list of field names (e.g. "DiskName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BaProxyUri") to include in API + // NullFields is a list of field names (e.g. "DiskName") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagementServer) MarshalJSON() ([]byte, error) { - type NoMethod ManagementServer +func (s *InitializeParams) MarshalJSON() ([]byte, error) { + type NoMethod InitializeParams return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// ManagementURI: ManagementURI for the Management Server resource. -type ManagementURI struct { - // Api: Output only. The ManagementServer AGM/RD API URL. - Api string `json:"api,omitempty"` - // WebUi: Output only. The ManagementServer AGM/RD WebUI URL. - WebUi string `json:"webUi,omitempty"` - // ForceSendFields is a list of field names (e.g. "Api") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// InitiateBackupRequest: request message for InitiateBackup. +type InitiateBackupRequest struct { + // BackupId: Required. Resource ID of the Backup resource. + BackupId string `json:"backupId,omitempty"` + // RequestId: Optional. An optional request ID to identify requests. Specify a + // unique request ID so that if you must retry your request, the server will + // know to ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. For example, + // consider a situation where you make an initial request and the request times + // out. If you make the request again with the same request ID, the server can + // check if original operation with the same request ID was received, and if + // so, will ignore the second request. This prevents clients from accidentally + // creating duplicate commitments. The request ID must be a valid UUID with the + // exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + RequestId string `json:"requestId,omitempty"` + // ForceSendFields is a list of field names (e.g. "BackupId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Api") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "BackupId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *ManagementURI) MarshalJSON() ([]byte, error) { - type NoMethod ManagementURI +func (s *InitiateBackupRequest) MarshalJSON() ([]byte, error) { + type NoMethod InitiateBackupRequest return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// NetworkConfig: Network configuration for ManagementServer instance. -type NetworkConfig struct { - // Network: Optional. The resource name of the Google Compute Engine VPC - // network to which the ManagementServer instance is connected. - Network string `json:"network,omitempty"` - // PeeringMode: Optional. The network connect mode of the ManagementServer - // instance. For this version, only PRIVATE_SERVICE_ACCESS is supported. - // - // Possible values: - // "PEERING_MODE_UNSPECIFIED" - Peering mode not set. - // "PRIVATE_SERVICE_ACCESS" - Connect using Private Service Access to the - // Management Server. Private services access provides an IP address range for - // multiple Google Cloud services, including Cloud BackupDR. - PeeringMode string `json:"peeringMode,omitempty"` - // ForceSendFields is a list of field names (e.g. "Network") to unconditionally +// InitiateBackupResponse: Response message for InitiateBackup. +type InitiateBackupResponse struct { + // Backup: The name of the backup that was created. + Backup string `json:"backup,omitempty"` + // BaseBackupGenerationId: The generation id of the base backup. It is needed + // for the incremental backups. + BaseBackupGenerationId int64 `json:"baseBackupGenerationId,omitempty"` + // NewBackupGenerationId: The generation id of the new backup. + NewBackupGenerationId int64 `json:"newBackupGenerationId,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Backup") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Network") to include in API + // NullFields is a list of field names (e.g. "Backup") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *NetworkConfig) MarshalJSON() ([]byte, error) { - type NoMethod NetworkConfig +func (s *InitiateBackupResponse) MarshalJSON() ([]byte, error) { + type NoMethod InitiateBackupResponse return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is the -// result of a network API call. -type Operation struct { - // Done: If the value is `false`, it means the operation is still in progress. - // If `true`, the operation is completed, and either `error` or `response` is - // available. - Done bool `json:"done,omitempty"` - // Error: The error result of the operation in case of failure or cancellation. - Error *Status `json:"error,omitempty"` - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as create - // time. Some services might not provide such metadata. Any method that returns - // a long-running operation should document the metadata type, if any. - Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // Name: The server-assigned name, which is only unique within the same service - // that originally returns it. If you use the default HTTP mapping, the `name` - // should be a resource name ending with `operations/{unique_id}`. - Name string `json:"name,omitempty"` - // Response: The normal, successful response of the operation. If the original - // method returns no data on success, such as `Delete`, the response is - // `google.protobuf.Empty`. If the original method is standard - // `Get`/`Create`/`Update`, the response should be the resource. For other - // methods, the response should have the type `XxxResponse`, where `Xxx` is the - // original method name. For example, if the original method name is - // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. - Response googleapi.RawMessage `json:"response,omitempty"` +// ListBackupVaultsResponse: Response message for listing BackupVaults. +type ListBackupVaultsResponse struct { + // BackupVaults: The list of BackupVault instances in the project for the + // specified location. If the '{location}' value in the request is "-", the + // response contains a list of instances from all locations. In case any + // location is unreachable, the response will only return backup vaults in + // reachable locations and the 'unreachable' field will be populated with a + // list of unreachable locations. + BackupVaults []*BackupVault `json:"backupVaults,omitempty"` + // NextPageToken: A token identifying a page of results the server should + // return. + NextPageToken string `json:"nextPageToken,omitempty"` + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Done") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "BackupVaults") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Done") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "BackupVaults") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { - type NoMethod Operation +func (s *ListBackupVaultsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListBackupVaultsResponse return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// OperationMetadata: Represents the metadata of the long-running operation. -type OperationMetadata struct { - // AdditionalInfo: Output only. AdditionalInfo contains additional Info related - // to backup plan association resource. - AdditionalInfo map[string]string `json:"additionalInfo,omitempty"` - // ApiVersion: Output only. API version used to start the operation. - ApiVersion string `json:"apiVersion,omitempty"` - // CreateTime: Output only. The time the operation was created. - CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. - EndTime string `json:"endTime,omitempty"` - // RequestedCancellation: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have successfully - // been cancelled have Operation.error value with a google.rpc.Status.code of - // 1, corresponding to `Code.CANCELLED`. - RequestedCancellation bool `json:"requestedCancellation,omitempty"` - // StatusMessage: Output only. Human-readable status of the operation, if any. - StatusMessage string `json:"statusMessage,omitempty"` - // Target: Output only. Server-defined resource path for the target of the - // operation. - Target string `json:"target,omitempty"` - // Verb: Output only. Name of the verb executed by the operation. - Verb string `json:"verb,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdditionalInfo") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See +// ListBackupsResponse: Response message for listing Backups. +type ListBackupsResponse struct { + // Backups: The list of Backup instances in the project for the specified + // location. If the '{location}' value in the request is "-", the response + // contains a list of instances from all locations. In case any location is + // unreachable, the response will only return data sources in reachable + // locations and the 'unreachable' field will be populated with a list of + // unreachable locations. + Backups []*Backup `json:"backups,omitempty"` + // NextPageToken: A token identifying a page of results the server should + // return. + NextPageToken string `json:"nextPageToken,omitempty"` + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Backups") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AdditionalInfo") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "Backups") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *OperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod OperationMetadata +func (s *ListBackupsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListBackupsResponse return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// Policy: An Identity and Access Management (IAM) policy, which specifies -// access controls for Google Cloud resources. A `Policy` is a collection of -// `bindings`. A `binding` binds one or more `members`, or principals, to a -// single `role`. Principals can be user accounts, service accounts, Google -// groups, and domains (such as G Suite). A `role` is a named list of -// permissions; each `role` can be an IAM predefined role or a user-created -// custom role. For some types of Google Cloud resources, a `binding` can also -// specify a `condition`, which is a logical expression that allows access to a -// resource only if the expression evaluates to `true`. A condition can add -// constraints based on attributes of the request, the resource, or both. To -// learn which resources support conditions in their IAM policies, see the IAM -// documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON -// example:** ``` { "bindings": [ { "role": -// "roles/resourcemanager.organizationAdmin", "members": [ -// "user:mike@example.com", "group:admins@example.com", "domain:google.com", -// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": -// "roles/resourcemanager.organizationViewer", "members": [ -// "user:eve@example.com" ], "condition": { "title": "expirable access", -// "description": "Does not grant access after Sep 2020", "expression": -// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": -// "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - -// members: - user:mike@example.com - group:admins@example.com - -// domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com -// role: roles/resourcemanager.organizationAdmin - members: - -// user:eve@example.com role: roles/resourcemanager.organizationViewer -// condition: title: expirable access description: Does not grant access after -// Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') -// etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, -// see the IAM documentation (https://cloud.google.com/iam/docs/). -type Policy struct { - // AuditConfigs: Specifies cloud audit logging configuration for this policy. - AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"` - // Bindings: Associates a list of `members`, or principals, with a `role`. - // Optionally, may specify a `condition` that determines how and when the - // `bindings` are applied. Each of the `bindings` must contain at least one - // principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; - // up to 250 of these principals can be Google groups. Each occurrence of a - // principal counts towards these limits. For example, if the `bindings` grant - // 50 different roles to `user:alice@example.com`, and not to any other - // principal, then you can add another 1,450 principals to the `bindings` in - // the `Policy`. - Bindings []*Binding `json:"bindings,omitempty"` - // Etag: `etag` is used for optimistic concurrency control as a way to help - // prevent simultaneous updates of a policy from overwriting each other. It is - // strongly suggested that systems make use of the `etag` in the - // read-modify-write cycle to perform policy updates in order to avoid race - // conditions: An `etag` is returned in the response to `getIamPolicy`, and - // systems are expected to put that etag in the request to `setIamPolicy` to - // ensure that their change will be applied to the same version of the policy. - // **Important:** If you use IAM Conditions, you must include the `etag` field - // whenever you call `setIamPolicy`. If you omit this field, then IAM allows - // you to overwrite a version `3` policy with a version `1` policy, and all of - // the conditions in the version `3` policy are lost. - Etag string `json:"etag,omitempty"` - // Version: Specifies the format of the policy. Valid values are `0`, `1`, and - // `3`. Requests that specify an invalid value are rejected. Any operation that - // affects conditional role bindings must specify version `3`. This requirement - // applies to the following operations: * Getting a policy that includes a - // conditional role binding * Adding a conditional role binding to a policy * - // Changing a conditional role binding in a policy * Removing any role binding, - // with or without a condition, from a policy that includes conditions - // **Important:** If you use IAM Conditions, you must include the `etag` field - // whenever you call `setIamPolicy`. If you omit this field, then IAM allows - // you to overwrite a version `3` policy with a version `1` policy, and all of - // the conditions in the version `3` policy are lost. If a policy does not - // include any conditions, operations on that policy may specify any valid - // version or leave the field unset. To learn which resources support - // conditions in their IAM policies, see the IAM documentation - // (https://cloud.google.com/iam/help/conditions/resource-policies). - Version int64 `json:"version,omitempty"` +// ListDataSourcesResponse: Response message for listing DataSources. +type ListDataSourcesResponse struct { + // DataSources: The list of DataSource instances in the project for the + // specified location. If the '{location}' value in the request is "-", the + // response contains a list of instances from all locations. In case any + // location is unreachable, the response will only return data sources in + // reachable locations and the 'unreachable' field will be populated with a + // list of unreachable locations. + DataSources []*DataSource `json:"dataSources,omitempty"` + // NextPageToken: A token identifying a page of results the server should + // return. + NextPageToken string `json:"nextPageToken,omitempty"` + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AuditConfigs") to + // ForceSendFields is a list of field names (e.g. "DataSources") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AuditConfigs") to include in API + // NullFields is a list of field names (e.g. "DataSources") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Policy) MarshalJSON() ([]byte, error) { - type NoMethod Policy +func (s *ListDataSourcesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListDataSourcesResponse return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// SetIamPolicyRequest: Request message for `SetIamPolicy` method. -type SetIamPolicyRequest struct { - // Policy: REQUIRED: The complete policy to be applied to the `resource`. The - // size of the policy is limited to a few 10s of KB. An empty policy is a valid - // policy but certain Google Cloud services (such as Projects) might reject - // them. - Policy *Policy `json:"policy,omitempty"` - // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to - // modify. Only the fields in the mask will be modified. If no mask is - // provided, the following default mask is used: `paths: "bindings, etag" - UpdateMask string `json:"updateMask,omitempty"` - // ForceSendFields is a list of field names (e.g. "Policy") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// ListLocationsResponse: The response message for Locations.ListLocations. +type ListLocationsResponse struct { + // Locations: A list of locations that matches the specified filter in the + // request. + Locations []*Location `json:"locations,omitempty"` + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Locations") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Policy") to include in API + // NullFields is a list of field names (e.g. "Locations") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { - type NoMethod SetIamPolicyRequest +func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListLocationsResponse return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// Status: The `Status` type defines a logical error model that is suitable for -// different programming environments, including REST APIs and RPC APIs. It is -// used by gRPC (https://github.com/grpc). Each `Status` message contains three -// pieces of data: error code, error message, and error details. You can find -// out more about this error model and how to work with it in the API Design -// Guide (https://cloud.google.com/apis/design/errors). -type Status struct { - // Code: The status code, which should be an enum value of google.rpc.Code. - Code int64 `json:"code,omitempty"` - // Details: A list of messages that carry the error details. There is a common - // set of message types for APIs to use. - Details []googleapi.RawMessage `json:"details,omitempty"` - // Message: A developer-facing error message, which should be in English. Any - // user-facing error message should be localized and sent in the - // google.rpc.Status.details field, or localized by the client. - Message string `json:"message,omitempty"` - // ForceSendFields is a list of field names (e.g. "Code") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See +// ListManagementServersResponse: Response message for listing management +// servers. +type ListManagementServersResponse struct { + // ManagementServers: The list of ManagementServer instances in the project for + // the specified location. If the '{location}' value in the request is "-", the + // response contains a list of instances from all locations. In case any + // location is unreachable, the response will only return management servers in + // reachable locations and the 'unreachable' field will be populated with a + // list of unreachable locations. + ManagementServers []*ManagementServer `json:"managementServers,omitempty"` + // NextPageToken: A token identifying a page of results the server should + // return. + NextPageToken string `json:"nextPageToken,omitempty"` + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "ManagementServers") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Code") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "ManagementServers") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { - type NoMethod Status +func (s *ListManagementServersResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListManagementServersResponse return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// TestIamPermissionsRequest: Request message for `TestIamPermissions` method. -type TestIamPermissionsRequest struct { - // Permissions: The set of permissions to check for the `resource`. Permissions - // with wildcards (such as `*` or `storage.*`) are not allowed. For more - // information see IAM Overview - // (https://cloud.google.com/iam/docs/overview#permissions). - Permissions []string `json:"permissions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Permissions") to +// ListOperationsResponse: The response message for Operations.ListOperations. +type ListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + // Operations: A list of operations that matches the specified filter in the + // request. + Operations []*Operation `json:"operations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Permissions") to include in API + // NullFields is a list of field names (e.g. "NextPageToken") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { - type NoMethod TestIamPermissionsRequest +func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListOperationsResponse return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// TestIamPermissionsResponse: Response message for `TestIamPermissions` -// method. -type TestIamPermissionsResponse struct { - // Permissions: A subset of `TestPermissionsRequest.permissions` that the - // caller is allowed. - Permissions []string `json:"permissions,omitempty"` +// Location: A resource that represents a Google Cloud location. +type Location struct { + // DisplayName: The friendly name for this location, typically a nearby city + // name. For example, "Tokyo". + DisplayName string `json:"displayName,omitempty"` + // Labels: Cross-service attributes for the location. For example + // {"cloud.googleapis.com/region": "us-east1"} + Labels map[string]string `json:"labels,omitempty"` + // LocationId: The canonical id for this location. For example: "us-east1". + LocationId string `json:"locationId,omitempty"` + // Metadata: Service-specific metadata. For example the available capacity at + // the given location. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + // Name: Resource name for the location, which may vary between + // implementations. For example: + // "projects/example-project/locations/us-east1" + Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Permissions") to + // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Permissions") to include in API + // NullFields is a list of field names (e.g. "DisplayName") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { - type NoMethod TestIamPermissionsResponse +func (s *Location) MarshalJSON() ([]byte, error) { + type NoMethod Location return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// WorkforceIdentityBasedManagementURI: ManagementURI depending on the -// Workforce Identity i.e. either 1p or 3p. -type WorkforceIdentityBasedManagementURI struct { - // FirstPartyManagementUri: Output only. First party Management URI for Google - // Identities. - FirstPartyManagementUri string `json:"firstPartyManagementUri,omitempty"` - // ThirdPartyManagementUri: Output only. Third party Management URI for - // External Identity Providers. - ThirdPartyManagementUri string `json:"thirdPartyManagementUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "FirstPartyManagementUri") to +// ManagementServer: ManagementServer describes a single BackupDR +// ManagementServer instance. +type ManagementServer struct { + // BaProxyUri: Output only. The hostname or ip address of the exposed AGM + // endpoints, used by BAs to connect to BA proxy. + BaProxyUri []string `json:"baProxyUri,omitempty"` + // CreateTime: Output only. The time when the instance was created. + CreateTime string `json:"createTime,omitempty"` + // Description: Optional. The description of the ManagementServer instance + // (2048 characters or less). + Description string `json:"description,omitempty"` + // Etag: Optional. Server specified ETag for the ManagementServer resource to + // prevent simultaneous updates from overwiting each other. + Etag string `json:"etag,omitempty"` + // Labels: Optional. Resource labels to represent user provided metadata. + // Labels currently defined: 1. migrate_from_go= If set to true, the MS is + // created in migration ready mode. + Labels map[string]string `json:"labels,omitempty"` + // ManagementUri: Output only. The hostname or ip address of the exposed AGM + // endpoints, used by clients to connect to AGM/RD graphical user interface and + // APIs. + ManagementUri *ManagementURI `json:"managementUri,omitempty"` + // Name: Output only. Identifier. The resource name. + Name string `json:"name,omitempty"` + // Networks: Required. VPC networks to which the ManagementServer instance is + // connected. For this version, only a single network is supported. + Networks []*NetworkConfig `json:"networks,omitempty"` + // Oauth2ClientId: Output only. The OAuth 2.0 client id is required to make API + // calls to the BackupDR instance API of this ManagementServer. This is the + // value that should be provided in the 'aud' field of the OIDC ID Token (see + // openid specification + // https://openid.net/specs/openid-connect-core-1_0.html#IDToken). + Oauth2ClientId string `json:"oauth2ClientId,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` + // State: Output only. The ManagementServer state. + // + // Possible values: + // "INSTANCE_STATE_UNSPECIFIED" - State not set. + // "CREATING" - The instance is being created. + // "READY" - The instance has been created and is fully usable. + // "UPDATING" - The instance configuration is being updated. Certain kinds of + // updates may cause the instance to become unusable while the update is in + // progress. + // "DELETING" - The instance is being deleted. + // "REPAIRING" - The instance is being repaired and may be unstable. + // "MAINTENANCE" - Maintenance is being performed on this instance. + // "ERROR" - The instance is experiencing an issue and might be unusable. You + // can get further details from the statusMessage field of Instance resource. + State string `json:"state,omitempty"` + // Type: Optional. The type of the ManagementServer resource. + // + // Possible values: + // "INSTANCE_TYPE_UNSPECIFIED" - Instance type is not mentioned. + // "BACKUP_RESTORE" - Instance for backup and restore management (i.e., AGM). + Type string `json:"type,omitempty"` + // UpdateTime: Output only. The time when the instance was updated. + UpdateTime string `json:"updateTime,omitempty"` + // WorkforceIdentityBasedManagementUri: Output only. The hostnames of the + // exposed AGM endpoints for both types of user i.e. 1p and 3p, used to connect + // AGM/RM UI. + WorkforceIdentityBasedManagementUri *WorkforceIdentityBasedManagementURI `json:"workforceIdentityBasedManagementUri,omitempty"` + // WorkforceIdentityBasedOauth2ClientId: Output only. The OAuth client IDs for + // both types of user i.e. 1p and 3p. + WorkforceIdentityBasedOauth2ClientId *WorkforceIdentityBasedOAuth2ClientID `json:"workforceIdentityBasedOauth2ClientId,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "BaProxyUri") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FirstPartyManagementUri") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "BaProxyUri") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *ManagementServer) MarshalJSON() ([]byte, error) { + type NoMethod ManagementServer + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// ManagementURI: ManagementURI for the Management Server resource. +type ManagementURI struct { + // Api: Output only. The ManagementServer AGM/RD API URL. + Api string `json:"api,omitempty"` + // WebUi: Output only. The ManagementServer AGM/RD WebUI URL. + WebUi string `json:"webUi,omitempty"` + // ForceSendFields is a list of field names (e.g. "Api") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Api") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *ManagementURI) MarshalJSON() ([]byte, error) { + type NoMethod ManagementURI + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// Metadata: A metadata key/value entry. +type Metadata struct { + // Items: Optional. Array of key/value pairs. The total size of all keys and + // values must be less than 512 KB. + Items []*Entry `json:"items,omitempty"` + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Items") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s *WorkforceIdentityBasedManagementURI) MarshalJSON() ([]byte, error) { - type NoMethod WorkforceIdentityBasedManagementURI - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +func (s *Metadata) MarshalJSON() ([]byte, error) { + type NoMethod Metadata + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// NetworkConfig: Network configuration for ManagementServer instance. +type NetworkConfig struct { + // Network: Optional. The resource name of the Google Compute Engine VPC + // network to which the ManagementServer instance is connected. + Network string `json:"network,omitempty"` + // PeeringMode: Optional. The network connect mode of the ManagementServer + // instance. For this version, only PRIVATE_SERVICE_ACCESS is supported. + // + // Possible values: + // "PEERING_MODE_UNSPECIFIED" - Peering mode not set. + // "PRIVATE_SERVICE_ACCESS" - Connect using Private Service Access to the + // Management Server. Private services access provides an IP address range for + // multiple Google Cloud services, including Cloud BackupDR. + PeeringMode string `json:"peeringMode,omitempty"` + // ForceSendFields is a list of field names (e.g. "Network") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Network") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *NetworkConfig) MarshalJSON() ([]byte, error) { + type NoMethod NetworkConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// NetworkInterface: A network interface resource attached to an instance. s +type NetworkInterface struct { + // AccessConfigs: Optional. An array of configurations for this interface. + // Currently, only one access config,ONE_TO_ONE_NAT is supported. If there are + // no accessConfigs specified, then this instance will have no external + // internet access. + AccessConfigs []*AccessConfig `json:"accessConfigs,omitempty"` + // AliasIpRanges: Optional. An array of alias IP ranges for this network + // interface. You can only specify this field for network interfaces in VPC + // networks. + AliasIpRanges []*AliasIpRange `json:"aliasIpRanges,omitempty"` + // InternalIpv6PrefixLength: Optional. The prefix length of the primary + // internal IPv6 range. + InternalIpv6PrefixLength int64 `json:"internalIpv6PrefixLength,omitempty"` + // Ipv6AccessConfigs: Optional. An array of IPv6 access configurations for this + // interface. Currently, only one IPv6 access config, DIRECT_IPV6, is + // supported. If there is no ipv6AccessConfig specified, then this instance + // will have no external IPv6 Internet access. + Ipv6AccessConfigs []*AccessConfig `json:"ipv6AccessConfigs,omitempty"` + // Ipv6AccessType: Optional. [Output Only] One of EXTERNAL, INTERNAL to + // indicate whether the IP can be accessed from the Internet. This field is + // always inherited from its subnetwork. + // + // Possible values: + // "UNSPECIFIED_IPV6_ACCESS_TYPE" - IPv6 access type not set. Means this + // network interface hasn't been turned on IPv6 yet. + // "INTERNAL" - This network interface can have internal IPv6. + // "EXTERNAL" - This network interface can have external IPv6. + Ipv6AccessType string `json:"ipv6AccessType,omitempty"` + // Ipv6Address: Optional. An IPv6 internal network address for this network + // interface. To use a static internal IP address, it must be unused and in the + // same region as the instance's zone. If not specified, Google Cloud will + // automatically assign an internal IPv6 address from the instance's + // subnetwork. + Ipv6Address string `json:"ipv6Address,omitempty"` + // Name: Output only. [Output Only] The name of the network interface, which is + // generated by the server. + Name string `json:"name,omitempty"` + // Network: Optional. URL of the VPC network resource for this instance. + Network string `json:"network,omitempty"` + // NetworkAttachment: Optional. The URL of the network attachment that this + // interface should connect to in the following format: + // projects/{project_number}/regions/{region_name}/networkAttachments/{network_a + // ttachment_name}. + NetworkAttachment string `json:"networkAttachment,omitempty"` + // NetworkIP: Optional. An IPv4 internal IP address to assign to the instance + // for this network interface. If not specified by the user, an unused internal + // IP is assigned by the system. + NetworkIP string `json:"networkIP,omitempty"` + // NicType: Optional. The type of vNIC to be used on this interface. This may + // be gVNIC or VirtioNet. + // + // Possible values: + // "NIC_TYPE_UNSPECIFIED" - Default should be NIC_TYPE_UNSPECIFIED. + // "VIRTIO_NET" - VIRTIO + // "GVNIC" - GVNIC + NicType string `json:"nicType,omitempty"` + // QueueCount: Optional. The networking queue count that's specified by users + // for the network interface. Both Rx and Tx queues will be set to this number. + // It'll be empty if not specified by the users. + QueueCount int64 `json:"queueCount,omitempty"` + // StackType: The stack type for this network interface. + // + // Possible values: + // "STACK_TYPE_UNSPECIFIED" - Default should be STACK_TYPE_UNSPECIFIED. + // "IPV4_ONLY" - The network interface will be assigned IPv4 address. + // "IPV4_IPV6" - The network interface can have both IPv4 and IPv6 addresses. + StackType string `json:"stackType,omitempty"` + // Subnetwork: Optional. The URL of the Subnetwork resource for this instance. + Subnetwork string `json:"subnetwork,omitempty"` + // ForceSendFields is a list of field names (e.g. "AccessConfigs") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AccessConfigs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *NetworkInterface) MarshalJSON() ([]byte, error) { + type NoMethod NetworkInterface + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// NodeAffinity: Node Affinity: the configuration of desired nodes onto which +// this Instance could be scheduled. +type NodeAffinity struct { + // Key: Optional. Corresponds to the label key of Node resource. + Key string `json:"key,omitempty"` + // Operator: Optional. Defines the operation of node selection. + // + // Possible values: + // "OPERATOR_UNSPECIFIED" - Default value. This value is unused. + // "IN" - Requires Compute Engine to seek for matched nodes. + // "NOT_IN" - Requires Compute Engine to avoid certain nodes. + Operator string `json:"operator,omitempty"` + // Values: Optional. Corresponds to the label values of Node resource. + Values []string `json:"values,omitempty"` + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *NodeAffinity) MarshalJSON() ([]byte, error) { + type NoMethod NodeAffinity + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// Operation: This resource represents a long-running operation that is the +// result of a network API call. +type Operation struct { + // Done: If the value is `false`, it means the operation is still in progress. + // If `true`, the operation is completed, and either `error` or `response` is + // available. + Done bool `json:"done,omitempty"` + // Error: The error result of the operation in case of failure or cancellation. + Error *Status `json:"error,omitempty"` + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as create + // time. Some services might not provide such metadata. Any method that returns + // a long-running operation should document the metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + // Name: The server-assigned name, which is only unique within the same service + // that originally returns it. If you use the default HTTP mapping, the `name` + // should be a resource name ending with `operations/{unique_id}`. + Name string `json:"name,omitempty"` + // Response: The normal, successful response of the operation. If the original + // method returns no data on success, such as `Delete`, the response is + // `google.protobuf.Empty`. If the original method is standard + // `Get`/`Create`/`Update`, the response should be the resource. For other + // methods, the response should have the type `XxxResponse`, where `Xxx` is the + // original method name. For example, if the original method name is + // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Done") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Done") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *Operation) MarshalJSON() ([]byte, error) { + type NoMethod Operation + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// OperationMetadata: Represents the metadata of the long-running operation. +type OperationMetadata struct { + // AdditionalInfo: Output only. AdditionalInfo contains additional Info related + // to backup plan association resource. + AdditionalInfo map[string]string `json:"additionalInfo,omitempty"` + // ApiVersion: Output only. API version used to start the operation. + ApiVersion string `json:"apiVersion,omitempty"` + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` + // RequestedCancellation: Output only. Identifies whether the user has + // requested cancellation of the operation. Operations that have successfully + // been cancelled have Operation.error value with a google.rpc.Status.code of + // 1, corresponding to 'Code.CANCELLED'. + RequestedCancellation bool `json:"requestedCancellation,omitempty"` + // StatusMessage: Output only. Human-readable status of the operation, if any. + StatusMessage string `json:"statusMessage,omitempty"` + // Target: Output only. Server-defined resource path for the target of the + // operation. + Target string `json:"target,omitempty"` + // Verb: Output only. Name of the verb executed by the operation. + Verb string `json:"verb,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdditionalInfo") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AdditionalInfo") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *OperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod OperationMetadata + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// Policy: An Identity and Access Management (IAM) policy, which specifies +// access controls for Google Cloud resources. A `Policy` is a collection of +// `bindings`. A `binding` binds one or more `members`, or principals, to a +// single `role`. Principals can be user accounts, service accounts, Google +// groups, and domains (such as G Suite). A `role` is a named list of +// permissions; each `role` can be an IAM predefined role or a user-created +// custom role. For some types of Google Cloud resources, a `binding` can also +// specify a `condition`, which is a logical expression that allows access to a +// resource only if the expression evaluates to `true`. A condition can add +// constraints based on attributes of the request, the resource, or both. To +// learn which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON +// example:** ``` { "bindings": [ { "role": +// "roles/resourcemanager.organizationAdmin", "members": [ +// "user:mike@example.com", "group:admins@example.com", "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": +// "roles/resourcemanager.organizationViewer", "members": [ +// "user:eve@example.com" ], "condition": { "title": "expirable access", +// "description": "Does not grant access after Sep 2020", "expression": +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": +// "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - +// members: - user:mike@example.com - group:admins@example.com - +// domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com +// role: roles/resourcemanager.organizationAdmin - members: - +// user:eve@example.com role: roles/resourcemanager.organizationViewer +// condition: title: expirable access description: Does not grant access after +// Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') +// etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, +// see the IAM documentation (https://cloud.google.com/iam/docs/). +type Policy struct { + // AuditConfigs: Specifies cloud audit logging configuration for this policy. + AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"` + // Bindings: Associates a list of `members`, or principals, with a `role`. + // Optionally, may specify a `condition` that determines how and when the + // `bindings` are applied. Each of the `bindings` must contain at least one + // principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; + // up to 250 of these principals can be Google groups. Each occurrence of a + // principal counts towards these limits. For example, if the `bindings` grant + // 50 different roles to `user:alice@example.com`, and not to any other + // principal, then you can add another 1,450 principals to the `bindings` in + // the `Policy`. + Bindings []*Binding `json:"bindings,omitempty"` + // Etag: `etag` is used for optimistic concurrency control as a way to help + // prevent simultaneous updates of a policy from overwriting each other. It is + // strongly suggested that systems make use of the `etag` in the + // read-modify-write cycle to perform policy updates in order to avoid race + // conditions: An `etag` is returned in the response to `getIamPolicy`, and + // systems are expected to put that etag in the request to `setIamPolicy` to + // ensure that their change will be applied to the same version of the policy. + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. + Etag string `json:"etag,omitempty"` + // Version: Specifies the format of the policy. Valid values are `0`, `1`, and + // `3`. Requests that specify an invalid value are rejected. Any operation that + // affects conditional role bindings must specify version `3`. This requirement + // applies to the following operations: * Getting a policy that includes a + // conditional role binding * Adding a conditional role binding to a policy * + // Changing a conditional role binding in a policy * Removing any role binding, + // with or without a condition, from a policy that includes conditions + // **Important:** If you use IAM Conditions, you must include the `etag` field + // whenever you call `setIamPolicy`. If you omit this field, then IAM allows + // you to overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. If a policy does not + // include any conditions, operations on that policy may specify any valid + // version or leave the field unset. To learn which resources support + // conditions in their IAM policies, see the IAM documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). + Version int64 `json:"version,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AuditConfigs") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AuditConfigs") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *Policy) MarshalJSON() ([]byte, error) { + type NoMethod Policy + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// RemoveDataSourceRequest: Message for deleting a DataSource. +type RemoveDataSourceRequest struct { + // RequestId: Optional. An optional request ID to identify requests. Specify a + // unique request ID so that if you must retry your request, the server will + // know to ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes after the first request. For example, + // consider a situation where you make an initial request and the request times + // out. If you make the request again with the same request ID, the server can + // check if original operation with the same request ID was received, and if + // so, will ignore the second request. This prevents clients from accidentally + // creating duplicate commitments. The request ID must be a valid UUID with the + // exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + RequestId string `json:"requestId,omitempty"` + // ForceSendFields is a list of field names (e.g. "RequestId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "RequestId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *RemoveDataSourceRequest) MarshalJSON() ([]byte, error) { + type NoMethod RemoveDataSourceRequest + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// Scheduling: Sets the scheduling options for an Instance. +type Scheduling struct { + // AutomaticRestart: Optional. Specifies whether the instance should be + // automatically restarted if it is terminated by Compute Engine (not + // terminated by a user). + AutomaticRestart bool `json:"automaticRestart,omitempty"` + // InstanceTerminationAction: Optional. Specifies the termination action for + // the instance. + // + // Possible values: + // "INSTANCE_TERMINATION_ACTION_UNSPECIFIED" - Default value. This value is + // unused. + // "DELETE" - Delete the VM. + // "STOP" - Stop the VM without storing in-memory content. default action. + InstanceTerminationAction string `json:"instanceTerminationAction,omitempty"` + // LocalSsdRecoveryTimeout: Optional. Specifies the maximum amount of time a + // Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. + // Its value should be in between 0 and 168 hours with hour granularity and the + // default value being 1 hour. + LocalSsdRecoveryTimeout *SchedulingDuration `json:"localSsdRecoveryTimeout,omitempty"` + // MinNodeCpus: Optional. The minimum number of virtual CPUs this instance will + // consume when running on a sole-tenant node. + MinNodeCpus int64 `json:"minNodeCpus,omitempty"` + // NodeAffinities: Optional. A set of node affinity and anti-affinity + // configurations. Overrides reservationAffinity. + NodeAffinities []*NodeAffinity `json:"nodeAffinities,omitempty"` + // OnHostMaintenance: Optional. Defines the maintenance behavior for this + // instance. + // + // Possible values: + // "ON_HOST_MAINTENANCE_UNSPECIFIED" - Default value. This value is unused. + // "TERMINATE" - Tells Compute Engine to terminate and (optionally) restart + // the instance away from the maintenance activity. + // "MIGRATE" - Default, Allows Compute Engine to automatically migrate + // instances out of the way of maintenance events. + OnHostMaintenance string `json:"onHostMaintenance,omitempty"` + // Preemptible: Optional. Defines whether the instance is preemptible. + Preemptible bool `json:"preemptible,omitempty"` + // ProvisioningModel: Optional. Specifies the provisioning model of the + // instance. + // + // Possible values: + // "PROVISIONING_MODEL_UNSPECIFIED" - Default value. This value is not used. + // "STANDARD" - Standard provisioning with user controlled runtime, no + // discounts. + // "SPOT" - Heavily discounted, no guaranteed runtime. + ProvisioningModel string `json:"provisioningModel,omitempty"` + // ForceSendFields is a list of field names (e.g. "AutomaticRestart") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AutomaticRestart") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *Scheduling) MarshalJSON() ([]byte, error) { + type NoMethod Scheduling + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// SchedulingDuration: A SchedulingDuration represents a fixed-length span of +// time represented as a count of seconds and fractions of seconds at +// nanosecond resolution. It is independent of any calendar and concepts like +// "day" or "month". Range is approximately 10,000 years. +type SchedulingDuration struct { + // Nanos: Optional. Span of time that's a fraction of a second at nanosecond + // resolution. + Nanos int64 `json:"nanos,omitempty"` + // Seconds: Optional. Span of time at a resolution of a second. + Seconds int64 `json:"seconds,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "Nanos") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Nanos") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *SchedulingDuration) MarshalJSON() ([]byte, error) { + type NoMethod SchedulingDuration + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// ServiceAccount: A service account. +type ServiceAccount struct { + // Email: Optional. Email address of the service account. + Email string `json:"email,omitempty"` + // Scopes: Optional. The list of scopes to be made available for this service + // account. + Scopes []string `json:"scopes,omitempty"` + // ForceSendFields is a list of field names (e.g. "Email") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Email") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *ServiceAccount) MarshalJSON() ([]byte, error) { + type NoMethod ServiceAccount + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// ServiceLockInfo: ServiceLockInfo represents the details of a lock taken by +// the service on a Backup resource. +type ServiceLockInfo struct { + // Operation: Output only. The name of the operation that created this lock. + // The lock will automatically be released when the operation completes. + Operation string `json:"operation,omitempty"` + // ForceSendFields is a list of field names (e.g. "Operation") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Operation") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *ServiceLockInfo) MarshalJSON() ([]byte, error) { + type NoMethod ServiceLockInfo + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// SetIamPolicyRequest: Request message for `SetIamPolicy` method. +type SetIamPolicyRequest struct { + // Policy: REQUIRED: The complete policy to be applied to the `resource`. The + // size of the policy is limited to a few 10s of KB. An empty policy is a valid + // policy but certain Google Cloud services (such as Projects) might reject + // them. + Policy *Policy `json:"policy,omitempty"` + // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to + // modify. Only the fields in the mask will be modified. If no mask is + // provided, the following default mask is used: `paths: "bindings, etag" + UpdateMask string `json:"updateMask,omitempty"` + // ForceSendFields is a list of field names (e.g. "Policy") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Policy") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod SetIamPolicyRequest + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// SetInternalStatusRequest: Request message for SetStatusInternal method. +type SetInternalStatusRequest struct { + // BackupConfigState: Required. The new BackupConfigState to set for the + // DataSource. + // + // Possible values: + // "BACKUP_CONFIG_STATE_UNSPECIFIED" - The possible states of backup + // configuration. Status not set. + // "ACTIVE" - The data source is actively protected (i.e. there is a + // BackupPlanAssociation or Appliance SLA pointing to it) + // "PASSIVE" - The data source is no longer protected (but may have backups + // under it) + BackupConfigState string `json:"backupConfigState,omitempty"` + // RequestId: Optional. An optional request ID to identify requests. Specify a + // unique request ID so that if you must retry your request, the server will + // know to ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes after the first request. The request + // ID must be a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + RequestId string `json:"requestId,omitempty"` + // Value: Required. The value required for this method to work. This field must + // be the 32-byte SHA256 hash of the DataSourceID. The DataSourceID used here + // is only the final piece of the fully qualified resource path for this + // DataSource (i.e. the part after '.../dataSources/'). This field exists to + // make this method difficult to call since it is intended for use only by + // Backup Appliances. + Value string `json:"value,omitempty"` + // ForceSendFields is a list of field names (e.g. "BackupConfigState") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BackupConfigState") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *SetInternalStatusRequest) MarshalJSON() ([]byte, error) { + type NoMethod SetInternalStatusRequest + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// Status: The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by gRPC (https://github.com/grpc). Each `Status` message contains three +// pieces of data: error code, error message, and error details. You can find +// out more about this error model and how to work with it in the API Design +// Guide (https://cloud.google.com/apis/design/errors). +type Status struct { + // Code: The status code, which should be an enum value of google.rpc.Code. + Code int64 `json:"code,omitempty"` + // Details: A list of messages that carry the error details. There is a common + // set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + // Message: A developer-facing error message, which should be in English. Any + // user-facing error message should be localized and sent in the + // google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// Tags: A set of instance tags. +type Tags struct { + // Items: Optional. An array of tags. Each tag must be 1-63 characters long, + // and comply with RFC1035. + Items []string `json:"items,omitempty"` + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Items") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *Tags) MarshalJSON() ([]byte, error) { + type NoMethod Tags + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// TestIamPermissionsRequest: Request message for `TestIamPermissions` method. +type TestIamPermissionsRequest struct { + // Permissions: The set of permissions to check for the `resource`. Permissions + // with wildcards (such as `*` or `storage.*`) are not allowed. For more + // information see IAM Overview + // (https://cloud.google.com/iam/docs/overview#permissions). + Permissions []string `json:"permissions,omitempty"` + // ForceSendFields is a list of field names (e.g. "Permissions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsRequest + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// TestIamPermissionsResponse: Response message for `TestIamPermissions` +// method. +type TestIamPermissionsResponse struct { + // Permissions: A subset of `TestPermissionsRequest.permissions` that the + // caller is allowed. + Permissions []string `json:"permissions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Permissions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Permissions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsResponse + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// WorkforceIdentityBasedManagementURI: ManagementURI depending on the +// Workforce Identity i.e. either 1p or 3p. +type WorkforceIdentityBasedManagementURI struct { + // FirstPartyManagementUri: Output only. First party Management URI for Google + // Identities. + FirstPartyManagementUri string `json:"firstPartyManagementUri,omitempty"` + // ThirdPartyManagementUri: Output only. Third party Management URI for + // External Identity Providers. + ThirdPartyManagementUri string `json:"thirdPartyManagementUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "FirstPartyManagementUri") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "FirstPartyManagementUri") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *WorkforceIdentityBasedManagementURI) MarshalJSON() ([]byte, error) { + type NoMethod WorkforceIdentityBasedManagementURI + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// WorkforceIdentityBasedOAuth2ClientID: OAuth Client ID depending on the +// Workforce Identity i.e. either 1p or 3p, +type WorkforceIdentityBasedOAuth2ClientID struct { + // FirstPartyOauth2ClientId: Output only. First party OAuth Client ID for + // Google Identities. + FirstPartyOauth2ClientId string `json:"firstPartyOauth2ClientId,omitempty"` + // ThirdPartyOauth2ClientId: Output only. Third party OAuth Client ID for + // External Identity Providers. + ThirdPartyOauth2ClientId string `json:"thirdPartyOauth2ClientId,omitempty"` + // ForceSendFields is a list of field names (e.g. "FirstPartyOauth2ClientId") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "FirstPartyOauth2ClientId") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *WorkforceIdentityBasedOAuth2ClientID) MarshalJSON() ([]byte, error) { + type NoMethod WorkforceIdentityBasedOAuth2ClientID + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a location. +// +// - name: Resource name for the location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "backupdr.projects.locations.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *Location.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Location{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists information about the supported locations for this service. +// +// - name: The resource that owns the locations collection, if applicable. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": A filter to narrow down results +// to a preferred subset. The filtering language accepts strings like +// "displayName=tokyo", and is documented in more detail in AIP-160 +// (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from the `next_page_token` field in the response. Send that page token to +// receive the subsequent page. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "backupdr.projects.locations.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListLocationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsBackupVaultsCreateCall struct { + s *Service + parent string + backupvault *BackupVault + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: +// +// - parent: Value for parent. +func (r *ProjectsLocationsBackupVaultsService) Create(parent string, backupvault *BackupVault) *ProjectsLocationsBackupVaultsCreateCall { + c := &ProjectsLocationsBackupVaultsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.backupvault = backupvault + return c +} + +// BackupVaultId sets the optional parameter "backupVaultId": Required. ID of +// the requesting object If auto-generating ID server-side, remove this field +// and backup_vault_id from the method_signature of Create RPC +func (c *ProjectsLocationsBackupVaultsCreateCall) BackupVaultId(backupVaultId string) *ProjectsLocationsBackupVaultsCreateCall { + c.urlParams_.Set("backupVaultId", backupVaultId) + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. The server will guarantee that for at least 60 minutes since +// the first request. For example, consider a situation where you make an +// initial request and the request times out. If you make the request again +// with the same request ID, the server can check if original operation with +// the same request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsBackupVaultsCreateCall) RequestId(requestId string) *ProjectsLocationsBackupVaultsCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": Only validate the +// request, but do not perform mutations. The default is 'false'. +func (c *ProjectsLocationsBackupVaultsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsBackupVaultsCreateCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBackupVaultsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupVaultsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBackupVaultsCreateCall) Context(ctx context.Context) *ProjectsLocationsBackupVaultsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBackupVaultsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBackupVaultsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.backupvault) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/backupVaults") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "backupdr.projects.locations.backupVaults.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsBackupVaultsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBackupVaultsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a BackupVault. +// +// - name: Name of the resource. +func (r *ProjectsLocationsBackupVaultsService) Delete(name string) *ProjectsLocationsBackupVaultsDeleteCall { + c := &ProjectsLocationsBackupVaultsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// AllowMissing sets the optional parameter "allowMissing": If true and the +// BackupVault is not found, the request will succeed but no action will be +// taken. +func (c *ProjectsLocationsBackupVaultsDeleteCall) AllowMissing(allowMissing bool) *ProjectsLocationsBackupVaultsDeleteCall { + c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) + return c +} + +// Etag sets the optional parameter "etag": The current etag of the backup +// vault. If an etag is provided and does not match the current etag of the +// connection, deletion will be blocked. +func (c *ProjectsLocationsBackupVaultsDeleteCall) Etag(etag string) *ProjectsLocationsBackupVaultsDeleteCall { + c.urlParams_.Set("etag", etag) + return c +} + +// Force sets the optional parameter "force": If set to true, any data source +// from this backup vault will also be deleted. +func (c *ProjectsLocationsBackupVaultsDeleteCall) Force(force bool) *ProjectsLocationsBackupVaultsDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. The server will guarantee that for at least 60 minutes after +// the first request. For example, consider a situation where you make an +// initial request and the request times out. If you make the request again +// with the same request ID, the server can check if original operation with +// the same request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsBackupVaultsDeleteCall) RequestId(requestId string) *ProjectsLocationsBackupVaultsDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": Only validate the +// request, but do not perform mutations. The default is 'false'. +func (c *ProjectsLocationsBackupVaultsDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsBackupVaultsDeleteCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBackupVaultsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupVaultsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBackupVaultsDeleteCall) Context(ctx context.Context) *ProjectsLocationsBackupVaultsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBackupVaultsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBackupVaultsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "backupdr.projects.locations.backupVaults.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsBackupVaultsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBackupVaultsFetchUsableCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// FetchUsable: FetchUsableBackupVaults lists usable BackupVaults in a given +// project and location. Usable BackupVault are the ones that user has +// backupdr.backupVaults.get permission. +// +// - parent: The project and location for which to retrieve backupvault stores +// information, in the format 'projects/{project_id}/locations/{location}'. +// In Cloud Backup and DR, locations map to Google Cloud regions, for example +// **us-central1**. To retrieve backupvault stores for all locations, use "-" +// for the '{location}' value. +func (r *ProjectsLocationsBackupVaultsService) FetchUsable(parent string) *ProjectsLocationsBackupVaultsFetchUsableCall { + c := &ProjectsLocationsBackupVaultsFetchUsableCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filtering results. +func (c *ProjectsLocationsBackupVaultsFetchUsableCall) Filter(filter string) *ProjectsLocationsBackupVaultsFetchUsableCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Hint for how to order the +// results. +func (c *ProjectsLocationsBackupVaultsFetchUsableCall) OrderBy(orderBy string) *ProjectsLocationsBackupVaultsFetchUsableCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. Server +// may return fewer items than requested. If unspecified, server will pick an +// appropriate default. +func (c *ProjectsLocationsBackupVaultsFetchUsableCall) PageSize(pageSize int64) *ProjectsLocationsBackupVaultsFetchUsableCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. +func (c *ProjectsLocationsBackupVaultsFetchUsableCall) PageToken(pageToken string) *ProjectsLocationsBackupVaultsFetchUsableCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBackupVaultsFetchUsableCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupVaultsFetchUsableCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsBackupVaultsFetchUsableCall) IfNoneMatch(entityTag string) *ProjectsLocationsBackupVaultsFetchUsableCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBackupVaultsFetchUsableCall) Context(ctx context.Context) *ProjectsLocationsBackupVaultsFetchUsableCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBackupVaultsFetchUsableCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBackupVaultsFetchUsableCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/backupVaults:fetchUsable") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "backupdr.projects.locations.backupVaults.fetchUsable" call. +// Any non-2xx status code is an error. Response headers are in either +// *FetchUsableBackupVaultsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBackupVaultsFetchUsableCall) Do(opts ...googleapi.CallOption) (*FetchUsableBackupVaultsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &FetchUsableBackupVaultsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsBackupVaultsFetchUsableCall) Pages(ctx context.Context, f func(*FetchUsableBackupVaultsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsBackupVaultsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a BackupVault. +// +// - name: Name of the backupvault store resource name, in the format +// 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}'. +func (r *ProjectsLocationsBackupVaultsService) Get(name string) *ProjectsLocationsBackupVaultsGetCall { + c := &ProjectsLocationsBackupVaultsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBackupVaultsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupVaultsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsBackupVaultsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsBackupVaultsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBackupVaultsGetCall) Context(ctx context.Context) *ProjectsLocationsBackupVaultsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBackupVaultsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBackupVaultsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "backupdr.projects.locations.backupVaults.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *BackupVault.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsBackupVaultsGetCall) Do(opts ...googleapi.CallOption) (*BackupVault, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &BackupVault{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBackupVaultsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists BackupVaults in a given project and location. +// +// - parent: The project and location for which to retrieve backupvault stores +// information, in the format 'projects/{project_id}/locations/{location}'. +// In Cloud Backup and DR, locations map to Google Cloud regions, for example +// **us-central1**. To retrieve backupvault stores for all locations, use "-" +// for the '{location}' value. +func (r *ProjectsLocationsBackupVaultsService) List(parent string) *ProjectsLocationsBackupVaultsListCall { + c := &ProjectsLocationsBackupVaultsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filtering results. +func (c *ProjectsLocationsBackupVaultsListCall) Filter(filter string) *ProjectsLocationsBackupVaultsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Hint for how to order the +// results. +func (c *ProjectsLocationsBackupVaultsListCall) OrderBy(orderBy string) *ProjectsLocationsBackupVaultsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. Server +// may return fewer items than requested. If unspecified, server will pick an +// appropriate default. +func (c *ProjectsLocationsBackupVaultsListCall) PageSize(pageSize int64) *ProjectsLocationsBackupVaultsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. +func (c *ProjectsLocationsBackupVaultsListCall) PageToken(pageToken string) *ProjectsLocationsBackupVaultsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBackupVaultsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupVaultsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsBackupVaultsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsBackupVaultsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBackupVaultsListCall) Context(ctx context.Context) *ProjectsLocationsBackupVaultsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBackupVaultsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBackupVaultsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/backupVaults") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "backupdr.projects.locations.backupVaults.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListBackupVaultsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBackupVaultsListCall) Do(opts ...googleapi.CallOption) (*ListBackupVaultsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListBackupVaultsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsBackupVaultsListCall) Pages(ctx context.Context, f func(*ListBackupVaultsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsBackupVaultsPatchCall struct { + s *Service + name string + backupvault *BackupVault + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the settings of a BackupVault. +// +// - name: Output only. The resource name. +func (r *ProjectsLocationsBackupVaultsService) Patch(name string, backupvault *BackupVault) *ProjectsLocationsBackupVaultsPatchCall { + c := &ProjectsLocationsBackupVaultsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.backupvault = backupvault + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. The server will guarantee that for at least 60 minutes since +// the first request. For example, consider a situation where you make an +// initial request and the request times out. If you make the request again +// with the same request ID, the server can check if original operation with +// the same request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsBackupVaultsPatchCall) RequestId(requestId string) *ProjectsLocationsBackupVaultsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Field mask is +// used to specify the fields to be overwritten in the BackupVault resource by +// the update. The fields specified in the update_mask are relative to the +// resource, not the full request. A field will be overwritten if it is in the +// mask. If the user does not provide a mask then the request will fail. +func (c *ProjectsLocationsBackupVaultsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsBackupVaultsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": Only validate the +// request, but do not perform mutations. The default is 'false'. +func (c *ProjectsLocationsBackupVaultsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsBackupVaultsPatchCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBackupVaultsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupVaultsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBackupVaultsPatchCall) Context(ctx context.Context) *ProjectsLocationsBackupVaultsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBackupVaultsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBackupVaultsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.backupvault) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "backupdr.projects.locations.backupVaults.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsBackupVaultsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBackupVaultsTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns the caller's permissions on a BackupVault +// resource. A caller is not required to have Google IAM permission to make +// this request. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. +func (r *ProjectsLocationsBackupVaultsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsBackupVaultsTestIamPermissionsCall { + c := &ProjectsLocationsBackupVaultsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBackupVaultsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupVaultsTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBackupVaultsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsBackupVaultsTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBackupVaultsTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBackupVaultsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "backupdr.projects.locations.backupVaults.testIamPermissions" call. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBackupVaultsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBackupVaultsDataSourcesAbandonBackupCall struct { + s *Service + dataSource string + abandonbackuprequest *AbandonBackupRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// AbandonBackup: Internal only. Abandons a backup. +// +// - dataSource: The resource name of the instance, in the format +// 'projects/*/locations/*/backupVaults/*/dataSources/'. +func (r *ProjectsLocationsBackupVaultsDataSourcesService) AbandonBackup(dataSource string, abandonbackuprequest *AbandonBackupRequest) *ProjectsLocationsBackupVaultsDataSourcesAbandonBackupCall { + c := &ProjectsLocationsBackupVaultsDataSourcesAbandonBackupCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.dataSource = dataSource + c.abandonbackuprequest = abandonbackuprequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBackupVaultsDataSourcesAbandonBackupCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupVaultsDataSourcesAbandonBackupCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBackupVaultsDataSourcesAbandonBackupCall) Context(ctx context.Context) *ProjectsLocationsBackupVaultsDataSourcesAbandonBackupCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBackupVaultsDataSourcesAbandonBackupCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBackupVaultsDataSourcesAbandonBackupCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.abandonbackuprequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+dataSource}:abandonBackup") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "dataSource": c.dataSource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "backupdr.projects.locations.backupVaults.dataSources.abandonBackup" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsBackupVaultsDataSourcesAbandonBackupCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBackupVaultsDataSourcesFetchAccessTokenCall struct { + s *Service + name string + fetchaccesstokenrequest *FetchAccessTokenRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// FetchAccessToken: Internal only. Fetch access token for a given data source. +// +// - name: The resource name for the location for which static IPs should be +// returned. Must be in the format +// 'projects/*/locations/*/backupVaults/*/dataSources'. +func (r *ProjectsLocationsBackupVaultsDataSourcesService) FetchAccessToken(name string, fetchaccesstokenrequest *FetchAccessTokenRequest) *ProjectsLocationsBackupVaultsDataSourcesFetchAccessTokenCall { + c := &ProjectsLocationsBackupVaultsDataSourcesFetchAccessTokenCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.fetchaccesstokenrequest = fetchaccesstokenrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBackupVaultsDataSourcesFetchAccessTokenCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupVaultsDataSourcesFetchAccessTokenCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBackupVaultsDataSourcesFetchAccessTokenCall) Context(ctx context.Context) *ProjectsLocationsBackupVaultsDataSourcesFetchAccessTokenCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBackupVaultsDataSourcesFetchAccessTokenCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBackupVaultsDataSourcesFetchAccessTokenCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.fetchaccesstokenrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:fetchAccessToken") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "backupdr.projects.locations.backupVaults.dataSources.fetchAccessToken" call. +// Any non-2xx status code is an error. Response headers are in either +// *FetchAccessTokenResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBackupVaultsDataSourcesFetchAccessTokenCall) Do(opts ...googleapi.CallOption) (*FetchAccessTokenResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &FetchAccessTokenResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBackupVaultsDataSourcesFinalizeBackupCall struct { + s *Service + dataSource string + finalizebackuprequest *FinalizeBackupRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// FinalizeBackup: Internal only. Finalize a backup that was started by a call +// to InitiateBackup. +// +// - dataSource: The resource name of the instance, in the format +// 'projects/*/locations/*/backupVaults/*/dataSources/'. +func (r *ProjectsLocationsBackupVaultsDataSourcesService) FinalizeBackup(dataSource string, finalizebackuprequest *FinalizeBackupRequest) *ProjectsLocationsBackupVaultsDataSourcesFinalizeBackupCall { + c := &ProjectsLocationsBackupVaultsDataSourcesFinalizeBackupCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.dataSource = dataSource + c.finalizebackuprequest = finalizebackuprequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBackupVaultsDataSourcesFinalizeBackupCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupVaultsDataSourcesFinalizeBackupCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBackupVaultsDataSourcesFinalizeBackupCall) Context(ctx context.Context) *ProjectsLocationsBackupVaultsDataSourcesFinalizeBackupCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBackupVaultsDataSourcesFinalizeBackupCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBackupVaultsDataSourcesFinalizeBackupCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.finalizebackuprequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+dataSource}:finalizeBackup") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "dataSource": c.dataSource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "backupdr.projects.locations.backupVaults.dataSources.finalizeBackup" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsBackupVaultsDataSourcesFinalizeBackupCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBackupVaultsDataSourcesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a DataSource. +// +// - name: Name of the data source resource name, in the format +// 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}/da +// taSource/{resource_name}'. +func (r *ProjectsLocationsBackupVaultsDataSourcesService) Get(name string) *ProjectsLocationsBackupVaultsDataSourcesGetCall { + c := &ProjectsLocationsBackupVaultsDataSourcesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBackupVaultsDataSourcesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupVaultsDataSourcesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsBackupVaultsDataSourcesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsBackupVaultsDataSourcesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBackupVaultsDataSourcesGetCall) Context(ctx context.Context) *ProjectsLocationsBackupVaultsDataSourcesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBackupVaultsDataSourcesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBackupVaultsDataSourcesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "backupdr.projects.locations.backupVaults.dataSources.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *DataSource.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsBackupVaultsDataSourcesGetCall) Do(opts ...googleapi.CallOption) (*DataSource, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &DataSource{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBackupVaultsDataSourcesInitiateBackupCall struct { + s *Service + dataSource string + initiatebackuprequest *InitiateBackupRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// InitiateBackup: Internal only. Initiates a backup. +// +// - dataSource: The resource name of the instance, in the format +// 'projects/*/locations/*/backupVaults/*/dataSources/'. +func (r *ProjectsLocationsBackupVaultsDataSourcesService) InitiateBackup(dataSource string, initiatebackuprequest *InitiateBackupRequest) *ProjectsLocationsBackupVaultsDataSourcesInitiateBackupCall { + c := &ProjectsLocationsBackupVaultsDataSourcesInitiateBackupCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.dataSource = dataSource + c.initiatebackuprequest = initiatebackuprequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBackupVaultsDataSourcesInitiateBackupCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupVaultsDataSourcesInitiateBackupCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBackupVaultsDataSourcesInitiateBackupCall) Context(ctx context.Context) *ProjectsLocationsBackupVaultsDataSourcesInitiateBackupCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBackupVaultsDataSourcesInitiateBackupCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBackupVaultsDataSourcesInitiateBackupCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.initiatebackuprequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+dataSource}:initiateBackup") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "dataSource": c.dataSource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "backupdr.projects.locations.backupVaults.dataSources.initiateBackup" call. +// Any non-2xx status code is an error. Response headers are in either +// *InitiateBackupResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsBackupVaultsDataSourcesInitiateBackupCall) Do(opts ...googleapi.CallOption) (*InitiateBackupResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &InitiateBackupResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBackupVaultsDataSourcesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists DataSources in a given project and location. +// +// - parent: The project and location for which to retrieve data sources +// information, in the format 'projects/{project_id}/locations/{location}'. +// In Cloud Backup and DR, locations map to Google Cloud regions, for example +// **us-central1**. To retrieve data sources for all locations, use "-" for +// the '{location}' value. +func (r *ProjectsLocationsBackupVaultsDataSourcesService) List(parent string) *ProjectsLocationsBackupVaultsDataSourcesListCall { + c := &ProjectsLocationsBackupVaultsDataSourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filtering results. +func (c *ProjectsLocationsBackupVaultsDataSourcesListCall) Filter(filter string) *ProjectsLocationsBackupVaultsDataSourcesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Hint for how to order the +// results. +func (c *ProjectsLocationsBackupVaultsDataSourcesListCall) OrderBy(orderBy string) *ProjectsLocationsBackupVaultsDataSourcesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. Server +// may return fewer items than requested. If unspecified, server will pick an +// appropriate default. +func (c *ProjectsLocationsBackupVaultsDataSourcesListCall) PageSize(pageSize int64) *ProjectsLocationsBackupVaultsDataSourcesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. +func (c *ProjectsLocationsBackupVaultsDataSourcesListCall) PageToken(pageToken string) *ProjectsLocationsBackupVaultsDataSourcesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBackupVaultsDataSourcesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupVaultsDataSourcesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsBackupVaultsDataSourcesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsBackupVaultsDataSourcesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBackupVaultsDataSourcesListCall) Context(ctx context.Context) *ProjectsLocationsBackupVaultsDataSourcesListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBackupVaultsDataSourcesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBackupVaultsDataSourcesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataSources") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "backupdr.projects.locations.backupVaults.dataSources.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListDataSourcesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBackupVaultsDataSourcesListCall) Do(opts ...googleapi.CallOption) (*ListDataSourcesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListDataSourcesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsBackupVaultsDataSourcesListCall) Pages(ctx context.Context, f func(*ListDataSourcesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsBackupVaultsDataSourcesPatchCall struct { + s *Service + name string + datasource *DataSource + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the settings of a DataSource. +// +// - name: Output only. The resource name. +func (r *ProjectsLocationsBackupVaultsDataSourcesService) Patch(name string, datasource *DataSource) *ProjectsLocationsBackupVaultsDataSourcesPatchCall { + c := &ProjectsLocationsBackupVaultsDataSourcesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.datasource = datasource + return c +} + +// AllowMissing sets the optional parameter "allowMissing": Enable upsert. +func (c *ProjectsLocationsBackupVaultsDataSourcesPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsBackupVaultsDataSourcesPatchCall { + c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. The server will guarantee that for at least 60 minutes since +// the first request. For example, consider a situation where you make an +// initial request and the request times out. If you make the request again +// with the same request ID, the server can check if original operation with +// the same request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsBackupVaultsDataSourcesPatchCall) RequestId(requestId string) *ProjectsLocationsBackupVaultsDataSourcesPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Field mask is +// used to specify the fields to be overwritten in the DataSource resource by +// the update. The fields specified in the update_mask are relative to the +// resource, not the full request. A field will be overwritten if it is in the +// mask. If the user does not provide a mask then the request will fail. +func (c *ProjectsLocationsBackupVaultsDataSourcesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsBackupVaultsDataSourcesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBackupVaultsDataSourcesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupVaultsDataSourcesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBackupVaultsDataSourcesPatchCall) Context(ctx context.Context) *ProjectsLocationsBackupVaultsDataSourcesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBackupVaultsDataSourcesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBackupVaultsDataSourcesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.datasource) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "backupdr.projects.locations.backupVaults.dataSources.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsBackupVaultsDataSourcesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBackupVaultsDataSourcesRemoveCall struct { + s *Service + name string + removedatasourcerequest *RemoveDataSourceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Remove: Deletes a DataSource. This is a custom method instead of a standard +// delete method because external clients will not delete DataSources except +// for BackupDR backup appliances. +// +// - name: Name of the resource. +func (r *ProjectsLocationsBackupVaultsDataSourcesService) Remove(name string, removedatasourcerequest *RemoveDataSourceRequest) *ProjectsLocationsBackupVaultsDataSourcesRemoveCall { + c := &ProjectsLocationsBackupVaultsDataSourcesRemoveCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.removedatasourcerequest = removedatasourcerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBackupVaultsDataSourcesRemoveCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupVaultsDataSourcesRemoveCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBackupVaultsDataSourcesRemoveCall) Context(ctx context.Context) *ProjectsLocationsBackupVaultsDataSourcesRemoveCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBackupVaultsDataSourcesRemoveCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBackupVaultsDataSourcesRemoveCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.removedatasourcerequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:remove") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "backupdr.projects.locations.backupVaults.dataSources.remove" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsBackupVaultsDataSourcesRemoveCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBackupVaultsDataSourcesSetInternalStatusCall struct { + s *Service + dataSource string + setinternalstatusrequest *SetInternalStatusRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetInternalStatus: Sets the internal status of a DataSource. +// +// - dataSource: The resource name of the instance, in the format +// 'projects/*/locations/*/backupVaults/*/dataSources/'. +func (r *ProjectsLocationsBackupVaultsDataSourcesService) SetInternalStatus(dataSource string, setinternalstatusrequest *SetInternalStatusRequest) *ProjectsLocationsBackupVaultsDataSourcesSetInternalStatusCall { + c := &ProjectsLocationsBackupVaultsDataSourcesSetInternalStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.dataSource = dataSource + c.setinternalstatusrequest = setinternalstatusrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBackupVaultsDataSourcesSetInternalStatusCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupVaultsDataSourcesSetInternalStatusCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBackupVaultsDataSourcesSetInternalStatusCall) Context(ctx context.Context) *ProjectsLocationsBackupVaultsDataSourcesSetInternalStatusCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBackupVaultsDataSourcesSetInternalStatusCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBackupVaultsDataSourcesSetInternalStatusCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setinternalstatusrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+dataSource}:setInternalStatus") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "dataSource": c.dataSource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "backupdr.projects.locations.backupVaults.dataSources.setInternalStatus" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsBackupVaultsDataSourcesSetInternalStatusCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBackupVaultsDataSourcesBackupsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a Backup. +// +// - name: Name of the resource. +func (r *ProjectsLocationsBackupVaultsDataSourcesBackupsService) Delete(name string) *ProjectsLocationsBackupVaultsDataSourcesBackupsDeleteCall { + c := &ProjectsLocationsBackupVaultsDataSourcesBackupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. The server will guarantee that for at least 60 minutes after +// the first request. For example, consider a situation where you make an +// initial request and the request times out. If you make the request again +// with the same request ID, the server can check if original operation with +// the same request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsDeleteCall) RequestId(requestId string) *ProjectsLocationsBackupVaultsDataSourcesBackupsDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupVaultsDataSourcesBackupsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsBackupVaultsDataSourcesBackupsDeleteCall { + c.ctx_ = ctx + return c } -// WorkforceIdentityBasedOAuth2ClientID: OAuth Client ID depending on the -// Workforce Identity i.e. either 1p or 3p, -type WorkforceIdentityBasedOAuth2ClientID struct { - // FirstPartyOauth2ClientId: Output only. First party OAuth Client ID for - // Google Identities. - FirstPartyOauth2ClientId string `json:"firstPartyOauth2ClientId,omitempty"` - // ThirdPartyOauth2ClientId: Output only. Third party OAuth Client ID for - // External Identity Providers. - ThirdPartyOauth2ClientId string `json:"thirdPartyOauth2ClientId,omitempty"` - // ForceSendFields is a list of field names (e.g. "FirstPartyOauth2ClientId") - // to unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FirstPartyOauth2ClientId") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ } -func (s *WorkforceIdentityBasedOAuth2ClientID) MarshalJSON() ([]byte, error) { - type NoMethod WorkforceIdentityBasedOAuth2ClientID - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) } -type ProjectsLocationsGetCall struct { +// Do executes the "backupdr.projects.locations.backupVaults.dataSources.backups.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBackupVaultsDataSourcesBackupsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -1067,11 +5136,13 @@ type ProjectsLocationsGetCall struct { header_ http.Header } -// Get: Gets information about a location. +// Get: Gets details of a Backup. // -// - name: Resource name for the location. -func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { - c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Name of the data source resource name, in the format +// 'projects/{project_id}/locations/{location}/backupVaults/{backupVault}/data +// Sources/{datasource}/backups/{backup}'. +func (r *ProjectsLocationsBackupVaultsDataSourcesBackupsService) Get(name string) *ProjectsLocationsBackupVaultsDataSourcesBackupsGetCall { + c := &ProjectsLocationsBackupVaultsDataSourcesBackupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -1079,7 +5150,7 @@ func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupVaultsDataSourcesBackupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -1087,27 +5158,27 @@ func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocatio // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsBackupVaultsDataSourcesBackupsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsGetCall) Context(ctx context.Context) *ProjectsLocationsBackupVaultsDataSourcesBackupsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsGetCall) Header() http.Header { +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -1128,12 +5199,12 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "backupdr.projects.locations.get" call. +// Do executes the "backupdr.projects.locations.backupVaults.dataSources.backups.get" call. // Any non-2xx status code is an error. Response headers are in either -// *Location.ServerResponse.Header or (if a response was returned at all) in +// *Backup.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsGetCall) Do(opts ...googleapi.CallOption) (*Backup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -1152,7 +5223,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Location{ + ret := &Backup{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -1165,44 +5236,52 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, return ret, nil } -type ProjectsLocationsListCall struct { +type ProjectsLocationsBackupVaultsDataSourcesBackupsListCall struct { s *Service - name string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists information about the supported locations for this service. +// List: Lists Backups in a given project and location. // -// - name: The resource that owns the locations collection, if applicable. -func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { - c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The project and location for which to retrieve backup information, +// in the format 'projects/{project_id}/locations/{location}'. In Cloud +// Backup and DR, locations map to Google Cloud regions, for example +// **us-central1**. To retrieve data sources for all locations, use "-" for +// the '{location}' value. +func (r *ProjectsLocationsBackupVaultsDataSourcesBackupsService) List(parent string) *ProjectsLocationsBackupVaultsDataSourcesBackupsListCall { + c := &ProjectsLocationsBackupVaultsDataSourcesBackupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } -// Filter sets the optional parameter "filter": A filter to narrow down results -// to a preferred subset. The filtering language accepts strings like -// "displayName=tokyo", and is documented in more detail in AIP-160 -// (https://google.aip.dev/160). -func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { +// Filter sets the optional parameter "filter": Filtering results. +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsListCall) Filter(filter string) *ProjectsLocationsBackupVaultsDataSourcesBackupsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The maximum number of -// results to return. If not set, the service selects a default. -func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { +// OrderBy sets the optional parameter "orderBy": Hint for how to order the +// results. +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsListCall) OrderBy(orderBy string) *ProjectsLocationsBackupVaultsDataSourcesBackupsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. Server +// may return fewer items than requested. If unspecified, server will pick an +// appropriate default. +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsListCall) PageSize(pageSize int64) *ProjectsLocationsBackupVaultsDataSourcesBackupsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token received -// from the `next_page_token` field in the response. Send that page token to -// receive the subsequent page. -func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsListCall) PageToken(pageToken string) *ProjectsLocationsBackupVaultsDataSourcesBackupsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -1210,7 +5289,7 @@ func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocatio // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupVaultsDataSourcesBackupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -1218,27 +5297,27 @@ func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocati // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsBackupVaultsDataSourcesBackupsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsListCall) Context(ctx context.Context) *ProjectsLocationsBackupVaultsDataSourcesBackupsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsListCall) Header() http.Header { +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -1246,7 +5325,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/backups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -1254,18 +5333,18 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "backupdr.projects.locations.list" call. +// Do executes the "backupdr.projects.locations.backupVaults.dataSources.backups.list" call. // Any non-2xx status code is an error. Response headers are in either -// *ListLocationsResponse.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// *ListBackupsResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsListCall) Do(opts ...googleapi.CallOption) (*ListBackupsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -1284,7 +5363,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListLocationsResponse{ + ret := &ListBackupsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -1300,7 +5379,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsListCall) Pages(ctx context.Context, f func(*ListBackupsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -1318,6 +5397,133 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocat } } +type ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall struct { + s *Service + name string + backup *Backup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the settings of a Backup. +// +// - name: Output only. Name of the resource. +func (r *ProjectsLocationsBackupVaultsDataSourcesBackupsService) Patch(name string, backup *Backup) *ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall { + c := &ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.backup = backup + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. The server will guarantee that for at least 60 minutes since +// the first request. For example, consider a situation where you make an +// initial request and the request times out. If you make the request again +// with the same request ID, the server can check if original operation with +// the same request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall) RequestId(requestId string) *ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Field mask is +// used to specify the fields to be overwritten in the Backup resource by the +// update. The fields specified in the update_mask are relative to the +// resource, not the full request. A field will be overwritten if it is in the +// mask. If the user does not provide a mask then the request will fail. +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall) Context(ctx context.Context) *ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.backup) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "backupdr.projects.locations.backupVaults.dataSources.backups.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsManagementServersCreateCall struct { s *Service parent string @@ -1330,8 +5536,8 @@ type ProjectsLocationsManagementServersCreateCall struct { // Create: Creates a new ManagementServer in a given project and location. // // - parent: The management server project and location in the format -// `projects/{project_id}/locations/{location}`. In Cloud Backup and DR -// locations map to GCP regions, for example **us-central1**. +// 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR +// locations map to Google Cloud regions, for example **us-central1**. func (r *ProjectsLocationsManagementServersService) Create(parent string, managementserver *ManagementServer) *ProjectsLocationsManagementServersCreateCall { c := &ProjectsLocationsManagementServersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -1568,8 +5774,8 @@ type ProjectsLocationsManagementServersGetCall struct { // Get: Gets details of a single ManagementServer. // // - name: Name of the management server resource name, in the format -// `projects/{project_id}/locations/{location}/managementServers/{resource_nam -// e}`. +// 'projects/{project_id}/locations/{location}/managementServers/{resource_nam +// e}'. func (r *ProjectsLocationsManagementServersService) Get(name string) *ProjectsLocationsManagementServersGetCall { c := &ProjectsLocationsManagementServersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -1805,10 +6011,10 @@ type ProjectsLocationsManagementServersListCall struct { // List: Lists ManagementServers in a given project and location. // // - parent: The project and location for which to retrieve management servers -// information, in the format `projects/{project_id}/locations/{location}`. -// In Cloud BackupDR, locations map to GCP regions, for example +// information, in the format 'projects/{project_id}/locations/{location}'. +// In Cloud BackupDR, locations map to Google Cloud regions, for example // **us-central1**. To retrieve management servers for all locations, use "-" -// for the `{location}` value. +// for the '{location}' value. func (r *ProjectsLocationsManagementServersService) List(parent string) *ProjectsLocationsManagementServersListCall { c := &ProjectsLocationsManagementServersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json index f53a9899472..a1395fbf115 100644 --- a/container/v1beta1/container-api.json +++ b/container/v1beta1/container-api.json @@ -2565,7 +2565,7 @@ } } }, - "revision": "20240618", + "revision": "20240619", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2717,6 +2717,10 @@ "$ref": "NetworkPolicyConfig", "description": "Configuration for NetworkPolicy. This only tracks whether the addon is enabled or not on the Master, it does not track whether network policy is enabled for the nodes." }, + "rayOperatorConfig": { + "$ref": "RayOperatorConfig", + "description": "Optional. Configuration for Ray Operator addon." + }, "statefulHaConfig": { "$ref": "StatefulHAConfig", "description": "Optional. Configuration for the StatefulHA add-on." @@ -6792,6 +6796,47 @@ }, "type": "object" }, + "RayClusterLoggingConfig": { + "description": "RayClusterLoggingConfig specifies logging configuration for Ray clusters.", + "id": "RayClusterLoggingConfig", + "properties": { + "enabled": { + "description": "Enable log collection for Ray clusters.", + "type": "boolean" + } + }, + "type": "object" + }, + "RayClusterMonitoringConfig": { + "description": "RayClusterMonitoringConfig specifies monitoring configuration for Ray clusters.", + "id": "RayClusterMonitoringConfig", + "properties": { + "enabled": { + "description": "Enable metrics collection for Ray clusters.", + "type": "boolean" + } + }, + "type": "object" + }, + "RayOperatorConfig": { + "description": "Configuration options for the Ray Operator add-on.", + "id": "RayOperatorConfig", + "properties": { + "enabled": { + "description": "Whether the Ray addon is enabled for this cluster.", + "type": "boolean" + }, + "rayClusterLoggingConfig": { + "$ref": "RayClusterLoggingConfig", + "description": "Optional. Logging configuration for Ray clusters." + }, + "rayClusterMonitoringConfig": { + "$ref": "RayClusterMonitoringConfig", + "description": "Optional. Monitoring configuration for Ray clusters." + } + }, + "type": "object" + }, "RecurringTimeWindow": { "description": "Represents an arbitrary window of time that recurs.", "id": "RecurringTimeWindow", diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index f3195ace7b7..0750212fd7f 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -463,6 +463,8 @@ type AddonsConfig struct { // whether the addon is enabled or not on the Master, it does not track whether // network policy is enabled for the nodes. NetworkPolicyConfig *NetworkPolicyConfig `json:"networkPolicyConfig,omitempty"` + // RayOperatorConfig: Optional. Configuration for Ray Operator addon. + RayOperatorConfig *RayOperatorConfig `json:"rayOperatorConfig,omitempty"` // StatefulHaConfig: Optional. Configuration for the StatefulHA add-on. StatefulHaConfig *StatefulHAConfig `json:"statefulHaConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "CloudRunConfig") to @@ -5646,6 +5648,79 @@ func (s *RangeInfo) UnmarshalJSON(data []byte) error { return nil } +// RayClusterLoggingConfig: RayClusterLoggingConfig specifies logging +// configuration for Ray clusters. +type RayClusterLoggingConfig struct { + // Enabled: Enable log collection for Ray clusters. + Enabled bool `json:"enabled,omitempty"` + // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Enabled") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *RayClusterLoggingConfig) MarshalJSON() ([]byte, error) { + type NoMethod RayClusterLoggingConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// RayClusterMonitoringConfig: RayClusterMonitoringConfig specifies monitoring +// configuration for Ray clusters. +type RayClusterMonitoringConfig struct { + // Enabled: Enable metrics collection for Ray clusters. + Enabled bool `json:"enabled,omitempty"` + // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Enabled") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *RayClusterMonitoringConfig) MarshalJSON() ([]byte, error) { + type NoMethod RayClusterMonitoringConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// RayOperatorConfig: Configuration options for the Ray Operator add-on. +type RayOperatorConfig struct { + // Enabled: Whether the Ray addon is enabled for this cluster. + Enabled bool `json:"enabled,omitempty"` + // RayClusterLoggingConfig: Optional. Logging configuration for Ray clusters. + RayClusterLoggingConfig *RayClusterLoggingConfig `json:"rayClusterLoggingConfig,omitempty"` + // RayClusterMonitoringConfig: Optional. Monitoring configuration for Ray + // clusters. + RayClusterMonitoringConfig *RayClusterMonitoringConfig `json:"rayClusterMonitoringConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Enabled") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *RayOperatorConfig) MarshalJSON() ([]byte, error) { + type NoMethod RayOperatorConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // RecurringTimeWindow: Represents an arbitrary window of time that recurs. type RecurringTimeWindow struct { // Recurrence: An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) diff --git a/gkebackup/v1/gkebackup-api.json b/gkebackup/v1/gkebackup-api.json index 4576d933651..f5548704a59 100644 --- a/gkebackup/v1/gkebackup-api.json +++ b/gkebackup/v1/gkebackup-api.json @@ -1713,7 +1713,7 @@ } } }, - "revision": "20240518", + "revision": "20240626", "rootUrl": "https://gkebackup.googleapis.com/", "schemas": { "AuditConfig": { @@ -2415,7 +2415,7 @@ "id": "GroupKind", "properties": { "resourceGroup": { - "description": "Optional. API group string of a Kubernetes resource, e.g. \"apiextensions.k8s.io\", \"storage.k8s.io\", etc. Note: use empty string for core API group", + "description": "Optional. API group string of a Kubernetes resource, e.g. \"apiextensions.k8s.io\", \"storage.k8s.io\", etc. Note: use empty string for core API group.", "type": "string" }, "resourceKind": { @@ -2651,11 +2651,11 @@ "type": "object" }, "Namespaces": { - "description": "A list of Kubernetes Namespaces", + "description": "A list of Kubernetes Namespaces.", "id": "Namespaces", "properties": { "namespaces": { - "description": "Optional. A list of Kubernetes Namespaces", + "description": "Optional. A list of Kubernetes Namespaces.", "items": { "type": "string" }, @@ -2826,7 +2826,7 @@ }, "filter": { "$ref": "Filter", - "description": "Optional. Immutable. Filters resources for `Restore`. If not specified, the scope of the restore will remain the same as defined in the `RestorePlan`. If this is specified, and no resources are matched by the `inclusion_filters` or everyting is excluded by the `exclusion_filters`, nothing will be restored. This filter can only be specified if the value of namespaced_resource_restore_mode is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or `MERGE_REPLACE_ON_CONFLICT`." + "description": "Optional. Immutable. Filters resources for `Restore`. If not specified, the scope of the restore will remain the same as defined in the `RestorePlan`. If this is specified and no resources are matched by the `inclusion_filters` or everyting is excluded by the `exclusion_filters`, nothing will be restored. This filter can only be specified if the value of namespaced_resource_restore_mode is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or `MERGE_REPLACE_ON_CONFLICT`." }, "labels": { "additionalProperties": { diff --git a/gkebackup/v1/gkebackup-gen.go b/gkebackup/v1/gkebackup-gen.go index 5edb571bfe2..6b9ad56f02b 100644 --- a/gkebackup/v1/gkebackup-gen.go +++ b/gkebackup/v1/gkebackup-gen.go @@ -1162,7 +1162,7 @@ func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { type GroupKind struct { // ResourceGroup: Optional. API group string of a Kubernetes resource, e.g. // "apiextensions.k8s.io", "storage.k8s.io", etc. Note: use empty string for - // core API group + // core API group. ResourceGroup string `json:"resourceGroup,omitempty"` // ResourceKind: Optional. Kind of a Kubernetes resource, must be in // UpperCamelCase (PascalCase) and singular form. E.g. @@ -1504,9 +1504,9 @@ func (s *NamespacedNames) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// Namespaces: A list of Kubernetes Namespaces +// Namespaces: A list of Kubernetes Namespaces. type Namespaces struct { - // Namespaces: Optional. A list of Kubernetes Namespaces + // Namespaces: Optional. A list of Kubernetes Namespaces. Namespaces []string `json:"namespaces,omitempty"` // ForceSendFields is a list of field names (e.g. "Namespaces") to // unconditionally include in API requests. By default, fields with empty or @@ -1773,7 +1773,7 @@ type Restore struct { Etag string `json:"etag,omitempty"` // Filter: Optional. Immutable. Filters resources for `Restore`. If not // specified, the scope of the restore will remain the same as defined in the - // `RestorePlan`. If this is specified, and no resources are matched by the + // `RestorePlan`. If this is specified and no resources are matched by the // `inclusion_filters` or everyting is excluded by the `exclusion_filters`, // nothing will be restored. This filter can only be specified if the value of // namespaced_resource_restore_mode is set to `MERGE_SKIP_ON_CONFLICT`, diff --git a/networksecurity/v1/networksecurity-api.json b/networksecurity/v1/networksecurity-api.json index d8adb5de2d1..50b3eae2f42 100644 --- a/networksecurity/v1/networksecurity-api.json +++ b/networksecurity/v1/networksecurity-api.json @@ -3162,7 +3162,7 @@ } } }, - "revision": "20240505", + "revision": "20240626", "rootUrl": "https://networksecurity.googleapis.com/", "schemas": { "AddAddressGroupItemsRequest": { @@ -4262,14 +4262,14 @@ "id": "MTLSPolicy", "properties": { "clientValidationCa": { - "description": "Required if the policy is to be used with Traffic Director. For external HTTPS load balancers it must be empty. Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.", + "description": "Required if the policy is to be used with Traffic Director. For Application Load Balancers it must be empty. Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.", "items": { "$ref": "ValidationCA" }, "type": "array" }, "clientValidationMode": { - "description": "When the client presents an invalid certificate or no certificate to the load balancer, the `client_validation_mode` specifies how the client connection is handled. Required if the policy is to be used with the external HTTPS load balancing. For Traffic Director it must be empty.", + "description": "When the client presents an invalid certificate or no certificate to the load balancer, the `client_validation_mode` specifies how the client connection is handled. Required if the policy is to be used with the Application Load Balancers. For Traffic Director it must be empty.", "enum": [ "CLIENT_VALIDATION_MODE_UNSPECIFIED", "ALLOW_INVALID_OR_MISSING_CLIENT_CERT", @@ -4283,7 +4283,7 @@ "type": "string" }, "clientValidationTrustConfig": { - "description": "Reference to the TrustConfig from certificatemanager.googleapis.com namespace. If specified, the chain validation will be performed against certificates configured in the given TrustConfig. Allowed only if the policy is to be used with external HTTPS load balancers.", + "description": "Reference to the TrustConfig from certificatemanager.googleapis.com namespace. If specified, the chain validation will be performed against certificates configured in the given TrustConfig. Allowed only if the policy is to be used with Application Load Balancers.", "type": "string" } }, @@ -4408,7 +4408,7 @@ "type": "object" }, "SecurityProfile": { - "description": "SecurityProfile is a resource that defines the behavior for one of many ProfileTypes. Next ID: 10", + "description": "SecurityProfile is a resource that defines the behavior for one of many ProfileTypes. Next ID: 11", "id": "SecurityProfile", "properties": { "createTime": { @@ -4463,7 +4463,7 @@ "type": "object" }, "SecurityProfileGroup": { - "description": "SecurityProfileGroup is a resource that defines the behavior for various ProfileTypes. Next ID: 9", + "description": "SecurityProfileGroup is a resource that defines the behavior for various ProfileTypes. Next ID: 10", "id": "SecurityProfileGroup", "properties": { "createTime": { @@ -4506,11 +4506,11 @@ "type": "object" }, "ServerTlsPolicy": { - "description": "ServerTlsPolicy is a resource that specifies how a server should authenticate incoming requests. This resource itself does not affect configuration unless it is attached to a target HTTPS proxy or endpoint config selector resource. ServerTlsPolicy in the form accepted by external HTTPS load balancers can be attached only to TargetHttpsProxy with an `EXTERNAL` or `EXTERNAL_MANAGED` load balancing scheme. Traffic Director compatible ServerTlsPolicies can be attached to EndpointPolicy and TargetHttpsProxy with Traffic Director `INTERNAL_SELF_MANAGED` load balancing scheme.", + "description": "ServerTlsPolicy is a resource that specifies how a server should authenticate incoming requests. This resource itself does not affect configuration unless it is attached to a target HTTPS proxy or endpoint config selector resource. ServerTlsPolicy in the form accepted by Application Load Balancers can be attached only to TargetHttpsProxy with an `EXTERNAL`, `EXTERNAL_MANAGED` or `INTERNAL_MANAGED` load balancing scheme. Traffic Director compatible ServerTlsPolicies can be attached to EndpointPolicy and TargetHttpsProxy with Traffic Director `INTERNAL_SELF_MANAGED` load balancing scheme.", "id": "ServerTlsPolicy", "properties": { "allowOpen": { - "description": "This field applies only for Traffic Director policies. It is must be set to false for external HTTPS load balancer policies. Determines if server allows plaintext connections. If set to true, server allows plain text connections. By default, it is set to false. This setting is not exclusive of other encryption modes. For example, if `allow_open` and `mtls_policy` are set, server allows both plain text and mTLS connections. See documentation of other encryption modes to confirm compatibility. Consider using it if you wish to upgrade in place your deployment to TLS while having mixed TLS and non-TLS traffic reaching port :80.", + "description": "This field applies only for Traffic Director policies. It is must be set to false for Application Load Balancer policies. Determines if server allows plaintext connections. If set to true, server allows plain text connections. By default, it is set to false. This setting is not exclusive of other encryption modes. For example, if `allow_open` and `mtls_policy` are set, server allows both plain text and mTLS connections. See documentation of other encryption modes to confirm compatibility. Consider using it if you wish to upgrade in place your deployment to TLS while having mixed TLS and non-TLS traffic reaching port :80.", "type": "boolean" }, "createTime": { @@ -4532,7 +4532,7 @@ }, "mtlsPolicy": { "$ref": "MTLSPolicy", - "description": "This field is required if the policy is used with external HTTPS load balancers. This field can be empty for Traffic Director. Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS). If not specified, client certificate will not be requested. The connection is treated as TLS and not mTLS. If `allow_open` and `mtls_policy` are set, server allows both plain text and mTLS connections." + "description": "This field is required if the policy is used with Application Load Balancers. This field can be empty for Traffic Director. Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS). If not specified, client certificate will not be requested. The connection is treated as TLS and not mTLS. If `allow_open` and `mtls_policy` are set, server allows both plain text and mTLS connections." }, "name": { "description": "Required. Name of the ServerTlsPolicy resource. It matches the pattern `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`", @@ -4540,7 +4540,7 @@ }, "serverCertificate": { "$ref": "GoogleCloudNetworksecurityV1CertificateProvider", - "description": "Optional if policy is to be used with Traffic Director. For external HTTPS load balancer must be empty. Defines a mechanism to provision server identity (public and private keys). Cannot be combined with `allow_open` as a permissive mode that allows both plain text and TLS is not supported." + "description": "Optional if policy is to be used with Traffic Director. For Application Load Balancers must be empty. Defines a mechanism to provision server identity (public and private keys). Cannot be combined with `allow_open` as a permissive mode that allows both plain text and TLS is not supported." }, "updateTime": { "description": "Output only. The timestamp when the resource was updated.", diff --git a/networksecurity/v1/networksecurity-gen.go b/networksecurity/v1/networksecurity-gen.go index 0b7881fc2dc..9cd4a65e61f 100644 --- a/networksecurity/v1/networksecurity-gen.go +++ b/networksecurity/v1/networksecurity-gen.go @@ -1935,14 +1935,14 @@ func (s *Location) MarshalJSON() ([]byte, error) { // MTLSPolicy: Specification of the MTLSPolicy. type MTLSPolicy struct { // ClientValidationCa: Required if the policy is to be used with Traffic - // Director. For external HTTPS load balancers it must be empty. Defines the + // Director. For Application Load Balancers it must be empty. Defines the // mechanism to obtain the Certificate Authority certificate to validate the // client certificate. ClientValidationCa []*ValidationCA `json:"clientValidationCa,omitempty"` // ClientValidationMode: When the client presents an invalid certificate or no // certificate to the load balancer, the `client_validation_mode` specifies how // the client connection is handled. Required if the policy is to be used with - // the external HTTPS load balancing. For Traffic Director it must be empty. + // the Application Load Balancers. For Traffic Director it must be empty. // // Possible values: // "CLIENT_VALIDATION_MODE_UNSPECIFIED" - Not allowed. @@ -1961,8 +1961,8 @@ type MTLSPolicy struct { // ClientValidationTrustConfig: Reference to the TrustConfig from // certificatemanager.googleapis.com namespace. If specified, the chain // validation will be performed against certificates configured in the given - // TrustConfig. Allowed only if the policy is to be used with external HTTPS - // load balancers. + // TrustConfig. Allowed only if the policy is to be used with Application Load + // Balancers. ClientValidationTrustConfig string `json:"clientValidationTrustConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "ClientValidationCa") to // unconditionally include in API requests. By default, fields with empty or @@ -2134,7 +2134,7 @@ func (s *Rule) MarshalJSON() ([]byte, error) { } // SecurityProfile: SecurityProfile is a resource that defines the behavior for -// one of many ProfileTypes. Next ID: 10 +// one of many ProfileTypes. Next ID: 11 type SecurityProfile struct { // CreateTime: Output only. Resource creation timestamp. CreateTime string `json:"createTime,omitempty"` @@ -2186,7 +2186,7 @@ func (s *SecurityProfile) MarshalJSON() ([]byte, error) { } // SecurityProfileGroup: SecurityProfileGroup is a resource that defines the -// behavior for various ProfileTypes. Next ID: 9 +// behavior for various ProfileTypes. Next ID: 10 type SecurityProfileGroup struct { // CreateTime: Output only. Resource creation timestamp. CreateTime string `json:"createTime,omitempty"` @@ -2233,22 +2233,22 @@ func (s *SecurityProfileGroup) MarshalJSON() ([]byte, error) { // ServerTlsPolicy: ServerTlsPolicy is a resource that specifies how a server // should authenticate incoming requests. This resource itself does not affect // configuration unless it is attached to a target HTTPS proxy or endpoint -// config selector resource. ServerTlsPolicy in the form accepted by external -// HTTPS load balancers can be attached only to TargetHttpsProxy with an -// `EXTERNAL` or `EXTERNAL_MANAGED` load balancing scheme. Traffic Director -// compatible ServerTlsPolicies can be attached to EndpointPolicy and -// TargetHttpsProxy with Traffic Director `INTERNAL_SELF_MANAGED` load -// balancing scheme. +// config selector resource. ServerTlsPolicy in the form accepted by +// Application Load Balancers can be attached only to TargetHttpsProxy with an +// `EXTERNAL`, `EXTERNAL_MANAGED` or `INTERNAL_MANAGED` load balancing scheme. +// Traffic Director compatible ServerTlsPolicies can be attached to +// EndpointPolicy and TargetHttpsProxy with Traffic Director +// `INTERNAL_SELF_MANAGED` load balancing scheme. type ServerTlsPolicy struct { // AllowOpen: This field applies only for Traffic Director policies. It is must - // be set to false for external HTTPS load balancer policies. Determines if - // server allows plaintext connections. If set to true, server allows plain - // text connections. By default, it is set to false. This setting is not - // exclusive of other encryption modes. For example, if `allow_open` and - // `mtls_policy` are set, server allows both plain text and mTLS connections. - // See documentation of other encryption modes to confirm compatibility. - // Consider using it if you wish to upgrade in place your deployment to TLS - // while having mixed TLS and non-TLS traffic reaching port :80. + // be set to false for Application Load Balancer policies. Determines if server + // allows plaintext connections. If set to true, server allows plain text + // connections. By default, it is set to false. This setting is not exclusive + // of other encryption modes. For example, if `allow_open` and `mtls_policy` + // are set, server allows both plain text and mTLS connections. See + // documentation of other encryption modes to confirm compatibility. Consider + // using it if you wish to upgrade in place your deployment to TLS while having + // mixed TLS and non-TLS traffic reaching port :80. AllowOpen bool `json:"allowOpen,omitempty"` // CreateTime: Output only. The timestamp when the resource was created. CreateTime string `json:"createTime,omitempty"` @@ -2256,8 +2256,8 @@ type ServerTlsPolicy struct { Description string `json:"description,omitempty"` // Labels: Set of label tags associated with the resource. Labels map[string]string `json:"labels,omitempty"` - // MtlsPolicy: This field is required if the policy is used with external HTTPS - // load balancers. This field can be empty for Traffic Director. Defines a + // MtlsPolicy: This field is required if the policy is used with Application + // Load Balancers. This field can be empty for Traffic Director. Defines a // mechanism to provision peer validation certificates for peer to peer // authentication (Mutual TLS - mTLS). If not specified, client certificate // will not be requested. The connection is treated as TLS and not mTLS. If @@ -2268,7 +2268,7 @@ type ServerTlsPolicy struct { // `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}` Name string `json:"name,omitempty"` // ServerCertificate: Optional if policy is to be used with Traffic Director. - // For external HTTPS load balancer must be empty. Defines a mechanism to + // For Application Load Balancers must be empty. Defines a mechanism to // provision server identity (public and private keys). Cannot be combined with // `allow_open` as a permissive mode that allows both plain text and TLS is not // supported. diff --git a/networksecurity/v1beta1/networksecurity-api.json b/networksecurity/v1beta1/networksecurity-api.json index 1ef066f67cf..22283777ad0 100644 --- a/networksecurity/v1beta1/networksecurity-api.json +++ b/networksecurity/v1beta1/networksecurity-api.json @@ -3162,7 +3162,7 @@ } } }, - "revision": "20240505", + "revision": "20240626", "rootUrl": "https://networksecurity.googleapis.com/", "schemas": { "AddAddressGroupItemsRequest": { @@ -4279,14 +4279,14 @@ "id": "MTLSPolicy", "properties": { "clientValidationCa": { - "description": "Required if the policy is to be used with Traffic Director. For external HTTPS load balancers it must be empty. Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.", + "description": "Required if the policy is to be used with Traffic Director. For Application Load Balancers it must be empty. Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.", "items": { "$ref": "ValidationCA" }, "type": "array" }, "clientValidationMode": { - "description": "When the client presents an invalid certificate or no certificate to the load balancer, the `client_validation_mode` specifies how the client connection is handled. Required if the policy is to be used with the external HTTPS load balancing. For Traffic Director it must be empty.", + "description": "When the client presents an invalid certificate or no certificate to the load balancer, the `client_validation_mode` specifies how the client connection is handled. Required if the policy is to be used with the Application Load Balancers. For Traffic Director it must be empty.", "enum": [ "CLIENT_VALIDATION_MODE_UNSPECIFIED", "ALLOW_INVALID_OR_MISSING_CLIENT_CERT", @@ -4300,7 +4300,7 @@ "type": "string" }, "clientValidationTrustConfig": { - "description": "Reference to the TrustConfig from certificatemanager.googleapis.com namespace. If specified, the chain validation will be performed against certificates configured in the given TrustConfig. Allowed only if the policy is to be used with external HTTPS load balancers.", + "description": "Reference to the TrustConfig from certificatemanager.googleapis.com namespace. If specified, the chain validation will be performed against certificates configured in the given TrustConfig. Allowed only if the policy is to be used with Application Load Balancers.", "type": "string" } }, @@ -4425,7 +4425,7 @@ "type": "object" }, "SecurityProfile": { - "description": "SecurityProfile is a resource that defines the behavior for one of many ProfileTypes. Next ID: 10", + "description": "SecurityProfile is a resource that defines the behavior for one of many ProfileTypes. Next ID: 11", "id": "SecurityProfile", "properties": { "createTime": { @@ -4480,7 +4480,7 @@ "type": "object" }, "SecurityProfileGroup": { - "description": "SecurityProfileGroup is a resource that defines the behavior for various ProfileTypes. Next ID: 9", + "description": "SecurityProfileGroup is a resource that defines the behavior for various ProfileTypes. Next ID: 10", "id": "SecurityProfileGroup", "properties": { "createTime": { @@ -4523,11 +4523,11 @@ "type": "object" }, "ServerTlsPolicy": { - "description": "ServerTlsPolicy is a resource that specifies how a server should authenticate incoming requests. This resource itself does not affect configuration unless it is attached to a target HTTPS proxy or endpoint config selector resource. ServerTlsPolicy in the form accepted by external HTTPS load balancers can be attached only to TargetHttpsProxy with an `EXTERNAL` or `EXTERNAL_MANAGED` load balancing scheme. Traffic Director compatible ServerTlsPolicies can be attached to EndpointPolicy and TargetHttpsProxy with Traffic Director `INTERNAL_SELF_MANAGED` load balancing scheme.", + "description": "ServerTlsPolicy is a resource that specifies how a server should authenticate incoming requests. This resource itself does not affect configuration unless it is attached to a target HTTPS proxy or endpoint config selector resource. ServerTlsPolicy in the form accepted by Application Load Balancers can be attached only to TargetHttpsProxy with an `EXTERNAL`, `EXTERNAL_MANAGED` or `INTERNAL_MANAGED` load balancing scheme. Traffic Director compatible ServerTlsPolicies can be attached to EndpointPolicy and TargetHttpsProxy with Traffic Director `INTERNAL_SELF_MANAGED` load balancing scheme.", "id": "ServerTlsPolicy", "properties": { "allowOpen": { - "description": "This field applies only for Traffic Director policies. It is must be set to false for external HTTPS load balancer policies. Determines if server allows plaintext connections. If set to true, server allows plain text connections. By default, it is set to false. This setting is not exclusive of other encryption modes. For example, if `allow_open` and `mtls_policy` are set, server allows both plain text and mTLS connections. See documentation of other encryption modes to confirm compatibility. Consider using it if you wish to upgrade in place your deployment to TLS while having mixed TLS and non-TLS traffic reaching port :80.", + "description": "This field applies only for Traffic Director policies. It is must be set to false for Application Load Balancer policies. Determines if server allows plaintext connections. If set to true, server allows plain text connections. By default, it is set to false. This setting is not exclusive of other encryption modes. For example, if `allow_open` and `mtls_policy` are set, server allows both plain text and mTLS connections. See documentation of other encryption modes to confirm compatibility. Consider using it if you wish to upgrade in place your deployment to TLS while having mixed TLS and non-TLS traffic reaching port :80.", "type": "boolean" }, "createTime": { @@ -4549,7 +4549,7 @@ }, "mtlsPolicy": { "$ref": "MTLSPolicy", - "description": "This field is required if the policy is used with external HTTPS load balancers. This field can be empty for Traffic Director. Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS). If not specified, client certificate will not be requested. The connection is treated as TLS and not mTLS. If `allow_open` and `mtls_policy` are set, server allows both plain text and mTLS connections." + "description": "This field is required if the policy is used with Application Load Balancers. This field can be empty for Traffic Director. Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS). If not specified, client certificate will not be requested. The connection is treated as TLS and not mTLS. If `allow_open` and `mtls_policy` are set, server allows both plain text and mTLS connections." }, "name": { "description": "Required. Name of the ServerTlsPolicy resource. It matches the pattern `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`", @@ -4557,7 +4557,7 @@ }, "serverCertificate": { "$ref": "GoogleCloudNetworksecurityV1beta1CertificateProvider", - "description": "Optional if policy is to be used with Traffic Director. For external HTTPS load balancer must be empty. Defines a mechanism to provision server identity (public and private keys). Cannot be combined with `allow_open` as a permissive mode that allows both plain text and TLS is not supported." + "description": "Optional if policy is to be used with Traffic Director. For Application Load Balancers must be empty. Defines a mechanism to provision server identity (public and private keys). Cannot be combined with `allow_open` as a permissive mode that allows both plain text and TLS is not supported." }, "updateTime": { "description": "Output only. The timestamp when the resource was updated.", diff --git a/networksecurity/v1beta1/networksecurity-gen.go b/networksecurity/v1beta1/networksecurity-gen.go index 53f5b87fe16..0724f160050 100644 --- a/networksecurity/v1beta1/networksecurity-gen.go +++ b/networksecurity/v1beta1/networksecurity-gen.go @@ -1943,14 +1943,14 @@ func (s *Location) MarshalJSON() ([]byte, error) { // MTLSPolicy: Specification of the MTLSPolicy. type MTLSPolicy struct { // ClientValidationCa: Required if the policy is to be used with Traffic - // Director. For external HTTPS load balancers it must be empty. Defines the + // Director. For Application Load Balancers it must be empty. Defines the // mechanism to obtain the Certificate Authority certificate to validate the // client certificate. ClientValidationCa []*ValidationCA `json:"clientValidationCa,omitempty"` // ClientValidationMode: When the client presents an invalid certificate or no // certificate to the load balancer, the `client_validation_mode` specifies how // the client connection is handled. Required if the policy is to be used with - // the external HTTPS load balancing. For Traffic Director it must be empty. + // the Application Load Balancers. For Traffic Director it must be empty. // // Possible values: // "CLIENT_VALIDATION_MODE_UNSPECIFIED" - Not allowed. @@ -1969,8 +1969,8 @@ type MTLSPolicy struct { // ClientValidationTrustConfig: Reference to the TrustConfig from // certificatemanager.googleapis.com namespace. If specified, the chain // validation will be performed against certificates configured in the given - // TrustConfig. Allowed only if the policy is to be used with external HTTPS - // load balancers. + // TrustConfig. Allowed only if the policy is to be used with Application Load + // Balancers. ClientValidationTrustConfig string `json:"clientValidationTrustConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "ClientValidationCa") to // unconditionally include in API requests. By default, fields with empty or @@ -2142,7 +2142,7 @@ func (s *Rule) MarshalJSON() ([]byte, error) { } // SecurityProfile: SecurityProfile is a resource that defines the behavior for -// one of many ProfileTypes. Next ID: 10 +// one of many ProfileTypes. Next ID: 11 type SecurityProfile struct { // CreateTime: Output only. Resource creation timestamp. CreateTime string `json:"createTime,omitempty"` @@ -2194,7 +2194,7 @@ func (s *SecurityProfile) MarshalJSON() ([]byte, error) { } // SecurityProfileGroup: SecurityProfileGroup is a resource that defines the -// behavior for various ProfileTypes. Next ID: 9 +// behavior for various ProfileTypes. Next ID: 10 type SecurityProfileGroup struct { // CreateTime: Output only. Resource creation timestamp. CreateTime string `json:"createTime,omitempty"` @@ -2241,22 +2241,22 @@ func (s *SecurityProfileGroup) MarshalJSON() ([]byte, error) { // ServerTlsPolicy: ServerTlsPolicy is a resource that specifies how a server // should authenticate incoming requests. This resource itself does not affect // configuration unless it is attached to a target HTTPS proxy or endpoint -// config selector resource. ServerTlsPolicy in the form accepted by external -// HTTPS load balancers can be attached only to TargetHttpsProxy with an -// `EXTERNAL` or `EXTERNAL_MANAGED` load balancing scheme. Traffic Director -// compatible ServerTlsPolicies can be attached to EndpointPolicy and -// TargetHttpsProxy with Traffic Director `INTERNAL_SELF_MANAGED` load -// balancing scheme. +// config selector resource. ServerTlsPolicy in the form accepted by +// Application Load Balancers can be attached only to TargetHttpsProxy with an +// `EXTERNAL`, `EXTERNAL_MANAGED` or `INTERNAL_MANAGED` load balancing scheme. +// Traffic Director compatible ServerTlsPolicies can be attached to +// EndpointPolicy and TargetHttpsProxy with Traffic Director +// `INTERNAL_SELF_MANAGED` load balancing scheme. type ServerTlsPolicy struct { // AllowOpen: This field applies only for Traffic Director policies. It is must - // be set to false for external HTTPS load balancer policies. Determines if - // server allows plaintext connections. If set to true, server allows plain - // text connections. By default, it is set to false. This setting is not - // exclusive of other encryption modes. For example, if `allow_open` and - // `mtls_policy` are set, server allows both plain text and mTLS connections. - // See documentation of other encryption modes to confirm compatibility. - // Consider using it if you wish to upgrade in place your deployment to TLS - // while having mixed TLS and non-TLS traffic reaching port :80. + // be set to false for Application Load Balancer policies. Determines if server + // allows plaintext connections. If set to true, server allows plain text + // connections. By default, it is set to false. This setting is not exclusive + // of other encryption modes. For example, if `allow_open` and `mtls_policy` + // are set, server allows both plain text and mTLS connections. See + // documentation of other encryption modes to confirm compatibility. Consider + // using it if you wish to upgrade in place your deployment to TLS while having + // mixed TLS and non-TLS traffic reaching port :80. AllowOpen bool `json:"allowOpen,omitempty"` // CreateTime: Output only. The timestamp when the resource was created. CreateTime string `json:"createTime,omitempty"` @@ -2264,8 +2264,8 @@ type ServerTlsPolicy struct { Description string `json:"description,omitempty"` // Labels: Set of label tags associated with the resource. Labels map[string]string `json:"labels,omitempty"` - // MtlsPolicy: This field is required if the policy is used with external HTTPS - // load balancers. This field can be empty for Traffic Director. Defines a + // MtlsPolicy: This field is required if the policy is used with Application + // Load Balancers. This field can be empty for Traffic Director. Defines a // mechanism to provision peer validation certificates for peer to peer // authentication (Mutual TLS - mTLS). If not specified, client certificate // will not be requested. The connection is treated as TLS and not mTLS. If @@ -2276,7 +2276,7 @@ type ServerTlsPolicy struct { // `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}` Name string `json:"name,omitempty"` // ServerCertificate: Optional if policy is to be used with Traffic Director. - // For external HTTPS load balancer must be empty. Defines a mechanism to + // For Application Load Balancers must be empty. Defines a mechanism to // provision server identity (public and private keys). Cannot be combined with // `allow_open` as a permissive mode that allows both plain text and TLS is not // supported.