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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5946614ec6e2c7d14aaae2e28dc6e20a2fb85dc9f1f3149be6d4ac068f74927a
4
- data.tar.gz: 37da46d9ebff96e4493067d4cb154efe7d732f3d51b1949f570406bce04189b1
3
+ metadata.gz: 0f87b77fdcda9d1d48ea24076be10eede507819f964af0827d4cdca417df022b
4
+ data.tar.gz: 63c606fb2788dcc28bf885b746249e254c7ef9edc05499a1e92355e34369e7d2
5
5
  SHA512:
6
- metadata.gz: 5ee07a59792e23b89ff56f9c5d1022fdb87b62fe57d1acfbe0f437cb72b5edd0ff7908f87bd101d629d4c5d7215e6be4105beef8606d6f848d1fced3e7d040b9
7
- data.tar.gz: 1b5ebb87af6aab700be2d3206b0d433772815e14726bf285fe92748f7c993352e541cb45904ea79d767844e6b7907a23fd4984d1739cd9ed3fb752a332f55125
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 accounts.
3
+ Programmatically manage your Merchant Center Accounts.
4
4
 
5
- Programmatically manage your Merchant Center accounts.
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*`.
@@ -21,7 +21,7 @@ module Google
21
21
  module Shopping
22
22
  module Merchant
23
23
  module DataSources
24
- VERSION = "0.1.0"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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.1.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-06-06 00:00:00.000000000 Z
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.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.0'
43
+ version: '0.2'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: 2.a
47
- description: Programmatically manage your Merchant Center accounts.
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 accounts.
94
+ summary: Programmatically manage your Merchant Center Accounts.
83
95
  test_files: []