Backup and DR Service API . projects . locations . backupVaults . dataSources

Instance Methods

backups()

Returns the backups Resource.

abandonBackup(dataSource, body=None, x__xgafv=None)

Internal only. Abandons a backup.

close()

Close httplib2 connections.

fetchAccessToken(name, body=None, x__xgafv=None)

Internal only. Fetch access token for a given data source.

finalizeBackup(dataSource, body=None, x__xgafv=None)

Internal only. Finalize a backup that was started by a call to InitiateBackup.

get(name, x__xgafv=None)

Gets details of a DataSource.

initiateBackup(dataSource, body=None, x__xgafv=None)

Internal only. Initiates a backup.

list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)

Lists DataSources in a given project and location.

list_next()

Retrieves the next page of results.

patch(name, allowMissing=None, body=None, requestId=None, updateMask=None, x__xgafv=None)

Updates the settings of a DataSource.

remove(name, body=None, x__xgafv=None)

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.

setInternalStatus(dataSource, body=None, x__xgafv=None)

Sets the internal status of a DataSource.

Method Details

abandonBackup(dataSource, body=None, x__xgafv=None)
Internal only. Abandons a backup.

Args:
  dataSource: string, Required. The resource name of the instance, in the format 'projects/*/locations/*/backupVaults/*/dataSources/'. (required)
  body: object, The request body.
    The object takes the form of:

{ # request message for AbandonBackup.
  "requestId": "A String", # 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).
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # This resource represents a long-running operation that is the result of a network API call.
  "done": True or False, # 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.
  "error": { # 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). # The error result of the operation in case of failure or cancellation.
    "code": 42, # The status code, which should be an enum value of google.rpc.Code.
    "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
      {
        "a_key": "", # Properties of the object. Contains field @type with type URL.
      },
    ],
    "message": "A String", # 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.
  },
  "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.
    "a_key": "", # Properties of the object. Contains field @type with type URL.
  },
  "name": "A String", # 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}`.
  "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`.
    "a_key": "", # Properties of the object. Contains field @type with type URL.
  },
}
close()
Close httplib2 connections.
fetchAccessToken(name, body=None, x__xgafv=None)
Internal only. Fetch access token for a given data source.

Args:
  name: string, Required. The resource name for the location for which static IPs should be returned. Must be in the format 'projects/*/locations/*/backupVaults/*/dataSources'. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for FetchAccessToken.
  "generationId": 42, # Required. The generation of the backup to update.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for FetchAccessToken.
  "expireTime": "A String", # The token is valid until this time.
  "readLocation": "A String", # The location in bucket that can be used for reading.
  "token": "A String", # The downscoped token that was created.
  "writeLocation": "A String", # The location in bucket that can be used for writing.
}
finalizeBackup(dataSource, body=None, x__xgafv=None)
Internal only. Finalize a backup that was started by a call to InitiateBackup.

Args:
  dataSource: string, Required. The resource name of the instance, in the format 'projects/*/locations/*/backupVaults/*/dataSources/'. (required)
  body: object, The request body.
    The object takes the form of:

{ # Message for finalizing a Backup.
  "backupId": "A String", # Required. Resource ID of the Backup resource to be finalized. This must be the same backup_id that was used in the InitiateBackupRequest.
  "consistencyTime": "A String", # 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.
  "description": "A String", # This will be assigned to the description field of the newly created Backup.
  "recoveryRangeEndTime": "A String", # The latest timestamp of data available in this Backup. This will be set on the newly created Backup.
  "recoveryRangeStartTime": "A String", # The earliest timestamp of data available in this Backup. This will set on the newly created Backup.
  "requestId": "A String", # 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).
  "retentionDuration": "A String", # 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.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # This resource represents a long-running operation that is the result of a network API call.
  "done": True or False, # 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.
  "error": { # 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). # The error result of the operation in case of failure or cancellation.
    "code": 42, # The status code, which should be an enum value of google.rpc.Code.
    "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
      {
        "a_key": "", # Properties of the object. Contains field @type with type URL.
      },
    ],
    "message": "A String", # 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.
  },
  "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.
    "a_key": "", # Properties of the object. Contains field @type with type URL.
  },
  "name": "A String", # 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}`.
  "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`.
    "a_key": "", # Properties of the object. Contains field @type with type URL.
  },
}
get(name, x__xgafv=None)
Gets details of a DataSource.

