Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Commit

Permalink
chore: upgrade gapic-generator-python to 0.46.3 (#35)
Browse files Browse the repository at this point in the history
fix: add async client to %name_%version/init.py

chore: add autogenerated snippets

chore: remove auth, policy, and options from the reserved names list

feat: support self-signed JWT flow for service accounts

chore: enable GAPIC metadata generation

chore: sort subpackages in %namespace/%name/init.py
  • Loading branch information
gcf-owl-bot[bot] committed May 20, 2021
1 parent c5b1e15 commit 879fd90
Show file tree
Hide file tree
Showing 56 changed files with 2,231 additions and 1,350 deletions.
1 change: 0 additions & 1 deletion docs/retail_v2/catalog_service.rst
Expand Up @@ -5,7 +5,6 @@ CatalogService
:members:
:inherited-members:


.. automodule:: google.cloud.retail_v2.services.catalog_service.pagers
:members:
:inherited-members:
76 changes: 38 additions & 38 deletions google/cloud/retail/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -15,26 +14,27 @@
# limitations under the License.
#

from google.cloud.retail_v2.services.catalog_service.client import CatalogServiceClient
from google.cloud.retail_v2.services.catalog_service.async_client import (
CatalogServiceAsyncClient,
)
from google.cloud.retail_v2.services.catalog_service.client import CatalogServiceClient
from google.cloud.retail_v2.services.prediction_service.async_client import (
PredictionServiceAsyncClient,
)
from google.cloud.retail_v2.services.prediction_service.client import (
PredictionServiceClient,
)
from google.cloud.retail_v2.services.product_service.async_client import (
ProductServiceAsyncClient,
from google.cloud.retail_v2.services.prediction_service.async_client import (
PredictionServiceAsyncClient,
)
from google.cloud.retail_v2.services.product_service.client import ProductServiceClient
from google.cloud.retail_v2.services.user_event_service.async_client import (
UserEventServiceAsyncClient,
from google.cloud.retail_v2.services.product_service.async_client import (
ProductServiceAsyncClient,
)
from google.cloud.retail_v2.services.user_event_service.client import (
UserEventServiceClient,
)
from google.cloud.retail_v2.services.user_event_service.async_client import (
UserEventServiceAsyncClient,
)

from google.cloud.retail_v2.types.catalog import Catalog
from google.cloud.retail_v2.types.catalog import ProductLevelConfig
from google.cloud.retail_v2.types.catalog_service import ListCatalogsRequest
Expand Down Expand Up @@ -77,52 +77,52 @@
from google.cloud.retail_v2.types.user_event_service import WriteUserEventRequest

__all__ = (
"BigQuerySource",
"Catalog",
"CatalogServiceAsyncClient",
"CatalogServiceClient",
"CollectUserEventRequest",
"CreateProductRequest",
"CatalogServiceAsyncClient",
"PredictionServiceClient",
"PredictionServiceAsyncClient",
"ProductServiceClient",
"ProductServiceAsyncClient",
"UserEventServiceClient",
"UserEventServiceAsyncClient",
"Catalog",
"ProductLevelConfig",
"ListCatalogsRequest",
"ListCatalogsResponse",
"UpdateCatalogRequest",
"CustomAttribute",
"DeleteProductRequest",
"GcsSource",
"GetProductRequest",
"Image",
"PriceInfo",
"UserInfo",
"BigQuerySource",
"GcsSource",
"ImportErrorsConfig",
"ImportMetadata",
"ImportProductsRequest",
"ImportProductsResponse",
"ImportUserEventsRequest",
"ImportUserEventsResponse",
"ListCatalogsRequest",
"ListCatalogsResponse",
"ProductInlineSource",
"ProductInputConfig",
"UserEventImportSummary",
"UserEventInlineSource",
"UserEventInputConfig",
"PredictRequest",
"PredictResponse",
"PredictionServiceAsyncClient",
"PredictionServiceClient",
"PriceInfo",
"Product",
"ProductDetail",
"ProductInlineSource",
"ProductInputConfig",
"ProductLevelConfig",
"ProductServiceAsyncClient",
"ProductServiceClient",
"PurchaseTransaction",
"CreateProductRequest",
"DeleteProductRequest",
"GetProductRequest",
"UpdateProductRequest",
"PurgeMetadata",
"PurgeUserEventsRequest",
"PurgeUserEventsResponse",
"ProductDetail",
"PurchaseTransaction",
"UserEvent",
"CollectUserEventRequest",
"RejoinUserEventsMetadata",
"RejoinUserEventsRequest",
"RejoinUserEventsResponse",
"UpdateCatalogRequest",
"UpdateProductRequest",
"UserEvent",
"UserEventImportSummary",
"UserEventInlineSource",
"UserEventInputConfig",
"UserEventServiceAsyncClient",
"UserEventServiceClient",
"UserInfo",
"WriteUserEventRequest",
)
13 changes: 10 additions & 3 deletions google/cloud/retail_v2/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -16,9 +15,14 @@
#

from .services.catalog_service import CatalogServiceClient
from .services.catalog_service import CatalogServiceAsyncClient
from .services.prediction_service import PredictionServiceClient
from .services.prediction_service import PredictionServiceAsyncClient
from .services.product_service import ProductServiceClient
from .services.product_service import ProductServiceAsyncClient
from .services.user_event_service import UserEventServiceClient
from .services.user_event_service import UserEventServiceAsyncClient

from .types.catalog import Catalog
from .types.catalog import ProductLevelConfig
from .types.catalog_service import ListCatalogsRequest
Expand Down Expand Up @@ -60,8 +64,11 @@
from .types.user_event_service import RejoinUserEventsResponse
from .types.user_event_service import WriteUserEventRequest


__all__ = (
"CatalogServiceAsyncClient",
"PredictionServiceAsyncClient",
"ProductServiceAsyncClient",
"UserEventServiceAsyncClient",
"BigQuerySource",
"Catalog",
"CatalogServiceClient",
Expand Down Expand Up @@ -103,7 +110,7 @@
"UserEventImportSummary",
"UserEventInlineSource",
"UserEventInputConfig",
"UserEventServiceClient",
"UserInfo",
"WriteUserEventRequest",
"UserEventServiceClient",
)
195 changes: 195 additions & 0 deletions google/cloud/retail_v2/gapic_metadata.json
@@ -0,0 +1,195 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.retail_v2",
"protoPackage": "google.cloud.retail.v2",
"schema": "1.0",
"services": {
"CatalogService": {
"clients": {
"grpc": {
"libraryClient": "CatalogServiceClient",
"rpcs": {
"ListCatalogs": {
"methods": [
"list_catalogs"
]
},
"UpdateCatalog": {
"methods": [
"update_catalog"
]
}
}
},
"grpc-async": {
"libraryClient": "CatalogServiceAsyncClient",
"rpcs": {
"ListCatalogs": {
"methods": [
"list_catalogs"
]
},
"UpdateCatalog": {
"methods": [
"update_catalog"
]
}
}
}
}
},
"PredictionService": {
"clients": {
"grpc": {
"libraryClient": "PredictionServiceClient",
"rpcs": {
"Predict": {
"methods": [
"predict"
]
}
}
},
"grpc-async": {
"libraryClient": "PredictionServiceAsyncClient",
"rpcs": {
"Predict": {
"methods": [
"predict"
]
}
}
}
}
},
"ProductService": {
"clients": {
"grpc": {
"libraryClient": "ProductServiceClient",
"rpcs": {
"CreateProduct": {
"methods": [
"create_product"
]
},
"DeleteProduct": {
"methods": [
"delete_product"
]
},
"GetProduct": {
"methods": [
"get_product"
]
},
"ImportProducts": {
"methods": [
"import_products"
]
},
"UpdateProduct": {
"methods": [
"update_product"
]
}
}
},
"grpc-async": {
"libraryClient": "ProductServiceAsyncClient",
"rpcs": {
"CreateProduct": {
"methods": [
"create_product"
]
},
"DeleteProduct": {
"methods": [
"delete_product"
]
},
"GetProduct": {
"methods": [
"get_product"
]
},
"ImportProducts": {
"methods": [
"import_products"
]
},
"UpdateProduct": {
"methods": [
"update_product"
]
}
}
}
}
},
"UserEventService": {
"clients": {
"grpc": {
"libraryClient": "UserEventServiceClient",
"rpcs": {
"CollectUserEvent": {
"methods": [
"collect_user_event"
]
},
"ImportUserEvents": {
"methods": [
"import_user_events"
]
},
"PurgeUserEvents": {
"methods": [
"purge_user_events"
]
},
"RejoinUserEvents": {
"methods": [
"rejoin_user_events"
]
},
"WriteUserEvent": {
"methods": [
"write_user_event"
]
}
}
},
"grpc-async": {
"libraryClient": "UserEventServiceAsyncClient",
"rpcs": {
"CollectUserEvent": {
"methods": [
"collect_user_event"
]
},
"ImportUserEvents": {
"methods": [
"import_user_events"
]
},
"PurgeUserEvents": {
"methods": [
"purge_user_events"
]
},
"RejoinUserEvents": {
"methods": [
"rejoin_user_events"
]
},
"WriteUserEvent": {
"methods": [
"write_user_event"
]
}
}
}
}
}
}
}
1 change: 0 additions & 1 deletion google/cloud/retail_v2/services/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 0 additions & 2 deletions google/cloud/retail_v2/services/catalog_service/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .client import CatalogServiceClient
from .async_client import CatalogServiceAsyncClient

Expand Down

0 comments on commit 879fd90

Please sign in to comment.