@@ -178,6 +178,13 @@ def update!(**args)
178178 class Artifacts
179179 include Google ::Apis ::Core ::Hashable
180180
181+ # Optional. A list of generic artifacts to be uploaded to Artifact Registry upon
182+ # successful completion of all build steps. If any artifacts fail to be pushed,
183+ # the build is marked FAILURE.
184+ # Corresponds to the JSON property `genericArtifacts`
185+ # @return [Array<Google::Apis::CloudbuildV1::GenericArtifact>]
186+ attr_accessor :generic_artifacts
187+
181188 # Optional. A list of Go modules to be uploaded to Artifact Registry upon
182189 # successful completion of all build steps. If any objects fail to be pushed,
183190 # the build is marked FAILURE.
@@ -241,6 +248,7 @@ def initialize(**args)
241248
242249 # Update properties of this object
243250 def update! ( **args )
251+ @generic_artifacts = args [ :generic_artifacts ] if args . key? ( :generic_artifacts )
244252 @go_modules = args [ :go_modules ] if args . key? ( :go_modules )
245253 @images = args [ :images ] if args . key? ( :images )
246254 @maven_artifacts = args [ :maven_artifacts ] if args . key? ( :maven_artifacts )
@@ -1234,6 +1242,11 @@ class BuildStep
12341242 # @return [Google::Apis::CloudbuildV1::TimeSpan]
12351243 attr_accessor :pull_timing
12361244
1245+ # Declaration of results for this build step.
1246+ # Corresponds to the JSON property `results`
1247+ # @return [Array<Google::Apis::CloudbuildV1::StepResult>]
1248+ attr_accessor :results
1249+
12371250 # A shell script to be executed in the step. When script is provided, the user
12381251 # cannot specify the entrypoint or args.
12391252 # Corresponds to the JSON property `script`
@@ -1300,6 +1313,7 @@ def update!(**args)
13001313 @id = args [ :id ] if args . key? ( :id )
13011314 @name = args [ :name ] if args . key? ( :name )
13021315 @pull_timing = args [ :pull_timing ] if args . key? ( :pull_timing )
1316+ @results = args [ :results ] if args . key? ( :results )
13031317 @script = args [ :script ] if args . key? ( :script )
13041318 @secret_env = args [ :secret_env ] if args . key? ( :secret_env )
13051319 @status = args [ :status ] if args . key? ( :status )
@@ -1310,6 +1324,25 @@ def update!(**args)
13101324 end
13111325 end
13121326
1327+ # Results for a build step.
1328+ class BuildStepResults
1329+ include Google ::Apis ::Core ::Hashable
1330+
1331+ # Results for a build step.
1332+ # Corresponds to the JSON property `results`
1333+ # @return [Hash<String,String>]
1334+ attr_accessor :results
1335+
1336+ def initialize ( **args )
1337+ update! ( **args )
1338+ end
1339+
1340+ # Update properties of this object
1341+ def update! ( **args )
1342+ @results = args [ :results ] if args . key? ( :results )
1343+ end
1344+ end
1345+
13131346 # Configuration for an automated build in response to source repository changes.
13141347 class BuildTrigger
13151348 include Google ::Apis ::Core ::Hashable
@@ -2018,6 +2051,11 @@ class Dependency
20182051 attr_accessor :empty
20192052 alias_method :empty? , :empty
20202053
2054+ # Represents a generic artifact as a build dependency.
2055+ # Corresponds to the JSON property `genericArtifact`
2056+ # @return [Google::Apis::CloudbuildV1::GenericArtifactDependency]
2057+ attr_accessor :generic_artifact
2058+
20212059 # Represents a git repository as a build dependency.
20222060 # Corresponds to the JSON property `gitSource`
20232061 # @return [Google::Apis::CloudbuildV1::GitSourceDependency]
@@ -2030,6 +2068,7 @@ def initialize(**args)
20302068 # Update properties of this object
20312069 def update! ( **args )
20322070 @empty = args [ :empty ] if args . key? ( :empty )
2071+ @generic_artifact = args [ :generic_artifact ] if args . key? ( :generic_artifact )
20332072 @git_source = args [ :git_source ] if args . key? ( :git_source )
20342073 end
20352074 end
@@ -2167,6 +2206,61 @@ def update!(**args)
21672206 end
21682207 end
21692208
2209+ # Generic artifact to upload to Artifact Registry upon successful completion of
2210+ # all build steps.
2211+ class GenericArtifact
2212+ include Google ::Apis ::Core ::Hashable
2213+
2214+ # Required. Path to the generic artifact in the build's workspace to be uploaded
2215+ # to Artifact Registry.
2216+ # Corresponds to the JSON property `folder`
2217+ # @return [String]
2218+ attr_accessor :folder
2219+
2220+ # Required. Registry path to upload the generic artifact to, in the form
2221+ # projects/$PROJECT/locations/$LOCATION/repositories/$REPO/packages/$PACKAGE/
2222+ # versions/$VERSION
2223+ # Corresponds to the JSON property `registryPath`
2224+ # @return [String]
2225+ attr_accessor :registry_path
2226+
2227+ def initialize ( **args )
2228+ update! ( **args )
2229+ end
2230+
2231+ # Update properties of this object
2232+ def update! ( **args )
2233+ @folder = args [ :folder ] if args . key? ( :folder )
2234+ @registry_path = args [ :registry_path ] if args . key? ( :registry_path )
2235+ end
2236+ end
2237+
2238+ # Represents a generic artifact as a build dependency.
2239+ class GenericArtifactDependency
2240+ include Google ::Apis ::Core ::Hashable
2241+
2242+ # Required. Where the artifact files should be placed on the worker.
2243+ # Corresponds to the JSON property `destPath`
2244+ # @return [String]
2245+ attr_accessor :dest_path
2246+
2247+ # Required. The location to download the artifact files from. Ex: projects/p1/
2248+ # locations/us/repositories/r1/packages/p1/versions/v1
2249+ # Corresponds to the JSON property `resource`
2250+ # @return [String]
2251+ attr_accessor :resource
2252+
2253+ def initialize ( **args )
2254+ update! ( **args )
2255+ end
2256+
2257+ # Update properties of this object
2258+ def update! ( **args )
2259+ @dest_path = args [ :dest_path ] if args . key? ( :dest_path )
2260+ @resource = args [ :resource ] if args . key? ( :resource )
2261+ end
2262+ end
2263+
21702264 # GitConfig is a configuration for git operations.
21712265 class GitConfig
21722266 include Google ::Apis ::Core ::Hashable
@@ -4043,6 +4137,17 @@ class Results
40434137 # @return [Array<String>]
40444138 attr_accessor :build_step_outputs
40454139
4140+ # Results for build steps. step_id ->
4141+ # Corresponds to the JSON property `buildStepResults`
4142+ # @return [Hash<String,Google::Apis::CloudbuildV1::BuildStepResults>]
4143+ attr_accessor :build_step_results
4144+
4145+ # Output only. Generic artifacts uploaded to Artifact Registry at the end of the
4146+ # build.
4147+ # Corresponds to the JSON property `genericArtifacts`
4148+ # @return [Array<Google::Apis::CloudbuildV1::UploadedGenericArtifact>]
4149+ attr_accessor :generic_artifacts
4150+
40464151 # Optional. Go module artifacts uploaded to Artifact Registry at the end of the
40474152 # build.
40484153 # Corresponds to the JSON property `goModules`
@@ -4085,6 +4190,8 @@ def update!(**args)
40854190 @artifact_timing = args [ :artifact_timing ] if args . key? ( :artifact_timing )
40864191 @build_step_images = args [ :build_step_images ] if args . key? ( :build_step_images )
40874192 @build_step_outputs = args [ :build_step_outputs ] if args . key? ( :build_step_outputs )
4193+ @build_step_results = args [ :build_step_results ] if args . key? ( :build_step_results )
4194+ @generic_artifacts = args [ :generic_artifacts ] if args . key? ( :generic_artifacts )
40884195 @go_modules = args [ :go_modules ] if args . key? ( :go_modules )
40894196 @images = args [ :images ] if args . key? ( :images )
40904197 @maven_artifacts = args [ :maven_artifacts ] if args . key? ( :maven_artifacts )
@@ -4410,6 +4517,37 @@ def update!(**args)
44104517 end
44114518 end
44124519
4520+ # StepResult is the declaration of a result for a build step.
4521+ class StepResult
4522+ include Google ::Apis ::Core ::Hashable
4523+
4524+ # Optional. The content of the attestation to be generated.
4525+ # Corresponds to the JSON property `attestationContent`
4526+ # @return [String]
4527+ attr_accessor :attestation_content
4528+
4529+ # Optional. The type of attestation to be generated.
4530+ # Corresponds to the JSON property `attestationType`
4531+ # @return [String]
4532+ attr_accessor :attestation_type
4533+
4534+ # Required. The name of the result.
4535+ # Corresponds to the JSON property `name`
4536+ # @return [String]
4537+ attr_accessor :name
4538+
4539+ def initialize ( **args )
4540+ update! ( **args )
4541+ end
4542+
4543+ # Update properties of this object
4544+ def update! ( **args )
4545+ @attestation_content = args [ :attestation_content ] if args . key? ( :attestation_content )
4546+ @attestation_type = args [ :attestation_type ] if args . key? ( :attestation_type )
4547+ @name = args [ :name ] if args . key? ( :name )
4548+ end
4549+ end
4550+
44134551 # Location of the source in an archive file in Cloud Storage.
44144552 class StorageSource
44154553 include Google ::Apis ::Core ::Hashable
@@ -4640,6 +4778,52 @@ def update!(**args)
46404778 end
46414779 end
46424780
4781+ # A generic artifact uploaded to Artifact Registry using the GenericArtifact
4782+ # directive.
4783+ class UploadedGenericArtifact
4784+ include Google ::Apis ::Core ::Hashable
4785+
4786+ # Container message for hashes of byte content of files, used in
4787+ # SourceProvenance messages to verify integrity of source input to the build.
4788+ # Corresponds to the JSON property `artifactFingerprint`
4789+ # @return [Google::Apis::CloudbuildV1::FileHashes]
4790+ attr_accessor :artifact_fingerprint
4791+
4792+ # Output only. Path to the artifact in Artifact Registry.
4793+ # Corresponds to the JSON property `artifactRegistryPackage`
4794+ # @return [String]
4795+ attr_accessor :artifact_registry_package
4796+
4797+ # Output only. The file hashes that make up the generic artifact.
4798+ # Corresponds to the JSON property `fileHashes`
4799+ # @return [Hash<String,Google::Apis::CloudbuildV1::FileHashes>]
4800+ attr_accessor :file_hashes
4801+
4802+ # Start and end times for a build execution phase.
4803+ # Corresponds to the JSON property `pushTiming`
4804+ # @return [Google::Apis::CloudbuildV1::TimeSpan]
4805+ attr_accessor :push_timing
4806+
4807+ # Output only. URI of the uploaded artifact. Ex: projects/p1/locations/us/
4808+ # repositories/r1/packages/p1/versions/v1
4809+ # Corresponds to the JSON property `uri`
4810+ # @return [String]
4811+ attr_accessor :uri
4812+
4813+ def initialize ( **args )
4814+ update! ( **args )
4815+ end
4816+
4817+ # Update properties of this object
4818+ def update! ( **args )
4819+ @artifact_fingerprint = args [ :artifact_fingerprint ] if args . key? ( :artifact_fingerprint )
4820+ @artifact_registry_package = args [ :artifact_registry_package ] if args . key? ( :artifact_registry_package )
4821+ @file_hashes = args [ :file_hashes ] if args . key? ( :file_hashes )
4822+ @push_timing = args [ :push_timing ] if args . key? ( :push_timing )
4823+ @uri = args [ :uri ] if args . key? ( :uri )
4824+ end
4825+ end
4826+
46434827 # A Go module artifact uploaded to Artifact Registry using the GoModule
46444828 # directive.
46454829 class UploadedGoModule
0 commit comments