Class: Google::Apis::AccesscontextmanagerV1::BasicLevel

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

Overview

BasicLevel is an AccessLevel using a set of recommended features.

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) ⇒ BasicLevel

Returns a new instance of BasicLevel.


139
140
141
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 139

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

Instance Attribute Details

#combining_functionString

How the conditions list should be combined to determine if a request is granted this AccessLevel. If AND is used, each Condition in conditions must be satisfied for the AccessLevel to be applied. If OR is used, at least one Condition in conditions must be satisfied for the AccessLevel to be applied. Default behavior is AND. Corresponds to the JSON property combiningFunction

Returns:

  • (String)

132
133
134
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 132

def combining_function
  @combining_function
end

#conditionsArray<Google::Apis::AccesscontextmanagerV1::Condition>

Required. A list of requirements for the AccessLevel to be granted. Corresponds to the JSON property conditions


137
138
139
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 137

def conditions
  @conditions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


144
145
146
147
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 144

def update!(**args)
  @combining_function = args[:combining_function] if args.key?(:combining_function)
  @conditions = args[:conditions] if args.key?(:conditions)
end