Class: Google::Apis::IapV1::AllowedDomainsSettings
- Inherits:
-
Object
- Object
- Google::Apis::IapV1::AllowedDomainsSettings
- 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
-
#domains ⇒ Array<String>
List of trusted domains.
-
#enable ⇒ Boolean
(also: #enable?)
Configuration for customers to opt in for the feature.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AllowedDomainsSettings
constructor
A new instance of AllowedDomainsSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#domains ⇒ Array<String>
List of trusted domains.
Corresponds to the JSON property domains
127 128 129 |
# File 'lib/google/apis/iap_v1/classes.rb', line 127 def domains @domains end |
#enable ⇒ Boolean Also known as: enable?
Configuration for customers to opt in for the feature.
Corresponds to the JSON property enable
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 |