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.



2887
2888
2889
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2887

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)


2860
2861
2862
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2860

def create_time
  @create_time
end

#descriptionString

Optional. The description of the group. Corresponds to the JSON property description

Returns:

  • (String)


2865
2866
2867
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2865

def description
  @description
end

#display_nameString

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

Returns:

  • (String)


2870
2871
2872
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2870

def display_name
  @display_name
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


2875
2876
2877
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2875

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


2880
2881
2882
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2880

def name
  @name
end

#update_timeString

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

Returns:

  • (String)


2885
2886
2887
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2885

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2892
2893
2894
2895
2896
2897
2898
2899
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2892

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