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

Commit 5e0594c

Browse files
docs: Minor formatting (#253)
* docs: Minor formatting chore: Update gapic-generator-python to v1.11.5 build: Update rules_python to 0.24.0 PiperOrigin-RevId: 563436317 Source-Link: googleapis/googleapis@42fd37b Source-Link: https://github.com/googleapis/googleapis-gen/commit/280264ca02fb9316b4237a96d0af1a2343a81a56 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjgwMjY0Y2EwMmZiOTMxNmI0MjM3YTk2ZDBhZjFhMjM0M2E4MWE1NiJ9 * 🦉 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>
1 parent ceb92cf commit 5e0594c

File tree

11 files changed

+37
-6
lines changed

11 files changed

+37
-6
lines changed

google/cloud/gkehub_v1/types/feature.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,12 @@ class Feature(proto.Message):
5959
for this Feature. If this Feature does not
6060
support any per-Membership configuration, this
6161
field may be unused.
62+
6263
The keys indicate which Membership the
6364
configuration is for, in the form:
6465
6566
`projects/{p}/locations/{l}/memberships/{m}`
67+
6668
Where {p} is the project, {l} is a valid
6769
location and {m} is a valid Membership in this
6870
project at that location. {p} WILL match the
@@ -83,10 +85,12 @@ class Feature(proto.Message):
8385
Output only. Membership-specific Feature
8486
status. If this Feature does report any
8587
per-Membership status, this field may be unused.
88+
8689
The keys indicate which Membership the state is
8790
for, in the form:
8891
8992
`projects/{p}/locations/{l}/memberships/{m}`
93+
9094
Where {p} is the project number, {l} is a valid
9195
location and {m} is a valid Membership in this
9296
project at that location. {p} MUST match the

google/cloud/gkehub_v1/types/membership.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ class KubernetesResource(proto.Message):
242242
Input only. The YAML representation of the
243243
Membership CR. This field is ignored for GKE
244244
clusters where Hub can read the CR directly.
245+
245246
Callers should provide the CR that is currently
246247
present in the cluster during CreateMembership
247248
or UpdateMembership, or leave this field empty
@@ -252,6 +253,7 @@ class KubernetesResource(proto.Message):
252253
Output only. Additional Kubernetes resources
253254
that need to be applied to the cluster after
254255
Membership creation, and after every update.
256+
255257
This field is only populated in the Membership
256258
returned from a successful long-running
257259
operation from CreateMembership or
@@ -368,6 +370,7 @@ class GkeCluster(proto.Message):
368370
resource for the GKE cluster. For example:
369371
370372
//container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
373+
371374
Zonal clusters are also supported.
372375
cluster_missing (bool):
373376
Output only. If cluster_missing is set then it denotes that

google/cloud/gkehub_v1/types/service.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ class CreateMembershipRequest(proto.Message):
196196
ignore the request if it has already been
197197
completed. The server will guarantee that for at
198198
least 60 minutes after the first request.
199+
199200
For example, consider a situation where you make
200201
an initial request and the request times out. If
201202
you make the request again with the same request
@@ -204,6 +205,7 @@ class CreateMembershipRequest(proto.Message):
204205
so, will ignore the second request. This
205206
prevents clients from accidentally creating
206207
duplicate commitments.
208+
207209
The request ID must be a valid UUID with the
208210
exception that zero UUID is not supported
209211
(00000000-0000-0000-0000-000000000000).
@@ -242,6 +244,7 @@ class DeleteMembershipRequest(proto.Message):
242244
ignore the request if it has already been
243245
completed. The server will guarantee that for at
244246
least 60 minutes after the first request.
247+
245248
For example, consider a situation where you make
246249
an initial request and the request times out. If
247250
you make the request again with the same request
@@ -250,6 +253,7 @@ class DeleteMembershipRequest(proto.Message):
250253
so, will ignore the second request. This
251254
prevents clients from accidentally creating
252255
duplicate commitments.
256+
253257
The request ID must be a valid UUID with the
254258
exception that zero UUID is not supported
255259
(00000000-0000-0000-0000-000000000000).
@@ -299,6 +303,7 @@ class UpdateMembershipRequest(proto.Message):
299303
ignore the request if it has already been
300304
completed. The server will guarantee that for at
301305
least 60 minutes after the first request.
306+
302307
For example, consider a situation where you make
303308
an initial request and the request times out. If
304309
you make the request again with the same request
@@ -307,6 +312,7 @@ class UpdateMembershipRequest(proto.Message):
307312
so, will ignore the second request. This
308313
prevents clients from accidentally creating
309314
duplicate commitments.
315+
310316
The request ID must be a valid UUID with the
311317
exception that zero UUID is not supported
312318
(00000000-0000-0000-0000-000000000000).
@@ -585,6 +591,7 @@ class CreateFeatureRequest(proto.Message):
585591
ignore the request if it has already been
586592
completed. The server will guarantee that for at
587593
least 60 minutes after the first request.
594+
588595
For example, consider a situation where you make
589596
an initial request and the request times out. If
590597
you make the request again with the same request
@@ -593,6 +600,7 @@ class CreateFeatureRequest(proto.Message):
593600
so, will ignore the second request. This
594601
prevents clients from accidentally creating
595602
duplicate commitments.
603+
596604
The request ID must be a valid UUID with the
597605
exception that zero UUID is not supported
598606
(00000000-0000-0000-0000-000000000000).
@@ -636,6 +644,7 @@ class DeleteFeatureRequest(proto.Message):
636644
ignore the request if it has already been
637645
completed. The server will guarantee that for at
638646
least 60 minutes after the first request.
647+
639648
For example, consider a situation where you make
640649
an initial request and the request times out. If
641650
you make the request again with the same request
@@ -644,6 +653,7 @@ class DeleteFeatureRequest(proto.Message):
644653
so, will ignore the second request. This
645654
prevents clients from accidentally creating
646655
duplicate commitments.
656+
647657
The request ID must be a valid UUID with the
648658
exception that zero UUID is not supported
649659
(00000000-0000-0000-0000-000000000000).
@@ -688,6 +698,7 @@ class UpdateFeatureRequest(proto.Message):
688698
ignore the request if it has already been
689699
completed. The server will guarantee that for at
690700
least 60 minutes after the first request.
701+
691702
For example, consider a situation where you make
692703
an initial request and the request times out. If
693704
you make the request again with the same request
@@ -696,6 +707,7 @@ class UpdateFeatureRequest(proto.Message):
696707
so, will ignore the second request. This
697708
prevents clients from accidentally creating
698709
duplicate commitments.
710+
699711
The request ID must be a valid UUID with the
700712
exception that zero UUID is not supported
701713
(00000000-0000-0000-0000-000000000000).

google/cloud/gkehub_v1beta1/services/gke_hub_membership_service/async_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
from google.cloud.location import locations_pb2 # type: ignore
4848
from google.iam.v1 import iam_policy_pb2 # type: ignore
4949
from google.iam.v1 import policy_pb2 # type: ignore
50-
from google.longrunning import operations_pb2
50+
from google.longrunning import operations_pb2 # type: ignore
5151
from google.protobuf import empty_pb2 # type: ignore
5252
from google.protobuf import field_mask_pb2 # type: ignore
5353
from google.protobuf import timestamp_pb2 # type: ignore
@@ -1070,6 +1070,7 @@ async def generate_exclusivity_manifest(
10701070
r"""GenerateExclusivityManifest generates the manifests
10711071
to update the exclusivity artifacts in the cluster if
10721072
needed.
1073+
10731074
Exclusivity artifacts include the Membership custom
10741075
resource definition (CRD) and the singleton Membership
10751076
custom resource (CR). Combined with ValidateExclusivity,

google/cloud/gkehub_v1beta1/services/gke_hub_membership_service/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
from google.cloud.location import locations_pb2 # type: ignore
5252
from google.iam.v1 import iam_policy_pb2 # type: ignore
5353
from google.iam.v1 import policy_pb2 # type: ignore
54-
from google.longrunning import operations_pb2
54+
from google.longrunning import operations_pb2 # type: ignore
5555
from google.protobuf import empty_pb2 # type: ignore
5656
from google.protobuf import field_mask_pb2 # type: ignore
5757
from google.protobuf import timestamp_pb2 # type: ignore
@@ -1298,6 +1298,7 @@ def generate_exclusivity_manifest(
12981298
r"""GenerateExclusivityManifest generates the manifests
12991299
to update the exclusivity artifacts in the cluster if
13001300
needed.
1301+
13011302
Exclusivity artifacts include the Membership custom
13021303
resource definition (CRD) and the singleton Membership
13031304
custom resource (CR). Combined with ValidateExclusivity,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ def generate_exclusivity_manifest(
471471
GenerateExclusivityManifest generates the manifests
472472
to update the exclusivity artifacts in the cluster if
473473
needed.
474+
474475
Exclusivity artifacts include the Membership custom
475476
resource definition (CRD) and the singleton Membership
476477
custom resource (CR). Combined with ValidateExclusivity,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ def generate_exclusivity_manifest(
484484
GenerateExclusivityManifest generates the manifests
485485
to update the exclusivity artifacts in the cluster if
486486
needed.
487+
487488
Exclusivity artifacts include the Membership custom
488489
resource definition (CRD) and the singleton Membership
489490
custom resource (CR). Combined with ValidateExclusivity,

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
from google.cloud.location import locations_pb2 # type: ignore
3636
from google.iam.v1 import iam_policy_pb2 # type: ignore
3737
from google.iam.v1 import policy_pb2 # type: ignore
38-
from google.longrunning import operations_pb2
3938
from google.protobuf import json_format
4039
import grpc # type: ignore
4140
from requests import __version__ as requests_version

google/cloud/gkehub_v1beta1/types/membership.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ class InfrastructureType(proto.Enum):
146146
r"""Specifies the infrastructure type of a Membership.
147147
Infrastructure type is used by Hub to control
148148
infrastructure-specific behavior, including pricing.
149+
149150
Each GKE distribution (on-GCP, on-Prem, on-X,...) will set this
150151
field automatically, but Attached Clusters customers should
151152
specify a type during registration.
@@ -344,6 +345,7 @@ class KubernetesResource(proto.Message):
344345
Input only. The YAML representation of the
345346
Membership CR. This field is ignored for GKE
346347
clusters where Hub can read the CR directly.
348+
347349
Callers should provide the CR that is currently
348350
present in the cluster during CreateMembership
349351
or UpdateMembership, or leave this field empty
@@ -354,6 +356,7 @@ class KubernetesResource(proto.Message):
354356
Output only. Additional Kubernetes resources
355357
that need to be applied to the cluster after
356358
Membership creation, and after every update.
359+
357360
This field is only populated in the Membership
358361
returned from a successful long-running
359362
operation from CreateMembership or
@@ -468,8 +471,8 @@ class GkeCluster(proto.Message):
468471
resource_link (str):
469472
Immutable. Self-link of the GCP resource for
470473
the GKE cluster. For example:
471-
472474
//container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
475+
473476
Zonal clusters are also supported.
474477
cluster_missing (bool):
475478
Output only. If cluster_missing is set then it denotes that
@@ -993,6 +996,7 @@ class CreateMembershipRequest(proto.Message):
993996
ignore the request if it has already been
994997
completed. The server will guarantee that for at
995998
least 60 minutes after the first request.
999+
9961000
For example, consider a situation where you make
9971001
an initial request and the request times out. If
9981002
you make the request again with the same request
@@ -1001,6 +1005,7 @@ class CreateMembershipRequest(proto.Message):
10011005
so, will ignore the second request. This
10021006
prevents clients from accidentally creating
10031007
duplicate commitments.
1008+
10041009
The request ID must be a valid UUID with the
10051010
exception that zero UUID is not supported
10061011
(00000000-0000-0000-0000-000000000000).
@@ -1040,6 +1045,7 @@ class DeleteMembershipRequest(proto.Message):
10401045
ignore the request if it has already been
10411046
completed. The server will guarantee that for at
10421047
least 60 minutes after the first request.
1048+
10431049
For example, consider a situation where you make
10441050
an initial request and the request times out. If
10451051
you make the request again with the same request
@@ -1048,6 +1054,7 @@ class DeleteMembershipRequest(proto.Message):
10481054
so, will ignore the second request. This
10491055
prevents clients from accidentally creating
10501056
duplicate commitments.
1057+
10511058
The request ID must be a valid UUID with the
10521059
exception that zero UUID is not supported
10531060
(00000000-0000-0000-0000-000000000000).
@@ -1099,6 +1106,7 @@ class UpdateMembershipRequest(proto.Message):
10991106
ignore the request if it has already been
11001107
completed. The server will guarantee that for at
11011108
least 60 minutes after the first request.
1109+
11021110
For example, consider a situation where you make
11031111
an initial request and the request times out. If
11041112
you make the request again with the same request
@@ -1107,6 +1115,7 @@ class UpdateMembershipRequest(proto.Message):
11071115
so, will ignore the second request. This
11081116
prevents clients from accidentally creating
11091117
duplicate commitments.
1118+
11101119
The request ID must be a valid UUID with the
11111120
exception that zero UUID is not supported
11121121
(00000000-0000-0000-0000-000000000000).

tests/unit/gapic/gkehub_v1/test_gke_hub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
import google.auth
4242
from google.auth import credentials as ga_credentials
4343
from google.auth.exceptions import MutualTLSChannelError
44-
from google.longrunning import operations_pb2
44+
from google.longrunning import operations_pb2 # type: ignore
4545
from google.oauth2 import service_account
4646
from google.protobuf import empty_pb2 # type: ignore
4747
from google.protobuf import field_mask_pb2 # type: ignore

0 commit comments

Comments
 (0)