google-cloud-resource_settings-v1 0.4.0 → 0.5.0
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 +14 -3
- data/lib/google/cloud/resource_settings/v1/resource_settings_service/rest/client.rb +56 -2
- data/lib/google/cloud/resource_settings/v1/resource_settings_service/rest/service_stub.rb +3 -3
- 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
|
@@ -149,7 +149,7 @@ module Google
|
|
149
149
|
credentials = @config.credentials
|
150
150
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
151
151
|
# but only if the default endpoint does not have a region prefix.
|
152
|
-
enable_self_signed_jwt = @config.endpoint ==
|
152
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
153
153
|
!@config.endpoint.split(".").first.include?("-")
|
154
154
|
credentials ||= Credentials.default scope: @config.scope,
|
155
155
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -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
|
|
@@ -545,7 +546,9 @@ module Google
|
|
545
546
|
class Configuration
|
546
547
|
extend ::Gapic::Config
|
547
548
|
|
548
|
-
|
549
|
+
DEFAULT_ENDPOINT = "resourcesettings.googleapis.com"
|
550
|
+
|
551
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
549
552
|
config_attr :credentials, nil do |value|
|
550
553
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
551
554
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -580,6 +583,14 @@ module Google
|
|
580
583
|
end
|
581
584
|
end
|
582
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
|
+
|
583
594
|
##
|
584
595
|
# Configuration RPC class for the ResourceSettingsService API.
|
585
596
|
#
|
@@ -145,7 +145,7 @@ module Google
|
|
145
145
|
credentials = @config.credentials
|
146
146
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
147
147
|
# but only if the default endpoint does not have a region prefix.
|
148
|
-
enable_self_signed_jwt = @config.endpoint ==
|
148
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
149
149
|
!@config.endpoint.split(".").first.include?("-")
|
150
150
|
credentials ||= Credentials.default scope: @config.scope,
|
151
151
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -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
|
|
@@ -454,7 +506,9 @@ module Google
|
|
454
506
|
class Configuration
|
455
507
|
extend ::Gapic::Config
|
456
508
|
|
457
|
-
|
509
|
+
DEFAULT_ENDPOINT = "resourcesettings.googleapis.com"
|
510
|
+
|
511
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
458
512
|
config_attr :credentials, nil do |value|
|
459
513
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
460
514
|
allowed.any? { |klass| klass === value }
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_settings_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_setting_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_setting_request request_pb
|
137
137
|
query_string_params = if query_string_params.any?
|
138
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
139
|
else
|
140
140
|
{}
|
141
141
|
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
|
+
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
|