Class: Google::Apis::IamV1::Role
- Inherits:
-
Object
- Object
- Google::Apis::IamV1::Role
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/iam_v1/classes.rb,
generated/google/apis/iam_v1/representations.rb,
generated/google/apis/iam_v1/representations.rb
Overview
A role in the Identity and Access Management API.
Instance Attribute Summary collapse
-
#description ⇒ String
Optional.
-
#name ⇒ String
The name of the role.
-
#title ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Role
constructor
A new instance of Role.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Role
Returns a new instance of Role
88 89 90 |
# File 'generated/google/apis/iam_v1/classes.rb', line 88 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Optional. A human-readable description for the role.
Corresponds to the JSON property description
86 87 88 |
# File 'generated/google/apis/iam_v1/classes.rb', line 86 def description @description end |
#name ⇒ String
The name of the role.
When Role is used in CreateRole, the role name must not be set.
When Role is used in output and other input such as UpdateRole, the role
name is the complete path, e.g., roles/logging.viewer for curated roles
and organizations/ORGANIZATION_ID/roles/logging.viewer for custom roles.
Corresponds to the JSON property name
81 82 83 |
# File 'generated/google/apis/iam_v1/classes.rb', line 81 def name @name end |
#title ⇒ String
Optional. A human-readable title for the role. Typically this
is limited to 100 UTF-8 bytes.
Corresponds to the JSON property title
72 73 74 |
# File 'generated/google/apis/iam_v1/classes.rb', line 72 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
93 94 95 96 97 |
# File 'generated/google/apis/iam_v1/classes.rb', line 93 def update!(**args) @title = args[:title] if args.key?(:title) @name = args[:name] if args.key?(:name) @description = args[:description] if args.key?(:description) end |