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

Commit

Permalink
fix(deps): Require google-api-core >=1.34.0, >=2.11.0 (#216)
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

* feat: add policy based routing" will work

PiperOrigin-RevId: 485359269

Source-Link: googleapis/googleapis@016f3a2

Source-Link: googleapis/googleapis-gen@c28193b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzI4MTkzYjQ2NDhhY2EzYWRjZDY5MTI4ZGM3MzYwOWU0ZDg4NjBhOCJ9

* 🦉 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

* 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

* chore(python): fix warehouse-package-name for networkconnectivity v1

PiperOrigin-RevId: 491376026

Source-Link: googleapis/googleapis@6defef8

Source-Link: googleapis/googleapis-gen@29e56f0
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjllNTZmMGM4OTU3NTk2OWY5ZGY2ZGZkZGM1MmU2NjQ0OTYzMTM1NCJ9

* 🦉 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

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 Dec 8, 2022
1 parent 3938c5a commit bb5fdce
Show file tree
Hide file tree
Showing 88 changed files with 8,309 additions and 662 deletions.
5 changes: 0 additions & 5 deletions .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
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.4.4"
}
10 changes: 10 additions & 0 deletions docs/networkconnectivity_v1/policy_based_routing_service.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PolicyBasedRoutingService
-------------------------------------------

.. automodule:: google.cloud.networkconnectivity_v1.services.policy_based_routing_service
:members:
:inherited-members:

.. automodule:: google.cloud.networkconnectivity_v1.services.policy_based_routing_service.pagers
:members:
:inherited-members:
1 change: 1 addition & 0 deletions docs/networkconnectivity_v1/services.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ Services for Google Cloud Networkconnectivity v1 API
:maxdepth: 2

hub_service
policy_based_routing_service
1 change: 0 additions & 1 deletion docs/networkconnectivity_v1/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Networkconnectivity v1 API

.. automodule:: google.cloud.networkconnectivity_v1.types
:members:
:undoc-members:
:show-inheritance:
1 change: 0 additions & 1 deletion docs/networkconnectivity_v1alpha1/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Networkconnectivity v1alpha1 API

.. automodule:: google.cloud.networkconnectivity_v1alpha1.types
:members:
:undoc-members:
:show-inheritance:
26 changes: 26 additions & 0 deletions google/cloud/networkconnectivity/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,23 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.cloud.networkconnectivity import gapic_version as package_version

__version__ = package_version.__version__


from google.cloud.networkconnectivity_v1.services.hub_service.async_client import (
HubServiceAsyncClient,
)
from google.cloud.networkconnectivity_v1.services.hub_service.client import (
HubServiceClient,
)
from google.cloud.networkconnectivity_v1.services.policy_based_routing_service.async_client import (
PolicyBasedRoutingServiceAsyncClient,
)
from google.cloud.networkconnectivity_v1.services.policy_based_routing_service.client import (
PolicyBasedRoutingServiceClient,
)
from google.cloud.networkconnectivity_v1.types.common import OperationMetadata
from google.cloud.networkconnectivity_v1.types.hub import (
CreateHubRequest,
Expand All @@ -45,10 +55,20 @@
UpdateHubRequest,
UpdateSpokeRequest,
)
from google.cloud.networkconnectivity_v1.types.policy_based_routing import (
CreatePolicyBasedRouteRequest,
DeletePolicyBasedRouteRequest,
GetPolicyBasedRouteRequest,
ListPolicyBasedRoutesRequest,
ListPolicyBasedRoutesResponse,
PolicyBasedRoute,
)

