@@ -921,20 +921,39 @@ class ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts
921921 # @return [Array<String>]
922922 attr_accessor :images
923923
924+ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful
925+ # completion of all build steps. Artifacts in the workspace matching specified
926+ # paths globs will be uploaded to the specified Artifact Registry repository
927+ # using the builder service account's credentials. If any artifacts fail to be
928+ # pushed, the build is marked FAILURE.
929+ # Corresponds to the JSON property `mavenArtifacts`
930+ # @return [Array<Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact>]
931+ attr_accessor :maven_artifacts
932+
924933 # Files in the workspace to upload to Cloud Storage upon successful completion
925934 # of all build steps.
926935 # Corresponds to the JSON property `objects`
927936 # @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects]
928937 attr_accessor :objects
929938
939+ # A list of Python packages to be uploaded to Artifact Registry upon successful
940+ # completion of all build steps. The build service account credentials will be
941+ # used to perform the upload. If any objects fail to be pushed, the build is
942+ # marked FAILURE.
943+ # Corresponds to the JSON property `pythonPackages`
944+ # @return [Array<Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage>]
945+ attr_accessor :python_packages
946+
930947 def initialize ( **args )
931948 update! ( **args )
932949 end
933950
934951 # Update properties of this object
935952 def update! ( **args )
936953 @images = args [ :images ] if args . key? ( :images )
954+ @maven_artifacts = args [ :maven_artifacts ] if args . key? ( :maven_artifacts )
937955 @objects = args [ :objects ] if args . key? ( :objects )
956+ @python_packages = args [ :python_packages ] if args . key? ( :python_packages )
938957 end
939958 end
940959
@@ -973,6 +992,85 @@ def update!(**args)
973992 end
974993 end
975994
995+ # A Maven artifact to upload to Artifact Registry upon successful completion of
996+ # all build steps.
997+ class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact
998+ include Google ::Apis ::Core ::Hashable
999+
1000+ # Maven `artifactId` value used when uploading the artifact to Artifact Registry.
1001+ # Corresponds to the JSON property `artifactId`
1002+ # @return [String]
1003+ attr_accessor :artifact_id
1004+
1005+ # Maven `groupId` value used when uploading the artifact to Artifact Registry.
1006+ # Corresponds to the JSON property `groupId`
1007+ # @return [String]
1008+ attr_accessor :group_id
1009+
1010+ # Path to an artifact in the build's workspace to be uploaded to Artifact
1011+ # Registry. This can be either an absolute path, e.g. /workspace/my-app/target/
1012+ # my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/
1013+ # my-app-1.0.SNAPSHOT.jar.
1014+ # Corresponds to the JSON property `path`
1015+ # @return [String]
1016+ attr_accessor :path
1017+
1018+ # Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$
1019+ # PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be
1020+ # uploaded to Artifact Registry with this location as a prefix.
1021+ # Corresponds to the JSON property `repository`
1022+ # @return [String]
1023+ attr_accessor :repository
1024+
1025+ # Maven `version` value used when uploading the artifact to Artifact Registry.
1026+ # Corresponds to the JSON property `version`
1027+ # @return [String]
1028+ attr_accessor :version
1029+
1030+ def initialize ( **args )
1031+ update! ( **args )
1032+ end
1033+
1034+ # Update properties of this object
1035+ def update! ( **args )
1036+ @artifact_id = args [ :artifact_id ] if args . key? ( :artifact_id )
1037+ @group_id = args [ :group_id ] if args . key? ( :group_id )
1038+ @path = args [ :path ] if args . key? ( :path )
1039+ @repository = args [ :repository ] if args . key? ( :repository )
1040+ @version = args [ :version ] if args . key? ( :version )
1041+ end
1042+ end
1043+
1044+ # Python package to upload to Artifact Registry upon successful completion of
1045+ # all build steps. A package can encapsulate multiple objects to be uploaded to
1046+ # a single repository.
1047+ class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage
1048+ include Google ::Apis ::Core ::Hashable
1049+
1050+ # Path globs used to match files in the build's workspace. For Python/ Twine,
1051+ # this is usually `dist/*`, and sometimes additionally an `.asc` file.
1052+ # Corresponds to the JSON property `paths`
1053+ # @return [Array<String>]
1054+ attr_accessor :paths
1055+
1056+ # Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$
1057+ # PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be
1058+ # uploaded to Artifact Registry with this location as a prefix.
1059+ # Corresponds to the JSON property `repository`
1060+ # @return [String]
1061+ attr_accessor :repository
1062+
1063+ def initialize ( **args )
1064+ update! ( **args )
1065+ end
1066+
1067+ # Update properties of this object
1068+ def update! ( **args )
1069+ @paths = args [ :paths ] if args . key? ( :paths )
1070+ @repository = args [ :repository ] if args . key? ( :repository )
1071+ end
1072+ end
1073+
9761074 # A build resource in the Cloud Build API. At a high level, a `Build` describes
9771075 # where to find source code, how to build it (for example, the builder image to
9781076 # run on the source), and where to store the built artifacts. Fields can include
@@ -1147,10 +1245,10 @@ class ContaineranalysisGoogleDevtoolsCloudbuildV1Build
11471245 attr_accessor :timeout
11481246
11491247 # Output only. Stores timing information for phases of the build. Valid keys are:
1150- # * BUILD: time to execute all build steps. * PUSH: time to push all specified
1151- # images. * FETCHSOURCE: time to fetch source . * SETUPBUILD : time to set up
1152- # build. If the build does not specify source or images, these keys will not be
1153- # included.
1248+ # * BUILD: time to execute all build steps. * PUSH: time to push all artifacts
1249+ # including docker images and non docker artifacts . * FETCHSOURCE : time to fetch
1250+ # source. * SETUPBUILD: time to set up build. If the build does not specify
1251+ # source or images, these keys will not be included.
11541252 # Corresponds to the JSON property `timing`
11551253 # @return [Hash<String,Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan>]
11561254 attr_accessor :timing
@@ -1759,7 +1857,8 @@ def update!(**args)
17591857 class ContaineranalysisGoogleDevtoolsCloudbuildV1Results
17601858 include Google ::Apis ::Core ::Hashable
17611859
1762- # Path to the artifact manifest. Only populated when artifacts are uploaded.
1860+ # Path to the artifact manifest for non-container artifacts uploaded to Cloud
1861+ # Storage. Only populated when artifacts are uploaded to Cloud Storage.
17631862 # Corresponds to the JSON property `artifactManifest`
17641863 # @return [String]
17651864 attr_accessor :artifact_manifest
@@ -1787,11 +1886,22 @@ class ContaineranalysisGoogleDevtoolsCloudbuildV1Results
17871886 # @return [Array<Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage>]
17881887 attr_accessor :images
17891888
1790- # Number of artifacts uploaded. Only populated when artifacts are uploaded.
1889+ # Maven artifacts uploaded to Artifact Registry at the end of the build.
1890+ # Corresponds to the JSON property `mavenArtifacts`
1891+ # @return [Array<Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact>]
1892+ attr_accessor :maven_artifacts
1893+
1894+ # Number of non-container artifacts uploaded to Cloud Storage. Only populated
1895+ # when artifacts are uploaded to Cloud Storage.
17911896 # Corresponds to the JSON property `numArtifacts`
17921897 # @return [Fixnum]
17931898 attr_accessor :num_artifacts
17941899
1900+ # Python artifacts uploaded to Artifact Registry at the end of the build.
1901+ # Corresponds to the JSON property `pythonPackages`
1902+ # @return [Array<Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage>]
1903+ attr_accessor :python_packages
1904+
17951905 def initialize ( **args )
17961906 update! ( **args )
17971907 end
@@ -1803,7 +1913,9 @@ def update!(**args)
18031913 @build_step_images = args [ :build_step_images ] if args . key? ( :build_step_images )
18041914 @build_step_outputs = args [ :build_step_outputs ] if args . key? ( :build_step_outputs )
18051915 @images = args [ :images ] if args . key? ( :images )
1916+ @maven_artifacts = args [ :maven_artifacts ] if args . key? ( :maven_artifacts )
18061917 @num_artifacts = args [ :num_artifacts ] if args . key? ( :num_artifacts )
1918+ @python_packages = args [ :python_packages ] if args . key? ( :python_packages )
18071919 end
18081920 end
18091921
@@ -2067,6 +2179,70 @@ def update!(**args)
20672179 end
20682180 end
20692181
2182+ # A Maven artifact uploaded using the MavenArtifact directive.
2183+ class ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact
2184+ include Google ::Apis ::Core ::Hashable
2185+
2186+ # Container message for hashes of byte content of files, used in
2187+ # SourceProvenance messages to verify integrity of source input to the build.
2188+ # Corresponds to the JSON property `fileHashes`
2189+ # @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes]
2190+ attr_accessor :file_hashes
2191+
2192+ # Start and end times for a build execution phase.
2193+ # Corresponds to the JSON property `pushTiming`
2194+ # @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan]
2195+ attr_accessor :push_timing
2196+
2197+ # URI of the uploaded artifact.
2198+ # Corresponds to the JSON property `uri`
2199+ # @return [String]
2200+ attr_accessor :uri
2201+
2202+ def initialize ( **args )
2203+ update! ( **args )
2204+ end
2205+
2206+ # Update properties of this object
2207+ def update! ( **args )
2208+ @file_hashes = args [ :file_hashes ] if args . key? ( :file_hashes )
2209+ @push_timing = args [ :push_timing ] if args . key? ( :push_timing )
2210+ @uri = args [ :uri ] if args . key? ( :uri )
2211+ end
2212+ end
2213+
2214+ # Artifact uploaded using the PythonPackage directive.
2215+ class ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage
2216+ include Google ::Apis ::Core ::Hashable
2217+
2218+ # Container message for hashes of byte content of files, used in
2219+ # SourceProvenance messages to verify integrity of source input to the build.
2220+ # Corresponds to the JSON property `fileHashes`
2221+ # @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes]
2222+ attr_accessor :file_hashes
2223+
2224+ # Start and end times for a build execution phase.
2225+ # Corresponds to the JSON property `pushTiming`
2226+ # @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan]
2227+ attr_accessor :push_timing
2228+
2229+ # URI of the uploaded artifact.
2230+ # Corresponds to the JSON property `uri`
2231+ # @return [String]
2232+ attr_accessor :uri
2233+
2234+ def initialize ( **args )
2235+ update! ( **args )
2236+ end
2237+
2238+ # Update properties of this object
2239+ def update! ( **args )
2240+ @file_hashes = args [ :file_hashes ] if args . key? ( :file_hashes )
2241+ @push_timing = args [ :push_timing ] if args . key? ( :push_timing )
2242+ @uri = args [ :uri ] if args . key? ( :uri )
2243+ end
2244+ end
2245+
20702246 # Volume describes a Docker container volume which is mounted into build steps
20712247 # in order to persist files across build step execution.
20722248 class ContaineranalysisGoogleDevtoolsCloudbuildV1Volume
0 commit comments