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

Commit

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

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

* 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

* 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

* run nox format session

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 committed Nov 25, 2022
1 parent d32672e commit 9b6c478
Show file tree
Hide file tree
Showing 37 changed files with 1,273 additions and 944 deletions.
1 change: 1 addition & 0 deletions .github/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
releaseType: python
handleGHRelease: true
manifest: true
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.2.2"
}
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys
import os
import shlex
import sys

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down
1 change: 0 additions & 1 deletion docs/network_services_v1/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Network Services v1 API

.. automodule:: google.cloud.network_services_v1.types
:members:
:undoc-members:
:show-inheritance:
165 changes: 165 additions & 0 deletions google/cloud/network_services/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
# -*- 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.
#
from google.cloud.network_services import gapic_version as package_version

__version__ = package_version.__version__


from google.cloud.network_services_v1.services.network_services.async_client import (
NetworkServicesAsyncClient,
)
from google.cloud.network_services_v1.services.network_services.client import (
NetworkServicesClient,
)
from google.cloud.network_services_v1.types.common import (
EndpointMatcher,
OperationMetadata,
TrafficPortSelector,
)
from google.cloud.network_services_v1.types.endpoint_policy import (
CreateEndpointPolicyRequest,
DeleteEndpointPolicyRequest,
EndpointPolicy,
GetEndpointPolicyRequest,
ListEndpointPoliciesRequest,
ListEndpointPoliciesResponse,
UpdateEndpointPolicyRequest,
)
from google.cloud.network_services_v1.types.gateway import (
CreateGatewayRequest,
DeleteGatewayRequest,
Gateway,
GetGatewayRequest,
ListGatewaysRequest,
ListGatewaysResponse,
UpdateGatewayRequest,
)
from google.cloud.network_services_v1.types.grpc_route import (
CreateGrpcRouteRequest,
DeleteGrpcRouteRequest,
GetGrpcRouteRequest,
GrpcRoute,
ListGrpcRoutesRequest,
ListGrpcRoutesResponse,
UpdateGrpcRouteRequest,
)
from google.cloud.network_services_v1.types.http_route import (
CreateHttpRouteRequest,
DeleteHttpRouteRequest,
GetHttpRouteRequest,
HttpRoute,
ListHttpRoutesRequest,
ListHttpRoutesResponse,
UpdateHttpRouteRequest,
)
from google.cloud.network_services_v1.types.mesh import (
CreateMeshRequest,
DeleteMeshRequest,
GetMeshRequest,
ListMeshesRequest,
ListMeshesResponse,
Mesh,
UpdateMeshRequest,
)
from google.cloud.network_services_v1.types.service_binding import (
CreateServiceBindingRequest,
DeleteServiceBindingRequest,
GetServiceBindingRequest,
ListServiceBindingsRequest,
ListServiceBindingsResponse,
ServiceBinding,
)
from google.cloud.network_services_v1.types.tcp_route import (
CreateTcpRouteRequest,
DeleteTcpRouteRequest,
GetTcpRouteRequest,
ListTcpRoutesRequest,
ListTcpRoutesResponse,
TcpRoute,
UpdateTcpRouteRequest,
)
from google.cloud.network_services_v1.types.tls_route import (
CreateTlsRouteRequest,
DeleteTlsRouteRequest,
GetTlsRouteRequest,
ListTlsRoutesRequest,
ListTlsRoutesResponse,
TlsRoute,
UpdateTlsRouteRequest,
)

