Skip to content

Commit

Permalink
chore: Update gapic-generator-python to v1.7.1 (#199)
Browse files Browse the repository at this point in the history
* chore: update to gapic-generator-python 1.5.0

feat: add support for `google.cloud.<api>.__version__`
PiperOrigin-RevId: 484665853

Source-Link: googleapis/googleapis@8eb249a

Source-Link: googleapis/googleapis-gen@c8aa327
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzhhYTMyN2I1ZjQ3ODg2NWZjM2ZkOTFlM2MyNzY4ZTU0ZTI2YWQ0NCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* update version in gapic_version.py

* add .release-please-manifest.json with correct version

* add release-please-config.json

* feat: new APIs added to reflect updates to the filestore service

- Add ENTERPRISE Tier
- Add snapshot APIs: RevertInstance, ListSnapshots, CreateSnapshot, DeleteSnapshot, UpdateSnapshot
- Add multi-share APIs: ListShares, GetShare, CreateShare, DeleteShare, UpdateShare
- Add ConnectMode to NetworkConfig (for Private Service Access support)
- New status codes (SUSPENDED/SUSPENDING, REVERTING/RESUMING)
- Add SuspensionReason (for KMS related suspension)
- Add new fields to Instance information: max_capacity_gb, capacity_step_size_gb, max_share_count, capacity_gb, multi_share_enabled

PiperOrigin-RevId: 487492758

Source-Link: googleapis/googleapis@5be5981

Source-Link: googleapis/googleapis-gen@ab0e217
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWIwZTIxN2Y1NjBjYzJjMWFmYzExNDQxYzJlYWI2YjY5NTBlZmQyYiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* update path to snippet metadata json

* chore: Update gapic-generator-python to v1.6.1

PiperOrigin-RevId: 488036204

Source-Link: googleapis/googleapis@08f275f

Source-Link: googleapis/googleapis-gen@555c094
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTU1YzA5NDVlNjA2NDllMzg3MzlhZTY0YmM0NTcxOWNkZjcyMTc4ZiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* docs: fix minor docstring formatting

PiperOrigin-RevId: 491340500

Source-Link: googleapis/googleapis@5686f7b

Source-Link: googleapis/googleapis-gen@61dece7
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjFkZWNlNzEwY2QzOWM3Y2RjZWIwNDk0Nzk3ZjU0Y2U3YTEyN2IyNSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: Enable requesting numeric enums in "transport=rest" responses for services supporting this (Java, Go, Python, PHP, TypeScript, C#, and Ruby), even if they do not yet turn on REST transport

chore: disallow "transport=rest" for services where numeric enums are not confirmed to be supported (except in PHP and Java)
PiperOrigin-RevId: 493113566

Source-Link: googleapis/googleapis@758f0d1

Source-Link: googleapis/googleapis-gen@78bd8f0
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzhiZDhmMDVlMTI3NjM2M2ViMTRlYWU3MGU5MWZlNGJjMjA3MDNhYiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* fix(deps): Require google-api-core >=1.34.0, >=2.11.0

fix: Drop usage of pkg_resources

fix: Fix timeout default values

docs(samples): Snippetgen should call await on the operation coroutine before calling result

PiperOrigin-RevId: 493260409

Source-Link: googleapis/googleapis@fea4387

Source-Link: googleapis/googleapis-gen@387b734
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzg3YjczNDRjNzUyOWVlNDRiZTg0ZTYxM2IxOWE4MjA1MDhjNjEyYiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* add gapic_version.py

* fix(deps): require google-api-core>=1.34.0,>=2.11.0

* chore: Update gapic-generator-python to v1.7.1

PiperOrigin-RevId: 495049888

Source-Link: googleapis/googleapis@bf4359c

Source-Link: googleapis/googleapis-gen@5ab9576
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWFiOTU3NmVhZmJkNGRlNDM2ODk2ZjAxYzI3ODc1N2Q4N2EyNGUyNyJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* update version in gapic_version.py

* use templated owlbot.py and autogenerated setup.py

* configure release please to use manifest

* update release please config

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
3 people authored Dec 15, 2022
1 parent 56bb7b7 commit e58c41a
Show file tree
Hide file tree
Showing 87 changed files with 1,524 additions and 4,205 deletions.
5 changes: 0 additions & 5 deletions packages/google-cloud-recommendations-ai/.coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,3 @@ exclude_lines =
pragma: NO COVER
# Ignore debug-only repr
def __repr__
# Ignore pkg_resources exceptions.
# This is added at the module level as a safeguard for if someone
# generates the code and tries to run it without pip installing. This
# makes it virtually impossible to test properly.
except pkg_resources.DistributionNotFound
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
releaseType: python
handleGHRelease: true
manifest: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.8.2"
}
6 changes: 4 additions & 2 deletions packages/google-cloud-recommendations-ai/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

.. include:: multiprocessing.rst


API Reference
-------------
.. toctree::
Expand All @@ -10,12 +11,13 @@ API Reference
recommendationengine_v1beta1/services
recommendationengine_v1beta1/types


Changelog
---------

For a list of all ``google-cloud-recommendations-ai`` releases:

.. toctree::
:maxdepth: 2
:maxdepth: 2

changelog
changelog
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Recommendationengine v1beta1 API

.. automodule:: google.cloud.recommendationengine_v1beta1.types
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.cloud.recommendationengine import gapic_version as package_version

__version__ = package_version.__version__


from google.cloud.recommendationengine_v1beta1.services.catalog_service.client import (
CatalogServiceClient,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Copyright 2022 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.
#
__version__ = "0.8.2" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.cloud.recommendationengine import gapic_version as package_version

__version__ = package_version.__version__


from .services.catalog_service import CatalogServiceClient
from .services.catalog_service import CatalogServiceAsyncClient
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Copyright 2022 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.
#
__version__ = "0.8.2" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,19 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources
from typing import (
Dict,
Mapping,
MutableMapping,
MutableSequence,
Optional,
Sequence,
Tuple,
Type,
Union,
)

from google.cloud.recommendationengine_v1beta1 import gapic_version as package_version

from google.api_core.client_options import ClientOptions
from google.api_core import exceptions as core_exceptions
Expand Down Expand Up @@ -56,7 +67,10 @@ class CatalogServiceAsyncClient:

catalog_path = staticmethod(CatalogServiceClient.catalog_path)
parse_catalog_path = staticmethod(CatalogServiceClient.parse_catalog_path)

catalog_item_path_path = staticmethod(CatalogServiceClient.catalog_item_path_path)
parse_catalog_item_path_path = staticmethod(
CatalogServiceClient.parse_catalog_item_path_path
)
common_billing_account_path = staticmethod(
CatalogServiceClient.common_billing_account_path
)
Expand Down Expand Up @@ -167,9 +181,9 @@ def transport(self) -> CatalogServiceTransport:
def __init__(
self,
*,
credentials: ga_credentials.Credentials = None,
credentials: Optional[ga_credentials.Credentials] = None,
transport: Union[str, CatalogServiceTransport] = "grpc_asyncio",
client_options: ClientOptions = None,
client_options: Optional[ClientOptions] = None,
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
) -> None:
"""Instantiates the catalog service client.
Expand Down Expand Up @@ -213,12 +227,12 @@ def __init__(

async def create_catalog_item(
self,
request: Union[catalog_service.CreateCatalogItemRequest, dict] = None,
request: Optional[Union[catalog_service.CreateCatalogItemRequest, dict]] = None,
*,
parent: str = None,
catalog_item: catalog.CatalogItem = None,
parent: Optional[str] = None,
catalog_item: Optional[catalog.CatalogItem] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, str]] = (),
) -> catalog.CatalogItem:
r"""Creates a catalog item.
Expand Down Expand Up @@ -256,7 +270,7 @@ async def sample_create_catalog_item():
print(response)
Args:
request (Union[google.cloud.recommendationengine_v1beta1.types.CreateCatalogItemRequest, dict]):
request (Optional[Union[google.cloud.recommendationengine_v1beta1.types.CreateCatalogItemRequest, dict]]):
The request object. Request message for
CreateCatalogItem method.
parent (:class:`str`):
Expand Down Expand Up @@ -339,11 +353,11 @@ async def sample_create_catalog_item():

async def get_catalog_item(
self,
request: Union[catalog_service.GetCatalogItemRequest, dict] = None,
request: Optional[Union[catalog_service.GetCatalogItemRequest, dict]] = None,
*,
name: str = None,
name: Optional[str] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, str]] = (),
) -> catalog.CatalogItem:
r"""Gets a specific catalog item.
Expand Down Expand Up @@ -375,7 +389,7 @@ async def sample_get_catalog_item():
print(response)
Args:
request (Union[google.cloud.recommendationengine_v1beta1.types.GetCatalogItemRequest, dict]):
request (Optional[Union[google.cloud.recommendationengine_v1beta1.types.GetCatalogItemRequest, dict]]):
The request object. Request message for GetCatalogItem
method.
name (:class:`str`):
Expand Down Expand Up @@ -451,12 +465,12 @@ async def sample_get_catalog_item():

async def list_catalog_items(
self,
request: Union[catalog_service.ListCatalogItemsRequest, dict] = None,
request: Optional[Union[catalog_service.ListCatalogItemsRequest, dict]] = None,
*,
parent: str = None,
filter: str = None,
parent: Optional[str] = None,
filter: Optional[str] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListCatalogItemsAsyncPager:
r"""Gets a list of catalog items.
Expand Down Expand Up @@ -489,7 +503,7 @@ async def sample_list_catalog_items():
print(response)
Args:
request (Union[google.cloud.recommendationengine_v1beta1.types.ListCatalogItemsRequest, dict]):
request (Optional[Union[google.cloud.recommendationengine_v1beta1.types.ListCatalogItemsRequest, dict]]):
The request object. Request message for ListCatalogItems
method.
parent (:class:`str`):
Expand Down Expand Up @@ -586,13 +600,13 @@ async def sample_list_catalog_items():

