Common Protos for Google Cloud APIs Client - Class AuthorizationInfo (0.3.8)

Reference documentation and code samples for the Common Protos for Google Cloud APIs Client class AuthorizationInfo.

Authorization information for the operation.

Generated from protobuf message google.cloud.audit.AuthorizationInfo

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ resource string

The resource being accessed, as a REST-style or cloud resource string. For example: bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID or projects/PROJECTID/datasets/DATASETID

↳ permission string

The required IAM permission.

↳ granted bool

Whether or not authorization for resource and permission was granted.

↳ resource_attributes Google\Rpc\Context\AttributeContext\Resource

Resource attributes used in IAM condition evaluation. This field contains resource attributes like resource type and resource name. To get the whole view of the attributes used in IAM condition evaluation, the user must also look into AuditLog.request_metadata.request_attributes.

getResource

The resource being accessed, as a REST-style or cloud resource string.

For example: bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID or projects/PROJECTID/datasets/DATASETID

Returns
TypeDescription
string

setResource

The resource being accessed, as a REST-style or cloud resource string.

For example: bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID or projects/PROJECTID/datasets/DATASETID

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPermission

The required IAM permission.

Returns
TypeDescription
string

setPermission

The required IAM permission.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGranted

Whether or not authorization for resource and permission was granted.

Returns
TypeDescription
bool

setGranted

Whether or not authorization for resource and permission was granted.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getResourceAttributes

Resource attributes used in IAM condition evaluation. This field contains resource attributes like resource type and resource name.

To get the whole view of the attributes used in IAM condition evaluation, the user must also look into AuditLog.request_metadata.request_attributes.

Returns
TypeDescription
Google\Rpc\Context\AttributeContext\Resource|null

hasResourceAttributes

clearResourceAttributes

setResourceAttributes

Resource attributes used in IAM condition evaluation. This field contains resource attributes like resource type and resource name.

To get the whole view of the attributes used in IAM condition evaluation, the user must also look into AuditLog.request_metadata.request_attributes.

Parameter
NameDescription
var Google\Rpc\Context\AttributeContext\Resource
Returns
TypeDescription
$this