Skip to content

Commit

Permalink
chore: Update gapic-generator-python to v1.6.1 (#107)
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

* set manifest to true in .github/release-please.yml

* add release-please-config.json

* 🦉 Updates from OwlBot post-processor

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

* chore: Update to gapic-generator-python 1.6.0

feat(python): Add typing to proto.Message based class attributes

feat(python): Snippetgen handling of repeated enum field

PiperOrigin-RevId: 487326846

Source-Link: googleapis/googleapis@da380c7

Source-Link: googleapis/googleapis-gen@61ef576
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjFlZjU3NjJlZTY3MzFhMGNiYmZlYTIyZmQwZWVjZWU1MWFiMWM4ZSJ9

* 🦉 Updates from OwlBot post-processor

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

* 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

* use templated owlbot.py and setup.py

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
  • Loading branch information
3 people authored Nov 22, 2022
1 parent 9f599fb commit 7476278
Show file tree
Hide file tree
Showing 40 changed files with 1,236 additions and 1,055 deletions.
1 change: 1 addition & 0 deletions packages/google-cloud-dataplex/.github/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
releaseType: python
handleGHRelease: true
manifest: true
# NOTE: this section is generated by synthtool.languages.python
# See https://github.com/googleapis/synthtool/blob/master/synthtool/languages/python.py
branches:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ jobs:
- name: Report coverage results
run: |
coverage combine .coverage-results/.coverage*
coverage report --show-missing --fail-under=99
coverage report --show-missing --fail-under=100
3 changes: 3 additions & 0 deletions packages/google-cloud-dataplex/.release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "1.1.2"
}
1 change: 0 additions & 1 deletion packages/google-cloud-dataplex/docs/dataplex_v1/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Dataplex v1 API

.. automodule:: google.cloud.dataplex_v1.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.dataplex import gapic_version as package_version

__version__ = package_version.__version__


