Reference documentation and code samples for the Google Cloud Hypercompute Cluster V1beta Client class StorageResource.
Represents a form of persistent storage that you can mount onto compute resources in the cluster.
Generated from protobuf message google.cloud.hypercomputecluster.v1beta.StorageResource
Namespace
Google \ Cloud \ HypercomputeCluster \ V1betaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ filestore |
FilestoreReference
Output only. A reference to a Filestore instance. Populated if and only if the storage resource was configured to use Filestore. |
↳ bucket |
BucketReference
Output only. A reference to a Google Cloud Storage bucket. Populated if and only if the storage resource was configured to use Google Cloud Storage. |
↳ lustre |
LustreReference
Output only. A 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
Output only. A 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
Output only. A 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
Output only. A 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
Output only. A 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
Output only. A 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
Output only. A 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 |
|