diff --git a/clients/cloud_deploy/README.md b/clients/cloud_deploy/README.md index 92b1463b26..bda3b98eac 100644 --- a/clients/cloud_deploy/README.md +++ b/clients/cloud_deploy/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_cloud_deploy, "~> 0.6"}] + [{:google_api_cloud_deploy, "~> 0.7"}] end ``` diff --git a/clients/cloud_deploy/lib/google_api/cloud_deploy/v1/metadata.ex b/clients/cloud_deploy/lib/google_api/cloud_deploy/v1/metadata.ex index 7b906fd336..33f0f9a3d8 100644 --- a/clients/cloud_deploy/lib/google_api/cloud_deploy/v1/metadata.ex +++ b/clients/cloud_deploy/lib/google_api/cloud_deploy/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.CloudDeploy.V1 do API client metadata for GoogleApi.CloudDeploy.V1. """ - @discovery_revision "20240228" + @discovery_revision "20240417" def discovery_revision(), do: @discovery_revision end diff --git a/clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/skaffold_gcb_repo_source.ex b/clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/skaffold_gcb_repo_source.ex new file mode 100644 index 0000000000..d54f073d1c --- /dev/null +++ b/clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/skaffold_gcb_repo_source.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.CloudDeploy.V1.Model.SkaffoldGCBRepoSource do + @moduledoc """ + Cloud Build V2 Repository containing Skaffold Configs. + + ## Attributes + + * `path` (*type:* `String.t`, *default:* `nil`) - Optional. Relative path from the repository root to the Skaffold Config file. + * `ref` (*type:* `String.t`, *default:* `nil`) - Optional. Branch or tag to use when cloning the repository. + * `repository` (*type:* `String.t`, *default:* `nil`) - Required. Name of the Cloud Build V2 Repository. Format is projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :path => String.t() | nil, + :ref => String.t() | nil, + :repository => String.t() | nil + } + + field(:path) + field(:ref) + field(:repository) +end + +defimpl Poison.Decoder, for: GoogleApi.CloudDeploy.V1.Model.SkaffoldGCBRepoSource do + def decode(value, options) do + GoogleApi.CloudDeploy.V1.Model.SkaffoldGCBRepoSource.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.CloudDeploy.V1.Model.SkaffoldGCBRepoSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/skaffold_git_source.ex b/clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/skaffold_git_source.ex index 5d8be13dc4..cb9b04c68c 100644 --- a/clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/skaffold_git_source.ex +++ b/clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/skaffold_git_source.ex @@ -22,7 +22,7 @@ defmodule GoogleApi.CloudDeploy.V1.Model.SkaffoldGitSource do ## Attributes * `path` (*type:* `String.t`, *default:* `nil`) - Optional. Relative path from the repository root to the Skaffold file. - * `ref` (*type:* `String.t`, *default:* `nil`) - Optional. Git ref the package should be cloned from. + * `ref` (*type:* `String.t`, *default:* `nil`) - Optional. Git branch or tag to use when cloning the repository. * `repo` (*type:* `String.t`, *default:* `nil`) - Required. Git repository the package should be cloned from. """ diff --git a/clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/skaffold_modules.ex b/clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/skaffold_modules.ex index 2f7a68322e..7f8ffea014 100644 --- a/clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/skaffold_modules.ex +++ b/clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/skaffold_modules.ex @@ -23,6 +23,7 @@ defmodule GoogleApi.CloudDeploy.V1.Model.SkaffoldModules do * `configs` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The Skaffold Config modules to use from the specified source. * `git` (*type:* `GoogleApi.CloudDeploy.V1.Model.SkaffoldGitSource.t`, *default:* `nil`) - Remote git repository containing the Skaffold Config modules. + * `googleCloudBuildRepo` (*type:* `GoogleApi.CloudDeploy.V1.Model.SkaffoldGCBRepoSource.t`, *default:* `nil`) - Cloud Build V2 repository containing the Skaffold Config modules. * `googleCloudStorage` (*type:* `GoogleApi.CloudDeploy.V1.Model.SkaffoldGCSSource.t`, *default:* `nil`) - Cloud Storage bucket containing the Skaffold Config modules. """ @@ -31,11 +32,13 @@ defmodule GoogleApi.CloudDeploy.V1.Model.SkaffoldModules do @type t :: %__MODULE__{ :configs => list(String.t()) | nil, :git => GoogleApi.CloudDeploy.V1.Model.SkaffoldGitSource.t() | nil, + :googleCloudBuildRepo => GoogleApi.CloudDeploy.V1.Model.SkaffoldGCBRepoSource.t() | nil, :googleCloudStorage => GoogleApi.CloudDeploy.V1.Model.SkaffoldGCSSource.t() | nil } field(:configs, type: :list) field(:git, as: GoogleApi.CloudDeploy.V1.Model.SkaffoldGitSource) + field(:googleCloudBuildRepo, as: GoogleApi.CloudDeploy.V1.Model.SkaffoldGCBRepoSource) field(:googleCloudStorage, as: GoogleApi.CloudDeploy.V1.Model.SkaffoldGCSSource) end diff --git a/clients/cloud_deploy/mix.exs b/clients/cloud_deploy/mix.exs index e74721a705..2f7eabb170 100644 --- a/clients/cloud_deploy/mix.exs +++ b/clients/cloud_deploy/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.CloudDeploy.Mixfile do use Mix.Project - @version "0.6.0" + @version "0.7.0" def project() do [