from google.cloud.dataplex_v1.services.content_service.async_client import (
ContentServiceAsyncClient,
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__ = "1.1.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.dataplex import gapic_version as package_version

__version__ = package_version.__version__


from .services.content_service import ContentServiceAsyncClient, ContentServiceClient
from .services.dataplex_service import DataplexServiceAsyncClient, DataplexServiceClient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,17 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
from typing import (
Dict,
Mapping,
MutableMapping,
MutableSequence,
Optional,
Sequence,
Tuple,
Type,
Union,
)

from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
Expand Down Expand Up @@ -170,9 +180,9 @@ def transport(self) -> ContentServiceTransport:
def __init__(
self,
*,
credentials: ga_credentials.Credentials = None,
credentials: Optional[ga_credentials.Credentials] = None,
transport: Union[str, ContentServiceTransport] = "grpc_asyncio",
client_options: ClientOptions = None,
client_options: Optional[ClientOptions] = None,
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
) -> None:
"""Instantiates the content service client.
Expand Down Expand Up @@ -216,12 +226,12 @@ def __init__(

async def create_content(
self,
request: Union[gcd_content.CreateContentRequest, dict] = None,
request: Optional[Union[gcd_content.CreateContentRequest, dict]] = None,
*,
parent: str = None,
content: analyze.Content = None,
parent: Optional[str] = None,
content: Optional[analyze.Content] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> analyze.Content:
r"""Create a content.
Expand Down Expand Up @@ -259,7 +269,7 @@ async def sample_create_content():
print(response)
Args:
request (Union[google.cloud.dataplex_v1.types.CreateContentRequest, dict]):
request (Optional[Union[google.cloud.dataplex_v1.types.CreateContentRequest, dict]]):
The request object. Create content request.
parent (:class:`str`):
Required. The resource name of the parent lake:
Expand Down Expand Up @@ -331,12 +341,12 @@ async def sample_create_content():

async def update_content(
self,
request: Union[gcd_content.UpdateContentRequest, dict] = None,
request: Optional[Union[gcd_content.UpdateContentRequest, dict]] = None,
*,
content: analyze.Content = None,
update_mask: field_mask_pb2.FieldMask = None,
content: Optional[analyze.Content] = None,
update_mask: Optional[field_mask_pb2.FieldMask] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> analyze.Content:
r"""Update a content. Only supports full resource update.
Expand Down Expand Up @@ -373,7 +383,7 @@ async def sample_update_content():
print(response)
Args:
request (Union[google.cloud.dataplex_v1.types.UpdateContentRequest, dict]):
request (Optional[Union[google.cloud.dataplex_v1.types.UpdateContentRequest, dict]]):
The request object. Update content request.
content (:class:`google.cloud.dataplex_v1.types.Content`):
Required. Update description. Only fields specified in
Expand Down Expand Up @@ -447,11 +457,11 @@ async def sample_update_content():

async def delete_content(
self,
request: Union[content.DeleteContentRequest, dict] = None,
request: Optional[Union[content.DeleteContentRequest, dict]] = None,
*,
name: str = None,
name: Optional[str] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> None:
r"""Delete a content.
Expand Down Expand Up @@ -480,7 +490,7 @@ async def sample_delete_content():
await client.delete_content(request=request)
Args:
request (Union[google.cloud.dataplex_v1.types.DeleteContentRequest, dict]):
request (Optional[Union[google.cloud.dataplex_v1.types.DeleteContentRequest, dict]]):
The request object. Delete content request.
name (:class:`str`):
Required. The resource name of the content:
Expand Down Expand Up @@ -536,11 +546,11 @@ async def sample_delete_content():

async def get_content(
self,
request: Union[content.GetContentRequest, dict] = None,
request: Optional[Union[content.GetContentRequest, dict]] = None,
*,
name: str = None,
name: Optional[str] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> analyze.Content:
r"""Get a content resource.
Expand Down Expand Up @@ -572,7 +582,7 @@ async def sample_get_content():
print(response)
Args:
request (Union[google.cloud.dataplex_v1.types.GetContentRequest, dict]):
request (Optional[Union[google.cloud.dataplex_v1.types.GetContentRequest, dict]]):
The request object. Get content request.
name (:class:`str`):
Required. The resource name of the content:
Expand Down Expand Up @@ -646,11 +656,11 @@ async def sample_get_content():

async def get_iam_policy(
self,
request: Union[iam_policy_pb2.GetIamPolicyRequest, dict] = None,
request: Optional[Union[iam_policy_pb2.GetIamPolicyRequest, dict]] = None,
*,
resource: str = None,
resource: Optional[str] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> policy_pb2.Policy:
r"""Gets the access control policy for a contentitem resource. A
Expand Down Expand Up @@ -689,7 +699,7 @@ async def sample_get_iam_policy():
print(response)
Args:
request (Union[google.iam.v1.iam_policy_pb2.GetIamPolicyRequest, dict]):
request (Optional[Union[google.iam.v1.iam_policy_pb2.GetIamPolicyRequest, dict]]):
The request object. Request message for `GetIamPolicy`
method.
resource (:class:`str`):
Expand Down Expand Up @@ -827,10 +837,10 @@ async def sample_get_iam_policy():

async def set_iam_policy(
self,
request: Union[iam_policy_pb2.SetIamPolicyRequest, dict] = None,
request: Optional[Union[iam_policy_pb2.SetIamPolicyRequest, dict]] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> policy_pb2.Policy:
r"""Sets the access control policy on the specified contentitem
Expand Down Expand Up @@ -867,7 +877,7 @@ async def sample_set_iam_policy():
print(response)
Args:
request (Union[google.iam.v1.iam_policy_pb2.SetIamPolicyRequest, dict]):
request (Optional[Union[google.iam.v1.iam_policy_pb2.SetIamPolicyRequest, dict]]):
The request object. Request message for `SetIamPolicy`
method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -974,10 +984,10 @@ async def sample_set_iam_policy():

async def test_iam_permissions(
self,
request: Union[iam_policy_pb2.TestIamPermissionsRequest, dict] = None,
request: Optional[Union[iam_policy_pb2.TestIamPermissionsRequest, dict]] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> iam_policy_pb2.TestIamPermissionsResponse:
r"""Returns the caller's permissions on a resource. If the resource
Expand Down Expand Up @@ -1021,7 +1031,7 @@ async def sample_test_iam_permissions():
print(response)
Args:
request (Union[google.iam.v1.iam_policy_pb2.TestIamPermissionsRequest, dict]):
request (Optional[Union[google.iam.v1.iam_policy_pb2.TestIamPermissionsRequest, dict]]):
The request object. Request message for
`TestIamPermissions` method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -1076,11 +1086,11 @@ async def sample_test_iam_permissions():

async def list_content(
self,
request: Union[content.ListContentRequest, dict] = None,
request: Optional[Union[content.ListContentRequest, dict]] = None,
*,
parent: str = None,
parent: Optional[str] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListContentAsyncPager:
r"""List content.
Expand Down Expand Up @@ -1113,7 +1123,7 @@ async def sample_list_content():
print(response)
Args:
request (Union[google.cloud.dataplex_v1.types.ListContentRequest, dict]):
request (Optional[Union[google.cloud.dataplex_v1.types.ListContentRequest, dict]]):
The request object. List content request. Returns the
BASIC Content view.
parent (:class:`str`):
Expand Down Expand Up @@ -1199,10 +1209,10 @@ async def sample_list_content():

async def list_operations(
self,
request: operations_pb2.ListOperationsRequest = None,
request: Optional[operations_pb2.ListOperationsRequest] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operations_pb2.ListOperationsResponse:
r"""Lists operations that match the specified filter in the request.
Expand Down Expand Up @@ -1253,10 +1263,10 @@ async def list_operations(

async def get_operation(
self,
request: operations_pb2.GetOperationRequest = None,
request: Optional[operations_pb2.GetOperationRequest] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> operations_pb2.Operation:
r"""Gets the latest state of a long-running operation.
Expand Down Expand Up @@ -1307,10 +1317,10 @@ async def get_operation(

async def delete_operation(
self,
request: operations_pb2.DeleteOperationRequest = None,
request: Optional[operations_pb2.DeleteOperationRequest] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> None:
r"""Deletes a long-running operation.
Expand Down Expand Up @@ -1362,10 +1372,10 @@ async def delete_operation(

async def cancel_operation(
self,
request: operations_pb2.CancelOperationRequest = None,
request: Optional[operations_pb2.CancelOperationRequest] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> None:
r"""Starts asynchronous cancellation on a long-running operation.
Expand Down Expand Up @@ -1416,10 +1426,10 @@ async def cancel_operation(

async def get_location(
self,
request: locations_pb2.GetLocationRequest = None,
request: Optional[locations_pb2.GetLocationRequest] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> locations_pb2.Location:
r"""Gets information about a location.
Expand Down Expand Up @@ -1470,10 +1480,10 @@ async def get_location(

async def list_locations(
self,
request: locations_pb2.ListLocationsRequest = None,
request: Optional[locations_pb2.ListLocationsRequest] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> locations_pb2.ListLocationsResponse:
r"""Lists information about the supported locations for this service.
Expand Down
Loading

0 comments on commit 7476278

Please sign in to comment.