Class: Google::Apis::VmmigrationV1::ClientSecretCredentials

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

Overview

Message describing Azure Credentials using tenant ID, client ID and secret.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClientSecretCredentials

Returns a new instance of ClientSecretCredentials.



948
949
950
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 948

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

Instance Attribute Details

#client_idString

Azure client ID. Corresponds to the JSON property clientId

Returns:

  • (String)


936
937
938
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 936

def client_id
  @client_id
end

#client_secretString

Input only. Azure client secret. Corresponds to the JSON property clientSecret

Returns:

  • (String)


941
942
943
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 941

def client_secret
  @client_secret
end

#tenant_idString

Azure tenant ID. Corresponds to the JSON property tenantId

Returns:

  • (String)


946
947
948
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 946

def tenant_id
  @tenant_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



953
954
955
956
957
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 953

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