google-cloud-resource_settings-v1 0.4.1 → 0.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7fb08c1e8e9e4569161b23d97a0e5c4bfa49a668e0dac557e4e4515fb9ee1f08
4
- data.tar.gz: 78ec532e876d8f3d9950a69d245986efb455af0f48669a98eaf1205f583011ff
3
+ metadata.gz: 35346a5d181d6423b003423b04eb2bca997a5f3c6e127ed1d3349445c33a2fa1
4
+ data.tar.gz: e8806801ca1bc18eb40212a531d0b83414422254893005e24c572a5332d9ce7c
5
5
  SHA512:
6
- metadata.gz: a69eea4460c351d6dc1b6202d2804d39a692d45cf3a3d65b094525ed46972eea9ed568400430d16d6b11d953d1b427c4453a5401673f9b9670b7c24da1406017
7
- data.tar.gz: 952660ee6fd0da4c22a66eecb1531d0ba467d9fef0d79d3e85938364847f295828eda5a20070613551832d685f5ebc423f6a9ebd8115fde6084841bfe79d0d9d
6
+ metadata.gz: c277e207d6c3ad8c81c9b5791e68a548e266fd28f66a8493121e5f0903720bbb34412c303197655cfc724e4f688017e0e67a837475d7de6a816b510941b10ca8
7
+ data.tar.gz: 68953d87eff22a1650cd664d36e918d74fe59776bb65acaf6702a4c0090a28dda094345dd34f25866bc0f3f6d1318ade0178986831601ba2791d0cd6b4fcbadf
@@ -164,7 +164,8 @@ module Google
164
164
  credentials: credentials,
165
165
  endpoint: @config.endpoint,
166
166
  channel_args: @config.channel_args,
167
- interceptors: @config.interceptors
167
+ interceptors: @config.interceptors,
168
+ channel_pool_config: @config.channel_pool
168
169
  )
169
170
  end
170
171
 
@@ -582,6 +583,14 @@ module Google
582
583
  end
583
584
  end
584
585
 
586
+ ##
587
+ # Configuration for the channel pool
588
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
589
+ #
590
+ def channel_pool
591
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
592
+ end
593
+
585
594
  ##
586
595
  # Configuration RPC class for the ResourceSettingsService API.
587
596
  #
@@ -200,6 +200,26 @@ module Google
200
200
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ResourceSettings::V1::Setting>]
201
201
  #
202
202
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
203
+ #
204
+ # @example Basic example
205
+ # require "google/cloud/resource_settings/v1"
206
+ #
207
+ # # Create a client object. The client can be reused for multiple calls.
208
+ # client = Google::Cloud::ResourceSettings::V1::ResourceSettingsService::Rest::Client.new
209
+ #
210
+ # # Create a request. To set request fields, pass in keyword arguments.
211
+ # request = Google::Cloud::ResourceSettings::V1::ListSettingsRequest.new
212
+ #
213
+ # # Call the list_settings method.
214
+ # result = client.list_settings request
215
+ #
216
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
217
+ # # over elements, and API calls will be issued to fetch pages as needed.
218
+ # result.each do |item|
219
+ # # Each element is of type ::Google::Cloud::ResourceSettings::V1::Setting.
220
+ # p item
221
+ # end
222
+ #
203
223
  def list_settings request, options = nil
204
224
  raise ::ArgumentError, "request must be provided" if request.nil?
205
225
 
@@ -269,6 +289,22 @@ module Google
269
289
  # @return [::Google::Cloud::ResourceSettings::V1::Setting]
270
290
  #
271
291
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
292
+ #
293
+ # @example Basic example
294
+ # require "google/cloud/resource_settings/v1"
295
+ #
296
+ # # Create a client object. The client can be reused for multiple calls.
297
+ # client = Google::Cloud::ResourceSettings::V1::ResourceSettingsService::Rest::Client.new
298
+ #
299
+ # # Create a request. To set request fields, pass in keyword arguments.
300
+ # request = Google::Cloud::ResourceSettings::V1::GetSettingRequest.new
301
+ #
302
+ # # Call the get_setting method.
303
+ # result = client.get_setting request
304
+ #
305
+ # # The returned object is of type Google::Cloud::ResourceSettings::V1::Setting.
306
+ # p result
307
+ #
272
308
  def get_setting request, options = nil
273
309
  raise ::ArgumentError, "request must be provided" if request.nil?
274
310
 
@@ -346,6 +382,22 @@ module Google
346
382
  # @return [::Google::Cloud::ResourceSettings::V1::Setting]
347
383
  #
348
384
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
385
+ #
386
+ # @example Basic example
387
+ # require "google/cloud/resource_settings/v1"
388
+ #
389
+ # # Create a client object. The client can be reused for multiple calls.
390
+ # client = Google::Cloud::ResourceSettings::V1::ResourceSettingsService::Rest::Client.new
391
+ #
392
+ # # Create a request. To set request fields, pass in keyword arguments.
393
+ # request = Google::Cloud::ResourceSettings::V1::UpdateSettingRequest.new
394
+ #
395
+ # # Call the update_setting method.
396
+ # result = client.update_setting request
397
+ #
398
+ # # The returned object is of type Google::Cloud::ResourceSettings::V1::Setting.
399
+ # p result
400
+ #
349
401
  def update_setting request, options = nil
350
402
  raise ::ArgumentError, "request must be provided" if request.nil?
351
403
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ResourceSettings
23
23
  module V1
24
- VERSION = "0.4.1"
24
+ VERSION = "0.5.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
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.4.1
4
+ version: 0.5.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: 2023-06-06 00:00:00.000000000 Z
11
+ date: 2023-09-12 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.1
19
+ version: 0.20.0
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.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  - !ruby/object:Gem::Version
211
211
  version: '0'
212
212
  requirements: []
213
- rubygems_version: 3.4.2
213
+ rubygems_version: 3.4.19
214
214
  signing_key:
215
215
  specification_version: 4
216
216
  summary: The Resource Settings API allows users to control and modify the behavior