From 555317bfb60133f8ff82d4ac28651631404980d4 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Tue, 11 Oct 2022 07:18:45 +0000 Subject: [PATCH] feat(cloudbuild): update the api #### cloudbuild:v1 The following keys were added: - schemas.Artifacts.properties.mavenArtifacts (Total Keys: 2) - schemas.Artifacts.properties.pythonPackages (Total Keys: 2) - schemas.MavenArtifact (Total Keys: 7) - schemas.PythonPackage (Total Keys: 5) - schemas.Results.properties.mavenArtifacts (Total Keys: 2) - schemas.Results.properties.pythonPackages (Total Keys: 2) - schemas.UploadedMavenArtifact (Total Keys: 6) - schemas.UploadedPythonPackage (Total Keys: 6) #### cloudbuild:v1alpha1 The following keys were added: - schemas.Artifacts.properties.mavenArtifacts (Total Keys: 2) - schemas.Artifacts.properties.pythonPackages (Total Keys: 2) - schemas.MavenArtifact (Total Keys: 7) - schemas.PythonPackage (Total Keys: 5) - schemas.Results.properties.mavenArtifacts (Total Keys: 2) - schemas.Results.properties.pythonPackages (Total Keys: 2) - schemas.UploadedMavenArtifact (Total Keys: 6) - schemas.UploadedPythonPackage (Total Keys: 6) #### cloudbuild:v1alpha2 The following keys were added: - schemas.Artifacts.properties.mavenArtifacts (Total Keys: 2) - schemas.Artifacts.properties.pythonPackages (Total Keys: 2) - schemas.MavenArtifact (Total Keys: 7) - schemas.PythonPackage (Total Keys: 5) - schemas.Results.properties.mavenArtifacts (Total Keys: 2) - schemas.Results.properties.pythonPackages (Total Keys: 2) - schemas.UploadedMavenArtifact (Total Keys: 6) - schemas.UploadedPythonPackage (Total Keys: 6) #### cloudbuild:v1beta1 The following keys were added: - schemas.Artifacts.properties.mavenArtifacts (Total Keys: 2) - schemas.Artifacts.properties.pythonPackages (Total Keys: 2) - schemas.MavenArtifact (Total Keys: 7) - schemas.PythonPackage (Total Keys: 5) - schemas.Results.properties.mavenArtifacts (Total Keys: 2) - schemas.Results.properties.pythonPackages (Total Keys: 2) - schemas.UploadedMavenArtifact (Total Keys: 6) - schemas.UploadedPythonPackage (Total Keys: 6) --- docs/dyn/cloudbuild_v1.projects.builds.html | 204 ++++++++++++ ...oudbuild_v1.projects.locations.builds.html | 204 ++++++++++++ ...dbuild_v1.projects.locations.triggers.html | 306 ++++++++++++++++++ docs/dyn/cloudbuild_v1.projects.triggers.html | 306 ++++++++++++++++++ .../documents/cloudbuild.v1.json | 115 ++++++- .../documents/cloudbuild.v1alpha1.json | 115 ++++++- .../documents/cloudbuild.v1alpha2.json | 115 ++++++- .../documents/cloudbuild.v1beta1.json | 115 ++++++- 8 files changed, 1476 insertions(+), 4 deletions(-) diff --git a/docs/dyn/cloudbuild_v1.projects.builds.html b/docs/dyn/cloudbuild_v1.projects.builds.html index 99fbd0df057..2ee01ad2df7 100644 --- a/docs/dyn/cloudbuild_v1.projects.builds.html +++ b/docs/dyn/cloudbuild_v1.projects.builds.html @@ -189,6 +189,15 @@

Method Details

