Google Cloud Asset V1 Client - Class BatchGetEffectiveIamPoliciesRequest (2.1.1)

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

Namespace

Google \ Cloud \ Asset \ V1

Methods

__construct

Constructor.

Parameters
Name Description
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 the asset types supported by search APIs. 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
Type Description
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
Name Description
var string
Returns
Type Description
$this

getNames

Required. The names refer to the full_resource_names of the asset types supported by search APIs.

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

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setNames

Required. The names refer to the full_resource_names of the asset types supported by search APIs.

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

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