Skip to content

Commit 56f758f

Browse files
feat: Automated regeneration of run v1 client (googleapis#21466)
Auto-created at 2025-01-26 09:47:45 +0000 using the toys pull request generator.
1 parent 168fe32 commit 56f758f

File tree

5 files changed

+178
-3
lines changed

5 files changed

+178
-3
lines changed

api_names_out.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301160,6 +301160,8 @@
301160301160
"/run:v1/GoogleDevtoolsCloudbuildV1ArtifactObjects/paths/path": path
301161301161
"/run:v1/GoogleDevtoolsCloudbuildV1ArtifactObjects/timing": timing
301162301162
"/run:v1/GoogleDevtoolsCloudbuildV1Artifacts": google_devtools_cloudbuild_v1_artifacts
301163+
"/run:v1/GoogleDevtoolsCloudbuildV1Artifacts/goModules": go_modules
301164+
"/run:v1/GoogleDevtoolsCloudbuildV1Artifacts/goModules/go_module": go_module
301163301165
"/run:v1/GoogleDevtoolsCloudbuildV1Artifacts/images": images
301164301166
"/run:v1/GoogleDevtoolsCloudbuildV1Artifacts/images/image": image
301165301167
"/run:v1/GoogleDevtoolsCloudbuildV1Artifacts/mavenArtifacts": maven_artifacts
@@ -301218,6 +301220,7 @@
301218301220
"/run:v1/GoogleDevtoolsCloudbuildV1BuildOptions/defaultLogsBucketBehavior": default_logs_bucket_behavior
301219301221
"/run:v1/GoogleDevtoolsCloudbuildV1BuildOptions/diskSizeGb": disk_size_gb
301220301222
"/run:v1/GoogleDevtoolsCloudbuildV1BuildOptions/dynamicSubstitutions": dynamic_substitutions
301223+
"/run:v1/GoogleDevtoolsCloudbuildV1BuildOptions/enableStructuredLogging": enable_structured_logging
301221301224
"/run:v1/GoogleDevtoolsCloudbuildV1BuildOptions/env": env
301222301225
"/run:v1/GoogleDevtoolsCloudbuildV1BuildOptions/env/env": env
301223301226
"/run:v1/GoogleDevtoolsCloudbuildV1BuildOptions/logStreamingOption": log_streaming_option
@@ -301286,6 +301289,13 @@
301286301289
"/run:v1/GoogleDevtoolsCloudbuildV1GitSource/dir": dir
301287301290
"/run:v1/GoogleDevtoolsCloudbuildV1GitSource/revision": revision
301288301291
"/run:v1/GoogleDevtoolsCloudbuildV1GitSource/url": url
301292+
"/run:v1/GoogleDevtoolsCloudbuildV1GoModule": google_devtools_cloudbuild_v1_go_module
301293+
"/run:v1/GoogleDevtoolsCloudbuildV1GoModule/modulePath": module_path
301294+
"/run:v1/GoogleDevtoolsCloudbuildV1GoModule/moduleVersion": module_version
301295+
"/run:v1/GoogleDevtoolsCloudbuildV1GoModule/repositoryLocation": repository_location
301296+
"/run:v1/GoogleDevtoolsCloudbuildV1GoModule/repositoryName": repository_name
301297+
"/run:v1/GoogleDevtoolsCloudbuildV1GoModule/repositoryProjectId": repository_project_id
301298+
"/run:v1/GoogleDevtoolsCloudbuildV1GoModule/sourcePath": source_path
301289301299
"/run:v1/GoogleDevtoolsCloudbuildV1Hash": google_devtools_cloudbuild_v1_hash
301290301300
"/run:v1/GoogleDevtoolsCloudbuildV1Hash/type": type
301291301301
"/run:v1/GoogleDevtoolsCloudbuildV1Hash/value": value
@@ -301328,6 +301338,8 @@
301328301338
"/run:v1/GoogleDevtoolsCloudbuildV1Results/buildStepImages/build_step_image": build_step_image
301329301339
"/run:v1/GoogleDevtoolsCloudbuildV1Results/buildStepOutputs": build_step_outputs
301330301340
"/run:v1/GoogleDevtoolsCloudbuildV1Results/buildStepOutputs/build_step_output": build_step_output
301341+
"/run:v1/GoogleDevtoolsCloudbuildV1Results/goModules": go_modules
301342+
"/run:v1/GoogleDevtoolsCloudbuildV1Results/goModules/go_module": go_module
301331301343
"/run:v1/GoogleDevtoolsCloudbuildV1Results/images": images
301332301344
"/run:v1/GoogleDevtoolsCloudbuildV1Results/images/image": image
301333301345
"/run:v1/GoogleDevtoolsCloudbuildV1Results/mavenArtifacts": maven_artifacts
@@ -301376,6 +301388,10 @@
301376301388
"/run:v1/GoogleDevtoolsCloudbuildV1TimeSpan": google_devtools_cloudbuild_v1_time_span
301377301389
"/run:v1/GoogleDevtoolsCloudbuildV1TimeSpan/endTime": end_time
301378301390
"/run:v1/GoogleDevtoolsCloudbuildV1TimeSpan/startTime": start_time
301391+
"/run:v1/GoogleDevtoolsCloudbuildV1UploadedGoModule": google_devtools_cloudbuild_v1_uploaded_go_module
301392+
"/run:v1/GoogleDevtoolsCloudbuildV1UploadedGoModule/fileHashes": file_hashes
301393+
"/run:v1/GoogleDevtoolsCloudbuildV1UploadedGoModule/pushTiming": push_timing
301394+
"/run:v1/GoogleDevtoolsCloudbuildV1UploadedGoModule/uri": uri
301379301395
"/run:v1/GoogleDevtoolsCloudbuildV1UploadedMavenArtifact": google_devtools_cloudbuild_v1_uploaded_maven_artifact
301380301396
"/run:v1/GoogleDevtoolsCloudbuildV1UploadedMavenArtifact/fileHashes": file_hashes
301381301397
"/run:v1/GoogleDevtoolsCloudbuildV1UploadedMavenArtifact/pushTiming": push_timing

generated/google-apis-run_v1/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-run_v1
22

3+
### v0.80.0 (2025-01-26)
4+
5+
* Regenerated from discovery document revision 20250117
6+
* Regenerated using generator version 0.16.0
7+
38
### v0.79.0 (2024-12-02)
49

510
* Regenerated from discovery document revision 20241004

generated/google-apis-run_v1/lib/google/apis/run_v1/classes.rb

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,6 +1553,13 @@ def update!(**args)
15531553
class GoogleDevtoolsCloudbuildV1Artifacts
15541554
include Google::Apis::Core::Hashable
15551555

1556+
# Optional. A list of Go modules to be uploaded to Artifact Registry upon
1557+
# successful completion of all build steps. If any objects fail to be pushed,
1558+
# the build is marked FAILURE.
1559+
# Corresponds to the JSON property `goModules`
1560+
# @return [Array<Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1GoModule>]
1561+
attr_accessor :go_modules
1562+
15561563
# A list of images to be pushed upon the successful completion of all build
15571564
# steps. The images will be pushed using the builder service account's
15581565
# credentials. The digests of the pushed images will be stored in the Build
@@ -1600,6 +1607,7 @@ def initialize(**args)
16001607

16011608
# Update properties of this object
16021609
def update!(**args)
1610+
@go_modules = args[:go_modules] if args.key?(:go_modules)
16031611
@images = args[:images] if args.key?(:images)
16041612
@maven_artifacts = args[:maven_artifacts] if args.key?(:maven_artifacts)
16051613
@npm_packages = args[:npm_packages] if args.key?(:npm_packages)
@@ -1935,6 +1943,13 @@ class GoogleDevtoolsCloudbuildV1BuildOptions
19351943
attr_accessor :dynamic_substitutions
19361944
alias_method :dynamic_substitutions?, :dynamic_substitutions
19371945

1946+
# Optional. Option to specify whether structured logging is enabled. If true,
1947+
# JSON-formatted logs are parsed as structured logs.
1948+
# Corresponds to the JSON property `enableStructuredLogging`
1949+
# @return [Boolean]
1950+
attr_accessor :enable_structured_logging
1951+
alias_method :enable_structured_logging?, :enable_structured_logging
1952+
19381953
# A list of global environment variable definitions that will exist for all
19391954
# build steps in this build. If a variable is defined in both globally and in a
19401955
# build step, the variable will use the build step value. The elements are of
@@ -2016,6 +2031,7 @@ def update!(**args)
20162031
@default_logs_bucket_behavior = args[:default_logs_bucket_behavior] if args.key?(:default_logs_bucket_behavior)
20172032
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
20182033
@dynamic_substitutions = args[:dynamic_substitutions] if args.key?(:dynamic_substitutions)
2034+
@enable_structured_logging = args[:enable_structured_logging] if args.key?(:enable_structured_logging)
20192035
@env = args[:env] if args.key?(:env)
20202036
@log_streaming_option = args[:log_streaming_option] if args.key?(:log_streaming_option)
20212037
@logging = args[:logging] if args.key?(:logging)
@@ -2399,6 +2415,64 @@ def update!(**args)
23992415
end
24002416
end
24012417

2418+
# Go module to upload to Artifact Registry upon successful completion of all
2419+
# build steps. A module refers to all dependencies in a go.mod file.
2420+
class GoogleDevtoolsCloudbuildV1GoModule
2421+
include Google::Apis::Core::Hashable
2422+
2423+
# Optional. The Go module's "module path". e.g. example.com/foo/v2
2424+
# Corresponds to the JSON property `modulePath`
2425+
# @return [String]
2426+
attr_accessor :module_path
2427+
2428+
# Optional. The Go module's semantic version in the form vX.Y.Z. e.g. v0.1.1 Pre-
2429+
# release identifiers can also be added by appending a dash and dot separated
2430+
# ASCII alphanumeric characters and hyphens. e.g. v0.2.3-alpha.x.12m.5
2431+
# Corresponds to the JSON property `moduleVersion`
2432+
# @return [String]
2433+
attr_accessor :module_version
2434+
2435+
# Optional. Location of the Artifact Registry repository. i.e. us-east1 Defaults
2436+
# to the build’s location.
2437+
# Corresponds to the JSON property `repositoryLocation`
2438+
# @return [String]
2439+
attr_accessor :repository_location
2440+
2441+
# Optional. Artifact Registry repository name. Specified Go modules will be
2442+
# zipped and uploaded to Artifact Registry with this location as a prefix. e.g.
2443+
# my-go-repo
2444+
# Corresponds to the JSON property `repositoryName`
2445+
# @return [String]
2446+
attr_accessor :repository_name
2447+
2448+
# Optional. Project ID of the Artifact Registry repository. Defaults to the
2449+
# build project.
2450+
# Corresponds to the JSON property `repositoryProjectId`
2451+
# @return [String]
2452+
attr_accessor :repository_project_id
2453+
2454+
# Optional. Source path of the go.mod file in the build's workspace. If not
2455+
# specified, this will default to the current directory. e.g. ~/code/go/
2456+
# mypackage
2457+
# Corresponds to the JSON property `sourcePath`
2458+
# @return [String]
2459+
attr_accessor :source_path
2460+
2461+
def initialize(**args)
2462+
update!(**args)
2463+
end
2464+
2465+
# Update properties of this object
2466+
def update!(**args)
2467+
@module_path = args[:module_path] if args.key?(:module_path)
2468+
@module_version = args[:module_version] if args.key?(:module_version)
2469+
@repository_location = args[:repository_location] if args.key?(:repository_location)
2470+
@repository_name = args[:repository_name] if args.key?(:repository_name)
2471+
@repository_project_id = args[:repository_project_id] if args.key?(:repository_project_id)
2472+
@source_path = args[:source_path] if args.key?(:source_path)
2473+
end
2474+
end
2475+
24022476
# Container message for hash values.
24032477
class GoogleDevtoolsCloudbuildV1Hash
24042478
include Google::Apis::Core::Hashable
@@ -2707,6 +2781,12 @@ class GoogleDevtoolsCloudbuildV1Results
27072781
# @return [Array<String>]
27082782
attr_accessor :build_step_outputs
27092783

2784+
# Optional. Go module artifacts uploaded to Artifact Registry at the end of the
2785+
# build.
2786+
# Corresponds to the JSON property `goModules`
2787+
# @return [Array<Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1UploadedGoModule>]
2788+
attr_accessor :go_modules
2789+
27102790
# Container images that were built as a part of the build.
27112791
# Corresponds to the JSON property `images`
27122792
# @return [Array<Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1BuiltImage>]
@@ -2743,6 +2823,7 @@ def update!(**args)
27432823
@artifact_timing = args[:artifact_timing] if args.key?(:artifact_timing)
27442824
@build_step_images = args[:build_step_images] if args.key?(:build_step_images)
27452825
@build_step_outputs = args[:build_step_outputs] if args.key?(:build_step_outputs)
2826+
@go_modules = args[:go_modules] if args.key?(:go_modules)
27462827
@images = args[:images] if args.key?(:images)
27472828
@maven_artifacts = args[:maven_artifacts] if args.key?(:maven_artifacts)
27482829
@npm_packages = args[:npm_packages] if args.key?(:npm_packages)
@@ -3046,6 +3127,39 @@ def update!(**args)
30463127
end
30473128
end
30483129

3130+
# A Go module artifact uploaded to Artifact Registry using the GoModule
3131+
# directive.
3132+
class GoogleDevtoolsCloudbuildV1UploadedGoModule
3133+
include Google::Apis::Core::Hashable
3134+
3135+
# Container message for hashes of byte content of files, used in
3136+
# SourceProvenance messages to verify integrity of source input to the build.
3137+
# Corresponds to the JSON property `fileHashes`
3138+
# @return [Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1FileHashes]
3139+
attr_accessor :file_hashes
3140+
3141+
# Start and end times for a build execution phase.
3142+
# Corresponds to the JSON property `pushTiming`
3143+
# @return [Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1TimeSpan]
3144+
attr_accessor :push_timing
3145+
3146+
# URI of the uploaded artifact.
3147+
# Corresponds to the JSON property `uri`
3148+
# @return [String]
3149+
attr_accessor :uri
3150+
3151+
def initialize(**args)
3152+
update!(**args)
3153+
end
3154+
3155+
# Update properties of this object
3156+
def update!(**args)
3157+
@file_hashes = args[:file_hashes] if args.key?(:file_hashes)
3158+
@push_timing = args[:push_timing] if args.key?(:push_timing)
3159+
@uri = args[:uri] if args.key?(:uri)
3160+
end
3161+
end
3162+
30493163
# A Maven artifact uploaded using the MavenArtifact directive.
30503164
class GoogleDevtoolsCloudbuildV1UploadedMavenArtifact
30513165
include Google::Apis::Core::Hashable

generated/google-apis-run_v1/lib/google/apis/run_v1/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module RunV1
1818
# Version of the google-apis-run_v1 gem
19-
GEM_VERSION = "0.79.0"
19+
GEM_VERSION = "0.80.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.15.1"
22+
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20241004"
25+
REVISION = "20250117"
2626
end
2727
end
2828
end

generated/google-apis-run_v1/lib/google/apis/run_v1/representations.rb

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
316316
include Google::Apis::Core::JsonObjectSupport
317317
end
318318

319+
class GoogleDevtoolsCloudbuildV1GoModule
320+
class Representation < Google::Apis::Core::JsonRepresentation; end
321+
322+
include Google::Apis::Core::JsonObjectSupport
323+
end
324+
319325
class GoogleDevtoolsCloudbuildV1Hash
320326
class Representation < Google::Apis::Core::JsonRepresentation; end
321327

@@ -418,6 +424,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
418424
include Google::Apis::Core::JsonObjectSupport
419425
end
420426

427+
class GoogleDevtoolsCloudbuildV1UploadedGoModule
428+
class Representation < Google::Apis::Core::JsonRepresentation; end
429+
430+
include Google::Apis::Core::JsonObjectSupport
431+
end
432+
421433
class GoogleDevtoolsCloudbuildV1UploadedMavenArtifact
422434
class Representation < Google::Apis::Core::JsonRepresentation; end
423435

@@ -1199,6 +1211,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
11991211
class GoogleDevtoolsCloudbuildV1Artifacts
12001212
# @private
12011213
class Representation < Google::Apis::Core::JsonRepresentation
1214+
collection :go_modules, as: 'goModules', class: Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1GoModule, decorator: Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1GoModule::Representation
1215+
12021216
collection :images, as: 'images'
12031217
collection :maven_artifacts, as: 'mavenArtifacts', class: Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1MavenArtifact, decorator: Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1MavenArtifact::Representation
12041218

@@ -1286,6 +1300,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
12861300
property :default_logs_bucket_behavior, as: 'defaultLogsBucketBehavior'
12871301
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
12881302
property :dynamic_substitutions, as: 'dynamicSubstitutions'
1303+
property :enable_structured_logging, as: 'enableStructuredLogging'
12891304
collection :env, as: 'env'
12901305
property :log_streaming_option, as: 'logStreamingOption'
12911306
property :logging, as: 'logging'
@@ -1390,6 +1405,18 @@ class Representation < Google::Apis::Core::JsonRepresentation
13901405
end
13911406
end
13921407

1408+
class GoogleDevtoolsCloudbuildV1GoModule
1409+
# @private
1410+
class Representation < Google::Apis::Core::JsonRepresentation
1411+
property :module_path, as: 'modulePath'
1412+
property :module_version, as: 'moduleVersion'
1413+
property :repository_location, as: 'repositoryLocation'
1414+
property :repository_name, as: 'repositoryName'
1415+
property :repository_project_id, as: 'repositoryProjectId'
1416+
property :source_path, as: 'sourcePath'
1417+
end
1418+
end
1419+
13931420
class GoogleDevtoolsCloudbuildV1Hash
13941421
# @private
13951422
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1469,6 +1496,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
14691496

14701497
collection :build_step_images, as: 'buildStepImages'
14711498
collection :build_step_outputs, as: 'buildStepOutputs'
1499+
collection :go_modules, as: 'goModules', class: Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1UploadedGoModule, decorator: Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1UploadedGoModule::Representation
1500+
14721501
collection :images, as: 'images', class: Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1BuiltImage, decorator: Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1BuiltImage::Representation
14731502

14741503
collection :maven_artifacts, as: 'mavenArtifacts', class: Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1UploadedMavenArtifact, decorator: Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1UploadedMavenArtifact::Representation
@@ -1570,6 +1599,17 @@ class Representation < Google::Apis::Core::JsonRepresentation
15701599
end
15711600
end
15721601

1602+
class GoogleDevtoolsCloudbuildV1UploadedGoModule
1603+
# @private
1604+
class Representation < Google::Apis::Core::JsonRepresentation
1605+
property :file_hashes, as: 'fileHashes', class: Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1FileHashes, decorator: Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1FileHashes::Representation
1606+
1607+
property :push_timing, as: 'pushTiming', class: Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1TimeSpan, decorator: Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1TimeSpan::Representation
1608+
1609+
property :uri, as: 'uri'
1610+
end
1611+
end
1612+
15731613
class GoogleDevtoolsCloudbuildV1UploadedMavenArtifact
15741614
# @private
15751615
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)