Class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1ApplyWorkloadUpdateRequest

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

Overview

Request to apply update to a workload.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1beta1ApplyWorkloadUpdateRequest

Returns a new instance of GoogleCloudAssuredworkloadsV1beta1ApplyWorkloadUpdateRequest.



139
140
141
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 139

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)


137
138
139
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 137

def action
  @action
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



144
145
146
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 144

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