async def update_catalog_item(
self,
request: Union[catalog_service.UpdateCatalogItemRequest, dict] = None,
request: Optional[Union[catalog_service.UpdateCatalogItemRequest, dict]] = None,
*,
name: str = None,
catalog_item: catalog.CatalogItem = None,
update_mask: field_mask_pb2.FieldMask = None,
name: Optional[str] = None,
catalog_item: Optional[catalog.CatalogItem] = None,
update_mask: Optional[field_mask_pb2.FieldMask] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, str]] = (),
) -> catalog.CatalogItem:
r"""Updates a catalog item. Partial updating is
Expand Down Expand Up @@ -631,12 +645,12 @@ async def sample_update_catalog_item():
print(response)
Args:
request (Union[google.cloud.recommendationengine_v1beta1.types.UpdateCatalogItemRequest, dict]):
request (Optional[Union[google.cloud.recommendationengine_v1beta1.types.UpdateCatalogItemRequest, dict]]):
The request object. Request message for
UpdateCatalogItem method.
name (:class:`str`):
Required. Full resource name of catalog item, such as
``projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id``
``projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id``.
This corresponds to the ``name`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down Expand Up @@ -726,11 +740,11 @@ async def sample_update_catalog_item():

async def delete_catalog_item(
self,
request: Union[catalog_service.DeleteCatalogItemRequest, dict] = None,
request: Optional[Union[catalog_service.DeleteCatalogItemRequest, dict]] = None,
*,
name: str = None,
name: Optional[str] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, str]] = (),
) -> None:
r"""Deletes a catalog item.
Expand Down Expand Up @@ -759,7 +773,7 @@ async def sample_delete_catalog_item():
await client.delete_catalog_item(request=request)
Args:
request (Union[google.cloud.recommendationengine_v1beta1.types.DeleteCatalogItemRequest, dict]):
request (Optional[Union[google.cloud.recommendationengine_v1beta1.types.DeleteCatalogItemRequest, dict]]):
The request object. Request message for
DeleteCatalogItem method.
name (:class:`str`):
Expand Down Expand Up @@ -826,14 +840,14 @@ async def sample_delete_catalog_item():

