Class: Google::Apis::ManagerV1beta2::Tag

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

Overview

A Compute Engine Instance tag, identical to the tags on the corresponding Compute Engine Instance resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Tag

Returns a new instance of Tag



1212
1213
1214
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1212

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

Instance Attribute Details

#finger_printString

The fingerprint of the tag. Corresponds to the JSON property fingerPrint

Returns:

  • (String)


1205
1206
1207
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1205

def finger_print
  @finger_print
end

#itemsArray<String>

Items contained in this tag. Corresponds to the JSON property items

Returns:

  • (Array<String>)


1210
1211
1212
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1210

def items
  @items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1217
1218
1219
1220
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1217

def update!(**args)
  @finger_print = args[:finger_print] if args.key?(:finger_print)
  @items = args[:items] if args.key?(:items)
end