Skip to content

Commit

Permalink
Merge branch 'main' into owl-bot-copy-packages-google-cloud-dialogflo…
Browse files Browse the repository at this point in the history
…w-cx
  • Loading branch information
parthea committed Aug 31, 2023
2 parents 8aed428 + 050b5c1 commit 28e099e
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
AcceleratorType,
AccessConfig,
AttachedDisk,
BootDiskConfig,
CreateNodeRequest,
CreateQueuedResourceRequest,
CustomerEncryptionKey,
DeleteNodeRequest,
DeleteQueuedResourceRequest,
GenerateServiceIdentityRequest,
Expand Down Expand Up @@ -72,8 +74,10 @@
"AcceleratorType",
"AccessConfig",
"AttachedDisk",
"BootDiskConfig",
"CreateNodeRequest",
"CreateQueuedResourceRequest",
"CustomerEncryptionKey",
"DeleteNodeRequest",
"DeleteQueuedResourceRequest",
"GenerateServiceIdentityRequest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
AcceleratorType,
AccessConfig,
AttachedDisk,
BootDiskConfig,
CreateNodeRequest,
CreateQueuedResourceRequest,
CustomerEncryptionKey,
DeleteNodeRequest,
DeleteQueuedResourceRequest,
GenerateServiceIdentityRequest,
Expand Down Expand Up @@ -65,8 +67,10 @@
"AcceleratorType",
"AccessConfig",
"AttachedDisk",
"BootDiskConfig",
"CreateNodeRequest",
"CreateQueuedResourceRequest",
"CustomerEncryptionKey",
"DeleteNodeRequest",
"DeleteQueuedResourceRequest",
"GenerateServiceIdentityRequest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
"SimulateMaintenanceEventRequest",
"AcceleratorConfig",
"ShieldedInstanceConfig",
"BootDiskConfig",
"CustomerEncryptionKey",
},
)

Expand Down Expand Up @@ -400,6 +402,8 @@ class Node(proto.Message):
multislice_node (bool):
Output only. Whether the Node belongs to a
Multislice group.
boot_disk_config (google.cloud.tpu_v2alpha1.types.BootDiskConfig):
Optional. Boot disk configuration.
"""

class State(proto.Enum):
Expand Down Expand Up @@ -611,6 +615,11 @@ class ApiVersion(proto.Enum):
proto.BOOL,
number=47,
)
boot_disk_config: "BootDiskConfig" = proto.Field(
proto.MESSAGE,
number=49,
message="BootDiskConfig",
)


class QueuedResource(proto.Message):
Expand Down Expand Up @@ -1953,4 +1962,66 @@ class ShieldedInstanceConfig(proto.Message):
)


class BootDiskConfig(proto.Message):
r"""Boot disk configurations.
Attributes:
customer_encryption_key (google.cloud.tpu_v2alpha1.types.CustomerEncryptionKey):
Optional. Customer encryption key for boot
disk.
enable_confidential_compute (bool):
Optional. Whether the boot disk will be
created with confidential compute mode.
"""

customer_encryption_key: "CustomerEncryptionKey" = proto.Field(
proto.MESSAGE,
number=1,
message="CustomerEncryptionKey",
)
enable_confidential_compute: bool = proto.Field(
proto.BOOL,
number=2,
)


class CustomerEncryptionKey(proto.Message):
r"""Customer's encryption key.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes:
kms_key_name (str):
The name of the encryption key that is stored in Google
Cloud KMS. For example:
.. raw:: html
<pre class="lang-html">"kmsKeyName": "projects/
<var class="apiparam">kms_project_id</var>/locations/
<var class="apiparam">region</var>/keyRings/<var class="apiparam">
key_region</var>/cryptoKeys/<var class="apiparam">key</var>
</pre>
The fully-qualifed key name may be returned for resource GET
requests. For example:
.. raw:: html
<pre class="lang-html">"kmsKeyName": "projects/
<var class="apiparam">kms_project_id</var>/locations/
<var class="apiparam">region</var>/keyRings/<var class="apiparam">
key_region</var>/cryptoKeys/<var class="apiparam">key</var>
/cryptoKeyVersions/1</pre>
This field is a member of `oneof`_ ``key``.
"""

kms_key_name: str = proto.Field(
proto.STRING,
number=7,
oneof="key",
)


__all__ = tuple(sorted(__protobuf__.manifest))

0 comments on commit 28e099e

Please sign in to comment.