Class: Google::Apis::ApimV1alpha::TagAction
- Inherits:
-
Object
- Object
- Google::Apis::ApimV1alpha::TagAction
- 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
-
#action ⇒ String
Required.
-
#tag ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TagAction
constructor
A new instance of TagAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TagAction
Returns a new instance of TagAction.
1050 1051 1052 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 1050 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ String
Required. Action to be applied
Corresponds to the JSON property action
1043 1044 1045 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 1043 def action @action end |
#tag ⇒ String
Required. Tag to be added or removed
Corresponds to the JSON property tag
1048 1049 1050 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 1048 def tag @tag end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1055 1056 1057 1058 |
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 1055 def update!(**args) @action = args[:action] if args.key?(:action) @tag = args[:tag] if args.key?(:tag) end |