__all__ = (
"NetworkServicesClient",
"NetworkServicesAsyncClient",
"EndpointMatcher",
"OperationMetadata",
"TrafficPortSelector",
"CreateEndpointPolicyRequest",
"DeleteEndpointPolicyRequest",
"EndpointPolicy",
"GetEndpointPolicyRequest",
"ListEndpointPoliciesRequest",
"ListEndpointPoliciesResponse",
"UpdateEndpointPolicyRequest",
"CreateGatewayRequest",
"DeleteGatewayRequest",
"Gateway",
"GetGatewayRequest",
"ListGatewaysRequest",
"ListGatewaysResponse",
"UpdateGatewayRequest",
"CreateGrpcRouteRequest",
"DeleteGrpcRouteRequest",
"GetGrpcRouteRequest",
"GrpcRoute",
"ListGrpcRoutesRequest",
"ListGrpcRoutesResponse",
"UpdateGrpcRouteRequest",
"CreateHttpRouteRequest",
"DeleteHttpRouteRequest",
"GetHttpRouteRequest",
"HttpRoute",
"ListHttpRoutesRequest",
"ListHttpRoutesResponse",
"UpdateHttpRouteRequest",
"CreateMeshRequest",
"DeleteMeshRequest",
"GetMeshRequest",
"ListMeshesRequest",
"ListMeshesResponse",
"Mesh",
"UpdateMeshRequest",
"CreateServiceBindingRequest",
"DeleteServiceBindingRequest",
"GetServiceBindingRequest",
"ListServiceBindingsRequest",
"ListServiceBindingsResponse",
"ServiceBinding",
"CreateTcpRouteRequest",
"DeleteTcpRouteRequest",
"GetTcpRouteRequest",
"ListTcpRoutesRequest",
"ListTcpRoutesResponse",
"TcpRoute",
"UpdateTcpRouteRequest",
"CreateTlsRouteRequest",
"DeleteTlsRouteRequest",
"GetTlsRouteRequest",
"ListTlsRoutesRequest",
"ListTlsRoutesResponse",
"TlsRoute",
"UpdateTlsRouteRequest",
)
16 changes: 16 additions & 0 deletions google/cloud/network_services/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__ = "0.2.2" # {x-release-please-version}
2 changes: 2 additions & 0 deletions google/cloud/network_services/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-network-services package uses inline types.
136 changes: 76 additions & 60 deletions google/cloud/network_services_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,68 +13,84 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.cloud.network_services import gapic_version as package_version

from .services.network_services import NetworkServicesClient
from .services.network_services import NetworkServicesAsyncClient
__version__ = package_version.__version__

from .types.common import EndpointMatcher
from .types.common import OperationMetadata
from .types.common import TrafficPortSelector
from .types.endpoint_policy import CreateEndpointPolicyRequest
from .types.endpoint_policy import DeleteEndpointPolicyRequest
from .types.endpoint_policy import EndpointPolicy
from .types.endpoint_policy import GetEndpointPolicyRequest
from .types.endpoint_policy import ListEndpointPoliciesRequest
from .types.endpoint_policy import ListEndpointPoliciesResponse
from .types.endpoint_policy import UpdateEndpointPolicyRequest
from .types.gateway import CreateGatewayRequest
from .types.gateway import DeleteGatewayRequest
from .types.gateway import Gateway
from .types.gateway import GetGatewayRequest
from .types.gateway import ListGatewaysRequest
from .types.gateway import ListGatewaysResponse
from .types.gateway import UpdateGatewayRequest
from .types.grpc_route import CreateGrpcRouteRequest
from .types.grpc_route import DeleteGrpcRouteRequest
from .types.grpc_route import GetGrpcRouteRequest
from .types.grpc_route import GrpcRoute
from .types.grpc_route import ListGrpcRoutesRequest
from .types.grpc_route import ListGrpcRoutesResponse
from .types.grpc_route import UpdateGrpcRouteRequest
from .types.http_route import CreateHttpRouteRequest
from .types.http_route import DeleteHttpRouteRequest
from .types.http_route import GetHttpRouteRequest
from .types.http_route import HttpRoute
from .types.http_route import ListHttpRoutesRequest
from .types.http_route import ListHttpRoutesResponse
from .types.http_route import UpdateHttpRouteRequest
from .types.mesh import CreateMeshRequest
from .types.mesh import DeleteMeshRequest
from .types.mesh import GetMeshRequest
from .types.mesh import ListMeshesRequest
from .types.mesh import ListMeshesResponse
from .types.mesh import Mesh
from .types.mesh import UpdateMeshRequest
from .types.service_binding import CreateServiceBindingRequest
from .types.service_binding import DeleteServiceBindingRequest
from .types.service_binding import GetServiceBindingRequest
from .types.service_binding import ListServiceBindingsRequest
from .types.service_binding import ListServiceBindingsResponse
from .types.service_binding import ServiceBinding
from .types.tcp_route import CreateTcpRouteRequest
from .types.tcp_route import DeleteTcpRouteRequest
from .types.tcp_route import GetTcpRouteRequest
from .types.tcp_route import ListTcpRoutesRequest
from .types.tcp_route import ListTcpRoutesResponse
from .types.tcp_route import TcpRoute
from .types.tcp_route import UpdateTcpRouteRequest
from .types.tls_route import CreateTlsRouteRequest
from .types.tls_route import DeleteTlsRouteRequest
from .types.tls_route import GetTlsRouteRequest
from .types.tls_route import ListTlsRoutesRequest
from .types.tls_route import ListTlsRoutesResponse
from .types.tls_route import TlsRoute
from .types.tls_route import UpdateTlsRouteRequest

