Class: Google::Apis::ServicemanagementV1::OperationInfo
- Inherits:
-
Object
- Object
- Google::Apis::ServicemanagementV1::OperationInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/servicemanagement_v1/classes.rb,
lib/google/apis/servicemanagement_v1/representations.rb,
lib/google/apis/servicemanagement_v1/representations.rb
Overview
A message representing the message types used by a long-running operation.
Example: rpc Export(ExportRequest) returns (google.longrunning.Operation)
option (google.longrunning.operation_info) =
response_type: "ExportResponse"
metadata_type: "ExportMetadata" ;
Instance Attribute Summary collapse
-
#metadata_type ⇒ String
Required.
-
#response_type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OperationInfo
constructor
A new instance of OperationInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OperationInfo
Returns a new instance of OperationInfo.
3241 3242 3243 |
# File 'lib/google/apis/servicemanagement_v1/classes.rb', line 3241 def initialize(**args) update!(**args) end |
Instance Attribute Details
#metadata_type ⇒ String
Required. The message name of the metadata type for this long-running
operation. If the response is in a different package from the rpc, a fully-
qualified message name must be used (e.g. google.protobuf.Struct
). Note:
Altering this value constitutes a breaking change.
Corresponds to the JSON property metadataType
3230 3231 3232 |
# File 'lib/google/apis/servicemanagement_v1/classes.rb', line 3230 def @metadata_type end |
#response_type ⇒ String
Required. The message name of the primary return type for this long-running
operation. This type will be used to deserialize the LRO's response. If the
response is in a different package from the rpc, a fully-qualified message
name must be used (e.g. google.protobuf.Struct
). Note: Altering this value
constitutes a breaking change.
Corresponds to the JSON property responseType
3239 3240 3241 |
# File 'lib/google/apis/servicemanagement_v1/classes.rb', line 3239 def response_type @response_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3246 3247 3248 3249 |
# File 'lib/google/apis/servicemanagement_v1/classes.rb', line 3246 def update!(**args) @metadata_type = args[:metadata_type] if args.key?(:metadata_type) @response_type = args[:response_type] if args.key?(:response_type) end |