Skip to content

Commit 1dfc947

Browse files
feat: Automated regeneration of GKEOnPrem client (googleapis#12475)
Auto-created at 2024-11-04 13:15:16 +0000 using the toys pull request generator.
1 parent 943d9d8 commit 1dfc947

File tree

4 files changed

+81
-3
lines changed

4 files changed

+81
-3
lines changed

clients/gke_on_prem/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_gke_on_prem, "~> 0.4"}]
14+
[{:google_api_gke_on_prem, "~> 0.5"}]
1515
end
1616
```
1717

clients/gke_on_prem/lib/google_api/gke_on_prem/v1/api/projects.ex

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3213,6 +3213,84 @@ defmodule GoogleApi.GKEOnPrem.V1.Api.Projects do
32133213
|> Response.decode(opts ++ [struct: %GoogleApi.GKEOnPrem.V1.Model.ListOperationsResponse{}])
32143214
end
32153215

3216+
@doc """
3217+
Creates a new VMware admin cluster in a given project and location. The API needs to be combined with creating a bootstrap cluster to work.
3218+
3219+
## Parameters
3220+
3221+
* `connection` (*type:* `GoogleApi.GKEOnPrem.V1.Connection.t`) - Connection to server
3222+
* `parent` (*type:* `String.t`) - Required. The parent of the project and location where the cluster is created in. Format: "projects/{project}/locations/{location}"
3223+
* `optional_params` (*type:* `keyword()`) - Optional parameters
3224+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
3225+
* `:access_token` (*type:* `String.t`) - OAuth access token.
3226+
* `:alt` (*type:* `String.t`) - Data format for response.
3227+
* `:callback` (*type:* `String.t`) - JSONP
3228+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
3229+
* `: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.
3230+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
3231+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
3232+
* `: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.
3233+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
3234+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
3235+
* `:allowPreflightFailure` (*type:* `boolean()`) - Optional. If set to true, CLM will force CCFE to persist the cluster resource in RMS when the creation fails during standalone preflight checks. In that case the subsequent create call will fail with "cluster already exists" error and hence a update cluster is required to fix the cluster.
3236+
* `:validateOnly` (*type:* `boolean()`) - Validate the request without actually doing any updates.
3237+
* `:vmwareAdminClusterId` (*type:* `String.t`) - Required. User provided identifier that is used as part of the resource name; must conform to RFC-1034 and additionally restrict to lower-cased letters. This comes out roughly to: /^a-z+[a-z0-9]$/
3238+
* `:body` (*type:* `GoogleApi.GKEOnPrem.V1.Model.VmwareAdminCluster.t`) -
3239+
* `opts` (*type:* `keyword()`) - Call options
3240+
3241+
## Returns
3242+
3243+
* `{:ok, %GoogleApi.GKEOnPrem.V1.Model.Operation{}}` on success
3244+
* `{:error, info}` on failure
3245+
"""
3246+
@spec gkeonprem_projects_locations_vmware_admin_clusters_create(
3247+
Tesla.Env.client(),
3248+
String.t(),
3249+
keyword(),
3250+
keyword()
3251+
) ::
3252+
{:ok, GoogleApi.GKEOnPrem.V1.Model.Operation.t()}
3253+
| {:ok, Tesla.Env.t()}
3254+
| {:ok, list()}
3255+
| {:error, any()}
3256+
def gkeonprem_projects_locations_vmware_admin_clusters_create(
3257+
connection,
3258+
parent,
3259+
optional_params \\ [],
3260+
opts \\ []
3261+
) do
3262+
optional_params_config = %{
3263+
:"$.xgafv" => :query,
3264+
:access_token => :query,
3265+
:alt => :query,
3266+
:callback => :query,
3267+
:fields => :query,
3268+
:key => :query,
3269+
:oauth_token => :query,
3270+
:prettyPrint => :query,
3271+
:quotaUser => :query,
3272+
:uploadType => :query,
3273+
:upload_protocol => :query,
3274+
:allowPreflightFailure => :query,
3275+
:validateOnly => :query,
3276+
:vmwareAdminClusterId => :query,
3277+
:body => :body
3278+
}
3279+
3280+
request =
3281+
Request.new()
3282+
|> Request.method(:post)
3283+
|> Request.url("/v1/{+parent}/vmwareAdminClusters", %{
3284+
"parent" => URI.encode(parent, &URI.char_unreserved?/1)
3285+
})
3286+
|> Request.add_optional_params(optional_params_config, optional_params)
3287+
|> Request.library_version(@library_version)
3288+
3289+
connection
3290+
|> Connection.execute(request)
3291+
|> Response.decode(opts ++ [struct: %GoogleApi.GKEOnPrem.V1.Model.Operation{}])
3292+
end
3293+
32163294
@doc """
32173295
Enrolls an existing VMware admin cluster to the Anthos On-Prem API within a given project and location. Through enrollment, an existing admin cluster will become Anthos On-Prem API managed. The corresponding GCP resources will be created and all future modifications to the cluster will be expected to be performed through the API.
32183296

clients/gke_on_prem/lib/google_api/gke_on_prem/v1/metadata.ex

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

23-
@discovery_revision "20240814"
23+
@discovery_revision "20241023"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/gke_on_prem/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.GKEOnPrem.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.4.0"
21+
@version "0.5.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)