Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class DataSource.
Message describing a DataSource object.
Datasource object used to represent Datasource details for both admin and basic view.
Generated from protobuf message google.cloud.backupdr.v1.DataSource
Namespace
Google \ Cloud \ BackupDR \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ 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.
↳ state
int
Output only. The DataSource resource instance state.
↳ labels
array| Google\Protobuf\Internal\MapField
Optional. Resource labels to represent user provided metadata. No labels currently defined:
↳ create_time
↳ update_time
↳ backup_count
int|string
Number of backups in the data source.
↳ etag
string
Server specified ETag for the ManagementServer resource to prevent simultaneous updates from overwiting each other.
↳ total_stored_bytes
int|string
The number of bytes (metadata and data) stored in this datasource.
↳ config_state
int
Output only. The backup configuration state.
↳ backup_config_info
↳ data_source_gcp_resource
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.
↳ data_source_backup_appliance_application
↳ backup_blocked_by_vault_access_restriction
bool
Output only. This field is set to true if the backup is blocked by vault access restriction.
getName
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.
string
setName
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.
var
string
$this
getState
Output only. The DataSource resource instance state.
int
setState
Output only. The DataSource resource instance state.
var
int
$this
getLabels
Optional. Resource labels to represent user provided metadata.
No labels currently defined:
setLabels
Optional. Resource labels to represent user provided metadata.
No labels currently defined:
$this
getCreateTime
Output only. The time when the instance was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The time when the instance was created.
$this
getUpdateTime
Output only. The time when the instance was updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The time when the instance was updated.
$this
getBackupCount
Number of backups in the data source.
int|string
hasBackupCount
clearBackupCount
setBackupCount
Number of backups in the data source.
var
int|string
$this
getEtag
Server specified ETag for the ManagementServer resource to prevent simultaneous updates from overwiting each other.
string
hasEtag
clearEtag
setEtag
Server specified ETag for the ManagementServer resource to prevent simultaneous updates from overwiting each other.
var
string
$this
getTotalStoredBytes
The number of bytes (metadata and data) stored in this datasource.
int|string
hasTotalStoredBytes
clearTotalStoredBytes
setTotalStoredBytes
The number of bytes (metadata and data) stored in this datasource.
var
int|string
$this
getConfigState
Output only. The backup configuration state.
int
setConfigState
Output only. The backup configuration state.
var
int
$this
getBackupConfigInfo
Output only. Details of how the resource is configured for backup.
hasBackupConfigInfo
clearBackupConfigInfo
setBackupConfigInfo
Output only. Details of how the resource is configured for backup.
$this
getDataSourceGcpResource
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.
hasDataSourceGcpResource
setDataSourceGcpResource
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.
$this
getDataSourceBackupApplianceApplication
The backed up resource is a backup appliance application.
hasDataSourceBackupApplianceApplication
setDataSourceBackupApplianceApplication
The backed up resource is a backup appliance application.
$this
getBackupBlockedByVaultAccessRestriction
Output only. This field is set to true if the backup is blocked by vault access restriction.
bool
setBackupBlockedByVaultAccessRestriction
Output only. This field is set to true if the backup is blocked by vault access restriction.
var
bool
$this
getSourceResource
string