Class: Google::Apis::IapV1::AllowedDomainsSettings

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

Configuration for IAP allowed domains. Allows the customers to restrict access to the app by only allowing requests from the listed trusted domains.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AllowedDomainsSettings

Returns a new instance of AllowedDomainsSettings.



135
136
137
# File 'lib/google/apis/iap_v1/classes.rb', line 135

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

Instance Attribute Details

#domainsArray<String>

List of trusted domains. Corresponds to the JSON property domains

Returns:

  • (Array<String>)


127
128
129
# File 'lib/google/apis/iap_v1/classes.rb', line 127

def domains
  @domains
end

#enableBoolean Also known as: enable?

Configuration for customers to opt in for the feature. Corresponds to the JSON property enable

Returns:

  • (Boolean)


132
133
134
# File 'lib/google/apis/iap_v1/classes.rb', line 132

def enable
  @enable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



140
141
142
143
# File 'lib/google/apis/iap_v1/classes.rb', line 140

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