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. Lets you to restrict access to an app and allow access to only the domains that you list.
Instance Attribute Summary collapse
-
#domains ⇒ Array<String>
Optional.
-
#enable ⇒ Boolean
(also: #enable?)
Optional.
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.
150 151 152 |
# File 'lib/google/apis/iap_v1/classes.rb', line 150 def initialize(**args) update!(**args) end |
Instance Attribute Details
#domains ⇒ Array<String>
Optional. List of trusted domains.
Corresponds to the JSON property domains
142 143 144 |
# File 'lib/google/apis/iap_v1/classes.rb', line 142 def domains @domains end |
#enable ⇒ Boolean Also known as: enable?
Optional. Configuration for customers to opt in for the feature.
Corresponds to the JSON property enable
147 148 149 |
# File 'lib/google/apis/iap_v1/classes.rb', line 147 def enable @enable end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
155 156 157 158 |
# File 'lib/google/apis/iap_v1/classes.rb', line 155 def update!(**args) @domains = args[:domains] if args.key?(:domains) @enable = args[:enable] if args.key?(:enable) end |