Class: Google::Apis::MigrationcenterV1alpha1::Group
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::Group
- 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
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
The description of the resource.
-
#display_name ⇒ String
User-friendly display name.
-
#labels ⇒ Hash<String,String>
Labels as key value pairs.
-
#name ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Group
constructor
A new instance of Group.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Group
Returns a new instance of Group.
1746 1747 1748 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1746 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The timestamp when the group was created.
Corresponds to the JSON property createTime
1719 1720 1721 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1719 def create_time @create_time end |
#description ⇒ String
The description of the resource.
Corresponds to the JSON property description
1724 1725 1726 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1724 def description @description end |
#display_name ⇒ String
User-friendly display name.
Corresponds to the JSON property displayName
1729 1730 1731 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1729 def display_name @display_name end |
#labels ⇒ Hash<String,String>
Labels as key value pairs.
Corresponds to the JSON property labels
1734 1735 1736 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1734 def labels @labels end |
#name ⇒ String
Output only. The name of the group.
Corresponds to the JSON property name
1739 1740 1741 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1739 def name @name end |
#update_time ⇒ String
Output only. The timestamp when the group was last updated.
Corresponds to the JSON property updateTime
1744 1745 1746 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1744 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1751 1752 1753 1754 1755 1756 1757 1758 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1751 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 |