Class: Google::Apis::AppengineV1::GceTag

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

Overview

For use only by GCE. GceTag is a wrapper around the GCE administrative tag with parent info.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GceTag

Returns a new instance of GceTag.



1216
1217
1218
# File 'lib/google/apis/appengine_v1/classes.rb', line 1216

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

Instance Attribute Details

#parentArray<String>

The parents(s) of the tag. Eg. projects/123, folders/456 It usually contains only one parent. But, in some corner cases, it can contain multiple parents. Currently, organizations are not supported. Corresponds to the JSON property parent

Returns:

  • (Array<String>)


1209
1210
1211
# File 'lib/google/apis/appengine_v1/classes.rb', line 1209

def parent
  @parent
end

#tagString

The administrative_tag name. Corresponds to the JSON property tag

Returns:

  • (String)


1214
1215
1216
# File 'lib/google/apis/appengine_v1/classes.rb', line 1214

def tag
  @tag
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1221
1222
1223
1224
# File 'lib/google/apis/appengine_v1/classes.rb', line 1221

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