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

Commit

Permalink
chore: Update gapic-generator-python to v1.6.1 (#151)
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: https://github.com/googleapis/googleapis-gen/commit/c8aa327b5f478865fc3fd91e3c2768e54e26ad44
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 owlbot.py to exclude generated gapic_version.py

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

* 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: https://github.com/googleapis/googleapis-gen/commit/ab0e217f560cc2c1afc11441c2eab6b6950efd2b
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: https://github.com/googleapis/googleapis-gen/commit/555c0945e60649e38739ae64bc45719cdf72178f
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTU1YzA5NDVlNjA2NDllMzg3MzlhZTY0YmM0NTcxOWNkZjcyMTc4ZiJ9

* 🦉 Updates from OwlBot post-processor

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

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 Nov 23, 2022
1 parent b076787 commit c0944f7
Show file tree
Hide file tree
Showing 22 changed files with 316 additions and 132 deletions.
1 change: 1 addition & 0 deletions .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
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "1.2.3"
}
1 change: 0 additions & 1 deletion docs/essential_contacts_v1/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Essential Contacts v1 API

.. automodule:: google.cloud.essential_contacts_v1.types
:members:
:undoc-members:
:show-inheritance:
4 changes: 4 additions & 0 deletions google/cloud/essential_contacts/__init__.py
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.essential_contacts import gapic_version as package_version

__version__ = package_version.__version__


from google.cloud.essential_contacts_v1.services.essential_contacts_service.async_client import (
EssentialContactsServiceAsyncClient,
Expand Down
16 changes: 16 additions & 0 deletions google/cloud/essential_contacts/gapic_version.py
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.2.3" # {x-release-please-version}
4 changes: 4 additions & 0 deletions google/cloud/essential_contacts_v1/__init__.py
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.essential_contacts import gapic_version as package_version

__version__ = package_version.__version__


from .services.essential_contacts_service import (
EssentialContactsServiceAsyncClient,
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 @@ -169,9 +179,9 @@ def transport(self) -> EssentialContactsServiceTransport:
def __init__(
self,
*,
credentials: ga_credentials.Credentials = None,
credentials: Optional[ga_credentials.Credentials] = None,
transport: Union[str, EssentialContactsServiceTransport] = "grpc_asyncio",
client_options: ClientOptions = None,
client_options: Optional[ClientOptions] = None,
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
) -> None:
"""Instantiates the essential contacts service client.
Expand Down Expand Up @@ -215,12 +225,12 @@ def __init__(

async def create_contact(
self,
request: Union[service.CreateContactRequest, dict] = None,
request: Optional[Union[service.CreateContactRequest, dict]] = None,
*,
parent: str = None,
contact: service.Contact = None,
parent: Optional[str] = None,
contact: Optional[service.Contact] = None,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> service.Contact:
r"""Adds a new contact for a resource.
Expand Down Expand Up @@ -252,7 +262,7 @@ async def sample_create_contact():
print(response)
Args:
request (Union[google.cloud.essential_contacts_v1.types.CreateContactRequest, dict]):
request (Optional[Union[google.cloud.essential_contacts_v1.types.CreateContactRequest, dict]]):
The request object. Request message for the
CreateContact method.
parent (:class:`str`):
Expand Down Expand Up @@ -329,12 +339,12 @@ async def sample_create_contact():

async def update_contact(
self,
request: Union[service.UpdateContactRequest, dict] = None,
request: Optional[Union[service.UpdateContactRequest, dict]] = None,
*,
contact: service.Contact = None,
update_mask: field_mask_pb2.FieldMask = None,
contact: Optional[service.Contact] = 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]] = (),
) -> service.Contact:
r"""Updates a contact.
Expand Down Expand Up @@ -366,7 +376,7 @@ async def sample_update_contact():
print(response)
Args:
request (Union[google.cloud.essential_contacts_v1.types.UpdateContactRequest, dict]):
request (Optional[Union[google.cloud.essential_contacts_v1.types.UpdateContactRequest, dict]]):
The request object. Request message for the
UpdateContact method.
contact (:class:`google.cloud.essential_contacts_v1.types.Contact`):
Expand Down Expand Up @@ -446,11 +456,11 @@ async def sample_update_contact():

async def list_contacts(
self,
request: Union[service.ListContactsRequest, dict] = None,
request: Optional[Union[service.ListContactsRequest, 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.ListContactsAsyncPager:
r"""Lists the contacts that have been set on a resource.
Expand Down Expand Up @@ -483,7 +493,7 @@ async def sample_list_contacts():
print(response)
Args:
request (Union[google.cloud.essential_contacts_v1.types.ListContactsRequest, dict]):
request (Optional[Union[google.cloud.essential_contacts_v1.types.ListContactsRequest, dict]]):
The request object. Request message for the ListContacts
method.
parent (:class:`str`):
Expand Down Expand Up @@ -571,11 +581,11 @@ async def sample_list_contacts():

async def get_contact(
self,
request: Union[service.GetContactRequest, dict] = None,
request: Optional[Union[service.GetContactRequest, 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]] = (),
) -> service.Contact:
r"""Gets a single contact.
Expand Down Expand Up @@ -607,7 +617,7 @@ async def sample_get_contact():
print(response)
Args:
request (Union[google.cloud.essential_contacts_v1.types.GetContactRequest, dict]):
request (Optional[Union[google.cloud.essential_contacts_v1.types.GetContactRequest, dict]]):
The request object. Request message for the GetContact
method.
name (:class:`str`):
Expand Down Expand Up @@ -684,11 +694,11 @@ async def sample_get_contact():

async def delete_contact(
self,
request: Union[service.DeleteContactRequest, dict] = None,
request: Optional[Union[service.DeleteContactRequest, 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"""Deletes a contact.
Expand Down Expand Up @@ -717,7 +727,7 @@ async def sample_delete_contact():
await client.delete_contact(request=request)
Args:
request (Union[google.cloud.essential_contacts_v1.types.DeleteContactRequest, dict]):
request (Optional[Union[google.cloud.essential_contacts_v1.types.DeleteContactRequest, dict]]):
The request object. Request message for the
DeleteContact method.
name (:class:`str`):
Expand Down Expand Up @@ -776,10 +786,10 @@ async def sample_delete_contact():

async def compute_contacts(
self,
request: Union[service.ComputeContactsRequest, dict] = None,
request: Optional[Union[service.ComputeContactsRequest, dict]] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ComputeContactsAsyncPager:
r"""Lists all contacts for the resource that are
Expand Down Expand Up @@ -814,7 +824,7 @@ async def sample_compute_contacts():
print(response)
Args:
request (Union[google.cloud.essential_contacts_v1.types.ComputeContactsRequest, dict]):
request (Optional[Union[google.cloud.essential_contacts_v1.types.ComputeContactsRequest, dict]]):
The request object. Request message for the
ComputeContacts method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down Expand Up @@ -871,10 +881,10 @@ async def sample_compute_contacts():

async def send_test_message(
self,
request: Union[service.SendTestMessageRequest, dict] = None,
request: Optional[Union[service.SendTestMessageRequest, dict]] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: float = None,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
) -> None:
r"""Allows a contact admin to send a test message to
Expand Down Expand Up @@ -906,7 +916,7 @@ async def sample_send_test_message():
await client.send_test_message(request=request)
Args:
request (Union[google.cloud.essential_contacts_v1.types.SendTestMessageRequest, dict]):
request (Optional[Union[google.cloud.essential_contacts_v1.types.SendTestMessageRequest, dict]]):
The request object. Request message for the
SendTestMessage method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
Expand Down
Loading

0 comments on commit c0944f7

Please sign in to comment.