Class: Google::Apis::ContaineranalysisV1alpha1::CreateOperationRequest

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

Overview

Request for creating an operation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreateOperationRequest

Returns a new instance of CreateOperationRequest.



2974
2975
2976
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2974

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



2967
2968
2969
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2967

def operation
  @operation
end

#operation_idString

The ID to use for this operation. Corresponds to the JSON property operationId

Returns:

  • (String)


2972
2973
2974
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2972

def operation_id
  @operation_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2979
2980
2981
2982
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2979

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