google-shopping-merchant-data_sources-v1beta 0.a → 0.1.2
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/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +143 -8
- data/lib/google/shopping/merchant/data_sources/v1beta/data_sources_service/client.rb +935 -0
- data/lib/google/shopping/merchant/data_sources/v1beta/data_sources_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/data_sources/v1beta/data_sources_service/paths.rb +66 -0
- data/lib/google/shopping/merchant/data_sources/v1beta/data_sources_service/rest/client.rb +867 -0
- data/lib/google/shopping/merchant/data_sources/v1beta/data_sources_service/rest/service_stub.rb +428 -0
- data/lib/google/shopping/merchant/data_sources/v1beta/data_sources_service/rest.rb +56 -0
- data/lib/google/shopping/merchant/data_sources/v1beta/data_sources_service.rb +59 -0
- data/lib/google/shopping/merchant/data_sources/v1beta/rest.rb +39 -0
- data/lib/google/shopping/merchant/data_sources/v1beta/version.rb +7 -2
- data/lib/google/shopping/merchant/data_sources/v1beta.rb +47 -0
- data/lib/google/shopping/merchant/datasources/v1beta/datasources_pb.rb +64 -0
- data/lib/google/shopping/merchant/datasources/v1beta/datasources_services_pb.rb +64 -0
- data/lib/google/shopping/merchant/datasources/v1beta/datasourcetypes_pb.rb +51 -0
- data/lib/google/shopping/merchant/datasources/v1beta/fileinputs_pb.rb +52 -0
- data/lib/google-shopping-merchant-data_sources-v1beta.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +420 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/shopping/merchant/datasources/v1beta/datasources.rb +205 -0
- data/proto_docs/google/shopping/merchant/datasources/v1beta/datasourcetypes.rb +182 -0
- data/proto_docs/google/shopping/merchant/datasources/v1beta/fileinputs.rb +141 -0
- data/proto_docs/google/type/dayofweek.rb +49 -0
- data/proto_docs/google/type/timeofday.rb +45 -0
- metadata +72 -10
data/lib/google/shopping/merchant/data_sources/v1beta/data_sources_service/rest/service_stub.rb
ADDED
@@ -0,0 +1,428 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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/shopping/merchant/datasources/v1beta/datasources_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Shopping
|
23
|
+
module Merchant
|
24
|
+
module DataSources
|
25
|
+
module V1beta
|
26
|
+
module DataSourcesService
|
27
|
+
module Rest
|
28
|
+
##
|
29
|
+
# REST service stub for the DataSourcesService service.
|
30
|
+
# Service stub contains baseline method implementations
|
31
|
+
# including transcoding, making the REST call, and deserialing the response.
|
32
|
+
#
|
33
|
+
class ServiceStub
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
|
35
|
+
# These require statements are intentionally placed here to initialize
|
36
|
+
# the REST modules only when it's required.
|
37
|
+
require "gapic/rest"
|
38
|
+
|
39
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
40
|
+
endpoint_template: endpoint_template,
|
41
|
+
universe_domain: universe_domain,
|
42
|
+
credentials: credentials,
|
43
|
+
numeric_enums: true,
|
44
|
+
raise_faraday_errors: false
|
45
|
+
end
|
46
|
+
|
47
|
+
##
|
48
|
+
# The effective universe domain
|
49
|
+
#
|
50
|
+
# @return [String]
|
51
|
+
#
|
52
|
+
def universe_domain
|
53
|
+
@client_stub.universe_domain
|
54
|
+
end
|
55
|
+
|
56
|
+
##
|
57
|
+
# The effective endpoint
|
58
|
+
#
|
59
|
+
# @return [String]
|
60
|
+
#
|
61
|
+
def endpoint
|
62
|
+
@client_stub.endpoint
|
63
|
+
end
|
64
|
+
|
65
|
+
##
|
66
|
+
# Baseline implementation for the get_data_source REST call
|
67
|
+
#
|
68
|
+
# @param request_pb [::Google::Shopping::Merchant::DataSources::V1beta::GetDataSourceRequest]
|
69
|
+
# A request object representing the call parameters. Required.
|
70
|
+
# @param options [::Gapic::CallOptions]
|
71
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
72
|
+
#
|
73
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
74
|
+
# @yieldparam result [::Google::Shopping::Merchant::DataSources::V1beta::DataSource]
|
75
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
76
|
+
#
|
77
|
+
# @return [::Google::Shopping::Merchant::DataSources::V1beta::DataSource]
|
78
|
+
# A result object deserialized from the server's reply
|
79
|
+
def get_data_source request_pb, options = nil
|
80
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
81
|
+
|
82
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_data_source_request request_pb
|
83
|
+
query_string_params = if query_string_params.any?
|
84
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
85
|
+
else
|
86
|
+
{}
|
87
|
+
end
|
88
|
+
|
89
|
+
response = @client_stub.make_http_request(
|
90
|
+
verb,
|
91
|
+
uri: uri,
|
92
|
+
body: body || "",
|
93
|
+
params: query_string_params,
|
94
|
+
options: options
|
95
|
+
)
|
96
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
97
|
+
result = ::Google::Shopping::Merchant::DataSources::V1beta::DataSource.decode_json response.body, ignore_unknown_fields: true
|
98
|
+
|
99
|
+
yield result, operation if block_given?
|
100
|
+
result
|
101
|
+
end
|
102
|
+
|
103
|
+
##
|
104
|
+
# Baseline implementation for the list_data_sources REST call
|
105
|
+
#
|
106
|
+
# @param request_pb [::Google::Shopping::Merchant::DataSources::V1beta::ListDataSourcesRequest]
|
107
|
+
# A request object representing the call parameters. Required.
|
108
|
+
# @param options [::Gapic::CallOptions]
|
109
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
110
|
+
#
|
111
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
112
|
+
# @yieldparam result [::Google::Shopping::Merchant::DataSources::V1beta::ListDataSourcesResponse]
|
113
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
114
|
+
#
|
115
|
+
# @return [::Google::Shopping::Merchant::DataSources::V1beta::ListDataSourcesResponse]
|
116
|
+
# A result object deserialized from the server's reply
|
117
|
+
def list_data_sources request_pb, options = nil
|
118
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
119
|
+
|
120
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_data_sources_request request_pb
|
121
|
+
query_string_params = if query_string_params.any?
|
122
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
123
|
+
else
|
124
|
+
{}
|
125
|
+
end
|
126
|
+
|
127
|
+
response = @client_stub.make_http_request(
|
128
|
+
verb,
|
129
|
+
uri: uri,
|
130
|
+
body: body || "",
|
131
|
+
params: query_string_params,
|
132
|
+
options: options
|
133
|
+
)
|
134
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
135
|
+
result = ::Google::Shopping::Merchant::DataSources::V1beta::ListDataSourcesResponse.decode_json response.body, ignore_unknown_fields: true
|
136
|
+
|
137
|
+
yield result, operation if block_given?
|
138
|
+
result
|
139
|
+
end
|
140
|
+
|
141
|
+
##
|
142
|
+
# Baseline implementation for the create_data_source REST call
|
143
|
+
#
|
144
|
+
# @param request_pb [::Google::Shopping::Merchant::DataSources::V1beta::CreateDataSourceRequest]
|
145
|
+
# A request object representing the call parameters. Required.
|
146
|
+
# @param options [::Gapic::CallOptions]
|
147
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
148
|
+
#
|
149
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
150
|
+
# @yieldparam result [::Google::Shopping::Merchant::DataSources::V1beta::DataSource]
|
151
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
152
|
+
#
|
153
|
+
# @return [::Google::Shopping::Merchant::DataSources::V1beta::DataSource]
|
154
|
+
# A result object deserialized from the server's reply
|
155
|
+
def create_data_source request_pb, options = nil
|
156
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
157
|
+
|
158
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_data_source_request request_pb
|
159
|
+
query_string_params = if query_string_params.any?
|
160
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
161
|
+
else
|
162
|
+
{}
|
163
|
+
end
|
164
|
+
|
165
|
+
response = @client_stub.make_http_request(
|
166
|
+
verb,
|
167
|
+
uri: uri,
|
168
|
+
body: body || "",
|
169
|
+
params: query_string_params,
|
170
|
+
options: options
|
171
|
+
)
|
172
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
173
|
+
result = ::Google::Shopping::Merchant::DataSources::V1beta::DataSource.decode_json response.body, ignore_unknown_fields: true
|
174
|
+
|
175
|
+
yield result, operation if block_given?
|
176
|
+
result
|
177
|
+
end
|
178
|
+
|
179
|
+
##
|
180
|
+
# Baseline implementation for the update_data_source REST call
|
181
|
+
#
|
182
|
+
# @param request_pb [::Google::Shopping::Merchant::DataSources::V1beta::UpdateDataSourceRequest]
|
183
|
+
# A request object representing the call parameters. Required.
|
184
|
+
# @param options [::Gapic::CallOptions]
|
185
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
186
|
+
#
|
187
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
188
|
+
# @yieldparam result [::Google::Shopping::Merchant::DataSources::V1beta::DataSource]
|
189
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
190
|
+
#
|
191
|
+
# @return [::Google::Shopping::Merchant::DataSources::V1beta::DataSource]
|
192
|
+
# A result object deserialized from the server's reply
|
193
|
+
def update_data_source request_pb, options = nil
|
194
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
195
|
+
|
196
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_data_source_request request_pb
|
197
|
+
query_string_params = if query_string_params.any?
|
198
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
199
|
+
else
|
200
|
+
{}
|
201
|
+
end
|
202
|
+
|
203
|
+
response = @client_stub.make_http_request(
|
204
|
+
verb,
|
205
|
+
uri: uri,
|
206
|
+
body: body || "",
|
207
|
+
params: query_string_params,
|
208
|
+
options: options
|
209
|
+
)
|
210
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
211
|
+
result = ::Google::Shopping::Merchant::DataSources::V1beta::DataSource.decode_json response.body, ignore_unknown_fields: true
|
212
|
+
|
213
|
+
yield result, operation if block_given?
|
214
|
+
result
|
215
|
+
end
|
216
|
+
|
217
|
+
##
|
218
|
+
# Baseline implementation for the delete_data_source REST call
|
219
|
+
#
|
220
|
+
# @param request_pb [::Google::Shopping::Merchant::DataSources::V1beta::DeleteDataSourceRequest]
|
221
|
+
# A request object representing the call parameters. Required.
|
222
|
+
# @param options [::Gapic::CallOptions]
|
223
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
224
|
+
#
|
225
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
226
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
227
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
228
|
+
#
|
229
|
+
# @return [::Google::Protobuf::Empty]
|
230
|
+
# A result object deserialized from the server's reply
|
231
|
+
def delete_data_source request_pb, options = nil
|
232
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
233
|
+
|
234
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_data_source_request request_pb
|
235
|
+
query_string_params = if query_string_params.any?
|
236
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
237
|
+
else
|
238
|
+
{}
|
239
|
+
end
|
240
|
+
|
241
|
+
response = @client_stub.make_http_request(
|
242
|
+
verb,
|
243
|
+
uri: uri,
|
244
|
+
body: body || "",
|
245
|
+
params: query_string_params,
|
246
|
+
options: options
|
247
|
+
)
|
248
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
249
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
250
|
+
|
251
|
+
yield result, operation if block_given?
|
252
|
+
result
|
253
|
+
end
|
254
|
+
|
255
|
+
##
|
256
|
+
# Baseline implementation for the fetch_data_source REST call
|
257
|
+
#
|
258
|
+
# @param request_pb [::Google::Shopping::Merchant::DataSources::V1beta::FetchDataSourceRequest]
|
259
|
+
# A request object representing the call parameters. Required.
|
260
|
+
# @param options [::Gapic::CallOptions]
|
261
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
262
|
+
#
|
263
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
264
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
265
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
266
|
+
#
|
267
|
+
# @return [::Google::Protobuf::Empty]
|
268
|
+
# A result object deserialized from the server's reply
|
269
|
+
def fetch_data_source request_pb, options = nil
|
270
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
271
|
+
|
272
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_fetch_data_source_request request_pb
|
273
|
+
query_string_params = if query_string_params.any?
|
274
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
275
|
+
else
|
276
|
+
{}
|
277
|
+
end
|
278
|
+
|
279
|
+
response = @client_stub.make_http_request(
|
280
|
+
verb,
|
281
|
+
uri: uri,
|
282
|
+
body: body || "",
|
283
|
+
params: query_string_params,
|
284
|
+
options: options
|
285
|
+
)
|
286
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
287
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
288
|
+
|
289
|
+
yield result, operation if block_given?
|
290
|
+
result
|
291
|
+
end
|
292
|
+
|
293
|
+
##
|
294
|
+
# @private
|
295
|
+
#
|
296
|
+
# GRPC transcoding helper method for the get_data_source REST call
|
297
|
+
#
|
298
|
+
# @param request_pb [::Google::Shopping::Merchant::DataSources::V1beta::GetDataSourceRequest]
|
299
|
+
# A request object representing the call parameters. Required.
|
300
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
301
|
+
# Uri, Body, Query string parameters
|
302
|
+
def self.transcode_get_data_source_request request_pb
|
303
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
304
|
+
.with_bindings(
|
305
|
+
uri_method: :get,
|
306
|
+
uri_template: "/datasources/v1beta/{name}",
|
307
|
+
matches: [
|
308
|
+
["name", %r{^accounts/[^/]+/dataSources/[^/]+/?$}, false]
|
309
|
+
]
|
310
|
+
)
|
311
|
+
transcoder.transcode request_pb
|
312
|
+
end
|
313
|
+
|
314
|
+
##
|
315
|
+
# @private
|
316
|
+
#
|
317
|
+
# GRPC transcoding helper method for the list_data_sources REST call
|
318
|
+
#
|
319
|
+
# @param request_pb [::Google::Shopping::Merchant::DataSources::V1beta::ListDataSourcesRequest]
|
320
|
+
# A request object representing the call parameters. Required.
|
321
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
322
|
+
# Uri, Body, Query string parameters
|
323
|
+
def self.transcode_list_data_sources_request request_pb
|
324
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
325
|
+
.with_bindings(
|
326
|
+
uri_method: :get,
|
327
|
+
uri_template: "/datasources/v1beta/{parent}/dataSources",
|
328
|
+
matches: [
|
329
|
+
["parent", %r{^accounts/[^/]+/?$}, false]
|
330
|
+
]
|
331
|
+
)
|
332
|
+
transcoder.transcode request_pb
|
333
|
+
end
|
334
|
+
|
335
|
+
##
|
336
|
+
# @private
|
337
|
+
#
|
338
|
+
# GRPC transcoding helper method for the create_data_source REST call
|
339
|
+
#
|
340
|
+
# @param request_pb [::Google::Shopping::Merchant::DataSources::V1beta::CreateDataSourceRequest]
|
341
|
+
# A request object representing the call parameters. Required.
|
342
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
343
|
+
# Uri, Body, Query string parameters
|
344
|
+
def self.transcode_create_data_source_request request_pb
|
345
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
346
|
+
.with_bindings(
|
347
|
+
uri_method: :post,
|
348
|
+
uri_template: "/datasources/v1beta/{parent}/dataSources",
|
349
|
+
body: "data_source",
|
350
|
+
matches: [
|
351
|
+
["parent", %r{^accounts/[^/]+/?$}, false]
|
352
|
+
]
|
353
|
+
)
|
354
|
+
transcoder.transcode request_pb
|
355
|
+
end
|
356
|
+
|
357
|
+
##
|
358
|
+
# @private
|
359
|
+
#
|
360
|
+
# GRPC transcoding helper method for the update_data_source REST call
|
361
|
+
#
|
362
|
+
# @param request_pb [::Google::Shopping::Merchant::DataSources::V1beta::UpdateDataSourceRequest]
|
363
|
+
# A request object representing the call parameters. Required.
|
364
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
365
|
+
# Uri, Body, Query string parameters
|
366
|
+
def self.transcode_update_data_source_request request_pb
|
367
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
368
|
+
.with_bindings(
|
369
|
+
uri_method: :patch,
|
370
|
+
uri_template: "/datasources/v1beta/{data_source.name}",
|
371
|
+
body: "data_source",
|
372
|
+
matches: [
|
373
|
+
["data_source.name", %r{^accounts/[^/]+/dataSources/[^/]+/?$}, false]
|
374
|
+
]
|
375
|
+
)
|
376
|
+
transcoder.transcode request_pb
|
377
|
+
end
|
378
|
+
|
379
|
+
##
|
380
|
+
# @private
|
381
|
+
#
|
382
|
+
# GRPC transcoding helper method for the delete_data_source REST call
|
383
|
+
#
|
384
|
+
# @param request_pb [::Google::Shopping::Merchant::DataSources::V1beta::DeleteDataSourceRequest]
|
385
|
+
# A request object representing the call parameters. Required.
|
386
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
387
|
+
# Uri, Body, Query string parameters
|
388
|
+
def self.transcode_delete_data_source_request request_pb
|
389
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
390
|
+
.with_bindings(
|
391
|
+
uri_method: :delete,
|
392
|
+
uri_template: "/datasources/v1beta/{name}",
|
393
|
+
matches: [
|
394
|
+
["name", %r{^accounts/[^/]+/dataSources/[^/]+/?$}, false]
|
395
|
+
]
|
396
|
+
)
|
397
|
+
transcoder.transcode request_pb
|
398
|
+
end
|
399
|
+
|
400
|
+
##
|
401
|
+
# @private
|
402
|
+
#
|
403
|
+
# GRPC transcoding helper method for the fetch_data_source REST call
|
404
|
+
#
|
405
|
+
# @param request_pb [::Google::Shopping::Merchant::DataSources::V1beta::FetchDataSourceRequest]
|
406
|
+
# A request object representing the call parameters. Required.
|
407
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
408
|
+
# Uri, Body, Query string parameters
|
409
|
+
def self.transcode_fetch_data_source_request request_pb
|
410
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
411
|
+
.with_bindings(
|
412
|
+
uri_method: :post,
|
413
|
+
uri_template: "/datasources/v1beta/{name}:fetch",
|
414
|
+
body: "*",
|
415
|
+
matches: [
|
416
|
+
["name", %r{^accounts/[^/]+/dataSources/[^/]+/?$}, false]
|
417
|
+
]
|
418
|
+
)
|
419
|
+
transcoder.transcode request_pb
|
420
|
+
end
|
421
|
+
end
|
422
|
+
end
|
423
|
+
end
|
424
|
+
end
|
425
|
+
end
|
426
|
+
end
|
427
|
+
end
|
428
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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/shopping/merchant/data_sources/v1beta/version"
|
24
|
+
|
25
|
+
require "google/shopping/merchant/data_sources/v1beta/data_sources_service/credentials"
|
26
|
+
require "google/shopping/merchant/data_sources/v1beta/data_sources_service/paths"
|
27
|
+
require "google/shopping/merchant/data_sources/v1beta/data_sources_service/rest/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Shopping
|
31
|
+
module Merchant
|
32
|
+
module DataSources
|
33
|
+
module V1beta
|
34
|
+
##
|
35
|
+
# Service to manage primary, supplemental, inventory and other data sources.
|
36
|
+
# See more in the [Merchant
|
37
|
+
# Center](https://support.google.com/merchants/answer/7439058) help article.
|
38
|
+
#
|
39
|
+
# To load this service and instantiate a REST client:
|
40
|
+
#
|
41
|
+
# require "google/shopping/merchant/data_sources/v1beta/data_sources_service/rest"
|
42
|
+
# client = ::Google::Shopping::Merchant::DataSources::V1beta::DataSourcesService::Rest::Client.new
|
43
|
+
#
|
44
|
+
module DataSourcesService
|
45
|
+
# Client for the REST transport
|
46
|
+
module Rest
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
56
|
+
require "google/shopping/merchant/data_sources/v1beta/data_sources_service/rest/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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/shopping/merchant/data_sources/v1beta/version"
|
24
|
+
|
25
|
+
require "google/shopping/merchant/data_sources/v1beta/data_sources_service/credentials"
|
26
|
+
require "google/shopping/merchant/data_sources/v1beta/data_sources_service/paths"
|
27
|
+
require "google/shopping/merchant/data_sources/v1beta/data_sources_service/client"
|
28
|
+
require "google/shopping/merchant/data_sources/v1beta/data_sources_service/rest"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Shopping
|
32
|
+
module Merchant
|
33
|
+
module DataSources
|
34
|
+
module V1beta
|
35
|
+
##
|
36
|
+
# Service to manage primary, supplemental, inventory and other data sources.
|
37
|
+
# See more in the [Merchant
|
38
|
+
# Center](https://support.google.com/merchants/answer/7439058) help article.
|
39
|
+
#
|
40
|
+
# @example Load this service and instantiate a gRPC client
|
41
|
+
#
|
42
|
+
# require "google/shopping/merchant/data_sources/v1beta/data_sources_service"
|
43
|
+
# client = ::Google::Shopping::Merchant::DataSources::V1beta::DataSourcesService::Client.new
|
44
|
+
#
|
45
|
+
# @example Load this service and instantiate a REST client
|
46
|
+
#
|
47
|
+
# require "google/shopping/merchant/data_sources/v1beta/data_sources_service/rest"
|
48
|
+
# client = ::Google::Shopping::Merchant::DataSources::V1beta::DataSourcesService::Rest::Client.new
|
49
|
+
#
|
50
|
+
module DataSourcesService
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
helper_path = ::File.join __dir__, "data_sources_service", "helpers.rb"
|
59
|
+
require "google/shopping/merchant/data_sources/v1beta/data_sources_service/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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/shopping/merchant/data_sources/v1beta/data_sources_service/rest"
|
20
|
+
require "google/shopping/merchant/data_sources/v1beta/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Shopping
|
24
|
+
module Merchant
|
25
|
+
module DataSources
|
26
|
+
##
|
27
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
28
|
+
#
|
29
|
+
# @example
|
30
|
+
#
|
31
|
+
# require "google/shopping/merchant/data_sources/v1beta/rest"
|
32
|
+
# client = ::Google::Shopping::Merchant::DataSources::V1beta::DataSourcesService::Rest::Client.new
|
33
|
+
#
|
34
|
+
module V1beta
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -1,10 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# Copyright 2024 Google LLC
|
2
4
|
#
|
3
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
6
|
# you may not use this file except in compliance with the License.
|
5
7
|
# You may obtain a copy of the License at
|
6
8
|
#
|
7
|
-
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
10
|
#
|
9
11
|
# Unless required by applicable law or agreed to in writing, software
|
10
12
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
@@ -12,12 +14,15 @@
|
|
12
14
|
# See the License for the specific language governing permissions and
|
13
15
|
# limitations under the License.
|
14
16
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
15
20
|
module Google
|
16
21
|
module Shopping
|
17
22
|
module Merchant
|
18
23
|
module DataSources
|
19
24
|
module V1beta
|
20
|
-
VERSION = "0.
|
25
|
+
VERSION = "0.1.2"
|
21
26
|
end
|
22
27
|
end
|
23
28
|
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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/shopping/merchant/data_sources/v1beta/data_sources_service"
|
20
|
+
require "google/shopping/merchant/data_sources/v1beta/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Shopping
|
24
|
+
module Merchant
|
25
|
+
module DataSources
|
26
|
+
##
|
27
|
+
# API client module.
|
28
|
+
#
|
29
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
30
|
+
#
|
31
|
+
# require "google/shopping/merchant/data_sources/v1beta"
|
32
|
+
# client = ::Google::Shopping::Merchant::DataSources::V1beta::DataSourcesService::Client.new
|
33
|
+
#
|
34
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
35
|
+
#
|
36
|
+
# require "google/shopping/merchant/data_sources/v1beta"
|
37
|
+
# client = ::Google::Shopping::Merchant::DataSources::V1beta::DataSourcesService::Rest::Client.new
|
38
|
+
#
|
39
|
+
module V1beta
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
helper_path = ::File.join __dir__, "v1beta", "_helpers.rb"
|
47
|
+
require "google/shopping/merchant/data_sources/v1beta/_helpers" if ::File.file? helper_path
|