Google Cloud Asset V1 Client - Class AccessSelector (1.9.2)

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

Specifies roles and/or permissions to analyze, to determine both the identities possessing them and the resources they control. If multiple values are specified, results will include roles or permissions matching any of them. The total number of roles and permissions should be equal or less than 10.

Generated from protobuf message google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ roles array

Optional. The roles to appear in result.

↳ permissions array

Optional. The permissions to appear in result.

getRoles

Optional. The roles to appear in result.

Generated from protobuf field repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setRoles

Optional. The roles to appear in result.

Generated from protobuf field repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL];

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

getPermissions

Optional. The permissions to appear in result.

Generated from protobuf field repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setPermissions

Optional. The permissions to appear in result.

Generated from protobuf field repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL];

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