Google Cloud Hypercompute Cluster V1beta Client - Class StorageResource (0.1.1)

Reference documentation and code samples for the Google Cloud Hypercompute Cluster V1beta Client class StorageResource.

A resource representing a form of persistent storage that is accessible to compute resources in the cluster.

Generated from protobuf message google.cloud.hypercomputecluster.v1beta.StorageResource

Namespace

Google \ Cloud \ HypercomputeCluster \ V1beta

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ filestore
FilestoreReference

Reference to a Filestore instance. Populated if and only if the storage resource was configured to use Filestore.

↳ bucket
BucketReference

Reference to a Google Cloud Storage bucket. Populated if and only if the storage resource was configured to use Google Cloud Storage.

↳ lustre
LustreReference

Reference to a Managed Lustre instance. Populated if and only if the storage resource was configured to use Managed Lustre.

↳ config
StorageResourceConfig

Required. Immutable. Configuration for this storage resource, which describes how it should be created or imported. This field only controls how the storage resource is initially created or imported. Subsequent changes to the storage resource should be made via the resource's API and will not be reflected in the configuration.

getFilestore

Reference to a Filestore instance. Populated if and only if the storage resource was configured to use Filestore.

Returns
Type
Description

hasFilestore

setFilestore

Reference to a Filestore instance. Populated if and only if the storage resource was configured to use Filestore.

Parameter
Name
Description
Returns
Type
Description
$this

getBucket

Reference to a Google Cloud Storage bucket. Populated if and only if the storage resource was configured to use Google Cloud Storage.

Returns
Type
Description

hasBucket

setBucket

Reference to a Google Cloud Storage bucket. Populated if and only if the storage resource was configured to use Google Cloud Storage.

Parameter
Name
Description
Returns
Type
Description
$this

getLustre

Reference to a Managed Lustre instance. Populated if and only if the storage resource was configured to use Managed Lustre.

Returns
Type
Description

hasLustre

setLustre

Reference to a Managed Lustre instance. Populated if and only if the storage resource was configured to use Managed Lustre.

Parameter
Name
Description
Returns
Type
Description
$this

getConfig

Required. Immutable. Configuration for this storage resource, which describes how it should be created or imported. This field only controls how the storage resource is initially created or imported. Subsequent changes to the storage resource should be made via the resource's API and will not be reflected in the configuration.

Returns
Type
Description

hasConfig

clearConfig

setConfig

Required. Immutable. Configuration for this storage resource, which describes how it should be created or imported. This field only controls how the storage resource is initially created or imported. Subsequent changes to the storage resource should be made via the resource's API and will not be reflected in the configuration.

Parameter
Name
Description
Returns
Type
Description
$this

getReference

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