Google Cloud Asset V1 Client - Class BatchGetEffectiveIamPoliciesRequest (1.10.2)

Reference documentation and code samples for the Google Cloud Asset V1 Client class BatchGetEffectiveIamPoliciesRequest.

A request message for AssetService.BatchGetEffectiveIamPolicies.

Generated from protobuf message google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ scope string

Required. Only IAM policies on or below the scope will be returned. This can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id"), or a project number (such as "projects/12345"). To know how to get organization id, visit here . To know how to get folder or project id, visit here .

↳ names array

Required. The names refer to the full_resource_names of searchable asset types. A maximum of 20 resources' effective policies can be retrieved in a batch.

getScope

Required. Only IAM policies on or below the scope will be returned.

This can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id"), or a project number (such as "projects/12345"). To know how to get organization id, visit here . To know how to get folder or project id, visit here .

Returns
TypeDescription
string

setScope

Required. Only IAM policies on or below the scope will be returned.

This can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id"), or a project number (such as "projects/12345"). To know how to get organization id, visit here . To know how to get folder or project id, visit here .

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNames

Required. The names refer to the full_resource_names of searchable asset types.

A maximum of 20 resources' effective policies can be retrieved in a batch.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNames

Required. The names refer to the full_resource_names of searchable asset types.

A maximum of 20 resources' effective policies can be retrieved in a batch.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this