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.



1050
1051
1052
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 1050

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

Instance Attribute Details

#actionString

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

Returns:

  • (String)


1043
1044
1045
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 1043

def action
  @action
end

#tagString

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

Returns:

  • (String)


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