Class: Google::Apis::VmmigrationV1::Group

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

Describes message for 'Group' resource. The Group is a collections of several MigratingVms.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Group

Returns a new instance of Group.



2646
2647
2648
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2646

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)


2619
2620
2621
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2619

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


2624
2625
2626
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2624

def description
  @description
end

#display_nameString

Display name is a user defined name for this group which can be updated. Corresponds to the JSON property displayName

Returns:

  • (String)


2629
2630
2631
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2629

def display_name
  @display_name
end

#migration_target_typeString

Immutable. The target type of this group. Corresponds to the JSON property migrationTargetType

Returns:

  • (String)


2634
2635
2636
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2634

def migration_target_type
  @migration_target_type
end

#nameString

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

Returns:

  • (String)


2639
2640
2641
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2639

def name
  @name
end

#update_timeString

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

Returns:

  • (String)


2644
2645
2646
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2644

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2651
2652
2653
2654
2655
2656
2657
2658
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2651

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