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 +4 -4
- data/lib/google/cloud/resource_settings/v1/resource_settings_service/client.rb +10 -1
- data/lib/google/cloud/resource_settings/v1/resource_settings_service/rest/client.rb +52 -0
- data/lib/google/cloud/resource_settings/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35346a5d181d6423b003423b04eb2bca997a5f3c6e127ed1d3349445c33a2fa1
|
4
|
+
data.tar.gz: e8806801ca1bc18eb40212a531d0b83414422254893005e24c572a5332d9ce7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
@@ -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
|
+
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-
|
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
|
+
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.
|
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.
|
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
|