Reference documentation and code samples for the Google Cloud Memorystore for Memcached V1 API class Google::Longrunning::Operation.
This resource represents a long-running operation that is the result of a
network API call.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#done
defdone()->::Boolean
Returns
(::Boolean) — If the value is false, it means the operation is still in progress.
If true, the operation is completed, and either error or response is
available.
#done=
defdone=(value)->::Boolean
Parameter
value (::Boolean) — If the value is false, it means the operation is still in progress.
If true, the operation is completed, and either error or response is
available.
Returns
(::Boolean) — If the value is false, it means the operation is still in progress.
If true, the operation is completed, and either error or response is
available.
#error
deferror()->::Google::Rpc::Status
Returns
(::Google::Rpc::Status) — The error result of the operation in case of failure or cancellation.
Note: The following fields are mutually exclusive: error, response. If a field in that set is populated, all other fields in the set will automatically be cleared.
#error=
deferror=(value)->::Google::Rpc::Status
Parameter
value (::Google::Rpc::Status) — The error result of the operation in case of failure or cancellation.
Note: The following fields are mutually exclusive: error, response. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::Google::Rpc::Status) — The error result of the operation in case of failure or cancellation.
Note: The following fields are mutually exclusive: error, response. If a field in that set is populated, all other fields in the set will automatically be cleared.
#metadata
defmetadata()->::Google::Protobuf::Any
Returns
(::Google::Protobuf::Any) — Service-specific metadata associated with the operation. It typically
contains progress information and common metadata such as create time.
Some services might not provide such metadata. Any method that returns a
long-running operation should document the metadata type, if any.
#metadata=
defmetadata=(value)->::Google::Protobuf::Any
Parameter
value (::Google::Protobuf::Any) — Service-specific metadata associated with the operation. It typically
contains progress information and common metadata such as create time.
Some services might not provide such metadata. Any method that returns a
long-running operation should document the metadata type, if any.
Returns
(::Google::Protobuf::Any) — Service-specific metadata associated with the operation. It typically
contains progress information and common metadata such as create time.
Some services might not provide such metadata. Any method that returns a
long-running operation should document the metadata type, if any.
#name
defname()->::String
Returns
(::String) — The server-assigned name, which is only unique within the same service that
originally returns it. If you use the default HTTP mapping, the
name should be a resource name ending with operations/{unique_id}.
#name=
defname=(value)->::String
Parameter
value (::String) — The server-assigned name, which is only unique within the same service that
originally returns it. If you use the default HTTP mapping, the
name should be a resource name ending with operations/{unique_id}.
Returns
(::String) — The server-assigned name, which is only unique within the same service that
originally returns it. If you use the default HTTP mapping, the
name should be a resource name ending with operations/{unique_id}.
#response
defresponse()->::Google::Protobuf::Any
Returns
(::Google::Protobuf::Any) — The normal, successful response of the operation. If the original
method returns no data on success, such as Delete, the response is
google.protobuf.Empty. If the original method is standard
Get/Create/Update, the response should be the resource. For other
methods, the response should have the type XxxResponse, where Xxx
is the original method name. For example, if the original method name
is TakeSnapshot(), the inferred response type is
TakeSnapshotResponse.
Note: The following fields are mutually exclusive: response, error. If a field in that set is populated, all other fields in the set will automatically be cleared.
#response=
defresponse=(value)->::Google::Protobuf::Any
Parameter
value (::Google::Protobuf::Any) — The normal, successful response of the operation. If the original
method returns no data on success, such as Delete, the response is
google.protobuf.Empty. If the original method is standard
Get/Create/Update, the response should be the resource. For other
methods, the response should have the type XxxResponse, where Xxx
is the original method name. For example, if the original method name
is TakeSnapshot(), the inferred response type is
TakeSnapshotResponse.
Note: The following fields are mutually exclusive: response, error. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::Google::Protobuf::Any) — The normal, successful response of the operation. If the original
method returns no data on success, such as Delete, the response is
google.protobuf.Empty. If the original method is standard
Get/Create/Update, the response should be the resource. For other
methods, the response should have the type XxxResponse, where Xxx
is the original method name. For example, if the original method name
is TakeSnapshot(), the inferred response type is
TakeSnapshotResponse.
Note: The following fields are mutually exclusive: response, error. If a field in that set is populated, all other fields in the set will automatically be cleared.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Google Cloud Memorystore for Memcached V1 API - Class Google::Longrunning::Operation (v2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/ruby/docs/reference/google-cloud-memcache-v1/latest/Google-Longrunning-Operation)\n- [2.0.1](/ruby/docs/reference/google-cloud-memcache-v1/2.0.1/Google-Longrunning-Operation)\n- [1.2.0](/ruby/docs/reference/google-cloud-memcache-v1/1.2.0/Google-Longrunning-Operation)\n- [1.1.0](/ruby/docs/reference/google-cloud-memcache-v1/1.1.0/Google-Longrunning-Operation)\n- [1.0.2](/ruby/docs/reference/google-cloud-memcache-v1/1.0.2/Google-Longrunning-Operation)\n- [0.9.0](/ruby/docs/reference/google-cloud-memcache-v1/0.9.0/Google-Longrunning-Operation)\n- [0.8.2](/ruby/docs/reference/google-cloud-memcache-v1/0.8.2/Google-Longrunning-Operation)\n- [0.7.0](/ruby/docs/reference/google-cloud-memcache-v1/0.7.0/Google-Longrunning-Operation)\n- [0.6.1](/ruby/docs/reference/google-cloud-memcache-v1/0.6.1/Google-Longrunning-Operation)\n- [0.5.0](/ruby/docs/reference/google-cloud-memcache-v1/0.5.0/Google-Longrunning-Operation)\n- [0.4.0](/ruby/docs/reference/google-cloud-memcache-v1/0.4.0/Google-Longrunning-Operation)\n- [0.3.0](/ruby/docs/reference/google-cloud-memcache-v1/0.3.0/Google-Longrunning-Operation)\n- [0.2.5](/ruby/docs/reference/google-cloud-memcache-v1/0.2.5/Google-Longrunning-Operation) \nReference documentation and code samples for the Google Cloud Memorystore for Memcached V1 API class Google::Longrunning::Operation.\n\nThis resource represents a long-running operation that is the result of a\nnetwork API call. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #done\n\n def done() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.\n\n### #done=\n\n def done=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. \n**Returns**\n\n- (::Boolean) --- If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.\n\n### #error\n\n def error() -\u003e ::Google::Rpc::Status\n\n**Returns**\n\n- ([::Google::Rpc::Status](./Google-Rpc-Status)) --- The error result of the operation in case of failure or cancellation.\n\n\n Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #error=\n\n def error=(value) -\u003e ::Google::Rpc::Status\n\n**Parameter**\n\n- **value** ([::Google::Rpc::Status](./Google-Rpc-Status)) --- The error result of the operation in case of failure or cancellation.\n\n\nNote: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Rpc::Status](./Google-Rpc-Status)) --- The error result of the operation in case of failure or cancellation.\n\n\n Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #metadata\n\n def metadata() -\u003e ::Google::Protobuf::Any\n\n**Returns**\n\n- ([::Google::Protobuf::Any](./Google-Protobuf-Any)) --- Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.\n\n### #metadata=\n\n def metadata=(value) -\u003e ::Google::Protobuf::Any\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Any](./Google-Protobuf-Any)) --- Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. \n**Returns**\n\n- ([::Google::Protobuf::Any](./Google-Protobuf-Any)) --- Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. \n**Returns**\n\n- (::String) --- The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.\n\n### #response\n\n def response() -\u003e ::Google::Protobuf::Any\n\n**Returns**\n\n- ([::Google::Protobuf::Any](./Google-Protobuf-Any)) --- The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.\n\n\n Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #response=\n\n def response=(value) -\u003e ::Google::Protobuf::Any\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Any](./Google-Protobuf-Any)) --- The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.\n\n\nNote: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Protobuf::Any](./Google-Protobuf-Any)) --- The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.\n\n\n Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared."]]