Class: Google::Apis::RapidmigrationassessmentV1::Annotation
- Inherits:
-
Object
- Object
- Google::Apis::RapidmigrationassessmentV1::Annotation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/rapidmigrationassessment_v1/classes.rb,
lib/google/apis/rapidmigrationassessment_v1/representations.rb,
lib/google/apis/rapidmigrationassessment_v1/representations.rb
Overview
Message describing an Annotation
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#labels ⇒ Hash<String,String>
Labels as key value pairs.
-
#name ⇒ String
name of resource.
-
#type ⇒ String
Type of an annotation.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Annotation
constructor
A new instance of Annotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Annotation
Returns a new instance of Annotation.
54 55 56 |
# File 'lib/google/apis/rapidmigrationassessment_v1/classes.rb', line 54 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Create time stamp.
Corresponds to the JSON property createTime
32 33 34 |
# File 'lib/google/apis/rapidmigrationassessment_v1/classes.rb', line 32 def create_time @create_time end |
#labels ⇒ Hash<String,String>
Labels as key value pairs.
Corresponds to the JSON property labels
37 38 39 |
# File 'lib/google/apis/rapidmigrationassessment_v1/classes.rb', line 37 def labels @labels end |
#name ⇒ String
name of resource.
Corresponds to the JSON property name
42 43 44 |
# File 'lib/google/apis/rapidmigrationassessment_v1/classes.rb', line 42 def name @name end |
#type ⇒ String
Type of an annotation.
Corresponds to the JSON property type
47 48 49 |
# File 'lib/google/apis/rapidmigrationassessment_v1/classes.rb', line 47 def type @type end |
#update_time ⇒ String
Output only. Update time stamp.
Corresponds to the JSON property updateTime
52 53 54 |
# File 'lib/google/apis/rapidmigrationassessment_v1/classes.rb', line 52 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
59 60 61 62 63 64 65 |
# File 'lib/google/apis/rapidmigrationassessment_v1/classes.rb', line 59 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) @update_time = args[:update_time] if args.key?(:update_time) end |