Class: Google::Apis::IapV1::OAuth2
- Inherits:
-
Object
- Object
- Google::Apis::IapV1::OAuth2
- 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
-
#client_id ⇒ String
The OAuth 2.0 client ID registered in the workforce identity federation OAuth 2.0 Server.
-
#client_secret ⇒ String
Input only.
-
#client_secret_sha256 ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OAuth2
constructor
A new instance of OAuth2.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_id ⇒ String
The OAuth 2.0 client ID registered in the workforce identity federation OAuth
2.0 Server.
Corresponds to the JSON property clientId
764 765 766 |
# File 'lib/google/apis/iap_v1/classes.rb', line 764 def client_id @client_id end |
#client_secret ⇒ String
Input only. The OAuth 2.0 client secret created while registering the client
ID.
Corresponds to the JSON property clientSecret
770 771 772 |
# File 'lib/google/apis/iap_v1/classes.rb', line 770 def client_secret @client_secret end |
#client_secret_sha256 ⇒ String
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
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 |