Class: Google::Apis::ContaineranalysisV1alpha1::UpdateOperationRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/containeranalysis_v1alpha1/classes.rb,
generated/google/apis/containeranalysis_v1alpha1/representations.rb,
generated/google/apis/containeranalysis_v1alpha1/representations.rb

Overview

Request for updating an existing operation

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UpdateOperationRequest

Returns a new instance of UpdateOperationRequest



2614
2615
2616
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 2614

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

Instance Attribute Details

#operationGoogle::Apis::ContaineranalysisV1alpha1::Operation

This resource represents a long-running operation that is the result of a network API call. Corresponds to the JSON property operation



2607
2608
2609
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 2607

def operation
  @operation
end

#update_maskString

The fields to update. Corresponds to the JSON property updateMask

Returns:

  • (String)


2612
2613
2614
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 2612

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2619
2620
2621
2622
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 2619

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