Class: Google::Apis::RapidmigrationassessmentV1::Annotation

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_timeString

Output only. Create time stamp. Corresponds to the JSON property createTime

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/rapidmigrationassessment_v1/classes.rb', line 32

def create_time
  @create_time
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


37
38
39
# File 'lib/google/apis/rapidmigrationassessment_v1/classes.rb', line 37

def labels
  @labels
end

#nameString

name of resource. Corresponds to the JSON property name

Returns:

  • (String)


42
43
44
# File 'lib/google/apis/rapidmigrationassessment_v1/classes.rb', line 42

def name
  @name
end

#typeString

Type of an annotation. Corresponds to the JSON property type

Returns:

  • (String)


47
48
49
# File 'lib/google/apis/rapidmigrationassessment_v1/classes.rb', line 47

def type
  @type
end

#update_timeString

Output only. Update time stamp. Corresponds to the JSON property updateTime

Returns:

  • (String)


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