Args:
  name: string, Required. Name of the data source resource name, in the format 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}/dataSource/{resource_name}' (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Message describing a DataSource object. Datasource object used to represent Datasource details for both admin and basic view.
  "backupConfigInfo": { # BackupConfigInfo has information about how the resource is configured for Backup and about the most recent backup to this vault. # Output only. Details of how the resource is configured for backup.
    "backupApplianceBackupConfig": { # BackupApplianceBackupConfig captures the backup configuration for applications that are protected by Backup Appliances. # Configuration for an application backed up by a Backup Appliance.
      "applicationName": "A String", # The name of the application.
      "backupApplianceId": "A String", # The ID of the backup appliance.
      "backupApplianceName": "A String", # The name of the backup appliance.
      "hostName": "A String", # The name of the host where the application is running.
      "slaId": "A String", # The ID of the SLA of this application.
      "slpName": "A String", # The name of the SLP associated with the application.
      "sltName": "A String", # The name of the SLT associated with the application.
    },
    "gcpBackupConfig": { # GcpBackupConfig captures the Backup configuration details for Google Cloud resources. All Google Cloud resources regardless of type are protected with backup plan associations. # Configuration for a Google Cloud resource.
      "backupPlan": "A String", # The name of the backup plan.
      "backupPlanAssociation": "A String", # The name of the backup plan association.
      "backupPlanDescription": "A String", # The description of the backup plan.
      "backupPlanRules": [ # The names of the backup plan rules which point to this backupvault
        "A String",
      ],
    },
    "lastBackupError": { # 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). # Output only. If the last backup failed, this field has the error message.
      "code": 42, # The status code, which should be an enum value of google.rpc.Code.
      "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
        {
          "a_key": "", # Properties of the object. Contains field @type with type URL.
        },
      ],
      "message": "A String", # 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.
    },
    "lastBackupState": "A String", # Output only. The status of the last backup to this BackupVault
    "lastSuccessfulBackupConsistencyTime": "A String", # Output only. If the last backup were successful, this field has the consistency date.
  },
  "backupCount": "A String", # Number of backups in the data source.
  "configState": "A String", # Output only. The backup configuration state.
  "createTime": "A String", # Output only. The time when the instance was created.
  "dataSourceBackupApplianceApplication": { # BackupApplianceApplication describes a Source Resource when it is an application backed up by a BackupAppliance. # The backed up resource is a backup appliance application.
    "applianceId": "A String", # Appliance Id of the Backup Appliance.
    "applicationId": "A String", # The appid field of the application within the Backup Appliance.
    "applicationName": "A String", # The name of the Application as known to the Backup Appliance.
    "backupAppliance": "A String", # Appliance name.
    "hostId": "A String", # Hostid of the application host.
    "hostname": "A String", # Hostname of the host where the application is running.
    "type": "A String", # The type of the application. e.g. VMBackup
  },
  "dataSourceGcpResource": { # DataSourceGcpResource is used for protected resources that are Google Cloud Resources. This name is easeier to understand than GcpResourceDataSource or GcpDataSourceResource # 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.
    "computeInstanceDatasourceProperties": { # ComputeInstanceDataSourceProperties represents the properties of a ComputeEngine resource that are stored in the DataSource. # ComputeInstanceDataSourceProperties has a subset of Compute Instance properties that are useful at the Datasource level.
      "description": "A String", # The description of the Compute Engine instance.
      "machineType": "A String", # The machine type of the instance.
      "name": "A String", # Name of the compute instance backed up by the datasource.
      "totalDiskCount": "A String", # The total number of disks attached to the Instance.
      "totalDiskSizeGb": "A String", # The sum of all the disk sizes.
    },
    "gcpResourcename": "A String", # Output only. Full resource pathname URL of the source Google Cloud resource.
    "location": "A String", # Location of the resource: //"global"/"unspecified".
    "type": "A String", # The type of the Google Cloud resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.
  },
  "etag": "A String", # Server specified ETag for the ManagementServer resource to prevent simultaneous updates from overwiting each other.
  "labels": { # Optional. Resource labels to represent user provided metadata. No labels currently defined:
    "a_key": "A String",
  },
  "name": "A String", # Output only. Identifier. Name of the datasource to create. It must have the format`"projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}"`. `{datasource}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the backup vault.
  "state": "A String", # Output only. The DataSource resource instance state.
  "totalStoredBytes": "A String", # The number of bytes (metadata and data) stored in this datasource.
  "updateTime": "A String", # Output only. The time when the instance was updated.
}
initiateBackup(dataSource, body=None, x__xgafv=None)
Internal only. Initiates a backup.

