Google Cloud Design Center V1 Client - Class RoleInfo (0.1.0)

Reference documentation and code samples for the Google Cloud Design Center V1 Client class RoleInfo.

RoleInfo represents an IAM role along with its origin.

Generated from protobuf message google.cloud.designcenter.v1.RoleInfo

Namespace

Google \ Cloud \ DesignCenter \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ role string

Required. IAM role name, such as roles/editor.

↳ system_provided bool

Output only. When true, indicates that this role is automatically added by Application Design Center. When you provide a role, this field is set to false.

↳ permissions string[]

Output only. The list of permissions that this role is recommended for. This includes only the permissions of this role that are part of the recommendation.

getRole

Required. IAM role name, such as roles/editor.

Returns
Type Description
string

setRole

Required. IAM role name, such as roles/editor.

Parameter
Name Description
var string
Returns
Type Description
$this

getSystemProvided

Output only. When true, indicates that this role is automatically added by Application Design Center. When you provide a role, this field is set to false.

Returns
Type Description
bool

setSystemProvided

Output only. When true, indicates that this role is automatically added by Application Design Center. When you provide a role, this field is set to false.

Parameter
Name Description
var bool
Returns
Type Description
$this

getPermissions

Output only. The list of permissions that this role is recommended for.

This includes only the permissions of this role that are part of the recommendation.

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setPermissions

Output only. The list of permissions that this role is recommended for.

This includes only the permissions of this role that are part of the recommendation.

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