Compute V1 Client - Class InstancesAddResourcePoliciesRequest (1.16.2)

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

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ resource_policies array

Resource policies to be added to this instance.

getResourcePolicies

Resource policies to be added to this instance.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setResourcePolicies

Resource policies to be added to this instance.

Parameter
Name Description
var string[]
Returns
Type Description
$this