Skip to content

Commit

Permalink
feat: Automated regeneration of cloudbuild v1 client (#21390)
Browse files Browse the repository at this point in the history
Auto-created at 2025-01-19 09:21:01 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Jan 19, 2025
1 parent b6c5687 commit b910b46
Show file tree
Hide file tree
Showing 5 changed files with 178 additions and 3 deletions.
16 changes: 16 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61132,6 +61132,8 @@
"/cloudbuild:v1/ArtifactResult/fileHash/file_hash": file_hash
"/cloudbuild:v1/ArtifactResult/location": location
"/cloudbuild:v1/Artifacts": artifacts
"/cloudbuild:v1/Artifacts/goModules": go_modules
"/cloudbuild:v1/Artifacts/goModules/go_module": go_module
"/cloudbuild:v1/Artifacts/images": images
"/cloudbuild:v1/Artifacts/images/image": image
"/cloudbuild:v1/Artifacts/mavenArtifacts": maven_artifacts
Expand Down Expand Up @@ -61249,6 +61251,7 @@
"/cloudbuild:v1/BuildOptions/defaultLogsBucketBehavior": default_logs_bucket_behavior
"/cloudbuild:v1/BuildOptions/diskSizeGb": disk_size_gb
"/cloudbuild:v1/BuildOptions/dynamicSubstitutions": dynamic_substitutions
"/cloudbuild:v1/BuildOptions/enableStructuredLogging": enable_structured_logging
"/cloudbuild:v1/BuildOptions/env": env
"/cloudbuild:v1/BuildOptions/env/env": env
"/cloudbuild:v1/BuildOptions/logStreamingOption": log_streaming_option
Expand Down Expand Up @@ -61479,6 +61482,13 @@
"/cloudbuild:v1/GitSource/dir": dir
"/cloudbuild:v1/GitSource/revision": revision
"/cloudbuild:v1/GitSource/url": url
"/cloudbuild:v1/GoModule": go_module
"/cloudbuild:v1/GoModule/modulePath": module_path
"/cloudbuild:v1/GoModule/moduleVersion": module_version
"/cloudbuild:v1/GoModule/repositoryLocation": repository_location
"/cloudbuild:v1/GoModule/repositoryName": repository_name
"/cloudbuild:v1/GoModule/repositoryProjectId": repository_project_id
"/cloudbuild:v1/GoModule/sourcePath": source_path
"/cloudbuild:v1/GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig": google_devtools_cloudbuild_v1_build_options_pool_option_worker_config
"/cloudbuild:v1/GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig/diskSizeGb": disk_size_gb
"/cloudbuild:v1/GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig/memoryGb": memory_gb
Expand Down Expand Up @@ -61663,6 +61673,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/goModules": go_modules
"/cloudbuild:v1/Results/goModules/go_module": go_module
"/cloudbuild:v1/Results/images": images
"/cloudbuild:v1/Results/images/image": image
"/cloudbuild:v1/Results/mavenArtifacts": maven_artifacts
Expand Down Expand Up @@ -61761,6 +61773,10 @@
"/cloudbuild:v1/UpdateWorkerPoolOperationMetadata/completeTime": complete_time
"/cloudbuild:v1/UpdateWorkerPoolOperationMetadata/createTime": create_time
"/cloudbuild:v1/UpdateWorkerPoolOperationMetadata/workerPool": worker_pool
"/cloudbuild:v1/UploadedGoModule": uploaded_go_module
"/cloudbuild:v1/UploadedGoModule/fileHashes": file_hashes
"/cloudbuild:v1/UploadedGoModule/pushTiming": push_timing
"/cloudbuild:v1/UploadedGoModule/uri": uri
"/cloudbuild:v1/UploadedMavenArtifact": uploaded_maven_artifact
"/cloudbuild:v1/UploadedMavenArtifact/fileHashes": file_hashes
"/cloudbuild:v1/UploadedMavenArtifact/pushTiming": push_timing
Expand Down
5 changes: 5 additions & 0 deletions generated/google-apis-cloudbuild_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release history for google-apis-cloudbuild_v1

### v0.68.0 (2025-01-19)

* Regenerated from discovery document revision 20250114
* Regenerated using generator version 0.16.0

### v0.67.0 (2024-12-15)

* Regenerated from discovery document revision 20241210
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,13 @@ def update!(**args)
class Artifacts
include Google::Apis::Core::Hashable

# 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.
# Corresponds to the JSON property `goModules`
# @return [Array<Google::Apis::CloudbuildV1::GoModule>]
attr_accessor :go_modules

# A list of images to be pushed upon the successful completion of all build
# steps. The images will be pushed using the builder service account's
# credentials. The digests of the pushed images will be stored in the Build
Expand Down Expand Up @@ -225,6 +232,7 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@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)
@npm_packages = args[:npm_packages] if args.key?(:npm_packages)
Expand Down Expand Up @@ -1009,6 +1017,13 @@ class BuildOptions
attr_accessor :dynamic_substitutions
alias_method :dynamic_substitutions?, :dynamic_substitutions

