Class: Google::Apis::VmmigrationV1::DatacenterConnector

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

DatacenterConnector message describes a connector between the Source and GCP, which is installed on a vmware datacenter (an OVA vm installed by the user) to connect the Datacenter to GCP and support vm migration data transfer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DatacenterConnector

Returns a new instance of DatacenterConnector.



593
594
595
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 593

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

Instance Attribute Details

#bucketString

Output only. The communication channel between the datacenter connector and GCP. Corresponds to the JSON property bucket

Returns:

  • (String)


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

def bucket
  @bucket
end

#create_timeString

Output only. The time the connector was created (as an API call, not when it was actually installed). Corresponds to the JSON property createTime

Returns:

  • (String)


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

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



552
553
554
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 552

def error
  @error
end

#nameString

Output only. The connector's name. Corresponds to the JSON property name

Returns:

  • (String)


557
558
559
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 557

def name
  @name
end

#registration_idString

Immutable. A unique key for this connector. This key is internal to the OVA connector and is supplied with its creation during the registration process and can not be modified. Corresponds to the JSON property registrationId

Returns:

  • (String)


564
565
566
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 564

def registration_id
  @registration_id
end

#service_accountString

The service account to use in the connector when communicating with the cloud. Corresponds to the JSON property serviceAccount

Returns:

  • (String)


569
570
571
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 569

def 
  @service_account
end

#stateString

Output only. State of the DatacenterConnector, as determined by the health checks. Corresponds to the JSON property state

Returns:

  • (String)


575
576
577
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 575

def state
  @state
end

#state_timeString

Output only. The time the state was last set. Corresponds to the JSON property stateTime

Returns:

  • (String)


580
581
582
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 580

def state_time
  @state_time
end

#update_timeString

Output only. The last time the connector was updated with an API call. Corresponds to the JSON property updateTime

Returns:

  • (String)


585
586
587
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 585

def update_time
  @update_time
end

#versionString

The version running in the DatacenterConnector. This is supplied by the OVA connector during the registration process and can not be modified. Corresponds to the JSON property version

Returns:

  • (String)


591
592
593
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 591

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



598
599
600
601
602
603
604
605
606
607
608
609
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 598

def update!(**args)
  @bucket = args[:bucket] if args.key?(:bucket)
  @create_time = args[:create_time] if args.key?(:create_time)
  @error = args[:error] if args.key?(:error)
  @name = args[:name] if args.key?(:name)
  @registration_id = args[:registration_id] if args.key?(:registration_id)
  @service_account = args[:service_account] if args.key?(:service_account)
  @state = args[:state] if args.key?(:state)
  @state_time = args[:state_time] if args.key?(:state_time)
  @update_time = args[:update_time] if args.key?(:update_time)
  @version = args[:version] if args.key?(:version)
end