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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec9e4da2407913d59ff53a7e0ee28703c72a5a3a6f712b90513b085cf245973c
4
- data.tar.gz: c7cd9b0ef1bc762b927854ceee568ab014991175a4537a977075ea08a849c8cd
3
+ metadata.gz: 0a45502cd027564b1abc9a4277f7f771be7f2bd1856c6795ebf7c07b4391af7f
4
+ data.tar.gz: d1e53914b690e500f0159d093490ffa6365c7a3dd27c5b9731ae78f03a9463f5
5
5
  SHA512:
6
- metadata.gz: 1d8373f613b7d0ccfc97c907caafb7a87bc740b79121d4dcfa348acf1e5d22f5b74c82b592cf8b4d420caa1e5661cbef332c324be6c2b48a9c065fefcca5b5a0
7
- data.tar.gz: 13a0925d65f7f90cfdecf671be87a5d3c84269745cc5183a79232594b8ce4d2f8e9428f617fe21038481255266ddc4a13dea00dff1afde93bd39138bacc229f5
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
- "parent" => request.parent
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
- "name" => request.name
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
- "setting.name" => request.setting.name
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
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ResourceSettings
23
23
  module V1
24
- VERSION = "0.1.3"
24
+ VERSION = "0.1.4"
25
25
  end
26
26
  end
27
27
  end
@@ -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
@@ -38,7 +38,7 @@ module Google
38
38
  # `google.rpc.Code.INVALID_ARGUMENT` if the request is malformed.
39
39
  class Service
40
40
 
41
- include GRPC::GenericService
41
+ include ::GRPC::GenericService
42
42
 
43
43
  self.marshal_class_method = :encode
44
44
  self.unmarshal_class_method = :decode
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.3
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 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common