Args:
  dataSource: string, Required. The resource name of the instance, in the format 'projects/*/locations/*/backupVaults/*/dataSources/'. (required)
  body: object, The request body.
    The object takes the form of:

{ # request message for InitiateBackup.
  "backupId": "A String", # Required. Resource ID of the Backup resource.
  "requestId": "A String", # 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).
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for InitiateBackup.
  "backup": "A String", # The name of the backup that was created.
  "baseBackupGenerationId": 42, # The generation id of the base backup. It is needed for the incremental backups.
  "newBackupGenerationId": 42, # The generation id of the new backup.
}
list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)
Lists DataSources in a given project and location.

Args:
  parent: string, 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. (required)
  filter: string, Optional. Filtering results.
  orderBy: string, Optional. Hint for how to order the results.
  pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
  pageToken: string, Optional. A token identifying a page of results the server should return.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for listing DataSources.
  "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.
    { # Message describing a DataSource object. Datasource object used to represent Datasource details for both admin and basic view.
      "backupConfigInfo": { # BackupConfigInfo has information about how the resource is configured for Backup and about the most recent backup to this vault. # Output only. Details of how the resource is configured for backup.
        "backupApplianceBackupConfig": { # BackupApplianceBackupConfig captures the backup configuration for applications that are protected by Backup Appliances. # Configuration for an application backed up by a Backup Appliance.
          "applicationName": "A String", # The name of the application.
          "backupApplianceId": "A String", # The ID of the backup appliance.
          "backupApplianceName": "A String", # The name of the backup appliance.
          "hostName": "A String", # The name of the host where the application is running.
          "slaId": "A String", # The ID of the SLA of this application.
          "slpName": "A String", # The name of the SLP associated with the application.
          "sltName": "A String", # The name of the SLT associated with the application.
        },
        "gcpBackupConfig": { # GcpBackupConfig captures the Backup configuration details for Google Cloud resources. All Google Cloud resources regardless of type are protected with backup plan associations. # Configuration for a Google Cloud resource.
          "backupPlan": "A String", # The name of the backup plan.
          "backupPlanAssociation": "A String", # The name of the backup plan association.
          "backupPlanDescription": "A String", # The description of the backup plan.
          "backupPlanRules": [ # The names of the backup plan rules which point to this backupvault
            "A String",
          ],
        },
        "lastBackupError": { # 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). # Output only. If the last backup failed, this field has the error message.
          "code": 42, # The status code, which should be an enum value of google.rpc.Code.
          "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
            {
              "a_key": "", # Properties of the object. Contains field @type with type URL.
            },
          ],
          "message": "A String", # 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.
        },
        "lastBackupState": "A String", # Output only. The status of the last backup to this BackupVault
        "lastSuccessfulBackupConsistencyTime": "A String", # Output only. If the last backup were successful, this field has the consistency date.
      },
      "backupCount": "A String", # Number of backups in the data source.
      "configState": "A String", # Output only. The backup configuration state.
      "createTime": "A String", # Output only. The time when the instance was created.
      "dataSourceBackupApplianceApplication": { # BackupApplianceApplication describes a Source Resource when it is an application backed up by a BackupAppliance. # The backed up resource is a backup appliance application.
        "applianceId": "A String", # Appliance Id of the Backup Appliance.
        "applicationId": "A String", # The appid field of the application within the Backup Appliance.
        "applicationName": "A String", # The name of the Application as known to the Backup Appliance.
        "backupAppliance": "A String", # Appliance name.
        "hostId": "A String", # Hostid of the application host.
        "hostname": "A String", # Hostname of the host where the application is running.
        "type": "A String", # The type of the application. e.g. VMBackup
      },
      "dataSourceGcpResource": { # DataSourceGcpResource is used for protected resources that are Google Cloud Resources. This name is easeier to understand than GcpResourceDataSource or GcpDataSourceResource # 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.
        "computeInstanceDatasourceProperties": { # ComputeInstanceDataSourceProperties represents the properties of a ComputeEngine resource that are stored in the DataSource. # ComputeInstanceDataSourceProperties has a subset of Compute Instance properties that are useful at the Datasource level.
          "description": "A String", # The description of the Compute Engine instance.
          "machineType": "A String", # The machine type of the instance.
          "name": "A String", # Name of the compute instance backed up by the datasource.
          "totalDiskCount": "A String", # The total number of disks attached to the Instance.
          "totalDiskSizeGb": "A String", # The sum of all the disk sizes.
        },
        "gcpResourcename": "A String", # Output only. Full resource pathname URL of the source Google Cloud resource.
        "location": "A String", # Location of the resource: //"global"/"unspecified".
        "type": "A String", # The type of the Google Cloud resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.
      },
      "etag": "A String", # Server specified ETag for the ManagementServer resource to prevent simultaneous updates from overwiting each other.
      "labels": { # Optional. Resource labels to represent user provided metadata. No labels currently defined:
        "a_key": "A String",
      },
      "name": "A String", # Output only. Identifier. Name of the datasource to create. It must have the format`"projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}"`. `{datasource}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the backup vault.
      "state": "A String", # Output only. The DataSource resource instance state.
      "totalStoredBytes": "A String", # The number of bytes (metadata and data) stored in this datasource.
      "updateTime": "A String", # Output only. The time when the instance was updated.
    },
  ],
  "nextPageToken": "A String", # A token identifying a page of results the server should return.
  "unreachable": [ # Locations that could not be reached.
    "A String",
  ],
}
list_next()
Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call 'execute()' on to request the next
          page. Returns None if there are no more items in the collection.
        
