Class: Google::Apis::IapV1::AccessDeniedPageSettings

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

Overview

Custom content configuration for access denied page. IAP allows customers to define a custom URI to use as the error page when access is denied to users. If IAP prevents access to this page, the default IAP error page will be displayed instead.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccessDeniedPageSettings

Returns a new instance of AccessDeniedPageSettings.



51
52
53
# File 'lib/google/apis/iap_v1/classes.rb', line 51

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

Instance Attribute Details

#access_denied_page_uriString

The URI to be redirected to when access is denied. Corresponds to the JSON property accessDeniedPageUri

Returns:

  • (String)


35
36
37
# File 'lib/google/apis/iap_v1/classes.rb', line 35

def access_denied_page_uri
  @access_denied_page_uri
end

#generate_troubleshooting_uriBoolean Also known as: generate_troubleshooting_uri?

Whether to generate a troubleshooting URL on access denied events to this application. Corresponds to the JSON property generateTroubleshootingUri

Returns:

  • (Boolean)


41
42
43
# File 'lib/google/apis/iap_v1/classes.rb', line 41

def generate_troubleshooting_uri
  @generate_troubleshooting_uri
end

#remediation_token_generation_enabledBoolean Also known as: remediation_token_generation_enabled?

Whether to generate remediation token on access denied events to this application. Corresponds to the JSON property remediationTokenGenerationEnabled

Returns:

  • (Boolean)


48
49
50
# File 'lib/google/apis/iap_v1/classes.rb', line 48

def remediation_token_generation_enabled
  @remediation_token_generation_enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



56
57
58
59
60
# File 'lib/google/apis/iap_v1/classes.rb', line 56

def update!(**args)
  @access_denied_page_uri = args[:access_denied_page_uri] if args.key?(:access_denied_page_uri)
  @generate_troubleshooting_uri = args[:generate_troubleshooting_uri] if args.key?(:generate_troubleshooting_uri)
  @remediation_token_generation_enabled = args[:remediation_token_generation_enabled] if args.key?(:remediation_token_generation_enabled)
end