Skip to content

Commit 3f43ac4

Browse files
committed
Fix up logging docs URLs after 'v2beta1' -> 'v2' transition.
Follow-on to googleapis#2625.
1 parent ceb24a5 commit 3f43ac4

File tree

7 files changed

+47
-47
lines changed

7 files changed

+47
-47
lines changed

logging/google/cloud/logging/_gax.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def sink_create(self, project, sink_name, filter_, destination):
171171
"""API call: create a sink resource.
172172
173173
See:
174-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.sinks/create
174+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.sinks/create
175175
176176
:type project: str
177177
:param project: ID of the project in which to create the sink.
@@ -318,7 +318,7 @@ def metric_create(self, project, metric_name, filter_, description):
318318
"""API call: create a metric resource.
319319
320320
See:
321-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.metrics/create
321+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.metrics/create
322322
323323
:type project: str
324324
:param project: ID of the project in which to create the metric.

logging/google/cloud/logging/client.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ def logging_api(self):
9595
"""Helper for logging-related API calls.
9696
9797
See:
98-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/entries
99-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.logs
98+
https://cloud.google.com/logging/docs/api/reference/rest/v2/entries
99+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.logs
100100
"""
101101
if self._logging_api is None:
102102
if self._use_gax:
@@ -111,7 +111,7 @@ def sinks_api(self):
111111
"""Helper for log sink-related API calls.
112112
113113
See:
114-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.sinks
114+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.sinks
115115
"""
116116
if self._sinks_api is None:
117117
if _USE_GAX:
@@ -126,7 +126,7 @@ def metrics_api(self):
126126
"""Helper for log metric-related API calls.
127127
128128
See:
129-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.metrics
129+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.metrics
130130
"""
131131
if self._metrics_api is None:
132132
if _USE_GAX:
@@ -177,7 +177,7 @@ def list_entries(self, projects=None, filter_=None, order_by=None,
177177
"""Return a page of log entries.
178178
179179
See:
180-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/entries/list
180+
https://cloud.google.com/logging/docs/api/reference/rest/v2/entries/list
181181
182182
:type projects: list of strings
183183
:param projects: project IDs to include. If not passed,
@@ -244,7 +244,7 @@ def list_sinks(self, page_size=None, page_token=None):
244244
"""List sinks for the project associated with this client.
245245
246246
See:
247-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.sinks/list
247+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.sinks/list
248248
249249
:type page_size: int
250250
:param page_size: maximum number of sinks to return, If not passed,
@@ -293,7 +293,7 @@ def list_metrics(self, page_size=None, page_token=None):
293293
"""List metrics for the project associated with this client.
294294
295295
See:
296-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.metrics/list
296+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.metrics/list
297297
298298
:type page_size: int
299299
:param page_size: maximum number of metrics to return, If not passed,

logging/google/cloud/logging/connection.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ class _LoggingAPI(object):
5252
"""Helper mapping logging-related APIs.
5353
5454
See:
55-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/entries
56-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.logs
55+
https://cloud.google.com/logging/docs/api/reference/rest/v2/entries
56+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.logs
5757
5858
:type connection: :class:`google.cloud.logging.connection.Connection`
5959
:param connection: the connection used to make API requests.
@@ -66,7 +66,7 @@ def list_entries(self, projects, filter_=None, order_by=None,
6666
"""Return a page of log entry resources.
6767
6868
See:
69-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/entries/list
69+
https://cloud.google.com/logging/docs/api/reference/rest/v2/entries/list
7070
7171
:type projects: list of strings
7272
:param projects: project IDs to include. If not passed,
@@ -118,7 +118,7 @@ def write_entries(self, entries, logger_name=None, resource=None,
118118
"""API call: log an entry resource via a POST request
119119
120120
See:
121-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/entries/write
121+
https://cloud.google.com/logging/docs/api/reference/rest/v2/entries/write
122122
123123
:type entries: sequence of mapping
124124
:param entries: the log entry resources to log.
@@ -153,7 +153,7 @@ def logger_delete(self, project, logger_name):
153153
"""API call: delete all entries in a logger via a DELETE request
154154
155155
See:
156-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.logs/delete
156+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.logs/delete
157157
158158
:type project: str
159159
:param project: ID of project containing the log entries to delete
@@ -169,7 +169,7 @@ class _SinksAPI(object):
169169
"""Helper mapping sink-related APIs.
170170
171171
See:
172-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.sinks
172+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.sinks
173173
174174
:type connection: :class:`google.cloud.logging.connection.Connection`
175175
:param connection: the connection used to make API requests.
@@ -181,7 +181,7 @@ def list_sinks(self, project, page_size=None, page_token=None):
181181
"""List sinks for the project associated with this client.
182182
183183
See:
184-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.sinks/list
184+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.sinks/list
185185
186186
:type project: str
187187
:param project: ID of the project whose sinks are to be listed.
@@ -218,7 +218,7 @@ def sink_create(self, project, sink_name, filter_, destination):
218218
"""API call: create a sink resource.
219219
220220
See:
221-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.sinks/create
221+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.sinks/create
222222
223223
:type project: str
224224
:param project: ID of the project in which to create the sink.
@@ -246,7 +246,7 @@ def sink_get(self, project, sink_name):
246246
"""API call: retrieve a sink resource.
247247
248248
See:
249-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.sinks/get
249+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.sinks/get
250250
251251
:type project: str
252252
:param project: ID of the project containing the sink.
@@ -264,7 +264,7 @@ def sink_update(self, project, sink_name, filter_, destination):
264264
"""API call: update a sink resource.
265265
266266
See:
267-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.sinks/update
267+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.sinks/update
268268
269269
:type project: str
270270
:param project: ID of the project containing the sink.
@@ -292,7 +292,7 @@ def sink_delete(self, project, sink_name):
292292
"""API call: delete a sink resource.
293293
294294
See:
295-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.sinks/delete
295+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.sinks/delete
296296
297297
:type project: str
298298
:param project: ID of the project containing the sink.
@@ -308,7 +308,7 @@ class _MetricsAPI(object):
308308
"""Helper mapping sink-related APIs.
309309
310310
See:
311-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.metrics
311+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.metrics
312312
313313
:type connection: :class:`google.cloud.logging.connection.Connection`
314314
:param connection: the connection used to make API requests.
@@ -320,7 +320,7 @@ def list_metrics(self, project, page_size=None, page_token=None):
320320
"""List metrics for the project associated with this client.
321321
322322
See:
323-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.metrics/list
323+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.metrics/list
324324
325325
:type project: str
326326
:param project: ID of the project whose metrics are to be listed.
@@ -357,7 +357,7 @@ def metric_create(self, project, metric_name, filter_, description=None):
357357
"""API call: create a metric resource.
358358
359359
See:
360-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.metrics/create
360+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.metrics/create
361361
362362
:type project: str
363363
:param project: ID of the project in which to create the metric.
@@ -384,7 +384,7 @@ def metric_get(self, project, metric_name):
384384
"""API call: retrieve a metric resource.
385385
386386
See:
387-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.metrics/get
387+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.metrics/get
388388
389389
:type project: str
390390
:param project: ID of the project containing the metric.
@@ -402,7 +402,7 @@ def metric_update(self, project, metric_name, filter_, description):
402402
"""API call: update a metric resource.
403403
404404
See:
405-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.metrics/update
405+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.metrics/update
406406
407407
:type project: str
408408
:param project: ID of the project containing the metric.
@@ -429,7 +429,7 @@ def metric_delete(self, project, metric_name):
429429
"""API call: delete a metric resource.
430430
431431
See:
432-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.metrics/delete
432+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.metrics/delete
433433
434434
:type project: str
435435
:param project: ID of the project containing the metric.

logging/google/cloud/logging/entries.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class TextEntry(_BaseEntry):
125125
"""Entry created with ``textPayload``.
126126
127127
See:
128-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/LogEntry
128+
https://cloud.google.com/logging/docs/api/reference/rest/Shared.Types/LogEntry
129129
"""
130130
_PAYLOAD_KEY = 'textPayload'
131131

@@ -134,7 +134,7 @@ class StructEntry(_BaseEntry):
134134
"""Entry created with ``jsonPayload``.
135135
136136
See:
137-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/LogEntry
137+
https://cloud.google.com/logging/docs/api/reference/rest/Shared.Types/LogEntry
138138
"""
139139
_PAYLOAD_KEY = 'jsonPayload'
140140

@@ -143,7 +143,7 @@ class ProtobufEntry(_BaseEntry):
143143
"""Entry created with ``protoPayload``.
144144
145145
See:
146-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/LogEntry
146+
https://cloud.google.com/logging/docs/api/reference/rest/Shared.Types/LogEntry
147147
"""
148148
_PAYLOAD_KEY = 'protoPayload'
149149

logging/google/cloud/logging/logger.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Logger(object):
2323
"""Loggers represent named targets for log entries.
2424
2525
See:
26-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.logs
26+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.logs
2727
2828
:type name: str
2929
:param name: the name of the logger
@@ -162,7 +162,7 @@ def log_text(self, text, client=None, labels=None, insert_id=None,
162162
"""API call: log a text message via a POST request
163163
164164
See:
165-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/entries/write
165+
https://cloud.google.com/logging/docs/api/reference/rest/v2/entries/write
166166
167167
:type text: text
168168
:param text: the log message.
@@ -196,7 +196,7 @@ def log_struct(self, info, client=None, labels=None, insert_id=None,
196196
"""API call: log a structured message via a POST request
197197
198198
See:
199-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/entries/write
199+
https://cloud.google.com/logging/docs/api/reference/rest/v2/entries/write
200200
201201
:type info: dict
202202
:param info: the log entry information
@@ -230,7 +230,7 @@ def log_proto(self, message, client=None, labels=None, insert_id=None,
230230
"""API call: log a protobuf message via a POST request
231231
232232
See:
233-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/entries/write
233+
https://cloud.google.com/logging/docs/api/reference/rest/v2/entries/write
234234
235235
:type message: Protobuf message
236236
:param message: the message to be logged
@@ -263,7 +263,7 @@ def delete(self, client=None):
263263
"""API call: delete all entries in a logger via a DELETE request
264264
265265
See:
266-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.logs/delete
266+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.logs/delete
267267
268268
:type client: :class:`~google.cloud.logging.client.Client` or
269269
``NoneType``
@@ -278,7 +278,7 @@ def list_entries(self, projects=None, filter_=None, order_by=None,
278278
"""Return a page of log entries.
279279
280280
See:
281-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/entries/list
281+
https://cloud.google.com/logging/docs/api/reference/rest/v2/entries/list
282282
283283
:type projects: list of strings
284284
:param projects: project IDs to include. If not passed,

logging/google/cloud/logging/metric.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Metric(object):
2121
"""Metrics represent named filters for log entries.
2222
2323
See:
24-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.metrics
24+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.metrics
2525
2626
:type name: str
2727
:param name: the name of the metric
@@ -103,7 +103,7 @@ def create(self, client=None):
103103
"""API call: create the metric via a PUT request
104104
105105
See:
106-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.metrics/create
106+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.metrics/create
107107
108108
:type client: :class:`~google.cloud.logging.client.Client` or
109109
``NoneType``
@@ -118,7 +118,7 @@ def exists(self, client=None):
118118
"""API call: test for the existence of the metric via a GET request
119119
120120
See
121-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.metrics/get
121+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.metrics/get
122122
123123
:type client: :class:`~google.cloud.logging.client.Client` or
124124
``NoneType``
@@ -141,7 +141,7 @@ def reload(self, client=None):
141141
"""API call: sync local metric configuration via a GET request
142142
143143
See
144-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.metrics/get
144+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.metrics/get
145145
146146
:type client: :class:`~google.cloud.logging.client.Client` or
147147
``NoneType``
@@ -157,7 +157,7 @@ def update(self, client=None):
157157
"""API call: update metric configuration via a PUT request
158158
159159
See
160-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.metrics/update
160+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.metrics/update
161161
162162
:type client: :class:`~google.cloud.logging.client.Client` or
163163
``NoneType``
@@ -172,7 +172,7 @@ def delete(self, client=None):
172172
"""API call: delete a metric via a DELETE request
173173
174174
See
175-
https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.metrics/delete
175+
https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.metrics/delete
176176
177177
:type client: :class:`~google.cloud.logging.client.Client` or
178178
``NoneType``

0 commit comments

Comments
 (0)