from .services.network_services import NetworkServicesAsyncClient, NetworkServicesClient
from .types.common import EndpointMatcher, OperationMetadata, TrafficPortSelector
from .types.endpoint_policy import (
CreateEndpointPolicyRequest,
DeleteEndpointPolicyRequest,
EndpointPolicy,
GetEndpointPolicyRequest,
ListEndpointPoliciesRequest,
ListEndpointPoliciesResponse,
UpdateEndpointPolicyRequest,
)
from .types.gateway import (
CreateGatewayRequest,
DeleteGatewayRequest,
Gateway,
GetGatewayRequest,
ListGatewaysRequest,
ListGatewaysResponse,
UpdateGatewayRequest,
)
from .types.grpc_route import (
CreateGrpcRouteRequest,
DeleteGrpcRouteRequest,
GetGrpcRouteRequest,
GrpcRoute,
ListGrpcRoutesRequest,
ListGrpcRoutesResponse,
UpdateGrpcRouteRequest,
)
from .types.http_route import (
CreateHttpRouteRequest,
DeleteHttpRouteRequest,
GetHttpRouteRequest,
HttpRoute,
ListHttpRoutesRequest,
ListHttpRoutesResponse,
UpdateHttpRouteRequest,
)
from .types.mesh import (
CreateMeshRequest,
DeleteMeshRequest,
GetMeshRequest,
ListMeshesRequest,
ListMeshesResponse,
Mesh,
UpdateMeshRequest,
)
from .types.service_binding import (
CreateServiceBindingRequest,
DeleteServiceBindingRequest,
GetServiceBindingRequest,
ListServiceBindingsRequest,
ListServiceBindingsResponse,
ServiceBinding,
)
from .types.tcp_route import (
CreateTcpRouteRequest,
DeleteTcpRouteRequest,
GetTcpRouteRequest,
ListTcpRoutesRequest,
ListTcpRoutesResponse,
TcpRoute,
UpdateTcpRouteRequest,
)
from .types.tls_route import (
CreateTlsRouteRequest,
DeleteTlsRouteRequest,
GetTlsRouteRequest,
ListTlsRoutesRequest,
ListTlsRoutesResponse,
TlsRoute,
UpdateTlsRouteRequest,
)

__all__ = (
"NetworkServicesAsyncClient",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .client import NetworkServicesClient
from .async_client import NetworkServicesAsyncClient
from .client import NetworkServicesClient

__all__ = (
"NetworkServicesClient",
Expand Down
Loading

0 comments on commit 9b6c478

Please sign in to comment.