Google Cloud Ai Platform V1 Client - Class CreatePersistentResourceRequest (0.39.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class CreatePersistentResourceRequest.

Request message for PersistentResourceService.CreatePersistentResource.

Generated from protobuf message google.cloud.aiplatform.v1.CreatePersistentResourceRequest

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The resource name of the Location to create the PersistentResource in. Format: projects/{project}/locations/{location}

↳ persistent_resource Google\Cloud\AIPlatform\V1\PersistentResource

Required. The PersistentResource to create.

↳ persistent_resource_id string

Required. The ID to use for the PersistentResource, which become the final component of the PersistentResource's resource name. The maximum length is 63 characters, and valid characters are /^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/.

getParent

Required. The resource name of the Location to create the PersistentResource in. Format: projects/{project}/locations/{location}

Returns
Type Description
string

setParent

Required. The resource name of the Location to create the PersistentResource in. Format: projects/{project}/locations/{location}

Parameter
Name Description
var string
Returns
Type Description
$this

getPersistentResource

Required. The PersistentResource to create.

Returns
Type Description
Google\Cloud\AIPlatform\V1\PersistentResource|null

hasPersistentResource

clearPersistentResource

setPersistentResource

Required. The PersistentResource to create.

Parameter
Name Description
var Google\Cloud\AIPlatform\V1\PersistentResource
Returns
Type Description
$this

getPersistentResourceId

Required. The ID to use for the PersistentResource, which become the final component of the PersistentResource's resource name.

The maximum length is 63 characters, and valid characters are /^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/.

Returns
Type Description
string

setPersistentResourceId

Required. The ID to use for the PersistentResource, which become the final component of the PersistentResource's resource name.

The maximum length is 63 characters, and valid characters are /^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/.

Parameter
Name Description
var string
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The resource name of the Location to create the PersistentResource in. Format: projects/{project}/locations/{location} Please see Google\Cloud\AIPlatform\V1\PersistentResourceServiceClient::locationName() for help formatting this field.

persistentResource Google\Cloud\AIPlatform\V1\PersistentResource

Required. The PersistentResource to create.

persistentResourceId string

Required. The ID to use for the PersistentResource, which become the final component of the PersistentResource's resource name.

The maximum length is 63 characters, and valid characters are /^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/.

Returns
Type Description
Google\Cloud\AIPlatform\V1\CreatePersistentResourceRequest