google-cloud-observability-v1 0.a → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +153 -8
- data/lib/google/cloud/observability/v1/bindings_override.rb +107 -0
- data/lib/google/cloud/observability/v1/observability/client.rb +2738 -0
- data/lib/google/cloud/observability/v1/observability/credentials.rb +47 -0
- data/lib/google/cloud/observability/v1/observability/operations.rb +843 -0
- data/lib/google/cloud/observability/v1/observability/paths.rb +226 -0
- data/lib/google/cloud/observability/v1/observability/rest/client.rb +2549 -0
- data/lib/google/cloud/observability/v1/observability/rest/operations.rb +985 -0
- data/lib/google/cloud/observability/v1/observability/rest/service_stub.rb +1461 -0
- data/lib/google/cloud/observability/v1/observability/rest.rb +54 -0
- data/lib/google/cloud/observability/v1/observability.rb +56 -0
- data/lib/google/cloud/observability/v1/observability_pb.rb +65 -0
- data/lib/google/cloud/observability/v1/observability_services_pb.rb +87 -0
- data/lib/google/cloud/observability/v1/rest.rb +38 -0
- data/lib/google/cloud/observability/v1/version.rb +7 -2
- data/lib/google/cloud/observability/v1.rb +45 -0
- data/lib/google-cloud-observability-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +593 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/observability/v1/observability.rb +709 -0
- data/proto_docs/google/longrunning/operations.rb +191 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +128 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- metadata +82 -9
|
@@ -0,0 +1,1461 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "google/cloud/observability/v1/observability_pb"
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Cloud
|
|
23
|
+
module Observability
|
|
24
|
+
module V1
|
|
25
|
+
module Observability
|
|
26
|
+
module Rest
|
|
27
|
+
##
|
|
28
|
+
# REST service stub for the Observability service.
|
|
29
|
+
# Service stub contains baseline method implementations
|
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
|
31
|
+
#
|
|
32
|
+
class ServiceStub
|
|
33
|
+
# @private
|
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
|
35
|
+
# These require statements are intentionally placed here to initialize
|
|
36
|
+
# the REST modules only when it's required.
|
|
37
|
+
require "gapic/rest"
|
|
38
|
+
|
|
39
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
|
40
|
+
endpoint_template: endpoint_template,
|
|
41
|
+
universe_domain: universe_domain,
|
|
42
|
+
credentials: credentials,
|
|
43
|
+
numeric_enums: true,
|
|
44
|
+
service_name: self.class,
|
|
45
|
+
raise_faraday_errors: false,
|
|
46
|
+
logger: logger
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
##
|
|
50
|
+
# The effective universe domain
|
|
51
|
+
#
|
|
52
|
+
# @return [String]
|
|
53
|
+
#
|
|
54
|
+
def universe_domain
|
|
55
|
+
@client_stub.universe_domain
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
##
|
|
59
|
+
# The effective endpoint
|
|
60
|
+
#
|
|
61
|
+
# @return [String]
|
|
62
|
+
#
|
|
63
|
+
def endpoint
|
|
64
|
+
@client_stub.endpoint
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
##
|
|
68
|
+
# The logger used for request/response debug logging.
|
|
69
|
+
#
|
|
70
|
+
# @return [Logger]
|
|
71
|
+
#
|
|
72
|
+
def logger stub: false
|
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
##
|
|
77
|
+
# Baseline implementation for the get_scope REST call
|
|
78
|
+
#
|
|
79
|
+
# @param request_pb [::Google::Cloud::Observability::V1::GetScopeRequest]
|
|
80
|
+
# A request object representing the call parameters. Required.
|
|
81
|
+
# @param options [::Gapic::CallOptions]
|
|
82
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
83
|
+
#
|
|
84
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
85
|
+
# @yieldparam result [::Google::Cloud::Observability::V1::Scope]
|
|
86
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
87
|
+
#
|
|
88
|
+
# @return [::Google::Cloud::Observability::V1::Scope]
|
|
89
|
+
# A result object deserialized from the server's reply
|
|
90
|
+
def get_scope request_pb, options = nil
|
|
91
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
92
|
+
|
|
93
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_scope_request request_pb
|
|
94
|
+
query_string_params = if query_string_params.any?
|
|
95
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
96
|
+
else
|
|
97
|
+
{}
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
response = @client_stub.make_http_request(
|
|
101
|
+
verb,
|
|
102
|
+
uri: uri,
|
|
103
|
+
body: body || "",
|
|
104
|
+
params: query_string_params,
|
|
105
|
+
method_name: "get_scope",
|
|
106
|
+
options: options
|
|
107
|
+
)
|
|
108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
109
|
+
result = ::Google::Cloud::Observability::V1::Scope.decode_json response.body, ignore_unknown_fields: true
|
|
110
|
+
catch :response do
|
|
111
|
+
yield result, operation if block_given?
|
|
112
|
+
result
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
##
|
|
117
|
+
# Baseline implementation for the update_scope REST call
|
|
118
|
+
#
|
|
119
|
+
# @param request_pb [::Google::Cloud::Observability::V1::UpdateScopeRequest]
|
|
120
|
+
# A request object representing the call parameters. Required.
|
|
121
|
+
# @param options [::Gapic::CallOptions]
|
|
122
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
123
|
+
#
|
|
124
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
125
|
+
# @yieldparam result [::Google::Cloud::Observability::V1::Scope]
|
|
126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
127
|
+
#
|
|
128
|
+
# @return [::Google::Cloud::Observability::V1::Scope]
|
|
129
|
+
# A result object deserialized from the server's reply
|
|
130
|
+
def update_scope request_pb, options = nil
|
|
131
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
132
|
+
|
|
133
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_scope_request request_pb
|
|
134
|
+
query_string_params = if query_string_params.any?
|
|
135
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
136
|
+
else
|
|
137
|
+
{}
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
response = @client_stub.make_http_request(
|
|
141
|
+
verb,
|
|
142
|
+
uri: uri,
|
|
143
|
+
body: body || "",
|
|
144
|
+
params: query_string_params,
|
|
145
|
+
method_name: "update_scope",
|
|
146
|
+
options: options
|
|
147
|
+
)
|
|
148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
149
|
+
result = ::Google::Cloud::Observability::V1::Scope.decode_json response.body, ignore_unknown_fields: true
|
|
150
|
+
catch :response do
|
|
151
|
+
yield result, operation if block_given?
|
|
152
|
+
result
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
##
|
|
157
|
+
# Baseline implementation for the get_bucket REST call
|
|
158
|
+
#
|
|
159
|
+
# @param request_pb [::Google::Cloud::Observability::V1::GetBucketRequest]
|
|
160
|
+
# A request object representing the call parameters. Required.
|
|
161
|
+
# @param options [::Gapic::CallOptions]
|
|
162
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
163
|
+
#
|
|
164
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
165
|
+
# @yieldparam result [::Google::Cloud::Observability::V1::Bucket]
|
|
166
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
167
|
+
#
|
|
168
|
+
# @return [::Google::Cloud::Observability::V1::Bucket]
|
|
169
|
+
# A result object deserialized from the server's reply
|
|
170
|
+
def get_bucket request_pb, options = nil
|
|
171
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
172
|
+
|
|
173
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_bucket_request request_pb
|
|
174
|
+
query_string_params = if query_string_params.any?
|
|
175
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
176
|
+
else
|
|
177
|
+
{}
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
response = @client_stub.make_http_request(
|
|
181
|
+
verb,
|
|
182
|
+
uri: uri,
|
|
183
|
+
body: body || "",
|
|
184
|
+
params: query_string_params,
|
|
185
|
+
method_name: "get_bucket",
|
|
186
|
+
options: options
|
|
187
|
+
)
|
|
188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
189
|
+
result = ::Google::Cloud::Observability::V1::Bucket.decode_json response.body, ignore_unknown_fields: true
|
|
190
|
+
catch :response do
|
|
191
|
+
yield result, operation if block_given?
|
|
192
|
+
result
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
##
|
|
197
|
+
# Baseline implementation for the list_buckets REST call
|
|
198
|
+
#
|
|
199
|
+
# @param request_pb [::Google::Cloud::Observability::V1::ListBucketsRequest]
|
|
200
|
+
# A request object representing the call parameters. Required.
|
|
201
|
+
# @param options [::Gapic::CallOptions]
|
|
202
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
203
|
+
#
|
|
204
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
205
|
+
# @yieldparam result [::Google::Cloud::Observability::V1::ListBucketsResponse]
|
|
206
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
207
|
+
#
|
|
208
|
+
# @return [::Google::Cloud::Observability::V1::ListBucketsResponse]
|
|
209
|
+
# A result object deserialized from the server's reply
|
|
210
|
+
def list_buckets request_pb, options = nil
|
|
211
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
212
|
+
|
|
213
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_buckets_request request_pb
|
|
214
|
+
query_string_params = if query_string_params.any?
|
|
215
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
216
|
+
else
|
|
217
|
+
{}
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
response = @client_stub.make_http_request(
|
|
221
|
+
verb,
|
|
222
|
+
uri: uri,
|
|
223
|
+
body: body || "",
|
|
224
|
+
params: query_string_params,
|
|
225
|
+
method_name: "list_buckets",
|
|
226
|
+
options: options
|
|
227
|
+
)
|
|
228
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
229
|
+
result = ::Google::Cloud::Observability::V1::ListBucketsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
230
|
+
catch :response do
|
|
231
|
+
yield result, operation if block_given?
|
|
232
|
+
result
|
|
233
|
+
end
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
##
|
|
237
|
+
# Baseline implementation for the create_bucket REST call
|
|
238
|
+
#
|
|
239
|
+
# @param request_pb [::Google::Cloud::Observability::V1::CreateBucketRequest]
|
|
240
|
+
# A request object representing the call parameters. Required.
|
|
241
|
+
# @param options [::Gapic::CallOptions]
|
|
242
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
243
|
+
#
|
|
244
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
245
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
246
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
247
|
+
#
|
|
248
|
+
# @return [::Google::Longrunning::Operation]
|
|
249
|
+
# A result object deserialized from the server's reply
|
|
250
|
+
def create_bucket request_pb, options = nil
|
|
251
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
252
|
+
|
|
253
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_bucket_request request_pb
|
|
254
|
+
query_string_params = if query_string_params.any?
|
|
255
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
256
|
+
else
|
|
257
|
+
{}
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
response = @client_stub.make_http_request(
|
|
261
|
+
verb,
|
|
262
|
+
uri: uri,
|
|
263
|
+
body: body || "",
|
|
264
|
+
params: query_string_params,
|
|
265
|
+
method_name: "create_bucket",
|
|
266
|
+
options: options
|
|
267
|
+
)
|
|
268
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
269
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
270
|
+
catch :response do
|
|
271
|
+
yield result, operation if block_given?
|
|
272
|
+
result
|
|
273
|
+
end
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
##
|
|
277
|
+
# Baseline implementation for the update_bucket REST call
|
|
278
|
+
#
|
|
279
|
+
# @param request_pb [::Google::Cloud::Observability::V1::UpdateBucketRequest]
|
|
280
|
+
# A request object representing the call parameters. Required.
|
|
281
|
+
# @param options [::Gapic::CallOptions]
|
|
282
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
283
|
+
#
|
|
284
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
285
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
286
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
287
|
+
#
|
|
288
|
+
# @return [::Google::Longrunning::Operation]
|
|
289
|
+
# A result object deserialized from the server's reply
|
|
290
|
+
def update_bucket request_pb, options = nil
|
|
291
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
292
|
+
|
|
293
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_bucket_request request_pb
|
|
294
|
+
query_string_params = if query_string_params.any?
|
|
295
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
296
|
+
else
|
|
297
|
+
{}
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
response = @client_stub.make_http_request(
|
|
301
|
+
verb,
|
|
302
|
+
uri: uri,
|
|
303
|
+
body: body || "",
|
|
304
|
+
params: query_string_params,
|
|
305
|
+
method_name: "update_bucket",
|
|
306
|
+
options: options
|
|
307
|
+
)
|
|
308
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
309
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
310
|
+
catch :response do
|
|
311
|
+
yield result, operation if block_given?
|
|
312
|
+
result
|
|
313
|
+
end
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
##
|
|
317
|
+
# Baseline implementation for the get_dataset REST call
|
|
318
|
+
#
|
|
319
|
+
# @param request_pb [::Google::Cloud::Observability::V1::GetDatasetRequest]
|
|
320
|
+
# A request object representing the call parameters. Required.
|
|
321
|
+
# @param options [::Gapic::CallOptions]
|
|
322
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
323
|
+
#
|
|
324
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
325
|
+
# @yieldparam result [::Google::Cloud::Observability::V1::Dataset]
|
|
326
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
327
|
+
#
|
|
328
|
+
# @return [::Google::Cloud::Observability::V1::Dataset]
|
|
329
|
+
# A result object deserialized from the server's reply
|
|
330
|
+
def get_dataset request_pb, options = nil
|
|
331
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
332
|
+
|
|
333
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_dataset_request request_pb
|
|
334
|
+
query_string_params = if query_string_params.any?
|
|
335
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
336
|
+
else
|
|
337
|
+
{}
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
response = @client_stub.make_http_request(
|
|
341
|
+
verb,
|
|
342
|
+
uri: uri,
|
|
343
|
+
body: body || "",
|
|
344
|
+
params: query_string_params,
|
|
345
|
+
method_name: "get_dataset",
|
|
346
|
+
options: options
|
|
347
|
+
)
|
|
348
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
349
|
+
result = ::Google::Cloud::Observability::V1::Dataset.decode_json response.body, ignore_unknown_fields: true
|
|
350
|
+
catch :response do
|
|
351
|
+
yield result, operation if block_given?
|
|
352
|
+
result
|
|
353
|
+
end
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
##
|
|
357
|
+
# Baseline implementation for the list_datasets REST call
|
|
358
|
+
#
|
|
359
|
+
# @param request_pb [::Google::Cloud::Observability::V1::ListDatasetsRequest]
|
|
360
|
+
# A request object representing the call parameters. Required.
|
|
361
|
+
# @param options [::Gapic::CallOptions]
|
|
362
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
363
|
+
#
|
|
364
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
365
|
+
# @yieldparam result [::Google::Cloud::Observability::V1::ListDatasetsResponse]
|
|
366
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
367
|
+
#
|
|
368
|
+
# @return [::Google::Cloud::Observability::V1::ListDatasetsResponse]
|
|
369
|
+
# A result object deserialized from the server's reply
|
|
370
|
+
def list_datasets request_pb, options = nil
|
|
371
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
372
|
+
|
|
373
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_datasets_request request_pb
|
|
374
|
+
query_string_params = if query_string_params.any?
|
|
375
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
376
|
+
else
|
|
377
|
+
{}
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
response = @client_stub.make_http_request(
|
|
381
|
+
verb,
|
|
382
|
+
uri: uri,
|
|
383
|
+
body: body || "",
|
|
384
|
+
params: query_string_params,
|
|
385
|
+
method_name: "list_datasets",
|
|
386
|
+
options: options
|
|
387
|
+
)
|
|
388
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
389
|
+
result = ::Google::Cloud::Observability::V1::ListDatasetsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
390
|
+
catch :response do
|
|
391
|
+
yield result, operation if block_given?
|
|
392
|
+
result
|
|
393
|
+
end
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
##
|
|
397
|
+
# Baseline implementation for the get_view REST call
|
|
398
|
+
#
|
|
399
|
+
# @param request_pb [::Google::Cloud::Observability::V1::GetViewRequest]
|
|
400
|
+
# A request object representing the call parameters. Required.
|
|
401
|
+
# @param options [::Gapic::CallOptions]
|
|
402
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
403
|
+
#
|
|
404
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
405
|
+
# @yieldparam result [::Google::Cloud::Observability::V1::View]
|
|
406
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
407
|
+
#
|
|
408
|
+
# @return [::Google::Cloud::Observability::V1::View]
|
|
409
|
+
# A result object deserialized from the server's reply
|
|
410
|
+
def get_view request_pb, options = nil
|
|
411
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
412
|
+
|
|
413
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_view_request request_pb
|
|
414
|
+
query_string_params = if query_string_params.any?
|
|
415
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
416
|
+
else
|
|
417
|
+
{}
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
response = @client_stub.make_http_request(
|
|
421
|
+
verb,
|
|
422
|
+
uri: uri,
|
|
423
|
+
body: body || "",
|
|
424
|
+
params: query_string_params,
|
|
425
|
+
method_name: "get_view",
|
|
426
|
+
options: options
|
|
427
|
+
)
|
|
428
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
429
|
+
result = ::Google::Cloud::Observability::V1::View.decode_json response.body, ignore_unknown_fields: true
|
|
430
|
+
catch :response do
|
|
431
|
+
yield result, operation if block_given?
|
|
432
|
+
result
|
|
433
|
+
end
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
##
|
|
437
|
+
# Baseline implementation for the list_views REST call
|
|
438
|
+
#
|
|
439
|
+
# @param request_pb [::Google::Cloud::Observability::V1::ListViewsRequest]
|
|
440
|
+
# A request object representing the call parameters. Required.
|
|
441
|
+
# @param options [::Gapic::CallOptions]
|
|
442
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
443
|
+
#
|
|
444
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
445
|
+
# @yieldparam result [::Google::Cloud::Observability::V1::ListViewsResponse]
|
|
446
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
447
|
+
#
|
|
448
|
+
# @return [::Google::Cloud::Observability::V1::ListViewsResponse]
|
|
449
|
+
# A result object deserialized from the server's reply
|
|
450
|
+
def list_views request_pb, options = nil
|
|
451
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
452
|
+
|
|
453
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_views_request request_pb
|
|
454
|
+
query_string_params = if query_string_params.any?
|
|
455
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
456
|
+
else
|
|
457
|
+
{}
|
|
458
|
+
end
|
|
459
|
+
|
|
460
|
+
response = @client_stub.make_http_request(
|
|
461
|
+
verb,
|
|
462
|
+
uri: uri,
|
|
463
|
+
body: body || "",
|
|
464
|
+
params: query_string_params,
|
|
465
|
+
method_name: "list_views",
|
|
466
|
+
options: options
|
|
467
|
+
)
|
|
468
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
469
|
+
result = ::Google::Cloud::Observability::V1::ListViewsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
470
|
+
catch :response do
|
|
471
|
+
yield result, operation if block_given?
|
|
472
|
+
result
|
|
473
|
+
end
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
##
|
|
477
|
+
# Baseline implementation for the get_link REST call
|
|
478
|
+
#
|
|
479
|
+
# @param request_pb [::Google::Cloud::Observability::V1::GetLinkRequest]
|
|
480
|
+
# A request object representing the call parameters. Required.
|
|
481
|
+
# @param options [::Gapic::CallOptions]
|
|
482
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
483
|
+
#
|
|
484
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
485
|
+
# @yieldparam result [::Google::Cloud::Observability::V1::Link]
|
|
486
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
487
|
+
#
|
|
488
|
+
# @return [::Google::Cloud::Observability::V1::Link]
|
|
489
|
+
# A result object deserialized from the server's reply
|
|
490
|
+
def get_link request_pb, options = nil
|
|
491
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
492
|
+
|
|
493
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_link_request request_pb
|
|
494
|
+
query_string_params = if query_string_params.any?
|
|
495
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
496
|
+
else
|
|
497
|
+
{}
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
response = @client_stub.make_http_request(
|
|
501
|
+
verb,
|
|
502
|
+
uri: uri,
|
|
503
|
+
body: body || "",
|
|
504
|
+
params: query_string_params,
|
|
505
|
+
method_name: "get_link",
|
|
506
|
+
options: options
|
|
507
|
+
)
|
|
508
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
509
|
+
result = ::Google::Cloud::Observability::V1::Link.decode_json response.body, ignore_unknown_fields: true
|
|
510
|
+
catch :response do
|
|
511
|
+
yield result, operation if block_given?
|
|
512
|
+
result
|
|
513
|
+
end
|
|
514
|
+
end
|
|
515
|
+
|
|
516
|
+
##
|
|
517
|
+
# Baseline implementation for the list_links REST call
|
|
518
|
+
#
|
|
519
|
+
# @param request_pb [::Google::Cloud::Observability::V1::ListLinksRequest]
|
|
520
|
+
# A request object representing the call parameters. Required.
|
|
521
|
+
# @param options [::Gapic::CallOptions]
|
|
522
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
523
|
+
#
|
|
524
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
525
|
+
# @yieldparam result [::Google::Cloud::Observability::V1::ListLinksResponse]
|
|
526
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
527
|
+
#
|
|
528
|
+
# @return [::Google::Cloud::Observability::V1::ListLinksResponse]
|
|
529
|
+
# A result object deserialized from the server's reply
|
|
530
|
+
def list_links request_pb, options = nil
|
|
531
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
532
|
+
|
|
533
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_links_request request_pb
|
|
534
|
+
query_string_params = if query_string_params.any?
|
|
535
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
536
|
+
else
|
|
537
|
+
{}
|
|
538
|
+
end
|
|
539
|
+
|
|
540
|
+
response = @client_stub.make_http_request(
|
|
541
|
+
verb,
|
|
542
|
+
uri: uri,
|
|
543
|
+
body: body || "",
|
|
544
|
+
params: query_string_params,
|
|
545
|
+
method_name: "list_links",
|
|
546
|
+
options: options
|
|
547
|
+
)
|
|
548
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
549
|
+
result = ::Google::Cloud::Observability::V1::ListLinksResponse.decode_json response.body, ignore_unknown_fields: true
|
|
550
|
+
catch :response do
|
|
551
|
+
yield result, operation if block_given?
|
|
552
|
+
result
|
|
553
|
+
end
|
|
554
|
+
end
|
|
555
|
+
|
|
556
|
+
##
|
|
557
|
+
# Baseline implementation for the create_link REST call
|
|
558
|
+
#
|
|
559
|
+
# @param request_pb [::Google::Cloud::Observability::V1::CreateLinkRequest]
|
|
560
|
+
# A request object representing the call parameters. Required.
|
|
561
|
+
# @param options [::Gapic::CallOptions]
|
|
562
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
563
|
+
#
|
|
564
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
565
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
566
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
567
|
+
#
|
|
568
|
+
# @return [::Google::Longrunning::Operation]
|
|
569
|
+
# A result object deserialized from the server's reply
|
|
570
|
+
def create_link request_pb, options = nil
|
|
571
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
572
|
+
|
|
573
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_link_request request_pb
|
|
574
|
+
query_string_params = if query_string_params.any?
|
|
575
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
576
|
+
else
|
|
577
|
+
{}
|
|
578
|
+
end
|
|
579
|
+
|
|
580
|
+
response = @client_stub.make_http_request(
|
|
581
|
+
verb,
|
|
582
|
+
uri: uri,
|
|
583
|
+
body: body || "",
|
|
584
|
+
params: query_string_params,
|
|
585
|
+
method_name: "create_link",
|
|
586
|
+
options: options
|
|
587
|
+
)
|
|
588
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
589
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
590
|
+
catch :response do
|
|
591
|
+
yield result, operation if block_given?
|
|
592
|
+
result
|
|
593
|
+
end
|
|
594
|
+
end
|
|
595
|
+
|
|
596
|
+
##
|
|
597
|
+
# Baseline implementation for the update_link REST call
|
|
598
|
+
#
|
|
599
|
+
# @param request_pb [::Google::Cloud::Observability::V1::UpdateLinkRequest]
|
|
600
|
+
# A request object representing the call parameters. Required.
|
|
601
|
+
# @param options [::Gapic::CallOptions]
|
|
602
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
603
|
+
#
|
|
604
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
605
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
606
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
607
|
+
#
|
|
608
|
+
# @return [::Google::Longrunning::Operation]
|
|
609
|
+
# A result object deserialized from the server's reply
|
|
610
|
+
def update_link request_pb, options = nil
|
|
611
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
612
|
+
|
|
613
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_link_request request_pb
|
|
614
|
+
query_string_params = if query_string_params.any?
|
|
615
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
616
|
+
else
|
|
617
|
+
{}
|
|
618
|
+
end
|
|
619
|
+
|
|
620
|
+
response = @client_stub.make_http_request(
|
|
621
|
+
verb,
|
|
622
|
+
uri: uri,
|
|
623
|
+
body: body || "",
|
|
624
|
+
params: query_string_params,
|
|
625
|
+
method_name: "update_link",
|
|
626
|
+
options: options
|
|
627
|
+
)
|
|
628
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
629
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
630
|
+
catch :response do
|
|
631
|
+
yield result, operation if block_given?
|
|
632
|
+
result
|
|
633
|
+
end
|
|
634
|
+
end
|
|
635
|
+
|
|
636
|
+
##
|
|
637
|
+
# Baseline implementation for the delete_link REST call
|
|
638
|
+
#
|
|
639
|
+
# @param request_pb [::Google::Cloud::Observability::V1::DeleteLinkRequest]
|
|
640
|
+
# A request object representing the call parameters. Required.
|
|
641
|
+
# @param options [::Gapic::CallOptions]
|
|
642
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
643
|
+
#
|
|
644
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
645
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
646
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
647
|
+
#
|
|
648
|
+
# @return [::Google::Longrunning::Operation]
|
|
649
|
+
# A result object deserialized from the server's reply
|
|
650
|
+
def delete_link request_pb, options = nil
|
|
651
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
652
|
+
|
|
653
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_link_request request_pb
|
|
654
|
+
query_string_params = if query_string_params.any?
|
|
655
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
656
|
+
else
|
|
657
|
+
{}
|
|
658
|
+
end
|
|
659
|
+
|
|
660
|
+
response = @client_stub.make_http_request(
|
|
661
|
+
verb,
|
|
662
|
+
uri: uri,
|
|
663
|
+
body: body || "",
|
|
664
|
+
params: query_string_params,
|
|
665
|
+
method_name: "delete_link",
|
|
666
|
+
options: options
|
|
667
|
+
)
|
|
668
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
669
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
670
|
+
catch :response do
|
|
671
|
+
yield result, operation if block_given?
|
|
672
|
+
result
|
|
673
|
+
end
|
|
674
|
+
end
|
|
675
|
+
|
|
676
|
+
##
|
|
677
|
+
# Baseline implementation for the get_trace_scope REST call
|
|
678
|
+
#
|
|
679
|
+
# @param request_pb [::Google::Cloud::Observability::V1::GetTraceScopeRequest]
|
|
680
|
+
# A request object representing the call parameters. Required.
|
|
681
|
+
# @param options [::Gapic::CallOptions]
|
|
682
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
683
|
+
#
|
|
684
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
685
|
+
# @yieldparam result [::Google::Cloud::Observability::V1::TraceScope]
|
|
686
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
687
|
+
#
|
|
688
|
+
# @return [::Google::Cloud::Observability::V1::TraceScope]
|
|
689
|
+
# A result object deserialized from the server's reply
|
|
690
|
+
def get_trace_scope request_pb, options = nil
|
|
691
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
692
|
+
|
|
693
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_trace_scope_request request_pb
|
|
694
|
+
query_string_params = if query_string_params.any?
|
|
695
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
696
|
+
else
|
|
697
|
+
{}
|
|
698
|
+
end
|
|
699
|
+
|
|
700
|
+
response = @client_stub.make_http_request(
|
|
701
|
+
verb,
|
|
702
|
+
uri: uri,
|
|
703
|
+
body: body || "",
|
|
704
|
+
params: query_string_params,
|
|
705
|
+
method_name: "get_trace_scope",
|
|
706
|
+
options: options
|
|
707
|
+
)
|
|
708
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
709
|
+
result = ::Google::Cloud::Observability::V1::TraceScope.decode_json response.body, ignore_unknown_fields: true
|
|
710
|
+
catch :response do
|
|
711
|
+
yield result, operation if block_given?
|
|
712
|
+
result
|
|
713
|
+
end
|
|
714
|
+
end
|
|
715
|
+
|
|
716
|
+
##
|
|
717
|
+
# Baseline implementation for the list_trace_scopes REST call
|
|
718
|
+
#
|
|
719
|
+
# @param request_pb [::Google::Cloud::Observability::V1::ListTraceScopesRequest]
|
|
720
|
+
# A request object representing the call parameters. Required.
|
|
721
|
+
# @param options [::Gapic::CallOptions]
|
|
722
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
723
|
+
#
|
|
724
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
725
|
+
# @yieldparam result [::Google::Cloud::Observability::V1::ListTraceScopesResponse]
|
|
726
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
727
|
+
#
|
|
728
|
+
# @return [::Google::Cloud::Observability::V1::ListTraceScopesResponse]
|
|
729
|
+
# A result object deserialized from the server's reply
|
|
730
|
+
def list_trace_scopes request_pb, options = nil
|
|
731
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
732
|
+
|
|
733
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_trace_scopes_request request_pb
|
|
734
|
+
query_string_params = if query_string_params.any?
|
|
735
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
736
|
+
else
|
|
737
|
+
{}
|
|
738
|
+
end
|
|
739
|
+
|
|
740
|
+
response = @client_stub.make_http_request(
|
|
741
|
+
verb,
|
|
742
|
+
uri: uri,
|
|
743
|
+
body: body || "",
|
|
744
|
+
params: query_string_params,
|
|
745
|
+
method_name: "list_trace_scopes",
|
|
746
|
+
options: options
|
|
747
|
+
)
|
|
748
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
749
|
+
result = ::Google::Cloud::Observability::V1::ListTraceScopesResponse.decode_json response.body, ignore_unknown_fields: true
|
|
750
|
+
catch :response do
|
|
751
|
+
yield result, operation if block_given?
|
|
752
|
+
result
|
|
753
|
+
end
|
|
754
|
+
end
|
|
755
|
+
|
|
756
|
+
##
|
|
757
|
+
# Baseline implementation for the create_trace_scope REST call
|
|
758
|
+
#
|
|
759
|
+
# @param request_pb [::Google::Cloud::Observability::V1::CreateTraceScopeRequest]
|
|
760
|
+
# A request object representing the call parameters. Required.
|
|
761
|
+
# @param options [::Gapic::CallOptions]
|
|
762
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
763
|
+
#
|
|
764
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
765
|
+
# @yieldparam result [::Google::Cloud::Observability::V1::TraceScope]
|
|
766
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
767
|
+
#
|
|
768
|
+
# @return [::Google::Cloud::Observability::V1::TraceScope]
|
|
769
|
+
# A result object deserialized from the server's reply
|
|
770
|
+
def create_trace_scope request_pb, options = nil
|
|
771
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
772
|
+
|
|
773
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_trace_scope_request request_pb
|
|
774
|
+
query_string_params = if query_string_params.any?
|
|
775
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
776
|
+
else
|
|
777
|
+
{}
|
|
778
|
+
end
|
|
779
|
+
|
|
780
|
+
response = @client_stub.make_http_request(
|
|
781
|
+
verb,
|
|
782
|
+
uri: uri,
|
|
783
|
+
body: body || "",
|
|
784
|
+
params: query_string_params,
|
|
785
|
+
method_name: "create_trace_scope",
|
|
786
|
+
options: options
|
|
787
|
+
)
|
|
788
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
789
|
+
result = ::Google::Cloud::Observability::V1::TraceScope.decode_json response.body, ignore_unknown_fields: true
|
|
790
|
+
catch :response do
|
|
791
|
+
yield result, operation if block_given?
|
|
792
|
+
result
|
|
793
|
+
end
|
|
794
|
+
end
|
|
795
|
+
|
|
796
|
+
##
|
|
797
|
+
# Baseline implementation for the update_trace_scope REST call
|
|
798
|
+
#
|
|
799
|
+
# @param request_pb [::Google::Cloud::Observability::V1::UpdateTraceScopeRequest]
|
|
800
|
+
# A request object representing the call parameters. Required.
|
|
801
|
+
# @param options [::Gapic::CallOptions]
|
|
802
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
803
|
+
#
|
|
804
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
805
|
+
# @yieldparam result [::Google::Cloud::Observability::V1::TraceScope]
|
|
806
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
807
|
+
#
|
|
808
|
+
# @return [::Google::Cloud::Observability::V1::TraceScope]
|
|
809
|
+
# A result object deserialized from the server's reply
|
|
810
|
+
def update_trace_scope request_pb, options = nil
|
|
811
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
812
|
+
|
|
813
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_trace_scope_request request_pb
|
|
814
|
+
query_string_params = if query_string_params.any?
|
|
815
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
816
|
+
else
|
|
817
|
+
{}
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
response = @client_stub.make_http_request(
|
|
821
|
+
verb,
|
|
822
|
+
uri: uri,
|
|
823
|
+
body: body || "",
|
|
824
|
+
params: query_string_params,
|
|
825
|
+
method_name: "update_trace_scope",
|
|
826
|
+
options: options
|
|
827
|
+
)
|
|
828
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
829
|
+
result = ::Google::Cloud::Observability::V1::TraceScope.decode_json response.body, ignore_unknown_fields: true
|
|
830
|
+
catch :response do
|
|
831
|
+
yield result, operation if block_given?
|
|
832
|
+
result
|
|
833
|
+
end
|
|
834
|
+
end
|
|
835
|
+
|
|
836
|
+
##
|
|
837
|
+
# Baseline implementation for the delete_trace_scope REST call
|
|
838
|
+
#
|
|
839
|
+
# @param request_pb [::Google::Cloud::Observability::V1::DeleteTraceScopeRequest]
|
|
840
|
+
# A request object representing the call parameters. Required.
|
|
841
|
+
# @param options [::Gapic::CallOptions]
|
|
842
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
843
|
+
#
|
|
844
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
845
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
|
846
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
847
|
+
#
|
|
848
|
+
# @return [::Google::Protobuf::Empty]
|
|
849
|
+
# A result object deserialized from the server's reply
|
|
850
|
+
def delete_trace_scope request_pb, options = nil
|
|
851
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
852
|
+
|
|
853
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_trace_scope_request request_pb
|
|
854
|
+
query_string_params = if query_string_params.any?
|
|
855
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
856
|
+
else
|
|
857
|
+
{}
|
|
858
|
+
end
|
|
859
|
+
|
|
860
|
+
response = @client_stub.make_http_request(
|
|
861
|
+
verb,
|
|
862
|
+
uri: uri,
|
|
863
|
+
body: body || "",
|
|
864
|
+
params: query_string_params,
|
|
865
|
+
method_name: "delete_trace_scope",
|
|
866
|
+
options: options
|
|
867
|
+
)
|
|
868
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
869
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
|
870
|
+
catch :response do
|
|
871
|
+
yield result, operation if block_given?
|
|
872
|
+
result
|
|
873
|
+
end
|
|
874
|
+
end
|
|
875
|
+
|
|
876
|
+
##
|
|
877
|
+
# Baseline implementation for the get_settings REST call
|
|
878
|
+
#
|
|
879
|
+
# @param request_pb [::Google::Cloud::Observability::V1::GetSettingsRequest]
|
|
880
|
+
# A request object representing the call parameters. Required.
|
|
881
|
+
# @param options [::Gapic::CallOptions]
|
|
882
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
883
|
+
#
|
|
884
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
885
|
+
# @yieldparam result [::Google::Cloud::Observability::V1::Settings]
|
|
886
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
887
|
+
#
|
|
888
|
+
# @return [::Google::Cloud::Observability::V1::Settings]
|
|
889
|
+
# A result object deserialized from the server's reply
|
|
890
|
+
def get_settings request_pb, options = nil
|
|
891
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
892
|
+
|
|
893
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_settings_request request_pb
|
|
894
|
+
query_string_params = if query_string_params.any?
|
|
895
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
896
|
+
else
|
|
897
|
+
{}
|
|
898
|
+
end
|
|
899
|
+
|
|
900
|
+
response = @client_stub.make_http_request(
|
|
901
|
+
verb,
|
|
902
|
+
uri: uri,
|
|
903
|
+
body: body || "",
|
|
904
|
+
params: query_string_params,
|
|
905
|
+
method_name: "get_settings",
|
|
906
|
+
options: options
|
|
907
|
+
)
|
|
908
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
909
|
+
result = ::Google::Cloud::Observability::V1::Settings.decode_json response.body, ignore_unknown_fields: true
|
|
910
|
+
catch :response do
|
|
911
|
+
yield result, operation if block_given?
|
|
912
|
+
result
|
|
913
|
+
end
|
|
914
|
+
end
|
|
915
|
+
|
|
916
|
+
##
|
|
917
|
+
# Baseline implementation for the update_settings REST call
|
|
918
|
+
#
|
|
919
|
+
# @param request_pb [::Google::Cloud::Observability::V1::UpdateSettingsRequest]
|
|
920
|
+
# A request object representing the call parameters. Required.
|
|
921
|
+
# @param options [::Gapic::CallOptions]
|
|
922
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
923
|
+
#
|
|
924
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
925
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
926
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
927
|
+
#
|
|
928
|
+
# @return [::Google::Longrunning::Operation]
|
|
929
|
+
# A result object deserialized from the server's reply
|
|
930
|
+
def update_settings request_pb, options = nil
|
|
931
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
932
|
+
|
|
933
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_settings_request request_pb
|
|
934
|
+
query_string_params = if query_string_params.any?
|
|
935
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
936
|
+
else
|
|
937
|
+
{}
|
|
938
|
+
end
|
|
939
|
+
|
|
940
|
+
response = @client_stub.make_http_request(
|
|
941
|
+
verb,
|
|
942
|
+
uri: uri,
|
|
943
|
+
body: body || "",
|
|
944
|
+
params: query_string_params,
|
|
945
|
+
method_name: "update_settings",
|
|
946
|
+
options: options
|
|
947
|
+
)
|
|
948
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
949
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
950
|
+
catch :response do
|
|
951
|
+
yield result, operation if block_given?
|
|
952
|
+
result
|
|
953
|
+
end
|
|
954
|
+
end
|
|
955
|
+
|
|
956
|
+
##
|
|
957
|
+
# @private
|
|
958
|
+
#
|
|
959
|
+
# GRPC transcoding helper method for the get_scope REST call
|
|
960
|
+
#
|
|
961
|
+
# @param request_pb [::Google::Cloud::Observability::V1::GetScopeRequest]
|
|
962
|
+
# A request object representing the call parameters. Required.
|
|
963
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
964
|
+
# Uri, Body, Query string parameters
|
|
965
|
+
def self.transcode_get_scope_request request_pb
|
|
966
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
967
|
+
.with_bindings(
|
|
968
|
+
uri_method: :get,
|
|
969
|
+
uri_template: "/v1/{name}",
|
|
970
|
+
matches: [
|
|
971
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/scopes/[^/]+/?$}, false]
|
|
972
|
+
]
|
|
973
|
+
)
|
|
974
|
+
transcoder.transcode request_pb
|
|
975
|
+
end
|
|
976
|
+
|
|
977
|
+
##
|
|
978
|
+
# @private
|
|
979
|
+
#
|
|
980
|
+
# GRPC transcoding helper method for the update_scope REST call
|
|
981
|
+
#
|
|
982
|
+
# @param request_pb [::Google::Cloud::Observability::V1::UpdateScopeRequest]
|
|
983
|
+
# A request object representing the call parameters. Required.
|
|
984
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
985
|
+
# Uri, Body, Query string parameters
|
|
986
|
+
def self.transcode_update_scope_request request_pb
|
|
987
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
988
|
+
.with_bindings(
|
|
989
|
+
uri_method: :patch,
|
|
990
|
+
uri_template: "/v1/{scope.name}",
|
|
991
|
+
body: "scope",
|
|
992
|
+
matches: [
|
|
993
|
+
["scope.name", %r{^projects/[^/]+/locations/[^/]+/scopes/[^/]+/?$}, false]
|
|
994
|
+
]
|
|
995
|
+
)
|
|
996
|
+
transcoder.transcode request_pb
|
|
997
|
+
end
|
|
998
|
+
|
|
999
|
+
##
|
|
1000
|
+
# @private
|
|
1001
|
+
#
|
|
1002
|
+
# GRPC transcoding helper method for the get_bucket REST call
|
|
1003
|
+
#
|
|
1004
|
+
# @param request_pb [::Google::Cloud::Observability::V1::GetBucketRequest]
|
|
1005
|
+
# A request object representing the call parameters. Required.
|
|
1006
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1007
|
+
# Uri, Body, Query string parameters
|
|
1008
|
+
def self.transcode_get_bucket_request request_pb
|
|
1009
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1010
|
+
.with_bindings(
|
|
1011
|
+
uri_method: :get,
|
|
1012
|
+
uri_template: "/v1/{name}",
|
|
1013
|
+
matches: [
|
|
1014
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/buckets/[^/]+/?$}, false]
|
|
1015
|
+
]
|
|
1016
|
+
)
|
|
1017
|
+
transcoder.transcode request_pb
|
|
1018
|
+
end
|
|
1019
|
+
|
|
1020
|
+
##
|
|
1021
|
+
# @private
|
|
1022
|
+
#
|
|
1023
|
+
# GRPC transcoding helper method for the list_buckets REST call
|
|
1024
|
+
#
|
|
1025
|
+
# @param request_pb [::Google::Cloud::Observability::V1::ListBucketsRequest]
|
|
1026
|
+
# A request object representing the call parameters. Required.
|
|
1027
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1028
|
+
# Uri, Body, Query string parameters
|
|
1029
|
+
def self.transcode_list_buckets_request request_pb
|
|
1030
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1031
|
+
.with_bindings(
|
|
1032
|
+
uri_method: :get,
|
|
1033
|
+
uri_template: "/v1/{parent}/buckets",
|
|
1034
|
+
matches: [
|
|
1035
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1036
|
+
]
|
|
1037
|
+
)
|
|
1038
|
+
transcoder.transcode request_pb
|
|
1039
|
+
end
|
|
1040
|
+
|
|
1041
|
+
##
|
|
1042
|
+
# @private
|
|
1043
|
+
#
|
|
1044
|
+
# GRPC transcoding helper method for the create_bucket REST call
|
|
1045
|
+
#
|
|
1046
|
+
# @param request_pb [::Google::Cloud::Observability::V1::CreateBucketRequest]
|
|
1047
|
+
# A request object representing the call parameters. Required.
|
|
1048
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1049
|
+
# Uri, Body, Query string parameters
|
|
1050
|
+
def self.transcode_create_bucket_request request_pb
|
|
1051
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1052
|
+
.with_bindings(
|
|
1053
|
+
uri_method: :post,
|
|
1054
|
+
uri_template: "/v1/{parent}/buckets",
|
|
1055
|
+
body: "bucket",
|
|
1056
|
+
matches: [
|
|
1057
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1058
|
+
]
|
|
1059
|
+
)
|
|
1060
|
+
transcoder.transcode request_pb
|
|
1061
|
+
end
|
|
1062
|
+
|
|
1063
|
+
##
|
|
1064
|
+
# @private
|
|
1065
|
+
#
|
|
1066
|
+
# GRPC transcoding helper method for the update_bucket REST call
|
|
1067
|
+
#
|
|
1068
|
+
# @param request_pb [::Google::Cloud::Observability::V1::UpdateBucketRequest]
|
|
1069
|
+
# A request object representing the call parameters. Required.
|
|
1070
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1071
|
+
# Uri, Body, Query string parameters
|
|
1072
|
+
def self.transcode_update_bucket_request request_pb
|
|
1073
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1074
|
+
.with_bindings(
|
|
1075
|
+
uri_method: :patch,
|
|
1076
|
+
uri_template: "/v1/{bucket.name}",
|
|
1077
|
+
body: "bucket",
|
|
1078
|
+
matches: [
|
|
1079
|
+
["bucket.name", %r{^projects/[^/]+/locations/[^/]+/buckets/[^/]+/?$}, false]
|
|
1080
|
+
]
|
|
1081
|
+
)
|
|
1082
|
+
transcoder.transcode request_pb
|
|
1083
|
+
end
|
|
1084
|
+
|
|
1085
|
+
##
|
|
1086
|
+
# @private
|
|
1087
|
+
#
|
|
1088
|
+
# GRPC transcoding helper method for the get_dataset REST call
|
|
1089
|
+
#
|
|
1090
|
+
# @param request_pb [::Google::Cloud::Observability::V1::GetDatasetRequest]
|
|
1091
|
+
# A request object representing the call parameters. Required.
|
|
1092
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1093
|
+
# Uri, Body, Query string parameters
|
|
1094
|
+
def self.transcode_get_dataset_request request_pb
|
|
1095
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1096
|
+
.with_bindings(
|
|
1097
|
+
uri_method: :get,
|
|
1098
|
+
uri_template: "/v1/{name}",
|
|
1099
|
+
matches: [
|
|
1100
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/buckets/[^/]+/datasets/[^/]+/?$}, false]
|
|
1101
|
+
]
|
|
1102
|
+
)
|
|
1103
|
+
transcoder.transcode request_pb
|
|
1104
|
+
end
|
|
1105
|
+
|
|
1106
|
+
##
|
|
1107
|
+
# @private
|
|
1108
|
+
#
|
|
1109
|
+
# GRPC transcoding helper method for the list_datasets REST call
|
|
1110
|
+
#
|
|
1111
|
+
# @param request_pb [::Google::Cloud::Observability::V1::ListDatasetsRequest]
|
|
1112
|
+
# A request object representing the call parameters. Required.
|
|
1113
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1114
|
+
# Uri, Body, Query string parameters
|
|
1115
|
+
def self.transcode_list_datasets_request request_pb
|
|
1116
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1117
|
+
.with_bindings(
|
|
1118
|
+
uri_method: :get,
|
|
1119
|
+
uri_template: "/v1/{parent}/datasets",
|
|
1120
|
+
matches: [
|
|
1121
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/buckets/[^/]+/?$}, false]
|
|
1122
|
+
]
|
|
1123
|
+
)
|
|
1124
|
+
transcoder.transcode request_pb
|
|
1125
|
+
end
|
|
1126
|
+
|
|
1127
|
+
##
|
|
1128
|
+
# @private
|
|
1129
|
+
#
|
|
1130
|
+
# GRPC transcoding helper method for the get_view REST call
|
|
1131
|
+
#
|
|
1132
|
+
# @param request_pb [::Google::Cloud::Observability::V1::GetViewRequest]
|
|
1133
|
+
# A request object representing the call parameters. Required.
|
|
1134
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1135
|
+
# Uri, Body, Query string parameters
|
|
1136
|
+
def self.transcode_get_view_request request_pb
|
|
1137
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1138
|
+
.with_bindings(
|
|
1139
|
+
uri_method: :get,
|
|
1140
|
+
uri_template: "/v1/{name}",
|
|
1141
|
+
matches: [
|
|
1142
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/buckets/[^/]+/datasets/[^/]+/views/[^/]+/?$}, false]
|
|
1143
|
+
]
|
|
1144
|
+
)
|
|
1145
|
+
transcoder.transcode request_pb
|
|
1146
|
+
end
|
|
1147
|
+
|
|
1148
|
+
##
|
|
1149
|
+
# @private
|
|
1150
|
+
#
|
|
1151
|
+
# GRPC transcoding helper method for the list_views REST call
|
|
1152
|
+
#
|
|
1153
|
+
# @param request_pb [::Google::Cloud::Observability::V1::ListViewsRequest]
|
|
1154
|
+
# A request object representing the call parameters. Required.
|
|
1155
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1156
|
+
# Uri, Body, Query string parameters
|
|
1157
|
+
def self.transcode_list_views_request request_pb
|
|
1158
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1159
|
+
.with_bindings(
|
|
1160
|
+
uri_method: :get,
|
|
1161
|
+
uri_template: "/v1/{parent}/views",
|
|
1162
|
+
matches: [
|
|
1163
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/buckets/[^/]+/datasets/[^/]+/?$}, false]
|
|
1164
|
+
]
|
|
1165
|
+
)
|
|
1166
|
+
transcoder.transcode request_pb
|
|
1167
|
+
end
|
|
1168
|
+
|
|
1169
|
+
##
|
|
1170
|
+
# @private
|
|
1171
|
+
#
|
|
1172
|
+
# GRPC transcoding helper method for the get_link REST call
|
|
1173
|
+
#
|
|
1174
|
+
# @param request_pb [::Google::Cloud::Observability::V1::GetLinkRequest]
|
|
1175
|
+
# A request object representing the call parameters. Required.
|
|
1176
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1177
|
+
# Uri, Body, Query string parameters
|
|
1178
|
+
def self.transcode_get_link_request request_pb
|
|
1179
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1180
|
+
.with_bindings(
|
|
1181
|
+
uri_method: :get,
|
|
1182
|
+
uri_template: "/v1/{name}",
|
|
1183
|
+
matches: [
|
|
1184
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/buckets/[^/]+/datasets/[^/]+/links/[^/]+/?$}, false]
|
|
1185
|
+
]
|
|
1186
|
+
)
|
|
1187
|
+
transcoder.transcode request_pb
|
|
1188
|
+
end
|
|
1189
|
+
|
|
1190
|
+
##
|
|
1191
|
+
# @private
|
|
1192
|
+
#
|
|
1193
|
+
# GRPC transcoding helper method for the list_links REST call
|
|
1194
|
+
#
|
|
1195
|
+
# @param request_pb [::Google::Cloud::Observability::V1::ListLinksRequest]
|
|
1196
|
+
# A request object representing the call parameters. Required.
|
|
1197
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1198
|
+
# Uri, Body, Query string parameters
|
|
1199
|
+
def self.transcode_list_links_request request_pb
|
|
1200
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1201
|
+
.with_bindings(
|
|
1202
|
+
uri_method: :get,
|
|
1203
|
+
uri_template: "/v1/{parent}/links",
|
|
1204
|
+
matches: [
|
|
1205
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/buckets/[^/]+/datasets/[^/]+/?$}, false]
|
|
1206
|
+
]
|
|
1207
|
+
)
|
|
1208
|
+
transcoder.transcode request_pb
|
|
1209
|
+
end
|
|
1210
|
+
|
|
1211
|
+
##
|
|
1212
|
+
# @private
|
|
1213
|
+
#
|
|
1214
|
+
# GRPC transcoding helper method for the create_link REST call
|
|
1215
|
+
#
|
|
1216
|
+
# @param request_pb [::Google::Cloud::Observability::V1::CreateLinkRequest]
|
|
1217
|
+
# A request object representing the call parameters. Required.
|
|
1218
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1219
|
+
# Uri, Body, Query string parameters
|
|
1220
|
+
def self.transcode_create_link_request request_pb
|
|
1221
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1222
|
+
.with_bindings(
|
|
1223
|
+
uri_method: :post,
|
|
1224
|
+
uri_template: "/v1/{parent}/links",
|
|
1225
|
+
body: "link",
|
|
1226
|
+
matches: [
|
|
1227
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/buckets/[^/]+/datasets/[^/]+/?$}, false]
|
|
1228
|
+
]
|
|
1229
|
+
)
|
|
1230
|
+
transcoder.transcode request_pb
|
|
1231
|
+
end
|
|
1232
|
+
|
|
1233
|
+
##
|
|
1234
|
+
# @private
|
|
1235
|
+
#
|
|
1236
|
+
# GRPC transcoding helper method for the update_link REST call
|
|
1237
|
+
#
|
|
1238
|
+
# @param request_pb [::Google::Cloud::Observability::V1::UpdateLinkRequest]
|
|
1239
|
+
# A request object representing the call parameters. Required.
|
|
1240
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1241
|
+
# Uri, Body, Query string parameters
|
|
1242
|
+
def self.transcode_update_link_request request_pb
|
|
1243
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1244
|
+
.with_bindings(
|
|
1245
|
+
uri_method: :patch,
|
|
1246
|
+
uri_template: "/v1/{link.name}",
|
|
1247
|
+
body: "link",
|
|
1248
|
+
matches: [
|
|
1249
|
+
["link.name", %r{^projects/[^/]+/locations/[^/]+/buckets/[^/]+/datasets/[^/]+/links/[^/]+/?$}, false]
|
|
1250
|
+
]
|
|
1251
|
+
)
|
|
1252
|
+
transcoder.transcode request_pb
|
|
1253
|
+
end
|
|
1254
|
+
|
|
1255
|
+
##
|
|
1256
|
+
# @private
|
|
1257
|
+
#
|
|
1258
|
+
# GRPC transcoding helper method for the delete_link REST call
|
|
1259
|
+
#
|
|
1260
|
+
# @param request_pb [::Google::Cloud::Observability::V1::DeleteLinkRequest]
|
|
1261
|
+
# A request object representing the call parameters. Required.
|
|
1262
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1263
|
+
# Uri, Body, Query string parameters
|
|
1264
|
+
def self.transcode_delete_link_request request_pb
|
|
1265
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1266
|
+
.with_bindings(
|
|
1267
|
+
uri_method: :delete,
|
|
1268
|
+
uri_template: "/v1/{name}",
|
|
1269
|
+
matches: [
|
|
1270
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/buckets/[^/]+/datasets/[^/]+/links/[^/]+/?$}, false]
|
|
1271
|
+
]
|
|
1272
|
+
)
|
|
1273
|
+
transcoder.transcode request_pb
|
|
1274
|
+
end
|
|
1275
|
+
|
|
1276
|
+
##
|
|
1277
|
+
# @private
|
|
1278
|
+
#
|
|
1279
|
+
# GRPC transcoding helper method for the get_trace_scope REST call
|
|
1280
|
+
#
|
|
1281
|
+
# @param request_pb [::Google::Cloud::Observability::V1::GetTraceScopeRequest]
|
|
1282
|
+
# A request object representing the call parameters. Required.
|
|
1283
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1284
|
+
# Uri, Body, Query string parameters
|
|
1285
|
+
def self.transcode_get_trace_scope_request request_pb
|
|
1286
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1287
|
+
.with_bindings(
|
|
1288
|
+
uri_method: :get,
|
|
1289
|
+
uri_template: "/v1/{name}",
|
|
1290
|
+
matches: [
|
|
1291
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/traceScopes/[^/]+/?$}, false]
|
|
1292
|
+
]
|
|
1293
|
+
)
|
|
1294
|
+
transcoder.transcode request_pb
|
|
1295
|
+
end
|
|
1296
|
+
|
|
1297
|
+
##
|
|
1298
|
+
# @private
|
|
1299
|
+
#
|
|
1300
|
+
# GRPC transcoding helper method for the list_trace_scopes REST call
|
|
1301
|
+
#
|
|
1302
|
+
# @param request_pb [::Google::Cloud::Observability::V1::ListTraceScopesRequest]
|
|
1303
|
+
# A request object representing the call parameters. Required.
|
|
1304
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1305
|
+
# Uri, Body, Query string parameters
|
|
1306
|
+
def self.transcode_list_trace_scopes_request request_pb
|
|
1307
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1308
|
+
.with_bindings(
|
|
1309
|
+
uri_method: :get,
|
|
1310
|
+
uri_template: "/v1/{parent}/traceScopes",
|
|
1311
|
+
matches: [
|
|
1312
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1313
|
+
]
|
|
1314
|
+
)
|
|
1315
|
+
transcoder.transcode request_pb
|
|
1316
|
+
end
|
|
1317
|
+
|
|
1318
|
+
##
|
|
1319
|
+
# @private
|
|
1320
|
+
#
|
|
1321
|
+
# GRPC transcoding helper method for the create_trace_scope REST call
|
|
1322
|
+
#
|
|
1323
|
+
# @param request_pb [::Google::Cloud::Observability::V1::CreateTraceScopeRequest]
|
|
1324
|
+
# A request object representing the call parameters. Required.
|
|
1325
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1326
|
+
# Uri, Body, Query string parameters
|
|
1327
|
+
def self.transcode_create_trace_scope_request request_pb
|
|
1328
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1329
|
+
.with_bindings(
|
|
1330
|
+
uri_method: :post,
|
|
1331
|
+
uri_template: "/v1/{parent}/traceScopes",
|
|
1332
|
+
body: "trace_scope",
|
|
1333
|
+
matches: [
|
|
1334
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1335
|
+
]
|
|
1336
|
+
)
|
|
1337
|
+
transcoder.transcode request_pb
|
|
1338
|
+
end
|
|
1339
|
+
|
|
1340
|
+
##
|
|
1341
|
+
# @private
|
|
1342
|
+
#
|
|
1343
|
+
# GRPC transcoding helper method for the update_trace_scope REST call
|
|
1344
|
+
#
|
|
1345
|
+
# @param request_pb [::Google::Cloud::Observability::V1::UpdateTraceScopeRequest]
|
|
1346
|
+
# A request object representing the call parameters. Required.
|
|
1347
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1348
|
+
# Uri, Body, Query string parameters
|
|
1349
|
+
def self.transcode_update_trace_scope_request request_pb
|
|
1350
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1351
|
+
.with_bindings(
|
|
1352
|
+
uri_method: :patch,
|
|
1353
|
+
uri_template: "/v1/{trace_scope.name}",
|
|
1354
|
+
body: "trace_scope",
|
|
1355
|
+
matches: [
|
|
1356
|
+
["trace_scope.name", %r{^projects/[^/]+/locations/[^/]+/traceScopes/[^/]+/?$}, false]
|
|
1357
|
+
]
|
|
1358
|
+
)
|
|
1359
|
+
transcoder.transcode request_pb
|
|
1360
|
+
end
|
|
1361
|
+
|
|
1362
|
+
##
|
|
1363
|
+
# @private
|
|
1364
|
+
#
|
|
1365
|
+
# GRPC transcoding helper method for the delete_trace_scope REST call
|
|
1366
|
+
#
|
|
1367
|
+
# @param request_pb [::Google::Cloud::Observability::V1::DeleteTraceScopeRequest]
|
|
1368
|
+
# A request object representing the call parameters. Required.
|
|
1369
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1370
|
+
# Uri, Body, Query string parameters
|
|
1371
|
+
def self.transcode_delete_trace_scope_request request_pb
|
|
1372
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1373
|
+
.with_bindings(
|
|
1374
|
+
uri_method: :delete,
|
|
1375
|
+
uri_template: "/v1/{name}",
|
|
1376
|
+
matches: [
|
|
1377
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/traceScopes/[^/]+/?$}, false]
|
|
1378
|
+
]
|
|
1379
|
+
)
|
|
1380
|
+
transcoder.transcode request_pb
|
|
1381
|
+
end
|
|
1382
|
+
|
|
1383
|
+
##
|
|
1384
|
+
# @private
|
|
1385
|
+
#
|
|
1386
|
+
# GRPC transcoding helper method for the get_settings REST call
|
|
1387
|
+
#
|
|
1388
|
+
# @param request_pb [::Google::Cloud::Observability::V1::GetSettingsRequest]
|
|
1389
|
+
# A request object representing the call parameters. Required.
|
|
1390
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1391
|
+
# Uri, Body, Query string parameters
|
|
1392
|
+
def self.transcode_get_settings_request request_pb
|
|
1393
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1394
|
+
.with_bindings(
|
|
1395
|
+
uri_method: :get,
|
|
1396
|
+
uri_template: "/v1/{name}",
|
|
1397
|
+
matches: [
|
|
1398
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/settings/?$}, false]
|
|
1399
|
+
]
|
|
1400
|
+
)
|
|
1401
|
+
.with_bindings(
|
|
1402
|
+
uri_method: :get,
|
|
1403
|
+
uri_template: "/v1/{name}",
|
|
1404
|
+
matches: [
|
|
1405
|
+
["name", %r{^folders/[^/]+/locations/[^/]+/settings/?$}, false]
|
|
1406
|
+
]
|
|
1407
|
+
)
|
|
1408
|
+
.with_bindings(
|
|
1409
|
+
uri_method: :get,
|
|
1410
|
+
uri_template: "/v1/{name}",
|
|
1411
|
+
matches: [
|
|
1412
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/settings/?$}, false]
|
|
1413
|
+
]
|
|
1414
|
+
)
|
|
1415
|
+
transcoder.transcode request_pb
|
|
1416
|
+
end
|
|
1417
|
+
|
|
1418
|
+
##
|
|
1419
|
+
# @private
|
|
1420
|
+
#
|
|
1421
|
+
# GRPC transcoding helper method for the update_settings REST call
|
|
1422
|
+
#
|
|
1423
|
+
# @param request_pb [::Google::Cloud::Observability::V1::UpdateSettingsRequest]
|
|
1424
|
+
# A request object representing the call parameters. Required.
|
|
1425
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1426
|
+
# Uri, Body, Query string parameters
|
|
1427
|
+
def self.transcode_update_settings_request request_pb
|
|
1428
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1429
|
+
.with_bindings(
|
|
1430
|
+
uri_method: :patch,
|
|
1431
|
+
uri_template: "/v1/{settings.name}",
|
|
1432
|
+
body: "settings",
|
|
1433
|
+
matches: [
|
|
1434
|
+
["settings.name", %r{^projects/[^/]+/locations/[^/]+/settings/?$}, false]
|
|
1435
|
+
]
|
|
1436
|
+
)
|
|
1437
|
+
.with_bindings(
|
|
1438
|
+
uri_method: :patch,
|
|
1439
|
+
uri_template: "/v1/{settings.name}",
|
|
1440
|
+
body: "settings",
|
|
1441
|
+
matches: [
|
|
1442
|
+
["settings.name", %r{^folders/[^/]+/locations/[^/]+/settings/?$}, false]
|
|
1443
|
+
]
|
|
1444
|
+
)
|
|
1445
|
+
.with_bindings(
|
|
1446
|
+
uri_method: :patch,
|
|
1447
|
+
uri_template: "/v1/{settings.name}",
|
|
1448
|
+
body: "settings",
|
|
1449
|
+
matches: [
|
|
1450
|
+
["settings.name", %r{^organizations/[^/]+/locations/[^/]+/settings/?$}, false]
|
|
1451
|
+
]
|
|
1452
|
+
)
|
|
1453
|
+
transcoder.transcode request_pb
|
|
1454
|
+
end
|
|
1455
|
+
end
|
|
1456
|
+
end
|
|
1457
|
+
end
|
|
1458
|
+
end
|
|
1459
|
+
end
|
|
1460
|
+
end
|
|
1461
|
+
end
|