Skip to content

Commit 4ae9435

Browse files
feat: [google-shopping-merchant-products] add products API client libraries for v1 (googleapis#14183)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 791134255 Source-Link: googleapis/googleapis@e14e0bf Source-Link: https://github.com/googleapis/googleapis-gen/commit/458b657623643c2aaf93ddd9a95ac6d7b8a17db4 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LXByb2R1Y3RzLy5Pd2xCb3QueWFtbCIsImgiOiI0NThiNjU3NjIzNjQzYzJhYWY5M2RkZDlhOTVhYzZkN2I4YTE3ZGI0In0= --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 299698d commit 4ae9435

File tree

53 files changed

+21145
-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.

53 files changed

+21145
-3
lines changed

packages/google-shopping-merchant-products/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_products_v1beta``.
7+
58

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

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

1526
Changelog
1627
---------
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ProductInputsService
2+
--------------------------------------
3+
4+
.. automodule:: google.shopping.merchant_products_v1.services.product_inputs_service
5+
:members:
6+
:inherited-members:
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
ProductsService
2+
---------------------------------
3+
4+
.. automodule:: google.shopping.merchant_products_v1.services.products_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.shopping.merchant_products_v1.services.products_service.pagers
9+
:members:
10+
: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 Products v1 API
2+
=====================================================
3+
.. toctree::
4+
:maxdepth: 2
5+
6+
product_inputs_service
7+
products_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 Products v1 API
2+
==================================================
3+
4+
.. automodule:: google.shopping.merchant_products_v1.types
5+
:members:
6+
:show-inheritance:

packages/google-shopping-merchant-products/google/shopping/merchant_products/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.2.6" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
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_products_v1 import gapic_version as package_version
17+
18+
__version__ = package_version.__version__
19+
20+
21+
from .services.product_inputs_service import (
22+
ProductInputsServiceAsyncClient,
23+
ProductInputsServiceClient,
24+
)
25+
from .services.products_service import ProductsServiceAsyncClient, ProductsServiceClient
26+
from .types.productinputs import (
27+
DeleteProductInputRequest,
28+
InsertProductInputRequest,
29+
ProductInput,
30+
UpdateProductInputRequest,
31+
)
32+
from .types.products import (
33+
GetProductRequest,
34+
ListProductsRequest,
35+
ListProductsResponse,
36+
Product,
37+
)
38+
from .types.products_common import (
39+
AgeGroup,
40+
AutomatedDiscounts,
41+
Availability,
42+
CertificationAuthority,
43+
CertificationName,
44+
CloudExportAdditionalProperties,
45+
Condition,
46+
CreditType,
47+
DigitalSourceType,
48+
EnergyEfficiencyClass,
49+
FreeShippingThreshold,
50+
Gender,
51+
LoyaltyPoints,
52+
LoyaltyProgram,
53+
Pause,
54+
PickupMethod,
55+
PickupSla,
56+
ProductAttributes,
57+
ProductCertification,
58+
ProductDetail,
59+
ProductDimension,
60+
ProductInstallment,
61+
ProductStatus,
62+
ProductSustainabilityIncentive,
63+
ProductWeight,
64+
Shipping,
65+
ShippingDimension,
66+
ShippingWeight,
67+
SizeSystem,
68+
SizeType,
69+
StructuredDescription,
70+
StructuredTitle,
71+
SubscriptionCost,
72+
SubscriptionPeriod,
73+
UnitPricingBaseMeasure,
74+
UnitPricingMeasure,
75+
)
76+
77+
__all__ = (
78+
"ProductInputsServiceAsyncClient",
79+
"ProductsServiceAsyncClient",
80+
"AgeGroup",
81+
"AutomatedDiscounts",
82+
"Availability",
83+
"CertificationAuthority",
84+
"CertificationName",
85+
"CloudExportAdditionalProperties",
86+
"Condition",
87+
"CreditType",
88+
"DeleteProductInputRequest",
89+
"DigitalSourceType",
90+
"EnergyEfficiencyClass",
91+
"FreeShippingThreshold",
92+
"Gender",
93+
"GetProductRequest",
94+
"InsertProductInputRequest",
95+
"ListProductsRequest",
96+
"ListProductsResponse",
97+
"LoyaltyPoints",
98+
"LoyaltyProgram",
99+
"Pause",
100+
"PickupMethod",
101+
"PickupSla",
102+
"Product",
103+
"ProductAttributes",
104+
"ProductCertification",
105+
"ProductDetail",
106+
"ProductDimension",
107+
"ProductInput",
108+
"ProductInputsServiceClient",
109+
"ProductInstallment",
110+
"ProductStatus",
111+
"ProductSustainabilityIncentive",
112+
"ProductWeight",
113+
"ProductsServiceClient",
114+
"Shipping",
115+
"ShippingDimension",
116+
"ShippingWeight",
117+
"SizeSystem",
118+
"SizeType",
119+
"StructuredDescription",
120+
"StructuredTitle",
121+
"SubscriptionCost",
122+
"SubscriptionPeriod",
123+
"UnitPricingBaseMeasure",
124+
"UnitPricingMeasure",
125+
"UpdateProductInputRequest",
126+
)
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
{
2+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
3+
"language": "python",
4+
"libraryPackage": "google.shopping.merchant_products_v1",
5+
"protoPackage": "google.shopping.merchant.products.v1",
6+
"schema": "1.0",
7+
"services": {
8+
"ProductInputsService": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "ProductInputsServiceClient",
12+
"rpcs": {
13+
"DeleteProductInput": {
14+
"methods": [
15+
"delete_product_input"
16+
]
17+
},
18+
"InsertProductInput": {
19+
"methods": [
20+
"insert_product_input"
21+
]
22+
},
23+
"UpdateProductInput": {
24+
"methods": [
25+
"update_product_input"
26+
]
27+
}
28+
}
29+
},
30+
"grpc-async": {
31+
"libraryClient": "ProductInputsServiceAsyncClient",
32+
"rpcs": {
33+
"DeleteProductInput": {
34+
"methods": [
35+
"delete_product_input"
36+
]
37+
},
38+
"InsertProductInput": {
39+
"methods": [
40+
"insert_product_input"
41+
]
42+
},
43+
"UpdateProductInput": {
44+
"methods": [
45+
"update_product_input"
46+
]
47+
}
48+
}
49+
},
50+
"rest": {
51+
"libraryClient": "ProductInputsServiceClient",
52+
"rpcs": {
53+
"DeleteProductInput": {
54+
"methods": [
55+
"delete_product_input"
56+
]
57+
},
58+
"InsertProductInput": {
59+
"methods": [
60+
"insert_product_input"
61+
]
62+
},
63+
"UpdateProductInput": {
64+
"methods": [
65+
"update_product_input"
66+
]
67+
}
68+
}
69+
}
70+
}
71+
},
72+
"ProductsService": {
73+
"clients": {
74+
"grpc": {
75+
"libraryClient": "ProductsServiceClient",
76+
"rpcs": {
77+
"GetProduct": {
78+
"methods": [
79+
"get_product"
80+
]
81+
},
82+
"ListProducts": {
83+
"methods": [
84+
"list_products"
85+
]
86+
}
87+
}
88+
},
89+
"grpc-async": {
90+
"libraryClient": "ProductsServiceAsyncClient",
91+
"rpcs": {
92+
"GetProduct": {
93+
"methods": [
94+
"get_product"
95+
]
96+
},
97+
"ListProducts": {
98+
"methods": [
99+
"list_products"
100+
]
101+
}
102+
}
103+
},
104+
"rest": {
105+
"libraryClient": "ProductsServiceClient",
106+
"rpcs": {
107+
"GetProduct": {
108+
"methods": [
109+
"get_product"
110+
]
111+
},
112+
"ListProducts": {
113+
"methods": [
114+
"list_products"
115+
]
116+
}
117+
}
118+
}
119+
}
120+
}
121+
}
122+
}
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-products package uses inline types.

0 commit comments

Comments
 (0)