"images": [ # 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 resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. "A String", ], + "mavenArtifacts": [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. + { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps. + "artifactId": "A String", # Maven `artifactId` value used when uploading the artifact to Artifact Registry. + "groupId": "A String", # Maven `groupId` value used when uploading the artifact to Artifact Registry. + "path": "A String", # Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix. + "version": "A String", # Maven `version` value used when uploading the artifact to Artifact Registry. + }, + ], "objects": { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE. "location": "A String", # Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. "paths": [ # Path globs used to match files in the build's workspace. @@ -199,6 +208,14 @@

Method Details

"startTime": "A String", # Start of time span. }, }, + "pythonPackages": [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE. + { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository. + "paths": [ # Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. + "A String", + ], + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix. + }, + ], }, "availableSecrets": { # Secrets and secret environment variables. # Secrets and secret environment variables. "inline": [ # Secrets encrypted with KMS key and the associated secret environment variable. @@ -282,7 +299,41 @@

Method Details

}, }, ], + "mavenArtifacts": [ # Maven artifacts uploaded to Artifact Registry at the end of the build. + { # A Maven artifact uploaded using the MavenArtifact directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], "numArtifacts": "A String", # Number of artifacts uploaded. Only populated when artifacts are uploaded. + "pythonPackages": [ # Python artifacts uploaded to Artifact Registry at the end of the build. + { # Artifact uploaded using the PythonPackage directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], }, "secrets": [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. @@ -450,6 +501,15 @@

Method Details

"images": [ # 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 resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. "A String", ], + "mavenArtifacts": [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. + { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps. + "artifactId": "A String", # Maven `artifactId` value used when uploading the artifact to Artifact Registry. + "groupId": "A String", # Maven `groupId` value used when uploading the artifact to Artifact Registry. + "path": "A String", # Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix. + "version": "A String", # Maven `version` value used when uploading the artifact to Artifact Registry. + }, + ], "objects": { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE. "location": "A String", # Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. "paths": [ # Path globs used to match files in the build's workspace. @@ -460,6 +520,14 @@

Method Details

"startTime": "A String", # Start of time span. }, }, + "pythonPackages": [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE. + { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository. + "paths": [ # Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. + "A String", + ], + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix. + }, + ], }, "availableSecrets": { # Secrets and secret environment variables. # Secrets and secret environment variables. "inline": [ # Secrets encrypted with KMS key and the associated secret environment variable. @@ -543,7 +611,41 @@

Method Details

}, }, ], + "mavenArtifacts": [ # Maven artifacts uploaded to Artifact Registry at the end of the build. + { # A Maven artifact uploaded using the MavenArtifact directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], "numArtifacts": "A String", # Number of artifacts uploaded. Only populated when artifacts are uploaded. + "pythonPackages": [ # Python artifacts uploaded to Artifact Registry at the end of the build. + { # Artifact uploaded using the PythonPackage directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], }, "secrets": [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. @@ -742,6 +844,15 @@

Method Details

"images": [ # 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 resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. "A String", ], + "mavenArtifacts": [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. + { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps. + "artifactId": "A String", # Maven `artifactId` value used when uploading the artifact to Artifact Registry. + "groupId": "A String", # Maven `groupId` value used when uploading the artifact to Artifact Registry. + "path": "A String", # Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix. + "version": "A String", # Maven `version` value used when uploading the artifact to Artifact Registry. + }, + ], "objects": { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE. "location": "A String", # Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. "paths": [ # Path globs used to match files in the build's workspace. @@ -752,6 +863,14 @@

Method Details

"startTime": "A String", # Start of time span. }, }, + "pythonPackages": [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE. + { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository. + "paths": [ # Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. + "A String", + ], + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix. + }, + ], }, "availableSecrets": { # Secrets and secret environment variables. # Secrets and secret environment variables. "inline": [ # Secrets encrypted with KMS key and the associated secret environment variable. @@ -835,7 +954,41 @@

Method Details

}, }, ], + "mavenArtifacts": [ # Maven artifacts uploaded to Artifact Registry at the end of the build. + { # A Maven artifact uploaded using the MavenArtifact directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], "numArtifacts": "A String", # Number of artifacts uploaded. Only populated when artifacts are uploaded. + "pythonPackages": [ # Python artifacts uploaded to Artifact Registry at the end of the build. + { # Artifact uploaded using the PythonPackage directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], }, "secrets": [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. @@ -1009,6 +1162,15 @@

Method Details

"images": [ # 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 resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. "A String", ], + "mavenArtifacts": [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. + { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps. + "artifactId": "A String", # Maven `artifactId` value used when uploading the artifact to Artifact Registry. + "groupId": "A String", # Maven `groupId` value used when uploading the artifact to Artifact Registry. + "path": "A String", # Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix. + "version": "A String", # Maven `version` value used when uploading the artifact to Artifact Registry. + }, + ], "objects": { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE. "location": "A String", # Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. "paths": [ # Path globs used to match files in the build's workspace. @@ -1019,6 +1181,14 @@

Method Details

"startTime": "A String", # Start of time span. }, }, + "pythonPackages": [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE. + { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository. + "paths": [ # Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. + "A String", + ], + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix. + }, + ], }, "availableSecrets": { # Secrets and secret environment variables. # Secrets and secret environment variables. "inline": [ # Secrets encrypted with KMS key and the associated secret environment variable. @@ -1102,7 +1272,41 @@

Method Details

}, }, ], + "mavenArtifacts": [ # Maven artifacts uploaded to Artifact Registry at the end of the build. + { # A Maven artifact uploaded using the MavenArtifact directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], "numArtifacts": "A String", # Number of artifacts uploaded. Only populated when artifacts are uploaded. + "pythonPackages": [ # Python artifacts uploaded to Artifact Registry at the end of the build. + { # Artifact uploaded using the PythonPackage directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], }, "secrets": [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. diff --git a/docs/dyn/cloudbuild_v1.projects.locations.builds.html b/docs/dyn/cloudbuild_v1.projects.locations.builds.html index 5cec175bf1e..809d5c164c8 100644 --- a/docs/dyn/cloudbuild_v1.projects.locations.builds.html +++ b/docs/dyn/cloudbuild_v1.projects.locations.builds.html @@ -188,6 +188,15 @@

Method Details

"images": [ # 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 resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. "A String", ], + "mavenArtifacts": [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. + { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps. + "artifactId": "A String", # Maven `artifactId` value used when uploading the artifact to Artifact Registry. + "groupId": "A String", # Maven `groupId` value used when uploading the artifact to Artifact Registry. + "path": "A String", # Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix. + "version": "A String", # Maven `version` value used when uploading the artifact to Artifact Registry. + }, + ], "objects": { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE. "location": "A String", # Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. "paths": [ # Path globs used to match files in the build's workspace. @@ -198,6 +207,14 @@

Method Details

"startTime": "A String", # Start of time span. }, }, + "pythonPackages": [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE. + { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository. + "paths": [ # Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. + "A String", + ], + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix. + }, + ], }, "availableSecrets": { # Secrets and secret environment variables. # Secrets and secret environment variables. "inline": [ # Secrets encrypted with KMS key and the associated secret environment variable. @@ -281,7 +298,41 @@

Method Details

}, }, ], + "mavenArtifacts": [ # Maven artifacts uploaded to Artifact Registry at the end of the build. + { # A Maven artifact uploaded using the MavenArtifact directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], "numArtifacts": "A String", # Number of artifacts uploaded. Only populated when artifacts are uploaded. + "pythonPackages": [ # Python artifacts uploaded to Artifact Registry at the end of the build. + { # Artifact uploaded using the PythonPackage directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], }, "secrets": [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. @@ -449,6 +500,15 @@

Method Details

"images": [ # 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 resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. "A String", ], + "mavenArtifacts": [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. + { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps. + "artifactId": "A String", # Maven `artifactId` value used when uploading the artifact to Artifact Registry. + "groupId": "A String", # Maven `groupId` value used when uploading the artifact to Artifact Registry. + "path": "A String", # Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix. + "version": "A String", # Maven `version` value used when uploading the artifact to Artifact Registry. + }, + ], "objects": { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE. "location": "A String", # Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. "paths": [ # Path globs used to match files in the build's workspace. @@ -459,6 +519,14 @@

Method Details

"startTime": "A String", # Start of time span. }, }, + "pythonPackages": [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE. + { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository. + "paths": [ # Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. + "A String", + ], + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix. + }, + ], }, "availableSecrets": { # Secrets and secret environment variables. # Secrets and secret environment variables. "inline": [ # Secrets encrypted with KMS key and the associated secret environment variable. @@ -542,7 +610,41 @@

Method Details

}, }, ], + "mavenArtifacts": [ # Maven artifacts uploaded to Artifact Registry at the end of the build. + { # A Maven artifact uploaded using the MavenArtifact directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], "numArtifacts": "A String", # Number of artifacts uploaded. Only populated when artifacts are uploaded. + "pythonPackages": [ # Python artifacts uploaded to Artifact Registry at the end of the build. + { # Artifact uploaded using the PythonPackage directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], }, "secrets": [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. @@ -741,6 +843,15 @@

Method Details

"images": [ # 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 resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. "A String", ], + "mavenArtifacts": [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. + { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps. + "artifactId": "A String", # Maven `artifactId` value used when uploading the artifact to Artifact Registry. + "groupId": "A String", # Maven `groupId` value used when uploading the artifact to Artifact Registry. + "path": "A String", # Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix. + "version": "A String", # Maven `version` value used when uploading the artifact to Artifact Registry. + }, + ], "objects": { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE. "location": "A String", # Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. "paths": [ # Path globs used to match files in the build's workspace. @@ -751,6 +862,14 @@

Method Details

"startTime": "A String", # Start of time span. }, }, + "pythonPackages": [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE. + { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository. + "paths": [ # Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. + "A String", + ], + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix. + }, + ], }, "availableSecrets": { # Secrets and secret environment variables. # Secrets and secret environment variables. "inline": [ # Secrets encrypted with KMS key and the associated secret environment variable. @@ -834,7 +953,41 @@

Method Details

}, }, ], + "mavenArtifacts": [ # Maven artifacts uploaded to Artifact Registry at the end of the build. + { # A Maven artifact uploaded using the MavenArtifact directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], "numArtifacts": "A String", # Number of artifacts uploaded. Only populated when artifacts are uploaded. + "pythonPackages": [ # Python artifacts uploaded to Artifact Registry at the end of the build. + { # Artifact uploaded using the PythonPackage directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], }, "secrets": [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. @@ -1008,6 +1161,15 @@

Method Details

"images": [ # 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 resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. "A String", ], + "mavenArtifacts": [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. + { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps. + "artifactId": "A String", # Maven `artifactId` value used when uploading the artifact to Artifact Registry. + "groupId": "A String", # Maven `groupId` value used when uploading the artifact to Artifact Registry. + "path": "A String", # Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix. + "version": "A String", # Maven `version` value used when uploading the artifact to Artifact Registry. + }, + ], "objects": { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE. "location": "A String", # Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. "paths": [ # Path globs used to match files in the build's workspace. @@ -1018,6 +1180,14 @@

Method Details

"startTime": "A String", # Start of time span. }, }, + "pythonPackages": [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE. + { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository. + "paths": [ # Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. + "A String", + ], + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix. + }, + ], }, "availableSecrets": { # Secrets and secret environment variables. # Secrets and secret environment variables. "inline": [ # Secrets encrypted with KMS key and the associated secret environment variable. @@ -1101,7 +1271,41 @@

Method Details

}, }, ], + "mavenArtifacts": [ # Maven artifacts uploaded to Artifact Registry at the end of the build. + { # A Maven artifact uploaded using the MavenArtifact directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], "numArtifacts": "A String", # Number of artifacts uploaded. Only populated when artifacts are uploaded. + "pythonPackages": [ # Python artifacts uploaded to Artifact Registry at the end of the build. + { # Artifact uploaded using the PythonPackage directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], }, "secrets": [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. diff --git a/docs/dyn/cloudbuild_v1.projects.locations.triggers.html b/docs/dyn/cloudbuild_v1.projects.locations.triggers.html index 08469375a15..95474ee030e 100644 --- a/docs/dyn/cloudbuild_v1.projects.locations.triggers.html +++ b/docs/dyn/cloudbuild_v1.projects.locations.triggers.html @@ -176,6 +176,15 @@

Method Details

"images": [ # 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 resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. "A String", ], + "mavenArtifacts": [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. + { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps. + "artifactId": "A String", # Maven `artifactId` value used when uploading the artifact to Artifact Registry. + "groupId": "A String", # Maven `groupId` value used when uploading the artifact to Artifact Registry. + "path": "A String", # Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix. + "version": "A String", # Maven `version` value used when uploading the artifact to Artifact Registry. + }, + ], "objects": { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE. "location": "A String", # Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. "paths": [ # Path globs used to match files in the build's workspace. @@ -186,6 +195,14 @@

Method Details

"startTime": "A String", # Start of time span. }, }, + "pythonPackages": [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE. + { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository. + "paths": [ # Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. + "A String", + ], + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix. + }, + ], }, "availableSecrets": { # Secrets and secret environment variables. # Secrets and secret environment variables. "inline": [ # Secrets encrypted with KMS key and the associated secret environment variable. @@ -269,7 +286,41 @@

Method Details

}, }, ], + "mavenArtifacts": [ # Maven artifacts uploaded to Artifact Registry at the end of the build. + { # A Maven artifact uploaded using the MavenArtifact directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], "numArtifacts": "A String", # Number of artifacts uploaded. Only populated when artifacts are uploaded. + "pythonPackages": [ # Python artifacts uploaded to Artifact Registry at the end of the build. + { # Artifact uploaded using the PythonPackage directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], }, "secrets": [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. @@ -589,6 +640,15 @@

Method Details

"images": [ # 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 resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. "A String", ], + "mavenArtifacts": [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. + { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps. + "artifactId": "A String", # Maven `artifactId` value used when uploading the artifact to Artifact Registry. + "groupId": "A String", # Maven `groupId` value used when uploading the artifact to Artifact Registry. + "path": "A String", # Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix. + "version": "A String", # Maven `version` value used when uploading the artifact to Artifact Registry. + }, + ], "objects": { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE. "location": "A String", # Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. "paths": [ # Path globs used to match files in the build's workspace. @@ -599,6 +659,14 @@

Method Details

"startTime": "A String", # Start of time span. }, }, + "pythonPackages": [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE. + { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository. + "paths": [ # Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. + "A String", + ], + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix. + }, + ], }, "availableSecrets": { # Secrets and secret environment variables. # Secrets and secret environment variables. "inline": [ # Secrets encrypted with KMS key and the associated secret environment variable. @@ -682,7 +750,41 @@

Method Details

}, }, ], + "mavenArtifacts": [ # Maven artifacts uploaded to Artifact Registry at the end of the build. + { # A Maven artifact uploaded using the MavenArtifact directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], "numArtifacts": "A String", # Number of artifacts uploaded. Only populated when artifacts are uploaded. + "pythonPackages": [ # Python artifacts uploaded to Artifact Registry at the end of the build. + { # Artifact uploaded using the PythonPackage directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], }, "secrets": [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. @@ -1030,6 +1132,15 @@

Method Details

"images": [ # 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 resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. "A String", ], + "mavenArtifacts": [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. + { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps. + "artifactId": "A String", # Maven `artifactId` value used when uploading the artifact to Artifact Registry. + "groupId": "A String", # Maven `groupId` value used when uploading the artifact to Artifact Registry. + "path": "A String", # Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix. + "version": "A String", # Maven `version` value used when uploading the artifact to Artifact Registry. + }, + ], "objects": { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE. "location": "A String", # Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. "paths": [ # Path globs used to match files in the build's workspace. @@ -1040,6 +1151,14 @@

Method Details

"startTime": "A String", # Start of time span. }, }, + "pythonPackages": [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE. + { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository. + "paths": [ # Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. + "A String", + ], + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix. + }, + ], }, "availableSecrets": { # Secrets and secret environment variables. # Secrets and secret environment variables. "inline": [ # Secrets encrypted with KMS key and the associated secret environment variable. @@ -1123,7 +1242,41 @@

Method Details

}, }, ], + "mavenArtifacts": [ # Maven artifacts uploaded to Artifact Registry at the end of the build. + { # A Maven artifact uploaded using the MavenArtifact directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], "numArtifacts": "A String", # Number of artifacts uploaded. Only populated when artifacts are uploaded. + "pythonPackages": [ # Python artifacts uploaded to Artifact Registry at the end of the build. + { # Artifact uploaded using the PythonPackage directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], }, "secrets": [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. @@ -1455,6 +1608,15 @@

Method Details

"images": [ # 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 resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. "A String", ], + "mavenArtifacts": [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. + { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps. + "artifactId": "A String", # Maven `artifactId` value used when uploading the artifact to Artifact Registry. + "groupId": "A String", # Maven `groupId` value used when uploading the artifact to Artifact Registry. + "path": "A String", # Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix. + "version": "A String", # Maven `version` value used when uploading the artifact to Artifact Registry. + }, + ], "objects": { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE. "location": "A String", # Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. "paths": [ # Path globs used to match files in the build's workspace. @@ -1465,6 +1627,14 @@

Method Details

"startTime": "A String", # Start of time span. }, }, + "pythonPackages": [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE. + { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository. + "paths": [ # Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. + "A String", + ], + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix. + }, + ], }, "availableSecrets": { # Secrets and secret environment variables. # Secrets and secret environment variables. "inline": [ # Secrets encrypted with KMS key and the associated secret environment variable. @@ -1548,7 +1718,41 @@

Method Details

}, }, ], + "mavenArtifacts": [ # Maven artifacts uploaded to Artifact Registry at the end of the build. + { # A Maven artifact uploaded using the MavenArtifact directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], "numArtifacts": "A String", # Number of artifacts uploaded. Only populated when artifacts are uploaded. + "pythonPackages": [ # Python artifacts uploaded to Artifact Registry at the end of the build. + { # Artifact uploaded using the PythonPackage directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], }, "secrets": [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. @@ -1885,6 +2089,15 @@

Method Details

"images": [ # 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 resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. "A String", ], + "mavenArtifacts": [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. + { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps. + "artifactId": "A String", # Maven `artifactId` value used when uploading the artifact to Artifact Registry. + "groupId": "A String", # Maven `groupId` value used when uploading the artifact to Artifact Registry. + "path": "A String", # Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix. + "version": "A String", # Maven `version` value used when uploading the artifact to Artifact Registry. + }, + ], "objects": { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE. "location": "A String", # Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. "paths": [ # Path globs used to match files in the build's workspace. @@ -1895,6 +2108,14 @@

Method Details

"startTime": "A String", # Start of time span. }, }, + "pythonPackages": [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE. + { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository. + "paths": [ # Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. + "A String", + ], + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix. + }, + ], }, "availableSecrets": { # Secrets and secret environment variables. # Secrets and secret environment variables. "inline": [ # Secrets encrypted with KMS key and the associated secret environment variable. @@ -1978,7 +2199,41 @@

Method Details

}, }, ], + "mavenArtifacts": [ # Maven artifacts uploaded to Artifact Registry at the end of the build. + { # A Maven artifact uploaded using the MavenArtifact directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], "numArtifacts": "A String", # Number of artifacts uploaded. Only populated when artifacts are uploaded. + "pythonPackages": [ # Python artifacts uploaded to Artifact Registry at the end of the build. + { # Artifact uploaded using the PythonPackage directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], }, "secrets": [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. @@ -2299,6 +2554,15 @@

Method Details

"images": [ # 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 resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. "A String", ], + "mavenArtifacts": [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. + { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps. + "artifactId": "A String", # Maven `artifactId` value used when uploading the artifact to Artifact Registry. + "groupId": "A String", # Maven `groupId` value used when uploading the artifact to Artifact Registry. + "path": "A String", # Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix. + "version": "A String", # Maven `version` value used when uploading the artifact to Artifact Registry. + }, + ], "objects": { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE. "location": "A String", # Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. "paths": [ # Path globs used to match files in the build's workspace. @@ -2309,6 +2573,14 @@

Method Details

"startTime": "A String", # Start of time span. }, }, + "pythonPackages": [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE. + { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository. + "paths": [ # Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. + "A String", + ], + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix. + }, + ], }, "availableSecrets": { # Secrets and secret environment variables. # Secrets and secret environment variables. "inline": [ # Secrets encrypted with KMS key and the associated secret environment variable. @@ -2392,7 +2664,41 @@

Method Details

}, }, ], + "mavenArtifacts": [ # Maven artifacts uploaded to Artifact Registry at the end of the build. + { # A Maven artifact uploaded using the MavenArtifact directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], "numArtifacts": "A String", # Number of artifacts uploaded. Only populated when artifacts are uploaded. + "pythonPackages": [ # Python artifacts uploaded to Artifact Registry at the end of the build. + { # Artifact uploaded using the PythonPackage directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], }, "secrets": [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. diff --git a/docs/dyn/cloudbuild_v1.projects.triggers.html b/docs/dyn/cloudbuild_v1.projects.triggers.html index 442d919a80b..07e6d24c201 100644 --- a/docs/dyn/cloudbuild_v1.projects.triggers.html +++ b/docs/dyn/cloudbuild_v1.projects.triggers.html @@ -176,6 +176,15 @@

Method Details

"images": [ # 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 resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. "A String", ], + "mavenArtifacts": [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. + { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps. + "artifactId": "A String", # Maven `artifactId` value used when uploading the artifact to Artifact Registry. + "groupId": "A String", # Maven `groupId` value used when uploading the artifact to Artifact Registry. + "path": "A String", # Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix. + "version": "A String", # Maven `version` value used when uploading the artifact to Artifact Registry. + }, + ], "objects": { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE. "location": "A String", # Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. "paths": [ # Path globs used to match files in the build's workspace. @@ -186,6 +195,14 @@

Method Details

"startTime": "A String", # Start of time span. }, }, + "pythonPackages": [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE. + { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository. + "paths": [ # Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. + "A String", + ], + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix. + }, + ], }, "availableSecrets": { # Secrets and secret environment variables. # Secrets and secret environment variables. "inline": [ # Secrets encrypted with KMS key and the associated secret environment variable. @@ -269,7 +286,41 @@

Method Details

}, }, ], + "mavenArtifacts": [ # Maven artifacts uploaded to Artifact Registry at the end of the build. + { # A Maven artifact uploaded using the MavenArtifact directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], "numArtifacts": "A String", # Number of artifacts uploaded. Only populated when artifacts are uploaded. + "pythonPackages": [ # Python artifacts uploaded to Artifact Registry at the end of the build. + { # Artifact uploaded using the PythonPackage directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], }, "secrets": [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. @@ -589,6 +640,15 @@

Method Details

"images": [ # 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 resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. "A String", ], + "mavenArtifacts": [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. + { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps. + "artifactId": "A String", # Maven `artifactId` value used when uploading the artifact to Artifact Registry. + "groupId": "A String", # Maven `groupId` value used when uploading the artifact to Artifact Registry. + "path": "A String", # Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix. + "version": "A String", # Maven `version` value used when uploading the artifact to Artifact Registry. + }, + ], "objects": { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE. "location": "A String", # Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. "paths": [ # Path globs used to match files in the build's workspace. @@ -599,6 +659,14 @@

Method Details

"startTime": "A String", # Start of time span. }, }, + "pythonPackages": [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE. + { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository. + "paths": [ # Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. + "A String", + ], + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix. + }, + ], }, "availableSecrets": { # Secrets and secret environment variables. # Secrets and secret environment variables. "inline": [ # Secrets encrypted with KMS key and the associated secret environment variable. @@ -682,7 +750,41 @@

Method Details

}, }, ], + "mavenArtifacts": [ # Maven artifacts uploaded to Artifact Registry at the end of the build. + { # A Maven artifact uploaded using the MavenArtifact directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], "numArtifacts": "A String", # Number of artifacts uploaded. Only populated when artifacts are uploaded. + "pythonPackages": [ # Python artifacts uploaded to Artifact Registry at the end of the build. + { # Artifact uploaded using the PythonPackage directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], }, "secrets": [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. @@ -1030,6 +1132,15 @@

Method Details

"images": [ # 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 resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. "A String", ], + "mavenArtifacts": [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. + { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps. + "artifactId": "A String", # Maven `artifactId` value used when uploading the artifact to Artifact Registry. + "groupId": "A String", # Maven `groupId` value used when uploading the artifact to Artifact Registry. + "path": "A String", # Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix. + "version": "A String", # Maven `version` value used when uploading the artifact to Artifact Registry. + }, + ], "objects": { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE. "location": "A String", # Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. "paths": [ # Path globs used to match files in the build's workspace. @@ -1040,6 +1151,14 @@

Method Details

"startTime": "A String", # Start of time span. }, }, + "pythonPackages": [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE. + { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository. + "paths": [ # Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. + "A String", + ], + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix. + }, + ], }, "availableSecrets": { # Secrets and secret environment variables. # Secrets and secret environment variables. "inline": [ # Secrets encrypted with KMS key and the associated secret environment variable. @@ -1123,7 +1242,41 @@

Method Details

}, }, ], + "mavenArtifacts": [ # Maven artifacts uploaded to Artifact Registry at the end of the build. + { # A Maven artifact uploaded using the MavenArtifact directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], "numArtifacts": "A String", # Number of artifacts uploaded. Only populated when artifacts are uploaded. + "pythonPackages": [ # Python artifacts uploaded to Artifact Registry at the end of the build. + { # Artifact uploaded using the PythonPackage directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], }, "secrets": [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. @@ -1455,6 +1608,15 @@

Method Details

"images": [ # 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 resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. "A String", ], + "mavenArtifacts": [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. + { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps. + "artifactId": "A String", # Maven `artifactId` value used when uploading the artifact to Artifact Registry. + "groupId": "A String", # Maven `groupId` value used when uploading the artifact to Artifact Registry. + "path": "A String", # Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix. + "version": "A String", # Maven `version` value used when uploading the artifact to Artifact Registry. + }, + ], "objects": { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE. "location": "A String", # Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. "paths": [ # Path globs used to match files in the build's workspace. @@ -1465,6 +1627,14 @@

Method Details

"startTime": "A String", # Start of time span. }, }, + "pythonPackages": [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE. + { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository. + "paths": [ # Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. + "A String", + ], + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix. + }, + ], }, "availableSecrets": { # Secrets and secret environment variables. # Secrets and secret environment variables. "inline": [ # Secrets encrypted with KMS key and the associated secret environment variable. @@ -1548,7 +1718,41 @@

Method Details

}, }, ], + "mavenArtifacts": [ # Maven artifacts uploaded to Artifact Registry at the end of the build. + { # A Maven artifact uploaded using the MavenArtifact directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], "numArtifacts": "A String", # Number of artifacts uploaded. Only populated when artifacts are uploaded. + "pythonPackages": [ # Python artifacts uploaded to Artifact Registry at the end of the build. + { # Artifact uploaded using the PythonPackage directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], }, "secrets": [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. @@ -1886,6 +2090,15 @@

Method Details

"images": [ # 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 resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. "A String", ], + "mavenArtifacts": [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. + { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps. + "artifactId": "A String", # Maven `artifactId` value used when uploading the artifact to Artifact Registry. + "groupId": "A String", # Maven `groupId` value used when uploading the artifact to Artifact Registry. + "path": "A String", # Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix. + "version": "A String", # Maven `version` value used when uploading the artifact to Artifact Registry. + }, + ], "objects": { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE. "location": "A String", # Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. "paths": [ # Path globs used to match files in the build's workspace. @@ -1896,6 +2109,14 @@

Method Details

"startTime": "A String", # Start of time span. }, }, + "pythonPackages": [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE. + { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository. + "paths": [ # Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. + "A String", + ], + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix. + }, + ], }, "availableSecrets": { # Secrets and secret environment variables. # Secrets and secret environment variables. "inline": [ # Secrets encrypted with KMS key and the associated secret environment variable. @@ -1979,7 +2200,41 @@

Method Details

}, }, ], + "mavenArtifacts": [ # Maven artifacts uploaded to Artifact Registry at the end of the build. + { # A Maven artifact uploaded using the MavenArtifact directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], "numArtifacts": "A String", # Number of artifacts uploaded. Only populated when artifacts are uploaded. + "pythonPackages": [ # Python artifacts uploaded to Artifact Registry at the end of the build. + { # Artifact uploaded using the PythonPackage directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], }, "secrets": [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. @@ -2298,6 +2553,15 @@

Method Details

"images": [ # 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 resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. "A String", ], + "mavenArtifacts": [ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. + { # A Maven artifact to upload to Artifact Registry upon successful completion of all build steps. + "artifactId": "A String", # Maven `artifactId` value used when uploading the artifact to Artifact Registry. + "groupId": "A String", # Maven `groupId` value used when uploading the artifact to Artifact Registry. + "path": "A String", # Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix. + "version": "A String", # Maven `version` value used when uploading the artifact to Artifact Registry. + }, + ], "objects": { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE. "location": "A String", # Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. "paths": [ # Path globs used to match files in the build's workspace. @@ -2308,6 +2572,14 @@

Method Details

"startTime": "A String", # Start of time span. }, }, + "pythonPackages": [ # A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE. + { # Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository. + "paths": [ # Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. + "A String", + ], + "repository": "A String", # Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix. + }, + ], }, "availableSecrets": { # Secrets and secret environment variables. # Secrets and secret environment variables. "inline": [ # Secrets encrypted with KMS key and the associated secret environment variable. @@ -2391,7 +2663,41 @@

Method Details

}, }, ], + "mavenArtifacts": [ # Maven artifacts uploaded to Artifact Registry at the end of the build. + { # A Maven artifact uploaded using the MavenArtifact directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Maven Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], "numArtifacts": "A String", # Number of artifacts uploaded. Only populated when artifacts are uploaded. + "pythonPackages": [ # Python artifacts uploaded to Artifact Registry at the end of the build. + { # Artifact uploaded using the PythonPackage directive. + "fileHashes": { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build. # Hash types and values of the Python Artifact. + "fileHash": [ # Collection of file hashes. + { # Container message for hash values. + "type": "A String", # The type of hash that was performed. + "value": "A String", # The hash value. + }, + ], + }, + "pushTiming": { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified artifact. + "endTime": "A String", # End of time span. + "startTime": "A String", # Start of time span. + }, + "uri": "A String", # URI of the uploaded artifact. + }, + ], }, "secrets": [ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials. diff --git a/googleapiclient/discovery_cache/documents/cloudbuild.v1.json b/googleapiclient/discovery_cache/documents/cloudbuild.v1.json index b87a002a241..b735bcc1c50 100644 --- a/googleapiclient/discovery_cache/documents/cloudbuild.v1.json +++ b/googleapiclient/discovery_cache/documents/cloudbuild.v1.json @@ -2295,7 +2295,7 @@ } } }, - "revision": "20220916", + "revision": "20220928", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -2412,9 +2412,23 @@ }, "type": "array" }, + "mavenArtifacts": { + "description": "A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE.", + "items": { + "$ref": "MavenArtifact" + }, + "type": "array" + }, "objects": { "$ref": "ArtifactObjects", "description": "A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE." + }, + "pythonPackages": { + "description": "A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE.", + "items": { + "$ref": "PythonPackage" + }, + "type": "array" } }, "type": "object" @@ -4272,6 +4286,33 @@ }, "type": "object" }, + "MavenArtifact": { + "description": "A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.", + "id": "MavenArtifact", + "properties": { + "artifactId": { + "description": "Maven `artifactId` value used when uploading the artifact to Artifact Registry.", + "type": "string" + }, + "groupId": { + "description": "Maven `groupId` value used when uploading the artifact to Artifact Registry.", + "type": "string" + }, + "path": { + "description": "Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.", + "type": "string" + }, + "repository": { + "description": "Artifact Registry repository, in the form \"https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY\" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.", + "type": "string" + }, + "version": { + "description": "Maven `version` value used when uploading the artifact to Artifact Registry.", + "type": "string" + } + }, + "type": "object" + }, "NetworkConfig": { "description": "Defines the network configuration for the pool.", "id": "NetworkConfig", @@ -4622,6 +4663,24 @@ }, "type": "object" }, + "PythonPackage": { + "description": "Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.", + "id": "PythonPackage", + "properties": { + "paths": { + "description": "Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file.", + "items": { + "type": "string" + }, + "type": "array" + }, + "repository": { + "description": "Artifact Registry repository, in the form \"https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY\" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.", + "type": "string" + } + }, + "type": "object" + }, "ReceiveTriggerWebhookResponse": { "description": "ReceiveTriggerWebhookResponse [Experimental] is the response object for the ReceiveTriggerWebhook method.", "id": "ReceiveTriggerWebhookResponse", @@ -4726,10 +4785,24 @@ }, "type": "array" }, + "mavenArtifacts": { + "description": "Maven artifacts uploaded to Artifact Registry at the end of the build.", + "items": { + "$ref": "UploadedMavenArtifact" + }, + "type": "array" + }, "numArtifacts": { "description": "Number of artifacts uploaded. Only populated when artifacts are uploaded.", "format": "int64", "type": "string" + }, + "pythonPackages": { + "description": "Python artifacts uploaded to Artifact Registry at the end of the build.", + "items": { + "$ref": "UploadedPythonPackage" + }, + "type": "array" } }, "type": "object" @@ -5141,6 +5214,46 @@ }, "type": "object" }, + "UploadedMavenArtifact": { + "description": "A Maven artifact uploaded using the MavenArtifact directive.", + "id": "UploadedMavenArtifact", + "properties": { + "fileHashes": { + "$ref": "FileHashes", + "description": "Hash types and values of the Maven Artifact." + }, + "pushTiming": { + "$ref": "TimeSpan", + "description": "Output only. Stores timing information for pushing the specified artifact.", + "readOnly": true + }, + "uri": { + "description": "URI of the uploaded artifact.", + "type": "string" + } + }, + "type": "object" + }, + "UploadedPythonPackage": { + "description": "Artifact uploaded using the PythonPackage directive.", + "id": "UploadedPythonPackage", + "properties": { + "fileHashes": { + "$ref": "FileHashes", + "description": "Hash types and values of the Python Artifact." + }, + "pushTiming": { + "$ref": "TimeSpan", + "description": "Output only. Stores timing information for pushing the specified artifact.", + "readOnly": true + }, + "uri": { + "description": "URI of the uploaded artifact.", + "type": "string" + } + }, + "type": "object" + }, "Volume": { "description": "Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.", "id": "Volume", diff --git a/googleapiclient/discovery_cache/documents/cloudbuild.v1alpha1.json b/googleapiclient/discovery_cache/documents/cloudbuild.v1alpha1.json index f1600e7c8f7..3c4e60e3d32 100644 --- a/googleapiclient/discovery_cache/documents/cloudbuild.v1alpha1.json +++ b/googleapiclient/discovery_cache/documents/cloudbuild.v1alpha1.json @@ -306,7 +306,7 @@ } } }, - "revision": "20220916", + "revision": "20220928", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -412,9 +412,23 @@ }, "type": "array" }, + "mavenArtifacts": { + "description": "A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE.", + "items": { + "$ref": "MavenArtifact" + }, + "type": "array" + }, "objects": { "$ref": "ArtifactObjects", "description": "A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE." + }, + "pythonPackages": { + "description": "A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE.", + "items": { + "$ref": "PythonPackage" + }, + "type": "array" } }, "type": "object" @@ -1426,6 +1440,33 @@ }, "type": "object" }, + "MavenArtifact": { + "description": "A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.", + "id": "MavenArtifact", + "properties": { + "artifactId": { + "description": "Maven `artifactId` value used when uploading the artifact to Artifact Registry.", + "type": "string" + }, + "groupId": { + "description": "Maven `groupId` value used when uploading the artifact to Artifact Registry.", + "type": "string" + }, + "path": { + "description": "Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.", + "type": "string" + }, + "repository": { + "description": "Artifact Registry repository, in the form \"https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY\" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.", + "type": "string" + }, + "version": { + "description": "Maven `version` value used when uploading the artifact to Artifact Registry.", + "type": "string" + } + }, + "type": "object" + }, "Network": { "description": "Network describes the GCP network used to create workers in.", "id": "Network", @@ -1669,6 +1710,24 @@ }, "type": "object" }, + "PythonPackage": { + "description": "Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.", + "id": "PythonPackage", + "properties": { + "paths": { + "description": "Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file.", + "items": { + "type": "string" + }, + "type": "array" + }, + "repository": { + "description": "Artifact Registry repository, in the form \"https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY\" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.", + "type": "string" + } + }, + "type": "object" + }, "RepoSource": { "description": "Location of the source in a Google Cloud Source Repository.", "id": "RepoSource", @@ -1745,10 +1804,24 @@ }, "type": "array" }, + "mavenArtifacts": { + "description": "Maven artifacts uploaded to Artifact Registry at the end of the build.", + "items": { + "$ref": "UploadedMavenArtifact" + }, + "type": "array" + }, "numArtifacts": { "description": "Number of artifacts uploaded. Only populated when artifacts are uploaded.", "format": "int64", "type": "string" + }, + "pythonPackages": { + "description": "Python artifacts uploaded to Artifact Registry at the end of the build.", + "items": { + "$ref": "UploadedPythonPackage" + }, + "type": "array" } }, "type": "object" @@ -2111,6 +2184,46 @@ }, "type": "object" }, + "UploadedMavenArtifact": { + "description": "A Maven artifact uploaded using the MavenArtifact directive.", + "id": "UploadedMavenArtifact", + "properties": { + "fileHashes": { + "$ref": "FileHashes", + "description": "Hash types and values of the Maven Artifact." + }, + "pushTiming": { + "$ref": "TimeSpan", + "description": "Output only. Stores timing information for pushing the specified artifact.", + "readOnly": true + }, + "uri": { + "description": "URI of the uploaded artifact.", + "type": "string" + } + }, + "type": "object" + }, + "UploadedPythonPackage": { + "description": "Artifact uploaded using the PythonPackage directive.", + "id": "UploadedPythonPackage", + "properties": { + "fileHashes": { + "$ref": "FileHashes", + "description": "Hash types and values of the Python Artifact." + }, + "pushTiming": { + "$ref": "TimeSpan", + "description": "Output only. Stores timing information for pushing the specified artifact.", + "readOnly": true + }, + "uri": { + "description": "URI of the uploaded artifact.", + "type": "string" + } + }, + "type": "object" + }, "Volume": { "description": "Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.", "id": "Volume", diff --git a/googleapiclient/discovery_cache/documents/cloudbuild.v1alpha2.json b/googleapiclient/discovery_cache/documents/cloudbuild.v1alpha2.json index 71d054ac6e9..638cbffd7db 100644 --- a/googleapiclient/discovery_cache/documents/cloudbuild.v1alpha2.json +++ b/googleapiclient/discovery_cache/documents/cloudbuild.v1alpha2.json @@ -317,7 +317,7 @@ } } }, - "revision": "20220916", + "revision": "20220928", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -423,9 +423,23 @@ }, "type": "array" }, + "mavenArtifacts": { + "description": "A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE.", + "items": { + "$ref": "MavenArtifact" + }, + "type": "array" + }, "objects": { "$ref": "ArtifactObjects", "description": "A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE." + }, + "pythonPackages": { + "description": "A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE.", + "items": { + "$ref": "PythonPackage" + }, + "type": "array" } }, "type": "object" @@ -1437,6 +1451,33 @@ }, "type": "object" }, + "MavenArtifact": { + "description": "A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.", + "id": "MavenArtifact", + "properties": { + "artifactId": { + "description": "Maven `artifactId` value used when uploading the artifact to Artifact Registry.", + "type": "string" + }, + "groupId": { + "description": "Maven `groupId` value used when uploading the artifact to Artifact Registry.", + "type": "string" + }, + "path": { + "description": "Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.", + "type": "string" + }, + "repository": { + "description": "Artifact Registry repository, in the form \"https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY\" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.", + "type": "string" + }, + "version": { + "description": "Maven `version` value used when uploading the artifact to Artifact Registry.", + "type": "string" + } + }, + "type": "object" + }, "NetworkConfig": { "description": "Network describes the network configuration for a `WorkerPool`.", "id": "NetworkConfig", @@ -1672,6 +1713,24 @@ }, "type": "object" }, + "PythonPackage": { + "description": "Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.", + "id": "PythonPackage", + "properties": { + "paths": { + "description": "Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file.", + "items": { + "type": "string" + }, + "type": "array" + }, + "repository": { + "description": "Artifact Registry repository, in the form \"https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY\" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.", + "type": "string" + } + }, + "type": "object" + }, "RepoSource": { "description": "Location of the source in a Google Cloud Source Repository.", "id": "RepoSource", @@ -1748,10 +1807,24 @@ }, "type": "array" }, + "mavenArtifacts": { + "description": "Maven artifacts uploaded to Artifact Registry at the end of the build.", + "items": { + "$ref": "UploadedMavenArtifact" + }, + "type": "array" + }, "numArtifacts": { "description": "Number of artifacts uploaded. Only populated when artifacts are uploaded.", "format": "int64", "type": "string" + }, + "pythonPackages": { + "description": "Python artifacts uploaded to Artifact Registry at the end of the build.", + "items": { + "$ref": "UploadedPythonPackage" + }, + "type": "array" } }, "type": "object" @@ -2114,6 +2187,46 @@ }, "type": "object" }, + "UploadedMavenArtifact": { + "description": "A Maven artifact uploaded using the MavenArtifact directive.", + "id": "UploadedMavenArtifact", + "properties": { + "fileHashes": { + "$ref": "FileHashes", + "description": "Hash types and values of the Maven Artifact." + }, + "pushTiming": { + "$ref": "TimeSpan", + "description": "Output only. Stores timing information for pushing the specified artifact.", + "readOnly": true + }, + "uri": { + "description": "URI of the uploaded artifact.", + "type": "string" + } + }, + "type": "object" + }, + "UploadedPythonPackage": { + "description": "Artifact uploaded using the PythonPackage directive.", + "id": "UploadedPythonPackage", + "properties": { + "fileHashes": { + "$ref": "FileHashes", + "description": "Hash types and values of the Python Artifact." + }, + "pushTiming": { + "$ref": "TimeSpan", + "description": "Output only. Stores timing information for pushing the specified artifact.", + "readOnly": true + }, + "uri": { + "description": "URI of the uploaded artifact.", + "type": "string" + } + }, + "type": "object" + }, "Volume": { "description": "Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.", "id": "Volume", diff --git a/googleapiclient/discovery_cache/documents/cloudbuild.v1beta1.json b/googleapiclient/discovery_cache/documents/cloudbuild.v1beta1.json index 0c0d10eb9d3..b020006bae7 100644 --- a/googleapiclient/discovery_cache/documents/cloudbuild.v1beta1.json +++ b/googleapiclient/discovery_cache/documents/cloudbuild.v1beta1.json @@ -322,7 +322,7 @@ } } }, - "revision": "20220916", + "revision": "20220928", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -428,9 +428,23 @@ }, "type": "array" }, + "mavenArtifacts": { + "description": "A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE.", + "items": { + "$ref": "MavenArtifact" + }, + "type": "array" + }, "objects": { "$ref": "ArtifactObjects", "description": "A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE." + }, + "pythonPackages": { + "description": "A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE.", + "items": { + "$ref": "PythonPackage" + }, + "type": "array" } }, "type": "object" @@ -1442,6 +1456,33 @@ }, "type": "object" }, + "MavenArtifact": { + "description": "A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.", + "id": "MavenArtifact", + "properties": { + "artifactId": { + "description": "Maven `artifactId` value used when uploading the artifact to Artifact Registry.", + "type": "string" + }, + "groupId": { + "description": "Maven `groupId` value used when uploading the artifact to Artifact Registry.", + "type": "string" + }, + "path": { + "description": "Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.", + "type": "string" + }, + "repository": { + "description": "Artifact Registry repository, in the form \"https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY\" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.", + "type": "string" + }, + "version": { + "description": "Maven `version` value used when uploading the artifact to Artifact Registry.", + "type": "string" + } + }, + "type": "object" + }, "NetworkConfig": { "description": "Network describes the network configuration for a `WorkerPool`.", "id": "NetworkConfig", @@ -1677,6 +1718,24 @@ }, "type": "object" }, + "PythonPackage": { + "description": "Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.", + "id": "PythonPackage", + "properties": { + "paths": { + "description": "Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file.", + "items": { + "type": "string" + }, + "type": "array" + }, + "repository": { + "description": "Artifact Registry repository, in the form \"https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY\" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.", + "type": "string" + } + }, + "type": "object" + }, "RepoSource": { "description": "Location of the source in a Google Cloud Source Repository.", "id": "RepoSource", @@ -1753,10 +1812,24 @@ }, "type": "array" }, + "mavenArtifacts": { + "description": "Maven artifacts uploaded to Artifact Registry at the end of the build.", + "items": { + "$ref": "UploadedMavenArtifact" + }, + "type": "array" + }, "numArtifacts": { "description": "Number of artifacts uploaded. Only populated when artifacts are uploaded.", "format": "int64", "type": "string" + }, + "pythonPackages": { + "description": "Python artifacts uploaded to Artifact Registry at the end of the build.", + "items": { + "$ref": "UploadedPythonPackage" + }, + "type": "array" } }, "type": "object" @@ -2119,6 +2192,46 @@ }, "type": "object" }, + "UploadedMavenArtifact": { + "description": "A Maven artifact uploaded using the MavenArtifact directive.", + "id": "UploadedMavenArtifact", + "properties": { + "fileHashes": { + "$ref": "FileHashes", + "description": "Hash types and values of the Maven Artifact." + }, + "pushTiming": { + "$ref": "TimeSpan", + "description": "Output only. Stores timing information for pushing the specified artifact.", + "readOnly": true + }, + "uri": { + "description": "URI of the uploaded artifact.", + "type": "string" + } + }, + "type": "object" + }, + "UploadedPythonPackage": { + "description": "Artifact uploaded using the PythonPackage directive.", + "id": "UploadedPythonPackage", + "properties": { + "fileHashes": { + "$ref": "FileHashes", + "description": "Hash types and values of the Python Artifact." + }, + "pushTiming": { + "$ref": "TimeSpan", + "description": "Output only. Stores timing information for pushing the specified artifact.", + "readOnly": true + }, + "uri": { + "description": "URI of the uploaded artifact.", + "type": "string" + } + }, + "type": "object" + }, "Volume": { "description": "Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.", "id": "Volume",