Class: Google::Apis::VmmigrationV1alpha1::AzureSourceDetails

Inherits:
Object
  • Object
show all
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

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.



568
569
570
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 568

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)


527
528
529
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 527

def azure_location
  @azure_location
end

#client_secret_credsGoogle::Apis::VmmigrationV1alpha1::ClientSecretCredentials

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



532
533
534
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 532

def client_secret_creds
  @client_secret_creds
end

#errorGoogle::Apis::VmmigrationV1alpha1::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



542
543
544
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 542

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>)


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

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)


556
557
558
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 556

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)


561
562
563
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 561

def state
  @state
end

#subscription_idString

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

Returns:

  • (String)


566
567
568
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 566

def subscription_id
  @subscription_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



573
574
575
576
577
578
579
580
581
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 573

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