Skip to content

Commit 9c8595a

Browse files
authored
Container: add 'synth.py'. (googleapis#6084)
Closes googleapis#6067.
1 parent 4f82785 commit 9c8595a

File tree

9 files changed

+2042
-1804
lines changed

9 files changed

+2042
-1804
lines changed

container/google/cloud/container_v1/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
# Copyright 2017, Google LLC All rights reserved.
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2018 Google LLC
24
#
35
# Licensed under the Apache License, Version 2.0 (the "License");
46
# you may not use this file except in compliance with the License.
57
# You may obtain a copy of the License at
68
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
9+
# https://www.apache.org/licenses/LICENSE-2.0
810
#
911
# Unless required by applicable law or agreed to in writing, software
1012
# distributed under the License is distributed on an "AS IS" BASIS,

container/google/cloud/container_v1/gapic/cluster_manager_client.py

Lines changed: 816 additions & 295 deletions
Large diffs are not rendered by default.

container/google/cloud/container_v1/gapic/enums.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
# Copyright 2017, Google LLC All rights reserved.
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2018 Google LLC
24
#
35
# Licensed under the Apache License, Version 2.0 (the "License");
46
# you may not use this file except in compliance with the License.
57
# You may obtain a copy of the License at
68
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
9+
# https://www.apache.org/licenses/LICENSE-2.0
810
#
911
# Unless required by applicable law or agreed to in writing, software
1012
# distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,9 +15,11 @@
1315
# limitations under the License.
1416
"""Wrappers for protocol buffer enum types."""
1517

18+
import enum
19+
1620

1721
class NetworkPolicy(object):
18-
class Provider(object):
22+
class Provider(enum.IntEnum):
1923
"""
2024
Allowed Network Policy providers.
2125
@@ -28,7 +32,7 @@ class Provider(object):
2832

2933

3034
class Cluster(object):
31-
class Status(object):
35+
class Status(enum.IntEnum):
3236
"""
3337
The current status of the cluster.
3438
@@ -53,7 +57,7 @@ class Status(object):
5357

5458

5559
class Operation(object):
56-
class Status(object):
60+
class Status(enum.IntEnum):
5761
"""
5862
Current status of the operation.
5963
@@ -70,7 +74,7 @@ class Status(object):
7074
DONE = 3
7175
ABORTING = 4
7276

73-
class Type(object):
77+
class Type(enum.IntEnum):
7478
"""
7579
Operation type.
7680
@@ -113,7 +117,7 @@ class Type(object):
113117

114118

115119
class SetMasterAuthRequest(object):
116-
class Action(object):
120+
class Action(enum.IntEnum):
117121
"""
118122
Operation type: what type update to perform.
119123
@@ -133,7 +137,7 @@ class Action(object):
133137

134138

135139
class NodePool(object):
136-
class Status(object):
140+
class Status(enum.IntEnum):
137141
"""
138142
The current status of the node pool instance.
139143

container/google/cloud/container_v1/gapic/transports/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)