Google Cloud Backup Dr V1 Client - Class DataSource (0.5.1)

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 \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
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
Google\Protobuf\Timestamp

Output only. The time when the instance was created.

↳ update_time
Google\Protobuf\Timestamp

Output only. The time when the instance was updated.

↳ 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
BackupConfigInfo

Output only. Details of how the resource is configured for backup.

↳ 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
DataSourceBackupApplianceApplication

The backed up resource is a backup appliance application.

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.

Returns
Type
Description
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.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getState

Output only. The DataSource resource instance state.

Returns
Type
Description
int

setState

Output only. The DataSource resource instance state.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getLabels

Optional. Resource labels to represent user provided metadata.

No labels currently defined:

Returns
Type
Description

setLabels

Optional. Resource labels to represent user provided metadata.

No labels currently defined:

Parameter
Name
Description
Returns
Type
Description
$this

getCreateTime

Output only. The time when the instance was created.

Returns
Type
Description

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time when the instance was created.

Parameter
Name
Description
Returns
Type
Description
$this

getUpdateTime

Output only. The time when the instance was updated.

Returns
Type
Description

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The time when the instance was updated.

Parameter
Name
Description
Returns
Type
Description
$this

getBackupCount

Number of backups in the data source.

Returns
Type
Description
int|string

hasBackupCount

clearBackupCount

setBackupCount

Number of backups in the data source.

Parameter
Name
Description
var
int|string
Returns
Type
Description
$this

getEtag

Server specified ETag for the ManagementServer resource to prevent simultaneous updates from overwiting each other.

Returns
Type
Description
string

hasEtag

clearEtag

setEtag

Server specified ETag for the ManagementServer resource to prevent simultaneous updates from overwiting each other.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getTotalStoredBytes

The number of bytes (metadata and data) stored in this datasource.

Returns
Type
Description
int|string

hasTotalStoredBytes

clearTotalStoredBytes

setTotalStoredBytes

The number of bytes (metadata and data) stored in this datasource.

Parameter
Name
Description
var
int|string
Returns
Type
Description
$this

getConfigState

Output only. The backup configuration state.

Returns
Type
Description
int

setConfigState

Output only. The backup configuration state.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getBackupConfigInfo

Output only. Details of how the resource is configured for backup.

Returns
Type
Description

hasBackupConfigInfo

clearBackupConfigInfo

setBackupConfigInfo

Output only. Details of how the resource is configured for backup.

Parameter
Name
Description
Returns
Type
Description
$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.

Returns
Type
Description

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.

Parameter
Name
Description
Returns
Type
Description
$this

getDataSourceBackupApplianceApplication

The backed up resource is a backup appliance application.

Returns
Type
Description

hasDataSourceBackupApplianceApplication

setDataSourceBackupApplianceApplication

The backed up resource is a backup appliance application.

Parameter
Name
Description
Returns
Type
Description
$this

getSourceResource

Returns
Type
Description
string
Design a Mobile Site
View Site in Mobile | Classic
Share by: