class Google::Apis::IamV1::Permission

A permission which can be included by a role.

Attributes

api_disabled[RW]

The service API associated with the permission is not enabled. Corresponds to the JSON property `apiDisabled` @return [Boolean]

api_disabled?[RW]

The service API associated with the permission is not enabled. Corresponds to the JSON property `apiDisabled` @return [Boolean]

custom_roles_support_level[RW]

The current custom role support level. Corresponds to the JSON property `customRolesSupportLevel` @return [String]

description[RW]

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` @return [String]

name[RW]

The name of this Permission. Corresponds to the JSON property `name` @return [String]

only_in_predefined_roles[RW]

Corresponds to the JSON property `onlyInPredefinedRoles` @return [Boolean]

only_in_predefined_roles?[RW]

Corresponds to the JSON property `onlyInPredefinedRoles` @return [Boolean]

primary_permission[RW]

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` @return [String]

stage[RW]

The current launch stage of the permission. Corresponds to the JSON property `stage` @return [String]

title[RW]

The title of this Permission. Corresponds to the JSON property `title` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/iam_v1/classes.rb, line 934
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/iam_v1/classes.rb, line 939
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