Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Commit 7b3b2d6

Browse files
chore: Update gapic-generator-python to v1.8.5 (#227)
* chore: Update gapic-generator-python to v1.8.5 PiperOrigin-RevId: 511892190 Source-Link: googleapis/googleapis@a45d9c0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/1907294b1d8365ea24f8c5f2e059a64124c4ed3b 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>
1 parent 71772d0 commit 7b3b2d6

File tree

10 files changed

+48
-44
lines changed

10 files changed

+48
-44
lines changed

google/cloud/gkehub_v1/configmanagement_v1/types/configmanagement.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from __future__ import annotations
17+
1618
from typing import MutableMapping, MutableSequence
1719

1820
from google.protobuf import timestamp_pb2 # type: ignore

google/cloud/gkehub_v1/multiclusteringress_v1/types/multiclusteringress.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from __future__ import annotations
17+
1618
from typing import MutableMapping, MutableSequence
1719

1820
import proto # type: ignore

google/cloud/gkehub_v1/services/gke_hub/transports/rest.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import dataclasses
1818
import json # type: ignore
1919
import re
20-
from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union
20+
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union
2121
import warnings
2222

2323
from google.api_core import (
@@ -657,7 +657,7 @@ class _CreateMembership(GkeHubRestStub):
657657
def __hash__(self):
658658
return hash("CreateMembership")
659659

660-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
660+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
661661
"membershipId": "",
662662
}
663663

@@ -835,7 +835,7 @@ class _DeleteMembership(GkeHubRestStub):
835835
def __hash__(self):
836836
return hash("DeleteMembership")
837837

838-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
838+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
839839

840840
@classmethod
841841
def _get_unset_required_fields(cls, message_dict):
@@ -924,7 +924,7 @@ class _GenerateConnectManifest(GkeHubRestStub):
924924
def __hash__(self):
925925
return hash("GenerateConnectManifest")
926926

927-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
927+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
928928

929929
@classmethod
930930
def _get_unset_required_fields(cls, message_dict):
@@ -1094,7 +1094,7 @@ class _GetMembership(GkeHubRestStub):
10941094
def __hash__(self):
10951095
return hash("GetMembership")
10961096

1097-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1097+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
10981098

10991099
@classmethod
11001100
def _get_unset_required_fields(cls, message_dict):
@@ -1257,7 +1257,7 @@ class _ListMemberships(GkeHubRestStub):
12571257
def __hash__(self):
12581258
return hash("ListMemberships")
12591259

1260-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1260+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
12611261

12621262
@classmethod
12631263
def _get_unset_required_fields(cls, message_dict):
@@ -1432,7 +1432,7 @@ class _UpdateMembership(GkeHubRestStub):
14321432
def __hash__(self):
14331433
return hash("UpdateMembership")
14341434

1435-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
1435+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
14361436
"updateMask": {},
14371437
}
14381438

google/cloud/gkehub_v1/types/feature.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from __future__ import annotations
17+
1618
from typing import MutableMapping, MutableSequence
1719

1820
from google.protobuf import timestamp_pb2 # type: ignore

google/cloud/gkehub_v1/types/membership.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from __future__ import annotations
17+
1618
from typing import MutableMapping, MutableSequence
1719

1820
from google.protobuf import timestamp_pb2 # type: ignore

google/cloud/gkehub_v1/types/service.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from __future__ import annotations
17+
1618
from typing import MutableMapping, MutableSequence
1719

1820
from google.protobuf import field_mask_pb2 # type: ignore

google/cloud/gkehub_v1beta1/services/gke_hub_membership_service/transports/rest.py

Lines changed: 27 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import dataclasses
1818
import json # type: ignore
1919
import re
20-
from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union
20+
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union
2121
import warnings
2222

2323
from google.api_core import (
@@ -335,7 +335,7 @@ def pre_get_location(
335335
self,
336336
request: locations_pb2.GetLocationRequest,
337337
metadata: Sequence[Tuple[str, str]],
338-
) -> locations_pb2.Location:
338+
) -> Tuple[locations_pb2.GetLocationRequest, Sequence[Tuple[str, str]]]:
339339
"""Pre-rpc interceptor for get_location
340340
341341
Override in a subclass to manipulate the request or metadata
@@ -344,7 +344,7 @@ def pre_get_location(
344344
return request, metadata
345345

346346
def post_get_location(
347-
self, response: locations_pb2.GetLocationRequest
347+
self, response: locations_pb2.Location
348348
) -> locations_pb2.Location:
349349
"""Post-rpc interceptor for get_location
350350
@@ -358,7 +358,7 @@ def pre_list_locations(
358358
self,
359359
request: locations_pb2.ListLocationsRequest,
360360
metadata: Sequence[Tuple[str, str]],
361-
) -> locations_pb2.ListLocationsResponse:
361+
) -> Tuple[locations_pb2.ListLocationsRequest, Sequence[Tuple[str, str]]]:
362362
"""Pre-rpc interceptor for list_locations
363363
364364
Override in a subclass to manipulate the request or metadata
@@ -367,7 +367,7 @@ def pre_list_locations(
367367
return request, metadata
368368

369369
def post_list_locations(
370-
self, response: locations_pb2.ListLocationsRequest
370+
self, response: locations_pb2.ListLocationsResponse
371371
) -> locations_pb2.ListLocationsResponse:
372372
"""Post-rpc interceptor for list_locations
373373
@@ -381,17 +381,15 @@ def pre_get_iam_policy(
381381
self,
382382
request: iam_policy_pb2.GetIamPolicyRequest,
383383
metadata: Sequence[Tuple[str, str]],
384-
) -> policy_pb2.Policy:
384+
) -> Tuple[iam_policy_pb2.GetIamPolicyRequest, Sequence[Tuple[str, str]]]:
385385
"""Pre-rpc interceptor for get_iam_policy
386386
387387
Override in a subclass to manipulate the request or metadata
388388
before they are sent to the GkeHubMembershipService server.
389389
"""
390390
return request, metadata
391391