patch(name, allowMissing=None, body=None, requestId=None, updateMask=None, x__xgafv=None)
Updates the settings of a DataSource.

Args:
  name: string, Output only. Identifier. Name of the datasource to create. It must have the format`"projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}"`. `{datasource}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the backup vault. (required)
  body: object, The request body.
    The object takes the form of:

{ # Message describing a DataSource object. Datasource object used to represent Datasource details for both admin and basic view.
  "backupConfigInfo": { # BackupConfigInfo has information about how the resource is configured for Backup and about the most recent backup to this vault. # Output only. Details of how the resource is configured for backup.
    "backupApplianceBackupConfig": { # BackupApplianceBackupConfig captures the backup configuration for applications that are protected by Backup Appliances. # Configuration for an application backed up by a Backup Appliance.
      "applicationName": "A String", # The name of the application.
      "backupApplianceId": "A String", # The ID of the backup appliance.
      "backupApplianceName": "A String", # The name of the backup appliance.
      "hostName": "A String", # The name of the host where the application is running.
      "slaId": "A String", # The ID of the SLA of this application.
      "slpName": "A String", # The name of the SLP associated with the application.
      "sltName": "A String", # The name of the SLT associated with the application.
    },
    "gcpBackupConfig": { # GcpBackupConfig captures the Backup configuration details for Google Cloud resources. All Google Cloud resources regardless of type are protected with backup plan associations. # Configuration for a Google Cloud resource.
      "backupPlan": "A String", # The name of the backup plan.
      "backupPlanAssociation": "A String", # The name of the backup plan association.
      "backupPlanDescription": "A String", # The description of the backup plan.
      "backupPlanRules": [ # The names of the backup plan rules which point to this backupvault
        "A String",
      ],
    },
    "lastBackupError": { # 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). # Output only. If the last backup failed, this field has the error message.
      "code": 42, # The status code, which should be an enum value of google.rpc.Code.
      "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
        {
          "a_key": "", # Properties of the object. Contains field @type with type URL.
        },
      ],
      "message": "A String", # 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.
    },
    "lastBackupState": "A String", # Output only. The status of the last backup to this BackupVault
    "lastSuccessfulBackupConsistencyTime": "A String", # Output only. If the last backup were successful, this field has the consistency date.
  },
  "backupCount": "A String", # Number of backups in the data source.
  "configState": "A String", # Output only. The backup configuration state.
  "createTime": "A String", # Output only. The time when the instance was created.
  "dataSourceBackupApplianceApplication": { # BackupApplianceApplication describes a Source Resource when it is an application backed up by a BackupAppliance. # The backed up resource is a backup appliance application.
    "applianceId": "A String", # Appliance Id of the Backup Appliance.
    "applicationId": "A String", # The appid field of the application within the Backup Appliance.
    "applicationName": "A String", # The name of the Application as known to the Backup Appliance.
    "backupAppliance": "A String", # Appliance name.
    "hostId": "A String", # Hostid of the application host.
    "hostname": "A String", # Hostname of the host where the application is running.
    "type": "A String", # The type of the application. e.g. VMBackup
  },
  "dataSourceGcpResource": { # DataSourceGcpResource is used for protected resources that are Google Cloud Resources. This name is easeier to understand than GcpResourceDataSource or GcpDataSourceResource # 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.
    "computeInstanceDatasourceProperties": { # ComputeInstanceDataSourceProperties represents the properties of a ComputeEngine resource that are stored in the DataSource. # ComputeInstanceDataSourceProperties has a subset of Compute Instance properties that are useful at the Datasource level.
      "description": "A String", # The description of the Compute Engine instance.
      "machineType": "A String", # The machine type of the instance.
      "name": "A String", # Name of the compute instance backed up by the datasource.
      "totalDiskCount": "A String", # The total number of disks attached to the Instance.
      "totalDiskSizeGb": "A String", # The sum of all the disk sizes.
    },
    "gcpResourcename": "A String", # Output only. Full resource pathname URL of the source Google Cloud resource.
    "location": "A String", # Location of the resource: //"global"/"unspecified".
    "type": "A String", # The type of the Google Cloud resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.
  },
  "etag": "A String", # Server specified ETag for the ManagementServer resource to prevent simultaneous updates from overwiting each other.
  "labels": { # Optional. Resource labels to represent user provided metadata. No labels currently defined:
    "a_key": "A String",
  },
  "name": "A String", # Output only. Identifier. Name of the datasource to create. It must have the format`"projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}"`. `{datasource}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the backup vault.
  "state": "A String", # Output only. The DataSource resource instance state.
  "totalStoredBytes": "A String", # The number of bytes (metadata and data) stored in this datasource.
  "updateTime": "A String", # Output only. The time when the instance was updated.
}

  allowMissing: boolean, Optional. Enable upsert.
  requestId: string, 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).
  updateMask: string, 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.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # This resource represents a long-running operation that is the result of a network API call.
  "done": True or False, # 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.
  "error": { # 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). # The error result of the operation in case of failure or cancellation.
    "code": 42, # The status code, which should be an enum value of google.rpc.Code.
    "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
      {
        "a_key": "", # Properties of the object. Contains field @type with type URL.
      },
    ],
    "message": "A String", # 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.
  },
  "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.
    "a_key": "", # Properties of the object. Contains field @type with type URL.
  },
  "name": "A String", # 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}`.
  "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`.
    "a_key": "", # Properties of the object. Contains field @type with type URL.
  },
}
remove(name, body=None, x__xgafv=None)
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.

