Skip to content

Commit 147cca6

Browse files
feat: [google-shopping-merchant-datasources] add datasources API client libraries for v1 (#14174)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 790723279 Source-Link: googleapis/googleapis@da8916b Source-Link: googleapis/googleapis-gen@2c0a438 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LWRhdGFzb3VyY2VzLy5Pd2xCb3QueWFtbCIsImgiOiIyYzBhNDM4N2EzMTA0Mjc4ODEwODlkYzBkYzE1MzJmMWE2YzA0NDdiIn0= --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 3e038db commit 147cca6

File tree

58 files changed

+21657
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+21657
-3
lines changed

packages/google-shopping-merchant-datasources/docs/index.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
.. include:: multiprocessing.rst
44

5+
This package includes clients for multiple versions of Merchant API.
6+
By default, you will get version ``merchant_datasources_v1beta``.
7+
58

69
API Reference
710
-------------
@@ -11,6 +14,14 @@ API Reference
1114
merchant_datasources_v1beta/services_
1215
merchant_datasources_v1beta/types_
1316

17+
API Reference
18+
-------------
19+
.. toctree::
20+
:maxdepth: 2
21+
22+
merchant_datasources_v1/services_
23+
merchant_datasources_v1/types_
24+
1425

1526
Changelog
1627
---------
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
DataSourcesService
2+
------------------------------------
3+
4+
.. automodule:: google.shopping.merchant_datasources_v1.services.data_sources_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.shopping.merchant_datasources_v1.services.data_sources_service.pagers
9+
:members:
10+
:inherited-members:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FileUploadsService
2+
------------------------------------
3+
4+
.. automodule:: google.shopping.merchant_datasources_v1.services.file_uploads_service
5+
:members:
6+
:inherited-members:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Services for Google Shopping Merchant Datasources v1 API
2+
========================================================
3+
.. toctree::
4+
:maxdepth: 2
5+
6+
data_sources_service
7+
file_uploads_service
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Types for Google Shopping Merchant Datasources v1 API
2+
=====================================================
3+
4+
.. automodule:: google.shopping.merchant_datasources_v1.types
5+
:members:
6+
:show-inheritance:

packages/google-shopping-merchant-datasources/google/shopping/merchant_datasources/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.1.10" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2025 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
from google.shopping.merchant_datasources_v1 import gapic_version as package_version
17+
18+
__version__ = package_version.__version__
19+
20+
21+
from .services.data_sources_service import (
22+
DataSourcesServiceAsyncClient,
23+
DataSourcesServiceClient,
24+
)
25+
from .services.file_uploads_service import (
26+
FileUploadsServiceAsyncClient,
27+
FileUploadsServiceClient,
28+
)
29+
from .types.datasources import (
30+
CreateDataSourceRequest,
31+
DataSource,
32+
DeleteDataSourceRequest,
33+
FetchDataSourceRequest,
34+
GetDataSourceRequest,
35+
ListDataSourcesRequest,
36+
ListDataSourcesResponse,
37+
UpdateDataSourceRequest,
38+
)
39+
from .types.datasourcetypes import (
40+
DataSourceReference,
41+
LocalInventoryDataSource,
42+
MerchantReviewDataSource,
43+
PrimaryProductDataSource,
44+
ProductReviewDataSource,
45+
PromotionDataSource,
46+
RegionalInventoryDataSource,
47+
SupplementalProductDataSource,
48+
)
49+
from .types.fileinputs import FileInput
50+
from .types.fileuploads import FileUpload, GetFileUploadRequest
51+
52+
__all__ = (
53+
"DataSourcesServiceAsyncClient",
54+
"FileUploadsServiceAsyncClient",
55+
"CreateDataSourceRequest",
56+
"DataSource",
57+
"DataSourceReference",
58+
"DataSourcesServiceClient",
59+
"DeleteDataSourceRequest",
60+
"FetchDataSourceRequest",
61+
"FileInput",
62+
"FileUpload",
63+
"FileUploadsServiceClient",
64+
"GetDataSourceRequest",
65+
"GetFileUploadRequest",
66+
"ListDataSourcesRequest",
67+
"ListDataSourcesResponse",
68+
"LocalInventoryDataSource",
69+
"MerchantReviewDataSource",
70+
"PrimaryProductDataSource",
71+
"ProductReviewDataSource",
72+
"PromotionDataSource",
73+
"RegionalInventoryDataSource",
74+
"SupplementalProductDataSource",
75+
"UpdateDataSourceRequest",
76+
)
Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
{
2+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
3+
"language": "python",
4+
"libraryPackage": "google.shopping.merchant_datasources_v1",
5+
"protoPackage": "google.shopping.merchant.datasources.v1",
6+
"schema": "1.0",
7+
"services": {
8+
"DataSourcesService": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "DataSourcesServiceClient",
12+
"rpcs": {
13+
"CreateDataSource": {
14+
"methods": [
15+
"create_data_source"
16+
]
17+
},
18+
"DeleteDataSource": {
19+
"methods": [
20+
"delete_data_source"
21+
]
22+
},
23+
"FetchDataSource": {
24+
"methods": [
25+
"fetch_data_source"
26+
]
27+
},
28+
"GetDataSource": {
29+
"methods": [
30+
"get_data_source"
31+
]
32+
},
33+
"ListDataSources": {
34+
"methods": [
35+
"list_data_sources"
36+
]
37+
},
38+
"UpdateDataSource": {
39+
"methods": [
40+
"update_data_source"
41+
]
42+
}
43+
}
44+
},
45+
"grpc-async": {
46+
"libraryClient": "DataSourcesServiceAsyncClient",
47+
"rpcs": {
48+
"CreateDataSource": {
49+
"methods": [
50+
"create_data_source"
51+
]
52+
},
53+
"DeleteDataSource": {
54+
"methods": [
55+
"delete_data_source"
56+
]
57+
},
58+
"FetchDataSource": {
59+
"methods": [
60+
"fetch_data_source"
61+
]
62+
},
63+
"GetDataSource": {
64+
"methods": [
65+
"get_data_source"
66+
]
67+
},
68+
"ListDataSources": {
69+
"methods": [
70+
"list_data_sources"
71+
]
72+
},
73+
"UpdateDataSource": {
74+
"methods": [
75+
"update_data_source"
76+
]
77+
}
78+
}
79+
},
80+
"rest": {
81+
"libraryClient": "DataSourcesServiceClient",
82+
"rpcs": {
83+
"CreateDataSource": {
84+
"methods": [
85+
"create_data_source"
86+
]
87+
},
88+
"DeleteDataSource": {
89+
"methods": [
90+
"delete_data_source"
91+
]
92+
},
93+
"FetchDataSource": {
94+
"methods": [
95+
"fetch_data_source"
96+
]
97+
},
98+
"GetDataSource": {
99+
"methods": [
100+
"get_data_source"
101+
]
102+
},
103+
"ListDataSources": {
104+
"methods": [
105+
"list_data_sources"
106+
]
107+
},
108+
"UpdateDataSource": {
109+
"methods": [
110+
"update_data_source"
111+
]
112+
}
113+
}
114+
}
115+
}
116+
},
117+
"FileUploadsService": {
118+
"clients": {
119+
"grpc": {
120+
"libraryClient": "FileUploadsServiceClient",
121+
"rpcs": {
122+
"GetFileUpload": {
123+
"methods": [
124+
"get_file_upload"
125+
]
126+
}
127+
}
128+
},
129+
"grpc-async": {
130+
"libraryClient": "FileUploadsServiceAsyncClient",
131+
"rpcs": {
132+
"GetFileUpload": {
133+
"methods": [
134+
"get_file_upload"
135+
]
136+
}
137+
}
138+
},
139+
"rest": {
140+
"libraryClient": "FileUploadsServiceClient",
141+
"rpcs": {
142+
"GetFileUpload": {
143+
"methods": [
144+
"get_file_upload"
145+
]
146+
}
147+
}
148+
}
149+
}
150+
}
151+
}
152+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2025 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
__version__ = "0.0.0" # {x-release-please-version}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Marker file for PEP 561.
2+
# The google-shopping-merchant-datasources package uses inline types.

0 commit comments

Comments
 (0)