Class: Google::Apis::IapV1::OAuth2

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

The OAuth 2.0 Settings

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OAuth2

Returns a new instance of OAuth2.



778
779
780
# File 'lib/google/apis/iap_v1/classes.rb', line 778

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

Instance Attribute Details

#client_idString

The OAuth 2.0 client ID registered in the workforce identity federation OAuth 2.0 Server. Corresponds to the JSON property clientId

Returns:

  • (String)


764
765
766
# File 'lib/google/apis/iap_v1/classes.rb', line 764

def client_id
  @client_id
end

#client_secretString

Input only. The OAuth 2.0 client secret created while registering the client ID. Corresponds to the JSON property clientSecret

Returns:

  • (String)


770
771
772
# File 'lib/google/apis/iap_v1/classes.rb', line 770

def client_secret
  @client_secret
end

#client_secret_sha256String

Output only. SHA256 hash value for the client secret. This field is returned by IAP when the settings are retrieved. Corresponds to the JSON property clientSecretSha256

Returns:

  • (String)


776
777
778
# File 'lib/google/apis/iap_v1/classes.rb', line 776

def client_secret_sha256
  @client_secret_sha256
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



783
784
785
786
787
# File 'lib/google/apis/iap_v1/classes.rb', line 783

def update!(**args)
  @client_id = args[:client_id] if args.key?(:client_id)
  @client_secret = args[:client_secret] if args.key?(:client_secret)
  @client_secret_sha256 = args[:client_secret_sha256] if args.key?(:client_secret_sha256)
end