Class: Google::Apis::IapV1::WorkforceIdentitySettings

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

WorkforceIdentitySettings allows customers to configure workforce pools and OAuth 2.0 settings to gate their applications using a third-party IdP with access control.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WorkforceIdentitySettings

Returns a new instance of WorkforceIdentitySettings.



1362
1363
1364
# File 'lib/google/apis/iap_v1/classes.rb', line 1362

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

Instance Attribute Details

#oauth2Google::Apis::IapV1::OAuth2

The OAuth 2.0 Settings Corresponds to the JSON property oauth2



1355
1356
1357
# File 'lib/google/apis/iap_v1/classes.rb', line 1355

def oauth2
  @oauth2
end

#workforce_poolsArray<String>

The workforce pool resources. Only one workforce pool is accepted. Corresponds to the JSON property workforcePools

Returns:

  • (Array<String>)


1360
1361
1362
# File 'lib/google/apis/iap_v1/classes.rb', line 1360

def workforce_pools
  @workforce_pools
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1367
1368
1369
1370
# File 'lib/google/apis/iap_v1/classes.rb', line 1367

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