__all__ = (
"HubServiceClient",
"HubServiceAsyncClient",
"PolicyBasedRoutingServiceClient",
"PolicyBasedRoutingServiceAsyncClient",
"OperationMetadata",
"CreateHubRequest",
"CreateSpokeRequest",
Expand All @@ -72,4 +92,10 @@
"UpdateSpokeRequest",
"LocationFeature",
"State",
"CreatePolicyBasedRouteRequest",
"DeletePolicyBasedRouteRequest",
"GetPolicyBasedRouteRequest",
"ListPolicyBasedRoutesRequest",
"ListPolicyBasedRoutesResponse",
"PolicyBasedRoute",
)
16 changes: 16 additions & 0 deletions google/cloud/networkconnectivity/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.4.4" # {x-release-please-version}
2 changes: 1 addition & 1 deletion google/cloud/networkconnectivity/py.typed
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-networkconnectivity package uses inline types.
# The google-cloud-network-connectivity package uses inline types.
24 changes: 24 additions & 0 deletions google/cloud/networkconnectivity_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.cloud.networkconnectivity import gapic_version as package_version

__version__ = package_version.__version__


from .services.hub_service import HubServiceAsyncClient, HubServiceClient
from .services.policy_based_routing_service import (
PolicyBasedRoutingServiceAsyncClient,
PolicyBasedRoutingServiceClient,
)
from .types.common import OperationMetadata
from .types.hub import (
CreateHubRequest,
Expand All @@ -40,14 +48,26 @@
UpdateHubRequest,
UpdateSpokeRequest,
)
from .types.policy_based_routing import (
CreatePolicyBasedRouteRequest,
DeletePolicyBasedRouteRequest,
GetPolicyBasedRouteRequest,
ListPolicyBasedRoutesRequest,
ListPolicyBasedRoutesResponse,
PolicyBasedRoute,
)

__all__ = (
"HubServiceAsyncClient",
"PolicyBasedRoutingServiceAsyncClient",
"CreateHubRequest",
"CreatePolicyBasedRouteRequest",
"CreateSpokeRequest",
"DeleteHubRequest",
"DeletePolicyBasedRouteRequest",
"DeleteSpokeRequest",
"GetHubRequest",
"GetPolicyBasedRouteRequest",
"GetSpokeRequest",
"Hub",
"HubServiceClient",
Expand All @@ -56,11 +76,15 @@
"LinkedVpnTunnels",
"ListHubsRequest",
"ListHubsResponse",
"ListPolicyBasedRoutesRequest",
"ListPolicyBasedRoutesResponse",
"ListSpokesRequest",
"ListSpokesResponse",
"LocationFeature",
"LocationMetadata",
"OperationMetadata",
"PolicyBasedRoute",
"PolicyBasedRoutingServiceClient",
"RouterApplianceInstance",
"RoutingVPC",
"Spoke",
Expand Down
54 changes: 54 additions & 0 deletions google/cloud/networkconnectivity_v1/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,60 @@
}
}
}
},
"PolicyBasedRoutingService": {
"clients": {
"grpc": {
"libraryClient": "PolicyBasedRoutingServiceClient",
"rpcs": {
"CreatePolicyBasedRoute": {
"methods": [
"create_policy_based_route"
]
},
"DeletePolicyBasedRoute": {
"methods": [
"delete_policy_based_route"
]
},
"GetPolicyBasedRoute": {
"methods": [
"get_policy_based_route"
]
},
"ListPolicyBasedRoutes": {
"methods": [
"list_policy_based_routes"
]
}
}
},
"grpc-async": {
"libraryClient": "PolicyBasedRoutingServiceAsyncClient",
"rpcs": {
"CreatePolicyBasedRoute": {
"methods": [
"create_policy_based_route"
]
},
"DeletePolicyBasedRoute": {
"methods": [
"delete_policy_based_route"
]
},
"GetPolicyBasedRoute": {
"methods": [
"get_policy_based_route"
]
},
"ListPolicyBasedRoutes": {
"methods": [
"list_policy_based_routes"
]
}
}
}
}
}
}
}
16 changes: 16 additions & 0 deletions google/cloud/networkconnectivity_v1/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.4.4" # {x-release-please-version}
2 changes: 1 addition & 1 deletion google/cloud/networkconnectivity_v1/py.typed
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-networkconnectivity package uses inline types.
# The google-cloud-network-connectivity package uses inline types.

0 comments on commit bb5fdce

Please sign in to comment.