Class: Google::Apis::AccesscontextmanagerV1::AccessLevel

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/accesscontextmanager_v1/classes.rb,
lib/google/apis/accesscontextmanager_v1/representations.rb,
lib/google/apis/accesscontextmanager_v1/representations.rb

Overview

An AccessLevel is a label that can be applied to requests to Google Cloud services, along with a list of requirements necessary for the label to be applied.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccessLevel

Returns a new instance of AccessLevel.



75
76
77
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 75

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

Instance Attribute Details

#basicGoogle::Apis::AccesscontextmanagerV1::BasicLevel

BasicLevel is an AccessLevel using a set of recommended features. Corresponds to the JSON property basic



47
48
49
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 47

def basic
  @basic
end

#customGoogle::Apis::AccesscontextmanagerV1::CustomLevel

CustomLevel is an AccessLevel using the Cloud Common Expression Language to represent the necessary conditions for the level to apply to a request. See CEL spec at: https://github.com/google/cel-spec Corresponds to the JSON property custom



54
55
56
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 54

def custom
  @custom
end

#descriptionString

Description of the AccessLevel and its use. Does not affect behavior. Corresponds to the JSON property description

Returns:

  • (String)


59
60
61
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 59

def description
  @description
end

#nameString

Identifier. Resource name for the AccessLevel. Format: accessPolicies/ access_policy/accessLevels/access_level`. Theaccess_levelcomponent must begin with a letter, followed by alphanumeric characters or_. Its maximum length is 50 characters. After you create anAccessLevel, you cannot change itsname. Corresponds to the JSON propertyname`

Returns:

  • (String)


68
69
70
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 68

def name
  @name
end

#titleString

Human readable title. Must be unique within the Policy. Corresponds to the JSON property title

Returns:

  • (String)


73
74
75
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 73

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



80
81
82
83
84
85
86
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 80

def update!(**args)
  @basic = args[:basic] if args.key?(:basic)
  @custom = args[:custom] if args.key?(:custom)
  @description = args[:description] if args.key?(:description)
  @name = args[:name] if args.key?(:name)
  @title = args[:title] if args.key?(:title)
end