Google Cloud Database Center V1beta Client - Class SubResource (0.3.1)

Reference documentation and code samples for the Google Cloud Database Center V1beta Client class SubResource.

Sub resource details For Spanner/Bigtable instance certain data protection settings are at sub resource level like database/table.

This message is used to capture such sub resource details.

Generated from protobuf message google.cloud.databasecenter.v1beta.SubResource

Namespace

Google \ Cloud \ DatabaseCenter \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ resource_type string

Optional. Resource type associated with the sub resource where backup settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner where backup retention is configured on database within an instance OPTIONAL

↳ full_resource_name string

Optional. Resource name associated with the sub resource where backup settings are configured. E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" for Spanner where backup retention is configured on database within an instance OPTIONAL

↳ product Product

Optional. Product information associated with the sub resource where backup retention settings are configured. e.g. product: { type : PRODUCT_TYPE_SPANNER engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT } for Spanner where backup is configured on database within an instance OPTIONAL

↳ container string

Specifies where the resource is created. For GCP, it is the full name of the project.

getResourceType

Optional. Resource type associated with the sub resource where backup settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner where backup retention is configured on database within an instance OPTIONAL

Returns
Type Description
string

setResourceType

Optional. Resource type associated with the sub resource where backup settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner where backup retention is configured on database within an instance OPTIONAL

Parameter
Name Description
var string
Returns
Type Description
$this

getFullResourceName

Optional. Resource name associated with the sub resource where backup settings are configured.

E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" for Spanner where backup retention is configured on database within an instance OPTIONAL

Returns
Type Description
string

setFullResourceName

Optional. Resource name associated with the sub resource where backup settings are configured.

E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" for Spanner where backup retention is configured on database within an instance OPTIONAL

Parameter
Name Description
var string
Returns
Type Description
$this

getProduct

Optional. Product information associated with the sub resource where backup retention settings are configured.

e.g.

product: {
 type   : PRODUCT_TYPE_SPANNER
 engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT
}

for Spanner where backup is configured on database within an instance OPTIONAL

Returns
Type Description
Product|null

hasProduct

clearProduct

setProduct

Optional. Product information associated with the sub resource where backup retention settings are configured.

e.g.

product: {
 type   : PRODUCT_TYPE_SPANNER
 engine : ENGINE_CLOUD_SPANNER_WITH_POSTGRES_DIALECT
}

for Spanner where backup is configured on database within an instance OPTIONAL

Parameter
Name Description
var Product
Returns
Type Description
$this

getContainer

Specifies where the resource is created. For GCP, it is the full name of the project.

Returns
Type Description
string

setContainer

Specifies where the resource is created. For GCP, it is the full name of the project.

Parameter
Name Description
var string
Returns
Type Description
$this