Class: Google::Apis::VmmigrationV1::TargetProject

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

TargetProject message represents a target Compute Engine project for a migration or a clone.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TargetProject

Returns a new instance of TargetProject.



1846
1847
1848
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1846

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

Instance Attribute Details

#create_timeString

Output only. The time this target project resource was created (not related to when the Compute Engine project it points to was created). Corresponds to the JSON property createTime

Returns:

  • (String)


1824
1825
1826
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1824

def create_time
  @create_time
end

#descriptionString

The target project's description. Corresponds to the JSON property description

Returns:

  • (String)


1829
1830
1831
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1829

def description
  @description
end

#nameString

The name of the target project. Corresponds to the JSON property name

Returns:

  • (String)


1834
1835
1836
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1834

def name
  @name
end

#projectString

The target project ID (number) or project name. Corresponds to the JSON property project

Returns:

  • (String)


1839
1840
1841
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1839

def project
  @project
end

#update_timeString

Output only. The last time the target project resource was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1844
1845
1846
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1844

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1851
1852
1853
1854
1855
1856
1857
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1851

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