google-shopping-merchant-data_sources 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/shopping/merchant/data_sources/version.rb +1 -1
- data/lib/google/shopping/merchant/data_sources.rb +34 -0
- metadata +18 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f87b77fdcda9d1d48ea24076be10eede507819f964af0827d4cdca417df022b
|
4
|
+
data.tar.gz: 63c606fb2788dcc28bf885b746249e254c7ef9edc05499a1e92355e34369e7d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 193f532a78ad49ec1964faaa66d53c77ade3e85da8098b89297f14f240e7df40337ce112cccb7232d4985b7060b4ac76881fda699479bc63c330af6f832ca7d1
|
7
|
+
data.tar.gz: 8bad29d6dab8fb4cee89793017fc9b7496f7879362374bf81dcc6493f8c51d1dc8bdec86bf3e5b87821d98546caf96f1eb0f966ebf4f822668c8668b11d9ccd7
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# Ruby Client for the Merchant API
|
2
2
|
|
3
|
-
Programmatically manage your Merchant Center
|
3
|
+
Programmatically manage your Merchant Center Accounts.
|
4
4
|
|
5
|
-
|
5
|
+
Merchant API consists of multiple Sub-APIs. Accounts Sub-API: Enables you to programmatically manage your accounts. Conversions Sub-API: Enables you to programmatically manage your conversion sources for a merchant account. Datasources Sub-API: Enables you to programmatically manage your datasources. Inventories Sub-API: This bundle enables you to programmatically manage your local and regional inventories. Local Feeds Partnerships Sub-API: This bundle enables LFP partners to submit local inventories for a merchant. Notifications Sub-API: This bundle enables you to programmatically manage your notification subscriptions. Products Sub-API: This bundle enables you to programmatically manage your products. Promotions Sub-API: This bundle enables you to programmatically manage your promotions for products. Quota Sub-API: This bundle enables you to list your quotas for all APIs you are using. Reports Sub-API: This bundle enables you to programmatically retrieve reports and insights about products, their performance and their competitive environment.
|
6
6
|
|
7
7
|
Actual client classes for the various versions of this API are defined in
|
8
8
|
_versioned_ client gems, with names of the form `google-shopping-merchant-data_sources-v*`.
|
@@ -63,6 +63,40 @@ module Google
|
|
63
63
|
service_module = service_module.const_get(:Rest) if transport == :rest
|
64
64
|
service_module.const_get(:Client).new(&block)
|
65
65
|
end
|
66
|
+
|
67
|
+
##
|
68
|
+
# Create a new client object for FileUploadsService.
|
69
|
+
#
|
70
|
+
# By default, this returns an instance of
|
71
|
+
# [Google::Shopping::Merchant::DataSources::V1beta::FileUploadsService::Client](https://rubydoc.info/gems/google-shopping-merchant-data_sources-v1beta/Google/Shopping/Merchant/DataSources/V1beta/FileUploadsService/Client)
|
72
|
+
# for a gRPC client for version V1beta of the API.
|
73
|
+
# However, you can specify a different API version by passing it in the
|
74
|
+
# `version` parameter. If the FileUploadsService service is
|
75
|
+
# supported by that API version, and the corresponding gem is available, the
|
76
|
+
# appropriate versioned client will be returned.
|
77
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
78
|
+
# the `transport` parameter.
|
79
|
+
#
|
80
|
+
# ## About FileUploadsService
|
81
|
+
#
|
82
|
+
# Service to manage data source file uploads.
|
83
|
+
#
|
84
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
85
|
+
# Defaults to `:v1beta`.
|
86
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
87
|
+
# @return [::Object] A client object for the specified version.
|
88
|
+
#
|
89
|
+
def self.file_uploads_service version: :v1beta, transport: :grpc, &block
|
90
|
+
require "google/shopping/merchant/data_sources/#{version.to_s.downcase}"
|
91
|
+
|
92
|
+
package_name = Google::Shopping::Merchant::DataSources
|
93
|
+
.constants
|
94
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
95
|
+
.first
|
96
|
+
service_module = Google::Shopping::Merchant::DataSources.const_get(package_name).const_get(:FileUploadsService)
|
97
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
98
|
+
service_module.const_get(:Client).new(&block)
|
99
|
+
end
|
66
100
|
end
|
67
101
|
end
|
68
102
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-shopping-merchant-data_sources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.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: 2024-
|
11
|
+
date: 2024-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.2'
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: 2.a
|
@@ -40,11 +40,23 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '0.
|
43
|
+
version: '0.2'
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 2.a
|
47
|
-
description:
|
47
|
+
description: 'Merchant API consists of multiple Sub-APIs. Accounts Sub-API: Enables
|
48
|
+
you to programmatically manage your accounts. Conversions Sub-API: Enables you to
|
49
|
+
programmatically manage your conversion sources for a merchant account. Datasources
|
50
|
+
Sub-API: Enables you to programmatically manage your datasources. Inventories Sub-API:
|
51
|
+
This bundle enables you to programmatically manage your local and regional inventories.
|
52
|
+
Local Feeds Partnerships Sub-API: This bundle enables LFP partners to submit local
|
53
|
+
inventories for a merchant. Notifications Sub-API: This bundle enables you to programmatically
|
54
|
+
manage your notification subscriptions. Products Sub-API: This bundle enables you
|
55
|
+
to programmatically manage your products. Promotions Sub-API: This bundle enables
|
56
|
+
you to programmatically manage your promotions for products. Quota Sub-API: This
|
57
|
+
bundle enables you to list your quotas for all APIs you are using. Reports Sub-API:
|
58
|
+
This bundle enables you to programmatically retrieve reports and insights about
|
59
|
+
products, their performance and their competitive environment.'
|
48
60
|
email: googleapis-packages@google.com
|
49
61
|
executables: []
|
50
62
|
extensions: []
|
@@ -79,5 +91,5 @@ requirements: []
|
|
79
91
|
rubygems_version: 3.5.6
|
80
92
|
signing_key:
|
81
93
|
specification_version: 4
|
82
|
-
summary: Programmatically manage your Merchant Center
|
94
|
+
summary: Programmatically manage your Merchant Center Accounts.
|
83
95
|
test_files: []
|