Class: Google::Apis::VmmigrationV1alpha1::Source

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

Source message describes a specific vm migration Source resource. It contains the source environment information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Source

Returns a new instance of Source.



2184
2185
2186
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2184

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

Instance Attribute Details

#create_timeString

Output only. The create time timestamp. Corresponds to the JSON property createTime

Returns:

  • (String)


2146
2147
2148
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2146

def create_time
  @create_time
end

#descriptionString

User-provided description of the source. Corresponds to the JSON property description

Returns:

  • (String)


2151
2152
2153
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2151

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



2161
2162
2163
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2161

def error
  @error
end

#labelsHash<String,String>

The labels of the source. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


2166
2167
2168
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2166

def labels
  @labels
end

#nameString

Output only. The Source name. Corresponds to the JSON property name

Returns:

  • (String)


2171
2172
2173
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2171

def name
  @name
end

#update_timeString

Output only. The update time timestamp. Corresponds to the JSON property updateTime

Returns:

  • (String)


2176
2177
2178
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2176

def update_time
  @update_time
end

#vmwareGoogle::Apis::VmmigrationV1alpha1::VmwareSourceDetails

VmwareSourceDetails message describes a specific source details for the vmware source type. Corresponds to the JSON property vmware



2182
2183
2184
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2182

def vmware
  @vmware
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2189
2190
2191
2192
2193
2194
2195
2196
2197
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2189

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @error = args[:error] if args.key?(:error)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @update_time = args[:update_time] if args.key?(:update_time)
  @vmware = args[:vmware] if args.key?(:vmware)
end