{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gcp-cloud-storage/json-schema/gcp-cloud-storage-google-longrunning-operation-schema.json",
  "title": "GoogleLongrunningOperation",
  "description": "This resource represents a long-running operation that is the result of a network API call.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gcp-cloud-storage-json-api-openapi.yml#/components/schemas/GoogleLongrunningOperation",
  "type": "object",
  "properties": {
    "done": {
      "type": "boolean",
      "description": "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": {
      "$ref": "#/$defs/GoogleRpcStatus"
    },
    "metadata": {
      "type": "object",
      "description": "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.",
      "additionalProperties": {
        "description": "Properties of the object. Contains field @type with type URL."
      }
    },
    "name": {
      "type": "string",
      "description": "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/{operationId}\"."
    },
    "response": {
      "type": "object",
      "description": "The normal response of the operation in case of success. 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\".",
      "additionalProperties": {
        "description": "Properties of the object. Contains field @type with type URL."
      }
    },
    "selfLink": {
      "type": "string",
      "description": "The link to this long running operation."
    },
    "kind": {
      "type": "string",
      "description": "The kind of item this is. For operations, this is always storage#operation.",
      "default": "storage#operation"
    }
  },
  "$defs": {
    "GoogleRpcStatus": {
      "type": "object",
      "description": "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](https://github.com/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](https://cloud.google.com/apis/design/errors).",
      "properties": {
        "code": {
          "type": "integer",
          "description": "The status code, which should be an enum value of google.rpc.Code.",
          "format": "int32"
        },
        "details": {
          "type": "array",
          "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.",
          "items": {
            "type": "object",
            "additionalProperties": {
              "description": "Properties of the object. Contains field @type with type URL."
            }
          }
        },
        "message": {
          "type": "string",
          "description": "A developer-facing error message, which should be in English."
        }
      }
    }
  }
}