Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions packages/google-shopping-merchant-lfp/.flake8
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
# -*- coding: utf-8 -*-
#
# Copyright 2024 Google LLC
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Generated by synthtool. DO NOT EDIT!
#
[flake8]
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333):
# Resolve flake8 lint issues
ignore = E203, E231, E266, E501, W503
exclude =
# Exclude generated code.
**/proto/**
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333):
# Ensure that generated code passes flake8 lint
**/gapic/**
**/services/**
**/types/**
# Exclude Protobuf gencode
*_pb2.py

# Standard linting exemptions.
Expand Down
13 changes: 4 additions & 9 deletions packages/google-shopping-merchant-lfp/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
# -*- coding: utf-8 -*-
#
# Copyright 2024 Google LLC
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Generated by synthtool. DO NOT EDIT!
#
include README.rst LICENSE
recursive-include google *.json *.proto py.typed
recursive-include google *.py *.pyi *.json *.proto py.typed
recursive-include tests *
global-exclude *.py[co]
global-exclude __pycache__

# Exclude scripts for samples readmegen
prune scripts/readme-gen
4 changes: 2 additions & 2 deletions packages/google-shopping-merchant-lfp/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Code-Based Examples

import logging

from google.cloud.translate_v3 import translate
from google.cloud import library_v1

base_logger = logging.getLogger("google")
base_logger.addHandler(logging.StreamHandler())
Expand All @@ -174,7 +174,7 @@ Code-Based Examples

import logging

from google.cloud.translate_v3 import translate
from google.cloud import library_v1

base_logger = logging.getLogger("google.cloud.library_v1")
base_logger.addHandler(logging.StreamHandler())
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
LfpMerchantStateService
-----------------------------------------

.. automodule:: google.shopping.merchant_lfp_v1beta.services.lfp_merchant_state_service
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ Services for Google Shopping Merchant Lfp v1beta API
:maxdepth: 2

lfp_inventory_service
lfp_merchant_state_service
lfp_sale_service
lfp_store_service
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
from google.shopping.merchant_lfp_v1beta.services.lfp_inventory_service.client import (
LfpInventoryServiceClient,
)
from google.shopping.merchant_lfp_v1beta.services.lfp_merchant_state_service.async_client import (
LfpMerchantStateServiceAsyncClient,
)
from google.shopping.merchant_lfp_v1beta.services.lfp_merchant_state_service.client import (
LfpMerchantStateServiceClient,
)
from google.shopping.merchant_lfp_v1beta.services.lfp_sale_service.async_client import (
LfpSaleServiceAsyncClient,
)
Expand All @@ -40,6 +46,10 @@
InsertLfpInventoryRequest,
LfpInventory,
)
from google.shopping.merchant_lfp_v1beta.types.lfpmerchantstate import (
GetLfpMerchantStateRequest,
LfpMerchantState,
)
from google.shopping.merchant_lfp_v1beta.types.lfpsale import (
InsertLfpSaleRequest,
LfpSale,
Expand All @@ -56,12 +66,16 @@
__all__ = (
"LfpInventoryServiceClient",
"LfpInventoryServiceAsyncClient",
"LfpMerchantStateServiceClient",
"LfpMerchantStateServiceAsyncClient",
"LfpSaleServiceClient",
"LfpSaleServiceAsyncClient",
"LfpStoreServiceClient",
"LfpStoreServiceAsyncClient",
"InsertLfpInventoryRequest",
"LfpInventory",
"GetLfpMerchantStateRequest",
"LfpMerchantState",
"InsertLfpSaleRequest",
"LfpSale",
"DeleteLfpStoreRequest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,17 @@
LfpInventoryServiceAsyncClient,
LfpInventoryServiceClient,
)
from .services.lfp_merchant_state_service import (
LfpMerchantStateServiceAsyncClient,
LfpMerchantStateServiceClient,
)
from .services.lfp_sale_service import LfpSaleServiceAsyncClient, LfpSaleServiceClient
from .services.lfp_store_service import (
LfpStoreServiceAsyncClient,
LfpStoreServiceClient,
)
from .types.lfpinventory import InsertLfpInventoryRequest, LfpInventory
from .types.lfpmerchantstate import GetLfpMerchantStateRequest, LfpMerchantState
from .types.lfpsale import InsertLfpSaleRequest, LfpSale
from .types.lfpstore import (
DeleteLfpStoreRequest,
Expand All @@ -40,15 +45,19 @@

__all__ = (
"LfpInventoryServiceAsyncClient",
"LfpMerchantStateServiceAsyncClient",
"LfpSaleServiceAsyncClient",
"LfpStoreServiceAsyncClient",
"DeleteLfpStoreRequest",
"GetLfpMerchantStateRequest",
"GetLfpStoreRequest",
"InsertLfpInventoryRequest",
"InsertLfpSaleRequest",
"InsertLfpStoreRequest",
"LfpInventory",
"LfpInventoryServiceClient",
"LfpMerchantState",
"LfpMerchantStateServiceClient",
"LfpSale",
"LfpSaleServiceClient",
"LfpStore",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,40 @@
}
}
},
"LfpMerchantStateService": {
"clients": {
"grpc": {
"libraryClient": "LfpMerchantStateServiceClient",
"rpcs": {
"GetLfpMerchantState": {
"methods": [
"get_lfp_merchant_state"
]
}
}
},
"grpc-async": {
"libraryClient": "LfpMerchantStateServiceAsyncClient",
"rpcs": {
"GetLfpMerchantState": {
"methods": [
"get_lfp_merchant_state"
]
}
}
},
"rest": {
"libraryClient": "LfpMerchantStateServiceClient",
"rpcs": {
"GetLfpMerchantState": {
"methods": [
"get_lfp_merchant_state"
]
}
}
}
}
},
"LfpSaleService": {
"clients": {
"grpc": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,11 @@ def intercept_unary_unary(self, continuation, client_call_details, request):
f"Sending request for {client_call_details.method}",
extra={
"serviceName": "google.shopping.merchant.lfp.v1beta.LfpInventoryService",
"rpcName": client_call_details.method,
"rpcName": str(client_call_details.method),
"request": grpc_request,
"metadata": grpc_request["metadata"],
},
)

response = continuation(client_call_details, request)
if logging_enabled: # pragma: NO COVER
response_metadata = response.trailing_metadata()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .async_client import LfpMerchantStateServiceAsyncClient
from .client import LfpMerchantStateServiceClient

__all__ = (
"LfpMerchantStateServiceClient",
"LfpMerchantStateServiceAsyncClient",
)
Loading
Loading