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.



639
640
641
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 639

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)


598
599
600
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 598

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



603
604
605
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 603

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



613
614
615
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 613

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


621
622
623
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 621

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)


627
628
629
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 627

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)


632
633
634
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 632

def state
  @state
end

#subscription_idString

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

Returns:

  • (String)


637
638
639
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 637

def subscription_id
  @subscription_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



644
645
646
647
648
649
650
651
652
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 644

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