Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest

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

Overview

Request to apply update to a workload.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest

Returns a new instance of GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest.



183
184
185
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 183

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

Instance Attribute Details

#actionString

The action to be performed on the update. Corresponds to the JSON property action

Returns:

  • (String)


181
182
183
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 181

def action
  @action
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



188
189
190
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 188

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