Compute V1 Client - Class ShareSettings (1.5.0)

Reference documentation and code samples for the Compute V1 Client class ShareSettings.

The share setting for reservations and sole tenancy node groups.

Generated from protobuf message google.cloud.compute.v1.ShareSettings

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ project_map array|Google\Protobuf\Internal\MapField

A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS.

↳ share_type string

Type of sharing for this shared-reservation Check the ShareType enum for the list of possible values.

getProjectMap

A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS.

Generated from protobuf field map<string, .google.cloud.compute.v1.ShareSettingsProjectConfig> project_map = 134212406;

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setProjectMap

A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS.

Generated from protobuf field map<string, .google.cloud.compute.v1.ShareSettingsProjectConfig> project_map = 134212406;

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getShareType

Type of sharing for this shared-reservation Check the ShareType enum for the list of possible values.

Generated from protobuf field optional string share_type = 359533466;

Returns
TypeDescription
string

hasShareType

clearShareType

setShareType

Type of sharing for this shared-reservation Check the ShareType enum for the list of possible values.

Generated from protobuf field optional string share_type = 359533466;

Parameter
NameDescription
var string
Returns
TypeDescription
$this