Class: Google::Apis::DataflowV1b3::ModifyTemplateVersionTagRequest

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

Overview

Add a tag to the current TemplateVersion. If tag exist in another TemplateVersion in the Template, remove the tag before add it to the current TemplateVersion. If remove_only set, remove the tag from the current TemplateVersion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ModifyTemplateVersionTagRequest

Returns a new instance of ModifyTemplateVersionTagRequest.



3143
3144
3145
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3143

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

Instance Attribute Details

#remove_onlyBoolean Also known as: remove_only?

The flag that indicates if the request is only for remove tag from TemplateVersion. Corresponds to the JSON property removeOnly

Returns:

  • (Boolean)


3135
3136
3137
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3135

def remove_only
  @remove_only
end

#tagString

The tag for update. Corresponds to the JSON property tag

Returns:

  • (String)


3141
3142
3143
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3141

def tag
  @tag
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3148
3149
3150
3151
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3148

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