Class: Google::Apis::GkehubV2::IdentityServiceAuthMethod

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v2/classes.rb,
lib/google/apis/gkehub_v2/representations.rb,
lib/google/apis/gkehub_v2/representations.rb

Overview

Configuration of an auth method for a member/cluster. Only one authentication method (e.g., OIDC and LDAP) can be set per AuthMethod.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IdentityServiceAuthMethod

Returns a new instance of IdentityServiceAuthMethod.



1604
1605
1606
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1604

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

Instance Attribute Details

#azuread_configGoogle::Apis::GkehubV2::IdentityServiceAzureAdConfig

Configuration for the AzureAD Auth flow. Corresponds to the JSON property azureadConfig



1572
1573
1574
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1572

def azuread_config
  @azuread_config
end

#google_configGoogle::Apis::GkehubV2::IdentityServiceGoogleConfig

Configuration for the Google Plugin Auth flow. Corresponds to the JSON property googleConfig



1577
1578
1579
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1577

def google_config
  @google_config
end

#ldap_configGoogle::Apis::GkehubV2::IdentityServiceLdapConfig

Configuration for the LDAP Auth flow. Corresponds to the JSON property ldapConfig



1582
1583
1584
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1582

def ldap_config
  @ldap_config
end

#nameString

Identifier for auth config. Corresponds to the JSON property name

Returns:

  • (String)


1587
1588
1589
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1587

def name
  @name
end

#oidc_configGoogle::Apis::GkehubV2::IdentityServiceOidcConfig

Configuration for OIDC Auth flow. Corresponds to the JSON property oidcConfig



1592
1593
1594
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1592

def oidc_config
  @oidc_config
end

#proxyString

Proxy server address to use for auth method. Corresponds to the JSON property proxy

Returns:

  • (String)


1597
1598
1599
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1597

def proxy
  @proxy
end

#saml_configGoogle::Apis::GkehubV2::IdentityServiceSamlConfig

Configuration for the SAML Auth flow. Corresponds to the JSON property samlConfig



1602
1603
1604
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1602

def saml_config
  @saml_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1609
1610
1611
1612
1613
1614
1615
1616
1617
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1609

def update!(**args)
  @azuread_config = args[:azuread_config] if args.key?(:azuread_config)
  @google_config = args[:google_config] if args.key?(:google_config)
  @ldap_config = args[:ldap_config] if args.key?(:ldap_config)
  @name = args[:name] if args.key?(:name)
  @oidc_config = args[:oidc_config] if args.key?(:oidc_config)
  @proxy = args[:proxy] if args.key?(:proxy)
  @saml_config = args[:saml_config] if args.key?(:saml_config)
end