Class: Google::Apis::ReplicapoolV1beta1::Tag

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/replicapool_v1beta1/classes.rb,
generated/google/apis/replicapool_v1beta1/representations.rb,
generated/google/apis/replicapool_v1beta1/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



777
778
779
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 777

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

Instance Attribute Details

#finger_printString

The fingerprint of the tag. Required for updating the list of tags. Corresponds to the JSON property fingerPrint

Returns:

  • (String)


770
771
772
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 770

def finger_print
  @finger_print
end

#itemsArray<String>

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

Returns:

  • (Array<String>)


775
776
777
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 775

def items
  @items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



782
783
784
785
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 782

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