|
71 | 71 | "SimulateMaintenanceEventRequest", |
72 | 72 | "AcceleratorConfig", |
73 | 73 | "ShieldedInstanceConfig", |
| 74 | + "BootDiskConfig", |
| 75 | + "CustomerEncryptionKey", |
74 | 76 | }, |
75 | 77 | ) |
76 | 78 |
|
@@ -400,6 +402,8 @@ class Node(proto.Message): |
400 | 402 | multislice_node (bool): |
401 | 403 | Output only. Whether the Node belongs to a |
402 | 404 | Multislice group. |
| 405 | + boot_disk_config (google.cloud.tpu_v2alpha1.types.BootDiskConfig): |
| 406 | + Optional. Boot disk configuration. |
403 | 407 | """ |
404 | 408 |
|
405 | 409 | class State(proto.Enum): |
@@ -611,6 +615,11 @@ class ApiVersion(proto.Enum): |
611 | 615 | proto.BOOL, |
612 | 616 | number=47, |
613 | 617 | ) |
| 618 | + boot_disk_config: "BootDiskConfig" = proto.Field( |
| 619 | + proto.MESSAGE, |
| 620 | + number=49, |
| 621 | + message="BootDiskConfig", |
| 622 | + ) |
614 | 623 |
|
615 | 624 |
|
616 | 625 | class QueuedResource(proto.Message): |
@@ -1953,4 +1962,66 @@ class ShieldedInstanceConfig(proto.Message): |
1953 | 1962 | ) |
1954 | 1963 |
|
1955 | 1964 |
|
| 1965 | +class BootDiskConfig(proto.Message): |
| 1966 | + r"""Boot disk configurations. |
| 1967 | +
|
| 1968 | + Attributes: |
| 1969 | + customer_encryption_key (google.cloud.tpu_v2alpha1.types.CustomerEncryptionKey): |
| 1970 | + Optional. Customer encryption key for boot |
| 1971 | + disk. |
| 1972 | + enable_confidential_compute (bool): |
| 1973 | + Optional. Whether the boot disk will be |
| 1974 | + created with confidential compute mode. |
| 1975 | + """ |
| 1976 | + |
| 1977 | + customer_encryption_key: "CustomerEncryptionKey" = proto.Field( |
| 1978 | + proto.MESSAGE, |
| 1979 | + number=1, |
| 1980 | + message="CustomerEncryptionKey", |
| 1981 | + ) |
| 1982 | + enable_confidential_compute: bool = proto.Field( |
| 1983 | + proto.BOOL, |
| 1984 | + number=2, |
| 1985 | + ) |
| 1986 | + |
| 1987 | + |
| 1988 | +class CustomerEncryptionKey(proto.Message): |
| 1989 | + r"""Customer's encryption key. |
| 1990 | +
|
| 1991 | + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields |
| 1992 | +
|
| 1993 | + Attributes: |
| 1994 | + kms_key_name (str): |
| 1995 | + The name of the encryption key that is stored in Google |
| 1996 | + Cloud KMS. For example: |
| 1997 | +
|
| 1998 | + .. raw:: html |
| 1999 | +
|
| 2000 | + <pre class="lang-html">"kmsKeyName": "projects/ |
| 2001 | + <var class="apiparam">kms_project_id</var>/locations/ |
| 2002 | + <var class="apiparam">region</var>/keyRings/<var class="apiparam"> |
| 2003 | + key_region</var>/cryptoKeys/<var class="apiparam">key</var> |
| 2004 | + </pre> |
| 2005 | +
|
| 2006 | + The fully-qualifed key name may be returned for resource GET |
| 2007 | + requests. For example: |
| 2008 | +
|
| 2009 | + .. raw:: html |
| 2010 | +
|
| 2011 | + <pre class="lang-html">"kmsKeyName": "projects/ |
| 2012 | + <var class="apiparam">kms_project_id</var>/locations/ |
| 2013 | + <var class="apiparam">region</var>/keyRings/<var class="apiparam"> |
| 2014 | + key_region</var>/cryptoKeys/<var class="apiparam">key</var> |
| 2015 | + /cryptoKeyVersions/1</pre> |
| 2016 | +
|
| 2017 | + This field is a member of `oneof`_ ``key``. |
| 2018 | + """ |
| 2019 | + |
| 2020 | + kms_key_name: str = proto.Field( |
| 2021 | + proto.STRING, |
| 2022 | + number=7, |
| 2023 | + oneof="key", |
| 2024 | + ) |
| 2025 | + |
| 2026 | + |
1956 | 2027 | __all__ = tuple(sorted(__protobuf__.manifest)) |
0 commit comments