diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 76d5538..b28fea9 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.9.0" + ".": "0.9.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index b255230..acdd860 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [0.9.1](https://github.com/googleapis/python-network-security/compare/v0.9.0...v0.9.1) (2023-01-20) + + +### Bug Fixes + +* Add context manager return types ([28f193c](https://github.com/googleapis/python-network-security/commit/28f193c46ef2745b826f61f7c8225e5ba2716673)) + + +### Documentation + +* Add documentation for enums ([28f193c](https://github.com/googleapis/python-network-security/commit/28f193c46ef2745b826f61f7c8225e5ba2716673)) + ## [0.9.0](https://github.com/googleapis/python-network-security/compare/v0.8.0...v0.9.0) (2023-01-10) diff --git a/google/cloud/network_security/gapic_version.py b/google/cloud/network_security/gapic_version.py index 8e0b747..f7e843c 100644 --- a/google/cloud/network_security/gapic_version.py +++ b/google/cloud/network_security/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.9.0" # {x-release-please-version} +__version__ = "0.9.1" # {x-release-please-version} diff --git a/google/cloud/network_security_v1/gapic_version.py b/google/cloud/network_security_v1/gapic_version.py index 8e0b747..f7e843c 100644 --- a/google/cloud/network_security_v1/gapic_version.py +++ b/google/cloud/network_security_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.9.0" # {x-release-please-version} +__version__ = "0.9.1" # {x-release-please-version} diff --git a/google/cloud/network_security_v1/services/network_security/client.py b/google/cloud/network_security_v1/services/network_security/client.py index 40361d9..b18527a 100644 --- a/google/cloud/network_security_v1/services/network_security/client.py +++ b/google/cloud/network_security_v1/services/network_security/client.py @@ -2475,7 +2475,7 @@ def sample_delete_client_tls_policy(): # Done; return the response. return response - def __enter__(self): + def __enter__(self) -> "NetworkSecurityClient": return self def __exit__(self, type, value, traceback): diff --git a/google/cloud/network_security_v1/types/authorization_policy.py b/google/cloud/network_security_v1/types/authorization_policy.py index 4dffff0..42bd3d2 100644 --- a/google/cloud/network_security_v1/types/authorization_policy.py +++ b/google/cloud/network_security_v1/types/authorization_policy.py @@ -70,7 +70,18 @@ class AuthorizationPolicy(proto.Message): """ class Action(proto.Enum): - r"""Possible values that define what action to take.""" + r"""Possible values that define what action to take. + + Values: + ACTION_UNSPECIFIED (0): + Default value. + ALLOW (1): + Grant access. + DENY (2): + Deny access. + Deny rules should be avoided unless they are + used to provide a default "deny all" fallback. + """ ACTION_UNSPECIFIED = 0 ALLOW = 1 DENY = 2 diff --git a/google/cloud/network_security_v1beta1/gapic_version.py b/google/cloud/network_security_v1beta1/gapic_version.py index 8e0b747..f7e843c 100644 --- a/google/cloud/network_security_v1beta1/gapic_version.py +++ b/google/cloud/network_security_v1beta1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.9.0" # {x-release-please-version} +__version__ = "0.9.1" # {x-release-please-version} diff --git a/google/cloud/network_security_v1beta1/services/network_security/client.py b/google/cloud/network_security_v1beta1/services/network_security/client.py index 2024721..47f2dea 100644 --- a/google/cloud/network_security_v1beta1/services/network_security/client.py +++ b/google/cloud/network_security_v1beta1/services/network_security/client.py @@ -2477,7 +2477,7 @@ def sample_delete_client_tls_policy(): # Done; return the response. return response - def __enter__(self): + def __enter__(self) -> "NetworkSecurityClient": return self def __exit__(self, type, value, traceback): diff --git a/google/cloud/network_security_v1beta1/types/authorization_policy.py b/google/cloud/network_security_v1beta1/types/authorization_policy.py index 3dce38c..df3f9a1 100644 --- a/google/cloud/network_security_v1beta1/types/authorization_policy.py +++ b/google/cloud/network_security_v1beta1/types/authorization_policy.py @@ -70,7 +70,18 @@ class AuthorizationPolicy(proto.Message): """ class Action(proto.Enum): - r"""Possible values that define what action to take.""" + r"""Possible values that define what action to take. + + Values: + ACTION_UNSPECIFIED (0): + Default value. + ALLOW (1): + Grant access. + DENY (2): + Deny access. + Deny rules should be avoided unless they are + used to provide a default "deny all" fallback. + """ ACTION_UNSPECIFIED = 0 ALLOW = 1 DENY = 2 diff --git a/samples/generated_samples/snippet_metadata_google.cloud.networksecurity.v1.json b/samples/generated_samples/snippet_metadata_google.cloud.networksecurity.v1.json index 7b5d363..4bfcd34 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.networksecurity.v1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.networksecurity.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-network-security", - "version": "0.9.0" + "version": "0.9.1" }, "snippets": [ { diff --git a/samples/generated_samples/snippet_metadata_google.cloud.networksecurity.v1beta1.json b/samples/generated_samples/snippet_metadata_google.cloud.networksecurity.v1beta1.json index ced2a90..170775e 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.networksecurity.v1beta1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.networksecurity.v1beta1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-network-security", - "version": "0.9.0" + "version": "0.9.1" }, "snippets": [ {