Skip to content

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] authored May 20, 2021
1 parent fa0188d commit 568f65b
Show file tree
Hide file tree
Showing 56 changed files with 2,231 additions and 1,350 deletions.
Original file line number Diff line number Diff line change
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 packages/google-cloud-retail/google/cloud/retail/__init__.py
Original file line number Diff line number Diff line change
@@ -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 packages/google-cloud-retail/google/cloud/retail_v2/__init__.py
Original file line number Diff line number Diff line change
@@ -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",
)
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Loading

0 comments on commit 568f65b

Please sign in to comment.