Skip to content

Commit edd2b7a

Browse files
authored
chore: fix formatting for gke-hub files (#15587)
fix formatting for gke-hub files
1 parent 2b0c979 commit edd2b7a

4 files changed

Lines changed: 19 additions & 11 deletions

File tree

packages/google-cloud-gke-hub/google/cloud/gkehub_v1/configmanagement_v1/types/configmanagement.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
from typing import MutableMapping, MutableSequence
1919

20-
from google.protobuf import timestamp_pb2 # type: ignore
2120
import proto # type: ignore
21+
from google.protobuf import timestamp_pb2 # type: ignore
2222

2323
__protobuf__ = proto.module(
2424
package="google.cloud.gkehub.configmanagement.v1",
@@ -68,6 +68,7 @@ class DeploymentState(proto.Enum):
6868
PENDING (4):
6969
Deployment is installing or terminating
7070
"""
71+
7172
DEPLOYMENT_STATE_UNSPECIFIED = 0
7273
NOT_INSTALLED = 1
7374
INSTALLED = 2
@@ -174,6 +175,7 @@ class Management(proto.Enum):
174175
User will manually manage the Feature for the
175176
cluster.
176177
"""
178+
177179
MANAGEMENT_UNSPECIFIED = 0
178180
MANAGEMENT_AUTOMATIC = 1
179181
MANAGEMENT_MANUAL = 2
@@ -629,6 +631,7 @@ class CRDState(proto.Enum):
629631
INSTALLING (4):
630632
CRD is installing
631633
"""
634+
632635
CRD_STATE_UNSPECIFIED = 0
633636
NOT_INSTALLED = 1
634637
INSTALLED = 2
@@ -651,6 +654,7 @@ class State(proto.Enum):
651654
CONFIG_SYNC_PENDING (4):
652655
CS is installing or terminating.
653656
"""
657+
654658
STATE_UNSPECIFIED = 0
655659
CONFIG_SYNC_NOT_INSTALLED = 1
656660
CONFIG_SYNC_INSTALLED = 2
@@ -872,6 +876,7 @@ class SyncCode(proto.Enum):
872876
UNREACHABLE (7):
873877
Cluster could not be reached
874878
"""
879+
875880
SYNC_CODE_UNSPECIFIED = 0
876881
SYNCED = 1
877882
PENDING = 2

packages/google-cloud-gke-hub/google/cloud/gkehub_v1/rbacrolebindingactuation_v1/__init__.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
from google.cloud.gkehub_v1 import gapic_version as package_version
16+
import sys
1717

1818
import google.api_core as api_core
19-
import sys
19+
20+
from google.cloud.gkehub_v1 import gapic_version as package_version
2021

2122
__version__ = package_version.__version__
2223

@@ -28,20 +29,21 @@
2829
import importlib_metadata as metadata
2930

3031

31-
from .types.rbacrolebindingactuation import FeatureSpec
32-
from .types.rbacrolebindingactuation import FeatureState
32+
from .types.rbacrolebindingactuation import FeatureSpec, FeatureState
3333

3434
if hasattr(api_core, "check_python_version") and hasattr(
3535
api_core, "check_dependency_versions"
3636
): # pragma: NO COVER
3737
api_core.check_python_version("google.cloud.gkehub.rbacrolebindingactuation_v1") # type: ignore
38-
api_core.check_dependency_versions("google.cloud.gkehub.rbacrolebindingactuation_v1") # type: ignore
38+
api_core.check_dependency_versions(
39+
"google.cloud.gkehub.rbacrolebindingactuation_v1"
40+
) # type: ignore
3941
else: # pragma: NO COVER
4042
# An older version of api_core is installed which does not define the
4143
# functions above. We do equivalent checks manually.
4244
try:
43-
import warnings
4445
import sys
46+
import warnings
4547

4648
_py_version_str = sys.version.split()[0]
4749
_package_label = "google.cloud.gkehub.rbacrolebindingactuation_v1"

packages/google-cloud-gke-hub/google/cloud/gkehub_v1/rbacrolebindingactuation_v1/types/rbacrolebindingactuation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
import proto # type: ignore
2121

22-
2322
__protobuf__ = proto.module(
2423
package="google.cloud.gkehub.rbacrolebindingactuation.v1",
2524
manifest={

packages/google-cloud-gke-hub/google/cloud/gkehub_v1/types/feature.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@
2020
import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
2121
import proto # type: ignore
2222

23-
from google.cloud.gkehub_v1 import configmanagement_v1 # type: ignore
24-
from google.cloud.gkehub_v1 import multiclusteringress_v1 # type: ignore
25-
from google.cloud.gkehub_v1 import rbacrolebindingactuation_v1 # type: ignore
23+
from google.cloud.gkehub_v1 import (
24+
configmanagement_v1, # type: ignore
25+
multiclusteringress_v1, # type: ignore
26+
rbacrolebindingactuation_v1, # type: ignore
27+
)
2628

2729
__protobuf__ = proto.module(
2830
package="google.cloud.gkehub.v1",

0 commit comments

Comments
 (0)