392-
def post_get_iam_policy(
393-
self, response: iam_policy_pb2.GetIamPolicyRequest
394-
) -> policy_pb2.Policy:
392+
def post_get_iam_policy(self, response: policy_pb2.Policy) -> policy_pb2.Policy:
395393
"""Post-rpc interceptor for get_iam_policy
396394
397395
Override in a subclass to manipulate the response
@@ -404,17 +402,15 @@ def pre_set_iam_policy(
404402
self,
405403
request: iam_policy_pb2.SetIamPolicyRequest,
406404
metadata: Sequence[Tuple[str, str]],
407-
) -> policy_pb2.Policy:
405+
) -> Tuple[iam_policy_pb2.SetIamPolicyRequest, Sequence[Tuple[str, str]]]:
408406
"""Pre-rpc interceptor for set_iam_policy
409407
410408
Override in a subclass to manipulate the request or metadata
411409
before they are sent to the GkeHubMembershipService server.
412410
"""
413411
return request, metadata
414412

415-
def post_set_iam_policy(
416-
self, response: iam_policy_pb2.SetIamPolicyRequest
417-
) -> policy_pb2.Policy:
413+
def post_set_iam_policy(self, response: policy_pb2.Policy) -> policy_pb2.Policy:
418414
"""Post-rpc interceptor for set_iam_policy
419415
420416
Override in a subclass to manipulate the response
@@ -427,7 +423,7 @@ def pre_test_iam_permissions(
427423
self,
428424
request: iam_policy_pb2.TestIamPermissionsRequest,
429425
metadata: Sequence[Tuple[str, str]],
430-
) -> iam_policy_pb2.TestIamPermissionsResponse:
426+
) -> Tuple[iam_policy_pb2.TestIamPermissionsRequest, Sequence[Tuple[str, str]]]:
431427
"""Pre-rpc interceptor for test_iam_permissions
432428
433429
Override in a subclass to manipulate the request or metadata
@@ -436,7 +432,7 @@ def pre_test_iam_permissions(
436432
return request, metadata
437433

438434
def post_test_iam_permissions(
439-
self, response: iam_policy_pb2.TestIamPermissionsRequest
435+
self, response: iam_policy_pb2.TestIamPermissionsResponse
440436
) -> iam_policy_pb2.TestIamPermissionsResponse:
441437
"""Post-rpc interceptor for test_iam_permissions
442438
@@ -450,17 +446,15 @@ def pre_cancel_operation(
450446
self,
451447
request: operations_pb2.CancelOperationRequest,
452448
metadata: Sequence[Tuple[str, str]],
453-
) -> None:
449+
) -> Tuple[operations_pb2.CancelOperationRequest, Sequence[Tuple[str, str]]]:
454450
"""Pre-rpc interceptor for cancel_operation
455451
456452
Override in a subclass to manipulate the request or metadata
457453
before they are sent to the GkeHubMembershipService server.
458454
"""
459455
return request, metadata
460456