Args:
  name: string, Required. Name of the resource. (required)
  body: object, The request body.
    The object takes the form of:

{ # Message for deleting a DataSource.
  "requestId": "A String", # 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).
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # This resource represents a long-running operation that is the result of a network API call.
  "done": True or False, # 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.
  "error": { # 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). # The error result of the operation in case of failure or cancellation.
    "code": 42, # The status code, which should be an enum value of google.rpc.Code.
    "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
      {
        "a_key": "", # Properties of the object. Contains field @type with type URL.
      },
    ],
    "message": "A String", # 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.
  },
  "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.
    "a_key": "", # Properties of the object. Contains field @type with type URL.
  },
  "name": "A String", # 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}`.
  "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`.
    "a_key": "", # Properties of the object. Contains field @type with type URL.
  },
}
setInternalStatus(dataSource, body=None, x__xgafv=None)
Sets the internal status of a DataSource.

Args:
  dataSource: string, Required. The resource name of the instance, in the format 'projects/*/locations/*/backupVaults/*/dataSources/'. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for SetStatusInternal method.
  "backupConfigState": "A String", # Required. Output only. The new BackupConfigState to set for the DataSource.
  "requestId": "A String", # 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).
  "value": "A String", # 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.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # This resource represents a long-running operation that is the result of a network API call.
  "done": True or False, # 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.
  "error": { # 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). # The error result of the operation in case of failure or cancellation.
    "code": 42, # The status code, which should be an enum value of google.rpc.Code.
    "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
      {
        "a_key": "", # Properties of the object. Contains field @type with type URL.
      },
    ],
    "message": "A String", # 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.
  },
  "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.
    "a_key": "", # Properties of the object. Contains field @type with type URL.
  },
  "name": "A String", # 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}`.
  "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`.
    "a_key": "", # Properties of the object. Contains field @type with type URL.
  },
}