diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/api/media.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/api/media.ex new file mode 100644 index 0000000000..0f837cbf25 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/api/media.ex @@ -0,0 +1,119 @@ +# 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.ArtifactRegistry.V1.Api.Media do + @moduledoc """ + API calls for all endpoints tagged `Media`. + """ + + alias GoogleApi.ArtifactRegistry.V1.Connection + alias GoogleApi.Gax.{Request, Response} + + @library_version Mix.Project.config() |> Keyword.get(:version, "") + + @doc """ + Download a file. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The name of the file to download. + * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `repositories_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `files_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.DownloadFileResponse{}}` on success + * `{:error, info}` on failure + """ + @spec artifactregistry_media_download( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ArtifactRegistry.V1.Model.DownloadFileResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def artifactregistry_media_download( + connection, + projects_id, + locations_id, + repositories_id, + files_id, + optional_params \\ [], + opts \\ [] + ) do + opts = + if Keyword.get(optional_params, :alt) == "media", + do: Keyword.put_new(opts, :decode, false), + else: opts + + 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}/repositories/{repositoriesId}/files/{filesId}:download", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "repositoriesId" => URI.encode(repositories_id, &URI.char_unreserved?/1), + "filesId" => URI.encode(files_id, &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.ArtifactRegistry.V1.Model.DownloadFileResponse{}] + ) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/api/projects.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/api/projects.ex index 174d03e1eb..4dd5cd7983 100644 --- a/clients/artifact_registry/lib/google_api/artifact_registry/v1/api/projects.ex +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/api/projects.ex @@ -243,6 +243,80 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do |> Response.decode(opts ++ [struct: %GoogleApi.ArtifactRegistry.V1.Model.Location{}]) end + @doc """ + Retrieves the VPCSC Config for the Project. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The name of the VPCSCConfig resource. + * `locations_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.VPCSCConfig{}}` on success + * `{:error, info}` on failure + """ + @spec artifactregistry_projects_locations_get_vpcsc_config( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ArtifactRegistry.V1.Model.VPCSCConfig.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def artifactregistry_projects_locations_get_vpcsc_config( + connection, + projects_id, + locations_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}/vpcscConfig", %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &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.ArtifactRegistry.V1.Model.VPCSCConfig{}]) + end + @doc """ Lists information about the supported locations for this service. @@ -321,6 +395,84 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do ) end + @doc """ + Updates the VPCSC Config for the Project. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `vpcscConfig.name`. The name of the project's VPC SC Config. Always of the form: projects/{projectID}/locations/{location}/vpcscConfig In update request: never set In response: always set + * `locations_id` (*type:* `String.t`) - Part of `vpcscConfig.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"). + * `:updateMask` (*type:* `String.t`) - Field mask to support partial updates. + * `:body` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.VPCSCConfig.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ArtifactRegistry.V1.Model.VPCSCConfig{}}` on success + * `{:error, info}` on failure + """ + @spec artifactregistry_projects_locations_update_vpcsc_config( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ArtifactRegistry.V1.Model.VPCSCConfig.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def artifactregistry_projects_locations_update_vpcsc_config( + connection, + projects_id, + locations_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, + :updateMask => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> Request.url("/v1/projects/{projectsId}/locations/{locationsId}/vpcscConfig", %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &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.ArtifactRegistry.V1.Model.VPCSCConfig{}]) + 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. @@ -422,7 +574,7 @@ defmodule GoogleApi.ArtifactRegistry.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"). - * `:repositoryId` (*type:* `String.t`) - The repository id to use for this repository. + * `:repositoryId` (*type:* `String.t`) - Required. The repository id to use for this repository. * `:body` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.Repository.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -811,7 +963,7 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `repository.name`. The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1". + * `projects_id` (*type:* `String.t`) - Part of `repository.name`. The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`. * `locations_id` (*type:* `String.t`) - Part of `repository.name`. See documentation of `projectsId`. * `repositories_id` (*type:* `String.t`) - Part of `repository.name`. See documentation of `projectsId`. * `optional_params` (*type:* `keyword()`) - Optional parameters @@ -1597,7 +1749,7 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `name`. The name of the file to retrieve. + * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The name of the file to retrieve. * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. * `repositories_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. * `files_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. @@ -1685,7 +1837,7 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `parent`. The name of the repository whose files will be listed. For example: "projects/p1/locations/us-central1/repositories/repo1 + * `projects_id` (*type:* `String.t`) - Part of `parent`. Required. The name of the repository whose files will be listed. For example: "projects/p1/locations/us-central1/repositories/repo1 * `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. * `repositories_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. * `optional_params` (*type:* `keyword()`) - Optional parameters @@ -1769,12 +1921,12 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do end @doc """ - Directly uploads a KFP artifact. The returned Operation will complete once the resource is uploaded. Package, Version, and File resources will be created based on the uploaded artifact. Uploaded artifacts that conflict with existing resources will be overwritten. + Directly uploads a Go module. The returned Operation will complete once the Go module is uploaded. Package, Version, and File resources are created based on the uploaded Go module. ## Parameters * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `parent`. The resource name of the repository where the KFP artifact will be uploaded. + * `projects_id` (*type:* `String.t`) - Part of `parent`. The resource name of the repository where the Go module will be uploaded. * `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. * `repositories_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. * `optional_params` (*type:* `keyword()`) - Optional parameters @@ -1789,15 +1941,15 @@ defmodule GoogleApi.ArtifactRegistry.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"). - * `:body` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.UploadKfpArtifactRequest.t`) - + * `:body` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.UploadGoModuleRequest.t`) - * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.ArtifactRegistry.V1.Model.UploadKfpArtifactMediaResponse{}}` on success + * `{:ok, %GoogleApi.ArtifactRegistry.V1.Model.UploadGoModuleMediaResponse{}}` on success * `{:error, info}` on failure """ - @spec artifactregistry_projects_locations_repositories_kfp_artifacts_upload( + @spec artifactregistry_projects_locations_repositories_go_modules_upload( Tesla.Env.client(), String.t(), String.t(), @@ -1805,11 +1957,11 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do keyword(), keyword() ) :: - {:ok, GoogleApi.ArtifactRegistry.V1.Model.UploadKfpArtifactMediaResponse.t()} + {:ok, GoogleApi.ArtifactRegistry.V1.Model.UploadGoModuleMediaResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def artifactregistry_projects_locations_repositories_kfp_artifacts_upload( + def artifactregistry_projects_locations_repositories_go_modules_upload( connection, projects_id, locations_id, @@ -1836,7 +1988,7 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do Request.new() |> Request.method(:post) |> Request.url( - "/v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/kfpArtifacts:create", + "/v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/goModules:create", %{ "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), @@ -1849,21 +2001,21 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do connection |> Connection.execute(request) |> Response.decode( - opts ++ [struct: %GoogleApi.ArtifactRegistry.V1.Model.UploadKfpArtifactMediaResponse{}] + opts ++ [struct: %GoogleApi.ArtifactRegistry.V1.Model.UploadGoModuleMediaResponse{}] ) end @doc """ - Directly uploads a KFP artifact. The returned Operation will complete once the resource is uploaded. Package, Version, and File resources will be created based on the uploaded artifact. Uploaded artifacts that conflict with existing resources will be overwritten. + Directly uploads a Go module. The returned Operation will complete once the Go module is uploaded. Package, Version, and File resources are created based on the uploaded Go module. ## Parameters * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `parent`. The resource name of the repository where the KFP artifact will be uploaded. + * `projects_id` (*type:* `String.t`) - Part of `parent`. The resource name of the repository where the Go module will be uploaded. * `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. * `repositories_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. * `upload_type` (*type:* `String.t`) - Upload type. Must be "multipart". - * `metadata` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.UploadKfpArtifactRequest.t`) - object metadata + * `metadata` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.UploadGoModuleRequest.t`) - object metadata * `data` (*type:* `iodata`) - Content to upload, as a string or iolist * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. @@ -1881,25 +2033,25 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do ## Returns - * `{:ok, %GoogleApi.ArtifactRegistry.V1.Model.UploadKfpArtifactMediaResponse{}}` on success + * `{:ok, %GoogleApi.ArtifactRegistry.V1.Model.UploadGoModuleMediaResponse{}}` on success * `{:error, info}` on failure """ - @spec artifactregistry_projects_locations_repositories_kfp_artifacts_upload_iodata( + @spec artifactregistry_projects_locations_repositories_go_modules_upload_iodata( Tesla.Env.client(), String.t(), String.t(), String.t(), String.t(), - GoogleApi.ArtifactRegistry.V1.Model.UploadKfpArtifactRequest.t(), + GoogleApi.ArtifactRegistry.V1.Model.UploadGoModuleRequest.t(), iodata, keyword(), keyword() ) :: - {:ok, GoogleApi.ArtifactRegistry.V1.Model.UploadKfpArtifactMediaResponse.t()} + {:ok, GoogleApi.ArtifactRegistry.V1.Model.UploadGoModuleMediaResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def artifactregistry_projects_locations_repositories_kfp_artifacts_upload_iodata( + def artifactregistry_projects_locations_repositories_go_modules_upload_iodata( connection, projects_id, locations_id, @@ -1928,7 +2080,7 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do Request.new() |> Request.method(:post) |> Request.url( - "/upload/v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/kfpArtifacts:create", + "/upload/v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/goModules:create", %{ "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), @@ -1944,21 +2096,21 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do connection |> Connection.execute(request) |> Response.decode( - opts ++ [struct: %GoogleApi.ArtifactRegistry.V1.Model.UploadKfpArtifactMediaResponse{}] + opts ++ [struct: %GoogleApi.ArtifactRegistry.V1.Model.UploadGoModuleMediaResponse{}] ) end @doc """ - Directly uploads a KFP artifact. The returned Operation will complete once the resource is uploaded. Package, Version, and File resources will be created based on the uploaded artifact. Uploaded artifacts that conflict with existing resources will be overwritten. + Directly uploads a Go module. The returned Operation will complete once the Go module is uploaded. Package, Version, and File resources are created based on the uploaded Go module. ## Parameters * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `parent`. The resource name of the repository where the KFP artifact will be uploaded. + * `projects_id` (*type:* `String.t`) - Part of `parent`. The resource name of the repository where the Go module will be uploaded. * `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. * `repositories_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. * `upload_type` (*type:* `String.t`) - Upload type. Must be "multipart". - * `metadata` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.UploadKfpArtifactRequest.t`) - object metadata + * `metadata` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.UploadGoModuleRequest.t`) - object metadata * `data` (*type:* `String.t`) - Path to file containing content to upload * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. @@ -1976,25 +2128,25 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do ## Returns - * `{:ok, %GoogleApi.ArtifactRegistry.V1.Model.UploadKfpArtifactMediaResponse{}}` on success + * `{:ok, %GoogleApi.ArtifactRegistry.V1.Model.UploadGoModuleMediaResponse{}}` on success * `{:error, info}` on failure """ - @spec artifactregistry_projects_locations_repositories_kfp_artifacts_upload_simple( + @spec artifactregistry_projects_locations_repositories_go_modules_upload_simple( Tesla.Env.client(), String.t(), String.t(), String.t(), String.t(), - GoogleApi.ArtifactRegistry.V1.Model.UploadKfpArtifactRequest.t(), + GoogleApi.ArtifactRegistry.V1.Model.UploadGoModuleRequest.t(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.ArtifactRegistry.V1.Model.UploadKfpArtifactMediaResponse.t()} + {:ok, GoogleApi.ArtifactRegistry.V1.Model.UploadGoModuleMediaResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def artifactregistry_projects_locations_repositories_kfp_artifacts_upload_simple( + def artifactregistry_projects_locations_repositories_go_modules_upload_simple( connection, projects_id, locations_id, @@ -2023,7 +2175,7 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do Request.new() |> Request.method(:post) |> Request.url( - "/upload/v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/kfpArtifacts:create", + "/upload/v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/goModules:create", %{ "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), @@ -2039,20 +2191,19 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do connection |> Connection.execute(request) |> Response.decode( - opts ++ [struct: %GoogleApi.ArtifactRegistry.V1.Model.UploadKfpArtifactMediaResponse{}] + opts ++ [struct: %GoogleApi.ArtifactRegistry.V1.Model.UploadGoModuleMediaResponse{}] ) end @doc """ - Gets a maven artifact. + Imports GooGet artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored. ## Parameters * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The name of the maven artifact. - * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. - * `repositories_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. - * `maven_artifacts_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `projects_id` (*type:* `String.t`) - Part of `parent`. The name of the parent resource where the artifacts will be imported. + * `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. + * `repositories_id` (*type:* `String.t`) - Part of `parent`. 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. @@ -2065,32 +2216,31 @@ defmodule GoogleApi.ArtifactRegistry.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"). + * `:body` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsRequest.t`) - * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.ArtifactRegistry.V1.Model.MavenArtifact{}}` on success + * `{:ok, %GoogleApi.ArtifactRegistry.V1.Model.Operation{}}` on success * `{:error, info}` on failure """ - @spec artifactregistry_projects_locations_repositories_maven_artifacts_get( + @spec artifactregistry_projects_locations_repositories_googet_artifacts_import( Tesla.Env.client(), String.t(), String.t(), String.t(), - String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.ArtifactRegistry.V1.Model.MavenArtifact.t()} + {:ok, GoogleApi.ArtifactRegistry.V1.Model.Operation.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def artifactregistry_projects_locations_repositories_maven_artifacts_get( + def artifactregistry_projects_locations_repositories_googet_artifacts_import( connection, projects_id, locations_id, repositories_id, - maven_artifacts_id, optional_params \\ [], opts \\ [] ) do @@ -2105,20 +2255,19 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do :prettyPrint => :query, :quotaUser => :query, :uploadType => :query, - :upload_protocol => :query + :upload_protocol => :query, + :body => :body } request = Request.new() - |> Request.method(:get) + |> Request.method(:post) |> Request.url( - "/v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/mavenArtifacts/{mavenArtifactsId}", + "/v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/googetArtifacts:import", %{ "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), - "repositoriesId" => URI.encode(repositories_id, &URI.char_unreserved?/1), - "mavenArtifactsId" => - URI.encode(maven_artifacts_id, &(URI.char_unreserved?(&1) || &1 == ?/)) + "repositoriesId" => URI.encode(repositories_id, &URI.char_unreserved?/1) } ) |> Request.add_optional_params(optional_params_config, optional_params) @@ -2126,16 +2275,16 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do connection |> Connection.execute(request) - |> Response.decode(opts ++ [struct: %GoogleApi.ArtifactRegistry.V1.Model.MavenArtifact{}]) + |> Response.decode(opts ++ [struct: %GoogleApi.ArtifactRegistry.V1.Model.Operation{}]) end @doc """ - Lists maven artifacts. + Directly uploads a GooGet artifact. The returned Operation will complete once the resources are uploaded. Package, Version, and File resources are created based on the imported artifact. Imported artifacts that conflict with existing resources are ignored. ## Parameters * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `parent`. Required. The name of the parent resource whose maven artifacts will be listed. + * `projects_id` (*type:* `String.t`) - Part of `parent`. The name of the parent resource where the artifacts will be uploaded. * `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. * `repositories_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. * `optional_params` (*type:* `keyword()`) - Optional parameters @@ -2150,16 +2299,15 @@ defmodule GoogleApi.ArtifactRegistry.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"). - * `:pageSize` (*type:* `integer()`) - The maximum number of artifacts to return. - * `:pageToken` (*type:* `String.t`) - The next_page_token value returned from a previous list request, if any. + * `:body` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactRequest.t`) - * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.ArtifactRegistry.V1.Model.ListMavenArtifactsResponse{}}` on success + * `{:ok, %GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactMediaResponse{}}` on success * `{:error, info}` on failure """ - @spec artifactregistry_projects_locations_repositories_maven_artifacts_list( + @spec artifactregistry_projects_locations_repositories_googet_artifacts_upload( Tesla.Env.client(), String.t(), String.t(), @@ -2167,11 +2315,11 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do keyword(), keyword() ) :: - {:ok, GoogleApi.ArtifactRegistry.V1.Model.ListMavenArtifactsResponse.t()} + {:ok, GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactMediaResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def artifactregistry_projects_locations_repositories_maven_artifacts_list( + def artifactregistry_projects_locations_repositories_googet_artifacts_upload( connection, projects_id, locations_id, @@ -2191,15 +2339,14 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, - :pageSize => :query, - :pageToken => :query + :body => :body } request = Request.new() - |> Request.method(:get) + |> Request.method(:post) |> Request.url( - "/v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/mavenArtifacts", + "/v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/googetArtifacts:create", %{ "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), @@ -2212,20 +2359,22 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do connection |> Connection.execute(request) |> Response.decode( - opts ++ [struct: %GoogleApi.ArtifactRegistry.V1.Model.ListMavenArtifactsResponse{}] + opts ++ [struct: %GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactMediaResponse{}] ) end @doc """ - Gets a npm package. + Directly uploads a GooGet artifact. The returned Operation will complete once the resources are uploaded. Package, Version, and File resources are created based on the imported artifact. Imported artifacts that conflict with existing resources are ignored. ## Parameters * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The name of the npm package. - * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. - * `repositories_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. - * `npm_packages_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `projects_id` (*type:* `String.t`) - Part of `parent`. The name of the parent resource where the artifacts will be uploaded. + * `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. + * `repositories_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. + * `upload_type` (*type:* `String.t`) - Upload type. Must be "multipart". + * `metadata` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactRequest.t`) - object metadata + * `data` (*type:* `iodata`) - Content to upload, as a string or iolist * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -2242,28 +2391,32 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do ## Returns - * `{:ok, %GoogleApi.ArtifactRegistry.V1.Model.NpmPackage{}}` on success + * `{:ok, %GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactMediaResponse{}}` on success * `{:error, info}` on failure """ - @spec artifactregistry_projects_locations_repositories_npm_packages_get( + @spec artifactregistry_projects_locations_repositories_googet_artifacts_upload_iodata( Tesla.Env.client(), String.t(), String.t(), String.t(), String.t(), + GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactRequest.t(), + iodata, keyword(), keyword() ) :: - {:ok, GoogleApi.ArtifactRegistry.V1.Model.NpmPackage.t()} + {:ok, GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactMediaResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def artifactregistry_projects_locations_repositories_npm_packages_get( + def artifactregistry_projects_locations_repositories_googet_artifacts_upload_iodata( connection, projects_id, locations_id, repositories_id, - npm_packages_id, + upload_type, + metadata, + data, optional_params \\ [], opts \\ [] ) do @@ -2283,33 +2436,40 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do request = Request.new() - |> Request.method(:get) + |> Request.method(:post) |> Request.url( - "/v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/npmPackages/{npmPackagesId}", + "/upload/v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/googetArtifacts:create", %{ "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), - "repositoriesId" => URI.encode(repositories_id, &URI.char_unreserved?/1), - "npmPackagesId" => URI.encode(npm_packages_id, &(URI.char_unreserved?(&1) || &1 == ?/)) + "repositoriesId" => URI.encode(repositories_id, &URI.char_unreserved?/1) } ) + |> Request.add_param(:query, :uploadType, upload_type) + |> Request.add_param(:body, :metadata, metadata) + |> Request.add_param(:body, :data, data) |> 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.NpmPackage{}]) + |> Response.decode( + opts ++ [struct: %GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactMediaResponse{}] + ) end @doc """ - Lists npm packages. + Directly uploads a GooGet artifact. The returned Operation will complete once the resources are uploaded. Package, Version, and File resources are created based on the imported artifact. Imported artifacts that conflict with existing resources are ignored. ## Parameters * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `parent`. Required. The name of the parent resource whose npm packages will be listed. + * `projects_id` (*type:* `String.t`) - Part of `parent`. The name of the parent resource where the artifacts will be uploaded. * `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. * `repositories_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. + * `upload_type` (*type:* `String.t`) - Upload type. Must be "multipart". + * `metadata` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactRequest.t`) - object metadata + * `data` (*type:* `String.t`) - Path to file containing content to upload * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -2322,32 +2482,36 @@ defmodule GoogleApi.ArtifactRegistry.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"). - * `:pageSize` (*type:* `integer()`) - The maximum number of artifacts to return. - * `:pageToken` (*type:* `String.t`) - The next_page_token value returned from a previous list request, if any. * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.ArtifactRegistry.V1.Model.ListNpmPackagesResponse{}}` on success + * `{:ok, %GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactMediaResponse{}}` on success * `{:error, info}` on failure """ - @spec artifactregistry_projects_locations_repositories_npm_packages_list( + @spec artifactregistry_projects_locations_repositories_googet_artifacts_upload_simple( Tesla.Env.client(), String.t(), String.t(), String.t(), + String.t(), + GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactRequest.t(), + String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.ArtifactRegistry.V1.Model.ListNpmPackagesResponse.t()} + {:ok, GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactMediaResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def artifactregistry_projects_locations_repositories_npm_packages_list( + def artifactregistry_projects_locations_repositories_googet_artifacts_upload_simple( connection, projects_id, locations_id, repositories_id, + upload_type, + metadata, + data, optional_params \\ [], opts \\ [] ) do @@ -2362,8 +2526,629 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do :prettyPrint => :query, :quotaUser => :query, :uploadType => :query, - :upload_protocol => :query, - :pageSize => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url( + "/upload/v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/googetArtifacts:create", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "repositoriesId" => URI.encode(repositories_id, &URI.char_unreserved?/1) + } + ) + |> Request.add_param(:query, :uploadType, upload_type) + |> Request.add_param(:body, :metadata, metadata) + |> Request.add_param(:file, :data, data) + |> 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.UploadGoogetArtifactMediaResponse{}] + ) + end + + @doc """ + Directly uploads a KFP artifact. The returned Operation will complete once the resource is uploaded. Package, Version, and File resources will be created based on the uploaded artifact. Uploaded artifacts that conflict with existing resources will be overwritten. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `parent`. The resource name of the repository where the KFP artifact will be uploaded. + * `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. + * `repositories_id` (*type:* `String.t`) - Part of `parent`. 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"). + * `:body` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.UploadKfpArtifactRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ArtifactRegistry.V1.Model.UploadKfpArtifactMediaResponse{}}` on success + * `{:error, info}` on failure + """ + @spec artifactregistry_projects_locations_repositories_kfp_artifacts_upload( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ArtifactRegistry.V1.Model.UploadKfpArtifactMediaResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def artifactregistry_projects_locations_repositories_kfp_artifacts_upload( + connection, + projects_id, + locations_id, + repositories_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, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url( + "/v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/kfpArtifacts:create", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "repositoriesId" => URI.encode(repositories_id, &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.ArtifactRegistry.V1.Model.UploadKfpArtifactMediaResponse{}] + ) + end + + @doc """ + Directly uploads a KFP artifact. The returned Operation will complete once the resource is uploaded. Package, Version, and File resources will be created based on the uploaded artifact. Uploaded artifacts that conflict with existing resources will be overwritten. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `parent`. The resource name of the repository where the KFP artifact will be uploaded. + * `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. + * `repositories_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. + * `upload_type` (*type:* `String.t`) - Upload type. Must be "multipart". + * `metadata` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.UploadKfpArtifactRequest.t`) - object metadata + * `data` (*type:* `iodata`) - Content to upload, as a string or iolist + * `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.UploadKfpArtifactMediaResponse{}}` on success + * `{:error, info}` on failure + """ + @spec artifactregistry_projects_locations_repositories_kfp_artifacts_upload_iodata( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + String.t(), + GoogleApi.ArtifactRegistry.V1.Model.UploadKfpArtifactRequest.t(), + iodata, + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ArtifactRegistry.V1.Model.UploadKfpArtifactMediaResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def artifactregistry_projects_locations_repositories_kfp_artifacts_upload_iodata( + connection, + projects_id, + locations_id, + repositories_id, + upload_type, + metadata, + data, + 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(:post) + |> Request.url( + "/upload/v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/kfpArtifacts:create", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "repositoriesId" => URI.encode(repositories_id, &URI.char_unreserved?/1) + } + ) + |> Request.add_param(:query, :uploadType, upload_type) + |> Request.add_param(:body, :metadata, metadata) + |> Request.add_param(:body, :data, data) + |> 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.UploadKfpArtifactMediaResponse{}] + ) + end + + @doc """ + Directly uploads a KFP artifact. The returned Operation will complete once the resource is uploaded. Package, Version, and File resources will be created based on the uploaded artifact. Uploaded artifacts that conflict with existing resources will be overwritten. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `parent`. The resource name of the repository where the KFP artifact will be uploaded. + * `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. + * `repositories_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. + * `upload_type` (*type:* `String.t`) - Upload type. Must be "multipart". + * `metadata` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.UploadKfpArtifactRequest.t`) - object metadata + * `data` (*type:* `String.t`) - Path to file containing content to upload + * `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.UploadKfpArtifactMediaResponse{}}` on success + * `{:error, info}` on failure + """ + @spec artifactregistry_projects_locations_repositories_kfp_artifacts_upload_simple( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + String.t(), + GoogleApi.ArtifactRegistry.V1.Model.UploadKfpArtifactRequest.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ArtifactRegistry.V1.Model.UploadKfpArtifactMediaResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def artifactregistry_projects_locations_repositories_kfp_artifacts_upload_simple( + connection, + projects_id, + locations_id, + repositories_id, + upload_type, + metadata, + data, + 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(:post) + |> Request.url( + "/upload/v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/kfpArtifacts:create", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "repositoriesId" => URI.encode(repositories_id, &URI.char_unreserved?/1) + } + ) + |> Request.add_param(:query, :uploadType, upload_type) + |> Request.add_param(:body, :metadata, metadata) + |> Request.add_param(:file, :data, data) + |> 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.UploadKfpArtifactMediaResponse{}] + ) + end + + @doc """ + Gets a maven artifact. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The name of the maven artifact. + * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `repositories_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `maven_artifacts_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.MavenArtifact{}}` on success + * `{:error, info}` on failure + """ + @spec artifactregistry_projects_locations_repositories_maven_artifacts_get( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ArtifactRegistry.V1.Model.MavenArtifact.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def artifactregistry_projects_locations_repositories_maven_artifacts_get( + connection, + projects_id, + locations_id, + repositories_id, + maven_artifacts_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}/repositories/{repositoriesId}/mavenArtifacts/{mavenArtifactsId}", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "repositoriesId" => URI.encode(repositories_id, &URI.char_unreserved?/1), + "mavenArtifactsId" => + URI.encode(maven_artifacts_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.MavenArtifact{}]) + end + + @doc """ + Lists maven artifacts. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `parent`. Required. The name of the parent resource whose maven artifacts will be listed. + * `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. + * `repositories_id` (*type:* `String.t`) - Part of `parent`. 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"). + * `:pageSize` (*type:* `integer()`) - The maximum number of artifacts to return. + * `:pageToken` (*type:* `String.t`) - The next_page_token value returned from a previous list request, if any. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ArtifactRegistry.V1.Model.ListMavenArtifactsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec artifactregistry_projects_locations_repositories_maven_artifacts_list( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ArtifactRegistry.V1.Model.ListMavenArtifactsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def artifactregistry_projects_locations_repositories_maven_artifacts_list( + connection, + projects_id, + locations_id, + repositories_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, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url( + "/v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/mavenArtifacts", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "repositoriesId" => URI.encode(repositories_id, &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.ArtifactRegistry.V1.Model.ListMavenArtifactsResponse{}] + ) + end + + @doc """ + Gets a npm package. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The name of the npm package. + * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `repositories_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. + * `npm_packages_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.NpmPackage{}}` on success + * `{:error, info}` on failure + """ + @spec artifactregistry_projects_locations_repositories_npm_packages_get( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ArtifactRegistry.V1.Model.NpmPackage.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def artifactregistry_projects_locations_repositories_npm_packages_get( + connection, + projects_id, + locations_id, + repositories_id, + npm_packages_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}/repositories/{repositoriesId}/npmPackages/{npmPackagesId}", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "repositoriesId" => URI.encode(repositories_id, &URI.char_unreserved?/1), + "npmPackagesId" => URI.encode(npm_packages_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.NpmPackage{}]) + end + + @doc """ + Lists npm packages. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `parent`. Required. The name of the parent resource whose npm packages will be listed. + * `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. + * `repositories_id` (*type:* `String.t`) - Part of `parent`. 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"). + * `:pageSize` (*type:* `integer()`) - The maximum number of artifacts to return. + * `:pageToken` (*type:* `String.t`) - The next_page_token value returned from a previous list request, if any. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ArtifactRegistry.V1.Model.ListNpmPackagesResponse{}}` on success + * `{:error, info}` on failure + """ + @spec artifactregistry_projects_locations_repositories_npm_packages_list( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ArtifactRegistry.V1.Model.ListNpmPackagesResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def artifactregistry_projects_locations_repositories_npm_packages_list( + connection, + projects_id, + locations_id, + repositories_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, + :pageSize => :query, :pageToken => :query } @@ -2645,6 +3430,95 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do ) end + @doc """ + Updates a package. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `package.name`. The name of the package, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. If the package ID part contains slashes, the slashes are escaped. + * `locations_id` (*type:* `String.t`) - Part of `package.name`. See documentation of `projectsId`. + * `repositories_id` (*type:* `String.t`) - Part of `package.name`. See documentation of `projectsId`. + * `packages_id` (*type:* `String.t`) - Part of `package.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"). + * `:updateMask` (*type:* `String.t`) - The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + * `:body` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.Package.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ArtifactRegistry.V1.Model.Package{}}` on success + * `{:error, info}` on failure + """ + @spec artifactregistry_projects_locations_repositories_packages_patch( + Tesla.Env.client(), + String.t(), + String.t(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.ArtifactRegistry.V1.Model.Package.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def artifactregistry_projects_locations_repositories_packages_patch( + connection, + projects_id, + locations_id, + repositories_id, + packages_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, + :updateMask => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> Request.url( + "/v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "repositoriesId" => URI.encode(repositories_id, &URI.char_unreserved?/1), + "packagesId" => URI.encode(packages_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.Package{}]) + end + @doc """ Creates a tag. @@ -2918,7 +3792,7 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `parent`. The name of the parent resource whose tags will be listed. + * `projects_id` (*type:* `String.t`) - Part of `parent`. The name of the parent package whose tags will be listed. For example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. * `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. * `repositories_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. * `packages_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. @@ -3096,6 +3970,93 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do |> Response.decode(opts ++ [struct: %GoogleApi.ArtifactRegistry.V1.Model.Tag{}]) end + @doc """ + Deletes multiple versions across a repository. The returned operation will complete once the versions have been deleted. + + ## Parameters + + * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server + * `projects_id` (*type:* `String.t`) - Part of `parent`. The name of the repository holding all requested versions. + * `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. + * `repositories_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. + * `packages_id` (*type:* `String.t`) - Part of `parent`. 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"). + * `:body` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.BatchDeleteVersionsRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.ArtifactRegistry.V1.Model.Operation{}}` on success + * `{:error, info}` on failure + """ + @spec artifactregistry_projects_locations_repositories_packages_versions_batch_delete( + Tesla.Env.client(), + String.t(), + 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_repositories_packages_versions_batch_delete( + connection, + projects_id, + locations_id, + repositories_id, + packages_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, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url( + "/v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/versions:batchDelete", + %{ + "projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1), + "locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1), + "repositoriesId" => URI.encode(repositories_id, &URI.char_unreserved?/1), + "packagesId" => URI.encode(packages_id, &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.ArtifactRegistry.V1.Model.Operation{}]) + end + @doc """ Deletes a version and all of its content. The returned operation will complete once the version has been deleted. diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/metadata.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/metadata.ex index 5a1c77165c..ec3f9b0026 100644 --- a/clients/artifact_registry/lib/google_api/artifact_registry/v1/metadata.ex +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.ArtifactRegistry.V1 do API client metadata for GoogleApi.ArtifactRegistry.V1. """ - @discovery_revision "20221022" + @discovery_revision "20240308" def discovery_revision(), do: @discovery_revision end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/apt_repository.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/apt_repository.ex new file mode 100644 index 0000000000..38b2110fd3 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/apt_repository.ex @@ -0,0 +1,60 @@ +# 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.ArtifactRegistry.V1.Model.AptRepository do + @moduledoc """ + Configuration for an Apt remote repository. + + ## Attributes + + * `customRepository` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository.t`, *default:* `nil`) - Customer-specified remote repository. + * `publicRepository` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository.t`, *default:* `nil`) - One of the publicly available Apt repositories supported by Artifact Registry. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :customRepository => + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository.t() + | nil, + :publicRepository => + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository.t() + | nil + } + + field(:customRepository, + as: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository + ) + + field(:publicRepository, + as: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.AptRepository do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.AptRepository.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.AptRepository do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/batch_delete_versions_request.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/batch_delete_versions_request.ex new file mode 100644 index 0000000000..b14bb85787 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/batch_delete_versions_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.ArtifactRegistry.V1.Model.BatchDeleteVersionsRequest do + @moduledoc """ + The request to delete multiple versions across a repository. + + ## Attributes + + * `names` (*type:* `list(String.t)`, *default:* `nil`) - Required. The names of the versions to delete. A maximum of 10000 versions can be deleted in a batch. + * `validateOnly` (*type:* `boolean()`, *default:* `nil`) - If true, the request is performed without deleting data, following AIP-163. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :names => list(String.t()) | nil, + :validateOnly => boolean() | nil + } + + field(:names, type: :list) + field(:validateOnly) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.BatchDeleteVersionsRequest do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.BatchDeleteVersionsRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.BatchDeleteVersionsRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/binding.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/binding.ex index 6cfacd639f..3c29be2a26 100644 --- a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/binding.ex +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/binding.ex @@ -22,8 +22,8 @@ defmodule GoogleApi.ArtifactRegistry.V1.Model.Binding do ## Attributes * `condition` (*type:* `GoogleApi.ArtifactRegistry.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/artifact_registry/lib/google_api/artifact_registry/v1/model/cleanup_policy.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/cleanup_policy.ex new file mode 100644 index 0000000000..62773afff3 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/cleanup_policy.ex @@ -0,0 +1,59 @@ +# 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.ArtifactRegistry.V1.Model.CleanupPolicy do + @moduledoc """ + Artifact policy configuration for repository cleanup policies. + + ## Attributes + + * `action` (*type:* `String.t`, *default:* `nil`) - Policy action. + * `condition` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicyCondition.t`, *default:* `nil`) - Policy condition for matching versions. + * `id` (*type:* `String.t`, *default:* `nil`) - The user-provided ID of the cleanup policy. + * `mostRecentVersions` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicyMostRecentVersions.t`, *default:* `nil`) - Policy condition for retaining a minimum number of versions. May only be specified with a Keep action. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :action => String.t() | nil, + :condition => GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicyCondition.t() | nil, + :id => String.t() | nil, + :mostRecentVersions => + GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicyMostRecentVersions.t() | nil + } + + field(:action) + field(:condition, as: GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicyCondition) + field(:id) + + field(:mostRecentVersions, + as: GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicyMostRecentVersions + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicy do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicy.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicy do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/cleanup_policy_condition.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/cleanup_policy_condition.ex new file mode 100644 index 0000000000..486d896532 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/cleanup_policy_condition.ex @@ -0,0 +1,61 @@ +# 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.ArtifactRegistry.V1.Model.CleanupPolicyCondition do + @moduledoc """ + CleanupPolicyCondition is a set of conditions attached to a CleanupPolicy. If multiple entries are set, all must be satisfied for the condition to be satisfied. + + ## Attributes + + * `newerThan` (*type:* `String.t`, *default:* `nil`) - Match versions newer than a duration. + * `olderThan` (*type:* `String.t`, *default:* `nil`) - Match versions older than a duration. + * `packageNamePrefixes` (*type:* `list(String.t)`, *default:* `nil`) - Match versions by package prefix. Applied on any prefix match. + * `tagPrefixes` (*type:* `list(String.t)`, *default:* `nil`) - Match versions by tag prefix. Applied on any prefix match. + * `tagState` (*type:* `String.t`, *default:* `nil`) - Match versions by tag status. + * `versionNamePrefixes` (*type:* `list(String.t)`, *default:* `nil`) - Match versions by version name prefix. Applied on any prefix match. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :newerThan => String.t() | nil, + :olderThan => String.t() | nil, + :packageNamePrefixes => list(String.t()) | nil, + :tagPrefixes => list(String.t()) | nil, + :tagState => String.t() | nil, + :versionNamePrefixes => list(String.t()) | nil + } + + field(:newerThan) + field(:olderThan) + field(:packageNamePrefixes, type: :list) + field(:tagPrefixes, type: :list) + field(:tagState) + field(:versionNamePrefixes, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicyCondition do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicyCondition.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicyCondition do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/cleanup_policy_most_recent_versions.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/cleanup_policy_most_recent_versions.ex new file mode 100644 index 0000000000..9e1c407ba4 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/cleanup_policy_most_recent_versions.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.ArtifactRegistry.V1.Model.CleanupPolicyMostRecentVersions do + @moduledoc """ + CleanupPolicyMostRecentVersions is an alternate condition of a CleanupPolicy for retaining a minimum number of versions. + + ## Attributes + + * `keepCount` (*type:* `integer()`, *default:* `nil`) - Minimum number of versions to keep. + * `packageNamePrefixes` (*type:* `list(String.t)`, *default:* `nil`) - List of package name prefixes that will apply this rule. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :keepCount => integer() | nil, + :packageNamePrefixes => list(String.t()) | nil + } + + field(:keepCount) + field(:packageNamePrefixes, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicyMostRecentVersions do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicyMostRecentVersions.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicyMostRecentVersions do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/docker_repository.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/docker_repository.ex new file mode 100644 index 0000000000..8fe0de65cc --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/docker_repository.ex @@ -0,0 +1,55 @@ +# 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.ArtifactRegistry.V1.Model.DockerRepository do + @moduledoc """ + Configuration for a Docker remote repository. + + ## Attributes + + * `customRepository` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository.t`, *default:* `nil`) - Customer-specified remote repository. + * `publicRepository` (*type:* `String.t`, *default:* `nil`) - One of the publicly available Docker repositories supported by Artifact Registry. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :customRepository => + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository.t() + | nil, + :publicRepository => String.t() | nil + } + + field(:customRepository, + as: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository + ) + + field(:publicRepository) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.DockerRepository do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.DockerRepository.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.DockerRepository do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/docker_repository_config.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/docker_repository_config.ex new file mode 100644 index 0000000000..5b6f0e762c --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/docker_repository_config.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.ArtifactRegistry.V1.Model.DockerRepositoryConfig do + @moduledoc """ + DockerRepositoryConfig is docker related repository details. Provides additional configuration details for repositories of the docker format type. + + ## Attributes + + * `immutableTags` (*type:* `boolean()`, *default:* `nil`) - The repository which enabled this flag prevents all tags from being modified, moved or deleted. This does not prevent tags from being created. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :immutableTags => boolean() | nil + } + + field(:immutableTags) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.DockerRepositoryConfig do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.DockerRepositoryConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.DockerRepositoryConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/download_file_response.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/download_file_response.ex new file mode 100644 index 0000000000..6a3775944a --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/download_file_response.ex @@ -0,0 +1,41 @@ +# 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.ArtifactRegistry.V1.Model.DownloadFileResponse do + @moduledoc """ + The response to download a file. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.DownloadFileResponse do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.DownloadFileResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.DownloadFileResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/go_module.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/go_module.ex new file mode 100644 index 0000000000..36ec3dabf1 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/go_module.ex @@ -0,0 +1,55 @@ +# 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.ArtifactRegistry.V1.Model.GoModule do + @moduledoc """ + GoModule represents a Go module. + + ## Attributes + + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the Go module is created. + * `name` (*type:* `String.t`, *default:* `nil`) - The resource name of a Go module. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the Go module is updated. + * `version` (*type:* `String.t`, *default:* `nil`) - The version of the Go module. Must be a valid canonical version as defined in https://go.dev/ref/mod#glos-canonical-version. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createTime => DateTime.t() | nil, + :name => String.t() | nil, + :updateTime => DateTime.t() | nil, + :version => String.t() | nil + } + + field(:createTime, as: DateTime) + field(:name) + field(:updateTime, as: DateTime) + field(:version) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.GoModule do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.GoModule.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.GoModule do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/googet_artifact.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/googet_artifact.ex new file mode 100644 index 0000000000..fe3e6c979a --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/googet_artifact.ex @@ -0,0 +1,52 @@ +# 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.ArtifactRegistry.V1.Model.GoogetArtifact do + @moduledoc """ + A detailed representation of a GooGet artifact. + + ## Attributes + + * `architecture` (*type:* `String.t`, *default:* `nil`) - Output only. Operating system architecture of the artifact. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The Artifact Registry resource name of the artifact. + * `packageName` (*type:* `String.t`, *default:* `nil`) - Output only. The GooGet package name of the artifact. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :architecture => String.t() | nil, + :name => String.t() | nil, + :packageName => String.t() | nil + } + + field(:architecture) + field(:name) + field(:packageName) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.GoogetArtifact do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.GoogetArtifact.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.GoogetArtifact do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_file.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_file.ex index ca9808ec27..93313443ff 100644 --- a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_file.ex +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_file.ex @@ -21,18 +21,20 @@ defmodule GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1Fi ## Attributes - * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the File was created. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the File was created. + * `fetchTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote. * `hashes` (*type:* `list(GoogleApi.ArtifactRegistry.V1.Model.Hash.t)`, *default:* `nil`) - The hashes of the file content. * `name` (*type:* `String.t`, *default:* `nil`) - The name of the file, for example: "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt". If the file ID part contains slashes, they are escaped. * `owner` (*type:* `String.t`, *default:* `nil`) - The name of the Package or Version that owns this file, if any. * `sizeBytes` (*type:* `String.t`, *default:* `nil`) - The size of the File in bytes. - * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the File was last updated. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the File was last updated. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :createTime => DateTime.t() | nil, + :fetchTime => DateTime.t() | nil, :hashes => list(GoogleApi.ArtifactRegistry.V1.Model.Hash.t()) | nil, :name => String.t() | nil, :owner => String.t() | nil, @@ -41,6 +43,7 @@ defmodule GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1Fi } field(:createTime, as: DateTime) + field(:fetchTime, as: DateTime) field(:hashes, as: GoogleApi.ArtifactRegistry.V1.Model.Hash, type: :list) field(:name) field(:owner) diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_apt_repository_custom_repository.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_apt_repository_custom_repository.ex new file mode 100644 index 0000000000..6366611f85 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_apt_repository_custom_repository.ex @@ -0,0 +1,53 @@ +# 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.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository do + @moduledoc """ + Customer-specified publicly available remote repository. + + ## Attributes + + * `uri` (*type:* `String.t`, *default:* `nil`) - An http/https uri reference to the upstream remote repository, for ex: "https://my.apt.registry/". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :uri => String.t() | nil + } + + field(:uri) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_apt_repository_public_repository.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_apt_repository_public_repository.ex new file mode 100644 index 0000000000..b8fa02e656 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_apt_repository_public_repository.ex @@ -0,0 +1,56 @@ +# 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.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository do + @moduledoc """ + Publicly available Apt repositories constructed from a common repository base and a custom repository path. + + ## Attributes + + * `repositoryBase` (*type:* `String.t`, *default:* `nil`) - A common public repository base for Apt. + * `repositoryPath` (*type:* `String.t`, *default:* `nil`) - A custom field to define a path to a specific repository from the base. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :repositoryBase => String.t() | nil, + :repositoryPath => String.t() | nil + } + + field(:repositoryBase) + field(:repositoryPath) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_docker_repository_custom_repository.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_docker_repository_custom_repository.ex new file mode 100644 index 0000000000..ea1283b4cf --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_docker_repository_custom_repository.ex @@ -0,0 +1,53 @@ +# 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.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository do + @moduledoc """ + Customer-specified publicly available remote repository. + + ## Attributes + + * `uri` (*type:* `String.t`, *default:* `nil`) - An http/https uri reference to the custom remote repository, for ex: "https://registry-1.docker.io". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :uri => String.t() | nil + } + + field(:uri) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_maven_repository_custom_repository.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_maven_repository_custom_repository.ex new file mode 100644 index 0000000000..79def13bf6 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_maven_repository_custom_repository.ex @@ -0,0 +1,53 @@ +# 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.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository do + @moduledoc """ + Customer-specified publicly available remote repository. + + ## Attributes + + * `uri` (*type:* `String.t`, *default:* `nil`) - An http/https uri reference to the upstream remote repository, for ex: "https://my.maven.registry/". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :uri => String.t() | nil + } + + field(:uri) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_npm_repository_custom_repository.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_npm_repository_custom_repository.ex new file mode 100644 index 0000000000..a76c057421 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_npm_repository_custom_repository.ex @@ -0,0 +1,53 @@ +# 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.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository do + @moduledoc """ + Customer-specified publicly available remote repository. + + ## Attributes + + * `uri` (*type:* `String.t`, *default:* `nil`) - An http/https uri reference to the upstream remote repository, for ex: "https://my.npm.registry/". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :uri => String.t() | nil + } + + field(:uri) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_python_repository_custom_repository.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_python_repository_custom_repository.ex new file mode 100644 index 0000000000..8840cea766 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_python_repository_custom_repository.ex @@ -0,0 +1,53 @@ +# 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.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository do + @moduledoc """ + Customer-specified publicly available remote repository. + + ## Attributes + + * `uri` (*type:* `String.t`, *default:* `nil`) - An http/https uri reference to the upstream remote repository, for ex: "https://my.python.registry/". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :uri => String.t() | nil + } + + field(:uri) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_yum_repository_custom_repository.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_yum_repository_custom_repository.ex new file mode 100644 index 0000000000..7cc28e096a --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_yum_repository_custom_repository.ex @@ -0,0 +1,53 @@ +# 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.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository do + @moduledoc """ + Customer-specified publicly available remote repository. + + ## Attributes + + * `uri` (*type:* `String.t`, *default:* `nil`) - An http/https uri reference to the upstream remote repository, for ex: "https://my.yum.registry/". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :uri => String.t() | nil + } + + field(:uri) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_yum_repository_public_repository.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_yum_repository_public_repository.ex new file mode 100644 index 0000000000..ad536b0464 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_remote_repository_config_yum_repository_public_repository.ex @@ -0,0 +1,56 @@ +# 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.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryPublicRepository do + @moduledoc """ + Publicly available Yum repositories constructed from a common repository base and a custom repository path. + + ## Attributes + + * `repositoryBase` (*type:* `String.t`, *default:* `nil`) - A common public repository base for Yum. + * `repositoryPath` (*type:* `String.t`, *default:* `nil`) - A custom field to define a path to a specific repository from the base. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :repositoryBase => String.t() | nil, + :repositoryPath => String.t() | nil + } + + field(:repositoryBase) + field(:repositoryPath) +end + +defimpl Poison.Decoder, + for: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryPublicRepository do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryPublicRepository.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryPublicRepository do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/import_googet_artifacts_error_info.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/import_googet_artifacts_error_info.ex new file mode 100644 index 0000000000..5ca30cff0d --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/import_googet_artifacts_error_info.ex @@ -0,0 +1,50 @@ +# 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.ArtifactRegistry.V1.Model.ImportGoogetArtifactsErrorInfo do + @moduledoc """ + Error information explaining why a package was not imported. + + ## Attributes + + * `error` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.Status.t`, *default:* `nil`) - The detailed error status. + * `gcsSource` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsGcsSource.t`, *default:* `nil`) - Google Cloud Storage location requested. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :error => GoogleApi.ArtifactRegistry.V1.Model.Status.t() | nil, + :gcsSource => + GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsGcsSource.t() | nil + } + + field(:error, as: GoogleApi.ArtifactRegistry.V1.Model.Status) + field(:gcsSource, as: GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsGcsSource) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsErrorInfo do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsErrorInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsErrorInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/import_googet_artifacts_gcs_source.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/import_googet_artifacts_gcs_source.ex new file mode 100644 index 0000000000..6468218e06 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/import_googet_artifacts_gcs_source.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.ArtifactRegistry.V1.Model.ImportGoogetArtifactsGcsSource do + @moduledoc """ + Google Cloud Storage location where the artifacts currently reside. + + ## Attributes + + * `uris` (*type:* `list(String.t)`, *default:* `nil`) - Cloud Storage paths URI (e.g., `gs://my_bucket/my_object`). + * `useWildcards` (*type:* `boolean()`, *default:* `nil`) - Supports URI wildcards for matching multiple objects from a single URI. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :uris => list(String.t()) | nil, + :useWildcards => boolean() | nil + } + + field(:uris, type: :list) + field(:useWildcards) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsGcsSource do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsGcsSource.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsGcsSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/import_googet_artifacts_metadata.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/import_googet_artifacts_metadata.ex new file mode 100644 index 0000000000..89b4fb1955 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/import_googet_artifacts_metadata.ex @@ -0,0 +1,41 @@ +# 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.ArtifactRegistry.V1.Model.ImportGoogetArtifactsMetadata do + @moduledoc """ + The operation metadata for importing artifacts. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsMetadata do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/import_googet_artifacts_request.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/import_googet_artifacts_request.ex new file mode 100644 index 0000000000..c7d11d1f96 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/import_googet_artifacts_request.ex @@ -0,0 +1,47 @@ +# 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.ArtifactRegistry.V1.Model.ImportGoogetArtifactsRequest do + @moduledoc """ + The request to import new googet artifacts. + + ## Attributes + + * `gcsSource` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsGcsSource.t`, *default:* `nil`) - Google Cloud Storage location where input content is located. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :gcsSource => + GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsGcsSource.t() | nil + } + + field(:gcsSource, as: GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsGcsSource) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsRequest do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/import_googet_artifacts_response.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/import_googet_artifacts_response.ex new file mode 100644 index 0000000000..109c1caea0 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/import_googet_artifacts_response.ex @@ -0,0 +1,54 @@ +# 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.ArtifactRegistry.V1.Model.ImportGoogetArtifactsResponse do + @moduledoc """ + The response message from importing artifacts. + + ## Attributes + + * `errors` (*type:* `list(GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsErrorInfo.t)`, *default:* `nil`) - Detailed error info for packages that were not imported. + * `googetArtifacts` (*type:* `list(GoogleApi.ArtifactRegistry.V1.Model.GoogetArtifact.t)`, *default:* `nil`) - The GooGet artifacts updated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :errors => + list(GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsErrorInfo.t()) | nil, + :googetArtifacts => list(GoogleApi.ArtifactRegistry.V1.Model.GoogetArtifact.t()) | nil + } + + field(:errors, + as: GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsErrorInfo, + type: :list + ) + + field(:googetArtifacts, as: GoogleApi.ArtifactRegistry.V1.Model.GoogetArtifact, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsResponse do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.ImportGoogetArtifactsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/kfp_artifact.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/kfp_artifact.ex index fbe9ab8b7f..dafe252aaa 100644 --- a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/kfp_artifact.ex +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/kfp_artifact.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.ArtifactRegistry.V1.Model.KfpArtifact do @moduledoc """ - A detailed representation of a GooGet artifact. + A detailed representation of a KFP artifact. ## Attributes diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/location.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/location.ex index 579512ad61..bc7f7627ac 100644 --- a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/location.ex +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/location.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.ArtifactRegistry.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/artifact_registry/lib/google_api/artifact_registry/v1/model/maven_repository.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/maven_repository.ex new file mode 100644 index 0000000000..a5b24c3433 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/maven_repository.ex @@ -0,0 +1,55 @@ +# 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.ArtifactRegistry.V1.Model.MavenRepository do + @moduledoc """ + Configuration for a Maven remote repository. + + ## Attributes + + * `customRepository` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository.t`, *default:* `nil`) - Customer-specified remote repository. + * `publicRepository` (*type:* `String.t`, *default:* `nil`) - One of the publicly available Maven repositories supported by Artifact Registry. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :customRepository => + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository.t() + | nil, + :publicRepository => String.t() | nil + } + + field(:customRepository, + as: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository + ) + + field(:publicRepository) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.MavenRepository do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.MavenRepository.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.MavenRepository do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/npm_repository.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/npm_repository.ex new file mode 100644 index 0000000000..eab2befa96 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/npm_repository.ex @@ -0,0 +1,55 @@ +# 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.ArtifactRegistry.V1.Model.NpmRepository do + @moduledoc """ + Configuration for a Npm remote repository. + + ## Attributes + + * `customRepository` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository.t`, *default:* `nil`) - Customer-specified remote repository. + * `publicRepository` (*type:* `String.t`, *default:* `nil`) - One of the publicly available Npm repositories supported by Artifact Registry. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :customRepository => + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository.t() + | nil, + :publicRepository => String.t() | nil + } + + field(:customRepository, + as: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository + ) + + field(:publicRepository) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.NpmRepository do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.NpmRepository.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.NpmRepository do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/operation.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/operation.ex index 2abb88a076..3351c0b51c 100644 --- a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/operation.ex +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/operation.ex @@ -25,7 +25,7 @@ defmodule GoogleApi.ArtifactRegistry.V1.Model.Operation do * `error` (*type:* `GoogleApi.ArtifactRegistry.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/artifact_registry/lib/google_api/artifact_registry/v1/model/package.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/package.ex index 00bb981001..8991ef9d52 100644 --- a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/package.ex +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/package.ex @@ -21,21 +21,24 @@ defmodule GoogleApi.ArtifactRegistry.V1.Model.Package do ## Attributes + * `annotations` (*type:* `map()`, *default:* `nil`) - Optional. Client specified annotations. * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the package was created. * `displayName` (*type:* `String.t`, *default:* `nil`) - The display name of the package. - * `name` (*type:* `String.t`, *default:* `nil`) - The name of the package, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1". If the package ID part contains slashes, the slashes are escaped. + * `name` (*type:* `String.t`, *default:* `nil`) - The name of the package, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. If the package ID part contains slashes, the slashes are escaped. * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the package was last updated. This includes publishing a new version of the package. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :annotations => map() | nil, :createTime => DateTime.t() | nil, :displayName => String.t() | nil, :name => String.t() | nil, :updateTime => DateTime.t() | nil } + field(:annotations, type: :map) field(:createTime, as: DateTime) field(:displayName) field(:name) diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/policy.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/policy.ex index a359936b31..978b5ce74e 100644 --- a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/policy.ex +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/policy.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.ArtifactRegistry.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/artifact_registry/lib/google_api/artifact_registry/v1/model/python_repository.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/python_repository.ex new file mode 100644 index 0000000000..3780838f0b --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/python_repository.ex @@ -0,0 +1,55 @@ +# 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.ArtifactRegistry.V1.Model.PythonRepository do + @moduledoc """ + Configuration for a Python remote repository. + + ## Attributes + + * `customRepository` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository.t`, *default:* `nil`) - Customer-specified remote repository. + * `publicRepository` (*type:* `String.t`, *default:* `nil`) - One of the publicly available Python repositories supported by Artifact Registry. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :customRepository => + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository.t() + | nil, + :publicRepository => String.t() | nil + } + + field(:customRepository, + as: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository + ) + + field(:publicRepository) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.PythonRepository do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.PythonRepository.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.PythonRepository do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/remote_repository_config.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/remote_repository_config.ex new file mode 100644 index 0000000000..f264c241b7 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/remote_repository_config.ex @@ -0,0 +1,71 @@ +# 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.ArtifactRegistry.V1.Model.RemoteRepositoryConfig do + @moduledoc """ + Remote repository configuration. + + ## Attributes + + * `aptRepository` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.AptRepository.t`, *default:* `nil`) - Specific settings for an Apt remote repository. + * `description` (*type:* `String.t`, *default:* `nil`) - The description of the remote source. + * `disableUpstreamValidation` (*type:* `boolean()`, *default:* `nil`) - Input only. A create/update remote repo option to avoid making a HEAD/GET request to validate a remote repo and any supplied upstream credentials. + * `dockerRepository` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.DockerRepository.t`, *default:* `nil`) - Specific settings for a Docker remote repository. + * `mavenRepository` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.MavenRepository.t`, *default:* `nil`) - Specific settings for a Maven remote repository. + * `npmRepository` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.NpmRepository.t`, *default:* `nil`) - Specific settings for an Npm remote repository. + * `pythonRepository` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.PythonRepository.t`, *default:* `nil`) - Specific settings for a Python remote repository. + * `upstreamCredentials` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.UpstreamCredentials.t`, *default:* `nil`) - Optional. The credentials used to access the remote repository. + * `yumRepository` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.YumRepository.t`, *default:* `nil`) - Specific settings for a Yum remote repository. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :aptRepository => GoogleApi.ArtifactRegistry.V1.Model.AptRepository.t() | nil, + :description => String.t() | nil, + :disableUpstreamValidation => boolean() | nil, + :dockerRepository => GoogleApi.ArtifactRegistry.V1.Model.DockerRepository.t() | nil, + :mavenRepository => GoogleApi.ArtifactRegistry.V1.Model.MavenRepository.t() | nil, + :npmRepository => GoogleApi.ArtifactRegistry.V1.Model.NpmRepository.t() | nil, + :pythonRepository => GoogleApi.ArtifactRegistry.V1.Model.PythonRepository.t() | nil, + :upstreamCredentials => + GoogleApi.ArtifactRegistry.V1.Model.UpstreamCredentials.t() | nil, + :yumRepository => GoogleApi.ArtifactRegistry.V1.Model.YumRepository.t() | nil + } + + field(:aptRepository, as: GoogleApi.ArtifactRegistry.V1.Model.AptRepository) + field(:description) + field(:disableUpstreamValidation) + field(:dockerRepository, as: GoogleApi.ArtifactRegistry.V1.Model.DockerRepository) + field(:mavenRepository, as: GoogleApi.ArtifactRegistry.V1.Model.MavenRepository) + field(:npmRepository, as: GoogleApi.ArtifactRegistry.V1.Model.NpmRepository) + field(:pythonRepository, as: GoogleApi.ArtifactRegistry.V1.Model.PythonRepository) + field(:upstreamCredentials, as: GoogleApi.ArtifactRegistry.V1.Model.UpstreamCredentials) + field(:yumRepository, as: GoogleApi.ArtifactRegistry.V1.Model.YumRepository) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.RemoteRepositoryConfig do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.RemoteRepositoryConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.RemoteRepositoryConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/repository.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/repository.ex index 6451ec46db..e486f7db4b 100644 --- a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/repository.ex +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/repository.ex @@ -21,43 +21,67 @@ defmodule GoogleApi.ArtifactRegistry.V1.Model.Repository do ## Attributes - * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the repository was created. + * `cleanupPolicies` (*type:* `%{optional(String.t) => GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicy.t}`, *default:* `nil`) - Optional. Cleanup policies for this repository. Cleanup policies indicate when certain package versions can be automatically deleted. Map keys are policy IDs supplied by users during policy creation. They must unique within a repository and be under 128 characters in length. + * `cleanupPolicyDryRun` (*type:* `boolean()`, *default:* `nil`) - Optional. If true, the cleanup pipeline is prevented from deleting versions in this repository. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the repository was created. * `description` (*type:* `String.t`, *default:* `nil`) - The user-provided description of the repository. - * `format` (*type:* `String.t`, *default:* `nil`) - The format of packages that are stored in the repository. + * `disallowUnspecifiedMode` (*type:* `boolean()`, *default:* `nil`) - Optional. If this is true, aunspecified repo type will be treated as error. Is used for new repo types that don't have any specific fields. Right now is used by AOSS team when creating repos for customers. + * `dockerConfig` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.DockerRepositoryConfig.t`, *default:* `nil`) - Docker repository config contains repository level configuration for the repositories of docker type. + * `format` (*type:* `String.t`, *default:* `nil`) - Optional. The format of packages that are stored in the repository. * `kmsKeyName` (*type:* `String.t`, *default:* `nil`) - The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form: `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. This value may not be changed after the Repository has been created. * `labels` (*type:* `map()`, *default:* `nil`) - Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes. * `mavenConfig` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.MavenRepositoryConfig.t`, *default:* `nil`) - Maven repository config contains repository level configuration for the repositories of maven type. - * `name` (*type:* `String.t`, *default:* `nil`) - The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1". + * `mode` (*type:* `String.t`, *default:* `nil`) - Optional. The mode of the repository. + * `name` (*type:* `String.t`, *default:* `nil`) - The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`. + * `remoteRepositoryConfig` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.RemoteRepositoryConfig.t`, *default:* `nil`) - Configuration specific for a Remote Repository. * `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - Output only. If set, the repository satisfies physical zone separation. * `sizeBytes` (*type:* `String.t`, *default:* `nil`) - Output only. The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs. - * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the repository was last updated. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the repository was last updated. + * `virtualRepositoryConfig` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.VirtualRepositoryConfig.t`, *default:* `nil`) - Configuration specific for a Virtual Repository. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :cleanupPolicies => + %{optional(String.t()) => GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicy.t()} | nil, + :cleanupPolicyDryRun => boolean() | nil, :createTime => DateTime.t() | nil, :description => String.t() | nil, + :disallowUnspecifiedMode => boolean() | nil, + :dockerConfig => GoogleApi.ArtifactRegistry.V1.Model.DockerRepositoryConfig.t() | nil, :format => String.t() | nil, :kmsKeyName => String.t() | nil, :labels => map() | nil, :mavenConfig => GoogleApi.ArtifactRegistry.V1.Model.MavenRepositoryConfig.t() | nil, + :mode => String.t() | nil, :name => String.t() | nil, + :remoteRepositoryConfig => + GoogleApi.ArtifactRegistry.V1.Model.RemoteRepositoryConfig.t() | nil, :satisfiesPzs => boolean() | nil, :sizeBytes => String.t() | nil, - :updateTime => DateTime.t() | nil + :updateTime => DateTime.t() | nil, + :virtualRepositoryConfig => + GoogleApi.ArtifactRegistry.V1.Model.VirtualRepositoryConfig.t() | nil } + field(:cleanupPolicies, as: GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicy, type: :map) + field(:cleanupPolicyDryRun) field(:createTime, as: DateTime) field(:description) + field(:disallowUnspecifiedMode) + field(:dockerConfig, as: GoogleApi.ArtifactRegistry.V1.Model.DockerRepositoryConfig) field(:format) field(:kmsKeyName) field(:labels, type: :map) field(:mavenConfig, as: GoogleApi.ArtifactRegistry.V1.Model.MavenRepositoryConfig) + field(:mode) field(:name) + field(:remoteRepositoryConfig, as: GoogleApi.ArtifactRegistry.V1.Model.RemoteRepositoryConfig) field(:satisfiesPzs) field(:sizeBytes) field(:updateTime, as: DateTime) + field(:virtualRepositoryConfig, as: GoogleApi.ArtifactRegistry.V1.Model.VirtualRepositoryConfig) end defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.Repository do diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_go_module_media_response.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_go_module_media_response.ex new file mode 100644 index 0000000000..8f7cd42155 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_go_module_media_response.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.ArtifactRegistry.V1.Model.UploadGoModuleMediaResponse do + @moduledoc """ + The response to upload a Go module. + + ## Attributes + + * `operation` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.Operation.t`, *default:* `nil`) - Operation to be returned to the user. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :operation => GoogleApi.ArtifactRegistry.V1.Model.Operation.t() | nil + } + + field(:operation, as: GoogleApi.ArtifactRegistry.V1.Model.Operation) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.UploadGoModuleMediaResponse do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.UploadGoModuleMediaResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.UploadGoModuleMediaResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_go_module_metadata.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_go_module_metadata.ex new file mode 100644 index 0000000000..72aa2cdeb1 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_go_module_metadata.ex @@ -0,0 +1,41 @@ +# 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.ArtifactRegistry.V1.Model.UploadGoModuleMetadata do + @moduledoc """ + The operation metadata for uploading go modules. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.UploadGoModuleMetadata do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.UploadGoModuleMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.UploadGoModuleMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_go_module_request.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_go_module_request.ex new file mode 100644 index 0000000000..98a297cb72 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_go_module_request.ex @@ -0,0 +1,41 @@ +# 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.ArtifactRegistry.V1.Model.UploadGoModuleRequest do + @moduledoc """ + The request to upload a Go module. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.UploadGoModuleRequest do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.UploadGoModuleRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.UploadGoModuleRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_googet_artifact_media_response.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_googet_artifact_media_response.ex new file mode 100644 index 0000000000..9fc9c10486 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_googet_artifact_media_response.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.ArtifactRegistry.V1.Model.UploadGoogetArtifactMediaResponse do + @moduledoc """ + The response to upload an artifact. + + ## Attributes + + * `operation` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.Operation.t`, *default:* `nil`) - Operation to be returned to the user. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :operation => GoogleApi.ArtifactRegistry.V1.Model.Operation.t() | nil + } + + field(:operation, as: GoogleApi.ArtifactRegistry.V1.Model.Operation) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactMediaResponse do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactMediaResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactMediaResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_googet_artifact_metadata.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_googet_artifact_metadata.ex new file mode 100644 index 0000000000..ca70e67709 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_googet_artifact_metadata.ex @@ -0,0 +1,41 @@ +# 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.ArtifactRegistry.V1.Model.UploadGoogetArtifactMetadata do + @moduledoc """ + The operation metadata for uploading artifacts. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactMetadata do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_googet_artifact_request.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_googet_artifact_request.ex new file mode 100644 index 0000000000..fb4c9f6af6 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_googet_artifact_request.ex @@ -0,0 +1,41 @@ +# 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.ArtifactRegistry.V1.Model.UploadGoogetArtifactRequest do + @moduledoc """ + The request to upload an artifact. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactRequest do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_googet_artifact_response.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_googet_artifact_response.ex new file mode 100644 index 0000000000..b4320135c5 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_googet_artifact_response.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.ArtifactRegistry.V1.Model.UploadGoogetArtifactResponse do + @moduledoc """ + The response of the completed artifact upload operation. This response is contained in the Operation and available to users. + + ## Attributes + + * `googetArtifacts` (*type:* `list(GoogleApi.ArtifactRegistry.V1.Model.GoogetArtifact.t)`, *default:* `nil`) - The GooGet artifacts updated. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :googetArtifacts => list(GoogleApi.ArtifactRegistry.V1.Model.GoogetArtifact.t()) | nil + } + + field(:googetArtifacts, as: GoogleApi.ArtifactRegistry.V1.Model.GoogetArtifact, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactResponse do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.UploadGoogetArtifactResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_yum_artifact_response.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_yum_artifact_response.ex index e551a12612..3d4597cfee 100644 --- a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_yum_artifact_response.ex +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upload_yum_artifact_response.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.ArtifactRegistry.V1.Model.UploadYumArtifactResponse do ## Attributes - * `yumArtifacts` (*type:* `list(GoogleApi.ArtifactRegistry.V1.Model.YumArtifact.t)`, *default:* `nil`) - The Apt artifacts updated. + * `yumArtifacts` (*type:* `list(GoogleApi.ArtifactRegistry.V1.Model.YumArtifact.t)`, *default:* `nil`) - The Yum artifacts updated. """ use GoogleApi.Gax.ModelBase diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upstream_credentials.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upstream_credentials.ex new file mode 100644 index 0000000000..108539553a --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upstream_credentials.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.ArtifactRegistry.V1.Model.UpstreamCredentials do + @moduledoc """ + The credentials to access the remote repository. + + ## Attributes + + * `usernamePasswordCredentials` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.UsernamePasswordCredentials.t`, *default:* `nil`) - Use username and password to access the remote repository. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :usernamePasswordCredentials => + GoogleApi.ArtifactRegistry.V1.Model.UsernamePasswordCredentials.t() | nil + } + + field(:usernamePasswordCredentials, + as: GoogleApi.ArtifactRegistry.V1.Model.UsernamePasswordCredentials + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.UpstreamCredentials do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.UpstreamCredentials.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.UpstreamCredentials do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upstream_policy.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upstream_policy.ex new file mode 100644 index 0000000000..9a91d9aafc --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/upstream_policy.ex @@ -0,0 +1,52 @@ +# 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.ArtifactRegistry.V1.Model.UpstreamPolicy do + @moduledoc """ + Artifact policy configuration for the repository contents. + + ## Attributes + + * `id` (*type:* `String.t`, *default:* `nil`) - The user-provided ID of the upstream policy. + * `priority` (*type:* `integer()`, *default:* `nil`) - Entries with a greater priority value take precedence in the pull order. + * `repository` (*type:* `String.t`, *default:* `nil`) - A reference to the repository resource, for example: `projects/p1/locations/us-central1/repositories/repo1`. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :id => String.t() | nil, + :priority => integer() | nil, + :repository => String.t() | nil + } + + field(:id) + field(:priority) + field(:repository) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.UpstreamPolicy do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.UpstreamPolicy.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.UpstreamPolicy do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/username_password_credentials.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/username_password_credentials.ex new file mode 100644 index 0000000000..c25c48e70a --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/username_password_credentials.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.ArtifactRegistry.V1.Model.UsernamePasswordCredentials do + @moduledoc """ + Username and password credentials. + + ## Attributes + + * `passwordSecretVersion` (*type:* `String.t`, *default:* `nil`) - The Secret Manager key version that holds the password to access the remote repository. Must be in the format of `projects/{project}/secrets/{secret}/versions/{version}`. + * `username` (*type:* `String.t`, *default:* `nil`) - The username to access the remote repository. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :passwordSecretVersion => String.t() | nil, + :username => String.t() | nil + } + + field(:passwordSecretVersion) + field(:username) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.UsernamePasswordCredentials do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.UsernamePasswordCredentials.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.UsernamePasswordCredentials do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/virtual_repository_config.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/virtual_repository_config.ex new file mode 100644 index 0000000000..b79dfe68da --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/virtual_repository_config.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.ArtifactRegistry.V1.Model.VirtualRepositoryConfig do + @moduledoc """ + Virtual repository configuration. + + ## Attributes + + * `upstreamPolicies` (*type:* `list(GoogleApi.ArtifactRegistry.V1.Model.UpstreamPolicy.t)`, *default:* `nil`) - Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :upstreamPolicies => list(GoogleApi.ArtifactRegistry.V1.Model.UpstreamPolicy.t()) | nil + } + + field(:upstreamPolicies, as: GoogleApi.ArtifactRegistry.V1.Model.UpstreamPolicy, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.VirtualRepositoryConfig do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.VirtualRepositoryConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.VirtualRepositoryConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/vpcsc_config.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/vpcsc_config.ex new file mode 100644 index 0000000000..cee687b3e9 --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/vpcsc_config.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.ArtifactRegistry.V1.Model.VPCSCConfig do + @moduledoc """ + The Artifact Registry VPC SC config that apply to a Project. + + ## Attributes + + * `name` (*type:* `String.t`, *default:* `nil`) - The name of the project's VPC SC Config. Always of the form: projects/{projectID}/locations/{location}/vpcscConfig In update request: never set In response: always set + * `vpcscPolicy` (*type:* `String.t`, *default:* `nil`) - The project per location VPC SC policy that defines the VPC SC behavior for the Remote Repository (Allow/Deny). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :name => String.t() | nil, + :vpcscPolicy => String.t() | nil + } + + field(:name) + field(:vpcscPolicy) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.VPCSCConfig do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.VPCSCConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.VPCSCConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/yum_repository.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/yum_repository.ex new file mode 100644 index 0000000000..4b9545bada --- /dev/null +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1/model/yum_repository.ex @@ -0,0 +1,60 @@ +# 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.ArtifactRegistry.V1.Model.YumRepository do + @moduledoc """ + Configuration for a Yum remote repository. + + ## Attributes + + * `customRepository` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository.t`, *default:* `nil`) - Customer-specified remote repository. + * `publicRepository` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryPublicRepository.t`, *default:* `nil`) - One of the publicly available Yum repositories supported by Artifact Registry. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :customRepository => + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository.t() + | nil, + :publicRepository => + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryPublicRepository.t() + | nil + } + + field(:customRepository, + as: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository + ) + + field(:publicRepository, + as: + GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryPublicRepository + ) +end + +defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.YumRepository do + def decode(value, options) do + GoogleApi.ArtifactRegistry.V1.Model.YumRepository.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.YumRepository do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/api/projects.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/api/projects.ex index aaa60f9b2b..0fc2140633 100644 --- a/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/api/projects.ex +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/api/projects.ex @@ -278,7 +278,7 @@ defmodule GoogleApi.ArtifactRegistry.V1beta1.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"). - * `:repositoryId` (*type:* `String.t`) - The repository id to use for this repository. + * `:repositoryId` (*type:* `String.t`) - Required. The repository id to use for this repository. * `:body` (*type:* `GoogleApi.ArtifactRegistry.V1beta1.Model.Repository.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -667,7 +667,7 @@ defmodule GoogleApi.ArtifactRegistry.V1beta1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1beta1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `repository.name`. The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1". + * `projects_id` (*type:* `String.t`) - Part of `repository.name`. The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`. * `locations_id` (*type:* `String.t`) - Part of `repository.name`. See documentation of `projectsId`. * `repositories_id` (*type:* `String.t`) - Part of `repository.name`. See documentation of `projectsId`. * `optional_params` (*type:* `keyword()`) - Optional parameters @@ -920,7 +920,7 @@ defmodule GoogleApi.ArtifactRegistry.V1beta1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1beta1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `name`. The name of the file to retrieve. + * `projects_id` (*type:* `String.t`) - Part of `name`. Required. The name of the file to retrieve. * `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. * `repositories_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. * `files_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`. @@ -1005,7 +1005,7 @@ defmodule GoogleApi.ArtifactRegistry.V1beta1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1beta1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `parent`. The name of the repository whose files will be listed. For example: "projects/p1/locations/us-central1/repositories/repo1 + * `projects_id` (*type:* `String.t`) - Part of `parent`. Required. The name of the repository whose files will be listed. For example: "projects/p1/locations/us-central1/repositories/repo1 * `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. * `repositories_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. * `optional_params` (*type:* `keyword()`) - Optional parameters @@ -1618,7 +1618,7 @@ defmodule GoogleApi.ArtifactRegistry.V1beta1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.ArtifactRegistry.V1beta1.Connection.t`) - Connection to server - * `projects_id` (*type:* `String.t`) - Part of `parent`. The name of the parent resource whose tags will be listed. + * `projects_id` (*type:* `String.t`) - Part of `parent`. The name of the parent package whose tags will be listed. For example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. * `locations_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. * `repositories_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. * `packages_id` (*type:* `String.t`) - Part of `parent`. See documentation of `projectsId`. diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/metadata.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/metadata.ex index 3ea8094fd6..c89b8b06ee 100644 --- a/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/metadata.ex +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.ArtifactRegistry.V1beta1 do API client metadata for GoogleApi.ArtifactRegistry.V1beta1. """ - @discovery_revision "20221022" + @discovery_revision "20240308" def discovery_revision(), do: @discovery_revision end diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/binding.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/binding.ex index 5569de9ab6..25fa4f663b 100644 --- a/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/binding.ex +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/binding.ex @@ -22,8 +22,8 @@ defmodule GoogleApi.ArtifactRegistry.V1beta1.Model.Binding do ## Attributes * `condition` (*type:* `GoogleApi.ArtifactRegistry.V1beta1.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/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/file.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/file.ex index 9f3100337a..673df1fa98 100644 --- a/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/file.ex +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/file.ex @@ -21,12 +21,12 @@ defmodule GoogleApi.ArtifactRegistry.V1beta1.Model.File do ## Attributes - * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the File was created. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the File was created. * `hashes` (*type:* `list(GoogleApi.ArtifactRegistry.V1beta1.Model.Hash.t)`, *default:* `nil`) - The hashes of the file content. * `name` (*type:* `String.t`, *default:* `nil`) - The name of the file, for example: "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt". If the file ID part contains slashes, they are escaped. * `owner` (*type:* `String.t`, *default:* `nil`) - The name of the Package or Version that owns this file, if any. * `sizeBytes` (*type:* `String.t`, *default:* `nil`) - The size of the File in bytes. - * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the File was last updated. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the File was last updated. """ use GoogleApi.Gax.ModelBase diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/location.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/location.ex index 675f26556c..dae25feb7d 100644 --- a/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/location.ex +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/location.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.ArtifactRegistry.V1beta1.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/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/operation.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/operation.ex index 12b067a666..856ac7b377 100644 --- a/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/operation.ex +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/operation.ex @@ -25,7 +25,7 @@ defmodule GoogleApi.ArtifactRegistry.V1beta1.Model.Operation do * `error` (*type:* `GoogleApi.ArtifactRegistry.V1beta1.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/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/package.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/package.ex index 753ba098fd..67ab4dec7a 100644 --- a/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/package.ex +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/package.ex @@ -23,7 +23,7 @@ defmodule GoogleApi.ArtifactRegistry.V1beta1.Model.Package do * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the package was created. * `displayName` (*type:* `String.t`, *default:* `nil`) - The display name of the package. - * `name` (*type:* `String.t`, *default:* `nil`) - The name of the package, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1". If the package ID part contains slashes, the slashes are escaped. + * `name` (*type:* `String.t`, *default:* `nil`) - The name of the package, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. If the package ID part contains slashes, the slashes are escaped. * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the package was last updated. This includes publishing a new version of the package. """ diff --git a/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/policy.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/policy.ex index ae90d45096..34f3227569 100644 --- a/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/policy.ex +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/policy.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.ArtifactRegistry.V1beta1.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/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/repository.ex b/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/repository.ex index 9f7f672def..f94119ae73 100644 --- a/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/repository.ex +++ b/clients/artifact_registry/lib/google_api/artifact_registry/v1beta1/model/repository.ex @@ -21,15 +21,15 @@ defmodule GoogleApi.ArtifactRegistry.V1beta1.Model.Repository do ## Attributes - * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the repository was created. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the repository was created. * `description` (*type:* `String.t`, *default:* `nil`) - The user-provided description of the repository. - * `format` (*type:* `String.t`, *default:* `nil`) - The format of packages that are stored in the repository. + * `format` (*type:* `String.t`, *default:* `nil`) - Optional. The format of packages that are stored in the repository. * `kmsKeyName` (*type:* `String.t`, *default:* `nil`) - The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form: `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. This value may not be changed after the Repository has been created. * `labels` (*type:* `map()`, *default:* `nil`) - Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes. - * `name` (*type:* `String.t`, *default:* `nil`) - The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1". + * `name` (*type:* `String.t`, *default:* `nil`) - The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`. * `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - Output only. If set, the repository satisfies physical zone separation. * `sizeBytes` (*type:* `String.t`, *default:* `nil`) - Output only. The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs. - * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the repository was last updated. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the repository was last updated. """ use GoogleApi.Gax.ModelBase