OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
5 "https://www.googleapis.com/auth/cloud-platform": { | 5 "https://www.googleapis.com/auth/cloud-platform": { |
6 "description": "View and manage your data across Google Clou
d Platform services" | 6 "description": "View and manage your data across Google Clou
d Platform services" |
7 }, | 7 }, |
8 "https://www.googleapis.com/auth/pubsub": { | 8 "https://www.googleapis.com/auth/pubsub": { |
9 "description": "View and manage Pub/Sub topics and subscript
ions" | 9 "description": "View and manage Pub/Sub topics and subscript
ions" |
10 } | 10 } |
11 } | 11 } |
12 } | 12 } |
13 }, | 13 }, |
14 "basePath": "", | 14 "basePath": "", |
15 "baseUrl": "https://pubsub.googleapis.com/", | 15 "baseUrl": "https://pubsub.googleapis.com/", |
16 "batchPath": "batch", | 16 "batchPath": "batch", |
17 "description": "Provides reliable, many-to-many, asynchronous messaging betw
een applications.", | 17 "description": "Provides reliable, many-to-many, asynchronous messaging betw
een applications.", |
18 "discoveryVersion": "v1", | 18 "discoveryVersion": "v1", |
19 "documentationLink": "https://cloud.google.com/pubsub/docs", | 19 "documentationLink": "https://cloud.google.com/pubsub/docs", |
20 "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/jJarxdUjZcANpaMjt3kLHFRtpJA\"", | 20 "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/25kPzB95VUjGve_vnhDqYdYojac\"", |
21 "icons": { | 21 "icons": { |
22 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 22 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
23 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 23 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
24 }, | 24 }, |
25 "id": "pubsub:v1beta2", | 25 "id": "pubsub:v1beta2", |
26 "kind": "discovery#restDescription", | 26 "kind": "discovery#restDescription", |
27 "name": "pubsub", | 27 "name": "pubsub", |
28 "ownerDomain": "google.com", | 28 "ownerDomain": "google.com", |
29 "ownerName": "Google", | 29 "ownerName": "Google", |
30 "parameters": { | 30 "parameters": { |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 }, | 195 }, |
196 "create": { | 196 "create": { |
197 "description": "Creates the given topic with the giv
en name.", | 197 "description": "Creates the given topic with the giv
en name.", |
198 "httpMethod": "PUT", | 198 "httpMethod": "PUT", |
199 "id": "pubsub.projects.topics.create", | 199 "id": "pubsub.projects.topics.create", |
200 "parameterOrder": [ | 200 "parameterOrder": [ |
201 "name" | 201 "name" |
202 ], | 202 ], |
203 "parameters": { | 203 "parameters": { |
204 "name": { | 204 "name": { |
205 "description": "The name of the topic. It mu
st have the format \"projects/{project}/topics/{topic}\" for Google Cloud Pub/Su
b API v1 and v1beta2. {topic} must start with a letter, and contain only letters
([A-Za-z]), numbers ([0-9], dashes (-), underscores (_), periods (.), tildes (~
), plus (+) or percent signs (%). It must be between 3 and 255 characters in len
gth, and it must not start with \"goog\".", | 205 "description": "The name of the topic. It mu
st have the format `\"projects/{project}/topics/{topic}\"`. `{topic}` must start
with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes
(`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent si
gns (`%`). It must be between 3 and 255 characters in length, and it must not st
art with `\"goog\"`.", |
206 "location": "path", | 206 "location": "path", |
207 "pattern": "^projects/[^/]*/topics/[^/]*$", | 207 "pattern": "^projects/[^/]*/topics/[^/]*$", |
208 "required": true, | 208 "required": true, |
209 "type": "string" | 209 "type": "string" |
210 } | 210 } |
211 }, | 211 }, |
212 "path": "v1beta2/{+name}", | 212 "path": "v1beta2/{+name}", |
213 "request": { | 213 "request": { |
214 "$ref": "Topic" | 214 "$ref": "Topic" |
215 }, | 215 }, |
216 "response": { | 216 "response": { |
217 "$ref": "Topic" | 217 "$ref": "Topic" |
218 }, | 218 }, |
219 "scopes": [ | 219 "scopes": [ |
220 "https://www.googleapis.com/auth/cloud-platform"
, | 220 "https://www.googleapis.com/auth/cloud-platform"
, |
221 "https://www.googleapis.com/auth/pubsub" | 221 "https://www.googleapis.com/auth/pubsub" |
222 ] | 222 ] |
223 }, | 223 }, |
224 "publish": { | 224 "publish": { |
225 "description": "Adds one or more messages to the top
ic. Returns NOT_FOUND if the topic does not exist.", | 225 "description": "Adds one or more messages to the top
ic. Returns NOT_FOUND if the topic does not exist. The message payload must not
be empty; it must contain either a non-empty data field, or at least one attribu
te.", |
226 "httpMethod": "POST", | 226 "httpMethod": "POST", |
227 "id": "pubsub.projects.topics.publish", | 227 "id": "pubsub.projects.topics.publish", |
228 "parameterOrder": [ | 228 "parameterOrder": [ |
229 "topic" | 229 "topic" |
230 ], | 230 ], |
231 "parameters": { | 231 "parameters": { |
232 "topic": { | 232 "topic": { |
233 "description": "The messages in the request
will be published on this topic.", | 233 "description": "The messages in the request
will be published on this topic.", |
234 "location": "path", | 234 "location": "path", |
235 "pattern": "^projects/[^/]*/topics/[^/]*$", | 235 "pattern": "^projects/[^/]*/topics/[^/]*$", |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 }, | 464 }, |
465 "create": { | 465 "create": { |
466 "description": "Creates a subscription to a given to
pic for a given subscriber. If the subscription already exists, returns ALREADY_
EXISTS. If the corresponding topic doesn't exist, returns NOT_FOUND. If the name
is not provided in the request, the server will assign a random name for this s
ubscription on the same project as the topic.", | 466 "description": "Creates a subscription to a given to
pic for a given subscriber. If the subscription already exists, returns ALREADY_
EXISTS. If the corresponding topic doesn't exist, returns NOT_FOUND. If the name
is not provided in the request, the server will assign a random name for this s
ubscription on the same project as the topic.", |
467 "httpMethod": "PUT", | 467 "httpMethod": "PUT", |
468 "id": "pubsub.projects.subscriptions.create", | 468 "id": "pubsub.projects.subscriptions.create", |
469 "parameterOrder": [ | 469 "parameterOrder": [ |
470 "name" | 470 "name" |
471 ], | 471 ], |
472 "parameters": { | 472 "parameters": { |
473 "name": { | 473 "name": { |
474 "description": "The name of the subscription
. It must have the format \"projects/{project}/subscriptions/{subscription}\" fo
r Google Cloud Pub/Sub API v1 and v1beta2. {subscription} must start with a lett
er, and contain only letters ([A-Za-z]), numbers ([0-9], dashes (-), underscores
(_), periods (.), tildes (~), plus (+) or percent signs (%). It must be between
3 and 255 characters in length, and it must not start with \"goog\".", | 474 "description": "The name of the subscription
. It must have the format `\"projects/{project}/subscriptions/{subscription}\"`.
`{subscription}` must start with a letter, and contain only letters (`[A-Za-z]`
), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~
`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters i
n length, and it must not start with `\"goog\"`.", |
475 "location": "path", | 475 "location": "path", |
476 "pattern": "^projects/[^/]*/subscriptions/[^
/]*$", | 476 "pattern": "^projects/[^/]*/subscriptions/[^
/]*$", |
477 "required": true, | 477 "required": true, |
478 "type": "string" | 478 "type": "string" |
479 } | 479 } |
480 }, | 480 }, |
481 "path": "v1beta2/{+name}", | 481 "path": "v1beta2/{+name}", |
482 "request": { | 482 "request": { |
483 "$ref": "Subscription" | 483 "$ref": "Subscription" |
484 }, | 484 }, |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 "scopes": [ | 686 "scopes": [ |
687 "https://www.googleapis.com/auth/cloud-platform"
, | 687 "https://www.googleapis.com/auth/cloud-platform"
, |
688 "https://www.googleapis.com/auth/pubsub" | 688 "https://www.googleapis.com/auth/pubsub" |
689 ] | 689 ] |
690 } | 690 } |
691 } | 691 } |
692 } | 692 } |
693 } | 693 } |
694 } | 694 } |
695 }, | 695 }, |
696 "revision": "20150604", | 696 "revision": "20150427", |
697 "rootUrl": "https://pubsub.googleapis.com/", | 697 "rootUrl": "https://pubsub.googleapis.com/", |
698 "schemas": { | 698 "schemas": { |
699 "SetIamPolicyRequest": { | 699 "SetIamPolicyRequest": { |
700 "description": "Request message for `SetIamPolicy` method.", | 700 "description": "Request message for `SetIamPolicy` method.", |
701 "id": "SetIamPolicyRequest", | 701 "id": "SetIamPolicyRequest", |
702 "properties": { | 702 "properties": { |
703 "policy": { | 703 "policy": { |
704 "$ref": "Policy", | 704 "$ref": "Policy", |
705 "description": "REQUIRED: The complete policy to be applied
to the 'resource'. The size of the policy is limited to a few 10s of KB. An empt
y policy is in general a valid policy but certain services (like Projects) might
reject them." | 705 "description": "REQUIRED: The complete policy to be applied
to the 'resource'. The size of the policy is limited to a few 10s of KB. An empt
y policy is in general a valid policy but certain services (like Projects) might
reject them." |
706 } | 706 } |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
937 "type": "array" | 937 "type": "array" |
938 } | 938 } |
939 }, | 939 }, |
940 "type": "object" | 940 "type": "object" |
941 }, | 941 }, |
942 "Topic": { | 942 "Topic": { |
943 "description": "A topic resource.", | 943 "description": "A topic resource.", |
944 "id": "Topic", | 944 "id": "Topic", |
945 "properties": { | 945 "properties": { |
946 "name": { | 946 "name": { |
947 "description": "The name of the topic. It must have the form
at \"projects/{project}/topics/{topic}\" for Google Cloud Pub/Sub API v1 and v1b
eta2. {topic} must start with a letter, and contain only letters ([A-Za-z]), num
bers ([0-9], dashes (-), underscores (_), periods (.), tildes (~), plus (+) or p
ercent signs (%). It must be between 3 and 255 characters in length, and it must
not start with \"goog\".", | 947 "description": "The name of the topic. It must have the form
at `\"projects/{project}/topics/{topic}\"`. `{topic}` must start with a letter,
and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), undersco
res (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It mu
st be between 3 and 255 characters in length, and it must not start with `\"goog
\"`.", |
948 "type": "string" | 948 "type": "string" |
949 } | 949 } |
950 }, | 950 }, |
951 "type": "object" | 951 "type": "object" |
952 }, | 952 }, |
953 "PublishRequest": { | 953 "PublishRequest": { |
954 "description": "Request for the Publish method.", | 954 "description": "Request for the Publish method.", |
955 "id": "PublishRequest", | 955 "id": "PublishRequest", |
956 "properties": { | 956 "properties": { |
957 "messages": { | 957 "messages": { |
958 "description": "The messages to publish.", | 958 "description": "The messages to publish.", |
959 "items": { | 959 "items": { |
960 "$ref": "PubsubMessage" | 960 "$ref": "PubsubMessage" |
961 }, | 961 }, |
962 "type": "array" | 962 "type": "array" |
963 } | 963 } |
964 }, | 964 }, |
965 "type": "object" | 965 "type": "object" |
966 }, | 966 }, |
967 "PubsubMessage": { | 967 "PubsubMessage": { |
968 "description": "A message data and its attributes.", | 968 "description": "A message data and its attributes. The message paylo
ad must not be empty; it must contain either a non-empty data field, or at least
one attribute.", |
969 "id": "PubsubMessage", | 969 "id": "PubsubMessage", |
970 "properties": { | 970 "properties": { |
971 "data": { | 971 "data": { |
972 "description": "The message payload. For JSON requests, the
value of this field must be base64-encoded.", | 972 "description": "The message payload. For JSON requests, the
value of this field must be base64-encoded.", |
973 "format": "byte", | 973 "format": "byte", |
974 "type": "string" | 974 "type": "string" |
975 }, | 975 }, |
976 "attributes": { | 976 "attributes": { |
977 "additionalProperties": { | 977 "additionalProperties": { |
978 "type": "string" | 978 "type": "string" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 "Empty": { | 1040 "Empty": { |
1041 "description": "A generic empty message that you can re-use to avoid
defining duplicated empty messages in your APIs. A typical example is to use it
as the request or the response type of an API method. For instance: service Foo
{ rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON re
presentation for `Empty` is empty JSON object `{}`.", | 1041 "description": "A generic empty message that you can re-use to avoid
defining duplicated empty messages in your APIs. A typical example is to use it
as the request or the response type of an API method. For instance: service Foo
{ rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON re
presentation for `Empty` is empty JSON object `{}`.", |
1042 "id": "Empty", | 1042 "id": "Empty", |
1043 "type": "object" | 1043 "type": "object" |
1044 }, | 1044 }, |
1045 "Subscription": { | 1045 "Subscription": { |
1046 "description": "A subscription resource.", | 1046 "description": "A subscription resource.", |
1047 "id": "Subscription", | 1047 "id": "Subscription", |
1048 "properties": { | 1048 "properties": { |
1049 "name": { | 1049 "name": { |
1050 "description": "The name of the subscription. It must have t
he format \"projects/{project}/subscriptions/{subscription}\" for Google Cloud P
ub/Sub API v1 and v1beta2. {subscription} must start with a letter, and contain
only letters ([A-Za-z]), numbers ([0-9], dashes (-), underscores (_), periods (.
), tildes (~), plus (+) or percent signs (%). It must be between 3 and 255 chara
cters in length, and it must not start with \"goog\".", | 1050 "description": "The name of the subscription. It must have t
he format `\"projects/{project}/subscriptions/{subscription}\"`. `{subscription}
` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-
9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) o
r percent signs (`%`). It must be between 3 and 255 characters in length, and it
must not start with `\"goog\"`.", |
1051 "type": "string" | 1051 "type": "string" |
1052 }, | 1052 }, |
1053 "topic": { | 1053 "topic": { |
1054 "description": "The name of the topic from which this subscr
iption is receiving messages. The value of this field will be `_deleted-topic_`
if the topic has been deleted.", | 1054 "description": "The name of the topic from which this subscr
iption is receiving messages. The value of this field will be `_deleted-topic_`
if the topic has been deleted.", |
1055 "type": "string" | 1055 "type": "string" |
1056 }, | 1056 }, |
1057 "pushConfig": { | 1057 "pushConfig": { |
1058 "$ref": "PushConfig", | 1058 "$ref": "PushConfig", |
1059 "description": "If push delivery is used with this subscript
ion, this field is used to configure it. An empty pushConfig signifies that the
subscriber will pull and ack messages using API methods." | 1059 "description": "If push delivery is used with this subscript
ion, this field is used to configure it. An empty pushConfig signifies that the
subscriber will pull and ack messages using API methods." |
1060 }, | 1060 }, |
1061 "ackDeadlineSeconds": { | 1061 "ackDeadlineSeconds": { |
1062 "description": "This value is the maximum time after a subsc
riber receives a message before the subscriber should acknowledge the message. A
fter message delivery but before the ack deadline expires and before the message
is acknowledged, it is an outstanding message and will not be delivered again d
uring that time (on a best-effort basis). For pull delivery this value is used a
s the initial value for the ack deadline. It may be overridden for each message
using its corresponding ack_id by calling ModifyAckDeadline. For push delivery,
this value is also used to set the request timeout for the call to the push endp
oint. If the subscriber never acknowledges the message, the Pub/Sub system will
eventually redeliver the message. If this parameter is not set, the default valu
e of 60 seconds is used.", | 1062 "description": "This value is the maximum time after a subsc
riber receives a message before the subscriber should acknowledge the message. A
fter message delivery but before the ack deadline expires and before the message
is acknowledged, it is an outstanding message and will not be delivered again d
uring that time (on a best-effort basis). For pull delivery this value is used a
s the initial value for the ack deadline. To override this value for a given mes
sage, call ModifyAckDeadline with the corresponding ack_id. For push delivery, t
his value is also used to set the request timeout for the call to the push endpo
int. If the subscriber never acknowledges the message, the Pub/Sub system will e
ventually redeliver the message. If this parameter is not set, the default value
of 10 seconds is used.", |
1063 "format": "int32", | 1063 "format": "int32", |
1064 "type": "integer" | 1064 "type": "integer" |
1065 } | 1065 } |
1066 }, | 1066 }, |
1067 "type": "object" | 1067 "type": "object" |
1068 }, | 1068 }, |
1069 "PushConfig": { | 1069 "PushConfig": { |
1070 "description": "Configuration for a push delivery endpoint.", | 1070 "description": "Configuration for a push delivery endpoint.", |
1071 "id": "PushConfig", | 1071 "id": "PushConfig", |
1072 "properties": { | 1072 "properties": { |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1193 "description": "The push configuration for future deliveries
. An empty pushConfig indicates that the Pub/Sub system should stop pushing mess
ages from the given subscription and allow messages to be pulled and acknowledge
d - effectively pausing the subscription if Pull is not called." | 1193 "description": "The push configuration for future deliveries
. An empty pushConfig indicates that the Pub/Sub system should stop pushing mess
ages from the given subscription and allow messages to be pulled and acknowledge
d - effectively pausing the subscription if Pull is not called." |
1194 } | 1194 } |
1195 }, | 1195 }, |
1196 "type": "object" | 1196 "type": "object" |
1197 } | 1197 } |
1198 }, | 1198 }, |
1199 "servicePath": "", | 1199 "servicePath": "", |
1200 "title": "Google Cloud Pub/Sub API", | 1200 "title": "Google Cloud Pub/Sub API", |
1201 "version": "v1beta2" | 1201 "version": "v1beta2" |
1202 } | 1202 } |
OLD | NEW |