Skip to content

Commit

Permalink
chore: Update gapic-generator-python to v1.8.5 (#227)
Browse files Browse the repository at this point in the history
* chore: Update gapic-generator-python to v1.8.5

PiperOrigin-RevId: 511892190

Source-Link: googleapis/googleapis@a45d9c0

Source-Link: googleapis/googleapis-gen@1907294
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTkwNzI5NGIxZDgzNjVlYTI0ZjhjNWYyZTA1OWE2NDEyNGM0ZWQzYiJ9

* 🦉 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 Feb 27, 2023
1 parent ff3d84b commit 2b53f0c
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from __future__ import annotations

from typing import MutableMapping, MutableSequence

from google.protobuf import timestamp_pb2 # type: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from __future__ import annotations

from typing import MutableMapping, MutableSequence

import proto # type: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import dataclasses
import json # type: ignore
import re
from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union
import warnings

from google.api_core import (
Expand Down Expand Up @@ -657,7 +657,7 @@ class _CreateMembership(GkeHubRestStub):
def __hash__(self):
return hash("CreateMembership")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
"membershipId": "",
}

Expand Down Expand Up @@ -835,7 +835,7 @@ class _DeleteMembership(GkeHubRestStub):
def __hash__(self):
return hash("DeleteMembership")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -924,7 +924,7 @@ class _GenerateConnectManifest(GkeHubRestStub):
def __hash__(self):
return hash("GenerateConnectManifest")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -1094,7 +1094,7 @@ class _GetMembership(GkeHubRestStub):
def __hash__(self):
return hash("GetMembership")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -1257,7 +1257,7 @@ class _ListMemberships(GkeHubRestStub):
def __hash__(self):
return hash("ListMemberships")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -1432,7 +1432,7 @@ class _UpdateMembership(GkeHubRestStub):
def __hash__(self):
return hash("UpdateMembership")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
"updateMask": {},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from __future__ import annotations

from typing import MutableMapping, MutableSequence

from google.protobuf import timestamp_pb2 # type: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from __future__ import annotations

from typing import MutableMapping, MutableSequence

from google.protobuf import timestamp_pb2 # type: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from __future__ import annotations

from typing import MutableMapping, MutableSequence

from google.protobuf import field_mask_pb2 # type: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import dataclasses
import json # type: ignore
import re
from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union
import warnings

from google.api_core import (
Expand Down Expand Up @@ -335,7 +335,7 @@ def pre_get_location(
self,
request: locations_pb2.GetLocationRequest,
metadata: Sequence[Tuple[str, str]],
) -> locations_pb2.Location:
) -> Tuple[locations_pb2.GetLocationRequest, Sequence[Tuple[str, str]]]:
"""Pre-rpc interceptor for get_location
Override in a subclass to manipulate the request or metadata
Expand All @@ -344,7 +344,7 @@ def pre_get_location(
return request, metadata

def post_get_location(
self, response: locations_pb2.GetLocationRequest
self, response: locations_pb2.Location
) -> locations_pb2.Location:
"""Post-rpc interceptor for get_location
Expand All @@ -358,7 +358,7 @@ def pre_list_locations(
self,
request: locations_pb2.ListLocationsRequest,
metadata: Sequence[Tuple[str, str]],
) -> locations_pb2.ListLocationsResponse:
) -> Tuple[locations_pb2.ListLocationsRequest, Sequence[Tuple[str, str]]]:
"""Pre-rpc interceptor for list_locations
Override in a subclass to manipulate the request or metadata
Expand All @@ -367,7 +367,7 @@ def pre_list_locations(
return request, metadata

def post_list_locations(
self, response: locations_pb2.ListLocationsRequest
self, response: locations_pb2.ListLocationsResponse
) -> locations_pb2.ListLocationsResponse:
"""Post-rpc interceptor for list_locations
Expand All @@ -381,17 +381,15 @@ def pre_get_iam_policy(
self,
request: iam_policy_pb2.GetIamPolicyRequest,
metadata: Sequence[Tuple[str, str]],
) -> policy_pb2.Policy:
) -> Tuple[iam_policy_pb2.GetIamPolicyRequest, Sequence[Tuple[str, str]]]:
"""Pre-rpc interceptor for get_iam_policy
Override in a subclass to manipulate the request or metadata
before they are sent to the GkeHubMembershipService server.
"""
return request, metadata

