Skip to content

Commit

Permalink
feat: Automated regeneration of ArtifactRegistry client (#9200)
Browse files Browse the repository at this point in the history
Auto-created at 2022-02-18 13:15:04 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Feb 18, 2022
1 parent c98b4e4 commit 493c5cd
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 96 deletions.
2 changes: 1 addition & 1 deletion clients/artifact_registry/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_artifact_registry, "~> 0.11"}]
[{:google_api_artifact_registry, "~> 0.12"}]
end
```

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,87 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do
|> Response.decode(opts ++ [struct: %GoogleApi.ArtifactRegistry.V1.Model.ProjectSettings{}])
end

@doc """
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
## Parameters
* `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server
* `projects_id` (*type:* `String.t`) - Part of `name`. The name of the operation resource.
* `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`.
* `operations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`.
* `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").
* `opts` (*type:* `keyword()`) - Call options
## Returns
* `{:ok, %GoogleApi.ArtifactRegistry.V1.Model.Operation{}}` on success
* `{:error, info}` on failure
"""
@spec artifactregistry_projects_locations_operations_get(
Tesla.Env.client(),
String.t(),
String.t(),
String.t(),
keyword(),
keyword()
) ::
{:ok, GoogleApi.ArtifactRegistry.V1.Model.Operation.t()}
| {:ok, Tesla.Env.t()}
| {:ok, list()}
| {:error, any()}
def artifactregistry_projects_locations_operations_get(
connection,
projects_id,
locations_id,
operations_id,
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
}

request =
Request.new()
|> Request.method(:get)
|> Request.url(
"/v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
%{
"projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1),
"locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1),
"operationsId" => URI.encode(operations_id, &(URI.char_unreserved?(&1) || &1 == ?/))
}
)
|> Request.add_optional_params(optional_params_config, optional_params)
|> Request.library_version(@library_version)

connection
|> Connection.execute(request)
|> Response.decode(opts ++ [struct: %GoogleApi.ArtifactRegistry.V1.Model.Operation{}])
end

@doc """
Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.
Expand Down Expand Up @@ -1466,6 +1547,7 @@ defmodule GoogleApi.ArtifactRegistry.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").
* `:filter` (*type:* `String.t`) - An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: * `name` * `owner` An example of using a filter: * `name="projects/p1/locations/us-central1/repositories/repo1/files/a/b/*"` --> Files with an ID starting with "a/b/". * `owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` --> Files owned by the version `1.0` in package `pkg1`.
* `:orderBy` (*type:* `String.t`) - The field to order the results by.
* `:pageSize` (*type:* `integer()`) - The maximum number of files to return.
* `:pageToken` (*type:* `String.t`) - The next_page_token value returned from a previous list request, if any.
* `opts` (*type:* `keyword()`) - Call options
Expand Down Expand Up @@ -1508,6 +1590,7 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do
:uploadType => :query,
:upload_protocol => :query,
:filter => :query,
:orderBy => :query,
:pageSize => :query,
:pageToken => :query
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.ArtifactRegistry.V1 do
API client metadata for GoogleApi.ArtifactRegistry.V1.
"""

@discovery_revision "20220203"
@discovery_revision "20220212"

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.ArtifactRegistry.V1beta1 do
API client metadata for GoogleApi.ArtifactRegistry.V1beta1.
"""

@discovery_revision "20220203"
@discovery_revision "20220212"

def discovery_revision(), do: @discovery_revision
end
2 changes: 1 addition & 1 deletion clients/artifact_registry/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.ArtifactRegistry.Mixfile do
use Mix.Project

@version "0.11.0"
@version "0.12.0"

def project() do
[
Expand Down

0 comments on commit 493c5cd

Please sign in to comment.