Skip to content

Commit

Permalink
Regenerate CloudBuild client (#7687)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈


<details><summary>Log from Synthtool</summary>

```
2021-03-24 05:25:51,928 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-cloudbuild
nothing to commit, working tree clean
2021-03-24 05:25:53,550 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmpjzd_qunu/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh CloudBuild
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmpjzd_qunu/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh CloudBuild
/workspace /workspace
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
  certifi 2.5.1
  google_api_discovery 0.7.0
  google_gax 0.3.2
  hackney 1.15.2
  idna 6.0.0
  jason 1.2.1
  metrics 1.0.1
  mime 1.3.1
  mimerl 1.2.0
  oauth2 0.9.4
  parse_trans 3.3.0
  poison 3.1.0
  ssl_verify_fun 1.1.5
  temp 0.4.7
  tesla 1.3.3
  unicode_util_compat 0.4.1
* Getting google_api_discovery (Hex package)
* Getting tesla (Hex package)
* Getting oauth2 (Hex package)
* Getting temp (Hex package)
* Getting jason (Hex package)
* Getting poison (Hex package)
* Getting hackney (Hex package)
* Getting certifi (Hex package)
* Getting idna (Hex package)
* Getting metrics (Hex package)
* Getting mimerl (Hex package)
* Getting ssl_verify_fun (Hex package)
* Getting unicode_util_compat (Hex package)
* Getting parse_trans (Hex package)
* Getting mime (Hex package)
* Getting google_gax (Hex package)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> temp
Compiling 3 files (.ex)
Generated temp app
===> Compiling parse_trans
===> Compiling mimerl
===> Compiling metrics
===> Compiling unicode_util_compat
===> Compiling idna
==> jason
Compiling 8 files (.ex)
Generated jason app
warning: String.strip/1 is deprecated. Use String.trim/1 instead
  /workspace/deps/poison/mix.exs:4

==> poison
Compiling 4 files (.ex)
warning: Integer.to_char_list/2 is deprecated. Use Integer.to_charlist/2 instead
  lib/poison/encoder.ex:173

Generated poison app
==> ssl_verify_fun
Compiling 7 files (.erl)
Generated ssl_verify_fun app
===> Compiling certifi
===> Compiling hackney
==> oauth2
Compiling 13 files (.ex)
Generated oauth2 app
==> mime
Compiling 2 files (.ex)
Generated mime app
==> tesla
Compiling 26 files (.ex)
Generated tesla app
==> google_gax
Compiling 5 files (.ex)
Generated google_gax app
==> google_api_discovery
Compiling 21 files (.ex)
Generated google_api_discovery app
==> google_apis
Compiling 28 files (.ex)
Generated google_apis app

12:26:21.731 [info]  FETCHING: https://cloudbuild.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1

12:26:22.050 [info]  FOUND: https://cloudbuild.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1
Revision check: old=20210225, new=20210319, generating=true
Creating leading directories
Writing ArtifactObjects to clients/cloud_build/lib/google_api/cloud_build/v1/model/artifact_objects.ex.
Writing ArtifactResult to clients/cloud_build/lib/google_api/cloud_build/v1/model/artifact_result.ex.
Writing Artifacts to clients/cloud_build/lib/google_api/cloud_build/v1/model/artifacts.ex.
Writing Build to clients/cloud_build/lib/google_api/cloud_build/v1/model/build.ex.
Writing BuildOperationMetadata to clients/cloud_build/lib/google_api/cloud_build/v1/model/build_operation_metadata.ex.
Writing BuildOptions to clients/cloud_build/lib/google_api/cloud_build/v1/model/build_options.ex.
Writing BuildStep to clients/cloud_build/lib/google_api/cloud_build/v1/model/build_step.ex.
Writing BuildTrigger to clients/cloud_build/lib/google_api/cloud_build/v1/model/build_trigger.ex.
Writing BuiltImage to clients/cloud_build/lib/google_api/cloud_build/v1/model/built_image.ex.
Writing CancelBuildRequest to clients/cloud_build/lib/google_api/cloud_build/v1/model/cancel_build_request.ex.
Writing CancelOperationRequest to clients/cloud_build/lib/google_api/cloud_build/v1/model/cancel_operation_request.ex.
Writing Empty to clients/cloud_build/lib/google_api/cloud_build/v1/model/empty.ex.
Writing FileHashes to clients/cloud_build/lib/google_api/cloud_build/v1/model/file_hashes.ex.
Writing GitHubEventsConfig to clients/cloud_build/lib/google_api/cloud_build/v1/model/git_hub_events_config.ex.
Writing HTTPDelivery to clients/cloud_build/lib/google_api/cloud_build/v1/model/http_delivery.ex.
Writing Hash to clients/cloud_build/lib/google_api/cloud_build/v1/model/hash.ex.
Writing HttpBody to clients/cloud_build/lib/google_api/cloud_build/v1/model/http_body.ex.
Writing InlineSecret to clients/cloud_build/lib/google_api/cloud_build/v1/model/inline_secret.ex.
Writing ListBuildTriggersResponse to clients/cloud_build/lib/google_api/cloud_build/v1/model/list_build_triggers_response.ex.
Writing ListBuildsResponse to clients/cloud_build/lib/google_api/cloud_build/v1/model/list_builds_response.ex.
Writing Notification to clients/cloud_build/lib/google_api/cloud_build/v1/model/notification.ex.
Writing NotifierConfig to clients/cloud_build/lib/google_api/cloud_build/v1/model/notifier_config.ex.
Writing NotifierMetadata to clients/cloud_build/lib/google_api/cloud_build/v1/model/notifier_metadata.ex.
Writing NotifierSecret to clients/cloud_build/lib/google_api/cloud_build/v1/model/notifier_secret.ex.
Writing NotifierSecretRef to clients/cloud_build/lib/google_api/cloud_build/v1/model/notifier_secret_ref.ex.
Writing NotifierSpec to clients/cloud_build/lib/google_api/cloud_build/v1/model/notifier_spec.ex.
Writing Operation to clients/cloud_build/lib/google_api/cloud_build/v1/model/operation.ex.
Writing PullRequestFilter to clients/cloud_build/lib/google_api/cloud_build/v1/model/pull_request_filter.ex.
Writing PushFilter to clients/cloud_build/lib/google_api/cloud_build/v1/model/push_filter.ex.
Writing ReceiveTriggerWebhookResponse to clients/cloud_build/lib/google_api/cloud_build/v1/model/receive_trigger_webhook_response.ex.
Writing RepoSource to clients/cloud_build/lib/google_api/cloud_build/v1/model/repo_source.ex.
Writing Results to clients/cloud_build/lib/google_api/cloud_build/v1/model/results.ex.
Writing RetryBuildRequest to clients/cloud_build/lib/google_api/cloud_build/v1/model/retry_build_request.ex.
Writing SMTPDelivery to clients/cloud_build/lib/google_api/cloud_build/v1/model/smtp_delivery.ex.
Writing Secret to clients/cloud_build/lib/google_api/cloud_build/v1/model/secret.ex.
Writing SecretManagerSecret to clients/cloud_build/lib/google_api/cloud_build/v1/model/secret_manager_secret.ex.
Writing Secrets to clients/cloud_build/lib/google_api/cloud_build/v1/model/secrets.ex.
Writing SlackDelivery to clients/cloud_build/lib/google_api/cloud_build/v1/model/slack_delivery.ex.
Writing Source to clients/cloud_build/lib/google_api/cloud_build/v1/model/source.ex.
Writing SourceProvenance to clients/cloud_build/lib/google_api/cloud_build/v1/model/source_provenance.ex.
Writing Status to clients/cloud_build/lib/google_api/cloud_build/v1/model/status.ex.
Writing StorageSource to clients/cloud_build/lib/google_api/cloud_build/v1/model/storage_source.ex.
Writing StorageSourceManifest to clients/cloud_build/lib/google_api/cloud_build/v1/model/storage_source_manifest.ex.
Writing TimeSpan to clients/cloud_build/lib/google_api/cloud_build/v1/model/time_span.ex.
Writing Volume to clients/cloud_build/lib/google_api/cloud_build/v1/model/volume.ex.
Writing Operations to clients/cloud_build/lib/google_api/cloud_build/v1/api/operations.ex.
Writing Projects to clients/cloud_build/lib/google_api/cloud_build/v1/api/projects.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

12:26:23.610 [info]  Bumping minor
fixing file permissions
2021-03-24 05:26:26,148 synthtool [DEBUG] > Wrote metadata to clients/cloud_build/synth.metadata.
DEBUG:synthtool:Wrote metadata to clients/cloud_build/synth.metadata.

```
</details>

Full log will be available here:
https://source.cloud.google.com/results/invocations/6c5d3502-11ad-48c1-a798-138f92ada606/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)
  • Loading branch information
yoshi-automation committed Mar 24, 2021
1 parent 0af2386 commit 92bcdea
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 7 deletions.
2 changes: 1 addition & 1 deletion clients/cloud_build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_cloud_build, "~> 0.31"}]
[{:google_api_cloud_build, "~> 0.32"}]
end
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion clients/cloud_build/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.CloudBuild.Mixfile do
use Mix.Project

@version "0.31.0"
@version "0.32.0"

def project() do
[
Expand Down
2 changes: 1 addition & 1 deletion clients/cloud_build/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/elixir-google-api.git",
"sha": "d598d6733e04fe90c7271262d7306bdbaf3071f8"
"sha": "9b6f6214236cf1fb1429f5d125c826b3dccbb4e4"
}
}
]
Expand Down

0 comments on commit 92bcdea

Please sign in to comment.