diff --git a/clients/cloud_build/README.md b/clients/cloud_build/README.md index 5bff14671c..87750c7df1 100644 --- a/clients/cloud_build/README.md +++ b/clients/cloud_build/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_cloud_build, "~> 0.31"}] + [{:google_api_cloud_build, "~> 0.32"}] end ``` diff --git a/clients/cloud_build/lib/google_api/cloud_build/v1/connection.ex b/clients/cloud_build/lib/google_api/cloud_build/v1/connection.ex index 6d895528f5..d193833bbd 100644 --- a/clients/cloud_build/lib/google_api/cloud_build/v1/connection.ex +++ b/clients/cloud_build/lib/google_api/cloud_build/v1/connection.ex @@ -24,7 +24,7 @@ defmodule GoogleApi.CloudBuild.V1.Connection do use GoogleApi.Gax.Connection, scopes: [ - # View and manage your data across Google Cloud Platform services + # See, edit, configure, and delete your Google Cloud Platform data "https://www.googleapis.com/auth/cloud-platform" ], otp_app: :google_api_cloud_build, diff --git a/clients/cloud_build/lib/google_api/cloud_build/v1/metadata.ex b/clients/cloud_build/lib/google_api/cloud_build/v1/metadata.ex index 82fe48b2e6..002277c424 100644 --- a/clients/cloud_build/lib/google_api/cloud_build/v1/metadata.ex +++ b/clients/cloud_build/lib/google_api/cloud_build/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.CloudBuild.V1 do API client metadata for GoogleApi.CloudBuild.V1. """ - @discovery_revision "20210225" + @discovery_revision "20210319" def discovery_revision(), do: @discovery_revision end diff --git a/clients/cloud_build/lib/google_api/cloud_build/v1/model/source.ex b/clients/cloud_build/lib/google_api/cloud_build/v1/model/source.ex index 0c9ec9ce03..56cba8bf12 100644 --- a/clients/cloud_build/lib/google_api/cloud_build/v1/model/source.ex +++ b/clients/cloud_build/lib/google_api/cloud_build/v1/model/source.ex @@ -23,17 +23,20 @@ defmodule GoogleApi.CloudBuild.V1.Model.Source do * `repoSource` (*type:* `GoogleApi.CloudBuild.V1.Model.RepoSource.t`, *default:* `nil`) - If provided, get the source from this location in a Cloud Source Repository. * `storageSource` (*type:* `GoogleApi.CloudBuild.V1.Model.StorageSource.t`, *default:* `nil`) - If provided, get the source from this location in Google Cloud Storage. + * `storageSourceManifest` (*type:* `GoogleApi.CloudBuild.V1.Model.StorageSourceManifest.t`, *default:* `nil`) - If provided, get the source from this manifest in Google Cloud Storage. This feature is in Preview. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :repoSource => GoogleApi.CloudBuild.V1.Model.RepoSource.t() | nil, - :storageSource => GoogleApi.CloudBuild.V1.Model.StorageSource.t() | nil + :storageSource => GoogleApi.CloudBuild.V1.Model.StorageSource.t() | nil, + :storageSourceManifest => GoogleApi.CloudBuild.V1.Model.StorageSourceManifest.t() | nil } field(:repoSource, as: GoogleApi.CloudBuild.V1.Model.RepoSource) field(:storageSource, as: GoogleApi.CloudBuild.V1.Model.StorageSource) + field(:storageSourceManifest, as: GoogleApi.CloudBuild.V1.Model.StorageSourceManifest) end defimpl Poison.Decoder, for: GoogleApi.CloudBuild.V1.Model.Source do diff --git a/clients/cloud_build/lib/google_api/cloud_build/v1/model/source_provenance.ex b/clients/cloud_build/lib/google_api/cloud_build/v1/model/source_provenance.ex index 8f0e1b6463..546fb48d86 100644 --- a/clients/cloud_build/lib/google_api/cloud_build/v1/model/source_provenance.ex +++ b/clients/cloud_build/lib/google_api/cloud_build/v1/model/source_provenance.ex @@ -24,6 +24,7 @@ defmodule GoogleApi.CloudBuild.V1.Model.SourceProvenance do * `fileHashes` (*type:* `%{optional(String.t) => GoogleApi.CloudBuild.V1.Model.FileHashes.t}`, *default:* `nil`) - Output only. Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. Note that `FileHashes` will only be populated if `BuildOptions` has requested a `SourceProvenanceHash`. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (`.tar.gz`), the `FileHash` will be for the single path to that file. * `resolvedRepoSource` (*type:* `GoogleApi.CloudBuild.V1.Model.RepoSource.t`, *default:* `nil`) - A copy of the build's `source.repo_source`, if exists, with any revisions resolved. * `resolvedStorageSource` (*type:* `GoogleApi.CloudBuild.V1.Model.StorageSource.t`, *default:* `nil`) - A copy of the build's `source.storage_source`, if exists, with any generations resolved. + * `resolvedStorageSourceManifest` (*type:* `GoogleApi.CloudBuild.V1.Model.StorageSourceManifest.t`, *default:* `nil`) - A copy of the build's `source.storage_source_manifest`, if exists, with any revisions resolved. This feature is in Preview. """ use GoogleApi.Gax.ModelBase @@ -32,12 +33,15 @@ defmodule GoogleApi.CloudBuild.V1.Model.SourceProvenance do :fileHashes => %{optional(String.t()) => GoogleApi.CloudBuild.V1.Model.FileHashes.t()} | nil, :resolvedRepoSource => GoogleApi.CloudBuild.V1.Model.RepoSource.t() | nil, - :resolvedStorageSource => GoogleApi.CloudBuild.V1.Model.StorageSource.t() | nil + :resolvedStorageSource => GoogleApi.CloudBuild.V1.Model.StorageSource.t() | nil, + :resolvedStorageSourceManifest => + GoogleApi.CloudBuild.V1.Model.StorageSourceManifest.t() | nil } field(:fileHashes, as: GoogleApi.CloudBuild.V1.Model.FileHashes, type: :map) field(:resolvedRepoSource, as: GoogleApi.CloudBuild.V1.Model.RepoSource) field(:resolvedStorageSource, as: GoogleApi.CloudBuild.V1.Model.StorageSource) + field(:resolvedStorageSourceManifest, as: GoogleApi.CloudBuild.V1.Model.StorageSourceManifest) end defimpl Poison.Decoder, for: GoogleApi.CloudBuild.V1.Model.SourceProvenance do diff --git a/clients/cloud_build/lib/google_api/cloud_build/v1/model/storage_source_manifest.ex b/clients/cloud_build/lib/google_api/cloud_build/v1/model/storage_source_manifest.ex new file mode 100644 index 0000000000..33b9c073a6 --- /dev/null +++ b/clients/cloud_build/lib/google_api/cloud_build/v1/model/storage_source_manifest.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.CloudBuild.V1.Model.StorageSourceManifest do + @moduledoc """ + Location of the source manifest in Google Cloud Storage. This feature is in Preview. + + ## Attributes + + * `bucket` (*type:* `String.t`, *default:* `nil`) - Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). + * `generation` (*type:* `String.t`, *default:* `nil`) - Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used. + * `object` (*type:* `String.t`, *default:* `nil`) - Google Cloud Storage object containing the source manifest. This object must be a JSON file. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :bucket => String.t() | nil, + :generation => String.t() | nil, + :object => String.t() | nil + } + + field(:bucket) + field(:generation) + field(:object) +end + +defimpl Poison.Decoder, for: GoogleApi.CloudBuild.V1.Model.StorageSourceManifest do + def decode(value, options) do + GoogleApi.CloudBuild.V1.Model.StorageSourceManifest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.CloudBuild.V1.Model.StorageSourceManifest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/cloud_build/mix.exs b/clients/cloud_build/mix.exs index fc0e85397e..784de302e6 100644 --- a/clients/cloud_build/mix.exs +++ b/clients/cloud_build/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.CloudBuild.Mixfile do use Mix.Project - @version "0.31.0" + @version "0.32.0" def project() do [ diff --git a/clients/cloud_build/synth.metadata b/clients/cloud_build/synth.metadata index 85a161f8ac..ee2f65488b 100644 --- a/clients/cloud_build/synth.metadata +++ b/clients/cloud_build/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/elixir-google-api.git", - "sha": "d598d6733e04fe90c7271262d7306bdbaf3071f8" + "sha": "9b6f6214236cf1fb1429f5d125c826b3dccbb4e4" } } ]