Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of Notebooks client #11418

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/notebooks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_notebooks, "~> 0.10"}]
[{:google_api_notebooks, "~> 0.11"}]
end
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Notebooks.V1 do
API client metadata for GoogleApi.Notebooks.V1.
"""

@discovery_revision "20240307"
@discovery_revision "20240422"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Notebooks.V2 do
API client metadata for GoogleApi.Notebooks.V2.
"""

@discovery_revision "20240307"
@discovery_revision "20240530"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
@@ -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.V2.Model.AccessConfig do
@moduledoc """
An access configuration attached to an instance's network interface.

## Attributes

* `externalIp` (*type:* `String.t`, *default:* `nil`) - An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:externalIp => String.t() | nil
}

field(:externalIp)
end

defimpl Poison.Decoder, for: GoogleApi.Notebooks.V2.Model.AccessConfig do
def decode(value, options) do
GoogleApi.Notebooks.V2.Model.AccessConfig.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Notebooks.V2.Model.AccessConfig do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ defmodule GoogleApi.Notebooks.V2.Model.Instance do
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. Labels to apply to this instance. These can be later modified by the UpdateInstance method.
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. The name of this notebook instance. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
* `proxyUri` (*type:* `String.t`, *default:* `nil`) - Output only. The proxy endpoint that is used to access the Jupyter notebook.
* `satisfiesPzi` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use for Zone Isolation.
* `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use for Zone Separation.
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. The state of this instance.
* `thirdPartyProxyUrl` (*type:* `String.t`, *default:* `nil`) - Output only. The workforce pools proxy endpoint that is used to access the Jupyter notebook.
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Instance update time.
Expand All @@ -52,6 +54,8 @@ defmodule GoogleApi.Notebooks.V2.Model.Instance do
:labels => map() | nil,
:name => String.t() | nil,
:proxyUri => String.t() | nil,
:satisfiesPzi => boolean() | nil,
:satisfiesPzs => boolean() | nil,
:state => String.t() | nil,
:thirdPartyProxyUrl => String.t() | nil,
:updateTime => DateTime.t() | nil,
Expand All @@ -69,6 +73,8 @@ defmodule GoogleApi.Notebooks.V2.Model.Instance do
field(:labels, type: :map)
field(:name)
field(:proxyUri)
field(:satisfiesPzi)
field(:satisfiesPzs)
field(:state)
field(:thirdPartyProxyUrl)
field(:updateTime, as: DateTime)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ defmodule GoogleApi.Notebooks.V2.Model.NetworkInterface do

## Attributes

* `accessConfigs` (*type:* `list(GoogleApi.Notebooks.V2.Model.AccessConfig.t)`, *default:* `nil`) - Optional. An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If no accessConfigs specified, the instance will have an external internet access through an ephemeral external IP address.
* `network` (*type:* `String.t`, *default:* `nil`) - Optional. The name of the VPC that this VM instance is in. Format: `projects/{project_id}/global/networks/{network_id}`
* `nicType` (*type:* `String.t`, *default:* `nil`) - Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
* `subnet` (*type:* `String.t`, *default:* `nil`) - Optional. The name of the subnet that this VM instance is in. Format: `projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}`
Expand All @@ -29,11 +30,13 @@ defmodule GoogleApi.Notebooks.V2.Model.NetworkInterface do
use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:accessConfigs => list(GoogleApi.Notebooks.V2.Model.AccessConfig.t()) | nil,
:network => String.t() | nil,
:nicType => String.t() | nil,
:subnet => String.t() | nil
}

field(:accessConfigs, as: GoogleApi.Notebooks.V2.Model.AccessConfig, type: :list)
field(:network)
field(:nicType)
field(:subnet)
Expand Down
2 changes: 1 addition & 1 deletion clients/notebooks/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.Notebooks.Mixfile do
use Mix.Project

@version "0.10.0"
@version "0.11.0"

def project() do
[
Expand Down
Loading