From 916c3505225d64afbc3172092e7699d57a616e29 Mon Sep 17 00:00:00 2001 From: ohmayr Date: Wed, 11 Feb 2026 23:00:47 +0000 Subject: [PATCH] chore: fix formatting for gke-hub files --- .../configmanagement_v1/types/configmanagement.py | 7 ++++++- .../rbacrolebindingactuation_v1/__init__.py | 14 ++++++++------ .../types/rbacrolebindingactuation.py | 1 - .../google/cloud/gkehub_v1/types/feature.py | 8 +++++--- 4 files changed, 19 insertions(+), 11 deletions(-) diff --git a/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/configmanagement_v1/types/configmanagement.py b/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/configmanagement_v1/types/configmanagement.py index bf8d76a4100a..58f108a645f1 100644 --- a/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/configmanagement_v1/types/configmanagement.py +++ b/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/configmanagement_v1/types/configmanagement.py @@ -17,8 +17,8 @@ from typing import MutableMapping, MutableSequence -from google.protobuf import timestamp_pb2 # type: ignore import proto # type: ignore +from google.protobuf import timestamp_pb2 # type: ignore __protobuf__ = proto.module( package="google.cloud.gkehub.configmanagement.v1", @@ -68,6 +68,7 @@ class DeploymentState(proto.Enum): PENDING (4): Deployment is installing or terminating """ + DEPLOYMENT_STATE_UNSPECIFIED = 0 NOT_INSTALLED = 1 INSTALLED = 2 @@ -174,6 +175,7 @@ class Management(proto.Enum): User will manually manage the Feature for the cluster. """ + MANAGEMENT_UNSPECIFIED = 0 MANAGEMENT_AUTOMATIC = 1 MANAGEMENT_MANUAL = 2 @@ -629,6 +631,7 @@ class CRDState(proto.Enum): INSTALLING (4): CRD is installing """ + CRD_STATE_UNSPECIFIED = 0 NOT_INSTALLED = 1 INSTALLED = 2 @@ -651,6 +654,7 @@ class State(proto.Enum): CONFIG_SYNC_PENDING (4): CS is installing or terminating. """ + STATE_UNSPECIFIED = 0 CONFIG_SYNC_NOT_INSTALLED = 1 CONFIG_SYNC_INSTALLED = 2 @@ -872,6 +876,7 @@ class SyncCode(proto.Enum): UNREACHABLE (7): Cluster could not be reached """ + SYNC_CODE_UNSPECIFIED = 0 SYNCED = 1 PENDING = 2 diff --git a/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/rbacrolebindingactuation_v1/__init__.py b/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/rbacrolebindingactuation_v1/__init__.py index 56c3dcebafc5..a32bd1358a3a 100644 --- a/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/rbacrolebindingactuation_v1/__init__.py +++ b/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/rbacrolebindingactuation_v1/__init__.py @@ -13,10 +13,11 @@ # See the License for the specific language governing permissions and # limitations under the License. # -from google.cloud.gkehub_v1 import gapic_version as package_version +import sys import google.api_core as api_core -import sys + +from google.cloud.gkehub_v1 import gapic_version as package_version __version__ = package_version.__version__ @@ -28,20 +29,21 @@ import importlib_metadata as metadata -from .types.rbacrolebindingactuation import FeatureSpec -from .types.rbacrolebindingactuation import FeatureState +from .types.rbacrolebindingactuation import FeatureSpec, FeatureState if hasattr(api_core, "check_python_version") and hasattr( api_core, "check_dependency_versions" ): # pragma: NO COVER api_core.check_python_version("google.cloud.gkehub.rbacrolebindingactuation_v1") # type: ignore - api_core.check_dependency_versions("google.cloud.gkehub.rbacrolebindingactuation_v1") # type: ignore + api_core.check_dependency_versions( + "google.cloud.gkehub.rbacrolebindingactuation_v1" + ) # type: ignore else: # pragma: NO COVER # An older version of api_core is installed which does not define the # functions above. We do equivalent checks manually. try: - import warnings import sys + import warnings _py_version_str = sys.version.split()[0] _package_label = "google.cloud.gkehub.rbacrolebindingactuation_v1" diff --git a/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/rbacrolebindingactuation_v1/types/rbacrolebindingactuation.py b/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/rbacrolebindingactuation_v1/types/rbacrolebindingactuation.py index aa36a394cc1d..894b699b739b 100644 --- a/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/rbacrolebindingactuation_v1/types/rbacrolebindingactuation.py +++ b/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/rbacrolebindingactuation_v1/types/rbacrolebindingactuation.py @@ -19,7 +19,6 @@ import proto # type: ignore - __protobuf__ = proto.module( package="google.cloud.gkehub.rbacrolebindingactuation.v1", manifest={ diff --git a/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/types/feature.py b/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/types/feature.py index 29fac5f51a6b..6a0498751281 100644 --- a/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/types/feature.py +++ b/packages/google-cloud-gke-hub/google/cloud/gkehub_v1/types/feature.py @@ -20,9 +20,11 @@ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore import proto # type: ignore -from google.cloud.gkehub_v1 import configmanagement_v1 # type: ignore -from google.cloud.gkehub_v1 import multiclusteringress_v1 # type: ignore -from google.cloud.gkehub_v1 import rbacrolebindingactuation_v1 # type: ignore +from google.cloud.gkehub_v1 import ( + configmanagement_v1, # type: ignore + multiclusteringress_v1, # type: ignore + rbacrolebindingactuation_v1, # type: ignore +) __protobuf__ = proto.module( package="google.cloud.gkehub.v1",