Google Anthos Multi Cloud V1 Client - Class CreateAttachedClusterRequest (0.4.4)

Reference documentation and code samples for the Google Anthos Multi Cloud V1 Client class CreateAttachedClusterRequest.

Request message for AttachedClusters.CreateAttachedCluster method.

Generated from protobuf message google.cloud.gkemulticloud.v1.CreateAttachedClusterRequest

Namespace

Google \ Cloud \ GkeMultiCloud \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent location where this AttachedCluster resource will be created. Location names are formatted as projects/<project-id>/locations/<region>. See Resource Names for more details on Google Cloud resource names.

↳ attached_cluster Google\Cloud\GkeMultiCloud\V1\AttachedCluster

Required. The specification of the AttachedCluster to create.

↳ attached_cluster_id string

Required. A client provided ID the resource. Must be unique within the parent resource. The provided ID will be part of the AttachedCluster resource name formatted as projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>. Valid characters are /[a-z][0-9]-/. Cannot be longer than 63 characters.

↳ validate_only bool

If set, only validate the request, but do not actually create the cluster.

getParent

Required. The parent location where this AttachedCluster resource will be created.

Location names are formatted as projects/<project-id>/locations/<region>. See Resource Names for more details on Google Cloud resource names.

Returns
TypeDescription
string

setParent

Required. The parent location where this AttachedCluster resource will be created.

Location names are formatted as projects/<project-id>/locations/<region>. See Resource Names for more details on Google Cloud resource names.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAttachedCluster

Required. The specification of the AttachedCluster to create.

Returns
TypeDescription
Google\Cloud\GkeMultiCloud\V1\AttachedCluster|null

hasAttachedCluster

clearAttachedCluster

setAttachedCluster

Required. The specification of the AttachedCluster to create.

Parameter
NameDescription
var Google\Cloud\GkeMultiCloud\V1\AttachedCluster
Returns
TypeDescription
$this

getAttachedClusterId

Required. A client provided ID the resource. Must be unique within the parent resource.

The provided ID will be part of the AttachedCluster resource name formatted as projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>. Valid characters are /[a-z][0-9]-/. Cannot be longer than 63 characters.

Returns
TypeDescription
string

setAttachedClusterId

Required. A client provided ID the resource. Must be unique within the parent resource.

The provided ID will be part of the AttachedCluster resource name formatted as projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>. Valid characters are /[a-z][0-9]-/. Cannot be longer than 63 characters.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getValidateOnly

If set, only validate the request, but do not actually create the cluster.

Returns
TypeDescription
bool

setValidateOnly

If set, only validate the request, but do not actually create the cluster.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. The parent location where this AttachedCluster resource will be created.

Location names are formatted as projects/<project-id>/locations/<region>.

See Resource Names for more details on Google Cloud resource names. Please see Google\Cloud\GkeMultiCloud\V1\AttachedClustersClient::locationName() for help formatting this field.

attachedCluster Google\Cloud\GkeMultiCloud\V1\AttachedCluster

Required. The specification of the AttachedCluster to create.

attachedClusterId string

Required. A client provided ID the resource. Must be unique within the parent resource.

The provided ID will be part of the AttachedCluster resource name formatted as projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>.

Valid characters are /[a-z][0-9]-/. Cannot be longer than 63 characters.

Returns
TypeDescription
Google\Cloud\GkeMultiCloud\V1\CreateAttachedClusterRequest