Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [google-cloud-container] add fields desired_in_transit_encryption_config and in_transit_encryption_config #12211

Merged
merged 4 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
IdentityServiceConfig,
ILBSubsettingConfig,
IntraNodeVisibilityConfig,
InTransitEncryptionConfig,
IPAllocationPolicy,
IPv6AccessType,
Jwk,
Expand Down Expand Up @@ -353,6 +354,7 @@
"WorkloadMetadataConfig",
"WorkloadPolicyConfig",
"DatapathProvider",
"InTransitEncryptionConfig",
"IPv6AccessType",
"NodePoolUpdateStrategy",
"PrivateIPv6GoogleAccess",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.37.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
IdentityServiceConfig,
ILBSubsettingConfig,
IntraNodeVisibilityConfig,
InTransitEncryptionConfig,
IPAllocationPolicy,
IPv6AccessType,
Jwk,
Expand Down Expand Up @@ -253,6 +254,7 @@
"IPAllocationPolicy",
"IPv6AccessType",
"IdentityServiceConfig",
"InTransitEncryptionConfig",
"IntraNodeVisibilityConfig",
"Jwk",
"K8sBetaAPIConfig",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.37.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -2589,8 +2589,6 @@ async def get_json_web_keys(
) -> cluster_service.GetJSONWebKeysResponse:
r"""Gets the public component of the cluster signing keys
in JSON Web Key format.
This API is not yet intended for general use, and is not
available for all clusters.

.. code-block:: python

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2756,8 +2756,6 @@ def get_json_web_keys(
) -> cluster_service.GetJSONWebKeysResponse:
r"""Gets the public component of the cluster signing keys
in JSON Web Key format.
This API is not yet intended for general use, and is not
available for all clusters.

