Class: Google::Apis::VmmigrationV1alpha1::AwsSourceDetails

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

AwsSourceDetails message describes a specific source details for the AWS source type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AwsSourceDetails

Returns a new instance of AwsSourceDetails.



264
265
266
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 264

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

Instance Attribute Details

#access_key_credsGoogle::Apis::VmmigrationV1alpha1::AccessKeyCredentials

Message describing AWS Credentials using access key id and secret. Corresponds to the JSON property accessKeyCreds



203
204
205
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 203

def access_key_creds
  @access_key_creds
end

#access_key_idString

AWS access key ID. Corresponds to the JSON property accessKeyId

Returns:

  • (String)


208
209
210
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 208

def access_key_id
  @access_key_id
end

#aws_regionString

Immutable. The AWS region that the source VMs will be migrated from. Corresponds to the JSON property awsRegion

Returns:

  • (String)


213
214
215
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 213

def aws_region
  @aws_region
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



223
224
225
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 223

def error
  @error
end

#inventory_security_group_namesArray<String>

AWS security group names to limit the scope of the source inventory. Corresponds to the JSON property inventorySecurityGroupNames

Returns:

  • (Array<String>)


228
229
230
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 228

def inventory_security_group_names
  @inventory_security_group_names
end

#inventory_tag_listArray<Google::Apis::VmmigrationV1alpha1::Tag>

AWS resource tags to limit the scope of the source inventory. Corresponds to the JSON property inventoryTagList



233
234
235
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 233

def inventory_tag_list
  @inventory_tag_list
end

#inventory_tagsHash<String,String>

Deprecated: AWS resource tags to limit the scope of the source inventory. Use inventory_tag_list instead. Corresponds to the JSON property inventoryTags

Returns:

  • (Hash<String,String>)


239
240
241
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 239

def inventory_tags
  @inventory_tags
end

#migration_resources_user_tagsHash<String,String>

User specified tags to add to every M2VM generated resource in AWS. 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 m2vm. Corresponds to the JSON property migrationResourcesUserTags

Returns:

  • (Hash<String,String>)


246
247
248
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 246

def migration_resources_user_tags
  @migration_resources_user_tags
end

#public_ipString

Output only. The source's public IP. All communication initiated by this source will originate from this IP. Corresponds to the JSON property publicIp

Returns:

  • (String)


252
253
254
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 252

def public_ip
  @public_ip
end

#secret_access_keyString

Input only. AWS secret access key. Corresponds to the JSON property secretAccessKey

Returns:

  • (String)


257
258
259
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 257

def secret_access_key
  @secret_access_key
end

#stateString

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

Returns:

  • (String)


262
263
264
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 262

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



269
270
271
272
273
274
275
276
277
278
279
280
281
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 269

def update!(**args)
  @access_key_creds = args[:access_key_creds] if args.key?(:access_key_creds)
  @access_key_id = args[:access_key_id] if args.key?(:access_key_id)
  @aws_region = args[:aws_region] if args.key?(:aws_region)
  @error = args[:error] if args.key?(:error)
  @inventory_security_group_names = args[:inventory_security_group_names] if args.key?(:inventory_security_group_names)
  @inventory_tag_list = args[:inventory_tag_list] if args.key?(:inventory_tag_list)
  @inventory_tags = args[:inventory_tags] if args.key?(:inventory_tags)
  @migration_resources_user_tags = args[:migration_resources_user_tags] if args.key?(:migration_resources_user_tags)
  @public_ip = args[:public_ip] if args.key?(:public_ip)
  @secret_access_key = args[:secret_access_key] if args.key?(:secret_access_key)
  @state = args[:state] if args.key?(:state)
end