# Optional. Option to specify whether structured logging is enabled. If true,
# JSON-formatted logs are parsed as structured logs.
# Corresponds to the JSON property `enableStructuredLogging`
# @return [Boolean]
attr_accessor :enable_structured_logging
alias_method :enable_structured_logging?, :enable_structured_logging

# A list of global environment variable definitions that will exist for all
# build steps in this build. If a variable is defined in both globally and in a
# build step, the variable will use the build step value. The elements are of
Expand Down Expand Up @@ -1090,6 +1105,7 @@ def update!(**args)
@default_logs_bucket_behavior = args[:default_logs_bucket_behavior] if args.key?(:default_logs_bucket_behavior)
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
@dynamic_substitutions = args[:dynamic_substitutions] if args.key?(:dynamic_substitutions)
@enable_structured_logging = args[:enable_structured_logging] if args.key?(:enable_structured_logging)
@env = args[:env] if args.key?(:env)
@log_streaming_option = args[:log_streaming_option] if args.key?(:log_streaming_option)
@logging = args[:logging] if args.key?(:logging)
Expand Down Expand Up @@ -2704,6 +2720,64 @@ def update!(**args)
end
end

# Go module to upload to Artifact Registry upon successful completion of all
# build steps. A module refers to all dependencies in a go.mod file.
class GoModule
include Google::Apis::Core::Hashable

# Optional. The Go module's "module path". e.g. example.com/foo/v2
# Corresponds to the JSON property `modulePath`
# @return [String]
attr_accessor :module_path

# Optional. The Go module's semantic version in the form vX.Y.Z. e.g. v0.1.1 Pre-
# release identifiers can also be added by appending a dash and dot separated
# ASCII alphanumeric characters and hyphens. e.g. v0.2.3-alpha.x.12m.5
# Corresponds to the JSON property `moduleVersion`
# @return [String]
attr_accessor :module_version

# Optional. Location of the Artifact Registry repository. i.e. us-east1 Defaults
# to the build’s location.
# Corresponds to the JSON property `repositoryLocation`
# @return [String]
attr_accessor :repository_location

# Optional. Artifact Registry repository name. Specified Go modules will be
# zipped and uploaded to Artifact Registry with this location as a prefix. e.g.
# my-go-repo
# Corresponds to the JSON property `repositoryName`
# @return [String]
attr_accessor :repository_name

# Optional. Project ID of the Artifact Registry repository. Defaults to the
# build project.
# Corresponds to the JSON property `repositoryProjectId`
# @return [String]
attr_accessor :repository_project_id

