Compute V1 Client - Class ShareSettings (1.18.1)

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
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.

Returns
Type Description
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.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getShareType

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

Returns
Type Description
string

hasShareType

clearShareType

setShareType

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

Parameter
Name Description
var string
Returns
Type Description
$this