Class: Google::Apis::MigrationcenterV1alpha1::Group

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/migrationcenter_v1alpha1/classes.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb

Overview

A resource that represents an asset group. The purpose of an asset group is to bundle a set of assets that have something in common, while allowing users to add annotations to the group. An asset can belong to multiple groups.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Group

Returns a new instance of Group.



1707
1708
1709
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1707

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

Instance Attribute Details

#create_timeString

Output only. The timestamp when the group was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1680
1681
1682
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1680

def create_time
  @create_time
end

#descriptionString

The description of the resource. Corresponds to the JSON property description

Returns:

  • (String)


1685
1686
1687
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1685

def description
  @description
end

#display_nameString

User-friendly display name. Corresponds to the JSON property displayName

Returns:

  • (String)


1690
1691
1692
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1690

def display_name
  @display_name
end

#labelsHash<String,String>

Labels as key value pairs. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1695
1696
1697
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1695

def labels
  @labels
end

#nameString

Output only. The name of the group. Corresponds to the JSON property name

Returns:

  • (String)


1700
1701
1702
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1700

def name
  @name
end

#update_timeString

Output only. The timestamp when the group was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1705
1706
1707
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1705

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1712
1713
1714
1715
1716
1717
1718
1719
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1712

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)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @update_time = args[:update_time] if args.key?(:update_time)
end