461-
def post_cancel_operation(
462-
self, response: operations_pb2.CancelOperationRequest
463-
) -> None:
457+
def post_cancel_operation(self, response: None) -> None:
464458
"""Post-rpc interceptor for cancel_operation
465459
466460
Override in a subclass to manipulate the response
@@ -473,17 +467,15 @@ def pre_delete_operation(
473467
self,
474468
request: operations_pb2.DeleteOperationRequest,
475469
metadata: Sequence[Tuple[str, str]],
476-
) -> None:
470+
) -> Tuple[operations_pb2.DeleteOperationRequest, Sequence[Tuple[str, str]]]:
477471
"""Pre-rpc interceptor for delete_operation
478472
479473
Override in a subclass to manipulate the request or metadata
480474
before they are sent to the GkeHubMembershipService server.
481475
"""
482476
return request, metadata
483477

484-
def post_delete_operation(
485-
self, response: operations_pb2.DeleteOperationRequest
486-
) -> None:
478+
def post_delete_operation(self, response: None) -> None:
487479
"""Post-rpc interceptor for delete_operation
488480
489481
Override in a subclass to manipulate the response
@@ -496,7 +488,7 @@ def pre_get_operation(
496488
self,
497489
request: operations_pb2.GetOperationRequest,
498490
metadata: Sequence[Tuple[str, str]],
499-
) -> operations_pb2.Operation:
491+
) -> Tuple[operations_pb2.GetOperationRequest, Sequence[Tuple[str, str]]]:
500492
"""Pre-rpc interceptor for get_operation
501493
502494
Override in a subclass to manipulate the request or metadata
@@ -505,7 +497,7 @@ def pre_get_operation(
505497
return request, metadata
506498

507499
def post_get_operation(
508-
self, response: operations_pb2.GetOperationRequest
500+
self, response: operations_pb2.Operation
509501
) -> operations_pb2.Operation:
510502
"""Post-rpc interceptor for get_operation
511503
@@ -519,7 +511,7 @@ def pre_list_operations(
519511
self,
520512
request: operations_pb2.ListOperationsRequest,
521513
metadata: Sequence[Tuple[str, str]],
522-
) -> operations_pb2.ListOperationsResponse:
514+
) -> Tuple[operations_pb2.ListOperationsRequest, Sequence[Tuple[str, str]]]:
523515
"""Pre-rpc interceptor for list_operations
524516
525517
Override in a subclass to manipulate the request or metadata
@@ -528,7 +520,7 @@ def pre_list_operations(
528520
return request, metadata
529521

530522
def post_list_operations(
531-
self, response: operations_pb2.ListOperationsRequest
523+
self, response: operations_pb2.ListOperationsResponse
532524
) -> operations_pb2.ListOperationsResponse:
533525
"""Post-rpc interceptor for list_operations
534526
@@ -701,7 +693,7 @@ class _CreateMembership(GkeHubMembershipServiceRestStub):
701693
def __hash__(self):
702694
return hash("CreateMembership")
703695

704-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
696+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
705697
"membershipId": "",
706698
}
707699

@@ -803,7 +795,7 @@ class _DeleteMembership(GkeHubMembershipServiceRestStub):
803795
def __hash__(self):
804796
return hash("DeleteMembership")
805797

806-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
798+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
807799

808800
@classmethod
809801
def _get_unset_required_fields(cls, message_dict):
@@ -894,7 +886,7 @@ class _GenerateConnectManifest(GkeHubMembershipServiceRestStub):
894886
def __hash__(self):
895887
return hash("GenerateConnectManifest")
896888

897-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
889+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
898890

899891
@classmethod
900892
def _get_unset_required_fields(cls, message_dict):
@@ -988,7 +980,7 @@ class _GenerateExclusivityManifest(GkeHubMembershipServiceRestStub):
988980
def __hash__(self):
989981
return hash("GenerateExclusivityManifest")
990982

991-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
983+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
992984

993985
@classmethod
994986
def _get_unset_required_fields(cls, message_dict):
@@ -1082,7 +1074,7 @@ class _GetMembership(GkeHubMembershipServiceRestStub):
10821074
def __hash__(self):
10831075
return hash("GetMembership")
10841076

1085-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1077+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
10861078

10871079
@classmethod
10881080
def _get_unset_required_fields(cls, message_dict):
@@ -1172,7 +1164,7 @@ class _ListMemberships(GkeHubMembershipServiceRestStub):
11721164
def __hash__(self):
11731165
return hash("ListMemberships")
11741166

1175-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
1167+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
11761168

11771169
@classmethod
11781170
def _get_unset_required_fields(cls, message_dict):
@@ -1264,7 +1256,7 @@ class _UpdateMembership(GkeHubMembershipServiceRestStub):
12641256
def __hash__(self):
12651257
return hash("UpdateMembership")
12661258

1267-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
1259+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
12681260
"updateMask": {},
12691261
}
12701262

@@ -1366,7 +1358,7 @@ class _ValidateExclusivity(GkeHubMembershipServiceRestStub):
13661358
def __hash__(self):
13671359
return hash("ValidateExclusivity")
13681360

1369-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {
1361+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {
13701362
"intendedMembership": "",
13711363
}
13721364

google/cloud/gkehub_v1beta1/types/membership.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from __future__ import annotations
17+
1618
from typing import MutableMapping, MutableSequence
1719

1820
from google.protobuf import field_mask_pb2 # type: ignore

samples/generated_samples/snippet_metadata_google.cloud.gkehub.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-gke-hub",
11-
"version": "1.8.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

samples/generated_samples/snippet_metadata_google.cloud.gkehub.v1beta1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-gke-hub",
11-
"version": "1.8.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy