Skip to content

Commit 138fd2c

Browse files
committed
Merge pull request #1334 from dhermes/fix-1211
Fixing broken links in Pub/Sub docs.
2 parents f220a36 + 9e6681f commit 138fd2c

4 files changed

Lines changed: 18 additions & 18 deletions

File tree

gcloud/pubsub/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def list_topics(self, page_size=None, page_token=None):
4848
"""List topics for the project associated with this client.
4949
5050
See:
51-
https://cloud.google.com/pubsub/reference/rest/v1beta2/projects/topics/list
51+
https://cloud.google.com/pubsub/reference/rest/v1/projects.topics/list
5252
5353
:type page_size: int
5454
:param page_size: maximum number of topics to return, If not passed,
@@ -85,10 +85,10 @@ def list_subscriptions(self, page_size=None, page_token=None,
8585
"""List subscriptions for the project associated with this client.
8686
8787
See:
88-
https://cloud.google.com/pubsub/reference/rest/v1beta2/projects/topics/list
88+
https://cloud.google.com/pubsub/reference/rest/v1/projects.topics/list
8989
9090
and (where ``topic_name`` is passed):
91-
https://cloud.google.com/pubsub/reference/rest/v1beta2/projects/topics/subscriptions/list
91+
https://cloud.google.com/pubsub/reference/rest/v1/projects.topics.subscriptions/list
9292
9393
:type page_size: int
9494
:param page_size: maximum number of topics to return, If not passed,

gcloud/pubsub/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Message(object):
2525
"""Messages can be published to a topic and received by subscribers.
2626
2727
See:
28-
https://cloud.google.com/pubsub/reference/rest/google/pubsub/v1beta2/PubsubMessage
28+
https://cloud.google.com/pubsub/reference/rest/v1/PubsubMessage
2929
3030
:type data: bytes
3131
:param data: the payload of the message

gcloud/pubsub/subscription.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Subscription(object):
2323
"""Subscriptions receive messages published to their topics.
2424
2525
See:
26-
https://cloud.google.com/pubsub/reference/rest/v1beta2/projects/subscriptions
26+
https://cloud.google.com/pubsub/reference/rest/v1/projects.subscriptions
2727
2828
:type name: string
2929
:param name: the name of the subscription
@@ -103,7 +103,7 @@ def create(self, client=None):
103103
"""API call: create the subscription via a PUT request
104104
105105
See:
106-
https://cloud.google.com/pubsub/reference/rest/v1beta2/projects/subscriptions/create
106+
https://cloud.google.com/pubsub/reference/rest/v1/projects.subscriptions/create
107107
108108
:type client: :class:`gcloud.pubsub.client.Client` or ``NoneType``
109109
:param client: the client to use. If not passed, falls back to the
@@ -124,7 +124,7 @@ def exists(self, client=None):
124124
"""API call: test existence of the subscription via a GET request
125125
126126
See
127-
https://cloud.google.com/pubsub/reference/rest/v1beta2/projects/subscriptions/get
127+
https://cloud.google.com/pubsub/reference/rest/v1/projects.subscriptions/get
128128
129129
:type client: :class:`gcloud.pubsub.client.Client` or ``NoneType``
130130
:param client: the client to use. If not passed, falls back to the
@@ -142,7 +142,7 @@ def reload(self, client=None):
142142
"""API call: sync local subscription configuration via a GET request
143143
144144
See
145-
https://cloud.google.com/pubsub/reference/rest/v1beta2/projects/subscriptions/get
145+
https://cloud.google.com/pubsub/reference/rest/v1/projects.subscriptions/get
146146
147147
:type client: :class:`gcloud.pubsub.client.Client` or ``NoneType``
148148
:param client: the client to use. If not passed, falls back to the
@@ -158,7 +158,7 @@ def modify_push_configuration(self, push_endpoint, client=None):
158158
"""API call: update the push endpoint for the subscription.
159159
160160
See:
161-
https://cloud.google.com/pubsub/reference/rest/v1beta2/projects/subscriptions/modifyPushConfig
161+
https://cloud.google.com/pubsub/reference/rest/v1/projects.subscriptions/modifyPushConfig
162162
163163
:type push_endpoint: string
164164
:param push_endpoint: URL to which messages will be pushed by the
@@ -183,7 +183,7 @@ def pull(self, return_immediately=False, max_messages=1, client=None):
183183
"""API call: retrieve messages for the subscription.
184184
185185
See:
186-
https://cloud.google.com/pubsub/reference/rest/v1beta2/projects/subscriptions/pull
186+
https://cloud.google.com/pubsub/reference/rest/v1/projects.subscriptions/pull
187187
188188
:type return_immediately: boolean
189189
:param return_immediately: if True, the back-end returns even if no
@@ -215,7 +215,7 @@ def acknowledge(self, ack_ids, client=None):
215215
"""API call: acknowledge retrieved messages for the subscription.
216216
217217
See:
218-
https://cloud.google.com/pubsub/reference/rest/v1beta2/projects/subscriptions/acknowledge
218+
https://cloud.google.com/pubsub/reference/rest/v1/projects.subscriptions/acknowledge
219219
220220
:type ack_ids: list of string
221221
:param ack_ids: ack IDs of messages being acknowledged
@@ -233,7 +233,7 @@ def modify_ack_deadline(self, ack_id, ack_deadline, client=None):
233233
"""API call: update acknowledgement deadline for a retrieved message.
234234
235235
See:
236-
https://cloud.google.com/pubsub/reference/rest/v1beta2/projects/subscriptions/acknowledge
236+
https://cloud.google.com/pubsub/reference/rest/v1/projects.subscriptions/acknowledge
237237
238238
:type ack_id: string
239239
:param ack_id: ack ID of message being updated
@@ -255,7 +255,7 @@ def delete(self, client=None):
255255
"""API call: delete the subscription via a DELETE request.
256256
257257
See:
258-
https://cloud.google.com/pubsub/reference/rest/v1beta2/projects/subscriptions/delete
258+
https://cloud.google.com/pubsub/reference/rest/v1/projects.subscriptions/delete
259259
260260
:type client: :class:`gcloud.pubsub.client.Client` or ``NoneType``
261261
:param client: the client to use. If not passed, falls back to the

