Class: Google::Apis::IamV1::Permission

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Permission

Returns a new instance of Permission



342
343
344
# File 'generated/google/apis/iam_v1/classes.rb', line 342

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#custom_roles_support_levelString

The current custom role support level. Corresponds to the JSON property customRolesSupportLevel

Returns:

  • (String)


314
315
316
# File 'generated/google/apis/iam_v1/classes.rb', line 314

def custom_roles_support_level
  @custom_roles_support_level
end

#descriptionString

A brief description of what this Permission is used for. Corresponds to the JSON property description

Returns:

  • (String)


319
320
321
# File 'generated/google/apis/iam_v1/classes.rb', line 319

def description
  @description
end

#nameString

The name of this Permission. Corresponds to the JSON property name

Returns:

  • (String)


324
325
326
# File 'generated/google/apis/iam_v1/classes.rb', line 324

def name
  @name
end

#only_in_predefined_rolesBoolean Also known as: only_in_predefined_roles?

This permission can ONLY be used in predefined roles. Corresponds to the JSON property onlyInPredefinedRoles

Returns:

  • (Boolean)


329
330
331
# File 'generated/google/apis/iam_v1/classes.rb', line 329

def only_in_predefined_roles
  @only_in_predefined_roles
end

#stageString

The current launch stage of the permission. Corresponds to the JSON property stage

Returns:

  • (String)


335
336
337
# File 'generated/google/apis/iam_v1/classes.rb', line 335

def stage
  @stage
end

#titleString

The title of this Permission. Corresponds to the JSON property title

Returns:

  • (String)


340
341
342
# File 'generated/google/apis/iam_v1/classes.rb', line 340

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



347
348
349
350
351
352
353
354
# File 'generated/google/apis/iam_v1/classes.rb', line 347

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