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.



1243
1244
1245
# File 'lib/google/apis/iap_v1/classes.rb', line 1243

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

Instance Attribute Details

#oauth2Google::Apis::IapV1::OAuth2

The OAuth 2.0 Settings Corresponds to the JSON property oauth2



1236
1237
1238
# File 'lib/google/apis/iap_v1/classes.rb', line 1236

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>)


1241
1242
1243
# File 'lib/google/apis/iap_v1/classes.rb', line 1241

def workforce_pools
  @workforce_pools
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1248
1249
1250
1251
# File 'lib/google/apis/iap_v1/classes.rb', line 1248

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