From 23413627a3aa2941d1bbab2e9f9590a925f05d46 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 11 Mar 2024 20:14:21 -0700 Subject: [PATCH] feat: Automated regeneration of Notebooks client (#10982) Auto-created at 2024-03-12 02:47:28 +0000 using the toys pull request generator. --- .../google_api/notebooks/v1/api/projects.ex | 236 +++++++++++++++++- .../lib/google_api/notebooks/v1/metadata.ex | 2 +- .../notebooks/v1/model/accelerator_config.ex | 2 +- .../google_api/notebooks/v1/model/binding.ex | 4 +- .../v1/model/diagnose_instance_request.ex | 5 +- .../v1/model/diagnose_runtime_request.ex | 5 +- .../notebooks/v1/model/diagnostic_config.ex | 4 +- .../lib/google_api/notebooks/v1/model/disk.ex | 8 +- .../notebooks/v1/model/guest_os_feature.ex | 2 +- .../google_api/notebooks/v1/model/instance.ex | 19 +- .../model/instance_migration_eligibility.ex | 49 ++++ .../v1/model/list_instances_response.ex | 2 +- .../v1/model/list_runtimes_response.ex | 2 +- .../notebooks/v1/model/local_disk.ex | 8 +- .../google_api/notebooks/v1/model/location.ex | 2 +- .../v1/model/migrate_instance_request.ex | 46 ++++ .../v1/model/migrate_runtime_request.ex | 58 +++++ .../notebooks/v1/model/operation.ex | 2 +- .../google_api/notebooks/v1/model/policy.ex | 2 +- .../v1/model/report_instance_event_request.ex | 49 ++++ .../v1/model/rollback_instance_request.ex | 2 +- .../google_api/notebooks/v1/model/runtime.ex | 12 + .../v1/model/runtime_accelerator_config.ex | 2 +- .../v1/model/runtime_guest_os_feature.ex | 2 +- .../v1/model/runtime_migration_eligibility.ex | 49 ++++ .../model/runtime_shielded_instance_config.ex | 2 +- .../v1/model/runtime_software_config.ex | 8 +- .../google_api/notebooks/v1/model/schedule.ex | 4 +- .../v1/model/scheduler_accelerator_config.ex | 2 +- .../model/set_instance_accelerator_request.ex | 2 +- .../v1/model/shielded_instance_config.ex | 2 +- .../v1/model/upgrade_history_entry.ex | 2 +- .../v1/model/vertex_ai_parameters.ex | 4 +- 33 files changed, 555 insertions(+), 45 deletions(-) create mode 100644 clients/notebooks/lib/google_api/notebooks/v1/model/instance_migration_eligibility.ex create mode 100644 clients/notebooks/lib/google_api/notebooks/v1/model/migrate_instance_request.ex create mode 100644 clients/notebooks/lib/google_api/notebooks/v1/model/migrate_runtime_request.ex create mode 100644 clients/notebooks/lib/google_api/notebooks/v1/model/report_instance_event_request.ex create mode 100644 clients/notebooks/lib/google_api/notebooks/v1/model/runtime_migration_eligibility.ex diff --git a/clients/notebooks/lib/google_api/notebooks/v1/api/projects.ex b/clients/notebooks/lib/google_api/notebooks/v1/api/projects.ex index 3fa20fff08..77ea0f0c15 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/api/projects.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/api/projects.ex @@ -672,7 +672,7 @@ defmodule GoogleApi.Notebooks.V1.Api.Projects do * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). - * `:filter` (*type:* `String.t`) - Filter applied to resulting executions. Currently only supports filtering executions by a specified schedule_id. Format: `schedule_id=` + * `:filter` (*type:* `String.t`) - Filter applied to resulting executions. Currently only supports filtering executions by a specified `schedule_id`. Format: `schedule_id=` * `:orderBy` (*type:* `String.t`) - Sort by field. * `:pageSize` (*type:* `integer()`) - Maximum return size of the list call. * `:pageToken` (*type:* `String.t`) - A previous returned page token that can be used to continue listing from the last result. @@ -1090,7 +1090,7 @@ defmodule GoogleApi.Notebooks.V1.Api.Projects do end @doc """ - Check if a notebook instance is healthy. + Checks whether a notebook instance is healthy. ## Parameters @@ -1162,7 +1162,7 @@ defmodule GoogleApi.Notebooks.V1.Api.Projects do end @doc """ - Check if a notebook instance is upgradable. + Checks whether a notebook instance is upgradable. ## Parameters @@ -1254,6 +1254,8 @@ defmodule GoogleApi.Notebooks.V1.Api.Projects do * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Optional. List filter. + * `:orderBy` (*type:* `String.t`) - Optional. Sort results. Supported values are "name", "name desc" or "" (unsorted). * `:pageSize` (*type:* `integer()`) - Maximum return size of the list call. * `:pageToken` (*type:* `String.t`) - A previous returned page token that can be used to continue listing from the last result. * `opts` (*type:* `keyword()`) - Call options @@ -1291,6 +1293,8 @@ defmodule GoogleApi.Notebooks.V1.Api.Projects do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, + :filter => :query, + :orderBy => :query, :pageSize => :query, :pageToken => :query } @@ -1309,6 +1313,78 @@ defmodule GoogleApi.Notebooks.V1.Api.Projects do |> Response.decode(opts ++ [struct: %GoogleApi.Notebooks.V1.Model.ListInstancesResponse{}]) end + @doc """ + Migrates an existing User-Managed Notebook to Workbench Instances. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Notebooks.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Notebooks.V1.Model.MigrateInstanceRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Notebooks.V1.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec notebooks_projects_locations_instances_migrate( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Notebooks.V1.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def notebooks_projects_locations_instances_migrate( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+name}:migrate", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.Notebooks.V1.Model.Operation{}]) + end + @doc """ Registers an existing legacy notebook instance to the Notebooks API server. Legacy instances are instances created with the legacy Compute Engine calls. They are not manageable by the Notebooks API out of the box. This call makes these instances manageable by the Notebooks API. @@ -1453,6 +1529,78 @@ defmodule GoogleApi.Notebooks.V1.Api.Projects do |> Response.decode(opts ++ [struct: %GoogleApi.Notebooks.V1.Model.Operation{}]) end + @doc """ + Reports and processes an instance event. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Notebooks.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Notebooks.V1.Model.ReportInstanceEventRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Notebooks.V1.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec notebooks_projects_locations_instances_report_event( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Notebooks.V1.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def notebooks_projects_locations_instances_report_event( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+name}:reportEvent", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.Notebooks.V1.Model.Operation{}]) + end + @doc """ Resets a notebook instance. @@ -2678,7 +2826,7 @@ defmodule GoogleApi.Notebooks.V1.Api.Projects do end @doc """ - Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id. + Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. ## Parameters @@ -3134,6 +3282,8 @@ defmodule GoogleApi.Notebooks.V1.Api.Projects do * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Optional. List filter. + * `:orderBy` (*type:* `String.t`) - Optional. Sort results. Supported values are "name", "name desc" or "" (unsorted). * `:pageSize` (*type:* `integer()`) - Maximum return size of the list call. * `:pageToken` (*type:* `String.t`) - A previous returned page token that can be used to continue listing from the last result. * `opts` (*type:* `keyword()`) - Call options @@ -3171,6 +3321,8 @@ defmodule GoogleApi.Notebooks.V1.Api.Projects do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, + :filter => :query, + :orderBy => :query, :pageSize => :query, :pageToken => :query } @@ -3189,6 +3341,78 @@ defmodule GoogleApi.Notebooks.V1.Api.Projects do |> Response.decode(opts ++ [struct: %GoogleApi.Notebooks.V1.Model.ListRuntimesResponse{}]) end + @doc """ + Migrate an existing Runtime to a new Workbench Instance. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Notebooks.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. Format: `projects/{project_id}/locations/{location}/runtimes/{runtime_id}` + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Notebooks.V1.Model.MigrateRuntimeRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Notebooks.V1.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec notebooks_projects_locations_runtimes_migrate( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Notebooks.V1.Model.Operation.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def notebooks_projects_locations_runtimes_migrate( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+name}:migrate", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.Notebooks.V1.Model.Operation{}]) + end + @doc """ Update Notebook Runtime configuration. @@ -3209,7 +3433,7 @@ defmodule GoogleApi.Notebooks.V1.Api.Projects do * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:requestId` (*type:* `String.t`) - Idempotent request UUID. - * `:updateMask` (*type:* `String.t`) - Required. Specifies the path, relative to `Runtime`, of the field to update. For example, to change the software configuration kernels, the `update_mask` parameter would be specified as `software_config.kernels`, and the `PATCH` request body would specify the new value, as follows: { "software_config":{ "kernels": [{ 'repository': 'gcr.io/deeplearning-platform-release/pytorch-gpu', 'tag': 'latest' }], } } Currently, only the following fields can be updated: - software_config.kernels - software_config.post_startup_script - software_config.custom_gpu_driver_path - software_config.idle_shutdown - software_config.idle_shutdown_timeout - software_config.disable_terminal + * `:updateMask` (*type:* `String.t`) - Required. Specifies the path, relative to `Runtime`, of the field to update. For example, to change the software configuration kernels, the `update_mask` parameter would be specified as `software_config.kernels`, and the `PATCH` request body would specify the new value, as follows: { "software_config":{ "kernels": [{ 'repository': 'gcr.io/deeplearning-platform-release/pytorch-gpu', 'tag': 'latest' }], } } Currently, only the following fields can be updated: - `software_config.kernels` - `software_config.post_startup_script` - `software_config.custom_gpu_driver_path` - `software_config.idle_shutdown` - `software_config.idle_shutdown_timeout` - `software_config.disable_terminal` - `labels` * `:body` (*type:* `GoogleApi.Notebooks.V1.Model.Runtime.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -3340,7 +3564,7 @@ defmodule GoogleApi.Notebooks.V1.Api.Projects do end @doc """ - Report and process a runtime event. + Reports and processes a runtime event. ## Parameters diff --git a/clients/notebooks/lib/google_api/notebooks/v1/metadata.ex b/clients/notebooks/lib/google_api/notebooks/v1/metadata.ex index 74a817d8dc..12df62aad5 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/metadata.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/metadata.ex @@ -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 diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/accelerator_config.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/accelerator_config.ex index f7c0435ccd..50995c2d79 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/accelerator_config.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/accelerator_config.ex @@ -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 diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/binding.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/binding.ex index fba1b6cfad..1814a1924c 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/binding.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/binding.ex @@ -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, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `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, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?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, `my-other-app@appspot.gserviceaccount.com?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, `admins@example.com?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, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `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, `admins@example.com`. * `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, `alice@example.com?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, `my-other-app@appspot.gserviceaccount.com?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, `admins@example.com?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 diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/diagnose_instance_request.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/diagnose_instance_request.ex index 74e4153c36..2a7bb6fa03 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/diagnose_instance_request.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/diagnose_instance_request.ex @@ -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 diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/diagnose_runtime_request.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/diagnose_runtime_request.ex index 91fd9dd4fd..5a4e250793 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/diagnose_runtime_request.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/diagnose_runtime_request.ex @@ -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 diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/diagnostic_config.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/diagnostic_config.ex index 103b46ba3f..6c5883438a 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/diagnostic_config.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/diagnostic_config.ex @@ -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 """ diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/disk.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/disk.ex index 8bd436a1c2..05eec749c7 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/disk.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/disk.ex @@ -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 diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/guest_os_feature.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/guest_os_feature.ex index 46e64ac301..48cafdc4dc 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/guest_os_feature.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/guest_os_feature.ex @@ -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 diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/instance.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/instance.ex index 19ac1b129b..2b765d2fd5 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/instance.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/instance.ex @@ -21,18 +21,18 @@ defmodule GoogleApi.Notebooks.V1.Model.Instance do ## Attributes - * `machineType` (*type:* `String.t`, *default:* `nil`) - Required. The [Compute Engine machine type](/compute/docs/machine-types) of this instance. + * `machineType` (*type:* `String.t`, *default:* `nil`) - Required. The [Compute Engine machine type](https://cloud.google.com/compute/docs/machine-types) of this instance. * `tags` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The Compute Engine tags to add to runtime (see [Tagging instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)). * `customGpuDriverPath` (*type:* `String.t`, *default:* `nil`) - Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers. * `containerImage` (*type:* `GoogleApi.Notebooks.V1.Model.ContainerImage.t`, *default:* `nil`) - Use a container image to start the notebook instance. - * `acceleratorConfig` (*type:* `GoogleApi.Notebooks.V1.Model.AcceleratorConfig.t`, *default:* `nil`) - The hardware accelerator used on this instance. If you use accelerators, make sure that your configuration has [enough vCPUs and memory to support the `machine_type` you have selected](/compute/docs/gpus/#gpus-list). + * `acceleratorConfig` (*type:* `GoogleApi.Notebooks.V1.Model.AcceleratorConfig.t`, *default:* `nil`) - The hardware accelerator used on this instance. If you use accelerators, make sure that your configuration has [enough vCPUs and memory to support the `machine_type` you have selected](https://cloud.google.com/compute/docs/gpus/#gpus-list). * `noProxyAccess` (*type:* `boolean()`, *default:* `nil`) - If true, the notebook instance will not register with the proxy. * `postStartupScript` (*type:* `String.t`, *default:* `nil`) - Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (`gs://path-to-file/file-name`). - * `noPublicIp` (*type:* `boolean()`, *default:* `nil`) - If true, no public IP will be assigned to this instance. + * `noPublicIp` (*type:* `boolean()`, *default:* `nil`) - If true, no external IP will be assigned to this instance. * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Instance update time. * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Instance creation time. * `dataDiskSizeGb` (*type:* `String.t`, *default:* `nil`) - Input only. The size of the data disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). You can choose the size of the data disk based on how big your notebooks and data are. If not specified, this defaults to 100. - * `metadata` (*type:* `map()`, *default:* `nil`) - Custom metadata to apply to this instance. + * `metadata` (*type:* `map()`, *default:* `nil`) - Custom metadata to apply to this instance. For example, to specify a Cloud Storage bucket for automatic backup, you can use the `gcs-data-bucket` metadata tag. Format: `"--metadata=gcs-data-bucket=``BUCKET''"`. * `shieldedInstanceConfig` (*type:* `GoogleApi.Notebooks.V1.Model.ShieldedInstanceConfig.t`, *default:* `nil`) - Optional. Shielded VM configuration. [Images using supported Shielded VM features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm). * `diskEncryption` (*type:* `String.t`, *default:* `nil`) - Input only. Disk encryption method used on the boot and data disks, defaults to GMEK. * `creator` (*type:* `String.t`, *default:* `nil`) - Output only. Email address of entity that sent original CreateInstance request. @@ -41,11 +41,13 @@ defmodule GoogleApi.Notebooks.V1.Model.Instance do * `network` (*type:* `String.t`, *default:* `nil`) - The name of the VPC that this instance is in. Format: `projects/{project_id}/global/networks/{network_id}` * `disks` (*type:* `list(GoogleApi.Notebooks.V1.Model.Disk.t)`, *default:* `nil`) - Output only. Attached disks to notebook instance. * `bootDiskType` (*type:* `String.t`, *default:* `nil`) - Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`). + * `instanceMigrationEligibility` (*type:* `GoogleApi.Notebooks.V1.Model.InstanceMigrationEligibility.t`, *default:* `nil`) - Output only. Checks how feasible a migration from UmN to WbI is. * `subnet` (*type:* `String.t`, *default:* `nil`) - The name of the subnet that this instance is in. Format: `projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}` * `kmsKey` (*type:* `String.t`, *default:* `nil`) - Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption is CMEK. Format: `projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}` Learn more about [using your own encryption keys](/kms/docs/quickstart). * `installGpuDriver` (*type:* `boolean()`, *default:* `nil`) - Whether the end user authorizes Google Cloud to install GPU driver on this instance. If this field is empty or set to false, the GPU driver won't be installed. Only applicable to instances with GPUs. * `upgradeHistory` (*type:* `list(GoogleApi.Notebooks.V1.Model.UpgradeHistoryEntry.t)`, *default:* `nil`) - The upgrade history of this instance. * `serviceAccountScopes` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The URIs of service account scopes to be included in Compute Engine instances. If not specified, the following [scopes](https://cloud.google.com/compute/docs/access/service-accounts#accesscopesiam) are defined: - https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/userinfo.email If not using default scopes, you need at least: https://www.googleapis.com/auth/compute + * `migrated` (*type:* `boolean()`, *default:* `nil`) - Output only. Bool indicating whether this notebook has been migrated to a Workbench Instance * `serviceAccount` (*type:* `String.t`, *default:* `nil`) - The service account on this instance, giving access to other Google Cloud services. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the [Compute Engine default service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used. * `proxyUri` (*type:* `String.t`, *default:* `nil`) - Output only. The proxy endpoint that is used to access the Jupyter notebook. * `vmImage` (*type:* `GoogleApi.Notebooks.V1.Model.VmImage.t`, *default:* `nil`) - Use a Compute Engine VM image to start the notebook instance. @@ -83,11 +85,14 @@ defmodule GoogleApi.Notebooks.V1.Model.Instance do :network => String.t() | nil, :disks => list(GoogleApi.Notebooks.V1.Model.Disk.t()) | nil, :bootDiskType => String.t() | nil, + :instanceMigrationEligibility => + GoogleApi.Notebooks.V1.Model.InstanceMigrationEligibility.t() | nil, :subnet => String.t() | nil, :kmsKey => String.t() | nil, :installGpuDriver => boolean() | nil, :upgradeHistory => list(GoogleApi.Notebooks.V1.Model.UpgradeHistoryEntry.t()) | nil, :serviceAccountScopes => list(String.t()) | nil, + :migrated => boolean() | nil, :serviceAccount => String.t() | nil, :proxyUri => String.t() | nil, :vmImage => GoogleApi.Notebooks.V1.Model.VmImage.t() | nil, @@ -121,11 +126,17 @@ defmodule GoogleApi.Notebooks.V1.Model.Instance do field(:network) field(:disks, as: GoogleApi.Notebooks.V1.Model.Disk, type: :list) field(:bootDiskType) + + field(:instanceMigrationEligibility, + as: GoogleApi.Notebooks.V1.Model.InstanceMigrationEligibility + ) + field(:subnet) field(:kmsKey) field(:installGpuDriver) field(:upgradeHistory, as: GoogleApi.Notebooks.V1.Model.UpgradeHistoryEntry, type: :list) field(:serviceAccountScopes, type: :list) + field(:migrated) field(:serviceAccount) field(:proxyUri) field(:vmImage, as: GoogleApi.Notebooks.V1.Model.VmImage) diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/instance_migration_eligibility.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/instance_migration_eligibility.ex new file mode 100644 index 0000000000..81e980c452 --- /dev/null +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/instance_migration_eligibility.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Notebooks.V1.Model.InstanceMigrationEligibility do + @moduledoc """ + InstanceMigrationEligibility represents the feasibility information of a migration from UmN to WbI. + + ## Attributes + + * `errors` (*type:* `list(String.t)`, *default:* `nil`) - Output only. Certain configurations make the UmN ineligible for an automatic migration. A manual migration is required. + * `warnings` (*type:* `list(String.t)`, *default:* `nil`) - Output only. Certain configurations will be defaulted during the migration. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :errors => list(String.t()) | nil, + :warnings => list(String.t()) | nil + } + + field(:errors, type: :list) + field(:warnings, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Notebooks.V1.Model.InstanceMigrationEligibility do + def decode(value, options) do + GoogleApi.Notebooks.V1.Model.InstanceMigrationEligibility.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Notebooks.V1.Model.InstanceMigrationEligibility do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/list_instances_response.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/list_instances_response.ex index 3324097359..40d59a5d55 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/list_instances_response.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/list_instances_response.ex @@ -23,7 +23,7 @@ defmodule GoogleApi.Notebooks.V1.Model.ListInstancesResponse do * `instances` (*type:* `list(GoogleApi.Notebooks.V1.Model.Instance.t)`, *default:* `nil`) - A list of returned instances. * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Page token that can be used to continue listing from the last result in the next list call. - * `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - Locations that could not be reached. For example, ['us-west1-a', 'us-central1-b']. A ListInstancesResponse will only contain either instances or unreachables, + * `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - Locations that could not be reached. For example, `['us-west1-a', 'us-central1-b']`. A ListInstancesResponse will only contain either instances or unreachables, """ use GoogleApi.Gax.ModelBase diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/list_runtimes_response.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/list_runtimes_response.ex index 4d4a49217b..ae49b93037 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/list_runtimes_response.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/list_runtimes_response.ex @@ -23,7 +23,7 @@ defmodule GoogleApi.Notebooks.V1.Model.ListRuntimesResponse do * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Page token that can be used to continue listing from the last result in the next list call. * `runtimes` (*type:* `list(GoogleApi.Notebooks.V1.Model.Runtime.t)`, *default:* `nil`) - A list of returned Runtimes. - * `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - Locations that could not be reached. For example, ['us-west1', 'us-central1']. A ListRuntimesResponse will only contain either runtimes or unreachables, + * `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - Locations that could not be reached. For example, `['us-west1', 'us-central1']`. A ListRuntimesResponse will only contain either runtimes or unreachables, """ use GoogleApi.Gax.ModelBase diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/local_disk.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/local_disk.ex index a98344e542..e75ae469b6 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/local_disk.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/local_disk.ex @@ -23,16 +23,16 @@ defmodule GoogleApi.Notebooks.V1.Model.LocalDisk do * `autoDelete` (*type:* `boolean()`, *default:* `nil`) - Optional. Output only. Specifies 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`) - Optional. Output only. 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`) - Optional. Output only. Specifies 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`) - Optional. Output only. Specifies 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. * `guestOsFeatures` (*type:* `list(GoogleApi.Notebooks.V1.Model.RuntimeGuestOsFeature.t)`, *default:* `nil`) - Output only. 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:* `integer()`, *default:* `nil`) - Output only. 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. * `initializeParams` (*type:* `GoogleApi.Notebooks.V1.Model.LocalDiskInitializeParams.t`, *default:* `nil`) - Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both. - * `interface` (*type:* `String.t`, *default:* `nil`) - 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 + * `interface` (*type:* `String.t`, *default:* `nil`) - 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` (*type:* `String.t`, *default:* `nil`) - Output only. Type of the resource. Always compute#attachedDisk for attached disks. * `licenses` (*type:* `list(String.t)`, *default:* `nil`) - Output only. Any valid publicly visible licenses. - * `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`) - Specifies a valid partial or full URL to an existing Persistent Disk resource. - * `type` (*type:* `String.t`, *default:* `nil`) - Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. Valid values: * PERSISTENT * SCRATCH + * `type` (*type:* `String.t`, *default:* `nil`) - Specifies the type of the disk, either `SCRATCH` or `PERSISTENT`. If not specified, the default is `PERSISTENT`. Valid values: * `PERSISTENT` * `SCRATCH` """ use GoogleApi.Gax.ModelBase diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/location.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/location.ex index 1737406973..9e4363543d 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/location.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/location.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Notebooks.V1.Model.Location do @moduledoc """ - A resource that represents Google Cloud Platform location. + A resource that represents a Google Cloud location. ## Attributes diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/migrate_instance_request.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/migrate_instance_request.ex new file mode 100644 index 0000000000..a6b3576009 --- /dev/null +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/migrate_instance_request.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Notebooks.V1.Model.MigrateInstanceRequest do + @moduledoc """ + Request for migrating a User-Managed Notebook to Workbench Instances. + + ## Attributes + + * `postStartupScriptOption` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies the behavior of post startup script during migration. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :postStartupScriptOption => String.t() | nil + } + + field(:postStartupScriptOption) +end + +defimpl Poison.Decoder, for: GoogleApi.Notebooks.V1.Model.MigrateInstanceRequest do + def decode(value, options) do + GoogleApi.Notebooks.V1.Model.MigrateInstanceRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Notebooks.V1.Model.MigrateInstanceRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/migrate_runtime_request.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/migrate_runtime_request.ex new file mode 100644 index 0000000000..807f95c05c --- /dev/null +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/migrate_runtime_request.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Notebooks.V1.Model.MigrateRuntimeRequest do + @moduledoc """ + Request for migrating a Runtime to a Workbench Instance. + + ## Attributes + + * `network` (*type:* `String.t`, *default:* `nil`) - Optional. Name of the VPC that the new Instance is in. This is required if the Runtime uses google-managed network. If the Runtime uses customer-owned network, it will reuse the same VPC, and this field must be empty. Format: `projects/{project_id}/global/networks/{network_id}` + * `postStartupScriptOption` (*type:* `String.t`, *default:* `nil`) - Optional. Specifies the behavior of post startup script during migration. + * `requestId` (*type:* `String.t`, *default:* `nil`) - Optional. Idempotent request UUID. + * `serviceAccount` (*type:* `String.t`, *default:* `nil`) - Optional. The service account to be included in the Compute Engine instance of the new Workbench Instance when the Runtime uses "single user only" mode for permission. If not specified, the [Compute Engine default service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used. When the Runtime uses service account mode for permission, it will reuse the same service account, and this field must be empty. + * `subnet` (*type:* `String.t`, *default:* `nil`) - Optional. Name of the subnet that the new Instance is in. This is required if the Runtime uses google-managed network. If the Runtime uses customer-owned network, it will reuse the same subnet, and this field must be empty. Format: `projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :network => String.t() | nil, + :postStartupScriptOption => String.t() | nil, + :requestId => String.t() | nil, + :serviceAccount => String.t() | nil, + :subnet => String.t() | nil + } + + field(:network) + field(:postStartupScriptOption) + field(:requestId) + field(:serviceAccount) + field(:subnet) +end + +defimpl Poison.Decoder, for: GoogleApi.Notebooks.V1.Model.MigrateRuntimeRequest do + def decode(value, options) do + GoogleApi.Notebooks.V1.Model.MigrateRuntimeRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Notebooks.V1.Model.MigrateRuntimeRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/operation.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/operation.ex index e6dd2bfe46..fef74707f8 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/operation.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/operation.ex @@ -25,7 +25,7 @@ defmodule GoogleApi.Notebooks.V1.Model.Operation do * `error` (*type:* `GoogleApi.Notebooks.V1.Model.Status.t`, *default:* `nil`) - The error result of the operation in case of failure or cancellation. * `metadata` (*type:* `map()`, *default:* `nil`) - Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. * `name` (*type:* `String.t`, *default:* `nil`) - The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. - * `response` (*type:* `map()`, *default:* `nil`) - The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + * `response` (*type:* `map()`, *default:* `nil`) - The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. """ use GoogleApi.Gax.ModelBase diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/policy.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/policy.ex index 978a7ec003..bb1d48ba8a 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/policy.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/policy.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Notebooks.V1.Model.Policy do @moduledoc """ - An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). ## Attributes diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/report_instance_event_request.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/report_instance_event_request.ex new file mode 100644 index 0000000000..10c5a1c7db --- /dev/null +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/report_instance_event_request.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Notebooks.V1.Model.ReportInstanceEventRequest do + @moduledoc """ + Request for reporting a Managed Notebook Event. + + ## Attributes + + * `event` (*type:* `GoogleApi.Notebooks.V1.Model.Event.t`, *default:* `nil`) - Required. The Event to be reported. + * `vmId` (*type:* `String.t`, *default:* `nil`) - Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :event => GoogleApi.Notebooks.V1.Model.Event.t() | nil, + :vmId => String.t() | nil + } + + field(:event, as: GoogleApi.Notebooks.V1.Model.Event) + field(:vmId) +end + +defimpl Poison.Decoder, for: GoogleApi.Notebooks.V1.Model.ReportInstanceEventRequest do + def decode(value, options) do + GoogleApi.Notebooks.V1.Model.ReportInstanceEventRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Notebooks.V1.Model.ReportInstanceEventRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/rollback_instance_request.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/rollback_instance_request.ex index ab18e31525..69ddd61bf2 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/rollback_instance_request.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/rollback_instance_request.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Notebooks.V1.Model.RollbackInstanceRequest do ## Attributes - * `targetSnapshot` (*type:* `String.t`, *default:* `nil`) - Required. The snapshot for rollback. Example: "projects/test-project/global/snapshots/krwlzipynril". + * `targetSnapshot` (*type:* `String.t`, *default:* `nil`) - Required. The snapshot for rollback. Example: `projects/test-project/global/snapshots/krwlzipynril`. """ use GoogleApi.Gax.ModelBase diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/runtime.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/runtime.ex index d1c48c0ea1..7671591151 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/runtime.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/runtime.ex @@ -24,8 +24,11 @@ defmodule GoogleApi.Notebooks.V1.Model.Runtime do * `accessConfig` (*type:* `GoogleApi.Notebooks.V1.Model.RuntimeAccessConfig.t`, *default:* `nil`) - The config settings for accessing runtime. * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Runtime creation time. * `healthState` (*type:* `String.t`, *default:* `nil`) - Output only. Runtime health_state. + * `labels` (*type:* `map()`, *default:* `nil`) - Optional. The labels to associate with this Managed Notebook or Runtime. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster. * `metrics` (*type:* `GoogleApi.Notebooks.V1.Model.RuntimeMetrics.t`, *default:* `nil`) - Output only. Contains Runtime daemon metrics such as Service status and JupyterLab stats. + * `migrated` (*type:* `boolean()`, *default:* `nil`) - Output only. Bool indicating whether this notebook has been migrated to a Workbench Instance * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the runtime. Format: `projects/{project}/locations/{location}/runtimes/{runtimeId}` + * `runtimeMigrationEligibility` (*type:* `GoogleApi.Notebooks.V1.Model.RuntimeMigrationEligibility.t`, *default:* `nil`) - Output only. Checks how feasible a migration from GmN to WbI is. * `softwareConfig` (*type:* `GoogleApi.Notebooks.V1.Model.RuntimeSoftwareConfig.t`, *default:* `nil`) - The config settings for software inside the runtime. * `state` (*type:* `String.t`, *default:* `nil`) - Output only. Runtime state. * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Runtime update time. @@ -38,8 +41,12 @@ defmodule GoogleApi.Notebooks.V1.Model.Runtime do :accessConfig => GoogleApi.Notebooks.V1.Model.RuntimeAccessConfig.t() | nil, :createTime => DateTime.t() | nil, :healthState => String.t() | nil, + :labels => map() | nil, :metrics => GoogleApi.Notebooks.V1.Model.RuntimeMetrics.t() | nil, + :migrated => boolean() | nil, :name => String.t() | nil, + :runtimeMigrationEligibility => + GoogleApi.Notebooks.V1.Model.RuntimeMigrationEligibility.t() | nil, :softwareConfig => GoogleApi.Notebooks.V1.Model.RuntimeSoftwareConfig.t() | nil, :state => String.t() | nil, :updateTime => DateTime.t() | nil, @@ -49,8 +56,13 @@ defmodule GoogleApi.Notebooks.V1.Model.Runtime do field(:accessConfig, as: GoogleApi.Notebooks.V1.Model.RuntimeAccessConfig) field(:createTime, as: DateTime) field(:healthState) + field(:labels, type: :map) field(:metrics, as: GoogleApi.Notebooks.V1.Model.RuntimeMetrics) + field(:migrated) field(:name) + + field(:runtimeMigrationEligibility, as: GoogleApi.Notebooks.V1.Model.RuntimeMigrationEligibility) + field(:softwareConfig, as: GoogleApi.Notebooks.V1.Model.RuntimeSoftwareConfig) field(:state) field(:updateTime, as: DateTime) diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/runtime_accelerator_config.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/runtime_accelerator_config.ex index bcf0343a0d..5602292836 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/runtime_accelerator_config.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/runtime_accelerator_config.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Notebooks.V1.Model.RuntimeAcceleratorConfig do @moduledoc """ - Definition of the types of hardware accelerators that can be used. Definition of the types of hardware accelerators that can be used. See [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes). Examples: * `nvidia-tesla-k80` * `nvidia-tesla-p100` * `nvidia-tesla-v100` * `nvidia-tesla-p4` * `nvidia-tesla-t4` * `nvidia-tesla-a100` + Definition of the types of hardware accelerators that can be used. See [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes). Examples: * `nvidia-tesla-k80` * `nvidia-tesla-p100` * `nvidia-tesla-v100` * `nvidia-tesla-p4` * `nvidia-tesla-t4` * `nvidia-tesla-a100` ## Attributes diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/runtime_guest_os_feature.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/runtime_guest_os_feature.ex index aee2e4527e..8b11855828 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/runtime_guest_os_feature.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/runtime_guest_os_feature.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Notebooks.V1.Model.RuntimeGuestOsFeature do ## Attributes - * `type` (*type:* `String.t`, *default:* `nil`) - The ID of a supported feature. Read [Enabling guest operating system features](https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#guest-os-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](https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#guest-os-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 diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/runtime_migration_eligibility.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/runtime_migration_eligibility.ex new file mode 100644 index 0000000000..6e4a1883cc --- /dev/null +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/runtime_migration_eligibility.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Notebooks.V1.Model.RuntimeMigrationEligibility do + @moduledoc """ + RuntimeMigrationEligibility represents the feasibility information of a migration from GmN to WbI. + + ## Attributes + + * `errors` (*type:* `list(String.t)`, *default:* `nil`) - Output only. Certain configurations make the GmN ineligible for an automatic migration. A manual migration is required. + * `warnings` (*type:* `list(String.t)`, *default:* `nil`) - Output only. Certain configurations will be defaulted during the migration. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :errors => list(String.t()) | nil, + :warnings => list(String.t()) | nil + } + + field(:errors, type: :list) + field(:warnings, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Notebooks.V1.Model.RuntimeMigrationEligibility do + def decode(value, options) do + GoogleApi.Notebooks.V1.Model.RuntimeMigrationEligibility.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Notebooks.V1.Model.RuntimeMigrationEligibility do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/runtime_shielded_instance_config.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/runtime_shielded_instance_config.ex index 4e3c93782f..d938baa79e 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/runtime_shielded_instance_config.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/runtime_shielded_instance_config.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Notebooks.V1.Model.RuntimeShieldedInstanceConfig do @moduledoc """ - A set of Shielded Instance options. Check [Images using supported Shielded VM features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm). Not all combinations are valid. + A set of Shielded Instance options. See [Images using supported Shielded VM features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm). Not all combinations are valid. ## Attributes diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/runtime_software_config.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/runtime_software_config.ex index b671af1415..5cfc08f3fc 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/runtime_software_config.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/runtime_software_config.ex @@ -28,10 +28,12 @@ defmodule GoogleApi.Notebooks.V1.Model.RuntimeSoftwareConfig do * `idleShutdownTimeout` (*type:* `integer()`, *default:* `nil`) - Time in minutes to wait before shutting down runtime. Default: 180 minutes * `installGpuDriver` (*type:* `boolean()`, *default:* `nil`) - Install Nvidia Driver automatically. Default: True * `kernels` (*type:* `list(GoogleApi.Notebooks.V1.Model.ContainerImage.t)`, *default:* `nil`) - Optional. Use a list of container images to use as Kernels in the notebook instance. + * `mixerDisabled` (*type:* `boolean()`, *default:* `nil`) - Bool indicating whether mixer client should be disabled. Default: False * `notebookUpgradeSchedule` (*type:* `String.t`, *default:* `nil`) - Cron expression in UTC timezone, used to schedule instance auto upgrade. Please follow the [cron format](https://en.wikipedia.org/wiki/Cron). * `postStartupScript` (*type:* `String.t`, *default:* `nil`) - Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (`gs://path-to-file/file-name`). * `postStartupScriptBehavior` (*type:* `String.t`, *default:* `nil`) - Behavior for the post startup script. * `upgradeable` (*type:* `boolean()`, *default:* `nil`) - Output only. Bool indicating whether an newer image is available in an image family. + * `version` (*type:* `String.t`, *default:* `nil`) - Output only. version of boot image such as M100, from release label of the image. """ use GoogleApi.Gax.ModelBase @@ -44,10 +46,12 @@ defmodule GoogleApi.Notebooks.V1.Model.RuntimeSoftwareConfig do :idleShutdownTimeout => integer() | nil, :installGpuDriver => boolean() | nil, :kernels => list(GoogleApi.Notebooks.V1.Model.ContainerImage.t()) | nil, + :mixerDisabled => boolean() | nil, :notebookUpgradeSchedule => String.t() | nil, :postStartupScript => String.t() | nil, :postStartupScriptBehavior => String.t() | nil, - :upgradeable => boolean() | nil + :upgradeable => boolean() | nil, + :version => String.t() | nil } field(:customGpuDriverPath) @@ -57,10 +61,12 @@ defmodule GoogleApi.Notebooks.V1.Model.RuntimeSoftwareConfig do field(:idleShutdownTimeout) field(:installGpuDriver) field(:kernels, as: GoogleApi.Notebooks.V1.Model.ContainerImage, type: :list) + field(:mixerDisabled) field(:notebookUpgradeSchedule) field(:postStartupScript) field(:postStartupScriptBehavior) field(:upgradeable) + field(:version) end defimpl Poison.Decoder, for: GoogleApi.Notebooks.V1.Model.RuntimeSoftwareConfig do diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/schedule.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/schedule.ex index 5869ada6af..71305beef9 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/schedule.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/schedule.ex @@ -22,9 +22,9 @@ defmodule GoogleApi.Notebooks.V1.Model.Schedule do ## Attributes * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time the schedule was created. - * `cronSchedule` (*type:* `String.t`, *default:* `nil`) - Cron-tab formatted schedule by which the job will execute. Format: minute, hour, day of month, month, day of week, e.g. 0 0 * * WED = every Wednesday More examples: https://crontab.guru/examples.html + * `cronSchedule` (*type:* `String.t`, *default:* `nil`) - Cron-tab formatted schedule by which the job will execute. Format: minute, hour, day of month, month, day of week, e.g. `0 0 * * WED` = every Wednesday More examples: https://crontab.guru/examples.html * `description` (*type:* `String.t`, *default:* `nil`) - A brief description of this environment. - * `displayName` (*type:* `String.t`, *default:* `nil`) - Output only. Display name used for UI purposes. Name can only contain alphanumeric characters, hyphens '-', and underscores '_'. + * `displayName` (*type:* `String.t`, *default:* `nil`) - Output only. Display name used for UI purposes. Name can only contain alphanumeric characters, hyphens `-`, and underscores `_`. * `executionTemplate` (*type:* `GoogleApi.Notebooks.V1.Model.ExecutionTemplate.t`, *default:* `nil`) - Notebook Execution Template corresponding to this schedule. * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The name of this schedule. Format: `projects/{project_id}/locations/{location}/schedules/{schedule_id}` * `recentExecutions` (*type:* `list(GoogleApi.Notebooks.V1.Model.Execution.t)`, *default:* `nil`) - Output only. The most recent execution names triggered from this schedule and their corresponding states. diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/scheduler_accelerator_config.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/scheduler_accelerator_config.ex index 4f6a2e3dad..802c12d74d 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/scheduler_accelerator_config.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/scheduler_accelerator_config.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Notebooks.V1.Model.SchedulerAcceleratorConfig do @moduledoc """ - Definition of a hardware accelerator. Note that not all combinations of `type` and `core_count` are valid. Check [GPUs on Compute Engine](https://cloud.google.com/compute/docs/gpus) 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) to find a valid combination. TPUs are not supported. ## Attributes diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/set_instance_accelerator_request.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/set_instance_accelerator_request.ex index 8816393ced..5d2f1c5932 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/set_instance_accelerator_request.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/set_instance_accelerator_request.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Notebooks.V1.Model.SetInstanceAcceleratorRequest do ## Attributes - * `coreCount` (*type:* `String.t`, *default:* `nil`) - Required. Count of cores of this accelerator. Note that not all combinations of `type` and `core_count` are valid. Check [GPUs on Compute Engine](https://cloud.google.com/compute/docs/gpus/#gpus-list) to find a valid combination. TPUs are not supported. + * `coreCount` (*type:* `String.t`, *default:* `nil`) - Required. Count of cores of this 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. * `type` (*type:* `String.t`, *default:* `nil`) - Required. Type of this accelerator. """ diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/shielded_instance_config.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/shielded_instance_config.ex index dc8ca70624..afadd8f9c6 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/shielded_instance_config.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/shielded_instance_config.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Notebooks.V1.Model.ShieldedInstanceConfig do @moduledoc """ - A set of Shielded Instance options. Check [Images using supported Shielded VM features] Not all combinations are valid. + A set of Shielded Instance options. See [Images using supported Shielded VM features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm). Not all combinations are valid. ## Attributes diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/upgrade_history_entry.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/upgrade_history_entry.ex index 45802aa989..f9b3b1b526 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/upgrade_history_entry.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/upgrade_history_entry.ex @@ -27,7 +27,7 @@ defmodule GoogleApi.Notebooks.V1.Model.UpgradeHistoryEntry do * `framework` (*type:* `String.t`, *default:* `nil`) - The framework of this notebook instance. * `snapshot` (*type:* `String.t`, *default:* `nil`) - The snapshot of the boot disk of this notebook instance before upgrade. * `state` (*type:* `String.t`, *default:* `nil`) - The state of this instance upgrade history entry. - * `targetImage` (*type:* `String.t`, *default:* `nil`) - Target VM Image. Format: ainotebooks-vm/project/image-name/name. + * `targetImage` (*type:* `String.t`, *default:* `nil`) - Target VM Image. Format: `ainotebooks-vm/project/image-name/name`. * `targetVersion` (*type:* `String.t`, *default:* `nil`) - Target VM Version, like m63. * `version` (*type:* `String.t`, *default:* `nil`) - The version of the notebook instance before this upgrade. * `vmImage` (*type:* `String.t`, *default:* `nil`) - The VM image before this instance upgrade. diff --git a/clients/notebooks/lib/google_api/notebooks/v1/model/vertex_ai_parameters.ex b/clients/notebooks/lib/google_api/notebooks/v1/model/vertex_ai_parameters.ex index a3df3e57e3..df3de4e244 100644 --- a/clients/notebooks/lib/google_api/notebooks/v1/model/vertex_ai_parameters.ex +++ b/clients/notebooks/lib/google_api/notebooks/v1/model/vertex_ai_parameters.ex @@ -21,8 +21,8 @@ defmodule GoogleApi.Notebooks.V1.Model.VertexAIParameters do ## Attributes - * `env` (*type:* `map()`, *default:* `nil`) - Environment variables. At most 100 environment variables can be specified and unique. Example: GCP_BUCKET=gs://my-bucket/samples/ - * `network` (*type:* `String.t`, *default:* `nil`) - The full name of the Compute Engine [network](/compute/docs/networks-and-firewalls#networks) to which the Job should be peered. For example, `projects/12345/global/networks/myVPC`. [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert) is of the form `projects/{project}/global/networks/{network}`. Where {project} is a project number, as in `12345`, and {network} is a network name. Private services access must already be configured for the network. If left unspecified, the job is not peered with any network. + * `env` (*type:* `map()`, *default:* `nil`) - Environment variables. At most 100 environment variables can be specified and unique. Example: `GCP_BUCKET=gs://my-bucket/samples/` + * `network` (*type:* `String.t`, *default:* `nil`) - The full name of the Compute Engine [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the Job should be peered. For example, `projects/12345/global/networks/myVPC`. [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert) is of the form `projects/{project}/global/networks/{network}`. Where `{project}` is a project number, as in `12345`, and `{network}` is a network name. Private services access must already be configured for the network. If left unspecified, the job is not peered with any network. """ use GoogleApi.Gax.ModelBase