# Optional. Source path of the go.mod file in the build's workspace. If not
# specified, this will default to the current directory. e.g. ~/code/go/
# mypackage
# Corresponds to the JSON property `sourcePath`
# @return [String]
attr_accessor :source_path

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@module_path = args[:module_path] if args.key?(:module_path)
@module_version = args[:module_version] if args.key?(:module_version)
@repository_location = args[:repository_location] if args.key?(:repository_location)
@repository_name = args[:repository_name] if args.key?(:repository_name)
@repository_project_id = args[:repository_project_id] if args.key?(:repository_project_id)
@source_path = args[:source_path] if args.key?(:source_path)
end
end

# Container message for hash values.
class HashProp
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -3744,6 +3818,12 @@ class Results
# @return [Array<String>]
attr_accessor :build_step_outputs

# Optional. Go module artifacts uploaded to Artifact Registry at the end of the
# build.
# Corresponds to the JSON property `goModules`
# @return [Array<Google::Apis::CloudbuildV1::UploadedGoModule>]
attr_accessor :go_modules

# Container images that were built as a part of the build.
# Corresponds to the JSON property `images`
# @return [Array<Google::Apis::CloudbuildV1::BuiltImage>]
Expand Down Expand Up @@ -3780,6 +3860,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)
@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)
@npm_packages = args[:npm_packages] if args.key?(:npm_packages)
Expand Down Expand Up @@ -4334,6 +4415,39 @@ def update!(**args)
end
end

# A Go module artifact uploaded to Artifact Registry using the GoModule
# directive.
class UploadedGoModule
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 `fileHashes`
# @return [Google::Apis::CloudbuildV1::FileHashes]
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

# URI of the uploaded artifact.
# 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)
@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 Maven artifact uploaded using the MavenArtifact directive.
class UploadedMavenArtifact
include Google::Apis::Core::Hashable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module CloudbuildV1
# Version of the google-apis-cloudbuild_v1 gem
GEM_VERSION = "0.67.0"
GEM_VERSION = "0.68.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.15.1"
GENERATOR_VERSION = "0.16.0"

# Revision of the discovery document this client was generated from
REVISION = "20241210"
REVISION = "20250114"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class GoModule
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class HashProp
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -646,6 +652,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class UploadedGoModule
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class UploadedMavenArtifact
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -742,6 +754,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
class Artifacts
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :go_modules, as: 'goModules', class: Google::Apis::CloudbuildV1::GoModule, decorator: Google::Apis::CloudbuildV1::GoModule::Representation

collection :images, as: 'images'
collection :maven_artifacts, as: 'mavenArtifacts', class: Google::Apis::CloudbuildV1::MavenArtifact, decorator: Google::Apis::CloudbuildV1::MavenArtifact::Representation

Expand Down Expand Up @@ -954,6 +968,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :default_logs_bucket_behavior, as: 'defaultLogsBucketBehavior'
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
property :dynamic_substitutions, as: 'dynamicSubstitutions'
property :enable_structured_logging, as: 'enableStructuredLogging'
collection :env, as: 'env'
property :log_streaming_option, as: 'logStreamingOption'
property :logging, as: 'logging'
Expand Down Expand Up @@ -1371,6 +1386,18 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class GoModule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :module_path, as: 'modulePath'
property :module_version, as: 'moduleVersion'
property :repository_location, as: 'repositoryLocation'
property :repository_name, as: 'repositoryName'
property :repository_project_id, as: 'repositoryProjectId'
property :source_path, as: 'sourcePath'
end
end

class HashProp
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -1656,6 +1683,8 @@ class Representation < Google::Apis::Core::JsonRepresentation

collection :build_step_images, as: 'buildStepImages'
collection :build_step_outputs, as: 'buildStepOutputs'
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

collection :maven_artifacts, as: 'mavenArtifacts', class: Google::Apis::CloudbuildV1::UploadedMavenArtifact, decorator: Google::Apis::CloudbuildV1::UploadedMavenArtifact::Representation
Expand Down Expand Up @@ -1828,6 +1857,17 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class UploadedGoModule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :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 UploadedMavenArtifact
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down

0 comments on commit b910b46

Please sign in to comment.