.. code-block:: python

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -724,8 +724,6 @@ def get_json_web_keys(

Gets the public component of the cluster signing keys
in JSON Web Key format.
This API is not yet intended for general use, and is not
available for all clusters.

Returns:
Callable[[~.GetJSONWebKeysRequest],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -753,8 +753,6 @@ def get_json_web_keys(

Gets the public component of the cluster signing keys
in JSON Web Key format.
This API is not yet intended for general use, and is not
available for all clusters.

Returns:
Callable[[~.GetJSONWebKeysRequest],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
IdentityServiceConfig,
ILBSubsettingConfig,
IntraNodeVisibilityConfig,
InTransitEncryptionConfig,
IPAllocationPolicy,
IPv6AccessType,
Jwk,
Expand Down Expand Up @@ -340,6 +341,7 @@
"WorkloadMetadataConfig",
"WorkloadPolicyConfig",
"DatapathProvider",
"InTransitEncryptionConfig",
"IPv6AccessType",
"NodePoolUpdateStrategy",
"PrivateIPv6GoogleAccess",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"NodePoolUpdateStrategy",
"StackType",
"IPv6AccessType",
"InTransitEncryptionConfig",
"LinuxNodeConfig",
"WindowsNodeConfig",
"NodeKubeletConfig",
Expand Down Expand Up @@ -311,6 +312,24 @@ class IPv6AccessType(proto.Enum):
EXTERNAL = 2


class InTransitEncryptionConfig(proto.Enum):
r"""Options for in-transit encryption.

Values:
IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED (0):
Unspecified, will be inferred as default -
IN_TRANSIT_ENCRYPTION_UNSPECIFIED.
IN_TRANSIT_ENCRYPTION_DISABLED (1):
In-transit encryption is disabled.
IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT (2):
Data in-transit is encrypted using inter-node
transparent encryption.
"""
IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED = 0
IN_TRANSIT_ENCRYPTION_DISABLED = 1
IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT = 2


class LinuxNodeConfig(proto.Message):
r"""Parameters that can be configured on Linux nodes.

Expand Down Expand Up @@ -3407,6 +3426,10 @@ class ClusterUpdate(proto.Message):
to all auto-provisioned node pools in autopilot
clusters and node auto-provisioning enabled
clusters.
desired_in_transit_encryption_config (google.cloud.container_v1.types.InTransitEncryptionConfig):
Specify the details of in-transit encryption.

This field is a member of `oneof`_ ``_desired_in_transit_encryption_config``.
"""

desired_node_version: str = proto.Field(
Expand Down Expand Up @@ -3655,6 +3678,12 @@ class ClusterUpdate(proto.Message):
message="ResourceManagerTags",
)
)
desired_in_transit_encryption_config: "InTransitEncryptionConfig" = proto.Field(
proto.ENUM,
number=137,
optional=True,
enum="InTransitEncryptionConfig",
)


class AdditionalPodRangesConfig(proto.Message):
Expand Down Expand Up @@ -7482,6 +7511,10 @@ class NetworkConfig(proto.Message):
this cluster.

This field is a member of `oneof`_ ``_enable_fqdn_network_policy``.
in_transit_encryption_config (google.cloud.container_v1.types.InTransitEncryptionConfig):
Specify the details of in-transit encryption.

This field is a member of `oneof`_ ``_in_transit_encryption_config``.
"""

class ClusterNetworkPerformanceConfig(proto.Message):
Expand Down Expand Up @@ -7577,6 +7610,12 @@ class Tier(proto.Enum):
number=19,
optional=True,
)
in_transit_encryption_config: "InTransitEncryptionConfig" = proto.Field(
proto.ENUM,
number=20,
optional=True,
enum="InTransitEncryptionConfig",
)


class GatewayAPIConfig(proto.Message):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.37.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -2505,8 +2505,6 @@ async def get_json_web_keys(
) -> cluster_service.GetJSONWebKeysResponse:
r"""Gets the public component of the cluster signing keys
in JSON Web Key format.
This API is not yet intended for general use, and is not
available for all clusters.

.. code-block:: python

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2672,8 +2672,6 @@ def get_json_web_keys(
) -> cluster_service.GetJSONWebKeysResponse:
r"""Gets the public component of the cluster signing keys
in JSON Web Key format.
This API is not yet intended for general use, and is not
available for all clusters.

.. code-block:: python

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -724,8 +724,6 @@ def get_json_web_keys(

Gets the public component of the cluster signing keys
in JSON Web Key format.
This API is not yet intended for general use, and is not
available for all clusters.

Returns:
Callable[[~.GetJSONWebKeysRequest],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -753,8 +753,6 @@ def get_json_web_keys(

Gets the public component of the cluster signing keys
in JSON Web Key format.
This API is not yet intended for general use, and is not
available for all clusters.

Returns:
Callable[[~.GetJSONWebKeysRequest],
Expand Down
18 changes: 18 additions & 0 deletions packages/google-cloud-container/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,15 @@ def docs(session):

session.install("-e", ".")
session.install(
# We need to pin to specific versions of the `sphinxcontrib-*` packages
# which still support sphinx 4.x.
# See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
# and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
"sphinxcontrib-applehelp==1.0.4",
"sphinxcontrib-devhelp==1.0.2",
"sphinxcontrib-htmlhelp==2.0.1",
"sphinxcontrib-qthelp==1.0.3",
"sphinxcontrib-serializinghtml==1.1.5",
"sphinx==4.5.0",
"alabaster",
"recommonmark",
Expand All @@ -308,6 +317,15 @@ def docfx(session):

session.install("-e", ".")
session.install(
# We need to pin to specific versions of the `sphinxcontrib-*` packages
# which still support sphinx 4.x.
# See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
# and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
"sphinxcontrib-applehelp==1.0.4",
"sphinxcontrib-devhelp==1.0.2",
"sphinxcontrib-htmlhelp==2.0.1",
"sphinxcontrib-qthelp==1.0.3",
"sphinxcontrib-serializinghtml==1.1.5",
"gcp-sphinx-docfx-yaml",
"alabaster",
"recommonmark",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-container",
"version": "2.37.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-container",
"version": "2.37.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Loading