gcloud/pubsub/topic.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Topic(object):
2929
Subscribers then receive those messages.
3030
3131
See:
32-
https://cloud.google.com/pubsub/reference/rest/v1beta2/projects/topics
32+
https://cloud.google.com/pubsub/reference/rest/v1/projects.topics
3333
3434
:type name: string
3535
:param name: the name of the topic
@@ -119,7 +119,7 @@ def create(self, client=None):
119119
"""API call: create the topic via a PUT request
120120
121121
See:
122-
https://cloud.google.com/pubsub/reference/rest/v1beta2/projects/topics/create
122+
https://cloud.google.com/pubsub/reference/rest/v1/projects.topics/create
123123
124124
:type client: :class:`gcloud.pubsub.client.Client` or ``NoneType``
125125
:param client: the client to use. If not passed, falls back to the
@@ -132,7 +132,7 @@ def exists(self, client=None):
132132
"""API call: test for the existence of the topic via a GET request
133133
134134
See
135-
https://cloud.google.com/pubsub/reference/rest/v1beta2/projects/topics/get
135+
https://cloud.google.com/pubsub/reference/rest/v1/projects.topics/get
136136
137137
:type client: :class:`gcloud.pubsub.client.Client` or ``NoneType``
138138
:param client: the client to use. If not passed, falls back to the
@@ -161,7 +161,7 @@ def publish(self, message, client=None, **attrs):
161161
"""API call: publish a message to a topic via a POST request
162162
163163
See:
164-
https://cloud.google.com/pubsub/reference/rest/v1beta2/projects/topics/publish
164+
https://cloud.google.com/pubsub/reference/rest/v1/projects.topics/publish
165165
166166
:type message: bytes
167167
:param message: the message payload
@@ -203,7 +203,7 @@ def delete(self, client=None):
203203
"""API call: delete the topic via a DELETE request
204204
205205
See:
206-
https://cloud.google.com/pubsub/reference/rest/v1beta2/projects/topics/delete
206+
https://cloud.google.com/pubsub/reference/rest/v1/projects.topics/delete
207207
208208
:type client: :class:`gcloud.pubsub.client.Client` or ``NoneType``
209209
:param client: the client to use. If not passed, falls back to the

0 commit comments

Comments
 (0)