Skip to content

Commit 2a7c94d

Browse files
feat: Automated regeneration of Notebooks client (#13250)
Auto-created at 2025-03-27 13:23:41 +0000 using the toys pull request generator.
1 parent 47e500c commit 2a7c94d

File tree

3 files changed

+54
-1
lines changed

3 files changed

+54
-1
lines changed

clients/notebooks/lib/google_api/notebooks/v2/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.Notebooks.V2 do
2020
API client metadata for GoogleApi.Notebooks.V2.
2121
"""
2222

23-
@discovery_revision "20250224"
23+
@discovery_revision "20250319"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Notebooks.V2.Model.ConfidentialInstanceConfig do
19+
@moduledoc """
20+
A set of Confidential Instance options.
21+
22+
## Attributes
23+
24+
* `confidentialInstanceType` (*type:* `String.t`, *default:* `nil`) - Optional. Defines the type of technology used by the confidential instance.
25+
* `enableConfidentialCompute` (*type:* `boolean()`, *default:* `nil`) - Optional. Defines whether the instance should have confidential compute enabled.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:confidentialInstanceType => String.t() | nil,
32+
:enableConfidentialCompute => boolean() | nil
33+
}
34+
35+
field(:confidentialInstanceType)
36+
field(:enableConfidentialCompute)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.Notebooks.V2.Model.ConfidentialInstanceConfig do
40+
def decode(value, options) do
41+
GoogleApi.Notebooks.V2.Model.ConfidentialInstanceConfig.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.Notebooks.V2.Model.ConfidentialInstanceConfig do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end

clients/notebooks/lib/google_api/notebooks/v2/model/gce_setup.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.Notebooks.V2.Model.GceSetup do
2323
2424
* `acceleratorConfigs` (*type:* `list(GoogleApi.Notebooks.V2.Model.AcceleratorConfig.t)`, *default:* `nil`) - Optional. The hardware accelerators 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). Currently supports only one accelerator configuration.
2525
* `bootDisk` (*type:* `GoogleApi.Notebooks.V2.Model.BootDisk.t`, *default:* `nil`) - Optional. The boot disk for the VM.
26+
* `confidentialInstanceConfig` (*type:* `GoogleApi.Notebooks.V2.Model.ConfidentialInstanceConfig.t`, *default:* `nil`) - Optional. Confidential instance configuration.
2627
* `containerImage` (*type:* `GoogleApi.Notebooks.V2.Model.ContainerImage.t`, *default:* `nil`) - Optional. Use a container image to start the notebook instance.
2728
* `dataDisks` (*type:* `list(GoogleApi.Notebooks.V2.Model.DataDisk.t)`, *default:* `nil`) - Optional. Data disks attached to the VM instance. Currently supports only one data disk.
2829
* `disablePublicIp` (*type:* `boolean()`, *default:* `nil`) - Optional. If true, no external IP will be assigned to this VM instance.
@@ -43,6 +44,8 @@ defmodule GoogleApi.Notebooks.V2.Model.GceSetup do
4344
@type t :: %__MODULE__{
4445
:acceleratorConfigs => list(GoogleApi.Notebooks.V2.Model.AcceleratorConfig.t()) | nil,
4546
:bootDisk => GoogleApi.Notebooks.V2.Model.BootDisk.t() | nil,
47+
:confidentialInstanceConfig =>
48+
GoogleApi.Notebooks.V2.Model.ConfidentialInstanceConfig.t() | nil,
4649
:containerImage => GoogleApi.Notebooks.V2.Model.ContainerImage.t() | nil,
4750
:dataDisks => list(GoogleApi.Notebooks.V2.Model.DataDisk.t()) | nil,
4851
:disablePublicIp => boolean() | nil,
@@ -61,6 +64,7 @@ defmodule GoogleApi.Notebooks.V2.Model.GceSetup do
6164

6265
field(:acceleratorConfigs, as: GoogleApi.Notebooks.V2.Model.AcceleratorConfig, type: :list)
6366
field(:bootDisk, as: GoogleApi.Notebooks.V2.Model.BootDisk)
67+
field(:confidentialInstanceConfig, as: GoogleApi.Notebooks.V2.Model.ConfidentialInstanceConfig)
6468
field(:containerImage, as: GoogleApi.Notebooks.V2.Model.ContainerImage)
6569
field(:dataDisks, as: GoogleApi.Notebooks.V2.Model.DataDisk, type: :list)
6670
field(:disablePublicIp)

0 commit comments

Comments
 (0)