@@ -1594,6 +1594,15 @@ class GoogleDevtoolsCloudbuildV1Artifacts
15941594 # @return [Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1ArtifactObjects]
15951595 attr_accessor :objects
15961596
1597+ # Optional. A list of OCI images to be uploaded to Artifact Registry upon
1598+ # successful completion of all build steps. OCI images in the specified paths
1599+ # will be uploaded to the specified Artifact Registry repository using the
1600+ # builder service account's credentials. If any images fail to be pushed, the
1601+ # build is marked FAILURE.
1602+ # Corresponds to the JSON property `oci`
1603+ # @return [Array<Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1Oci>]
1604+ attr_accessor :oci
1605+
15971606 # A list of Python packages to be uploaded to Artifact Registry upon successful
15981607 # completion of all build steps. The build service account credentials will be
15991608 # used to perform the upload. If any objects fail to be pushed, the build is
@@ -1613,6 +1622,7 @@ def update!(**args)
16131622 @maven_artifacts = args [ :maven_artifacts ] if args . key? ( :maven_artifacts )
16141623 @npm_packages = args [ :npm_packages ] if args . key? ( :npm_packages )
16151624 @objects = args [ :objects ] if args . key? ( :objects )
1625+ @oci = args [ :oci ] if args . key? ( :oci )
16161626 @python_packages = args [ :python_packages ] if args . key? ( :python_packages )
16171627 end
16181628 end
@@ -2247,6 +2257,12 @@ class GoogleDevtoolsCloudbuildV1BuiltImage
22472257 # @return [String]
22482258 attr_accessor :name
22492259
2260+ # Output only. The OCI media type of the artifact. Non-OCI images, such as
2261+ # Docker images, will have an unspecified value.
2262+ # Corresponds to the JSON property `ociMediaType`
2263+ # @return [String]
2264+ attr_accessor :oci_media_type
2265+
22502266 # Start and end times for a build execution phase.
22512267 # Corresponds to the JSON property `pushTiming`
22522268 # @return [Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1TimeSpan]
@@ -2261,6 +2277,7 @@ def update!(**args)
22612277 @artifact_registry_package = args [ :artifact_registry_package ] if args . key? ( :artifact_registry_package )
22622278 @digest = args [ :digest ] if args . key? ( :digest )
22632279 @name = args [ :name ] if args . key? ( :name )
2280+ @oci_media_type = args [ :oci_media_type ] if args . key? ( :oci_media_type )
22642281 @push_timing = args [ :push_timing ] if args . key? ( :push_timing )
22652282 end
22662283 end
@@ -2757,6 +2774,40 @@ def update!(**args)
27572774 end
27582775 end
27592776
2777+ # OCI image to upload to Artifact Registry upon successful completion of all
2778+ # build steps.
2779+ class GoogleDevtoolsCloudbuildV1Oci
2780+ include Google ::Apis ::Core ::Hashable
2781+
2782+ # Required. Path on the local file system where to find the container to upload.
2783+ # e.g. /workspace/my-image.tar
2784+ # Corresponds to the JSON property `file`
2785+ # @return [String]
2786+ attr_accessor :file
2787+
2788+ # Required. Registry path to upload the container to. e.g. us-east1-docker.pkg.
2789+ # dev/my-project/my-repo/my-image
2790+ # Corresponds to the JSON property `registryPath`
2791+ # @return [String]
2792+ attr_accessor :registry_path
2793+
2794+ # Optional. Tags to apply to the uploaded image. e.g. latest, 1.0.0
2795+ # Corresponds to the JSON property `tags`
2796+ # @return [Array<String>]
2797+ attr_accessor :tags
2798+
2799+ def initialize ( **args )
2800+ update! ( **args )
2801+ end
2802+
2803+ # Update properties of this object
2804+ def update! ( **args )
2805+ @file = args [ :file ] if args . key? ( :file )
2806+ @registry_path = args [ :registry_path ] if args . key? ( :registry_path )
2807+ @tags = args [ :tags ] if args . key? ( :tags )
2808+ end
2809+ end
2810+
27602811 # Details about how a build should be executed on a `WorkerPool`. See [running
27612812 # builds in a private pool](https://cloud.google.com/build/docs/private-pools/
27622813 # run-builds-in-private-pool) for more information.
0 commit comments