From 130a5fad5cc3e8af0f32c8dfbe6fccbd8ea70447 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 19 Apr 2026 10:07:51 +0000 Subject: [PATCH] feat: Automated regeneration of cloudbuild v1 client --- api_names_out.yaml | 18 +++ .../google-apis-cloudbuild_v1/CHANGELOG.md | 4 + .../lib/google/apis/cloudbuild_v1/classes.rb | 122 ++++++++++++++++++ .../google/apis/cloudbuild_v1/gem_version.rb | 4 +- .../apis/cloudbuild_v1/representations.rb | 54 ++++++++ 5 files changed, 200 insertions(+), 2 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index a4929c8f58d..df0603de920 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -73902,6 +73902,8 @@ "/cloudbuild:v1/ArtifactResult/fileHash/file_hash": file_hash "/cloudbuild:v1/ArtifactResult/location": location "/cloudbuild:v1/Artifacts": artifacts +"/cloudbuild:v1/Artifacts/genericArtifacts": generic_artifacts +"/cloudbuild:v1/Artifacts/genericArtifacts/generic_artifact": generic_artifact "/cloudbuild:v1/Artifacts/goModules": go_modules "/cloudbuild:v1/Artifacts/goModules/go_module": go_module "/cloudbuild:v1/Artifacts/images": images @@ -74162,6 +74164,7 @@ "/cloudbuild:v1/DeleteWorkerPoolOperationMetadata/workerPool": worker_pool "/cloudbuild:v1/Dependency": dependency "/cloudbuild:v1/Dependency/empty": empty +"/cloudbuild:v1/Dependency/genericArtifact": generic_artifact "/cloudbuild:v1/Dependency/gitSource": git_source "/cloudbuild:v1/DeveloperConnectConfig": developer_connect_config "/cloudbuild:v1/DeveloperConnectConfig/dir": dir @@ -74183,6 +74186,12 @@ "/cloudbuild:v1/GCSLocation/bucket": bucket "/cloudbuild:v1/GCSLocation/generation": generation "/cloudbuild:v1/GCSLocation/object": object +"/cloudbuild:v1/GenericArtifact": generic_artifact +"/cloudbuild:v1/GenericArtifact/folder": folder +"/cloudbuild:v1/GenericArtifact/registryPath": registry_path +"/cloudbuild:v1/GenericArtifactDependency": generic_artifact_dependency +"/cloudbuild:v1/GenericArtifactDependency/destPath": dest_path +"/cloudbuild:v1/GenericArtifactDependency/resource": resource "/cloudbuild:v1/GitConfig": git_config "/cloudbuild:v1/GitConfig/http": http "/cloudbuild:v1/GitFileSource": git_file_source @@ -74474,6 +74483,8 @@ "/cloudbuild:v1/Results/buildStepImages/build_step_image": build_step_image "/cloudbuild:v1/Results/buildStepOutputs": build_step_outputs "/cloudbuild:v1/Results/buildStepOutputs/build_step_output": build_step_output +"/cloudbuild:v1/Results/genericArtifacts": generic_artifacts +"/cloudbuild:v1/Results/genericArtifacts/generic_artifact": generic_artifact "/cloudbuild:v1/Results/goModules": go_modules "/cloudbuild:v1/Results/goModules/go_module": go_module "/cloudbuild:v1/Results/images": images @@ -74574,6 +74585,13 @@ "/cloudbuild:v1/UpdateWorkerPoolOperationMetadata/completeTime": complete_time "/cloudbuild:v1/UpdateWorkerPoolOperationMetadata/createTime": create_time "/cloudbuild:v1/UpdateWorkerPoolOperationMetadata/workerPool": worker_pool +"/cloudbuild:v1/UploadedGenericArtifact": uploaded_generic_artifact +"/cloudbuild:v1/UploadedGenericArtifact/artifactFingerprint": artifact_fingerprint +"/cloudbuild:v1/UploadedGenericArtifact/artifactRegistryPackage": artifact_registry_package +"/cloudbuild:v1/UploadedGenericArtifact/fileHashes": file_hashes +"/cloudbuild:v1/UploadedGenericArtifact/fileHashes/file_hash": file_hash +"/cloudbuild:v1/UploadedGenericArtifact/pushTiming": push_timing +"/cloudbuild:v1/UploadedGenericArtifact/uri": uri "/cloudbuild:v1/UploadedGoModule": uploaded_go_module "/cloudbuild:v1/UploadedGoModule/artifactRegistryPackage": artifact_registry_package "/cloudbuild:v1/UploadedGoModule/fileHashes": file_hashes diff --git a/generated/google-apis-cloudbuild_v1/CHANGELOG.md b/generated/google-apis-cloudbuild_v1/CHANGELOG.md index 08580a4aae4..931b1c6004f 100644 --- a/generated/google-apis-cloudbuild_v1/CHANGELOG.md +++ b/generated/google-apis-cloudbuild_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-cloudbuild_v1 +### v0.80.0 (2026-04-19) + +* Regenerated from discovery document revision 20260323 + ### v0.79.0 (2026-03-15) * Regenerated from discovery document revision 20260309 diff --git a/generated/google-apis-cloudbuild_v1/lib/google/apis/cloudbuild_v1/classes.rb b/generated/google-apis-cloudbuild_v1/lib/google/apis/cloudbuild_v1/classes.rb index 4bf768b6384..3edf463d0b8 100644 --- a/generated/google-apis-cloudbuild_v1/lib/google/apis/cloudbuild_v1/classes.rb +++ b/generated/google-apis-cloudbuild_v1/lib/google/apis/cloudbuild_v1/classes.rb @@ -178,6 +178,13 @@ def update!(**args) class Artifacts include Google::Apis::Core::Hashable + # Optional. A list of generic artifacts to be uploaded to Artifact Registry upon + # successful completion of all build steps. If any artifacts fail to be pushed, + # the build is marked FAILURE. + # Corresponds to the JSON property `genericArtifacts` + # @return [Array] + attr_accessor :generic_artifacts + # Optional. A list of Go modules to be uploaded to Artifact Registry upon # successful completion of all build steps. If any objects fail to be pushed, # the build is marked FAILURE. @@ -241,6 +248,7 @@ def initialize(**args) # Update properties of this object def update!(**args) + @generic_artifacts = args[:generic_artifacts] if args.key?(:generic_artifacts) @go_modules = args[:go_modules] if args.key?(:go_modules) @images = args[:images] if args.key?(:images) @maven_artifacts = args[:maven_artifacts] if args.key?(:maven_artifacts) @@ -2018,6 +2026,11 @@ class Dependency attr_accessor :empty alias_method :empty?, :empty + # Represents a generic artifact as a build dependency. + # Corresponds to the JSON property `genericArtifact` + # @return [Google::Apis::CloudbuildV1::GenericArtifactDependency] + attr_accessor :generic_artifact + # Represents a git repository as a build dependency. # Corresponds to the JSON property `gitSource` # @return [Google::Apis::CloudbuildV1::GitSourceDependency] @@ -2030,6 +2043,7 @@ def initialize(**args) # Update properties of this object def update!(**args) @empty = args[:empty] if args.key?(:empty) + @generic_artifact = args[:generic_artifact] if args.key?(:generic_artifact) @git_source = args[:git_source] if args.key?(:git_source) end end @@ -2167,6 +2181,61 @@ def update!(**args) end end + # Generic artifact to upload to Artifact Registry upon successful completion of + # all build steps. + class GenericArtifact + include Google::Apis::Core::Hashable + + # Required. Path to the generic artifact in the build's workspace to be uploaded + # to Artifact Registry. + # Corresponds to the JSON property `folder` + # @return [String] + attr_accessor :folder + + # Required. Registry path to upload the generic artifact to, in the form + # projects/$PROJECT/locations/$LOCATION/repositories/$REPO/packages/$PACKAGE/ + # versions/$VERSION + # Corresponds to the JSON property `registryPath` + # @return [String] + attr_accessor :registry_path + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @folder = args[:folder] if args.key?(:folder) + @registry_path = args[:registry_path] if args.key?(:registry_path) + end + end + + # Represents a generic artifact as a build dependency. + class GenericArtifactDependency + include Google::Apis::Core::Hashable + + # Required. Where the artifact files should be placed on the worker. + # Corresponds to the JSON property `destPath` + # @return [String] + attr_accessor :dest_path + + # Required. The location to download the artifact files from. Ex: projects/p1/ + # locations/us/repositories/r1/packages/p1/versions/v1 + # Corresponds to the JSON property `resource` + # @return [String] + attr_accessor :resource + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dest_path = args[:dest_path] if args.key?(:dest_path) + @resource = args[:resource] if args.key?(:resource) + end + end + # GitConfig is a configuration for git operations. class GitConfig include Google::Apis::Core::Hashable @@ -4043,6 +4112,12 @@ class Results # @return [Array] attr_accessor :build_step_outputs + # Output only. Generic artifacts uploaded to Artifact Registry at the end of the + # build. + # Corresponds to the JSON property `genericArtifacts` + # @return [Array] + attr_accessor :generic_artifacts + # Optional. Go module artifacts uploaded to Artifact Registry at the end of the # build. # Corresponds to the JSON property `goModules` @@ -4085,6 +4160,7 @@ def update!(**args) @artifact_timing = args[:artifact_timing] if args.key?(:artifact_timing) @build_step_images = args[:build_step_images] if args.key?(:build_step_images) @build_step_outputs = args[:build_step_outputs] if args.key?(:build_step_outputs) + @generic_artifacts = args[:generic_artifacts] if args.key?(:generic_artifacts) @go_modules = args[:go_modules] if args.key?(:go_modules) @images = args[:images] if args.key?(:images) @maven_artifacts = args[:maven_artifacts] if args.key?(:maven_artifacts) @@ -4640,6 +4716,52 @@ def update!(**args) end end + # A generic artifact uploaded to Artifact Registry using the GenericArtifact + # directive. + class UploadedGenericArtifact + include Google::Apis::Core::Hashable + + # Container message for hashes of byte content of files, used in + # SourceProvenance messages to verify integrity of source input to the build. + # Corresponds to the JSON property `artifactFingerprint` + # @return [Google::Apis::CloudbuildV1::FileHashes] + attr_accessor :artifact_fingerprint + + # Output only. Path to the artifact in Artifact Registry. + # Corresponds to the JSON property `artifactRegistryPackage` + # @return [String] + attr_accessor :artifact_registry_package + + # Output only. The file hashes that make up the generic artifact. + # Corresponds to the JSON property `fileHashes` + # @return [Hash] + attr_accessor :file_hashes + + # Start and end times for a build execution phase. + # Corresponds to the JSON property `pushTiming` + # @return [Google::Apis::CloudbuildV1::TimeSpan] + attr_accessor :push_timing + + # Output only. URI of the uploaded artifact. Ex: projects/p1/locations/us/ + # repositories/r1/packages/p1/versions/v1 + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @artifact_fingerprint = args[:artifact_fingerprint] if args.key?(:artifact_fingerprint) + @artifact_registry_package = args[:artifact_registry_package] if args.key?(:artifact_registry_package) + @file_hashes = args[:file_hashes] if args.key?(:file_hashes) + @push_timing = args[:push_timing] if args.key?(:push_timing) + @uri = args[:uri] if args.key?(:uri) + end + end + # A Go module artifact uploaded to Artifact Registry using the GoModule # directive. class UploadedGoModule diff --git a/generated/google-apis-cloudbuild_v1/lib/google/apis/cloudbuild_v1/gem_version.rb b/generated/google-apis-cloudbuild_v1/lib/google/apis/cloudbuild_v1/gem_version.rb index 4226515a157..e3a6e043239 100644 --- a/generated/google-apis-cloudbuild_v1/lib/google/apis/cloudbuild_v1/gem_version.rb +++ b/generated/google-apis-cloudbuild_v1/lib/google/apis/cloudbuild_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module CloudbuildV1 # Version of the google-apis-cloudbuild_v1 gem - GEM_VERSION = "0.79.0" + GEM_VERSION = "0.80.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20260309" + REVISION = "20260323" end end end diff --git a/generated/google-apis-cloudbuild_v1/lib/google/apis/cloudbuild_v1/representations.rb b/generated/google-apis-cloudbuild_v1/lib/google/apis/cloudbuild_v1/representations.rb index 320f08bcb1a..8cf70708b56 100644 --- a/generated/google-apis-cloudbuild_v1/lib/google/apis/cloudbuild_v1/representations.rb +++ b/generated/google-apis-cloudbuild_v1/lib/google/apis/cloudbuild_v1/representations.rb @@ -292,6 +292,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GenericArtifact + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GenericArtifactDependency + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GitConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -682,6 +694,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class UploadedGenericArtifact + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class UploadedGoModule class Representation < Google::Apis::Core::JsonRepresentation; end @@ -784,6 +802,8 @@ class Representation < Google::Apis::Core::JsonRepresentation class Artifacts # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :generic_artifacts, as: 'genericArtifacts', class: Google::Apis::CloudbuildV1::GenericArtifact, decorator: Google::Apis::CloudbuildV1::GenericArtifact::Representation + collection :go_modules, as: 'goModules', class: Google::Apis::CloudbuildV1::GoModule, decorator: Google::Apis::CloudbuildV1::GoModule::Representation collection :images, as: 'images' @@ -1231,6 +1251,8 @@ class Dependency # @private class Representation < Google::Apis::Core::JsonRepresentation property :empty, as: 'empty' + property :generic_artifact, as: 'genericArtifact', class: Google::Apis::CloudbuildV1::GenericArtifactDependency, decorator: Google::Apis::CloudbuildV1::GenericArtifactDependency::Representation + property :git_source, as: 'gitSource', class: Google::Apis::CloudbuildV1::GitSourceDependency, decorator: Google::Apis::CloudbuildV1::GitSourceDependency::Representation end @@ -1279,6 +1301,22 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GenericArtifact + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :folder, as: 'folder' + property :registry_path, as: 'registryPath' + end + end + + class GenericArtifactDependency + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dest_path, as: 'destPath' + property :resource, as: 'resource' + end + end + class GitConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1773,6 +1811,8 @@ class Representation < Google::Apis::Core::JsonRepresentation collection :build_step_images, as: 'buildStepImages' collection :build_step_outputs, as: 'buildStepOutputs' + collection :generic_artifacts, as: 'genericArtifacts', class: Google::Apis::CloudbuildV1::UploadedGenericArtifact, decorator: Google::Apis::CloudbuildV1::UploadedGenericArtifact::Representation + collection :go_modules, as: 'goModules', class: Google::Apis::CloudbuildV1::UploadedGoModule, decorator: Google::Apis::CloudbuildV1::UploadedGoModule::Representation collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation @@ -1947,6 +1987,20 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class UploadedGenericArtifact + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :artifact_fingerprint, as: 'artifactFingerprint', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation + + property :artifact_registry_package, as: 'artifactRegistryPackage' + hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation + + property :push_timing, as: 'pushTiming', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation + + property :uri, as: 'uri' + end + end + class UploadedGoModule # @private class Representation < Google::Apis::Core::JsonRepresentation