Class: Google::Apis::ApimV1alpha::TagAction

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

Overview

Message for edit tag action

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TagAction

Returns a new instance of TagAction.



994
995
996
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 994

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

Instance Attribute Details

#actionString

Required. Action to be applied Corresponds to the JSON property action

Returns:

  • (String)


987
988
989
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 987

def action
  @action
end

#tagString

Required. Tag to be added or removed Corresponds to the JSON property tag

Returns:

  • (String)


992
993
994
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 992

def tag
  @tag
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



999
1000
1001
1002
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 999

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