Class: Google::Apis::AccesscontextmanagerV1::AccessSettings

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

Access settings represent the set of conditions that must be met for access to be granted. At least one of the fields must be set.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccessSettings

Returns a new instance of AccessSettings.



190
191
192
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 190

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

Instance Attribute Details

#access_levelsArray<String>

Optional. Access level that a user must have to be granted access. Only one access level is supported, not multiple. This repeated field must have exactly one element. Example: "accessPolicies/9522/accessLevels/device_trusted" Corresponds to the JSON property accessLevels

Returns:

  • (Array<String>)


181
182
183
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 181

def access_levels
  @access_levels
end

#reauth_settingsGoogle::Apis::AccesscontextmanagerV1::ReauthSettings

Stores settings related to Google Cloud Session Length including session duration, the type of challenge (i.e. method) they should face when their session expires, and other related settings. Corresponds to the JSON property reauthSettings



188
189
190
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 188

def reauth_settings
  @reauth_settings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



195
196
197
198
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 195

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