class GetIamPolicyRequest extends Message

Request message for GetIamPolicy method.

Generated from protobuf message google.iam.v1.GetIamPolicyRequest

Methods

__construct(array $data = NULL)

Constructor.

string
getResource()

REQUIRED: The resource for which the policy is being requested.

$this
setResource(string $var)

REQUIRED: The resource for which the policy is being requested.

getOptions()

OPTIONAL: A GetPolicyOptions object for specifying options to GetIamPolicy. This field is only used by Cloud IAM.

$this
setOptions(GetPolicyOptions $var)

OPTIONAL: A GetPolicyOptions object for specifying options to GetIamPolicy. This field is only used by Cloud IAM.

Details

at line 47
__construct(array $data = NULL)

Constructor.

Parameters

array $data { Optional. Data for populating the Message object.

@type string $resource
      REQUIRED: The resource for which the policy is being requested.
      See the operation documentation for the appropriate value for this field.
@type \Google\Cloud\Iam\V1\GetPolicyOptions $options
      OPTIONAL: A `GetPolicyOptions` object for specifying options to
      `GetIamPolicy`. This field is only used by Cloud IAM.

}

at line 59
string getResource()

REQUIRED: The resource for which the policy is being requested.

See the operation documentation for the appropriate value for this field.

Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Return Value

string

at line 72
$this setResource(string $var)

REQUIRED: The resource for which the policy is being requested.

See the operation documentation for the appropriate value for this field.

Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Parameters

string $var

Return Value

$this

at line 87
GetPolicyOptions getOptions()

OPTIONAL: A GetPolicyOptions object for specifying options to GetIamPolicy. This field is only used by Cloud IAM.

Generated from protobuf field .google.iam.v1.GetPolicyOptions options = 2;

Return Value

GetPolicyOptions

at line 100
$this setOptions(GetPolicyOptions $var)

OPTIONAL: A GetPolicyOptions object for specifying options to GetIamPolicy. This field is only used by Cloud IAM.

Generated from protobuf field .google.iam.v1.GetPolicyOptions options = 2;

Parameters

GetPolicyOptions $var

Return Value

$this