Class: Google::Apis::BackupdrV1::WorkforceIdentityBasedOAuth2ClientId

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

Overview

OAuth Client ID depending on the Workforce Identity i.e. either 1p or 3p,

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WorkforceIdentityBasedOAuth2ClientId

Returns a new instance of WorkforceIdentityBasedOAuth2ClientId.



965
966
967
# File 'lib/google/apis/backupdr_v1/classes.rb', line 965

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

Instance Attribute Details

#first_party_oauth2_client_idString

Output only. First party OAuth Client ID for Google Identities. Corresponds to the JSON property firstPartyOauth2ClientId

Returns:

  • (String)


958
959
960
# File 'lib/google/apis/backupdr_v1/classes.rb', line 958

def first_party_oauth2_client_id
  @first_party_oauth2_client_id
end

#third_party_oauth2_client_idString

Output only. Third party OAuth Client ID for External Identity Providers. Corresponds to the JSON property thirdPartyOauth2ClientId

Returns:

  • (String)


963
964
965
# File 'lib/google/apis/backupdr_v1/classes.rb', line 963

def third_party_oauth2_client_id
  @third_party_oauth2_client_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



970
971
972
973
# File 'lib/google/apis/backupdr_v1/classes.rb', line 970

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