Class: Google::Apis::VmmigrationV1::AzureSourceDetails

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

AzureSourceDetails message describes a specific source details for the Azure source type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AzureSourceDetails

Returns a new instance of AzureSourceDetails.



562
563
564
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 562

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

Instance Attribute Details

#azure_locationString

Immutable. The Azure location (region) that the source VMs will be migrated from. Corresponds to the JSON property azureLocation

Returns:

  • (String)


521
522
523
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 521

def azure_location
  @azure_location
end

#client_secret_credsGoogle::Apis::VmmigrationV1::ClientSecretCredentials

Message describing Azure Credentials using tenant ID, client ID and secret. Corresponds to the JSON property clientSecretCreds



526
527
528
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 526

def client_secret_creds
  @client_secret_creds
end

#errorGoogle::Apis::VmmigrationV1::Status

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. Corresponds to the JSON property error



536
537
538
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 536

def error
  @error
end

#migration_resources_user_tagsHash<String,String>

User specified tags to add to every M2VM generated resource in Azure. These tags will be set in addition to the default tags that are set as part of the migration process. The tags must not begin with the reserved prefix m4ce or m2vm. Corresponds to the JSON property migrationResourcesUserTags

Returns:

  • (Hash<String,String>)


544
545
546
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 544

def migration_resources_user_tags
  @migration_resources_user_tags
end

#resource_group_idString

Output only. The ID of the Azure resource group that contains all resources related to the migration process of this source. Corresponds to the JSON property resourceGroupId

Returns:

  • (String)


550
551
552
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 550

def resource_group_id
  @resource_group_id
end

#stateString

Output only. State of the source as determined by the health check. Corresponds to the JSON property state

Returns:

  • (String)


555
556
557
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 555

def state
  @state
end

#subscription_idString

Immutable. Azure subscription ID. Corresponds to the JSON property subscriptionId

Returns:

  • (String)


560
561
562
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 560

def subscription_id
  @subscription_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



567
568
569
570
571
572
573
574
575
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 567

def update!(**args)
  @azure_location = args[:azure_location] if args.key?(:azure_location)
  @client_secret_creds = args[:client_secret_creds] if args.key?(:client_secret_creds)
  @error = args[:error] if args.key?(:error)
  @migration_resources_user_tags = args[:migration_resources_user_tags] if args.key?(:migration_resources_user_tags)
  @resource_group_id = args[:resource_group_id] if args.key?(:resource_group_id)
  @state = args[:state] if args.key?(:state)
  @subscription_id = args[:subscription_id] if args.key?(:subscription_id)
end