Class: Google::Apis::ServicecontrolV1::ReportError

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

Overview

Represents the processing error of one Operation in the request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ReportError

Returns a new instance of ReportError



1743
1744
1745
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1743

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

Instance Attribute Details

#operation_idString

The Operation.operation_id value from the request. Corresponds to the JSON property operationId

Returns:

  • (String)


1731
1732
1733
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1731

def operation_id
  @operation_id
end

#statusGoogle::Apis::ServicecontrolV1::Status

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. Corresponds to the JSON property status



1741
1742
1743
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1741

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1748
1749
1750
1751
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1748

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