async def import_catalog_items(
self,
request: Union[import_.ImportCatalogItemsRequest, dict] = None,
request: Optional[Union[import_.ImportCatalogItemsRequest, dict]] = None,
*,
parent: str = None,
request_id: str = None,
input_config: import_.InputConfig = None,
errors_config: import_.ImportErrorsConfig = None,
parent: Optional[str] = None,
request_id: Optional[str] = None,
input_config: Optional[import_.InputConfig] = None,
errors_config: Optional[import_.ImportErrorsConfig] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation_async.AsyncOperation:
r"""Bulk import of multiple catalog items. Request
Expand Down Expand Up @@ -869,13 +883,13 @@ async def sample_import_catalog_items():
print("Waiting for operation to complete...")
response = await operation.result()
response = (await operation).result()
# Handle the response
print(response)
Args:
request (Union[google.cloud.recommendationengine_v1beta1.types.ImportCatalogItemsRequest, dict]):
request (Optional[Union[google.cloud.recommendationengine_v1beta1.types.ImportCatalogItemsRequest, dict]]):
The request object. Request message for Import methods.
parent (:class:`str`):
Required.
Expand Down Expand Up @@ -1000,14 +1014,9 @@ async def __aexit__(self, exc_type, exc, tb):
await self.transport.close()


try:
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
gapic_version=pkg_resources.get_distribution(
"google-cloud-recommendations-ai",
).version,
)
except pkg_resources.DistributionNotFound:
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo()
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
gapic_version=package_version.__version__
)


__all__ = ("CatalogServiceAsyncClient",)
Loading

0 comments on commit e58c41a

Please sign in to comment.