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

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
FilestoreReference|null

hasFilestore

setFilestore

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

Parameter
Name Description
var FilestoreReference
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
BucketReference|null

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
var BucketReference
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
LustreReference|null

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
var LustreReference
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
StorageResourceConfig|null

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
var StorageResourceConfig
Returns
Type Description
$this

getReference

Returns
Type Description
string