Class: Google::Apis::IamV1::Permission
- Inherits:
-
Object
- Object
- Google::Apis::IamV1::Permission
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/iam_v1/classes.rb,
lib/google/apis/iam_v1/representations.rb,
lib/google/apis/iam_v1/representations.rb
Overview
A permission which can be included by a role.
Instance Attribute Summary collapse
-
#api_disabled ⇒ Boolean
(also: #api_disabled?)
The service API associated with the permission is not enabled.
-
#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?)
Corresponds to the JSON property
onlyInPredefinedRoles. -
#primary_permission ⇒ String
The preferred name for this permission.
-
#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.
Constructor Details
#initialize(**args) ⇒ Permission
Returns a new instance of Permission.
1192 1193 1194 |
# File 'lib/google/apis/iam_v1/classes.rb', line 1192 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api_disabled ⇒ Boolean Also known as: api_disabled?
The service API associated with the permission is not enabled.
Corresponds to the JSON property apiDisabled
1151 1152 1153 |
# File 'lib/google/apis/iam_v1/classes.rb', line 1151 def api_disabled @api_disabled end |
#custom_roles_support_level ⇒ String
The current custom role support level.
Corresponds to the JSON property customRolesSupportLevel
1157 1158 1159 |
# File 'lib/google/apis/iam_v1/classes.rb', line 1157 def custom_roles_support_level @custom_roles_support_level end |
#description ⇒ String
A brief description of what this Permission is used for. This permission can
ONLY be used in predefined roles.
Corresponds to the JSON property description
1163 1164 1165 |
# File 'lib/google/apis/iam_v1/classes.rb', line 1163 def description @description end |
#name ⇒ String
The name of this Permission.
Corresponds to the JSON property name
1168 1169 1170 |
# File 'lib/google/apis/iam_v1/classes.rb', line 1168 def name @name end |
#only_in_predefined_roles ⇒ Boolean Also known as: only_in_predefined_roles?
Corresponds to the JSON property onlyInPredefinedRoles
1173 1174 1175 |
# File 'lib/google/apis/iam_v1/classes.rb', line 1173 def only_in_predefined_roles @only_in_predefined_roles end |
#primary_permission ⇒ String
The preferred name for this permission. If present, then this permission is an
alias of, and equivalent to, the listed primary_permission.
Corresponds to the JSON property primaryPermission
1180 1181 1182 |
# File 'lib/google/apis/iam_v1/classes.rb', line 1180 def @primary_permission end |
#stage ⇒ String
The current launch stage of the permission.
Corresponds to the JSON property stage
1185 1186 1187 |
# File 'lib/google/apis/iam_v1/classes.rb', line 1185 def stage @stage end |
#title ⇒ String
The title of this Permission.
Corresponds to the JSON property title
1190 1191 1192 |
# File 'lib/google/apis/iam_v1/classes.rb', line 1190 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 |
# File 'lib/google/apis/iam_v1/classes.rb', line 1197 def update!(**args) @api_disabled = args[:api_disabled] if args.key?(:api_disabled) @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) @primary_permission = args[:primary_permission] if args.key?(:primary_permission) @stage = args[:stage] if args.key?(:stage) @title = args[:title] if args.key?(:title) end |