2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-02 09:58:25 +00:00
restic/vendor/google.golang.org/api/pubsub/v1beta1a/pubsub-api.json

808 lines
31 KiB
JSON
Raw Normal View History

2017-08-05 18:17:15 +00:00
{
"batchPath": "batch",
"revision": "20170918",
2017-08-05 18:17:15 +00:00
"documentationLink": "https://cloud.google.com/pubsub/docs",
2017-09-13 12:09:48 +00:00
"id": "pubsub:v1beta1a",
2017-08-05 18:17:15 +00:00
"title": "Google Cloud Pub/Sub API",
"discoveryVersion": "v1",
2017-09-13 12:09:48 +00:00
"ownerName": "Google",
2017-08-05 18:17:15 +00:00
"resources": {
2017-09-21 15:48:45 +00:00
"subscriptions": {
2017-08-05 18:17:15 +00:00
"methods": {
2017-09-21 15:48:45 +00:00
"modifyPushConfig": {
"response": {
"$ref": "Empty"
},
"parameterOrder": [],
"httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub"
],
"parameters": {},
2017-09-21 15:48:45 +00:00
"flatPath": "v1beta1a/subscriptions/modifyPushConfig",
"id": "pubsub.subscriptions.modifyPushConfig",
"path": "v1beta1a/subscriptions/modifyPushConfig",
"request": {
"$ref": "ModifyPushConfigRequest"
},
"description": "Modifies the \u003ccode\u003ePushConfig\u003c/code\u003e for a specified subscription.\nThis method can be used to suspend the flow of messages to an endpoint\nby clearing the \u003ccode\u003ePushConfig\u003c/code\u003e field in the request. Messages\nwill be accumulated for delivery even if no push configuration is\ndefined or while the configuration is modified."
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"pull": {
2017-08-05 18:17:15 +00:00
"httpMethod": "POST",
"parameterOrder": [],
"response": {
2017-09-21 15:48:45 +00:00
"$ref": "PullResponse"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub"
],
2017-09-13 12:09:48 +00:00
"parameters": {},
2017-09-21 15:48:45 +00:00
"flatPath": "v1beta1a/subscriptions/pull",
"path": "v1beta1a/subscriptions/pull",
"id": "pubsub.subscriptions.pull",
"request": {
"$ref": "PullRequest"
},
"description": "Pulls a single message from the server.\nIf return_immediately is true, and no messages are available in the\nsubscription, this method returns FAILED_PRECONDITION. The system is free\nto return an UNAVAILABLE error if no messages are available in a\nreasonable amount of time (to reduce system load)."
2017-09-21 15:48:45 +00:00
},
"delete": {
"path": "v1beta1a/subscriptions/{+subscription}",
"id": "pubsub.subscriptions.delete",
2017-09-21 15:48:45 +00:00
"description": "Deletes an existing subscription. All pending messages in the subscription\nare immediately dropped. Calls to Pull after deletion will return\nNOT_FOUND.",
"httpMethod": "DELETE",
2017-09-21 15:48:45 +00:00
"parameterOrder": [
"subscription"
],
"response": {
"$ref": "Empty"
},
2017-08-05 18:17:15 +00:00
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub"
],
2017-09-21 15:48:45 +00:00
"parameters": {
"subscription": {
"description": "The subscription to delete.",
"type": "string",
"required": true,
"pattern": "^.+$",
"location": "path"
2017-09-21 15:48:45 +00:00
}
},
"flatPath": "v1beta1a/subscriptions/{subscriptionsId}"
2017-08-05 18:17:15 +00:00
},
"list": {
"httpMethod": "GET",
"parameterOrder": [],
2017-08-05 18:17:15 +00:00
"response": {
2017-09-21 15:48:45 +00:00
"$ref": "ListSubscriptionsResponse"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub"
],
2017-08-05 18:17:15 +00:00
"parameters": {
"pageToken": {
"description": "The value obtained in the last \u003ccode\u003eListSubscriptionsResponse\u003c/code\u003e\nfor continuation.",
"type": "string",
"location": "query"
},
2017-08-05 18:17:15 +00:00
"maxResults": {
"type": "integer",
2017-08-05 18:17:15 +00:00
"location": "query",
"format": "int32",
"description": "Maximum number of subscriptions to return."
2017-08-05 18:17:15 +00:00
},
"query": {
"description": "A valid label query expression.",
2017-09-13 12:09:48 +00:00
"type": "string",
"location": "query"
2017-08-05 18:17:15 +00:00
}
},
2017-09-21 15:48:45 +00:00
"flatPath": "v1beta1a/subscriptions",
"path": "v1beta1a/subscriptions",
2017-09-21 15:48:45 +00:00
"id": "pubsub.subscriptions.list",
"description": "Lists matching subscriptions."
2017-09-21 15:48:45 +00:00
},
"create": {
"request": {
"$ref": "Subscription"
},
"description": "Creates a subscription on a given topic for a given subscriber.\nIf the subscription already exists, returns ALREADY_EXISTS.\nIf the corresponding topic doesn't exist, returns NOT_FOUND.\n\nIf the name is not provided in the request, the server will assign a random\nname for this subscription on the same project as the topic.",
2017-09-21 15:48:45 +00:00
"response": {
"$ref": "Subscription"
},
"parameterOrder": [],
"httpMethod": "POST",
2017-08-05 18:17:15 +00:00
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub"
],
"parameters": {},
2017-09-21 15:48:45 +00:00
"flatPath": "v1beta1a/subscriptions",
"id": "pubsub.subscriptions.create",
"path": "v1beta1a/subscriptions"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"acknowledge": {
"description": "Acknowledges a particular received message: the Pub/Sub system can remove\nthe given message from the subscription. Acknowledging a message whose\nAck deadline has expired may succeed, but the message could have been\nalready redelivered. Acknowledging a message more than once will not\nresult in an error. This is only used for messages received via pull.",
2017-09-13 12:09:48 +00:00
"request": {
2017-09-21 15:48:45 +00:00
"$ref": "AcknowledgeRequest"
2017-09-13 12:09:48 +00:00
},
2017-08-05 18:17:15 +00:00
"response": {
2017-09-21 15:48:45 +00:00
"$ref": "Empty"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"parameterOrder": [],
"httpMethod": "POST",
"parameters": {},
2017-08-05 18:17:15 +00:00
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub"
],
2017-09-21 15:48:45 +00:00
"flatPath": "v1beta1a/subscriptions/acknowledge",
"id": "pubsub.subscriptions.acknowledge",
"path": "v1beta1a/subscriptions/acknowledge"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"modifyAckDeadline": {
"response": {
"$ref": "Empty"
},
"parameterOrder": [],
"httpMethod": "POST",
"parameters": {},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub"
],
2017-09-21 15:48:45 +00:00
"flatPath": "v1beta1a/subscriptions/modifyAckDeadline",
"id": "pubsub.subscriptions.modifyAckDeadline",
"path": "v1beta1a/subscriptions/modifyAckDeadline",
"description": "Modifies the Ack deadline for a message received from a pull request.",
"request": {
"$ref": "ModifyAckDeadlineRequest"
}
},
"pullBatch": {
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub"
],
"parameters": {},
"flatPath": "v1beta1a/subscriptions/pullBatch",
"id": "pubsub.subscriptions.pullBatch",
"path": "v1beta1a/subscriptions/pullBatch",
"request": {
"$ref": "PullBatchRequest"
2017-09-21 15:48:45 +00:00
},
"description": "Pulls messages from the server. Returns an empty list if there are no\nmessages available in the backlog. The system is free to return UNAVAILABLE\nif there are too many pull requests outstanding for the given subscription.",
2017-08-05 18:17:15 +00:00
"response": {
"$ref": "PullBatchResponse"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"parameterOrder": [],
"httpMethod": "POST"
},
"get": {
"response": {
"$ref": "Subscription"
},
"parameterOrder": [
"subscription"
],
"httpMethod": "GET",
2017-08-05 18:17:15 +00:00
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub"
],
"parameters": {
"subscription": {
"pattern": "^.+$",
"location": "path",
"description": "The name of the subscription to get.",
"type": "string",
"required": true
}
},
"flatPath": "v1beta1a/subscriptions/{subscriptionsId}",
"id": "pubsub.subscriptions.get",
"path": "v1beta1a/subscriptions/{+subscription}",
"description": "Gets the configuration details of a subscription."
2017-09-21 15:48:45 +00:00
}
}
},
"topics": {
"methods": {
"get": {
"flatPath": "v1beta1a/topics/{topicsId}",
"path": "v1beta1a/topics/{+topic}",
"id": "pubsub.topics.get",
"description": "Gets the configuration of a topic. Since the topic only has the name\nattribute, this method is only useful to check the existence of a topic.\nIf other attributes are added in the future, they will be returned here.",
"httpMethod": "GET",
2017-09-21 15:48:45 +00:00
"parameterOrder": [
"topic"
2017-08-05 18:17:15 +00:00
],
"response": {
"$ref": "Topic"
},
2017-09-13 12:09:48 +00:00
"parameters": {
"topic": {
"location": "path",
2017-09-13 12:09:48 +00:00
"description": "The name of the topic to get.",
"type": "string",
"required": true,
"pattern": "^.+$"
2017-09-13 12:09:48 +00:00
}
},
2017-09-21 15:48:45 +00:00
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub"
]
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"publish": {
2017-08-05 18:17:15 +00:00
"response": {
"$ref": "Empty"
},
"parameterOrder": [],
"httpMethod": "POST",
2017-09-13 12:09:48 +00:00
"parameters": {},
2017-08-05 18:17:15 +00:00
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub"
],
2017-09-13 12:09:48 +00:00
"flatPath": "v1beta1a/topics/publish",
"id": "pubsub.topics.publish",
2017-09-13 12:09:48 +00:00
"path": "v1beta1a/topics/publish",
"description": "Adds a message to the topic. Returns NOT_FOUND if the topic does not\nexist.",
"request": {
"$ref": "PublishRequest"
}
2017-09-21 15:48:45 +00:00
},
"delete": {
2017-09-13 12:09:48 +00:00
"response": {
2017-09-21 15:48:45 +00:00
"$ref": "Empty"
2017-09-13 12:09:48 +00:00
},
2017-09-21 15:48:45 +00:00
"parameterOrder": [
"topic"
2017-08-05 18:17:15 +00:00
],
2017-09-21 15:48:45 +00:00
"httpMethod": "DELETE",
2017-08-05 18:17:15 +00:00
"parameters": {
2017-09-21 15:48:45 +00:00
"topic": {
2017-08-05 18:17:15 +00:00
"type": "string",
"required": true,
"pattern": "^.+$",
"location": "path",
"description": "Name of the topic to delete."
2017-08-05 18:17:15 +00:00
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub"
],
2017-09-21 15:48:45 +00:00
"flatPath": "v1beta1a/topics/{topicsId}",
"id": "pubsub.topics.delete",
"path": "v1beta1a/topics/{+topic}",
"description": "Deletes the topic with the given name. Returns NOT_FOUND if the topic does\nnot exist. After a topic is deleted, a new topic may be created with the\nsame name."
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"publishBatch": {
"description": "Adds one or more messages to the topic. Returns NOT_FOUND if the topic does\nnot exist.",
2017-08-05 18:17:15 +00:00
"request": {
2017-09-21 15:48:45 +00:00
"$ref": "PublishBatchRequest"
2017-08-05 18:17:15 +00:00
},
"httpMethod": "POST",
2017-09-21 15:48:45 +00:00
"parameterOrder": [],
2017-09-13 12:09:48 +00:00
"response": {
2017-09-21 15:48:45 +00:00
"$ref": "PublishBatchResponse"
2017-09-13 12:09:48 +00:00
},
2017-09-21 15:48:45 +00:00
"parameters": {},
2017-09-13 12:09:48 +00:00
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub"
],
2017-09-21 15:48:45 +00:00
"flatPath": "v1beta1a/topics/publishBatch",
"path": "v1beta1a/topics/publishBatch",
"id": "pubsub.topics.publishBatch"
2017-09-13 12:09:48 +00:00
},
2017-08-05 18:17:15 +00:00
"list": {
2017-09-21 15:48:45 +00:00
"description": "Lists matching topics.",
2017-08-05 18:17:15 +00:00
"response": {
2017-09-21 15:48:45 +00:00
"$ref": "ListTopicsResponse"
2017-08-05 18:17:15 +00:00
},
"parameterOrder": [],
"httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub"
],
2017-08-05 18:17:15 +00:00
"parameters": {
"pageToken": {
"location": "query",
"description": "The value obtained in the last \u003ccode\u003eListTopicsResponse\u003c/code\u003e\nfor continuation.",
"type": "string"
},
2017-08-05 18:17:15 +00:00
"maxResults": {
"format": "int32",
2017-09-21 15:48:45 +00:00
"description": "Maximum number of topics to return.",
2017-09-13 12:09:48 +00:00
"type": "integer",
"location": "query"
2017-08-05 18:17:15 +00:00
},
"query": {
2017-09-21 15:48:45 +00:00
"location": "query",
2017-08-05 18:17:15 +00:00
"description": "A valid label query expression.",
2017-09-21 15:48:45 +00:00
"type": "string"
2017-08-05 18:17:15 +00:00
}
},
"flatPath": "v1beta1a/topics",
"id": "pubsub.topics.list",
"path": "v1beta1a/topics"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"create": {
"flatPath": "v1beta1a/topics",
"id": "pubsub.topics.create",
"path": "v1beta1a/topics",
2017-08-05 18:17:15 +00:00
"request": {
2017-09-21 15:48:45 +00:00
"$ref": "Topic"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"description": "Creates the given topic with the given name.",
2017-08-05 18:17:15 +00:00
"response": {
2017-09-21 15:48:45 +00:00
"$ref": "Topic"
2017-08-05 18:17:15 +00:00
},
"parameterOrder": [],
"httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub"
],
"parameters": {}
2017-08-05 18:17:15 +00:00
}
}
}
},
"parameters": {
"bearer_token": {
"description": "OAuth bearer token.",
"type": "string",
"location": "query"
},
"oauth_token": {
2017-08-05 18:17:15 +00:00
"location": "query",
"description": "OAuth 2.0 token for the current user.",
2017-09-13 12:09:48 +00:00
"type": "string"
2017-08-05 18:17:15 +00:00
},
"upload_protocol": {
2017-08-05 18:17:15 +00:00
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"prettyPrint": {
"location": "query",
"description": "Returns response with indentations and line breaks.",
"default": "true",
"type": "boolean"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"type": "string",
"location": "query"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string",
"location": "query"
},
2017-08-05 18:17:15 +00:00
"$.xgafv": {
"description": "V1 error format.",
"type": "string",
2017-09-13 12:09:48 +00:00
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
2017-08-05 18:17:15 +00:00
"enum": [
"1",
"2"
]
2017-09-13 12:09:48 +00:00
},
"callback": {
"location": "query",
"description": "JSONP",
"type": "string"
},
"alt": {
2017-08-05 18:17:15 +00:00
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"description": "Data format for response.",
"default": "json",
"enum": [
"json",
"media",
"proto"
],
"type": "string"
2017-09-13 12:09:48 +00:00
},
"key": {
"type": "string",
2017-09-21 15:48:45 +00:00
"location": "query",
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token."
2017-09-13 12:09:48 +00:00
},
"access_token": {
"description": "OAuth access token.",
2017-09-21 15:48:45 +00:00
"type": "string",
"location": "query"
2017-09-13 12:09:48 +00:00
},
"quotaUser": {
"location": "query",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string"
},
"pp": {
"description": "Pretty-print response.",
"default": "true",
"type": "boolean",
2017-08-05 18:17:15 +00:00
"location": "query"
}
},
"schemas": {
"PublishBatchResponse": {
"properties": {
"messageIds": {
"description": "The server-assigned ID of each published message, in the same order as\nthe messages in the request. IDs are guaranteed to be unique within\nthe topic.",
"items": {
"type": "string"
},
"type": "array"
}
},
"id": "PublishBatchResponse",
"description": "Response for the PublishBatch method.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
"Subscription": {
"id": "Subscription",
"description": "A subscription resource.",
"type": "object",
"properties": {
"ackDeadlineSeconds": {
"format": "int32",
"description": "For either push or pull delivery, the value is the maximum time after a\nsubscriber receives a message before the subscriber should acknowledge or\nNack the message. If the Ack deadline for a message passes without an\nAck or a Nack, the Pub/Sub system will eventually redeliver the message.\nIf a subscriber acknowledges after the deadline, the Pub/Sub system may\naccept the Ack, but it is possible that the message has been already\ndelivered again. Multiple Acks to the message are allowed and will\nsucceed.\n\nFor push delivery, this value is used to set the request timeout for\nthe call to the push endpoint.\n\nFor pull delivery, this value is used as the initial value for the Ack\ndeadline. It may be overridden for each message using its corresponding\nack_id with \u003ccode\u003eModifyAckDeadline\u003c/code\u003e.\nWhile a message is outstanding (i.e. it has been delivered to a pull\nsubscriber and the subscriber has not yet Acked or Nacked), the Pub/Sub\nsystem will not deliver that message to another pull subscriber\n(on a best-effort basis).",
"type": "integer"
},
"name": {
"type": "string",
"description": "Name of the subscription."
},
"topic": {
"description": "The name of the topic from which this subscription is receiving messages.",
"type": "string"
},
"pushConfig": {
"$ref": "PushConfig",
"description": "If push delivery is used with this subscription, this field is\nused to configure it."
}
}
2017-08-05 18:17:15 +00:00
},
"Topic": {
"description": "A topic resource.",
"type": "object",
"properties": {
"name": {
"description": "Name of the topic.",
"type": "string"
}
},
"id": "Topic"
2017-09-21 15:48:45 +00:00
},
"Label": {
"type": "object",
"properties": {
"strValue": {
"description": "A string value.",
"type": "string"
},
"numValue": {
"type": "string",
"format": "int64",
"description": "An integer value."
},
"key": {
"description": "The key of a label is a syntactically valid URL (as per RFC 1738) with\nthe \"scheme\" and initial slashes omitted and with the additional\nrestrictions noted below. Each key should be globally unique. The\n\"host\" portion is called the \"namespace\" and is not necessarily\nresolvable to a network endpoint. Instead, the namespace indicates what\nsystem or entity defines the semantics of the label. Namespaces do not\nrestrict the set of objects to which a label may be associated.\n\nKeys are defined by the following grammar:\n\n key = hostname \"/\" kpath\n kpath = ksegment *[ \"/\" ksegment ]\n ksegment = alphadigit | *[ alphadigit | \"-\" | \"_\" | \".\" ]\n\nwhere \"hostname\" and \"alphadigit\" are defined as in RFC 1738.\n\nExample key:\n spanner.google.com/universe",
"type": "string"
}
},
"id": "Label",
"description": "A key-value pair applied to a given object."
2017-08-05 18:17:15 +00:00
},
"ModifyAckDeadlineRequest": {
"id": "ModifyAckDeadlineRequest",
2017-08-05 18:17:15 +00:00
"description": "Request for the ModifyAckDeadline method.",
"type": "object",
"properties": {
"ackIds": {
"description": "List of acknowledgment IDs. Either this field or ack_id\nshould be populated, not both.",
"items": {
"type": "string"
},
"type": "array"
},
2017-08-05 18:17:15 +00:00
"subscription": {
"description": "Next Index: 5\nThe name of the subscription from which messages are being pulled.",
"type": "string"
},
"ackId": {
"description": "The acknowledgment ID. Either this or ack_ids must be populated,\nnot both.",
"type": "string"
},
"ackDeadlineSeconds": {
"format": "int32",
"description": "The new ack deadline with respect to the time this request was sent to the\nPub/Sub system. Must be \u003e= 0. For example, if the value is 10, the new ack\ndeadline will expire 10 seconds after the ModifyAckDeadline call was made.\nSpecifying zero may immediately make the message available for another pull\nrequest.",
"type": "integer"
}
}
2017-08-05 18:17:15 +00:00
},
"PullBatchRequest": {
"id": "PullBatchRequest",
2017-08-05 18:17:15 +00:00
"description": "Request for the PullBatch method.",
"type": "object",
"properties": {
"subscription": {
"description": "The subscription from which messages should be pulled.",
"type": "string"
},
"returnImmediately": {
"description": "If this is specified as true the system will respond immediately even if\nit is not able to return a message in the Pull response. Otherwise the\nsystem is allowed to wait until at least one message is available rather\nthan returning no messages. The client may cancel the request if it does\nnot wish to wait any longer for the response.",
"type": "boolean"
2017-09-13 12:09:48 +00:00
},
2017-09-21 15:48:45 +00:00
"maxEvents": {
"format": "int32",
"description": "The maximum number of PubsubEvents returned for this request. The Pub/Sub\nsystem may return fewer than the number of events specified.",
"type": "integer"
2017-09-13 12:09:48 +00:00
}
}
2017-09-13 12:09:48 +00:00
},
2017-08-05 18:17:15 +00:00
"PubsubMessage": {
"properties": {
"messageId": {
"type": "string",
"description": "ID of this message assigned by the server at publication time. Guaranteed\nto be unique within the topic. This value may be read by a subscriber\nthat receives a PubsubMessage via a Pull call or a push delivery. It must\nnot be populated by a publisher in a Publish call."
2017-08-05 18:17:15 +00:00
},
"publishTime": {
"format": "int64",
"description": "The time at which the message was published.\nThe time is milliseconds since the UNIX epoch.",
"type": "string"
},
"label": {
"description": "Optional list of labels for this message. Keys in this collection must\nbe unique.",
"items": {
"$ref": "Label"
},
"type": "array"
},
"data": {
"format": "byte",
"description": "The message payload.",
"type": "string"
2017-08-05 18:17:15 +00:00
}
},
"id": "PubsubMessage",
"description": "A message data and its labels.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"ModifyPushConfigRequest": {
2017-08-05 18:17:15 +00:00
"properties": {
2017-09-21 15:48:45 +00:00
"pushConfig": {
"$ref": "PushConfig",
"description": "An empty \u003ccode\u003epush_config\u003c/code\u003e indicates that the Pub/Sub system should\npause pushing messages from the given subscription."
},
"subscription": {
"description": "The name of the subscription.",
"type": "string"
2017-08-05 18:17:15 +00:00
}
},
"id": "ModifyPushConfigRequest",
"description": "Request for the ModifyPushConfig method.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"ListTopicsResponse": {
"description": "Response for the ListTopics method.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
"nextPageToken": {
"description": "If not empty, indicates that there are more topics that match the request,\nand this value should be passed to the next \u003ccode\u003eListTopicsRequest\u003c/code\u003e\nto continue.",
"type": "string"
},
2017-09-21 15:48:45 +00:00
"topic": {
2017-08-05 18:17:15 +00:00
"items": {
2017-09-21 15:48:45 +00:00
"$ref": "Topic"
2017-08-05 18:17:15 +00:00
},
"type": "array",
"description": "The resulting topics."
2017-08-05 18:17:15 +00:00
}
},
2017-09-21 15:48:45 +00:00
"id": "ListTopicsResponse"
2017-08-05 18:17:15 +00:00
},
"PublishBatchRequest": {
"description": "Request for the PublishBatch method.",
"type": "object",
"properties": {
"messages": {
"description": "The messages to publish.",
"items": {
"$ref": "PubsubMessage"
},
"type": "array"
},
"topic": {
"description": "The messages in the request will be published on this topic.",
"type": "string"
2017-08-05 18:17:15 +00:00
}
},
"id": "PublishBatchRequest"
},
"PullBatchResponse": {
"description": "Response for the PullBatch method.",
"type": "object",
"properties": {
"pullResponses": {
"description": "Received Pub/Sub messages or status events. The Pub/Sub system will return\nzero messages if there are no more messages available in the backlog. The\nPub/Sub system may return fewer than the max_events requested even if\nthere are more messages available in the backlog.",
"items": {
"$ref": "PullResponse"
},
"type": "array"
}
},
"id": "PullBatchResponse"
},
2017-09-21 15:48:45 +00:00
"AcknowledgeRequest": {
"description": "Request for the Acknowledge method.",
2017-08-05 18:17:15 +00:00
"type": "object",
2017-09-13 12:09:48 +00:00
"properties": {
2017-09-21 15:48:45 +00:00
"subscription": {
"description": "The subscription whose message is being acknowledged.",
"type": "string"
},
"ackId": {
"description": "The acknowledgment ID for the message being acknowledged. This was\nreturned by the Pub/Sub system in the Pull response.",
2017-09-13 12:09:48 +00:00
"items": {
2017-09-21 15:48:45 +00:00
"type": "string"
2017-09-13 12:09:48 +00:00
},
"type": "array"
}
},
2017-09-21 15:48:45 +00:00
"id": "AcknowledgeRequest"
},
"Empty": {
"properties": {},
"id": "Empty",
"description": "An empty message that you can re-use to avoid defining duplicated empty\nmessages in your project. A typical example is to use it as argument or the\nreturn value of a service API. For instance:\n\n service Foo {\n rpc Bar (proto2.Empty) returns (proto2.Empty) { };\n };\n\nBEGIN GOOGLE-INTERNAL\nThe difference between this one and net/rpc/empty-message.proto is that\n1) The generated message here is in proto2 C++ API.\n2) The proto2.Empty has minimum dependencies\n (no message_set or net/rpc dependencies)\nEND GOOGLE-INTERNAL",
"type": "object"
2017-08-05 18:17:15 +00:00
},
"PullResponse": {
"description": "Either a \u003ccode\u003ePubsubMessage\u003c/code\u003e or a truncation event. One of these two\nmust be populated.",
"type": "object",
"properties": {
"ackId": {
"description": "This ID must be used to acknowledge the received event or message.",
"type": "string"
},
"pubsubEvent": {
"$ref": "PubsubEvent",
"description": "A pubsub message or truncation event."
2017-08-05 18:17:15 +00:00
}
},
"id": "PullResponse"
},
"PushConfig": {
"type": "object",
"properties": {
"pushEndpoint": {
"type": "string",
"description": "A URL locating the endpoint to which messages should be pushed.\nFor example, a Webhook endpoint might use \"https://example.com/push\"."
2017-08-05 18:17:15 +00:00
}
},
"id": "PushConfig",
"description": "Configuration for a push delivery endpoint."
2017-09-13 12:09:48 +00:00
},
"PullRequest": {
"properties": {
"subscription": {
"description": "The subscription from which a message should be pulled.",
"type": "string"
},
"returnImmediately": {
"description": "If this is specified as true the system will respond immediately even if\nit is not able to return a message in the Pull response. Otherwise the\nsystem is allowed to wait until at least one message is available rather\nthan returning FAILED_PRECONDITION. The client may cancel the request if\nit does not wish to wait any longer for the response.",
"type": "boolean"
}
},
"id": "PullRequest",
"description": "Request for the Pull method.",
"type": "object"
2017-09-13 12:09:48 +00:00
},
"PubsubEvent": {
"description": "An event indicating a received message or truncation event.",
"type": "object",
"properties": {
"deleted": {
"description": "Indicates that this subscription has been deleted. (Note that pull\nsubscribers will always receive NOT_FOUND in response in their pull\nrequest on the subscription, rather than seeing this boolean.)",
"type": "boolean"
},
"truncated": {
"description": "Indicates that this subscription has been truncated.",
"type": "boolean"
},
"message": {
2017-09-21 15:48:45 +00:00
"$ref": "PubsubMessage",
"description": "A received message."
2017-09-13 12:09:48 +00:00
},
"subscription": {
"type": "string",
"description": "The subscription that received the event."
2017-09-13 12:09:48 +00:00
}
},
"id": "PubsubEvent"
},
2017-09-21 15:48:45 +00:00
"ListSubscriptionsResponse": {
"description": "Response for the ListSubscriptions method.",
"type": "object",
"properties": {
"subscription": {
"description": "The subscriptions that match the request.",
"items": {
"$ref": "Subscription"
},
"type": "array"
},
"nextPageToken": {
"description": "If not empty, indicates that there are more subscriptions that match the\nrequest and this value should be passed to the next\n\u003ccode\u003eListSubscriptionsRequest\u003c/code\u003e to continue.",
"type": "string"
}
},
"id": "ListSubscriptionsResponse"
},
2017-09-13 12:09:48 +00:00
"PublishRequest": {
"description": "Request for the Publish method.",
"type": "object",
"properties": {
"topic": {
"description": "The message in the request will be published on this topic.",
"type": "string"
},
"message": {
"description": "The message to publish.",
"$ref": "PubsubMessage"
}
},
"id": "PublishRequest"
2017-08-05 18:17:15 +00:00
}
},
"protocol": "rest",
"icons": {
"x32": "http://www.google.com/images/icons/product/search-32.gif",
"x16": "http://www.google.com/images/icons/product/search-16.gif"
2017-09-21 15:48:45 +00:00
},
"version": "v1beta1a",
"baseUrl": "https://pubsub.googleapis.com/",
"canonicalName": "Pubsub",
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
},
"https://www.googleapis.com/auth/pubsub": {
"description": "View and manage Pub/Sub topics and subscriptions"
2017-09-21 15:48:45 +00:00
}
}
}
2017-08-05 18:17:15 +00:00
},
2017-09-21 15:48:45 +00:00
"kind": "discovery#restDescription",
"description": "Provides reliable, many-to-many, asynchronous messaging between applications.\n",
"servicePath": "",
"rootUrl": "https://pubsub.googleapis.com/",
"basePath": "",
"ownerDomain": "google.com",
"name": "pubsub"
2017-08-05 18:17:15 +00:00
}