def post_get_iam_policy(
self, response: iam_policy_pb2.GetIamPolicyRequest
) -> policy_pb2.Policy:
def post_get_iam_policy(self, response: policy_pb2.Policy) -> policy_pb2.Policy:
"""Post-rpc interceptor for get_iam_policy
Override in a subclass to manipulate the response
Expand All @@ -404,17 +402,15 @@ def pre_set_iam_policy(
self,
request: iam_policy_pb2.SetIamPolicyRequest,
metadata: Sequence[Tuple[str, str]],
) -> policy_pb2.Policy:
) -> Tuple[iam_policy_pb2.SetIamPolicyRequest, Sequence[Tuple[str, str]]]:
"""Pre-rpc interceptor for set_iam_policy
Override in a subclass to manipulate the request or metadata
before they are sent to the GkeHubMembershipService server.
"""
return request, metadata

def post_set_iam_policy(
self, response: iam_policy_pb2.SetIamPolicyRequest
) -> policy_pb2.Policy:
def post_set_iam_policy(self, response: policy_pb2.Policy) -> policy_pb2.Policy:
"""Post-rpc interceptor for set_iam_policy
Override in a subclass to manipulate the response
Expand All @@ -427,7 +423,7 @@ def pre_test_iam_permissions(
self,
request: iam_policy_pb2.TestIamPermissionsRequest,
metadata: Sequence[Tuple[str, str]],
) -> iam_policy_pb2.TestIamPermissionsResponse:
) -> Tuple[iam_policy_pb2.TestIamPermissionsRequest, Sequence[Tuple[str, str]]]:
"""Pre-rpc interceptor for test_iam_permissions
Override in a subclass to manipulate the request or metadata
Expand All @@ -436,7 +432,7 @@ def pre_test_iam_permissions(
return request, metadata

def post_test_iam_permissions(
self, response: iam_policy_pb2.TestIamPermissionsRequest
self, response: iam_policy_pb2.TestIamPermissionsResponse
) -> iam_policy_pb2.TestIamPermissionsResponse:
"""Post-rpc interceptor for test_iam_permissions
Expand All @@ -450,17 +446,15 @@ def pre_cancel_operation(
self,
request: operations_pb2.CancelOperationRequest,
metadata: Sequence[Tuple[str, str]],
) -> None:
) -> Tuple[operations_pb2.CancelOperationRequest, Sequence[Tuple[str, str]]]:
"""Pre-rpc interceptor for cancel_operation
Override in a subclass to manipulate the request or metadata
before they are sent to the GkeHubMembershipService server.
"""
return request, metadata

def post_cancel_operation(
self, response: operations_pb2.CancelOperationRequest
) -> None:
def post_cancel_operation(self, response: None) -> None:
"""Post-rpc interceptor for cancel_operation
Override in a subclass to manipulate the response
Expand All @@ -473,17 +467,15 @@ def pre_delete_operation(
self,
request: operations_pb2.DeleteOperationRequest,
metadata: Sequence[Tuple[str, str]],
) -> None:
) -> Tuple[operations_pb2.DeleteOperationRequest, Sequence[Tuple[str, str]]]:
"""Pre-rpc interceptor for delete_operation
Override in a subclass to manipulate the request or metadata
before they are sent to the GkeHubMembershipService server.
"""
return request, metadata

def post_delete_operation(
self, response: operations_pb2.DeleteOperationRequest
) -> None:
def post_delete_operation(self, response: None) -> None:
"""Post-rpc interceptor for delete_operation
Override in a subclass to manipulate the response
Expand All @@ -496,7 +488,7 @@ def pre_get_operation(
self,
request: operations_pb2.GetOperationRequest,
metadata: Sequence[Tuple[str, str]],
) -> operations_pb2.Operation:
) -> Tuple[operations_pb2.GetOperationRequest, Sequence[Tuple[str, str]]]:
"""Pre-rpc interceptor for get_operation
Override in a subclass to manipulate the request or metadata
Expand All @@ -505,7 +497,7 @@ def pre_get_operation(
return request, metadata

def post_get_operation(
self, response: operations_pb2.GetOperationRequest
self, response: operations_pb2.Operation
) -> operations_pb2.Operation:
"""Post-rpc interceptor for get_operation
Expand All @@ -519,7 +511,7 @@ def pre_list_operations(
self,
request: operations_pb2.ListOperationsRequest,
metadata: Sequence[Tuple[str, str]],
) -> operations_pb2.ListOperationsResponse:
) -> Tuple[operations_pb2.ListOperationsRequest, Sequence[Tuple[str, str]]]:
"""Pre-rpc interceptor for list_operations
Override in a subclass to manipulate the request or metadata
Expand All @@ -528,7 +520,7 @@ def pre_list_operations(
return request, metadata

def post_list_operations(
self, response: operations_pb2.ListOperationsRequest
self, response: operations_pb2.ListOperationsResponse
) -> operations_pb2.ListOperationsResponse:
"""Post-rpc interceptor for list_operations
Expand Down Expand Up @@ -701,7 +693,7 @@ class _CreateMembership(GkeHubMembershipServiceRestStub):
def __hash__(self):
return hash("CreateMembership")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
"membershipId": "",
}

Expand Down Expand Up @@ -803,7 +795,7 @@ class _DeleteMembership(GkeHubMembershipServiceRestStub):
def __hash__(self):
return hash("DeleteMembership")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -894,7 +886,7 @@ class _GenerateConnectManifest(GkeHubMembershipServiceRestStub):
def __hash__(self):
return hash("GenerateConnectManifest")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -988,7 +980,7 @@ class _GenerateExclusivityManifest(GkeHubMembershipServiceRestStub):
def __hash__(self):
return hash("GenerateExclusivityManifest")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -1082,7 +1074,7 @@ class _GetMembership(GkeHubMembershipServiceRestStub):
def __hash__(self):
return hash("GetMembership")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -1172,7 +1164,7 @@ class _ListMemberships(GkeHubMembershipServiceRestStub):
def __hash__(self):
return hash("ListMemberships")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}

@classmethod
def _get_unset_required_fields(cls, message_dict):
Expand Down Expand Up @@ -1264,7 +1256,7 @@ class _UpdateMembership(GkeHubMembershipServiceRestStub):
def __hash__(self):
return hash("UpdateMembership")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
"updateMask": {},
}

Expand Down Expand Up @@ -1366,7 +1358,7 @@ class _ValidateExclusivity(GkeHubMembershipServiceRestStub):
def __hash__(self):
return hash("ValidateExclusivity")

__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
"intendedMembership": "",
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from __future__ import annotations

from typing import MutableMapping, MutableSequence

from google.protobuf import field_mask_pb2 # type: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-gke-hub",
"version": "1.8.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-gke-hub",
"version": "1.8.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit 2b53f0c

Please sign in to comment.