Class: Google::Apis::IamV1::Permission
- Inherits:
-
Object
- Object
- Google::Apis::IamV1::Permission
- 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 permission which can be included by a role.
Instance Attribute Summary collapse
-
#custom_roles_support_level ⇒ String
The current custom role support level.
-
#description ⇒ String
A brief description of what this Permission is used for.
-
#name ⇒ String
The name of this Permission.
-
#only_in_predefined_roles ⇒ Boolean
(also: #only_in_predefined_roles?)
This permission can ONLY be used in predefined roles.
-
#stage ⇒ String
The current launch stage of the permission.
-
#title ⇒ String
The title of this Permission.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Permission
constructor
A new instance of Permission.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Permission
Returns a new instance of Permission
399 400 401 |
# File 'generated/google/apis/iam_v1/classes.rb', line 399 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_roles_support_level ⇒ String
The current custom role support level.
Corresponds to the JSON property customRolesSupportLevel
371 372 373 |
# File 'generated/google/apis/iam_v1/classes.rb', line 371 def custom_roles_support_level @custom_roles_support_level end |
#description ⇒ String
A brief description of what this Permission is used for.
Corresponds to the JSON property description
376 377 378 |
# File 'generated/google/apis/iam_v1/classes.rb', line 376 def description @description end |
#name ⇒ String
The name of this Permission.
Corresponds to the JSON property name
381 382 383 |
# File 'generated/google/apis/iam_v1/classes.rb', line 381 def name @name end |
#only_in_predefined_roles ⇒ Boolean Also known as: only_in_predefined_roles?
This permission can ONLY be used in predefined roles.
Corresponds to the JSON property onlyInPredefinedRoles
386 387 388 |
# File 'generated/google/apis/iam_v1/classes.rb', line 386 def only_in_predefined_roles @only_in_predefined_roles end |
#stage ⇒ String
The current launch stage of the permission.
Corresponds to the JSON property stage
392 393 394 |
# File 'generated/google/apis/iam_v1/classes.rb', line 392 def stage @stage end |
#title ⇒ String
The title of this Permission.
Corresponds to the JSON property title
397 398 399 |
# File 'generated/google/apis/iam_v1/classes.rb', line 397 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
404 405 406 407 408 409 410 411 |
# File 'generated/google/apis/iam_v1/classes.rb', line 404 def update!(**args) @custom_roles_support_level = args[:custom_roles_support_level] if args.key?(:custom_roles_support_level) @description = args[:description] if args.key?(:description) @name = args[:name] if args.key?(:name) @only_in_predefined_roles = args[:only_in_predefined_roles] if args.key?(:only_in_predefined_roles) @stage = args[:stage] if args.key?(:stage) @title = args[:title] if args.key?(:title) end |