class AuthorizationInfo extends Message

Authorization information for the operation.

Generated from protobuf message google.cloud.audit.AuthorizationInfo

Methods

__construct(array $data = NULL)

Constructor.

string
getResource()

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

$this
setResource(string $var)

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

string
getPermission()

The required IAM permission.

$this
setPermission(string $var)

The required IAM permission.

bool
getGranted()

Whether or not authorization for resource and permission was granted.

$this
setGranted(bool $var)

Whether or not authorization for resource and permission was granted.

Details

at line 55
__construct(array $data = NULL)

Constructor.

Parameters

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

@type string $resource
      The resource being accessed, as a REST-style string. For example:
          bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
@type string $permission
      The required IAM permission.
@type bool $granted
      Whether or not authorization for `resource` and `permission`
      was granted.

}

at line 67
string getResource()

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

Generated from protobuf field string resource = 1;

Return Value

string

at line 80
$this setResource(string $var)

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

Generated from protobuf field string resource = 1;

Parameters

string $var

Return Value

$this

at line 94
string getPermission()

The required IAM permission.

Generated from protobuf field string permission = 2;

Return Value

string

at line 106
$this setPermission(string $var)

The required IAM permission.

Generated from protobuf field string permission = 2;

Parameters

string $var

Return Value

$this

at line 121
bool getGranted()

Whether or not authorization for resource and permission was granted.

Generated from protobuf field bool granted = 3;

Return Value

bool

at line 134
$this setGranted(bool $var)

Whether or not authorization for resource and permission was granted.

Generated from protobuf field bool granted = 3;

Parameters

bool $var

Return Value

$this