google-cloud-monitoring-metrics_scope-v1 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +11 -6
- data/lib/google/cloud/monitoring/metrics_scope/v1/metrics_scopes/client.rb +90 -9
- data/lib/google/cloud/monitoring/metrics_scope/v1/metrics_scopes/operations.rb +118 -12
- data/lib/google/cloud/monitoring/metrics_scope/v1/version.rb +1 -1
- data/lib/google/cloud/monitoring/metrics_scope/v1.rb +2 -0
- data/lib/google/monitoring/metricsscope/v1/metrics_scope_pb.rb +2 -1
- data/lib/google/monitoring/metricsscope/v1/metrics_scopes_pb.rb +2 -1
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/protobuf/any.rb +3 -3
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9e495a823312c248e214247626904cc1abc170f92ea2e183287a1476007f271
|
4
|
+
data.tar.gz: adab468588de11ec0ac3d01cd73c395a39ea77b2db3f4795e7a96193cab8bfdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdefdafff40a5e62b8d6a4e4759baa5bad2897120b00d8f66665b5bcb0af386d40116a114503f85aa7fe19676f8e231e04d78c1204efafe7201ad4b6c8a31fb0
|
7
|
+
data.tar.gz: '03902863b303851cb5ab9ab39271ab76dbdd490f390de948236b764d648aa04273148434f4110a7c43d3f4a2512d364cc09311914ccd50bb5ad145177f2faf2e'
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -118,15 +118,6 @@ To configure your system for this, simply:
|
|
118
118
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
119
119
|
*should* only be used during development.
|
120
120
|
|
121
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
122
|
-
[dev-console]: https://console.cloud.google.com/project
|
123
|
-
|
124
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
125
|
-
|
126
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
127
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
128
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
129
|
-
|
130
121
|
## Creating a Service Account
|
131
122
|
|
132
123
|
Google Cloud requires **Service Account Credentials** to
|
@@ -137,31 +128,22 @@ If you are not running this client within
|
|
137
128
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
138
129
|
need a Google Developers service account.
|
139
130
|
|
140
|
-
1. Visit the [Google
|
131
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
141
132
|
2. Create a new project or click on an existing project.
|
142
|
-
3. Activate the
|
133
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
143
134
|
here, you will enable the APIs that your application requires.
|
144
135
|
|
145
|
-
![Enable the APIs that your application requires][enable-apis]
|
146
|
-
|
147
136
|
*Note: You may need to enable billing in order to use these services.*
|
148
137
|
|
149
138
|
4. Select **Credentials** from the side navigation.
|
150
139
|
|
151
|
-
|
152
|
-
|
153
|
-
![Create a new service account][create-new-service-account]
|
154
|
-
|
155
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
156
|
-
|
157
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
158
|
-
guided through downloading a new JSON key file.
|
140
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
141
|
+
"Service account" to be guided through downloading a new JSON key file.
|
159
142
|
|
160
143
|
If you want to re-use an existing service account, you can easily generate a
|
161
|
-
new key file. Just select the account you wish to re-use,
|
162
|
-
|
163
|
-
|
164
|
-
![Re-use an existing service account][reuse-service-account]
|
144
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
145
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
146
|
+
and then select **Add Key**.
|
165
147
|
|
166
148
|
The key file you download will be used by this library to authenticate API
|
167
149
|
requests and should be stored in a secure location.
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Monitoring::MetricsScope::V1::GetMetricsScopeRequest.
|
|
37
37
|
response = client.get_metrics_scope request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-monitoring-metrics_scope-v1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/monitoring/settings/manage-api)
|
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -137,6 +137,7 @@ module Google
|
|
137
137
|
|
138
138
|
@operations_client = Operations.new do |config|
|
139
139
|
config.credentials = credentials
|
140
|
+
config.quota_project = @quota_project_id
|
140
141
|
config.endpoint = @config.endpoint
|
141
142
|
end
|
142
143
|
|
@@ -189,6 +190,21 @@ module Google
|
|
189
190
|
#
|
190
191
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
191
192
|
#
|
193
|
+
# @example Basic example
|
194
|
+
# require "google/cloud/monitoring/metrics_scope/v1"
|
195
|
+
#
|
196
|
+
# # Create a client object. The client can be reused for multiple calls.
|
197
|
+
# client = Google::Cloud::Monitoring::MetricsScope::V1::MetricsScopes::Client.new
|
198
|
+
#
|
199
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
200
|
+
# request = Google::Cloud::Monitoring::MetricsScope::V1::GetMetricsScopeRequest.new
|
201
|
+
#
|
202
|
+
# # Call the get_metrics_scope method.
|
203
|
+
# result = client.get_metrics_scope request
|
204
|
+
#
|
205
|
+
# # The returned object is of type Google::Cloud::Monitoring::MetricsScope::V1::MetricsScope.
|
206
|
+
# p result
|
207
|
+
#
|
192
208
|
def get_metrics_scope request, options = nil
|
193
209
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
194
210
|
|
@@ -206,9 +222,11 @@ module Google
|
|
206
222
|
gapic_version: ::Google::Cloud::Monitoring::MetricsScope::V1::VERSION
|
207
223
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
208
224
|
|
209
|
-
header_params = {
|
210
|
-
|
211
|
-
|
225
|
+
header_params = {}
|
226
|
+
if request.name
|
227
|
+
header_params["name"] = request.name
|
228
|
+
end
|
229
|
+
|
212
230
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
213
231
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
214
232
|
|
@@ -261,6 +279,21 @@ module Google
|
|
261
279
|
#
|
262
280
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
263
281
|
#
|
282
|
+
# @example Basic example
|
283
|
+
# require "google/cloud/monitoring/metrics_scope/v1"
|
284
|
+
#
|
285
|
+
# # Create a client object. The client can be reused for multiple calls.
|
286
|
+
# client = Google::Cloud::Monitoring::MetricsScope::V1::MetricsScopes::Client.new
|
287
|
+
#
|
288
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
289
|
+
# request = Google::Cloud::Monitoring::MetricsScope::V1::ListMetricsScopesByMonitoredProjectRequest.new
|
290
|
+
#
|
291
|
+
# # Call the list_metrics_scopes_by_monitored_project method.
|
292
|
+
# result = client.list_metrics_scopes_by_monitored_project request
|
293
|
+
#
|
294
|
+
# # The returned object is of type Google::Cloud::Monitoring::MetricsScope::V1::ListMetricsScopesByMonitoredProjectResponse.
|
295
|
+
# p result
|
296
|
+
#
|
264
297
|
def list_metrics_scopes_by_monitored_project request, options = nil
|
265
298
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
266
299
|
|
@@ -332,6 +365,28 @@ module Google
|
|
332
365
|
#
|
333
366
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
334
367
|
#
|
368
|
+
# @example Basic example
|
369
|
+
# require "google/cloud/monitoring/metrics_scope/v1"
|
370
|
+
#
|
371
|
+
# # Create a client object. The client can be reused for multiple calls.
|
372
|
+
# client = Google::Cloud::Monitoring::MetricsScope::V1::MetricsScopes::Client.new
|
373
|
+
#
|
374
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
375
|
+
# request = Google::Cloud::Monitoring::MetricsScope::V1::CreateMonitoredProjectRequest.new
|
376
|
+
#
|
377
|
+
# # Call the create_monitored_project method.
|
378
|
+
# result = client.create_monitored_project request
|
379
|
+
#
|
380
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
381
|
+
# # object to check the status of an operation, cancel it, or wait
|
382
|
+
# # for results. Here is how to block until completion:
|
383
|
+
# result.wait_until_done! timeout: 60
|
384
|
+
# if result.response?
|
385
|
+
# p result.response
|
386
|
+
# else
|
387
|
+
# puts "Error!"
|
388
|
+
# end
|
389
|
+
#
|
335
390
|
def create_monitored_project request, options = nil
|
336
391
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
337
392
|
|
@@ -349,9 +404,11 @@ module Google
|
|
349
404
|
gapic_version: ::Google::Cloud::Monitoring::MetricsScope::V1::VERSION
|
350
405
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
351
406
|
|
352
|
-
header_params = {
|
353
|
-
|
354
|
-
|
407
|
+
header_params = {}
|
408
|
+
if request.parent
|
409
|
+
header_params["parent"] = request.parent
|
410
|
+
end
|
411
|
+
|
355
412
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
356
413
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
357
414
|
|
@@ -407,6 +464,28 @@ module Google
|
|
407
464
|
#
|
408
465
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
409
466
|
#
|
467
|
+
# @example Basic example
|
468
|
+
# require "google/cloud/monitoring/metrics_scope/v1"
|
469
|
+
#
|
470
|
+
# # Create a client object. The client can be reused for multiple calls.
|
471
|
+
# client = Google::Cloud::Monitoring::MetricsScope::V1::MetricsScopes::Client.new
|
472
|
+
#
|
473
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
474
|
+
# request = Google::Cloud::Monitoring::MetricsScope::V1::DeleteMonitoredProjectRequest.new
|
475
|
+
#
|
476
|
+
# # Call the delete_monitored_project method.
|
477
|
+
# result = client.delete_monitored_project request
|
478
|
+
#
|
479
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
480
|
+
# # object to check the status of an operation, cancel it, or wait
|
481
|
+
# # for results. Here is how to block until completion:
|
482
|
+
# result.wait_until_done! timeout: 60
|
483
|
+
# if result.response?
|
484
|
+
# p result.response
|
485
|
+
# else
|
486
|
+
# puts "Error!"
|
487
|
+
# end
|
488
|
+
#
|
410
489
|
def delete_monitored_project request, options = nil
|
411
490
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
412
491
|
|
@@ -424,9 +503,11 @@ module Google
|
|
424
503
|
gapic_version: ::Google::Cloud::Monitoring::MetricsScope::V1::VERSION
|
425
504
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
426
505
|
|
427
|
-
header_params = {
|
428
|
-
|
429
|
-
|
506
|
+
header_params = {}
|
507
|
+
if request.name
|
508
|
+
header_params["name"] = request.name
|
509
|
+
end
|
510
|
+
|
430
511
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
431
512
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
432
513
|
|
@@ -96,6 +96,9 @@ module Google
|
|
96
96
|
channel_args: @config.channel_args,
|
97
97
|
interceptors: @config.interceptors
|
98
98
|
)
|
99
|
+
|
100
|
+
# Used by an LRO wrapper for some methods of this service
|
101
|
+
@operations_client = self
|
99
102
|
end
|
100
103
|
|
101
104
|
# Service calls
|
@@ -144,6 +147,27 @@ module Google
|
|
144
147
|
#
|
145
148
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
146
149
|
#
|
150
|
+
# @example Basic example
|
151
|
+
# require "google/longrunning"
|
152
|
+
#
|
153
|
+
# # Create a client object. The client can be reused for multiple calls.
|
154
|
+
# client = Google::Longrunning::Operations::Client.new
|
155
|
+
#
|
156
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
157
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
158
|
+
#
|
159
|
+
# # Call the list_operations method.
|
160
|
+
# result = client.list_operations request
|
161
|
+
#
|
162
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
163
|
+
# # iterate over all elements by calling #each, and the enumerable
|
164
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
165
|
+
# # methods are also available for managing paging directly.
|
166
|
+
# result.each do |response|
|
167
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
168
|
+
# p response
|
169
|
+
# end
|
170
|
+
#
|
147
171
|
def list_operations request, options = nil
|
148
172
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
149
173
|
|
@@ -161,9 +185,11 @@ module Google
|
|
161
185
|
gapic_version: ::Google::Cloud::Monitoring::MetricsScope::V1::VERSION
|
162
186
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
163
187
|
|
164
|
-
header_params = {
|
165
|
-
|
166
|
-
|
188
|
+
header_params = {}
|
189
|
+
if request.name
|
190
|
+
header_params["name"] = request.name
|
191
|
+
end
|
192
|
+
|
167
193
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
168
194
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
169
195
|
|
@@ -216,6 +242,28 @@ module Google
|
|
216
242
|
#
|
217
243
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
218
244
|
#
|
245
|
+
# @example Basic example
|
246
|
+
# require "google/longrunning"
|
247
|
+
#
|
248
|
+
# # Create a client object. The client can be reused for multiple calls.
|
249
|
+
# client = Google::Longrunning::Operations::Client.new
|
250
|
+
#
|
251
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
252
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
253
|
+
#
|
254
|
+
# # Call the get_operation method.
|
255
|
+
# result = client.get_operation request
|
256
|
+
#
|
257
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
258
|
+
# # object to check the status of an operation, cancel it, or wait
|
259
|
+
# # for results. Here is how to block until completion:
|
260
|
+
# result.wait_until_done! timeout: 60
|
261
|
+
# if result.response?
|
262
|
+
# p result.response
|
263
|
+
# else
|
264
|
+
# puts "Error!"
|
265
|
+
# end
|
266
|
+
#
|
219
267
|
def get_operation request, options = nil
|
220
268
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
221
269
|
|
@@ -233,9 +281,11 @@ module Google
|
|
233
281
|
gapic_version: ::Google::Cloud::Monitoring::MetricsScope::V1::VERSION
|
234
282
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
235
283
|
|
236
|
-
header_params = {
|
237
|
-
|
238
|
-
|
284
|
+
header_params = {}
|
285
|
+
if request.name
|
286
|
+
header_params["name"] = request.name
|
287
|
+
end
|
288
|
+
|
239
289
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
240
290
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
241
291
|
|
@@ -288,6 +338,21 @@ module Google
|
|
288
338
|
#
|
289
339
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
290
340
|
#
|
341
|
+
# @example Basic example
|
342
|
+
# require "google/longrunning"
|
343
|
+
#
|
344
|
+
# # Create a client object. The client can be reused for multiple calls.
|
345
|
+
# client = Google::Longrunning::Operations::Client.new
|
346
|
+
#
|
347
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
348
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
349
|
+
#
|
350
|
+
# # Call the delete_operation method.
|
351
|
+
# result = client.delete_operation request
|
352
|
+
#
|
353
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
354
|
+
# p result
|
355
|
+
#
|
291
356
|
def delete_operation request, options = nil
|
292
357
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
293
358
|
|
@@ -305,9 +370,11 @@ module Google
|
|
305
370
|
gapic_version: ::Google::Cloud::Monitoring::MetricsScope::V1::VERSION
|
306
371
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
307
372
|
|
308
|
-
header_params = {
|
309
|
-
|
310
|
-
|
373
|
+
header_params = {}
|
374
|
+
if request.name
|
375
|
+
header_params["name"] = request.name
|
376
|
+
end
|
377
|
+
|
311
378
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
312
379
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
313
380
|
|
@@ -365,6 +432,21 @@ module Google
|
|
365
432
|
#
|
366
433
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
367
434
|
#
|
435
|
+
# @example Basic example
|
436
|
+
# require "google/longrunning"
|
437
|
+
#
|
438
|
+
# # Create a client object. The client can be reused for multiple calls.
|
439
|
+
# client = Google::Longrunning::Operations::Client.new
|
440
|
+
#
|
441
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
442
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
443
|
+
#
|
444
|
+
# # Call the cancel_operation method.
|
445
|
+
# result = client.cancel_operation request
|
446
|
+
#
|
447
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
448
|
+
# p result
|
449
|
+
#
|
368
450
|
def cancel_operation request, options = nil
|
369
451
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
370
452
|
|
@@ -382,9 +464,11 @@ module Google
|
|
382
464
|
gapic_version: ::Google::Cloud::Monitoring::MetricsScope::V1::VERSION
|
383
465
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
384
466
|
|
385
|
-
header_params = {
|
386
|
-
|
387
|
-
|
467
|
+
header_params = {}
|
468
|
+
if request.name
|
469
|
+
header_params["name"] = request.name
|
470
|
+
end
|
471
|
+
|
388
472
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
389
473
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
390
474
|
|
@@ -445,6 +529,28 @@ module Google
|
|
445
529
|
#
|
446
530
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
447
531
|
#
|
532
|
+
# @example Basic example
|
533
|
+
# require "google/longrunning"
|
534
|
+
#
|
535
|
+
# # Create a client object. The client can be reused for multiple calls.
|
536
|
+
# client = Google::Longrunning::Operations::Client.new
|
537
|
+
#
|
538
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
539
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
540
|
+
#
|
541
|
+
# # Call the wait_operation method.
|
542
|
+
# result = client.wait_operation request
|
543
|
+
#
|
544
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
545
|
+
# # object to check the status of an operation, cancel it, or wait
|
546
|
+
# # for results. Here is how to block until completion:
|
547
|
+
# result.wait_until_done! timeout: 60
|
548
|
+
# if result.response?
|
549
|
+
# p result.response
|
550
|
+
# else
|
551
|
+
# puts "Error!"
|
552
|
+
# end
|
553
|
+
#
|
448
554
|
def wait_operation request, options = nil
|
449
555
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
450
556
|
|
@@ -26,6 +26,8 @@ module Google
|
|
26
26
|
##
|
27
27
|
# To load this package, including all its services, and instantiate a client:
|
28
28
|
#
|
29
|
+
# @example
|
30
|
+
#
|
29
31
|
# require "google/cloud/monitoring/metrics_scope/v1"
|
30
32
|
# client = ::Google::Cloud::Monitoring::MetricsScope::V1::MetricsScopes::Client.new
|
31
33
|
#
|
@@ -1,10 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/monitoring/metricsscope/v1/metrics_scope.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/field_behavior_pb'
|
5
7
|
require 'google/api/resource_pb'
|
6
8
|
require 'google/protobuf/timestamp_pb'
|
7
|
-
require 'google/protobuf'
|
8
9
|
|
9
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
11
|
add_file("google/monitoring/metricsscope/v1/metrics_scope.proto", :syntax => :proto3) do
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/monitoring/metricsscope/v1/metrics_scopes.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
@@ -8,7 +10,6 @@ require 'google/api/resource_pb'
|
|
8
10
|
require 'google/longrunning/operations_pb'
|
9
11
|
require 'google/monitoring/metricsscope/v1/metrics_scope_pb'
|
10
12
|
require 'google/protobuf/timestamp_pb'
|
11
|
-
require 'google/protobuf'
|
12
13
|
|
13
14
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
15
|
add_file("google/monitoring/metricsscope/v1/metrics_scopes.proto", :syntax => :proto3) do
|
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|
@@ -44,7 +44,7 @@ module Google
|
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# Example 3: Pack and unpack a message in Python.
|
48
48
|
#
|
49
49
|
# foo = Foo(...)
|
50
50
|
# any = Any()
|
@@ -54,7 +54,7 @@ module Google
|
|
54
54
|
# any.Unpack(foo)
|
55
55
|
# ...
|
56
56
|
#
|
57
|
-
#
|
57
|
+
# Example 4: Pack and unpack a message in Go
|
58
58
|
#
|
59
59
|
# foo := &pb.Foo{...}
|
60
60
|
# any, err := anypb.New(foo)
|
@@ -75,7 +75,7 @@ module Google
|
|
75
75
|
#
|
76
76
|
#
|
77
77
|
# JSON
|
78
|
-
#
|
78
|
+
#
|
79
79
|
# The JSON representation of an `Any` value uses the regular
|
80
80
|
# representation of the deserialized, embedded message, with an
|
81
81
|
# additional field `@type` which contains the type URL. Example:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-monitoring-metrics_scope-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.10'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.10'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,28 +50,28 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
53
|
+
version: 1.26.1
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.
|
60
|
+
version: 1.26.1
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '5.
|
67
|
+
version: '5.16'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '5.
|
74
|
+
version: '5.16'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: minitest-focus
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +106,14 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '13.0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '13.0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: redcarpet
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -205,14 +205,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
205
205
|
requirements:
|
206
206
|
- - ">="
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version: '2.
|
208
|
+
version: '2.6'
|
209
209
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
210
|
requirements:
|
211
211
|
- - ">="
|
212
212
|
- !ruby/object:Gem::Version
|
213
213
|
version: '0'
|
214
214
|
requirements: []
|
215
|
-
rubygems_version: 3.
|
215
|
+
rubygems_version: 3.3.14
|
216
216
|
signing_key:
|
217
217
|
specification_version: 4
|
218
218
|
summary: API Client library for the Cloud Monitoring Metrics Scopes V1 API
|