google-cloud-resource_settings-v1 1.2.0 → 2.0.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/README.md +3 -153
- data/lib/google/cloud/resource_settings/v1/version.rb +3 -8
- metadata +16 -69
- data/.yardopts +0 -12
- data/AUTHENTICATION.md +0 -122
- data/lib/google/cloud/resource_settings/v1/resource_settings_service/client.rb +0 -713
- data/lib/google/cloud/resource_settings/v1/resource_settings_service/credentials.rb +0 -51
- data/lib/google/cloud/resource_settings/v1/resource_settings_service/paths.rb +0 -85
- data/lib/google/cloud/resource_settings/v1/resource_settings_service/rest/client.rb +0 -665
- data/lib/google/cloud/resource_settings/v1/resource_settings_service/rest/service_stub.rb +0 -310
- data/lib/google/cloud/resource_settings/v1/resource_settings_service/rest.rb +0 -66
- data/lib/google/cloud/resource_settings/v1/resource_settings_service.rb +0 -71
- data/lib/google/cloud/resource_settings/v1/rest.rb +0 -37
- data/lib/google/cloud/resource_settings/v1.rb +0 -45
- data/lib/google/cloud/resourcesettings/v1/resource_settings_pb.rb +0 -57
- data/lib/google/cloud/resourcesettings/v1/resource_settings_services_pb.rb +0 -81
- data/lib/google-cloud-resource_settings-v1.rb +0 -21
- data/proto_docs/README.md +0 -4
- data/proto_docs/google/api/client.rb +0 -459
- data/proto_docs/google/api/field_behavior.rb +0 -85
- data/proto_docs/google/api/launch_stage.rb +0 -71
- data/proto_docs/google/api/resource.rb +0 -227
- data/proto_docs/google/cloud/resourcesettings/v1/resource_settings.rb +0 -253
- data/proto_docs/google/protobuf/duration.rb +0 -98
@@ -1,310 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Copyright 2023 Google LLC
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
|
17
|
-
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
-
|
19
|
-
require "google/cloud/resourcesettings/v1/resource_settings_pb"
|
20
|
-
|
21
|
-
module Google
|
22
|
-
module Cloud
|
23
|
-
module ResourceSettings
|
24
|
-
module V1
|
25
|
-
module ResourceSettingsService
|
26
|
-
module Rest
|
27
|
-
##
|
28
|
-
# REST service stub for the ResourceSettingsService service.
|
29
|
-
# Service stub contains baseline method implementations
|
30
|
-
# including transcoding, making the REST call, and deserialing the response.
|
31
|
-
#
|
32
|
-
# @deprecated This service is deprecated and may be removed in the next major version update.
|
33
|
-
class ServiceStub
|
34
|
-
# @private
|
35
|
-
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
36
|
-
# These require statements are intentionally placed here to initialize
|
37
|
-
# the REST modules only when it's required.
|
38
|
-
require "gapic/rest"
|
39
|
-
|
40
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
41
|
-
endpoint_template: endpoint_template,
|
42
|
-
universe_domain: universe_domain,
|
43
|
-
credentials: credentials,
|
44
|
-
numeric_enums: true,
|
45
|
-
service_name: self.class,
|
46
|
-
raise_faraday_errors: false,
|
47
|
-
logger: logger
|
48
|
-
end
|
49
|
-
|
50
|
-
##
|
51
|
-
# The effective universe domain
|
52
|
-
#
|
53
|
-
# @return [String]
|
54
|
-
#
|
55
|
-
def universe_domain
|
56
|
-
@client_stub.universe_domain
|
57
|
-
end
|
58
|
-
|
59
|
-
##
|
60
|
-
# The effective endpoint
|
61
|
-
#
|
62
|
-
# @return [String]
|
63
|
-
#
|
64
|
-
def endpoint
|
65
|
-
@client_stub.endpoint
|
66
|
-
end
|
67
|
-
|
68
|
-
##
|
69
|
-
# The logger used for request/response debug logging.
|
70
|
-
#
|
71
|
-
# @return [Logger]
|
72
|
-
#
|
73
|
-
def logger stub: false
|
74
|
-
stub ? @client_stub.stub_logger : @client_stub.logger
|
75
|
-
end
|
76
|
-
|
77
|
-
##
|
78
|
-
# Baseline implementation for the list_settings REST call
|
79
|
-
#
|
80
|
-
# @param request_pb [::Google::Cloud::ResourceSettings::V1::ListSettingsRequest]
|
81
|
-
# A request object representing the call parameters. Required.
|
82
|
-
# @param options [::Gapic::CallOptions]
|
83
|
-
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
84
|
-
#
|
85
|
-
# @yield [result, operation] Access the result along with the TransportOperation object
|
86
|
-
# @yieldparam result [::Google::Cloud::ResourceSettings::V1::ListSettingsResponse]
|
87
|
-
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
88
|
-
#
|
89
|
-
# @return [::Google::Cloud::ResourceSettings::V1::ListSettingsResponse]
|
90
|
-
# A result object deserialized from the server's reply
|
91
|
-
def list_settings request_pb, options = nil
|
92
|
-
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
93
|
-
|
94
|
-
verb, uri, query_string_params, body = ServiceStub.transcode_list_settings_request request_pb
|
95
|
-
query_string_params = if query_string_params.any?
|
96
|
-
query_string_params.to_h { |p| p.split "=", 2 }
|
97
|
-
else
|
98
|
-
{}
|
99
|
-
end
|
100
|
-
|
101
|
-
response = @client_stub.make_http_request(
|
102
|
-
verb,
|
103
|
-
uri: uri,
|
104
|
-
body: body || "",
|
105
|
-
params: query_string_params,
|
106
|
-
method_name: "list_settings",
|
107
|
-
options: options
|
108
|
-
)
|
109
|
-
operation = ::Gapic::Rest::TransportOperation.new response
|
110
|
-
result = ::Google::Cloud::ResourceSettings::V1::ListSettingsResponse.decode_json response.body, ignore_unknown_fields: true
|
111
|
-
catch :response do
|
112
|
-
yield result, operation if block_given?
|
113
|
-
result
|
114
|
-
end
|
115
|
-
end
|
116
|
-
|
117
|
-
##
|
118
|
-
# Baseline implementation for the get_setting REST call
|
119
|
-
#
|
120
|
-
# @param request_pb [::Google::Cloud::ResourceSettings::V1::GetSettingRequest]
|
121
|
-
# A request object representing the call parameters. Required.
|
122
|
-
# @param options [::Gapic::CallOptions]
|
123
|
-
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
124
|
-
#
|
125
|
-
# @yield [result, operation] Access the result along with the TransportOperation object
|
126
|
-
# @yieldparam result [::Google::Cloud::ResourceSettings::V1::Setting]
|
127
|
-
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
128
|
-
#
|
129
|
-
# @return [::Google::Cloud::ResourceSettings::V1::Setting]
|
130
|
-
# A result object deserialized from the server's reply
|
131
|
-
def get_setting request_pb, options = nil
|
132
|
-
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
133
|
-
|
134
|
-
verb, uri, query_string_params, body = ServiceStub.transcode_get_setting_request request_pb
|
135
|
-
query_string_params = if query_string_params.any?
|
136
|
-
query_string_params.to_h { |p| p.split "=", 2 }
|
137
|
-
else
|
138
|
-
{}
|
139
|
-
end
|
140
|
-
|
141
|
-
response = @client_stub.make_http_request(
|
142
|
-
verb,
|
143
|
-
uri: uri,
|
144
|
-
body: body || "",
|
145
|
-
params: query_string_params,
|
146
|
-
method_name: "get_setting",
|
147
|
-
options: options
|
148
|
-
)
|
149
|
-
operation = ::Gapic::Rest::TransportOperation.new response
|
150
|
-
result = ::Google::Cloud::ResourceSettings::V1::Setting.decode_json response.body, ignore_unknown_fields: true
|
151
|
-
catch :response do
|
152
|
-
yield result, operation if block_given?
|
153
|
-
result
|
154
|
-
end
|
155
|
-
end
|
156
|
-
|
157
|
-
##
|
158
|
-
# Baseline implementation for the update_setting REST call
|
159
|
-
#
|
160
|
-
# @param request_pb [::Google::Cloud::ResourceSettings::V1::UpdateSettingRequest]
|
161
|
-
# A request object representing the call parameters. Required.
|
162
|
-
# @param options [::Gapic::CallOptions]
|
163
|
-
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
164
|
-
#
|
165
|
-
# @yield [result, operation] Access the result along with the TransportOperation object
|
166
|
-
# @yieldparam result [::Google::Cloud::ResourceSettings::V1::Setting]
|
167
|
-
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
168
|
-
#
|
169
|
-
# @return [::Google::Cloud::ResourceSettings::V1::Setting]
|
170
|
-
# A result object deserialized from the server's reply
|
171
|
-
def update_setting request_pb, options = nil
|
172
|
-
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
173
|
-
|
174
|
-
verb, uri, query_string_params, body = ServiceStub.transcode_update_setting_request request_pb
|
175
|
-
query_string_params = if query_string_params.any?
|
176
|
-
query_string_params.to_h { |p| p.split "=", 2 }
|
177
|
-
else
|
178
|
-
{}
|
179
|
-
end
|
180
|
-
|
181
|
-
response = @client_stub.make_http_request(
|
182
|
-
verb,
|
183
|
-
uri: uri,
|
184
|
-
body: body || "",
|
185
|
-
params: query_string_params,
|
186
|
-
method_name: "update_setting",
|
187
|
-
options: options
|
188
|
-
)
|
189
|
-
operation = ::Gapic::Rest::TransportOperation.new response
|
190
|
-
result = ::Google::Cloud::ResourceSettings::V1::Setting.decode_json response.body, ignore_unknown_fields: true
|
191
|
-
catch :response do
|
192
|
-
yield result, operation if block_given?
|
193
|
-
result
|
194
|
-
end
|
195
|
-
end
|
196
|
-
|
197
|
-
##
|
198
|
-
# @private
|
199
|
-
#
|
200
|
-
# GRPC transcoding helper method for the list_settings REST call
|
201
|
-
#
|
202
|
-
# @param request_pb [::Google::Cloud::ResourceSettings::V1::ListSettingsRequest]
|
203
|
-
# A request object representing the call parameters. Required.
|
204
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
205
|
-
# Uri, Body, Query string parameters
|
206
|
-
def self.transcode_list_settings_request request_pb
|
207
|
-
transcoder = Gapic::Rest::GrpcTranscoder.new
|
208
|
-
.with_bindings(
|
209
|
-
uri_method: :get,
|
210
|
-
uri_template: "/v1/{parent}/settings",
|
211
|
-
matches: [
|
212
|
-
["parent", %r{^organizations/[^/]+/?$}, false]
|
213
|
-
]
|
214
|
-
)
|
215
|
-
.with_bindings(
|
216
|
-
uri_method: :get,
|
217
|
-
uri_template: "/v1/{parent}/settings",
|
218
|
-
matches: [
|
219
|
-
["parent", %r{^folders/[^/]+/?$}, false]
|
220
|
-
]
|
221
|
-
)
|
222
|
-
.with_bindings(
|
223
|
-
uri_method: :get,
|
224
|
-
uri_template: "/v1/{parent}/settings",
|
225
|
-
matches: [
|
226
|
-
["parent", %r{^projects/[^/]+/?$}, false]
|
227
|
-
]
|
228
|
-
)
|
229
|
-
transcoder.transcode request_pb
|
230
|
-
end
|
231
|
-
|
232
|
-
##
|
233
|
-
# @private
|
234
|
-
#
|
235
|
-
# GRPC transcoding helper method for the get_setting REST call
|
236
|
-
#
|
237
|
-
# @param request_pb [::Google::Cloud::ResourceSettings::V1::GetSettingRequest]
|
238
|
-
# A request object representing the call parameters. Required.
|
239
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
240
|
-
# Uri, Body, Query string parameters
|
241
|
-
def self.transcode_get_setting_request request_pb
|
242
|
-
transcoder = Gapic::Rest::GrpcTranscoder.new
|
243
|
-
.with_bindings(
|
244
|
-
uri_method: :get,
|
245
|
-
uri_template: "/v1/{name}",
|
246
|
-
matches: [
|
247
|
-
["name", %r{^organizations/[^/]+/settings/[^/]+/?$}, false]
|
248
|
-
]
|
249
|
-
)
|
250
|
-
.with_bindings(
|
251
|
-
uri_method: :get,
|
252
|
-
uri_template: "/v1/{name}",
|
253
|
-
matches: [
|
254
|
-
["name", %r{^folders/[^/]+/settings/[^/]+/?$}, false]
|
255
|
-
]
|
256
|
-
)
|
257
|
-
.with_bindings(
|
258
|
-
uri_method: :get,
|
259
|
-
uri_template: "/v1/{name}",
|
260
|
-
matches: [
|
261
|
-
["name", %r{^projects/[^/]+/settings/[^/]+/?$}, false]
|
262
|
-
]
|
263
|
-
)
|
264
|
-
transcoder.transcode request_pb
|
265
|
-
end
|
266
|
-
|
267
|
-
##
|
268
|
-
# @private
|
269
|
-
#
|
270
|
-
# GRPC transcoding helper method for the update_setting REST call
|
271
|
-
#
|
272
|
-
# @param request_pb [::Google::Cloud::ResourceSettings::V1::UpdateSettingRequest]
|
273
|
-
# A request object representing the call parameters. Required.
|
274
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
275
|
-
# Uri, Body, Query string parameters
|
276
|
-
def self.transcode_update_setting_request request_pb
|
277
|
-
transcoder = Gapic::Rest::GrpcTranscoder.new
|
278
|
-
.with_bindings(
|
279
|
-
uri_method: :patch,
|
280
|
-
uri_template: "/v1/{setting.name}",
|
281
|
-
body: "setting",
|
282
|
-
matches: [
|
283
|
-
["setting.name", %r{^organizations/[^/]+/settings/[^/]+/?$}, false]
|
284
|
-
]
|
285
|
-
)
|
286
|
-
.with_bindings(
|
287
|
-
uri_method: :patch,
|
288
|
-
uri_template: "/v1/{setting.name}",
|
289
|
-
body: "setting",
|
290
|
-
matches: [
|
291
|
-
["setting.name", %r{^folders/[^/]+/settings/[^/]+/?$}, false]
|
292
|
-
]
|
293
|
-
)
|
294
|
-
.with_bindings(
|
295
|
-
uri_method: :patch,
|
296
|
-
uri_template: "/v1/{setting.name}",
|
297
|
-
body: "setting",
|
298
|
-
matches: [
|
299
|
-
["setting.name", %r{^projects/[^/]+/settings/[^/]+/?$}, false]
|
300
|
-
]
|
301
|
-
)
|
302
|
-
transcoder.transcode request_pb
|
303
|
-
end
|
304
|
-
end
|
305
|
-
end
|
306
|
-
end
|
307
|
-
end
|
308
|
-
end
|
309
|
-
end
|
310
|
-
end
|
@@ -1,66 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Copyright 2023 Google LLC
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
|
17
|
-
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
-
|
19
|
-
require "gapic/rest"
|
20
|
-
require "gapic/config"
|
21
|
-
require "gapic/config/method"
|
22
|
-
|
23
|
-
require "google/cloud/resource_settings/v1/version"
|
24
|
-
|
25
|
-
require "google/cloud/resource_settings/v1/resource_settings_service/credentials"
|
26
|
-
require "google/cloud/resource_settings/v1/resource_settings_service/paths"
|
27
|
-
require "google/cloud/resource_settings/v1/resource_settings_service/rest/client"
|
28
|
-
|
29
|
-
module Google
|
30
|
-
module Cloud
|
31
|
-
module ResourceSettings
|
32
|
-
module V1
|
33
|
-
##
|
34
|
-
# An interface to interact with resource settings and setting values throughout
|
35
|
-
# the resource hierarchy.
|
36
|
-
#
|
37
|
-
# Services may surface a number of settings for users to control how their
|
38
|
-
# resources behave. Values of settings applied on a given Cloud resource are
|
39
|
-
# evaluated hierarchically and inherited by all descendants of that resource.
|
40
|
-
#
|
41
|
-
# For all requests, returns a `google.rpc.Status` with
|
42
|
-
# `google.rpc.Code.PERMISSION_DENIED` if the IAM check fails or the `parent`
|
43
|
-
# resource is not in a Cloud Organization.
|
44
|
-
# For all requests, returns a `google.rpc.Status` with
|
45
|
-
# `google.rpc.Code.INVALID_ARGUMENT` if the request is malformed.
|
46
|
-
# (== deprecation_description Resource Settings is deprecated. As of November
|
47
|
-
# 7, 2023, no organizations will be onboarded for any of the enabled settings,
|
48
|
-
# and the service will be shut down on October 1, 2024. ==)
|
49
|
-
#
|
50
|
-
# To load this service and instantiate a REST client:
|
51
|
-
#
|
52
|
-
# require "google/cloud/resource_settings/v1/resource_settings_service/rest"
|
53
|
-
# client = ::Google::Cloud::ResourceSettings::V1::ResourceSettingsService::Rest::Client.new
|
54
|
-
#
|
55
|
-
module ResourceSettingsService
|
56
|
-
# Client for the REST transport
|
57
|
-
module Rest
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
66
|
-
require "google/cloud/resource_settings/v1/resource_settings_service/rest/helpers" if ::File.file? helper_path
|
@@ -1,71 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Copyright 2021 Google LLC
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
|
17
|
-
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
-
|
19
|
-
require "gapic/common"
|
20
|
-
require "gapic/config"
|
21
|
-
require "gapic/config/method"
|
22
|
-
|
23
|
-
require "google/cloud/resource_settings/v1/version"
|
24
|
-
|
25
|
-
require "google/cloud/resource_settings/v1/resource_settings_service/credentials"
|
26
|
-
require "google/cloud/resource_settings/v1/resource_settings_service/paths"
|
27
|
-
require "google/cloud/resource_settings/v1/resource_settings_service/client"
|
28
|
-
require "google/cloud/resource_settings/v1/resource_settings_service/rest"
|
29
|
-
|
30
|
-
module Google
|
31
|
-
module Cloud
|
32
|
-
module ResourceSettings
|
33
|
-
module V1
|
34
|
-
##
|
35
|
-
# An interface to interact with resource settings and setting values throughout
|
36
|
-
# the resource hierarchy.
|
37
|
-
#
|
38
|
-
# Services may surface a number of settings for users to control how their
|
39
|
-
# resources behave. Values of settings applied on a given Cloud resource are
|
40
|
-
# evaluated hierarchically and inherited by all descendants of that resource.
|
41
|
-
#
|
42
|
-
# For all requests, returns a `google.rpc.Status` with
|
43
|
-
# `google.rpc.Code.PERMISSION_DENIED` if the IAM check fails or the `parent`
|
44
|
-
# resource is not in a Cloud Organization.
|
45
|
-
# For all requests, returns a `google.rpc.Status` with
|
46
|
-
# `google.rpc.Code.INVALID_ARGUMENT` if the request is malformed.
|
47
|
-
# (== deprecation_description Resource Settings is deprecated. As of November
|
48
|
-
# 7, 2023, no organizations will be onboarded for any of the enabled settings,
|
49
|
-
# and the service will be shut down on October 1, 2024. ==)
|
50
|
-
#
|
51
|
-
# @deprecated This service is deprecated and may be removed in the next major version update.
|
52
|
-
#
|
53
|
-
# @example Load this service and instantiate a gRPC client
|
54
|
-
#
|
55
|
-
# require "google/cloud/resource_settings/v1/resource_settings_service"
|
56
|
-
# client = ::Google::Cloud::ResourceSettings::V1::ResourceSettingsService::Client.new
|
57
|
-
#
|
58
|
-
# @example Load this service and instantiate a REST client
|
59
|
-
#
|
60
|
-
# require "google/cloud/resource_settings/v1/resource_settings_service/rest"
|
61
|
-
# client = ::Google::Cloud::ResourceSettings::V1::ResourceSettingsService::Rest::Client.new
|
62
|
-
#
|
63
|
-
module ResourceSettingsService
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
helper_path = ::File.join __dir__, "resource_settings_service", "helpers.rb"
|
71
|
-
require "google/cloud/resource_settings/v1/resource_settings_service/helpers" if ::File.file? helper_path
|
@@ -1,37 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Copyright 2023 Google LLC
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
|
17
|
-
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
-
|
19
|
-
require "google/cloud/resource_settings/v1/resource_settings_service/rest"
|
20
|
-
require "google/cloud/resource_settings/v1/version"
|
21
|
-
|
22
|
-
module Google
|
23
|
-
module Cloud
|
24
|
-
module ResourceSettings
|
25
|
-
##
|
26
|
-
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
27
|
-
#
|
28
|
-
# @example
|
29
|
-
#
|
30
|
-
# require "google/cloud/resource_settings/v1/rest"
|
31
|
-
# client = ::Google::Cloud::ResourceSettings::V1::ResourceSettingsService::Rest::Client.new
|
32
|
-
#
|
33
|
-
module V1
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
@@ -1,45 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Copyright 2021 Google LLC
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
|
17
|
-
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
-
|
19
|
-
require "google/cloud/resource_settings/v1/resource_settings_service"
|
20
|
-
require "google/cloud/resource_settings/v1/version"
|
21
|
-
|
22
|
-
module Google
|
23
|
-
module Cloud
|
24
|
-
module ResourceSettings
|
25
|
-
##
|
26
|
-
# API client module.
|
27
|
-
#
|
28
|
-
# @example Load this package, including all its services, and instantiate a gRPC client
|
29
|
-
#
|
30
|
-
# require "google/cloud/resource_settings/v1"
|
31
|
-
# client = ::Google::Cloud::ResourceSettings::V1::ResourceSettingsService::Client.new
|
32
|
-
#
|
33
|
-
# @example Load this package, including all its services, and instantiate a REST client
|
34
|
-
#
|
35
|
-
# require "google/cloud/resource_settings/v1"
|
36
|
-
# client = ::Google::Cloud::ResourceSettings::V1::ResourceSettingsService::Rest::Client.new
|
37
|
-
#
|
38
|
-
module V1
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
helper_path = ::File.join __dir__, "v1", "_helpers.rb"
|
45
|
-
require "google/cloud/resource_settings/v1/_helpers" if ::File.file? helper_path
|
@@ -1,57 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
-
# source: google/cloud/resourcesettings/v1/resource_settings.proto
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/api/client_pb'
|
9
|
-
require 'google/api/field_behavior_pb'
|
10
|
-
require 'google/api/resource_pb'
|
11
|
-
|
12
|
-
|
13
|
-
descriptor_data = "\n8google/cloud/resourcesettings/v1/resource_settings.proto\x12 google.cloud.resourcesettings.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xb7\x03\n\x07Setting\x12\x0c\n\x04name\x18\x01 \x01(\t\x12H\n\x08metadata\x18\x07 \x01(\x0b\x32\x31.google.cloud.resourcesettings.v1.SettingMetadataB\x03\xe0\x41\x03\x12<\n\x0blocal_value\x18\x08 \x01(\x0b\x32\'.google.cloud.resourcesettings.v1.Value\x12\x45\n\x0f\x65\x66\x66\x65\x63tive_value\x18\t \x01(\x0b\x32\'.google.cloud.resourcesettings.v1.ValueB\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\n \x01(\t:\xc0\x01\xea\x41\xbc\x01\n\'resourcesettings.googleapis.com/Setting\x12\x31projects/{project_number}/settings/{setting_name}\x12(folders/{folder}/settings/{setting_name}\x12\x34organizations/{organization}/settings/{setting_name}\"\xbe\x02\n\x0fSettingMetadata\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x11\n\tread_only\x18\x03 \x01(\x08\x12M\n\tdata_type\x18\x04 \x01(\x0e\x32:.google.cloud.resourcesettings.v1.SettingMetadata.DataType\x12>\n\rdefault_value\x18\x05 \x01(\x0b\x32\'.google.cloud.resourcesettings.v1.Value\"^\n\x08\x44\x61taType\x12\x19\n\x15\x44\x41TA_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x42OOLEAN\x10\x01\x12\n\n\x06STRING\x10\x02\x12\x0e\n\nSTRING_SET\x10\x03\x12\x0e\n\nENUM_VALUE\x10\x04\"\x92\x02\n\x05Value\x12\x17\n\rboolean_value\x18\x01 \x01(\x08H\x00\x12\x16\n\x0cstring_value\x18\x02 \x01(\tH\x00\x12M\n\x10string_set_value\x18\x03 \x01(\x0b\x32\x31.google.cloud.resourcesettings.v1.Value.StringSetH\x00\x12G\n\nenum_value\x18\x04 \x01(\x0b\x32\x31.google.cloud.resourcesettings.v1.Value.EnumValueH\x00\x1a\x1b\n\tStringSet\x12\x0e\n\x06values\x18\x01 \x03(\t\x1a\x1a\n\tEnumValue\x12\r\n\x05value\x18\x01 \x01(\tB\x07\n\x05value\"\x94\x01\n\x13ListSettingsRequest\x12\x19\n\x06parent\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12;\n\x04view\x18\x04 \x01(\x0e\x32-.google.cloud.resourcesettings.v1.SettingView\"l\n\x14ListSettingsResponse\x12;\n\x08settings\x18\x01 \x03(\x0b\x32).google.cloud.resourcesettings.v1.Setting\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8f\x01\n\x11GetSettingRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'resourcesettings.googleapis.com/Setting\x12;\n\x04view\x18\x02 \x01(\x0e\x32-.google.cloud.resourcesettings.v1.SettingView\"W\n\x14UpdateSettingRequest\x12?\n\x07setting\x18\x01 \x01(\x0b\x32).google.cloud.resourcesettings.v1.SettingB\x03\xe0\x41\x02*\x83\x01\n\x0bSettingView\x12\x1c\n\x18SETTING_VIEW_UNSPECIFIED\x10\x00\x12\x16\n\x12SETTING_VIEW_BASIC\x10\x01\x12 \n\x1cSETTING_VIEW_EFFECTIVE_VALUE\x10\x02\x12\x1c\n\x18SETTING_VIEW_LOCAL_VALUE\x10\x03\x32\xfc\x06\n\x17ResourceSettingsService\x12\xfc\x01\n\x0cListSettings\x12\x35.google.cloud.resourcesettings.v1.ListSettingsRequest\x1a\x36.google.cloud.resourcesettings.v1.ListSettingsResponse\"}\xda\x41\x06parent\x82\xd3\xe4\x93\x02n\x12%/v1/{parent=organizations/*}/settingsZ!\x12\x1f/v1/{parent=folders/*}/settingsZ\"\x12 /v1/{parent=projects/*}/settings\x12\xe9\x01\n\nGetSetting\x12\x33.google.cloud.resourcesettings.v1.GetSettingRequest\x1a).google.cloud.resourcesettings.v1.Setting\"{\xda\x41\x04name\x82\xd3\xe4\x93\x02n\x12%/v1/{name=organizations/*/settings/*}Z!\x12\x1f/v1/{name=folders/*/settings/*}Z\"\x12 /v1/{name=projects/*/settings/*}\x12\x9d\x02\n\rUpdateSetting\x12\x36.google.cloud.resourcesettings.v1.UpdateSettingRequest\x1a).google.cloud.resourcesettings.v1.Setting\"\xa8\x01\x82\xd3\xe4\x93\x02\xa1\x01\x32-/v1/{setting.name=organizations/*/settings/*}:\x07settingZ22\'/v1/{setting.name=folders/*/settings/*}:\x07settingZ32(/v1/{setting.name=projects/*/settings/*}:\x07setting\x1aV\x88\x02\x01\xca\x41\x1fresourcesettings.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x80\x02\n$com.google.cloud.resourcesettings.v1B\x15ResourceSettingsProtoP\x01ZPcloud.google.com/go/resourcesettings/apiv1/resourcesettingspb;resourcesettingspb\xf8\x01\x01\xaa\x02 Google.Cloud.ResourceSettings.V1\xca\x02 Google\\Cloud\\ResourceSettings\\V1\xea\x02#Google::Cloud::ResourceSettings::V1b\x06proto3"
|
14
|
-
|
15
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
|
-
|
17
|
-
begin
|
18
|
-
pool.add_serialized_file(descriptor_data)
|
19
|
-
rescue TypeError
|
20
|
-
# Compatibility code: will be removed in the next major version.
|
21
|
-
require 'google/protobuf/descriptor_pb'
|
22
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
23
|
-
parsed.clear_dependency
|
24
|
-
serialized = parsed.class.encode(parsed)
|
25
|
-
file = pool.add_serialized_file(serialized)
|
26
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
|
-
imports = [
|
28
|
-
]
|
29
|
-
imports.each do |type_name, expected_filename|
|
30
|
-
import_file = pool.lookup(type_name).file_descriptor
|
31
|
-
if import_file.name != expected_filename
|
32
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
33
|
-
end
|
34
|
-
end
|
35
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
36
|
-
warn "This will become an error in the next major version."
|
37
|
-
end
|
38
|
-
|
39
|
-
module Google
|
40
|
-
module Cloud
|
41
|
-
module ResourceSettings
|
42
|
-
module V1
|
43
|
-
Setting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcesettings.v1.Setting").msgclass
|
44
|
-
SettingMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcesettings.v1.SettingMetadata").msgclass
|
45
|
-
SettingMetadata::DataType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcesettings.v1.SettingMetadata.DataType").enummodule
|
46
|
-
Value = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcesettings.v1.Value").msgclass
|
47
|
-
Value::StringSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcesettings.v1.Value.StringSet").msgclass
|
48
|
-
Value::EnumValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcesettings.v1.Value.EnumValue").msgclass
|
49
|
-
ListSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcesettings.v1.ListSettingsRequest").msgclass
|
50
|
-
ListSettingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcesettings.v1.ListSettingsResponse").msgclass
|
51
|
-
GetSettingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcesettings.v1.GetSettingRequest").msgclass
|
52
|
-
UpdateSettingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcesettings.v1.UpdateSettingRequest").msgclass
|
53
|
-
SettingView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcesettings.v1.SettingView").enummodule
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|