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

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Permission

Returns a new instance of Permission.



1727
1728
1729
# File 'lib/google/apis/iam_v1/classes.rb', line 1727

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

Instance Attribute Details

#api_disabledBoolean Also known as: api_disabled?

The service API associated with the permission is not enabled. Corresponds to the JSON property apiDisabled

Returns:

  • (Boolean)


1686
1687
1688
# File 'lib/google/apis/iam_v1/classes.rb', line 1686

def api_disabled
  @api_disabled
end

#custom_roles_support_levelString

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

Returns:

  • (String)


1692
1693
1694
# File 'lib/google/apis/iam_v1/classes.rb', line 1692

def custom_roles_support_level
  @custom_roles_support_level
end

#descriptionString

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

Returns:

  • (String)


1698
1699
1700
# File 'lib/google/apis/iam_v1/classes.rb', line 1698

def description
  @description
end

#nameString

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

Returns:

  • (String)


1703
1704
1705
# File 'lib/google/apis/iam_v1/classes.rb', line 1703

def name
  @name
end

#only_in_predefined_rolesBoolean Also known as: only_in_predefined_roles?

Corresponds to the JSON property onlyInPredefinedRoles

Returns:

  • (Boolean)


1708
1709
1710
# File 'lib/google/apis/iam_v1/classes.rb', line 1708

def only_in_predefined_roles
  @only_in_predefined_roles
end

#primary_permissionString

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

Returns:

  • (String)


1715
1716
1717
# File 'lib/google/apis/iam_v1/classes.rb', line 1715

def primary_permission
  @primary_permission
end

#stageString

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

Returns:

  • (String)


1720
1721
1722
# File 'lib/google/apis/iam_v1/classes.rb', line 1720

def stage
  @stage
end

#titleString

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

Returns:

  • (String)


1725
1726
1727
# File 'lib/google/apis/iam_v1/classes.rb', line 1725

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
# File 'lib/google/apis/iam_v1/classes.rb', line 1732

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