google-cloud-resource_settings-v1 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/resource_settings/v1/resource_settings_service/client.rb +66 -9
- data/lib/google/cloud/resource_settings/v1/version.rb +1 -1
- data/lib/google/cloud/resourcesettings/v1/resource_settings_pb.rb +2 -2
- data/lib/google/cloud/resourcesettings/v1/resource_settings_services_pb.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a45502cd027564b1abc9a4277f7f771be7f2bd1856c6795ebf7c07b4391af7f
|
4
|
+
data.tar.gz: d1e53914b690e500f0159d093490ffa6365c7a3dd27c5b9731ae78f03a9463f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93d1929fb1b0c1d61dd9cb12948c4a75a6c29832f41ae324fc378f8f80b94db3b24b7cba5bad05ad3eb15bd17c16c06afa9755e1347a8a8920c372d0d938e330
|
7
|
+
data.tar.gz: fa6af759eb6701e72662ee40e7e84653e7f31b5af62fe8c41e57ca62efc201324ed59ada2cf7920b2409ffdd4e16ab9c5196bb2766d592f0262838e967392fc7
|
@@ -211,6 +211,27 @@ module Google
|
|
211
211
|
#
|
212
212
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
213
213
|
#
|
214
|
+
# @example Basic example
|
215
|
+
# require "google/cloud/resource_settings/v1"
|
216
|
+
#
|
217
|
+
# # Create a client object. The client can be reused for multiple calls.
|
218
|
+
# client = Google::Cloud::ResourceSettings::V1::ResourceSettingsService::Client.new
|
219
|
+
#
|
220
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
221
|
+
# request = Google::Cloud::ResourceSettings::V1::ListSettingsRequest.new
|
222
|
+
#
|
223
|
+
# # Call the list_settings method.
|
224
|
+
# result = client.list_settings request
|
225
|
+
#
|
226
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
227
|
+
# # iterate over all elements by calling #each, and the enumerable
|
228
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
229
|
+
# # methods are also available for managing paging directly.
|
230
|
+
# result.each do |response|
|
231
|
+
# # Each element is of type ::Google::Cloud::ResourceSettings::V1::Setting.
|
232
|
+
# p response
|
233
|
+
# end
|
234
|
+
#
|
214
235
|
def list_settings request, options = nil
|
215
236
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
216
237
|
|
@@ -228,9 +249,11 @@ module Google
|
|
228
249
|
gapic_version: ::Google::Cloud::ResourceSettings::V1::VERSION
|
229
250
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
230
251
|
|
231
|
-
header_params = {
|
232
|
-
|
233
|
-
|
252
|
+
header_params = {}
|
253
|
+
if request.parent
|
254
|
+
header_params["parent"] = request.parent
|
255
|
+
end
|
256
|
+
|
234
257
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
235
258
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
236
259
|
|
@@ -286,6 +309,21 @@ module Google
|
|
286
309
|
#
|
287
310
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
288
311
|
#
|
312
|
+
# @example Basic example
|
313
|
+
# require "google/cloud/resource_settings/v1"
|
314
|
+
#
|
315
|
+
# # Create a client object. The client can be reused for multiple calls.
|
316
|
+
# client = Google::Cloud::ResourceSettings::V1::ResourceSettingsService::Client.new
|
317
|
+
#
|
318
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
319
|
+
# request = Google::Cloud::ResourceSettings::V1::GetSettingRequest.new
|
320
|
+
#
|
321
|
+
# # Call the get_setting method.
|
322
|
+
# result = client.get_setting request
|
323
|
+
#
|
324
|
+
# # The returned object is of type Google::Cloud::ResourceSettings::V1::Setting.
|
325
|
+
# p result
|
326
|
+
#
|
289
327
|
def get_setting request, options = nil
|
290
328
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
291
329
|
|
@@ -303,9 +341,11 @@ module Google
|
|
303
341
|
gapic_version: ::Google::Cloud::ResourceSettings::V1::VERSION
|
304
342
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
305
343
|
|
306
|
-
header_params = {
|
307
|
-
|
308
|
-
|
344
|
+
header_params = {}
|
345
|
+
if request.name
|
346
|
+
header_params["name"] = request.name
|
347
|
+
end
|
348
|
+
|
309
349
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
310
350
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
311
351
|
|
@@ -369,6 +409,21 @@ module Google
|
|
369
409
|
#
|
370
410
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
371
411
|
#
|
412
|
+
# @example Basic example
|
413
|
+
# require "google/cloud/resource_settings/v1"
|
414
|
+
#
|
415
|
+
# # Create a client object. The client can be reused for multiple calls.
|
416
|
+
# client = Google::Cloud::ResourceSettings::V1::ResourceSettingsService::Client.new
|
417
|
+
#
|
418
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
419
|
+
# request = Google::Cloud::ResourceSettings::V1::UpdateSettingRequest.new
|
420
|
+
#
|
421
|
+
# # Call the update_setting method.
|
422
|
+
# result = client.update_setting request
|
423
|
+
#
|
424
|
+
# # The returned object is of type Google::Cloud::ResourceSettings::V1::Setting.
|
425
|
+
# p result
|
426
|
+
#
|
372
427
|
def update_setting request, options = nil
|
373
428
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
374
429
|
|
@@ -386,9 +441,11 @@ module Google
|
|
386
441
|
gapic_version: ::Google::Cloud::ResourceSettings::V1::VERSION
|
387
442
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
388
443
|
|
389
|
-
header_params = {
|
390
|
-
|
391
|
-
|
444
|
+
header_params = {}
|
445
|
+
if request.setting&.name
|
446
|
+
header_params["setting.name"] = request.setting.name
|
447
|
+
end
|
448
|
+
|
392
449
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
393
450
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
394
451
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/resourcesettings/v1/resource_settings.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
9
7
|
require 'google/api/resource_pb'
|
8
|
+
require 'google/protobuf'
|
9
|
+
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/cloud/resourcesettings/v1/resource_settings.proto", :syntax => :proto3) do
|
12
12
|
add_message "google.cloud.resourcesettings.v1.Setting" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-resource_settings-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|