From 2fb6304dee35bf2fb29cd5e25c408fe29ccad83f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 18 Apr 2023 11:38:30 -0700 Subject: [PATCH] feat: Add PeeredNetworkIpRange to NetworkConfigs message (#6086) feat: Add NpmPackages to Artifact and Results messages and new SHA512 hash type docs: Various doc updates Committer: @giangnguyen PiperOrigin-RevId: 525153459 Source-Link: https://github.com/googleapis/googleapis/commit/0c7c7dff7fedc43ba4989363333c175a1da401a2 Source-Link: https://github.com/googleapis/googleapis-gen/commit/8d2d20f50c585775e506b61bb43e9e4922795354 Copy-Tag: eyJwIjoiQnVpbGQvLk93bEJvdC55YW1sIiwiaCI6IjhkMmQyMGY1MGM1ODU3NzVlNTA2YjYxYmI0M2U5ZTQ5MjI3OTUzNTQifQ== --- Build/metadata/V1/Cloudbuild.php | Bin 22718 -> 23141 bytes .../CloudBuildClient/delete_worker_pool.php | 2 +- Build/src/V1/Artifacts.php | 54 ++++++ Build/src/V1/Artifacts/NpmPackage.php | 119 +++++++++++++ Build/src/V1/Build.php | 21 ++- Build/src/V1/BuildOptions.php | 16 +- Build/src/V1/BuildOptions/LoggingMode.php | 10 +- Build/src/V1/BuildOptions/VerifyOption.php | 4 +- Build/src/V1/DeleteWorkerPoolRequest.php | 8 +- Build/src/V1/Gapic/CloudBuildGapicClient.php | 4 +- Build/src/V1/Hash/HashType.php | 7 + Build/src/V1/ListBuildsRequest.php | 8 +- .../V1/PrivatePoolV1Config/NetworkConfig.php | 62 +++++++ .../V1/PrivatePoolV1Config/WorkerConfig.php | 8 +- Build/src/V1/Results.php | 66 ++++++-- Build/src/V1/UploadedNpmPackage.php | 156 ++++++++++++++++++ Build/src/V1/WorkerPool.php | 6 +- 17 files changed, 498 insertions(+), 53 deletions(-) create mode 100644 Build/src/V1/Artifacts/NpmPackage.php create mode 100644 Build/src/V1/UploadedNpmPackage.php diff --git a/Build/metadata/V1/Cloudbuild.php b/Build/metadata/V1/Cloudbuild.php index 54d3914d604ce8121156b8e571315615c91774b0..a4f751ba59999f95908a22f768f70d8e24fa0472 100644 GIT binary patch delta 269 zcmdnDk@4vk#tqsmOixyC)@7N-&cB3_ODMD;CqFSIHN~$WcXB<~%*}_njhGm(ZT`mF z&nP0~&c%~gkQ-l+n4F!Mo?0xyqrf~_KwWuq0Y3*9P(uJjd~+**J15f|*3Ep99E=h| zo@kob6qq%*jf^J;^2<;DFUiFW)VP^nN|KRX%8UzS%H)4iGQuKUJWyMJwv}W^Fexx@ zR+B!-#MHq!`Gaf_qv>R4IZYlRE-toU4@Xl&BLSApIdX}zjC(epvu0&v+&1}&%}zBT u6)y3D)YPKXl=!^VlJfkb?D))r_@czT^i&CE1x5`{C*}u^tebmn4W$8V^ijhA delta 87 zcmV-d0I2`vv;n@c0kA6s0=}rTEd-Vavug}80s)P)o(_)zvvv@N2?Ch}v;P?g0kcvY t5&^TE9LE9ye3NA#QUNKGxF0FA?H^$s0hY5*Jp};)kdswDxwAAsF&kOC9q#}D diff --git a/Build/samples/V1/CloudBuildClient/delete_worker_pool.php b/Build/samples/V1/CloudBuildClient/delete_worker_pool.php index 5f502298d43..38e69a251d8 100644 --- a/Build/samples/V1/CloudBuildClient/delete_worker_pool.php +++ b/Build/samples/V1/CloudBuildClient/delete_worker_pool.php @@ -33,7 +33,7 @@ * * @param string $formattedName The name of the `WorkerPool` to delete. * Format: - * `projects/{project}/locations/{workerPool}/workerPools/{workerPool}`. Please see + * `projects/{project}/locations/{location}/workerPools/{workerPool}`. Please see * {@see CloudBuildClient::workerPoolName()} for help formatting this field. */ function delete_worker_pool_sample(string $formattedName): void diff --git a/Build/src/V1/Artifacts.php b/Build/src/V1/Artifacts.php index 6d81c6ed5ca..223f22f97f4 100644 --- a/Build/src/V1/Artifacts.php +++ b/Build/src/V1/Artifacts.php @@ -60,6 +60,17 @@ class Artifacts extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated .google.devtools.cloudbuild.v1.Artifacts.PythonPackage python_packages = 5; */ private $python_packages; + /** + * A list of npm packages to be uploaded to Artifact Registry upon + * successful completion of all build steps. + * Npm packages in the specified paths will be uploaded + * to the specified Artifact Registry repository using the builder service + * account's credentials. + * If any packages fail to be pushed, the build is marked FAILURE. + * + * Generated from protobuf field repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6; + */ + private $npm_packages; /** * Constructor. @@ -95,6 +106,13 @@ class Artifacts extends \Google\Protobuf\Internal\Message * 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. + * @type array<\Google\Cloud\Build\V1\Artifacts\NpmPackage>|\Google\Protobuf\Internal\RepeatedField $npm_packages + * A list of npm packages to be uploaded to Artifact Registry upon + * successful completion of all build steps. + * Npm packages in the specified paths will be uploaded + * to the specified Artifact Registry repository using the builder service + * account's credentials. + * If any packages fail to be pushed, the build is marked FAILURE. * } */ public function __construct($data = NULL) { @@ -256,5 +274,41 @@ public function setPythonPackages($var) return $this; } + /** + * A list of npm packages to be uploaded to Artifact Registry upon + * successful completion of all build steps. + * Npm packages in the specified paths will be uploaded + * to the specified Artifact Registry repository using the builder service + * account's credentials. + * If any packages fail to be pushed, the build is marked FAILURE. + * + * Generated from protobuf field repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNpmPackages() + { + return $this->npm_packages; + } + + /** + * A list of npm packages to be uploaded to Artifact Registry upon + * successful completion of all build steps. + * Npm packages in the specified paths will be uploaded + * to the specified Artifact Registry repository using the builder service + * account's credentials. + * If any packages fail to be pushed, the build is marked FAILURE. + * + * Generated from protobuf field repeated .google.devtools.cloudbuild.v1.Artifacts.NpmPackage npm_packages = 6; + * @param array<\Google\Cloud\Build\V1\Artifacts\NpmPackage>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNpmPackages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Build\V1\Artifacts\NpmPackage::class); + $this->npm_packages = $arr; + + return $this; + } + } diff --git a/Build/src/V1/Artifacts/NpmPackage.php b/Build/src/V1/Artifacts/NpmPackage.php new file mode 100644 index 00000000000..650dbc018b2 --- /dev/null +++ b/Build/src/V1/Artifacts/NpmPackage.php @@ -0,0 +1,119 @@ +google.devtools.cloudbuild.v1.Artifacts.NpmPackage + */ +class NpmPackage extends \Google\Protobuf\Internal\Message +{ + /** + * Artifact Registry repository, in the form + * "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" + * Npm package in the workspace specified by path will be zipped and + * uploaded to Artifact Registry with this location as a prefix. + * + * Generated from protobuf field string repository = 1; + */ + private $repository = ''; + /** + * Path to the package.json. + * e.g. workspace/path/to/package + * + * Generated from protobuf field string package_path = 2; + */ + private $package_path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $repository + * Artifact Registry repository, in the form + * "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" + * Npm package in the workspace specified by path will be zipped and + * uploaded to Artifact Registry with this location as a prefix. + * @type string $package_path + * Path to the package.json. + * e.g. workspace/path/to/package + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Devtools\Cloudbuild\V1\Cloudbuild::initOnce(); + parent::__construct($data); + } + + /** + * Artifact Registry repository, in the form + * "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" + * Npm package in the workspace specified by path will be zipped and + * uploaded to Artifact Registry with this location as a prefix. + * + * Generated from protobuf field string repository = 1; + * @return string + */ + public function getRepository() + { + return $this->repository; + } + + /** + * Artifact Registry repository, in the form + * "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" + * Npm package in the workspace specified by path will be zipped and + * uploaded to Artifact Registry with this location as a prefix. + * + * Generated from protobuf field string repository = 1; + * @param string $var + * @return $this + */ + public function setRepository($var) + { + GPBUtil::checkString($var, True); + $this->repository = $var; + + return $this; + } + + /** + * Path to the package.json. + * e.g. workspace/path/to/package + * + * Generated from protobuf field string package_path = 2; + * @return string + */ + public function getPackagePath() + { + return $this->package_path; + } + + /** + * Path to the package.json. + * e.g. workspace/path/to/package + * + * Generated from protobuf field string package_path = 2; + * @param string $var + * @return $this + */ + public function setPackagePath($var) + { + GPBUtil::checkString($var, True); + $this->package_path = $var; + + return $this; + } + +} + + diff --git a/Build/src/V1/Build.php b/Build/src/V1/Build.php index d1666a80139..354e8025e19 100644 --- a/Build/src/V1/Build.php +++ b/Build/src/V1/Build.php @@ -17,6 +17,7 @@ * build is created: * - $PROJECT_ID: the project ID of the build. * - $PROJECT_NUMBER: the project number of the build. + * - $LOCATION: the location/region of the build. * - $BUILD_ID: the autogenerated ID of the build. * - $REPO_NAME: the source repository name specified by RepoSource. * - $BRANCH_NAME: the branch name specified by RepoSource. @@ -104,7 +105,7 @@ class Build extends \Google\Protobuf\Internal\Message * granularity. If this amount of time elapses, work on the build will cease * and the build status will be `TIMEOUT`. * `timeout` starts ticking from `startTime`. - * Default time is ten minutes. + * Default time is 60 minutes. * * Generated from protobuf field .google.protobuf.Duration timeout = 12; */ @@ -197,7 +198,8 @@ class Build extends \Google\Protobuf\Internal\Message * Output only. Stores timing information for phases of the build. Valid keys * are: * * BUILD: time to execute all build steps. - * * PUSH: time to push all specified images. + * * PUSH: time to push all artifacts including docker images and non docker + * artifacts. * * FETCHSOURCE: time to fetch source. * * SETUPBUILD: time to set up build. * If the build does not specify source or images, @@ -278,7 +280,7 @@ class Build extends \Google\Protobuf\Internal\Message * granularity. If this amount of time elapses, work on the build will cease * and the build status will be `TIMEOUT`. * `timeout` starts ticking from `startTime`. - * Default time is ten minutes. + * Default time is 60 minutes. * @type array|\Google\Protobuf\Internal\RepeatedField $images * A list of images to be pushed upon the successful completion of all build * steps. @@ -323,7 +325,8 @@ class Build extends \Google\Protobuf\Internal\Message * Output only. Stores timing information for phases of the build. Valid keys * are: * * BUILD: time to execute all build steps. - * * PUSH: time to push all specified images. + * * PUSH: time to push all artifacts including docker images and non docker + * artifacts. * * FETCHSOURCE: time to fetch source. * * SETUPBUILD: time to set up build. * If the build does not specify source or images, @@ -698,7 +701,7 @@ public function setFinishTime($var) * granularity. If this amount of time elapses, work on the build will cease * and the build status will be `TIMEOUT`. * `timeout` starts ticking from `startTime`. - * Default time is ten minutes. + * Default time is 60 minutes. * * Generated from protobuf field .google.protobuf.Duration timeout = 12; * @return \Google\Protobuf\Duration|null @@ -723,7 +726,7 @@ public function clearTimeout() * granularity. If this amount of time elapses, work on the build will cease * and the build status will be `TIMEOUT`. * `timeout` starts ticking from `startTime`. - * Default time is ten minutes. + * Default time is 60 minutes. * * Generated from protobuf field .google.protobuf.Duration timeout = 12; * @param \Google\Protobuf\Duration $var @@ -1103,7 +1106,8 @@ public function setSecrets($var) * Output only. Stores timing information for phases of the build. Valid keys * are: * * BUILD: time to execute all build steps. - * * PUSH: time to push all specified images. + * * PUSH: time to push all artifacts including docker images and non docker + * artifacts. * * FETCHSOURCE: time to fetch source. * * SETUPBUILD: time to set up build. * If the build does not specify source or images, @@ -1121,7 +1125,8 @@ public function getTiming() * Output only. Stores timing information for phases of the build. Valid keys * are: * * BUILD: time to execute all build steps. - * * PUSH: time to push all specified images. + * * PUSH: time to push all artifacts including docker images and non docker + * artifacts. * * FETCHSOURCE: time to fetch source. * * SETUPBUILD: time to set up build. * If the build does not specify source or images, diff --git a/Build/src/V1/BuildOptions.php b/Build/src/V1/BuildOptions.php index fbc3b61ea1b..3903f3e2680 100644 --- a/Build/src/V1/BuildOptions.php +++ b/Build/src/V1/BuildOptions.php @@ -38,7 +38,7 @@ class BuildOptions extends \Google\Protobuf\Internal\Message * "disk free"; some of the space will be used by the operating system and * build utilities. Also note that this is the minimum disk size that will be * allocated for the build -- the build may run with a larger disk than - * requested. At present, the maximum disk size is 1000GB; builds that request + * requested. At present, the maximum disk size is 2000GB; builds that request * more than the maximum are rejected with an error. * * Generated from protobuf field int64 disk_size_gb = 6; @@ -124,7 +124,7 @@ class BuildOptions extends \Google\Protobuf\Internal\Message */ private $volumes; /** - * Option to specify how default logs buckets are setup. + * Optional. Option to specify how default logs buckets are setup. * * Generated from protobuf field .google.devtools.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior default_logs_bucket_behavior = 21 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -147,7 +147,7 @@ class BuildOptions extends \Google\Protobuf\Internal\Message * "disk free"; some of the space will be used by the operating system and * build utilities. Also note that this is the minimum disk size that will be * allocated for the build -- the build may run with a larger disk than - * requested. At present, the maximum disk size is 1000GB; builds that request + * requested. At present, the maximum disk size is 2000GB; builds that request * more than the maximum are rejected with an error. * @type int $substitution_option * Option to specify behavior when there is an error in the substitution @@ -192,7 +192,7 @@ class BuildOptions extends \Google\Protobuf\Internal\Message * Using a global volume in a build with only one step is not valid as * it is indicative of a build request with an incorrect configuration. * @type int $default_logs_bucket_behavior - * Option to specify how default logs buckets are setup. + * Optional. Option to specify how default logs buckets are setup. * } */ public function __construct($data = NULL) { @@ -283,7 +283,7 @@ public function setMachineType($var) * "disk free"; some of the space will be used by the operating system and * build utilities. Also note that this is the minimum disk size that will be * allocated for the build -- the build may run with a larger disk than - * requested. At present, the maximum disk size is 1000GB; builds that request + * requested. At present, the maximum disk size is 2000GB; builds that request * more than the maximum are rejected with an error. * * Generated from protobuf field int64 disk_size_gb = 6; @@ -299,7 +299,7 @@ public function getDiskSizeGb() * "disk free"; some of the space will be used by the operating system and * build utilities. Also note that this is the minimum disk size that will be * allocated for the build -- the build may run with a larger disk than - * requested. At present, the maximum disk size is 1000GB; builds that request + * requested. At present, the maximum disk size is 2000GB; builds that request * more than the maximum are rejected with an error. * * Generated from protobuf field int64 disk_size_gb = 6; @@ -611,7 +611,7 @@ public function setVolumes($var) } /** - * Option to specify how default logs buckets are setup. + * Optional. Option to specify how default logs buckets are setup. * * Generated from protobuf field .google.devtools.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior default_logs_bucket_behavior = 21 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -622,7 +622,7 @@ public function getDefaultLogsBucketBehavior() } /** - * Option to specify how default logs buckets are setup. + * Optional. Option to specify how default logs buckets are setup. * * Generated from protobuf field .google.devtools.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior default_logs_bucket_behavior = 21 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/Build/src/V1/BuildOptions/LoggingMode.php b/Build/src/V1/BuildOptions/LoggingMode.php index d8b2a819dc6..410395592ea 100644 --- a/Build/src/V1/BuildOptions/LoggingMode.php +++ b/Build/src/V1/BuildOptions/LoggingMode.php @@ -21,13 +21,13 @@ class LoggingMode */ const LOGGING_UNSPECIFIED = 0; /** - * Cloud Logging and Cloud Storage logging are enabled. + * Build logs are stored in Cloud Logging and Cloud Storage. * * Generated from protobuf enum LEGACY = 1; */ const LEGACY = 1; /** - * Only Cloud Storage logging is enabled. + * Build logs are stored in Cloud Storage. * * Generated from protobuf enum GCS_ONLY = 2; */ @@ -39,9 +39,9 @@ class LoggingMode */ const STACKDRIVER_ONLY = 3; /** - * Only Cloud Logging is enabled. Note that logs for both the Cloud Console - * UI and Cloud SDK are based on Cloud Storage logs, so neither will provide - * logs if this option is chosen. + * Build logs are stored in Cloud Logging. Selecting this option will not + * allow [logs + * streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log). * * Generated from protobuf enum CLOUD_LOGGING_ONLY = 5; */ diff --git a/Build/src/V1/BuildOptions/VerifyOption.php b/Build/src/V1/BuildOptions/VerifyOption.php index 3fd978deaff..aef8500eeb0 100644 --- a/Build/src/V1/BuildOptions/VerifyOption.php +++ b/Build/src/V1/BuildOptions/VerifyOption.php @@ -14,13 +14,13 @@ class VerifyOption { /** - * Not a verifiable build. (default) + * Not a verifiable build (the default). * * Generated from protobuf enum NOT_VERIFIED = 0; */ const NOT_VERIFIED = 0; /** - * Verified build. + * Build must be verified. * * Generated from protobuf enum VERIFIED = 1; */ diff --git a/Build/src/V1/DeleteWorkerPoolRequest.php b/Build/src/V1/DeleteWorkerPoolRequest.php index 78b3e847b64..11642dff5fb 100644 --- a/Build/src/V1/DeleteWorkerPoolRequest.php +++ b/Build/src/V1/DeleteWorkerPoolRequest.php @@ -18,7 +18,7 @@ class DeleteWorkerPoolRequest extends \Google\Protobuf\Internal\Message /** * Required. The name of the `WorkerPool` to delete. * Format: - * `projects/{project}/locations/{workerPool}/workerPools/{workerPool}`. + * `projects/{project}/locations/{location}/workerPools/{workerPool}`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ @@ -54,7 +54,7 @@ class DeleteWorkerPoolRequest extends \Google\Protobuf\Internal\Message * @type string $name * Required. The name of the `WorkerPool` to delete. * Format: - * `projects/{project}/locations/{workerPool}/workerPools/{workerPool}`. + * `projects/{project}/locations/{location}/workerPools/{workerPool}`. * @type string $etag * Optional. If this is provided, it must match the server's etag on the * workerpool for the request to be processed. @@ -74,7 +74,7 @@ public function __construct($data = NULL) { /** * Required. The name of the `WorkerPool` to delete. * Format: - * `projects/{project}/locations/{workerPool}/workerPools/{workerPool}`. + * `projects/{project}/locations/{location}/workerPools/{workerPool}`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string @@ -87,7 +87,7 @@ public function getName() /** * Required. The name of the `WorkerPool` to delete. * Format: - * `projects/{project}/locations/{workerPool}/workerPools/{workerPool}`. + * `projects/{project}/locations/{location}/workerPools/{workerPool}`. * * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var diff --git a/Build/src/V1/Gapic/CloudBuildGapicClient.php b/Build/src/V1/Gapic/CloudBuildGapicClient.php index e7bf3f62f31..bce808b328c 100644 --- a/Build/src/V1/Gapic/CloudBuildGapicClient.php +++ b/Build/src/V1/Gapic/CloudBuildGapicClient.php @@ -1038,7 +1038,7 @@ public function deleteBuildTrigger($projectId, $triggerId, array $optionalArgs = * * @param string $name Required. The name of the `WorkerPool` to delete. * Format: - * `projects/{project}/locations/{workerPool}/workerPools/{workerPool}`. + * `projects/{project}/locations/{location}/workerPools/{workerPool}`. * @param array $optionalArgs { * Optional. * @@ -1344,7 +1344,7 @@ public function listBuildTriggers($projectId, array $optionalArgs = []) * * @type string $parent * The parent of the collection of `Builds`. - * Format: `projects/{project}/locations/location` + * Format: `projects/{project}/locations/{location}` * @type int $pageSize * The maximum number of resources contained in the underlying API * response. The API may return fewer values in a page, even if diff --git a/Build/src/V1/Hash/HashType.php b/Build/src/V1/Hash/HashType.php index 626cf5449e0..dc9e57cde49 100644 --- a/Build/src/V1/Hash/HashType.php +++ b/Build/src/V1/Hash/HashType.php @@ -31,11 +31,18 @@ class HashType * Generated from protobuf enum MD5 = 2; */ const MD5 = 2; + /** + * Use a sha512 hash. + * + * Generated from protobuf enum SHA512 = 4; + */ + const SHA512 = 4; private static $valueToName = [ self::NONE => 'NONE', self::SHA256 => 'SHA256', self::MD5 => 'MD5', + self::SHA512 => 'SHA512', ]; public static function name($value) diff --git a/Build/src/V1/ListBuildsRequest.php b/Build/src/V1/ListBuildsRequest.php index 418287ed381..42f7e195bc9 100644 --- a/Build/src/V1/ListBuildsRequest.php +++ b/Build/src/V1/ListBuildsRequest.php @@ -17,7 +17,7 @@ class ListBuildsRequest extends \Google\Protobuf\Internal\Message { /** * The parent of the collection of `Builds`. - * Format: `projects/{project}/locations/location` + * Format: `projects/{project}/locations/{location}` * * Generated from protobuf field string parent = 9 [(.google.api.resource_reference) = { */ @@ -60,7 +60,7 @@ class ListBuildsRequest extends \Google\Protobuf\Internal\Message * * @type string $parent * The parent of the collection of `Builds`. - * Format: `projects/{project}/locations/location` + * Format: `projects/{project}/locations/{location}` * @type string $project_id * Required. ID of the project. * @type int $page_size @@ -83,7 +83,7 @@ public function __construct($data = NULL) { /** * The parent of the collection of `Builds`. - * Format: `projects/{project}/locations/location` + * Format: `projects/{project}/locations/{location}` * * Generated from protobuf field string parent = 9 [(.google.api.resource_reference) = { * @return string @@ -95,7 +95,7 @@ public function getParent() /** * The parent of the collection of `Builds`. - * Format: `projects/{project}/locations/location` + * Format: `projects/{project}/locations/{location}` * * Generated from protobuf field string parent = 9 [(.google.api.resource_reference) = { * @param string $var diff --git a/Build/src/V1/PrivatePoolV1Config/NetworkConfig.php b/Build/src/V1/PrivatePoolV1Config/NetworkConfig.php index c0eeee12ac4..bbead095f95 100644 --- a/Build/src/V1/PrivatePoolV1Config/NetworkConfig.php +++ b/Build/src/V1/PrivatePoolV1Config/NetworkConfig.php @@ -34,6 +34,19 @@ class NetworkConfig extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption egress_option = 2; */ private $egress_option = 0; + /** + * Immutable. Subnet IP range within the peered network. This is specified + * in CIDR notation with a slash and the subnet prefix size. You can + * optionally specify an IP address before the subnet prefix value. e.g. + * `192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with a + * prefix size of 29 bits. + * `/16` would specify a prefix size of 16 bits, with an automatically + * determined IP within the peered VPC. + * If unspecified, a value of `/24` will be used. + * + * Generated from protobuf field string peered_network_ip_range = 3 [(.google.api.field_behavior) = IMMUTABLE]; + */ + private $peered_network_ip_range = ''; /** * Constructor. @@ -52,6 +65,15 @@ class NetworkConfig extends \Google\Protobuf\Internal\Message * options](https://cloud.google.com/build/docs/private-pools/set-up-private-pool-environment) * @type int $egress_option * Option to configure network egress for the workers. + * @type string $peered_network_ip_range + * Immutable. Subnet IP range within the peered network. This is specified + * in CIDR notation with a slash and the subnet prefix size. You can + * optionally specify an IP address before the subnet prefix value. e.g. + * `192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with a + * prefix size of 29 bits. + * `/16` would specify a prefix size of 16 bits, with an automatically + * determined IP within the peered VPC. + * If unspecified, a value of `/24` will be used. * } */ public function __construct($data = NULL) { @@ -125,6 +147,46 @@ public function setEgressOption($var) return $this; } + /** + * Immutable. Subnet IP range within the peered network. This is specified + * in CIDR notation with a slash and the subnet prefix size. You can + * optionally specify an IP address before the subnet prefix value. e.g. + * `192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with a + * prefix size of 29 bits. + * `/16` would specify a prefix size of 16 bits, with an automatically + * determined IP within the peered VPC. + * If unspecified, a value of `/24` will be used. + * + * Generated from protobuf field string peered_network_ip_range = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getPeeredNetworkIpRange() + { + return $this->peered_network_ip_range; + } + + /** + * Immutable. Subnet IP range within the peered network. This is specified + * in CIDR notation with a slash and the subnet prefix size. You can + * optionally specify an IP address before the subnet prefix value. e.g. + * `192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with a + * prefix size of 29 bits. + * `/16` would specify a prefix size of 16 bits, with an automatically + * determined IP within the peered VPC. + * If unspecified, a value of `/24` will be used. + * + * Generated from protobuf field string peered_network_ip_range = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setPeeredNetworkIpRange($var) + { + GPBUtil::checkString($var, True); + $this->peered_network_ip_range = $var; + + return $this; + } + } diff --git a/Build/src/V1/PrivatePoolV1Config/WorkerConfig.php b/Build/src/V1/PrivatePoolV1Config/WorkerConfig.php index 8588f1c21d3..e85f29d427b 100644 --- a/Build/src/V1/PrivatePoolV1Config/WorkerConfig.php +++ b/Build/src/V1/PrivatePoolV1Config/WorkerConfig.php @@ -29,7 +29,7 @@ class WorkerConfig extends \Google\Protobuf\Internal\Message * Size of the disk attached to the worker, in GB. * See [Worker pool config * file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema). - * Specify a value of up to 1000. If `0` is specified, Cloud Build will use + * Specify a value of up to 2000. If `0` is specified, Cloud Build will use * a standard disk size. * * Generated from protobuf field int64 disk_size_gb = 2; @@ -51,7 +51,7 @@ class WorkerConfig extends \Google\Protobuf\Internal\Message * Size of the disk attached to the worker, in GB. * See [Worker pool config * file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema). - * Specify a value of up to 1000. If `0` is specified, Cloud Build will use + * Specify a value of up to 2000. If `0` is specified, Cloud Build will use * a standard disk size. * } */ @@ -96,7 +96,7 @@ public function setMachineType($var) * Size of the disk attached to the worker, in GB. * See [Worker pool config * file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema). - * Specify a value of up to 1000. If `0` is specified, Cloud Build will use + * Specify a value of up to 2000. If `0` is specified, Cloud Build will use * a standard disk size. * * Generated from protobuf field int64 disk_size_gb = 2; @@ -111,7 +111,7 @@ public function getDiskSizeGb() * Size of the disk attached to the worker, in GB. * See [Worker pool config * file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema). - * Specify a value of up to 1000. If `0` is specified, Cloud Build will use + * Specify a value of up to 2000. If `0` is specified, Cloud Build will use * a standard disk size. * * Generated from protobuf field int64 disk_size_gb = 2; diff --git a/Build/src/V1/Results.php b/Build/src/V1/Results.php index e6f0935150f..2313789d115 100644 --- a/Build/src/V1/Results.php +++ b/Build/src/V1/Results.php @@ -29,13 +29,15 @@ class Results extends \Google\Protobuf\Internal\Message */ private $build_step_images; /** - * Path to the artifact manifest. Only populated when artifacts are uploaded. + * Path to the artifact manifest for non-container artifacts uploaded to Cloud + * Storage. Only populated when artifacts are uploaded to Cloud Storage. * * Generated from protobuf field string artifact_manifest = 4; */ private $artifact_manifest = ''; /** - * Number of artifacts uploaded. Only populated when artifacts are uploaded. + * Number of non-container artifacts uploaded to Cloud Storage. Only populated + * when artifacts are uploaded to Cloud Storage. * * Generated from protobuf field int64 num_artifacts = 5; */ @@ -51,7 +53,7 @@ class Results extends \Google\Protobuf\Internal\Message */ private $build_step_outputs; /** - * Time to push all non-container artifacts. + * Time to push all non-container artifacts to Cloud Storage. * * Generated from protobuf field .google.devtools.cloudbuild.v1.TimeSpan artifact_timing = 7; */ @@ -68,6 +70,12 @@ class Results extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated .google.devtools.cloudbuild.v1.UploadedMavenArtifact maven_artifacts = 9; */ private $maven_artifacts; + /** + * Npm packages uploaded to Artifact Registry at the end of the build. + * + * Generated from protobuf field repeated .google.devtools.cloudbuild.v1.UploadedNpmPackage npm_packages = 12; + */ + private $npm_packages; /** * Constructor. @@ -81,9 +89,11 @@ class Results extends \Google\Protobuf\Internal\Message * List of build step digests, in the order corresponding to build step * indices. * @type string $artifact_manifest - * Path to the artifact manifest. Only populated when artifacts are uploaded. + * Path to the artifact manifest for non-container artifacts uploaded to Cloud + * Storage. Only populated when artifacts are uploaded to Cloud Storage. * @type int|string $num_artifacts - * Number of artifacts uploaded. Only populated when artifacts are uploaded. + * Number of non-container artifacts uploaded to Cloud Storage. Only populated + * when artifacts are uploaded to Cloud Storage. * @type array|\Google\Protobuf\Internal\RepeatedField $build_step_outputs * List of build step outputs, produced by builder images, in the order * corresponding to build step indices. @@ -91,11 +101,13 @@ class Results extends \Google\Protobuf\Internal\Message * can produce this output by writing to `$BUILDER_OUTPUT/output`. * Only the first 4KB of data is stored. * @type \Google\Cloud\Build\V1\TimeSpan $artifact_timing - * Time to push all non-container artifacts. + * Time to push all non-container artifacts to Cloud Storage. * @type array<\Google\Cloud\Build\V1\UploadedPythonPackage>|\Google\Protobuf\Internal\RepeatedField $python_packages * Python artifacts uploaded to Artifact Registry at the end of the build. * @type array<\Google\Cloud\Build\V1\UploadedMavenArtifact>|\Google\Protobuf\Internal\RepeatedField $maven_artifacts * Maven artifacts uploaded to Artifact Registry at the end of the build. + * @type array<\Google\Cloud\Build\V1\UploadedNpmPackage>|\Google\Protobuf\Internal\RepeatedField $npm_packages + * Npm packages uploaded to Artifact Registry at the end of the build. * } */ public function __construct($data = NULL) { @@ -158,7 +170,8 @@ public function setBuildStepImages($var) } /** - * Path to the artifact manifest. Only populated when artifacts are uploaded. + * Path to the artifact manifest for non-container artifacts uploaded to Cloud + * Storage. Only populated when artifacts are uploaded to Cloud Storage. * * Generated from protobuf field string artifact_manifest = 4; * @return string @@ -169,7 +182,8 @@ public function getArtifactManifest() } /** - * Path to the artifact manifest. Only populated when artifacts are uploaded. + * Path to the artifact manifest for non-container artifacts uploaded to Cloud + * Storage. Only populated when artifacts are uploaded to Cloud Storage. * * Generated from protobuf field string artifact_manifest = 4; * @param string $var @@ -184,7 +198,8 @@ public function setArtifactManifest($var) } /** - * Number of artifacts uploaded. Only populated when artifacts are uploaded. + * Number of non-container artifacts uploaded to Cloud Storage. Only populated + * when artifacts are uploaded to Cloud Storage. * * Generated from protobuf field int64 num_artifacts = 5; * @return int|string @@ -195,7 +210,8 @@ public function getNumArtifacts() } /** - * Number of artifacts uploaded. Only populated when artifacts are uploaded. + * Number of non-container artifacts uploaded to Cloud Storage. Only populated + * when artifacts are uploaded to Cloud Storage. * * Generated from protobuf field int64 num_artifacts = 5; * @param int|string $var @@ -244,7 +260,7 @@ public function setBuildStepOutputs($var) } /** - * Time to push all non-container artifacts. + * Time to push all non-container artifacts to Cloud Storage. * * Generated from protobuf field .google.devtools.cloudbuild.v1.TimeSpan artifact_timing = 7; * @return \Google\Cloud\Build\V1\TimeSpan|null @@ -265,7 +281,7 @@ public function clearArtifactTiming() } /** - * Time to push all non-container artifacts. + * Time to push all non-container artifacts to Cloud Storage. * * Generated from protobuf field .google.devtools.cloudbuild.v1.TimeSpan artifact_timing = 7; * @param \Google\Cloud\Build\V1\TimeSpan $var @@ -331,5 +347,31 @@ public function setMavenArtifacts($var) return $this; } + /** + * Npm packages uploaded to Artifact Registry at the end of the build. + * + * Generated from protobuf field repeated .google.devtools.cloudbuild.v1.UploadedNpmPackage npm_packages = 12; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNpmPackages() + { + return $this->npm_packages; + } + + /** + * Npm packages uploaded to Artifact Registry at the end of the build. + * + * Generated from protobuf field repeated .google.devtools.cloudbuild.v1.UploadedNpmPackage npm_packages = 12; + * @param array<\Google\Cloud\Build\V1\UploadedNpmPackage>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNpmPackages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Build\V1\UploadedNpmPackage::class); + $this->npm_packages = $arr; + + return $this; + } + } diff --git a/Build/src/V1/UploadedNpmPackage.php b/Build/src/V1/UploadedNpmPackage.php new file mode 100644 index 00000000000..042e1f3ee66 --- /dev/null +++ b/Build/src/V1/UploadedNpmPackage.php @@ -0,0 +1,156 @@ +google.devtools.cloudbuild.v1.UploadedNpmPackage + */ +class UploadedNpmPackage extends \Google\Protobuf\Internal\Message +{ + /** + * URI of the uploaded npm package. + * + * Generated from protobuf field string uri = 1; + */ + private $uri = ''; + /** + * Hash types and values of the npm package. + * + * Generated from protobuf field .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + */ + private $file_hashes = null; + /** + * Output only. Stores timing information for pushing the specified artifact. + * + * Generated from protobuf field .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $push_timing = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $uri + * URI of the uploaded npm package. + * @type \Google\Cloud\Build\V1\FileHashes $file_hashes + * Hash types and values of the npm package. + * @type \Google\Cloud\Build\V1\TimeSpan $push_timing + * Output only. Stores timing information for pushing the specified artifact. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Devtools\Cloudbuild\V1\Cloudbuild::initOnce(); + parent::__construct($data); + } + + /** + * URI of the uploaded npm package. + * + * Generated from protobuf field string uri = 1; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * URI of the uploaded npm package. + * + * Generated from protobuf field string uri = 1; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * Hash types and values of the npm package. + * + * Generated from protobuf field .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + * @return \Google\Cloud\Build\V1\FileHashes|null + */ + public function getFileHashes() + { + return $this->file_hashes; + } + + public function hasFileHashes() + { + return isset($this->file_hashes); + } + + public function clearFileHashes() + { + unset($this->file_hashes); + } + + /** + * Hash types and values of the npm package. + * + * Generated from protobuf field .google.devtools.cloudbuild.v1.FileHashes file_hashes = 2; + * @param \Google\Cloud\Build\V1\FileHashes $var + * @return $this + */ + public function setFileHashes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Build\V1\FileHashes::class); + $this->file_hashes = $var; + + return $this; + } + + /** + * Output only. Stores timing information for pushing the specified artifact. + * + * Generated from protobuf field .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Build\V1\TimeSpan|null + */ + public function getPushTiming() + { + return $this->push_timing; + } + + public function hasPushTiming() + { + return isset($this->push_timing); + } + + public function clearPushTiming() + { + unset($this->push_timing); + } + + /** + * Output only. Stores timing information for pushing the specified artifact. + * + * Generated from protobuf field .google.devtools.cloudbuild.v1.TimeSpan push_timing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Build\V1\TimeSpan $var + * @return $this + */ + public function setPushTiming($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Build\V1\TimeSpan::class); + $this->push_timing = $var; + + return $this; + } + +} + diff --git a/Build/src/V1/WorkerPool.php b/Build/src/V1/WorkerPool.php index f7c9c654889..302294c0fa8 100644 --- a/Build/src/V1/WorkerPool.php +++ b/Build/src/V1/WorkerPool.php @@ -124,7 +124,7 @@ class WorkerPool extends \Google\Protobuf\Internal\Message * @type int $state * Output only. `WorkerPool` state. * @type \Google\Cloud\Build\V1\PrivatePoolV1Config $private_pool_v1_config - * Private Pool using a v1 configuration. + * Legacy Private Pool configuration. * @type string $etag * Output only. Checksum computed by the server. May be sent on update and * delete requests to ensure that the client has an up-to-date value before @@ -393,7 +393,7 @@ public function setState($var) } /** - * Private Pool using a v1 configuration. + * Legacy Private Pool configuration. * * Generated from protobuf field .google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12; * @return \Google\Cloud\Build\V1\PrivatePoolV1Config|null @@ -409,7 +409,7 @@ public function hasPrivatePoolV1Config() } /** - * Private Pool using a v1 configuration. + * Legacy Private Pool configuration. * * Generated from protobuf field .google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12; * @param \Google\Cloud\Build\V1\PrivatePoolV1Config $var