Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

docs: fix typos and docstring formatting #106

Merged
merged 2 commits into from Oct 18, 2021
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
45 changes: 26 additions & 19 deletions google/cloud/notebooks_v1/types/instance.py
Expand Up @@ -301,18 +301,16 @@ class Disk(proto.Message):
disks attached to an instance, each disk would
have a unique index number.
interface (str):
Indicates the disk interface to use for
attaching this disk, which is either SCSI or
NVME. The default is SCSI. Persistent disks must
always use SCSI and the request will fail if you
attempt to attach a persistent disk in any other
format than SCSI. Local SSDs can use either NVME
or SCSI. For performance characteristics of SCSI
over NVMe, see Local SSD performance.
Valid values:
* NVME
* SCSI
Indicates the disk interface to use for attaching this disk,
which is either SCSI or NVME. The default is SCSI.
Persistent disks must always use SCSI and the request will
fail if you attempt to attach a persistent disk in any other
format than SCSI. Local SSDs can use either NVME or SCSI.
For performance characteristics of SCSI over NVMe, see Local
SSD performance. Valid values:
- NVME
- SCSI
kind (str):
Type of the resource. Always
compute#attachedDisk for attached disks.
Expand All @@ -324,16 +322,19 @@ class Disk(proto.Message):
mode (str):
The mode in which to attach this disk, either READ_WRITE or
READ_ONLY. If not specified, the default is to attach the
disk in READ_WRITE mode. Valid values: READ_ONLY READ_WRITE
disk in READ_WRITE mode. Valid values:
- READ_ONLY
- READ_WRITE
source (str):
Indicates a valid partial or full URL to an
existing Persistent Disk resource.
type_ (str):
Indicates the type of the disk, either
SCRATCH or PERSISTENT. Valid values:
Indicates the type of the disk, either SCRATCH or
PERSISTENT. Valid values:
* PERSISTENT
* SCRATCH
- PERSISTENT
- SCRATCH
"""

class GuestOsFeature(proto.Message):
Expand All @@ -343,8 +344,14 @@ class GuestOsFeature(proto.Message):
type_ (str):
The ID of a supported feature. Read Enabling guest operating
system features to see a list of available options. Valid
values: FEATURE_TYPE_UNSPECIFIED MULTI_IP_SUBNET SECURE_BOOT
UEFI_COMPATIBLE VIRTIO_SCSI_MULTIQUEUE WINDOWS
values:
- FEATURE_TYPE_UNSPECIFIED
- MULTI_IP_SUBNET
- SECURE_BOOT
- UEFI_COMPATIBLE
- VIRTIO_SCSI_MULTIQUEUE
- WINDOWS
"""

type_ = proto.Field(proto.STRING, number=1,)
Expand Down
41 changes: 21 additions & 20 deletions google/cloud/notebooks_v1/types/runtime.py
Expand Up @@ -158,7 +158,7 @@ class EncryptionConfig(proto.Message):


class LocalDisk(proto.Message):
r"""An Local attached disk resource.
r"""A Local attached disk resource.
Attributes:
auto_delete (bool):
Expand Down Expand Up @@ -204,18 +204,16 @@ class LocalDisk(proto.Message):
source property; you can only define one or the
other, but not both.
interface (str):
Specifies the disk interface to use for
attaching this disk, which is either SCSI or
NVME. The default is SCSI. Persistent disks must
always use SCSI and the request will fail if you
attempt to attach a persistent disk in any other
format than SCSI. Local SSDs can use either NVME
or SCSI. For performance characteristics of SCSI
over NVMe, see Local SSD performance. Valid
values:
* NVME
* SCSI
Specifies the disk interface to use for attaching this disk,
which is either SCSI or NVME. The default is SCSI.
Persistent disks must always use SCSI and the request will
fail if you attempt to attach a persistent disk in any other
format than SCSI. Local SSDs can use either NVME or SCSI.
For performance characteristics of SCSI over NVMe, see Local
SSD performance. Valid values:
- NVME
- SCSI
kind (str):
Output only. Type of the resource. Always
compute#attachedDisk for attached disks.
Expand All @@ -225,17 +223,20 @@ class LocalDisk(proto.Message):
mode (str):
The mode in which to attach this disk, either READ_WRITE or
READ_ONLY. If not specified, the default is to attach the
disk in READ_WRITE mode. Valid values: READ_ONLY READ_WRITE
disk in READ_WRITE mode. Valid values:
- READ_ONLY
- READ_WRITE
source (str):
Specifies a valid partial or full URL to an
existing Persistent Disk resource.
type_ (str):
Specifies the type of the disk, either
SCRATCH or PERSISTENT. If not specified, the
default is PERSISTENT. Valid values:
Specifies the type of the disk, either SCRATCH or
PERSISTENT. If not specified, the default is PERSISTENT.
Valid values:
* PERSISTENT
* SCRATCH
- PERSISTENT
- SCRATCH
"""

class RuntimeGuestOsFeature(proto.Message):
Expand Down Expand Up @@ -378,7 +379,7 @@ class RuntimeSoftwareConfig(proto.Message):
Runtime will automatically shutdown after
idle_shutdown_time. Default: True
idle_shutdown_timeout (int):
Time in minutes to wait before shuting down
Time in minutes to wait before shutting down
runtime. Default: 180 minutes
install_gpu_driver (bool):
Install Nvidia Driver automatically.
Expand Down