Skip to content

Commit

Permalink
feat: Automated regeneration of Notebooks client (#10982)
Browse files Browse the repository at this point in the history
Auto-created at 2024-03-12 02:47:28 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Mar 12, 2024
1 parent fc91861 commit 2341362
Show file tree
Hide file tree
Showing 33 changed files with 555 additions and 45 deletions.
236 changes: 230 additions & 6 deletions clients/notebooks/lib/google_api/notebooks/v1/api/projects.ex

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion clients/notebooks/lib/google_api/notebooks/v1/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Notebooks.V1 do
API client metadata for GoogleApi.Notebooks.V1.
"""

@discovery_revision "20220927"
@discovery_revision "20240118"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

defmodule GoogleApi.Notebooks.V1.Model.AcceleratorConfig do
@moduledoc """
Definition of a hardware accelerator. Note that not all combinations of `type` and `core_count` are valid. Check [GPUs on Compute Engine](/compute/docs/gpus/#gpus-list) to find a valid combination. TPUs are not supported.
Definition of a hardware accelerator. Note that not all combinations of `type` and `core_count` are valid. See [GPUs on Compute Engine](https://cloud.google.com/compute/docs/gpus/#gpus-list) to find a valid combination. TPUs are not supported.
## Attributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ defmodule GoogleApi.Notebooks.V1.Model.Binding do
## Attributes
* `condition` (*type:* `GoogleApi.Notebooks.V1.Model.Expr.t`, *default:* `nil`) - The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
* `members` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
* `role` (*type:* `String.t`, *default:* `nil`) - Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
* `members` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
* `role` (*type:* `String.t`, *default:* `nil`) - Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,18 @@ defmodule GoogleApi.Notebooks.V1.Model.DiagnoseInstanceRequest do
## Attributes
* `diagnosticConfig` (*type:* `GoogleApi.Notebooks.V1.Model.DiagnosticConfig.t`, *default:* `nil`) - Required. Defines flags that are used to run the diagnostic tool
* `timeoutMinutes` (*type:* `integer()`, *default:* `nil`) - Optional. Maxmium amount of time in minutes before the operation times out.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:diagnosticConfig => GoogleApi.Notebooks.V1.Model.DiagnosticConfig.t() | nil
:diagnosticConfig => GoogleApi.Notebooks.V1.Model.DiagnosticConfig.t() | nil,
:timeoutMinutes => integer() | nil
}

field(:diagnosticConfig, as: GoogleApi.Notebooks.V1.Model.DiagnosticConfig)
field(:timeoutMinutes)
end

defimpl Poison.Decoder, for: GoogleApi.Notebooks.V1.Model.DiagnoseInstanceRequest do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,18 @@ defmodule GoogleApi.Notebooks.V1.Model.DiagnoseRuntimeRequest do
## Attributes
* `diagnosticConfig` (*type:* `GoogleApi.Notebooks.V1.Model.DiagnosticConfig.t`, *default:* `nil`) - Required. Defines flags that are used to run the diagnostic tool
* `timeoutMinutes` (*type:* `integer()`, *default:* `nil`) - Optional. Maxmium amount of time in minutes before the operation times out.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:diagnosticConfig => GoogleApi.Notebooks.V1.Model.DiagnosticConfig.t() | nil
:diagnosticConfig => GoogleApi.Notebooks.V1.Model.DiagnosticConfig.t() | nil,
:timeoutMinutes => integer() | nil
}

field(:diagnosticConfig, as: GoogleApi.Notebooks.V1.Model.DiagnosticConfig)
field(:timeoutMinutes)
end

defimpl Poison.Decoder, for: GoogleApi.Notebooks.V1.Model.DiagnoseRuntimeRequest do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ defmodule GoogleApi.Notebooks.V1.Model.DiagnosticConfig do
## Attributes
* `copyHomeFilesFlagEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Enables flag to copy all `/home/jupyter` folder contents
* `gcsBucket` (*type:* `String.t`, *default:* `nil`) - Required. User Cloud Storage bucket location (REQUIRED) ## Must be formatted with path prefix (gs://$GCS_BUCKET) Permissions: User Managed Notebooks: - storage.buckets.writer: Must be given to the project's service account attached to VM. Google Managed Notebooks: - storage.buckets.writer: Must be given to the project's service account or ## user credentials attached to VM depending on authentication mode. Cloud Storage bucket Log file will be written to gs://$GCS_BUCKET/$RELATIVE_PATH/$VM_DATE_$TIME.tar.gz
* `gcsBucket` (*type:* `String.t`, *default:* `nil`) - Required. User Cloud Storage bucket location (REQUIRED). Must be formatted with path prefix (`gs://$GCS_BUCKET`). Permissions: User Managed Notebooks: - storage.buckets.writer: Must be given to the project's service account attached to VM. Google Managed Notebooks: - storage.buckets.writer: Must be given to the project's service account or user credentials attached to VM depending on authentication mode. Cloud Storage bucket Log file will be written to `gs://$GCS_BUCKET/$RELATIVE_PATH/$VM_DATE_$TIME.tar.gz`
* `packetCaptureFlagEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Enables flag to capture packets from the instance for 30 seconds
* `relativePath` (*type:* `String.t`, *default:* `nil`) - Optional. Defines the relative storage path in the Cloud Storage bucket where the diagnostic logs will be written: Default path will be the root directory of the Cloud Storage bucket (gs://$GCS_BUCKET/$DATE_$TIME.tar.gz) Example of full path where Log file will be written: gs://$GCS_BUCKET/$RELATIVE_PATH/
* `relativePath` (*type:* `String.t`, *default:* `nil`) - Optional. Defines the relative storage path in the Cloud Storage bucket where the diagnostic logs will be written: Default path will be the root directory of the Cloud Storage bucket (`gs://$GCS_BUCKET/$DATE_$TIME.tar.gz`) Example of full path where Log file will be written: `gs://$GCS_BUCKET/$RELATIVE_PATH/`
* `repairFlagEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Enables flag to repair service for instance
"""

Expand Down
8 changes: 4 additions & 4 deletions clients/notebooks/lib/google_api/notebooks/v1/model/disk.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ defmodule GoogleApi.Notebooks.V1.Model.Disk do
* `autoDelete` (*type:* `boolean()`, *default:* `nil`) - Indicates whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
* `boot` (*type:* `boolean()`, *default:* `nil`) - Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
* `deviceName` (*type:* `String.t`, *default:* `nil`) - Indicates a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine.This field is only applicable for persistent disks.
* `deviceName` (*type:* `String.t`, *default:* `nil`) - Indicates a unique device name of your choice that is reflected into the `/dev/disk/by-id/google-*` tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine.This field is only applicable for persistent disks.
* `diskSizeGb` (*type:* `String.t`, *default:* `nil`) - Indicates the size of the disk in base-2 GB.
* `guestOsFeatures` (*type:* `list(GoogleApi.Notebooks.V1.Model.GuestOsFeature.t)`, *default:* `nil`) - Indicates a list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
* `index` (*type:* `String.t`, *default:* `nil`) - A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number.
* `interface` (*type:* `String.t`, *default:* `nil`) - 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
* `interface` (*type:* `String.t`, *default:* `nil`) - 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` (*type:* `String.t`, *default:* `nil`) - Type of the resource. Always compute#attachedDisk for attached disks.
* `licenses` (*type:* `list(String.t)`, *default:* `nil`) - A list of publicly visible licenses. Reserved for Google's use. A License represents billing and aggregate usage data for public and marketplace images.
* `mode` (*type:* `String.t`, *default:* `nil`) - 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
* `mode` (*type:* `String.t`, *default:* `nil`) - 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`
* `source` (*type:* `String.t`, *default:* `nil`) - Indicates a valid partial or full URL to an existing Persistent Disk resource.
* `type` (*type:* `String.t`, *default:* `nil`) - Indicates the type of the disk, either SCRATCH or PERSISTENT. Valid values: * PERSISTENT * SCRATCH
* `type` (*type:* `String.t`, *default:* `nil`) - Indicates the type of the disk, either `SCRATCH` or `PERSISTENT`. Valid values: * `PERSISTENT` * `SCRATCH`
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule GoogleApi.Notebooks.V1.Model.GuestOsFeature do
## Attributes
* `type` (*type:* `String.t`, *default:* `nil`) - 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
* `type` (*type:* `String.t`, *default:* `nil`) - 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`
"""

use GoogleApi.Gax.ModelBase
Expand Down
Loading

0 comments on commit 2341362

Please sign in to comment.