Class: Google::Apis::VmmigrationV1alpha1::ClientSecretCredentials
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1alpha1::ClientSecretCredentials
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vmmigration_v1alpha1/classes.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb
Overview
Message describing Azure Credentials using tenant ID, client ID and secret.
Instance Attribute Summary collapse
-
#client_id ⇒ String
Azure client ID.
-
#client_secret ⇒ String
Input only.
-
#tenant_id ⇒ String
Azure tenant ID.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClientSecretCredentials
constructor
A new instance of ClientSecretCredentials.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClientSecretCredentials
Returns a new instance of ClientSecretCredentials.
865 866 867 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 865 def initialize(**args) update!(**args) end |
Instance Attribute Details
#client_id ⇒ String
Azure client ID.
Corresponds to the JSON property clientId
853 854 855 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 853 def client_id @client_id end |
#client_secret ⇒ String
Input only. Azure client secret.
Corresponds to the JSON property clientSecret
858 859 860 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 858 def client_secret @client_secret end |
#tenant_id ⇒ String
Azure tenant ID.
Corresponds to the JSON property tenantId
863 864 865 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 863 def tenant_id @tenant_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
870 871 872 873 874 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 870 def update!(**args) @client_id = args[:client_id] if args.key?(:client_id) @client_secret = args[:client_secret] if args.key?(:client_secret) @tenant_id = args[:tenant_id] if args.key?(:tenant_id) end |