Skip to content

Commit 86d0606

Browse files
chore: [google-shopping-merchant-accounts] update Python generator version to 1.25.1 (#14237)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE feat: Add batch operations for custom regions docs: fix comment for online return policy END_COMMIT_OVERRIDE PiperOrigin-RevId: 800535761 Source-Link: googleapis/googleapis@4cf1f99 Source-Link: googleapis/googleapis-gen@133d25b Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LWFjY291bnRzLy5Pd2xCb3QueWFtbCIsImgiOiIxMzNkMjViNjhlNzEyMTE2ZTFjNWRjNzFmYzNlYjNjNWU3MTcwMjJhIn0= feat(accounts): Add batch operations for custom regions Added the following methods to the `RegionsService` in the Merchant API Accounts v1: - `BatchCreateRegions`: Create multiple regions in a single request. - `BatchUpdateRegions`: Update multiple regions in a single request. - `BatchDeleteRegions`: Delete multiple regions in a single request. These methods allow for more efficient management of custom regions. PiperOrigin-RevId: 800519608 Source-Link: googleapis/googleapis@c4c5ad7 Source-Link: googleapis/googleapis-gen@d1fd7b2 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LWFjY291bnRzLy5Pd2xCb3QueWFtbCIsImgiOiJkMWZkN2IyZjAwZDVjNDI5ZTMxNzg5Yzk2YjU0ZTJjNWI4ZWI1M2JmIn0= docs: fix comment for online return policy PiperOrigin-RevId: 794909405 Source-Link: googleapis/googleapis@997100b Source-Link: googleapis/googleapis-gen@536644e Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LWFjY291bnRzLy5Pd2xCb3QueWFtbCIsImgiOiI1MzY2NDRlYzhhN2ZjZGNlZGUxNTRmMTQ2ZDZjMDM0MWIwMzk3ODkxIn0= --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 6c26564 commit 86d0606

35 files changed

+5551
-1363
lines changed

packages/google-shopping-merchant-accounts/google/shopping/merchant_accounts/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,11 @@
290290
Program,
291291
)
292292
from google.shopping.merchant_accounts_v1.types.regions import (
293+
BatchCreateRegionsRequest,
294+
BatchCreateRegionsResponse,
295+
BatchDeleteRegionsRequest,
296+
BatchUpdateRegionsRequest,
297+
BatchUpdateRegionsResponse,
293298
CreateRegionRequest,
294299
DeleteRegionRequest,
295300
GetRegionRequest,
@@ -496,6 +501,11 @@
496501
"ListProgramsRequest",
497502
"ListProgramsResponse",
498503
"Program",
504+
"BatchCreateRegionsRequest",
505+
"BatchCreateRegionsResponse",
506+
"BatchDeleteRegionsRequest",
507+
"BatchUpdateRegionsRequest",
508+
"BatchUpdateRegionsResponse",
499509
"CreateRegionRequest",
500510
"DeleteRegionRequest",
501511
"GetRegionRequest",

packages/google-shopping-merchant-accounts/google/shopping/merchant_accounts/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.3.6" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-shopping-merchant-accounts/google/shopping/merchant_accounts_v1/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,11 @@
229229
Program,
230230
)
231231
from .types.regions import (
232+
BatchCreateRegionsRequest,
233+
BatchCreateRegionsResponse,
234+
BatchDeleteRegionsRequest,
235+
BatchUpdateRegionsRequest,
236+
BatchUpdateRegionsResponse,
232237
CreateRegionRequest,
233238
DeleteRegionRequest,
234239
GetRegionRequest,
@@ -332,6 +337,11 @@
332337
"AutomaticImprovementsServiceClient",
333338
"AutomaticItemUpdates",
334339
"AutomaticShippingImprovements",
340+
"BatchCreateRegionsRequest",
341+
"BatchCreateRegionsResponse",
342+
"BatchDeleteRegionsRequest",
343+
"BatchUpdateRegionsRequest",
344+
"BatchUpdateRegionsResponse",
335345
"BusinessDayConfig",
336346
"BusinessIdentity",
337347
"BusinessIdentityServiceClient",

packages/google-shopping-merchant-accounts/google/shopping/merchant_accounts_v1/gapic_metadata.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,6 +1128,21 @@
11281128
"grpc": {
11291129
"libraryClient": "RegionsServiceClient",
11301130
"rpcs": {
1131+
"BatchCreateRegions": {
1132+
"methods": [
1133+
"batch_create_regions"
1134+
]
1135+
},
1136+
"BatchDeleteRegions": {
1137+
"methods": [
1138+
"batch_delete_regions"
1139+
]
1140+
},
1141+
"BatchUpdateRegions": {
1142+
"methods": [
1143+
"batch_update_regions"
1144+
]
1145+
},
11311146
"CreateRegion": {
11321147
"methods": [
11331148
"create_region"
@@ -1158,6 +1173,21 @@
11581173
"grpc-async": {
11591174
"libraryClient": "RegionsServiceAsyncClient",
11601175
"rpcs": {
1176+
"BatchCreateRegions": {
1177+
"methods": [
1178+
"batch_create_regions"
1179+
]
1180+
},
1181+
"BatchDeleteRegions": {
1182+
"methods": [
1183+
"batch_delete_regions"
1184+
]
1185+
},
1186+
"BatchUpdateRegions": {
1187+
"methods": [
1188+
"batch_update_regions"
1189+
]
1190+
},
11611191
"CreateRegion": {
11621192
"methods": [
11631193
"create_region"
@@ -1188,6 +1218,21 @@
11881218
"rest": {
11891219
"libraryClient": "RegionsServiceClient",
11901220
"rpcs": {
1221+
"BatchCreateRegions": {
1222+
"methods": [
1223+
"batch_create_regions"
1224+
]
1225+
},
1226+
"BatchDeleteRegions": {
1227+
"methods": [
1228+
"batch_delete_regions"
1229+
]
1230+
},
1231+
"BatchUpdateRegions": {
1232+
"methods": [
1233+
"batch_update_regions"
1234+
]
1235+
},
11911236
"CreateRegion": {
11921237
"methods": [
11931238
"create_region"

packages/google-shopping-merchant-accounts/google/shopping/merchant_accounts_v1/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.3.6" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-shopping-merchant-accounts/google/shopping/merchant_accounts_v1/services/online_return_policy_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class OnlineReturnPolicyServiceAsyncClient:
7373
7474
programs. This API defines the following resource model:
7575
76-
- `OnlineReturnPolicy </merchant/api/reference/rpc/google.shopping.merchant.accounts.v1#google.shopping.merchant.accounts.v1.OnlineReturnPolicy>`__
76+
- [OnlineReturnPolicy][google.shopping.merchant.accounts.v1.OnlineReturnPolicy]
7777
"""
7878

7979
_client: OnlineReturnPolicyServiceClient

packages/google-shopping-merchant-accounts/google/shopping/merchant_accounts_v1/services/online_return_policy_service/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class OnlineReturnPolicyServiceClient(metaclass=OnlineReturnPolicyServiceClientM
119119
120120
programs. This API defines the following resource model:
121121
122-
- `OnlineReturnPolicy </merchant/api/reference/rpc/google.shopping.merchant.accounts.v1#google.shopping.merchant.accounts.v1.OnlineReturnPolicy>`__
122+
- [OnlineReturnPolicy][google.shopping.merchant.accounts.v1.OnlineReturnPolicy]
123123
"""
124124

125125
@staticmethod

packages/google-shopping-merchant-accounts/google/shopping/merchant_accounts_v1/services/online_return_policy_service/transports/grpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class OnlineReturnPolicyServiceGrpcTransport(OnlineReturnPolicyServiceTransport)
120120
121121
programs. This API defines the following resource model:
122122
123-
- `OnlineReturnPolicy </merchant/api/reference/rpc/google.shopping.merchant.accounts.v1#google.shopping.merchant.accounts.v1.OnlineReturnPolicy>`__
123+
- [OnlineReturnPolicy][google.shopping.merchant.accounts.v1.OnlineReturnPolicy]
124124
125125
This class defines the same methods as the primary client, so the
126126
primary client can load the underlying transport implementation

packages/google-shopping-merchant-accounts/google/shopping/merchant_accounts_v1/services/online_return_policy_service/transports/grpc_asyncio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class OnlineReturnPolicyServiceGrpcAsyncIOTransport(OnlineReturnPolicyServiceTra
126126
127127
programs. This API defines the following resource model:
128128
129-
- `OnlineReturnPolicy </merchant/api/reference/rpc/google.shopping.merchant.accounts.v1#google.shopping.merchant.accounts.v1.OnlineReturnPolicy>`__
129+
- [OnlineReturnPolicy][google.shopping.merchant.accounts.v1.OnlineReturnPolicy]
130130
131131
This class defines the same methods as the primary client, so the
132132
primary client can load the underlying transport implementation

packages/google-shopping-merchant-accounts/google/shopping/merchant_accounts_v1/services/online_return_policy_service/transports/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ class OnlineReturnPolicyServiceRestTransport(
300300
programs. This API defines the following resource model:
301301
--------------------------------------------------------
302302
303-
`OnlineReturnPolicy </merchant/api/reference/rpc/google.shopping.merchant.accounts.v1#google.shopping.merchant.accounts.v1.OnlineReturnPolicy>`__
303+
[OnlineReturnPolicy][google.shopping.merchant.accounts.v1.OnlineReturnPolicy]
304304
305305
This class defines the same methods as the primary client, so the
306306
primary client can load the underlying transport implementation

0 commit comments

Comments
 (0)