diff --git a/Deploy/metadata/V1/CloudDeploy.php b/Deploy/metadata/V1/CloudDeploy.php
index 0aaa65011208..a88250380072 100644
Binary files a/Deploy/metadata/V1/CloudDeploy.php and b/Deploy/metadata/V1/CloudDeploy.php differ
diff --git a/Deploy/src/V1/AdvanceChildRolloutJobRun.php b/Deploy/src/V1/AdvanceChildRolloutJobRun.php
index 9f2a7ad1a456..c2ddce830a12 100644
--- a/Deploy/src/V1/AdvanceChildRolloutJobRun.php
+++ b/Deploy/src/V1/AdvanceChildRolloutJobRun.php
@@ -18,7 +18,7 @@ class AdvanceChildRolloutJobRun extends \Google\Protobuf\Internal\Message
{
/**
* Output only. Name of the `ChildRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
*
* Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@@ -38,7 +38,7 @@ class AdvanceChildRolloutJobRun extends \Google\Protobuf\Internal\Message
*
* @type string $rollout
* Output only. Name of the `ChildRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
* @type string $rollout_phase_id
* Output only. the ID of the ChildRollout's Phase.
* }
@@ -50,7 +50,7 @@ public function __construct($data = NULL) {
/**
* Output only. Name of the `ChildRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
*
* Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return string
@@ -62,7 +62,7 @@ public function getRollout()
/**
* Output only. Name of the `ChildRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
*
* Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param string $var
diff --git a/Deploy/src/V1/AdvanceRolloutRule.php b/Deploy/src/V1/AdvanceRolloutRule.php
index 0ac9ab030b72..0d5e07e21571 100644
--- a/Deploy/src/V1/AdvanceRolloutRule.php
+++ b/Deploy/src/V1/AdvanceRolloutRule.php
@@ -18,7 +18,8 @@ class AdvanceRolloutRule extends \Google\Protobuf\Internal\Message
{
/**
* Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is `[a-z][a-z0-9\-]{0,62}`.
+ * resource to which this rule belongs. The format is
+ * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
*
* Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED];
*/
@@ -54,7 +55,8 @@ class AdvanceRolloutRule extends \Google\Protobuf\Internal\Message
*
* @type string $id
* Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is `[a-z][a-z0-9\-]{0,62}`.
+ * resource to which this rule belongs. The format is
+ * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
* @type array|\Google\Protobuf\Internal\RepeatedField $source_phases
* Optional. Proceeds only after phase name matched any one in the list.
* This value must consist of lower-case letters, numbers, and hyphens,
@@ -74,7 +76,8 @@ public function __construct($data = NULL) {
/**
* Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is `[a-z][a-z0-9\-]{0,62}`.
+ * resource to which this rule belongs. The format is
+ * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
*
* Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED];
* @return string
@@ -86,7 +89,8 @@ public function getId()
/**
* Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is `[a-z][a-z0-9\-]{0,62}`.
+ * resource to which this rule belongs. The format is
+ * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
*
* Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED];
* @param string $var
diff --git a/Deploy/src/V1/AnthosCluster.php b/Deploy/src/V1/AnthosCluster.php
index 97dd7cb2b432..fe6579e6d720 100644
--- a/Deploy/src/V1/AnthosCluster.php
+++ b/Deploy/src/V1/AnthosCluster.php
@@ -16,11 +16,11 @@
class AnthosCluster extends \Google\Protobuf\Internal\Message
{
/**
- * Membership of the GKE Hub-registered cluster to which to apply the Skaffold
- * configuration. Format is
+ * Optional. Membership of the GKE Hub-registered cluster to which to apply
+ * the Skaffold configuration. Format is
* `projects/{project}/locations/{location}/memberships/{membership_name}`.
*
- * Generated from protobuf field string membership = 1 [(.google.api.resource_reference) = {
+ * Generated from protobuf field string membership = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
*/
private $membership = '';
@@ -31,8 +31,8 @@ class AnthosCluster extends \Google\Protobuf\Internal\Message
* Optional. Data for populating the Message object.
*
* @type string $membership
- * Membership of the GKE Hub-registered cluster to which to apply the Skaffold
- * configuration. Format is
+ * Optional. Membership of the GKE Hub-registered cluster to which to apply
+ * the Skaffold configuration. Format is
* `projects/{project}/locations/{location}/memberships/{membership_name}`.
* }
*/
@@ -42,11 +42,11 @@ public function __construct($data = NULL) {
}
/**
- * Membership of the GKE Hub-registered cluster to which to apply the Skaffold
- * configuration. Format is
+ * Optional. Membership of the GKE Hub-registered cluster to which to apply
+ * the Skaffold configuration. Format is
* `projects/{project}/locations/{location}/memberships/{membership_name}`.
*
- * Generated from protobuf field string membership = 1 [(.google.api.resource_reference) = {
+ * Generated from protobuf field string membership = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
* @return string
*/
public function getMembership()
@@ -55,11 +55,11 @@ public function getMembership()
}
/**
- * Membership of the GKE Hub-registered cluster to which to apply the Skaffold
- * configuration. Format is
+ * Optional. Membership of the GKE Hub-registered cluster to which to apply
+ * the Skaffold configuration. Format is
* `projects/{project}/locations/{location}/memberships/{membership_name}`.
*
- * Generated from protobuf field string membership = 1 [(.google.api.resource_reference) = {
+ * Generated from protobuf field string membership = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
* @param string $var
* @return $this
*/
diff --git a/Deploy/src/V1/CreateChildRolloutJobRun.php b/Deploy/src/V1/CreateChildRolloutJobRun.php
index 89484e5f5401..b62a3bb82522 100644
--- a/Deploy/src/V1/CreateChildRolloutJobRun.php
+++ b/Deploy/src/V1/CreateChildRolloutJobRun.php
@@ -18,7 +18,7 @@ class CreateChildRolloutJobRun extends \Google\Protobuf\Internal\Message
{
/**
* Output only. Name of the `ChildRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
*
* Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@@ -38,7 +38,7 @@ class CreateChildRolloutJobRun extends \Google\Protobuf\Internal\Message
*
* @type string $rollout
* Output only. Name of the `ChildRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
* @type string $rollout_phase_id
* Output only. The ID of the childRollout Phase initiated by this JobRun.
* }
@@ -50,7 +50,7 @@ public function __construct($data = NULL) {
/**
* Output only. Name of the `ChildRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
*
* Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return string
@@ -62,7 +62,7 @@ public function getRollout()
/**
* Output only. Name of the `ChildRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
*
* Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param string $var
diff --git a/Deploy/src/V1/CustomTargetType.php b/Deploy/src/V1/CustomTargetType.php
index 2371511d3942..0de4895368a1 100644
--- a/Deploy/src/V1/CustomTargetType.php
+++ b/Deploy/src/V1/CustomTargetType.php
@@ -20,7 +20,9 @@ class CustomTargetType extends \Google\Protobuf\Internal\Message
{
/**
* Optional. Name of the `CustomTargetType`. Format is
- * `projects/{project}/locations/{location}/customTargetTypes/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`.
+ * The `customTargetType` component must match
+ * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
@@ -97,7 +99,9 @@ class CustomTargetType extends \Google\Protobuf\Internal\Message
*
* @type string $name
* Optional. Name of the `CustomTargetType`. Format is
- * `projects/{project}/locations/{location}/customTargetTypes/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`.
+ * The `customTargetType` component must match
+ * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
* @type string $custom_target_type_id
* Output only. Resource id of the `CustomTargetType`.
* @type string $uid
@@ -140,7 +144,9 @@ public function __construct($data = NULL) {
/**
* Optional. Name of the `CustomTargetType`. Format is
- * `projects/{project}/locations/{location}/customTargetTypes/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`.
+ * The `customTargetType` component must match
+ * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
* @return string
@@ -152,7 +158,9 @@ public function getName()
/**
* Optional. Name of the `CustomTargetType`. Format is
- * `projects/{project}/locations/{location}/customTargetTypes/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`.
+ * The `customTargetType` component must match
+ * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
* @param string $var
diff --git a/Deploy/src/V1/DeliveryPipeline.php b/Deploy/src/V1/DeliveryPipeline.php
index 6fdcabce6375..251fada507ca 100644
--- a/Deploy/src/V1/DeliveryPipeline.php
+++ b/Deploy/src/V1/DeliveryPipeline.php
@@ -19,7 +19,9 @@ class DeliveryPipeline extends \Google\Protobuf\Internal\Message
{
/**
* Optional. Name of the `DeliveryPipeline`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}`.
+ * The `deliveryPipeline` component must match
+ * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
@@ -100,7 +102,9 @@ class DeliveryPipeline extends \Google\Protobuf\Internal\Message
*
* @type string $name
* Optional. Name of the `DeliveryPipeline`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}`.
+ * The `deliveryPipeline` component must match
+ * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
* @type string $uid
* Output only. Unique identifier of the `DeliveryPipeline`.
* @type string $description
@@ -143,7 +147,9 @@ public function __construct($data = NULL) {
/**
* Optional. Name of the `DeliveryPipeline`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}`.
+ * The `deliveryPipeline` component must match
+ * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
* @return string
@@ -155,7 +161,9 @@ public function getName()
/**
* Optional. Name of the `DeliveryPipeline`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}`.
+ * The `deliveryPipeline` component must match
+ * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
* @param string $var
diff --git a/Deploy/src/V1/GkeCluster.php b/Deploy/src/V1/GkeCluster.php
index f740425b9e3b..b28fe7fad7fb 100644
--- a/Deploy/src/V1/GkeCluster.php
+++ b/Deploy/src/V1/GkeCluster.php
@@ -16,10 +16,10 @@
class GkeCluster extends \Google\Protobuf\Internal\Message
{
/**
- * Information specifying a GKE Cluster. Format is
+ * Optional. Information specifying a GKE Cluster. Format is
* `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`.
*
- * Generated from protobuf field string cluster = 1 [(.google.api.resource_reference) = {
+ * Generated from protobuf field string cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
*/
private $cluster = '';
/**
@@ -42,7 +42,7 @@ class GkeCluster extends \Google\Protobuf\Internal\Message
* Optional. Data for populating the Message object.
*
* @type string $cluster
- * Information specifying a GKE Cluster. Format is
+ * Optional. Information specifying a GKE Cluster. Format is
* `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`.
* @type bool $internal_ip
* Optional. If true, `cluster` is accessed using the private IP address of
@@ -60,10 +60,10 @@ public function __construct($data = NULL) {
}
/**
- * Information specifying a GKE Cluster. Format is
+ * Optional. Information specifying a GKE Cluster. Format is
* `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`.
*
- * Generated from protobuf field string cluster = 1 [(.google.api.resource_reference) = {
+ * Generated from protobuf field string cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
* @return string
*/
public function getCluster()
@@ -72,10 +72,10 @@ public function getCluster()
}
/**
- * Information specifying a GKE Cluster. Format is
+ * Optional. Information specifying a GKE Cluster. Format is
* `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`.
*
- * Generated from protobuf field string cluster = 1 [(.google.api.resource_reference) = {
+ * Generated from protobuf field string cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
* @param string $var
* @return $this
*/
diff --git a/Deploy/src/V1/PromoteReleaseRule.php b/Deploy/src/V1/PromoteReleaseRule.php
index 9d30291eefdc..4405b3a1f2d6 100644
--- a/Deploy/src/V1/PromoteReleaseRule.php
+++ b/Deploy/src/V1/PromoteReleaseRule.php
@@ -18,7 +18,8 @@ class PromoteReleaseRule extends \Google\Protobuf\Internal\Message
{
/**
* Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is `[a-z][a-z0-9\-]{0,62}`.
+ * resource to which this rule belongs. The format is
+ * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
*
* Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED];
*/
@@ -64,7 +65,8 @@ class PromoteReleaseRule extends \Google\Protobuf\Internal\Message
*
* @type string $id
* Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is `[a-z][a-z0-9\-]{0,62}`.
+ * resource to which this rule belongs. The format is
+ * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
* @type \Google\Protobuf\Duration $wait
* Optional. How long the release need to be paused until being promoted to
* the next target.
@@ -90,7 +92,8 @@ public function __construct($data = NULL) {
/**
* Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is `[a-z][a-z0-9\-]{0,62}`.
+ * resource to which this rule belongs. The format is
+ * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
*
* Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED];
* @return string
@@ -102,7 +105,8 @@ public function getId()
/**
* Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is `[a-z][a-z0-9\-]{0,62}`.
+ * resource to which this rule belongs. The format is
+ * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
*
* Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED];
* @param string $var
diff --git a/Deploy/src/V1/Release.php b/Deploy/src/V1/Release.php
index ed82e52c8a5d..bf8b7e0623b6 100644
--- a/Deploy/src/V1/Release.php
+++ b/Deploy/src/V1/Release.php
@@ -19,7 +19,8 @@ class Release extends \Google\Protobuf\Internal\Message
{
/**
* Optional. Name of the `Release`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`.
+ * The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
@@ -178,7 +179,8 @@ class Release extends \Google\Protobuf\Internal\Message
*
* @type string $name
* Optional. Name of the `Release`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`.
+ * The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
* @type string $uid
* Output only. Unique identifier of the `Release`.
* @type string $description
@@ -249,7 +251,8 @@ public function __construct($data = NULL) {
/**
* Optional. Name of the `Release`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`.
+ * The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
* @return string
@@ -261,7 +264,8 @@ public function getName()
/**
* Optional. Name of the `Release`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`.
+ * The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
* @param string $var
diff --git a/Deploy/src/V1/RepairRolloutRule.php b/Deploy/src/V1/RepairRolloutRule.php
index 91d287c89e3e..9e3d1b0cde74 100644
--- a/Deploy/src/V1/RepairRolloutRule.php
+++ b/Deploy/src/V1/RepairRolloutRule.php
@@ -18,7 +18,8 @@ class RepairRolloutRule extends \Google\Protobuf\Internal\Message
{
/**
* Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is `[a-z][a-z0-9\-]{0,62}`.
+ * resource to which this rule belongs. The format is
+ * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
*
* Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED];
*/
@@ -67,7 +68,8 @@ class RepairRolloutRule extends \Google\Protobuf\Internal\Message
*
* @type string $id
* Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is `[a-z][a-z0-9\-]{0,62}`.
+ * resource to which this rule belongs. The format is
+ * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
* @type array|\Google\Protobuf\Internal\RepeatedField $source_phases
* Optional. Phases within which jobs are subject to automatic repair actions
* on failure. Proceeds only after phase name matched any one in the list, or
@@ -96,7 +98,8 @@ public function __construct($data = NULL) {
/**
* Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is `[a-z][a-z0-9\-]{0,62}`.
+ * resource to which this rule belongs. The format is
+ * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
*
* Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED];
* @return string
@@ -108,7 +111,8 @@ public function getId()
/**
* Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is `[a-z][a-z0-9\-]{0,62}`.
+ * resource to which this rule belongs. The format is
+ * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
*
* Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED];
* @param string $var
diff --git a/Deploy/src/V1/Rollout.php b/Deploy/src/V1/Rollout.php
index 349bb81594ce..2198b481909c 100644
--- a/Deploy/src/V1/Rollout.php
+++ b/Deploy/src/V1/Rollout.php
@@ -18,7 +18,8 @@ class Rollout extends \Google\Protobuf\Internal\Message
{
/**
* Optional. Name of the `Rollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
+ * The `rollout` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
@@ -150,7 +151,7 @@ class Rollout extends \Google\Protobuf\Internal\Message
private $metadata = null;
/**
* Output only. Name of the `ControllerRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
*
* Generated from protobuf field string controller_rollout = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@@ -177,7 +178,8 @@ class Rollout extends \Google\Protobuf\Internal\Message
*
* @type string $name
* Optional. Name of the `Rollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
+ * The `rollout` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
* @type string $uid
* Output only. Unique identifier of the `Rollout`.
* @type string $description
@@ -233,7 +235,7 @@ class Rollout extends \Google\Protobuf\Internal\Message
* Output only. Metadata contains information about the rollout.
* @type string $controller_rollout
* Output only. Name of the `ControllerRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
* @type string $rollback_of_rollout
* Output only. Name of the `Rollout` that is rolled back by this `Rollout`.
* Empty if this `Rollout` wasn't created as a rollback.
@@ -248,7 +250,8 @@ public function __construct($data = NULL) {
/**
* Optional. Name of the `Rollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
+ * The `rollout` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
* @return string
@@ -260,7 +263,8 @@ public function getName()
/**
* Optional. Name of the `Rollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
+ * The `rollout` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
* @param string $var
@@ -838,7 +842,7 @@ public function setMetadata($var)
/**
* Output only. Name of the `ControllerRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
*
* Generated from protobuf field string controller_rollout = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return string
@@ -850,7 +854,7 @@ public function getControllerRollout()
/**
* Output only. Name of the `ControllerRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
*
* Generated from protobuf field string controller_rollout = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param string $var
diff --git a/Deploy/src/V1/Target.php b/Deploy/src/V1/Target.php
index bcaef82d2ce9..50b30289ef67 100644
--- a/Deploy/src/V1/Target.php
+++ b/Deploy/src/V1/Target.php
@@ -19,7 +19,8 @@ class Target extends \Google\Protobuf\Internal\Message
{
/**
* Optional. Name of the `Target`. Format is
- * `projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/targets/{target}`.
+ * The `target` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
@@ -119,7 +120,8 @@ class Target extends \Google\Protobuf\Internal\Message
*
* @type string $name
* Optional. Name of the `Target`. Format is
- * `projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/targets/{target}`.
+ * The `target` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
* @type string $target_id
* Output only. Resource id of the `Target`.
* @type string $uid
@@ -180,7 +182,8 @@ public function __construct($data = NULL) {
/**
* Optional. Name of the `Target`. Format is
- * `projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/targets/{target}`.
+ * The `target` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
* @return string
@@ -192,7 +195,8 @@ public function getName()
/**
* Optional. Name of the `Target`. Format is
- * `projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}`.
+ * `projects/{project}/locations/{location}/targets/{target}`.
+ * The `target` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
* @param string $var
diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/AutomationPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/AutomationPayload.php
deleted file mode 100644
index f997f5e2423a..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/AutomationPayload.php
+++ /dev/null
@@ -1,34 +0,0 @@
-internalAddGeneratedFile(
- '
-·
-/google/cloud/deploy/v1/automation_payload.protogoogle.cloud.deploy.v1"x
-AutomationEvent
-message (
-
-automation (
-pipeline_uid ( *
-type (2.google.cloud.deploy.v1.TypeBj
-com.google.cloud.deploy.v1BAutomationPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/AutomationrunPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/AutomationrunPayload.php
deleted file mode 100644
index a684c442631c..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/AutomationrunPayload.php
+++ /dev/null
@@ -1,36 +0,0 @@
-internalAddGeneratedFile(
- '
-Œ
-2google/cloud/deploy/v1/automationrun_payload.protogoogle.cloud.deploy.v1"Æ
-AutomationRunEvent
-message (
-automation_run (
-pipeline_uid (
-
automation_id (
-rule_id (
-destination_target_id ( *
-type (2.google.cloud.deploy.v1.TypeBm
-com.google.cloud.deploy.v1BAutomationRunPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/CloudDeploy.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/CloudDeploy.php
deleted file mode 100644
index a88250380072..000000000000
Binary files a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/CloudDeploy.php and /dev/null differ
diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/DeliverypipelineNotificationPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/DeliverypipelineNotificationPayload.php
deleted file mode 100644
index f159037d9297..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/DeliverypipelineNotificationPayload.php
+++ /dev/null
@@ -1,33 +0,0 @@
-internalAddGeneratedFile(
- '
-ö
-Bgoogle/cloud/deploy/v1/deliverypipeline_notification_payload.protogoogle.cloud.deploy.v1"‘
-!DeliveryPipelineNotificationEvent
-message (
-pipeline_uid (
-delivery_pipeline ( *
-type (2.google.cloud.deploy.v1.TypeB|
-com.google.cloud.deploy.v1B(DeliveryPipelineNotificationPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/JobrunNotificationPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/JobrunNotificationPayload.php
deleted file mode 100644
index a2457623cd07..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/JobrunNotificationPayload.php
+++ /dev/null
@@ -1,38 +0,0 @@
-internalAddGeneratedFile(
- '
-
-8google/cloud/deploy/v1/jobrun_notification_payload.protogoogle.cloud.deploy.v1"Ü
-JobRunNotificationEvent
-message (
-job_run (
-pipeline_uid (
-release_uid (
-release (
-rollout_uid (
-rollout (
- target_id ( *
-type (2.google.cloud.deploy.v1.TypeBr
-com.google.cloud.deploy.v1BJobRunNotificationPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/LogEnums.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/LogEnums.php
deleted file mode 100644
index eb87553c34e1..000000000000
Binary files a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/LogEnums.php and /dev/null differ
diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/ReleaseNotificationPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/ReleaseNotificationPayload.php
deleted file mode 100644
index 1eabbab67893..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/ReleaseNotificationPayload.php
+++ /dev/null
@@ -1,34 +0,0 @@
-internalAddGeneratedFile(
- '
-æ
-9google/cloud/deploy/v1/release_notification_payload.protogoogle.cloud.deploy.v1"“
-ReleaseNotificationEvent
-message (
-pipeline_uid (
-release_uid (
-release ( *
-type (2.google.cloud.deploy.v1.TypeBs
-com.google.cloud.deploy.v1BReleaseNotificationPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/ReleaseRenderPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/ReleaseRenderPayload.php
deleted file mode 100644
index bf80edd2a223..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/ReleaseRenderPayload.php
+++ /dev/null
@@ -1,35 +0,0 @@
-internalAddGeneratedFile(
- '
-²
-3google/cloud/deploy/v1/release_render_payload.protogoogle.cloud.deploy.v1&google/cloud/deploy/v1/log_enums.proto"Ã
-ReleaseRenderEvent
-message (
-pipeline_uid (
-release ( *
-type (2.google.cloud.deploy.v1.TypeI
-release_render_state (2+.google.cloud.deploy.v1.Release.RenderStateBm
-com.google.cloud.deploy.v1BReleaseRenderPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/RolloutNotificationPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/RolloutNotificationPayload.php
deleted file mode 100644
index 7ea89d9a57da..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/RolloutNotificationPayload.php
+++ /dev/null
@@ -1,37 +0,0 @@
-internalAddGeneratedFile(
- '
-Ÿ
-9google/cloud/deploy/v1/rollout_notification_payload.protogoogle.cloud.deploy.v1"Ì
-RolloutNotificationEvent
-message (
-pipeline_uid (
-release_uid (
-release (
-rollout_uid (
-rollout (
- target_id ( *
-type (2.google.cloud.deploy.v1.TypeBs
-com.google.cloud.deploy.v1BRolloutNotificationPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/RolloutUpdatePayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/RolloutUpdatePayload.php
deleted file mode 100644
index beba3f9c57a2..000000000000
Binary files a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/RolloutUpdatePayload.php and /dev/null differ
diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/TargetNotificationPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/TargetNotificationPayload.php
deleted file mode 100644
index 712c49b2d540..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/TargetNotificationPayload.php
+++ /dev/null
@@ -1,32 +0,0 @@
-internalAddGeneratedFile(
- '
-¶
-8google/cloud/deploy/v1/target_notification_payload.protogoogle.cloud.deploy.v1"f
-TargetNotificationEvent
-message (
-target ( *
-type (2.google.cloud.deploy.v1.TypeBr
-com.google.cloud.deploy.v1BTargetNotificationPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AbandonReleaseRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AbandonReleaseRequest.php
deleted file mode 100644
index 0b9a4e24b06f..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AbandonReleaseRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.deploy.v1.AbandonReleaseRequest
- */
-class AbandonReleaseRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the Release. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. Name of the Release. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`. Please see
- * {@see CloudDeployClient::releaseName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\AbandonReleaseRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Name of the Release. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the Release. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Name of the Release. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AbandonReleaseResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AbandonReleaseResponse.php
deleted file mode 100644
index 0c9a99c6c1de..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AbandonReleaseResponse.php
+++ /dev/null
@@ -1,33 +0,0 @@
-google.cloud.deploy.v1.AbandonReleaseResponse
- */
-class AbandonReleaseResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceChildRolloutJob.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceChildRolloutJob.php
deleted file mode 100644
index aecd9a83cdcf..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceChildRolloutJob.php
+++ /dev/null
@@ -1,33 +0,0 @@
-google.cloud.deploy.v1.AdvanceChildRolloutJob
- */
-class AdvanceChildRolloutJob extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceChildRolloutJobRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceChildRolloutJobRun.php
deleted file mode 100644
index b864bc78b9ed..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceChildRolloutJobRun.php
+++ /dev/null
@@ -1,106 +0,0 @@
-google.cloud.deploy.v1.AdvanceChildRolloutJobRun
- */
-class AdvanceChildRolloutJobRun extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. Name of the `ChildRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $rollout = '';
- /**
- * Output only. the ID of the ChildRollout's Phase.
- *
- * Generated from protobuf field string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $rollout_phase_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $rollout
- * Output only. Name of the `ChildRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- * @type string $rollout_phase_id
- * Output only. the ID of the ChildRollout's Phase.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. Name of the `ChildRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getRollout()
- {
- return $this->rollout;
- }
-
- /**
- * Output only. Name of the `ChildRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setRollout($var)
- {
- GPBUtil::checkString($var, True);
- $this->rollout = $var;
-
- return $this;
- }
-
- /**
- * Output only. the ID of the ChildRollout's Phase.
- *
- * Generated from protobuf field string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getRolloutPhaseId()
- {
- return $this->rollout_phase_id;
- }
-
- /**
- * Output only. the ID of the ChildRollout's Phase.
- *
- * Generated from protobuf field string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setRolloutPhaseId($var)
- {
- GPBUtil::checkString($var, True);
- $this->rollout_phase_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutOperation.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutOperation.php
deleted file mode 100644
index 8c8cd04062da..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutOperation.php
+++ /dev/null
@@ -1,179 +0,0 @@
-google.cloud.deploy.v1.AdvanceRolloutOperation
- */
-class AdvanceRolloutOperation extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The phase of a deployment that initiated the operation.
- *
- * Generated from protobuf field string source_phase = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $source_phase = '';
- /**
- * Output only. How long the operation will be paused.
- *
- * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $wait = null;
- /**
- * Output only. The name of the rollout that initiates the `AutomationRun`.
- *
- * Generated from protobuf field string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $rollout = '';
- /**
- * Output only. The phase the rollout will be advanced to.
- *
- * Generated from protobuf field string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $destination_phase = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $source_phase
- * Output only. The phase of a deployment that initiated the operation.
- * @type \Google\Protobuf\Duration $wait
- * Output only. How long the operation will be paused.
- * @type string $rollout
- * Output only. The name of the rollout that initiates the `AutomationRun`.
- * @type string $destination_phase
- * Output only. The phase the rollout will be advanced to.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The phase of a deployment that initiated the operation.
- *
- * Generated from protobuf field string source_phase = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getSourcePhase()
- {
- return $this->source_phase;
- }
-
- /**
- * Output only. The phase of a deployment that initiated the operation.
- *
- * Generated from protobuf field string source_phase = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setSourcePhase($var)
- {
- GPBUtil::checkString($var, True);
- $this->source_phase = $var;
-
- return $this;
- }
-
- /**
- * Output only. How long the operation will be paused.
- *
- * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWait()
- {
- return $this->wait;
- }
-
- public function hasWait()
- {
- return isset($this->wait);
- }
-
- public function clearWait()
- {
- unset($this->wait);
- }
-
- /**
- * Output only. How long the operation will be paused.
- *
- * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWait($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->wait = $var;
-
- return $this;
- }
-
- /**
- * Output only. The name of the rollout that initiates the `AutomationRun`.
- *
- * Generated from protobuf field string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getRollout()
- {
- return $this->rollout;
- }
-
- /**
- * Output only. The name of the rollout that initiates the `AutomationRun`.
- *
- * Generated from protobuf field string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setRollout($var)
- {
- GPBUtil::checkString($var, True);
- $this->rollout = $var;
-
- return $this;
- }
-
- /**
- * Output only. The phase the rollout will be advanced to.
- *
- * Generated from protobuf field string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getDestinationPhase()
- {
- return $this->destination_phase;
- }
-
- /**
- * Output only. The phase the rollout will be advanced to.
- *
- * Generated from protobuf field string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setDestinationPhase($var)
- {
- GPBUtil::checkString($var, True);
- $this->destination_phase = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutRequest.php
deleted file mode 100644
index f8c39a9f3dba..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutRequest.php
+++ /dev/null
@@ -1,122 +0,0 @@
-google.cloud.deploy.v1.AdvanceRolloutRequest
- */
-class AdvanceRolloutRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * Required. The phase ID to advance the `Rollout` to.
- *
- * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $phase_id = '';
-
- /**
- * @param string $name Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. Please see
- * {@see CloudDeployClient::rolloutName()} for help formatting this field.
- * @param string $phaseId Required. The phase ID to advance the `Rollout` to.
- *
- * @return \Google\Cloud\Deploy\V1\AdvanceRolloutRequest
- *
- * @experimental
- */
- public static function build(string $name, string $phaseId): self
- {
- return (new self())
- ->setName($name)
- ->setPhaseId($phaseId);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- * @type string $phase_id
- * Required. The phase ID to advance the `Rollout` to.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Required. The phase ID to advance the `Rollout` to.
- *
- * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getPhaseId()
- {
- return $this->phase_id;
- }
-
- /**
- * Required. The phase ID to advance the `Rollout` to.
- *
- * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setPhaseId($var)
- {
- GPBUtil::checkString($var, True);
- $this->phase_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutResponse.php
deleted file mode 100644
index 14f85ee02712..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutResponse.php
+++ /dev/null
@@ -1,33 +0,0 @@
-google.cloud.deploy.v1.AdvanceRolloutResponse
- */
-class AdvanceRolloutResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutRule.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutRule.php
deleted file mode 100644
index 798428be12f8..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutRule.php
+++ /dev/null
@@ -1,214 +0,0 @@
-google.cloud.deploy.v1.AdvanceRolloutRule
- */
-class AdvanceRolloutRule extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is
- * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
- *
- * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $id = '';
- /**
- * Optional. Proceeds only after phase name matched any one in the list.
- * This value must consist of lower-case letters, numbers, and hyphens,
- * start with a letter and end with a letter or a number, and have a max
- * length of 63 characters. In other words, it must match the following
- * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
- *
- * Generated from protobuf field repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $source_phases;
- /**
- * Optional. How long to wait after a rollout is finished.
- *
- * Generated from protobuf field .google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $wait = null;
- /**
- * Output only. Information around the state of the Automation rule.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $condition = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $id
- * Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is
- * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
- * @type array|\Google\Protobuf\Internal\RepeatedField $source_phases
- * Optional. Proceeds only after phase name matched any one in the list.
- * This value must consist of lower-case letters, numbers, and hyphens,
- * start with a letter and end with a letter or a number, and have a max
- * length of 63 characters. In other words, it must match the following
- * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
- * @type \Google\Protobuf\Duration $wait
- * Optional. How long to wait after a rollout is finished.
- * @type \Google\Cloud\Deploy\V1\AutomationRuleCondition $condition
- * Output only. Information around the state of the Automation rule.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is
- * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
- *
- * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getId()
- {
- return $this->id;
- }
-
- /**
- * Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is
- * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
- *
- * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setId($var)
- {
- GPBUtil::checkString($var, True);
- $this->id = $var;
-
- return $this;
- }
-
- /**
- * Optional. Proceeds only after phase name matched any one in the list.
- * This value must consist of lower-case letters, numbers, and hyphens,
- * start with a letter and end with a letter or a number, and have a max
- * length of 63 characters. In other words, it must match the following
- * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
- *
- * Generated from protobuf field repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getSourcePhases()
- {
- return $this->source_phases;
- }
-
- /**
- * Optional. Proceeds only after phase name matched any one in the list.
- * This value must consist of lower-case letters, numbers, and hyphens,
- * start with a letter and end with a letter or a number, and have a max
- * length of 63 characters. In other words, it must match the following
- * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
- *
- * Generated from protobuf field repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setSourcePhases($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->source_phases = $arr;
-
- return $this;
- }
-
- /**
- * Optional. How long to wait after a rollout is finished.
- *
- * Generated from protobuf field .google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWait()
- {
- return $this->wait;
- }
-
- public function hasWait()
- {
- return isset($this->wait);
- }
-
- public function clearWait()
- {
- unset($this->wait);
- }
-
- /**
- * Optional. How long to wait after a rollout is finished.
- *
- * Generated from protobuf field .google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWait($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->wait = $var;
-
- return $this;
- }
-
- /**
- * Output only. Information around the state of the Automation rule.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\AutomationRuleCondition|null
- */
- public function getCondition()
- {
- return $this->condition;
- }
-
- public function hasCondition()
- {
- return isset($this->condition);
- }
-
- public function clearCondition()
- {
- unset($this->condition);
- }
-
- /**
- * Output only. Information around the state of the Automation rule.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\AutomationRuleCondition $var
- * @return $this
- */
- public function setCondition($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AutomationRuleCondition::class);
- $this->condition = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AnthosCluster.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AnthosCluster.php
deleted file mode 100644
index 4a94f019e63a..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AnthosCluster.php
+++ /dev/null
@@ -1,75 +0,0 @@
-google.cloud.deploy.v1.AnthosCluster
- */
-class AnthosCluster extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. Membership of the GKE Hub-registered cluster to which to apply
- * the Skaffold configuration. Format is
- * `projects/{project}/locations/{location}/memberships/{membership_name}`.
- *
- * Generated from protobuf field string membership = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- */
- protected $membership = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $membership
- * Optional. Membership of the GKE Hub-registered cluster to which to apply
- * the Skaffold configuration. Format is
- * `projects/{project}/locations/{location}/memberships/{membership_name}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. Membership of the GKE Hub-registered cluster to which to apply
- * the Skaffold configuration. Format is
- * `projects/{project}/locations/{location}/memberships/{membership_name}`.
- *
- * Generated from protobuf field string membership = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- * @return string
- */
- public function getMembership()
- {
- return $this->membership;
- }
-
- /**
- * Optional. Membership of the GKE Hub-registered cluster to which to apply
- * the Skaffold configuration. Format is
- * `projects/{project}/locations/{location}/memberships/{membership_name}`.
- *
- * Generated from protobuf field string membership = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setMembership($var)
- {
- GPBUtil::checkString($var, True);
- $this->membership = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ApproveRolloutRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ApproveRolloutRequest.php
deleted file mode 100644
index 4f881df0b1c2..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ApproveRolloutRequest.php
+++ /dev/null
@@ -1,120 +0,0 @@
-google.cloud.deploy.v1.ApproveRolloutRequest
- */
-class ApproveRolloutRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * Required. True = approve; false = reject
- *
- * Generated from protobuf field bool approved = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $approved = false;
-
- /**
- * @param string $name Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. Please see
- * {@see CloudDeployClient::rolloutName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\ApproveRolloutRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- * @type bool $approved
- * Required. True = approve; false = reject
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Required. True = approve; false = reject
- *
- * Generated from protobuf field bool approved = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return bool
- */
- public function getApproved()
- {
- return $this->approved;
- }
-
- /**
- * Required. True = approve; false = reject
- *
- * Generated from protobuf field bool approved = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param bool $var
- * @return $this
- */
- public function setApproved($var)
- {
- GPBUtil::checkBool($var);
- $this->approved = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ApproveRolloutResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ApproveRolloutResponse.php
deleted file mode 100644
index afac40c7146c..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ApproveRolloutResponse.php
+++ /dev/null
@@ -1,33 +0,0 @@
-google.cloud.deploy.v1.ApproveRolloutResponse
- */
-class ApproveRolloutResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Automation.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Automation.php
deleted file mode 100644
index 443645ba2bbd..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Automation.php
+++ /dev/null
@@ -1,596 +0,0 @@
-google.cloud.deploy.v1.Automation
- */
-class Automation extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. Name of the `Automation`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $name = '';
- /**
- * Output only. Unique identifier of the `Automation`.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $uid = '';
- /**
- * Optional. Description of the `Automation`. Max length is 255 characters.
- *
- * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $description = '';
- /**
- * Output only. Time at which the automation was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Output only. Time at which the automation was updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $update_time = null;
- /**
- * Optional. User annotations. These attributes can only be set and used by
- * the user, and not by Cloud Deploy. Annotations must meet the following
- * constraints:
- * * Annotations are key/value pairs.
- * * Valid annotation keys have two segments: an optional prefix and name,
- * separated by a slash (`/`).
- * * The name segment is required and must be 63 characters or less,
- * beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with
- * dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
- * * The prefix is optional. If specified, the prefix must be a DNS subdomain:
- * a series of DNS labels separated by dots(`.`), not longer than 253
- * characters in total, followed by a slash (`/`).
- * See
- * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set
- * for more details.
- *
- * Generated from protobuf field map annotations = 6 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $annotations;
- /**
- * Optional. Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 63 characters.
- *
- * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $labels;
- /**
- * Optional. The weak etag of the `Automation` resource.
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $etag = '';
- /**
- * Optional. When Suspended, automation is deactivated from execution.
- *
- * Generated from protobuf field bool suspended = 9 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $suspended = false;
- /**
- * Required. Email address of the user-managed IAM service account that
- * creates Cloud Deploy release and rollout resources.
- *
- * Generated from protobuf field string service_account = 10 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $service_account = '';
- /**
- * Required. Selected resources to which the automation will be applied.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AutomationResourceSelector selector = 11 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $selector = null;
- /**
- * Required. List of Automation rules associated with the Automation resource.
- * Must have at least one rule and limited to 250 rules per Delivery Pipeline.
- * Note: the order of the rules here is not the same as the order of
- * execution.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.AutomationRule rules = 14 [(.google.api.field_behavior) = REQUIRED];
- */
- private $rules;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Output only. Name of the `Automation`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}`.
- * @type string $uid
- * Output only. Unique identifier of the `Automation`.
- * @type string $description
- * Optional. Description of the `Automation`. Max length is 255 characters.
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. Time at which the automation was created.
- * @type \Google\Protobuf\Timestamp $update_time
- * Output only. Time at which the automation was updated.
- * @type array|\Google\Protobuf\Internal\MapField $annotations
- * Optional. User annotations. These attributes can only be set and used by
- * the user, and not by Cloud Deploy. Annotations must meet the following
- * constraints:
- * * Annotations are key/value pairs.
- * * Valid annotation keys have two segments: an optional prefix and name,
- * separated by a slash (`/`).
- * * The name segment is required and must be 63 characters or less,
- * beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with
- * dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
- * * The prefix is optional. If specified, the prefix must be a DNS subdomain:
- * a series of DNS labels separated by dots(`.`), not longer than 253
- * characters in total, followed by a slash (`/`).
- * See
- * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set
- * for more details.
- * @type array|\Google\Protobuf\Internal\MapField $labels
- * Optional. Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 63 characters.
- * @type string $etag
- * Optional. The weak etag of the `Automation` resource.
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- * @type bool $suspended
- * Optional. When Suspended, automation is deactivated from execution.
- * @type string $service_account
- * Required. Email address of the user-managed IAM service account that
- * creates Cloud Deploy release and rollout resources.
- * @type \Google\Cloud\Deploy\V1\AutomationResourceSelector $selector
- * Required. Selected resources to which the automation will be applied.
- * @type array<\Google\Cloud\Deploy\V1\AutomationRule>|\Google\Protobuf\Internal\RepeatedField $rules
- * Required. List of Automation rules associated with the Automation resource.
- * Must have at least one rule and limited to 250 rules per Delivery Pipeline.
- * Note: the order of the rules here is not the same as the order of
- * execution.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. Name of the `Automation`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Output only. Name of the `Automation`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Output only. Unique identifier of the `Automation`.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getUid()
- {
- return $this->uid;
- }
-
- /**
- * Output only. Unique identifier of the `Automation`.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->uid = $var;
-
- return $this;
- }
-
- /**
- * Optional. Description of the `Automation`. Max length is 255 characters.
- *
- * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * Optional. Description of the `Automation`. Max length is 255 characters.
- *
- * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setDescription($var)
- {
- GPBUtil::checkString($var, True);
- $this->description = $var;
-
- return $this;
- }
-
- /**
- * Output only. Time at which the automation was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. Time at which the automation was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. Time at which the automation was updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->update_time;
- }
-
- public function hasUpdateTime()
- {
- return isset($this->update_time);
- }
-
- public function clearUpdateTime()
- {
- unset($this->update_time);
- }
-
- /**
- * Output only. Time at which the automation was updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->update_time = $var;
-
- return $this;
- }
-
- /**
- * Optional. User annotations. These attributes can only be set and used by
- * the user, and not by Cloud Deploy. Annotations must meet the following
- * constraints:
- * * Annotations are key/value pairs.
- * * Valid annotation keys have two segments: an optional prefix and name,
- * separated by a slash (`/`).
- * * The name segment is required and must be 63 characters or less,
- * beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with
- * dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
- * * The prefix is optional. If specified, the prefix must be a DNS subdomain:
- * a series of DNS labels separated by dots(`.`), not longer than 253
- * characters in total, followed by a slash (`/`).
- * See
- * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set
- * for more details.
- *
- * Generated from protobuf field map annotations = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getAnnotations()
- {
- return $this->annotations;
- }
-
- /**
- * Optional. User annotations. These attributes can only be set and used by
- * the user, and not by Cloud Deploy. Annotations must meet the following
- * constraints:
- * * Annotations are key/value pairs.
- * * Valid annotation keys have two segments: an optional prefix and name,
- * separated by a slash (`/`).
- * * The name segment is required and must be 63 characters or less,
- * beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with
- * dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
- * * The prefix is optional. If specified, the prefix must be a DNS subdomain:
- * a series of DNS labels separated by dots(`.`), not longer than 253
- * characters in total, followed by a slash (`/`).
- * See
- * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set
- * for more details.
- *
- * Generated from protobuf field map annotations = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setAnnotations($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->annotations = $arr;
-
- return $this;
- }
-
- /**
- * Optional. Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 63 characters.
- *
- * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getLabels()
- {
- return $this->labels;
- }
-
- /**
- * Optional. Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 63 characters.
- *
- * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setLabels($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->labels = $arr;
-
- return $this;
- }
-
- /**
- * Optional. The weak etag of the `Automation` resource.
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * Optional. The weak etag of the `Automation` resource.
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
- /**
- * Optional. When Suspended, automation is deactivated from execution.
- *
- * Generated from protobuf field bool suspended = 9 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getSuspended()
- {
- return $this->suspended;
- }
-
- /**
- * Optional. When Suspended, automation is deactivated from execution.
- *
- * Generated from protobuf field bool suspended = 9 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setSuspended($var)
- {
- GPBUtil::checkBool($var);
- $this->suspended = $var;
-
- return $this;
- }
-
- /**
- * Required. Email address of the user-managed IAM service account that
- * creates Cloud Deploy release and rollout resources.
- *
- * Generated from protobuf field string service_account = 10 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getServiceAccount()
- {
- return $this->service_account;
- }
-
- /**
- * Required. Email address of the user-managed IAM service account that
- * creates Cloud Deploy release and rollout resources.
- *
- * Generated from protobuf field string service_account = 10 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setServiceAccount($var)
- {
- GPBUtil::checkString($var, True);
- $this->service_account = $var;
-
- return $this;
- }
-
- /**
- * Required. Selected resources to which the automation will be applied.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AutomationResourceSelector selector = 11 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Deploy\V1\AutomationResourceSelector|null
- */
- public function getSelector()
- {
- return $this->selector;
- }
-
- public function hasSelector()
- {
- return isset($this->selector);
- }
-
- public function clearSelector()
- {
- unset($this->selector);
- }
-
- /**
- * Required. Selected resources to which the automation will be applied.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AutomationResourceSelector selector = 11 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Deploy\V1\AutomationResourceSelector $var
- * @return $this
- */
- public function setSelector($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AutomationResourceSelector::class);
- $this->selector = $var;
-
- return $this;
- }
-
- /**
- * Required. List of Automation rules associated with the Automation resource.
- * Must have at least one rule and limited to 250 rules per Delivery Pipeline.
- * Note: the order of the rules here is not the same as the order of
- * execution.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.AutomationRule rules = 14 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getRules()
- {
- return $this->rules;
- }
-
- /**
- * Required. List of Automation rules associated with the Automation resource.
- * Must have at least one rule and limited to 250 rules per Delivery Pipeline.
- * Note: the order of the rules here is not the same as the order of
- * execution.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.AutomationRule rules = 14 [(.google.api.field_behavior) = REQUIRED];
- * @param array<\Google\Cloud\Deploy\V1\AutomationRule>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setRules($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\AutomationRule::class);
- $this->rules = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationEvent.php
deleted file mode 100644
index b12f4851332d..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationEvent.php
+++ /dev/null
@@ -1,174 +0,0 @@
-google.cloud.deploy.v1.AutomationEvent
- */
-class AutomationEvent extends \Google\Protobuf\Internal\Message
-{
- /**
- * Debug message for when there is an update on the AutomationRun.
- * Provides further details about the resource creation or state change.
- *
- * Generated from protobuf field string message = 1;
- */
- protected $message = '';
- /**
- * The name of the `AutomationRun`.
- *
- * Generated from protobuf field string automation = 2;
- */
- protected $automation = '';
- /**
- * Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string pipeline_uid = 3;
- */
- protected $pipeline_uid = '';
- /**
- * Type of this notification, e.g. for a Pub/Sub failure.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 4;
- */
- protected $type = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $message
- * Debug message for when there is an update on the AutomationRun.
- * Provides further details about the resource creation or state change.
- * @type string $automation
- * The name of the `AutomationRun`.
- * @type string $pipeline_uid
- * Unique identifier of the `DeliveryPipeline`.
- * @type int $type
- * Type of this notification, e.g. for a Pub/Sub failure.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\AutomationPayload::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Debug message for when there is an update on the AutomationRun.
- * Provides further details about the resource creation or state change.
- *
- * Generated from protobuf field string message = 1;
- * @return string
- */
- public function getMessage()
- {
- return $this->message;
- }
-
- /**
- * Debug message for when there is an update on the AutomationRun.
- * Provides further details about the resource creation or state change.
- *
- * Generated from protobuf field string message = 1;
- * @param string $var
- * @return $this
- */
- public function setMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->message = $var;
-
- return $this;
- }
-
- /**
- * The name of the `AutomationRun`.
- *
- * Generated from protobuf field string automation = 2;
- * @return string
- */
- public function getAutomation()
- {
- return $this->automation;
- }
-
- /**
- * The name of the `AutomationRun`.
- *
- * Generated from protobuf field string automation = 2;
- * @param string $var
- * @return $this
- */
- public function setAutomation($var)
- {
- GPBUtil::checkString($var, True);
- $this->automation = $var;
-
- return $this;
- }
-
- /**
- * Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string pipeline_uid = 3;
- * @return string
- */
- public function getPipelineUid()
- {
- return $this->pipeline_uid;
- }
-
- /**
- * Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string pipeline_uid = 3;
- * @param string $var
- * @return $this
- */
- public function setPipelineUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->pipeline_uid = $var;
-
- return $this;
- }
-
- /**
- * Type of this notification, e.g. for a Pub/Sub failure.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 4;
- * @return int
- */
- public function getType()
- {
- return $this->type;
- }
-
- /**
- * Type of this notification, e.g. for a Pub/Sub failure.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 4;
- * @param int $var
- * @return $this
- */
- public function setType($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class);
- $this->type = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationResourceSelector.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationResourceSelector.php
deleted file mode 100644
index dc60ab39a0d9..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationResourceSelector.php
+++ /dev/null
@@ -1,68 +0,0 @@
-google.cloud.deploy.v1.AutomationResourceSelector
- */
-class AutomationResourceSelector extends \Google\Protobuf\Internal\Message
-{
- /**
- * Contains attributes about a target.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.TargetAttribute targets = 1;
- */
- private $targets;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Deploy\V1\TargetAttribute>|\Google\Protobuf\Internal\RepeatedField $targets
- * Contains attributes about a target.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Contains attributes about a target.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.TargetAttribute targets = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getTargets()
- {
- return $this->targets;
- }
-
- /**
- * Contains attributes about a target.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.TargetAttribute targets = 1;
- * @param array<\Google\Cloud\Deploy\V1\TargetAttribute>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setTargets($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\TargetAttribute::class);
- $this->targets = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRolloutMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRolloutMetadata.php
deleted file mode 100644
index 94653278f9de..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRolloutMetadata.php
+++ /dev/null
@@ -1,148 +0,0 @@
-google.cloud.deploy.v1.AutomationRolloutMetadata
- */
-class AutomationRolloutMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The ID of the AutomationRun initiated by a promote release
- * rule.
- *
- * Generated from protobuf field string promote_automation_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $promote_automation_run = '';
- /**
- * Output only. The IDs of the AutomationRuns initiated by an advance rollout
- * rule.
- *
- * Generated from protobuf field repeated string advance_automation_runs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $advance_automation_runs;
- /**
- * Output only. The IDs of the AutomationRuns initiated by a repair rollout
- * rule.
- *
- * Generated from protobuf field repeated string repair_automation_runs = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $repair_automation_runs;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $promote_automation_run
- * Output only. The ID of the AutomationRun initiated by a promote release
- * rule.
- * @type array|\Google\Protobuf\Internal\RepeatedField $advance_automation_runs
- * Output only. The IDs of the AutomationRuns initiated by an advance rollout
- * rule.
- * @type array|\Google\Protobuf\Internal\RepeatedField $repair_automation_runs
- * Output only. The IDs of the AutomationRuns initiated by a repair rollout
- * rule.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The ID of the AutomationRun initiated by a promote release
- * rule.
- *
- * Generated from protobuf field string promote_automation_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getPromoteAutomationRun()
- {
- return $this->promote_automation_run;
- }
-
- /**
- * Output only. The ID of the AutomationRun initiated by a promote release
- * rule.
- *
- * Generated from protobuf field string promote_automation_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setPromoteAutomationRun($var)
- {
- GPBUtil::checkString($var, True);
- $this->promote_automation_run = $var;
-
- return $this;
- }
-
- /**
- * Output only. The IDs of the AutomationRuns initiated by an advance rollout
- * rule.
- *
- * Generated from protobuf field repeated string advance_automation_runs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getAdvanceAutomationRuns()
- {
- return $this->advance_automation_runs;
- }
-
- /**
- * Output only. The IDs of the AutomationRuns initiated by an advance rollout
- * rule.
- *
- * Generated from protobuf field repeated string advance_automation_runs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setAdvanceAutomationRuns($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->advance_automation_runs = $arr;
-
- return $this;
- }
-
- /**
- * Output only. The IDs of the AutomationRuns initiated by a repair rollout
- * rule.
- *
- * Generated from protobuf field repeated string repair_automation_runs = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getRepairAutomationRuns()
- {
- return $this->repair_automation_runs;
- }
-
- /**
- * Output only. The IDs of the AutomationRuns initiated by a repair rollout
- * rule.
- *
- * Generated from protobuf field repeated string repair_automation_runs = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setRepairAutomationRuns($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->repair_automation_runs = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRule.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRule.php
deleted file mode 100644
index b3a96930a309..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRule.php
+++ /dev/null
@@ -1,150 +0,0 @@
-google.cloud.deploy.v1.AutomationRule
- */
-class AutomationRule extends \Google\Protobuf\Internal\Message
-{
- protected $rule;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Deploy\V1\PromoteReleaseRule $promote_release_rule
- * Optional. `PromoteReleaseRule` will automatically promote a release from
- * the current target to a specified target.
- * @type \Google\Cloud\Deploy\V1\AdvanceRolloutRule $advance_rollout_rule
- * Optional. The `AdvanceRolloutRule` will automatically advance a
- * successful Rollout.
- * @type \Google\Cloud\Deploy\V1\RepairRolloutRule $repair_rollout_rule
- * Optional. The `RepairRolloutRule` will automatically repair a failed
- * rollout.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. `PromoteReleaseRule` will automatically promote a release from
- * the current target to a specified target.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PromoteReleaseRule promote_release_rule = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Deploy\V1\PromoteReleaseRule|null
- */
- public function getPromoteReleaseRule()
- {
- return $this->readOneof(1);
- }
-
- public function hasPromoteReleaseRule()
- {
- return $this->hasOneof(1);
- }
-
- /**
- * Optional. `PromoteReleaseRule` will automatically promote a release from
- * the current target to a specified target.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PromoteReleaseRule promote_release_rule = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Deploy\V1\PromoteReleaseRule $var
- * @return $this
- */
- public function setPromoteReleaseRule($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PromoteReleaseRule::class);
- $this->writeOneof(1, $var);
-
- return $this;
- }
-
- /**
- * Optional. The `AdvanceRolloutRule` will automatically advance a
- * successful Rollout.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AdvanceRolloutRule advance_rollout_rule = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Deploy\V1\AdvanceRolloutRule|null
- */
- public function getAdvanceRolloutRule()
- {
- return $this->readOneof(2);
- }
-
- public function hasAdvanceRolloutRule()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * Optional. The `AdvanceRolloutRule` will automatically advance a
- * successful Rollout.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AdvanceRolloutRule advance_rollout_rule = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Deploy\V1\AdvanceRolloutRule $var
- * @return $this
- */
- public function setAdvanceRolloutRule($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AdvanceRolloutRule::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * Optional. The `RepairRolloutRule` will automatically repair a failed
- * rollout.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RepairRolloutRule repair_rollout_rule = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Deploy\V1\RepairRolloutRule|null
- */
- public function getRepairRolloutRule()
- {
- return $this->readOneof(3);
- }
-
- public function hasRepairRolloutRule()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * Optional. The `RepairRolloutRule` will automatically repair a failed
- * rollout.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RepairRolloutRule repair_rollout_rule = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Deploy\V1\RepairRolloutRule $var
- * @return $this
- */
- public function setRepairRolloutRule($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RepairRolloutRule::class);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getRule()
- {
- return $this->whichOneof("rule");
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRuleCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRuleCondition.php
deleted file mode 100644
index 2dac2539cdf3..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRuleCondition.php
+++ /dev/null
@@ -1,78 +0,0 @@
-google.cloud.deploy.v1.AutomationRuleCondition
- */
-class AutomationRuleCondition extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. Details around targets enumerated in the rule.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $targets_present_condition = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Deploy\V1\TargetsPresentCondition $targets_present_condition
- * Optional. Details around targets enumerated in the rule.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. Details around targets enumerated in the rule.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Deploy\V1\TargetsPresentCondition|null
- */
- public function getTargetsPresentCondition()
- {
- return $this->targets_present_condition;
- }
-
- public function hasTargetsPresentCondition()
- {
- return isset($this->targets_present_condition);
- }
-
- public function clearTargetsPresentCondition()
- {
- unset($this->targets_present_condition);
- }
-
- /**
- * Optional. Details around targets enumerated in the rule.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Deploy\V1\TargetsPresentCondition $var
- * @return $this
- */
- public function setTargetsPresentCondition($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\TargetsPresentCondition::class);
- $this->targets_present_condition = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRun.php
deleted file mode 100644
index 3db70ad3d274..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRun.php
+++ /dev/null
@@ -1,679 +0,0 @@
-google.cloud.deploy.v1.AutomationRun
- */
-class AutomationRun extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. Name of the `AutomationRun`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $name = '';
- /**
- * Output only. Time at which the `AutomationRun` was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Output only. Time at which the automationRun was updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $update_time = null;
- /**
- * Output only. The weak etag of the `AutomationRun` resource.
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $etag = '';
- /**
- * Output only. Email address of the user-managed IAM service account that
- * performs the operations against Cloud Deploy resources.
- *
- * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $service_account = '';
- /**
- * Output only. Snapshot of the Automation taken at AutomationRun creation
- * time.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Automation automation_snapshot = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $automation_snapshot = null;
- /**
- * Output only. The ID of the target that represents the promotion stage that
- * initiates the `AutomationRun`. The value of this field is the last segment
- * of a target name.
- *
- * Generated from protobuf field string target_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $target_id = '';
- /**
- * Output only. Current state of the `AutomationRun`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AutomationRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state = 0;
- /**
- * Output only. Explains the current state of the `AutomationRun`. Present
- * only when an explanation is needed.
- *
- * Generated from protobuf field string state_description = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state_description = '';
- /**
- * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires
- * after 14 days from its creation date.
- *
- * Generated from protobuf field .google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $expire_time = null;
- /**
- * Output only. The ID of the automation rule that initiated the operation.
- *
- * Generated from protobuf field string rule_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $rule_id = '';
- /**
- * Output only. The ID of the automation that initiated the operation.
- *
- * Generated from protobuf field string automation_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $automation_id = '';
- /**
- * Output only. Earliest time the `AutomationRun` will attempt to resume.
- * Wait-time is configured by `wait` in automation rule.
- *
- * Generated from protobuf field .google.protobuf.Timestamp wait_until_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $wait_until_time = null;
- protected $operation;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Output only. Name of the `AutomationRun`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`.
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. Time at which the `AutomationRun` was created.
- * @type \Google\Protobuf\Timestamp $update_time
- * Output only. Time at which the automationRun was updated.
- * @type string $etag
- * Output only. The weak etag of the `AutomationRun` resource.
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- * @type string $service_account
- * Output only. Email address of the user-managed IAM service account that
- * performs the operations against Cloud Deploy resources.
- * @type \Google\Cloud\Deploy\V1\Automation $automation_snapshot
- * Output only. Snapshot of the Automation taken at AutomationRun creation
- * time.
- * @type string $target_id
- * Output only. The ID of the target that represents the promotion stage that
- * initiates the `AutomationRun`. The value of this field is the last segment
- * of a target name.
- * @type int $state
- * Output only. Current state of the `AutomationRun`.
- * @type string $state_description
- * Output only. Explains the current state of the `AutomationRun`. Present
- * only when an explanation is needed.
- * @type \Google\Protobuf\Timestamp $expire_time
- * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires
- * after 14 days from its creation date.
- * @type string $rule_id
- * Output only. The ID of the automation rule that initiated the operation.
- * @type string $automation_id
- * Output only. The ID of the automation that initiated the operation.
- * @type \Google\Cloud\Deploy\V1\PromoteReleaseOperation $promote_release_operation
- * Output only. Promotes a release to a specified 'Target'.
- * @type \Google\Cloud\Deploy\V1\AdvanceRolloutOperation $advance_rollout_operation
- * Output only. Advances a rollout to the next phase.
- * @type \Google\Cloud\Deploy\V1\RepairRolloutOperation $repair_rollout_operation
- * Output only. Repairs a failed 'Rollout'.
- * @type \Google\Protobuf\Timestamp $wait_until_time
- * Output only. Earliest time the `AutomationRun` will attempt to resume.
- * Wait-time is configured by `wait` in automation rule.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. Name of the `AutomationRun`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Output only. Name of the `AutomationRun`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Output only. Time at which the `AutomationRun` was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. Time at which the `AutomationRun` was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. Time at which the automationRun was updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->update_time;
- }
-
- public function hasUpdateTime()
- {
- return isset($this->update_time);
- }
-
- public function clearUpdateTime()
- {
- unset($this->update_time);
- }
-
- /**
- * Output only. Time at which the automationRun was updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->update_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The weak etag of the `AutomationRun` resource.
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * Output only. The weak etag of the `AutomationRun` resource.
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
- /**
- * Output only. Email address of the user-managed IAM service account that
- * performs the operations against Cloud Deploy resources.
- *
- * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getServiceAccount()
- {
- return $this->service_account;
- }
-
- /**
- * Output only. Email address of the user-managed IAM service account that
- * performs the operations against Cloud Deploy resources.
- *
- * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setServiceAccount($var)
- {
- GPBUtil::checkString($var, True);
- $this->service_account = $var;
-
- return $this;
- }
-
- /**
- * Output only. Snapshot of the Automation taken at AutomationRun creation
- * time.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Automation automation_snapshot = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\Automation|null
- */
- public function getAutomationSnapshot()
- {
- return $this->automation_snapshot;
- }
-
- public function hasAutomationSnapshot()
- {
- return isset($this->automation_snapshot);
- }
-
- public function clearAutomationSnapshot()
- {
- unset($this->automation_snapshot);
- }
-
- /**
- * Output only. Snapshot of the Automation taken at AutomationRun creation
- * time.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Automation automation_snapshot = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\Automation $var
- * @return $this
- */
- public function setAutomationSnapshot($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Automation::class);
- $this->automation_snapshot = $var;
-
- return $this;
- }
-
- /**
- * Output only. The ID of the target that represents the promotion stage that
- * initiates the `AutomationRun`. The value of this field is the last segment
- * of a target name.
- *
- * Generated from protobuf field string target_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getTargetId()
- {
- return $this->target_id;
- }
-
- /**
- * Output only. The ID of the target that represents the promotion stage that
- * initiates the `AutomationRun`. The value of this field is the last segment
- * of a target name.
- *
- * Generated from protobuf field string target_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setTargetId($var)
- {
- GPBUtil::checkString($var, True);
- $this->target_id = $var;
-
- return $this;
- }
-
- /**
- * Output only. Current state of the `AutomationRun`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AutomationRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Output only. Current state of the `AutomationRun`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AutomationRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\AutomationRun\State::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Output only. Explains the current state of the `AutomationRun`. Present
- * only when an explanation is needed.
- *
- * Generated from protobuf field string state_description = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getStateDescription()
- {
- return $this->state_description;
- }
-
- /**
- * Output only. Explains the current state of the `AutomationRun`. Present
- * only when an explanation is needed.
- *
- * Generated from protobuf field string state_description = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setStateDescription($var)
- {
- GPBUtil::checkString($var, True);
- $this->state_description = $var;
-
- return $this;
- }
-
- /**
- * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires
- * after 14 days from its creation date.
- *
- * Generated from protobuf field .google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getExpireTime()
- {
- return $this->expire_time;
- }
-
- public function hasExpireTime()
- {
- return isset($this->expire_time);
- }
-
- public function clearExpireTime()
- {
- unset($this->expire_time);
- }
-
- /**
- * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires
- * after 14 days from its creation date.
- *
- * Generated from protobuf field .google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setExpireTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->expire_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The ID of the automation rule that initiated the operation.
- *
- * Generated from protobuf field string rule_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getRuleId()
- {
- return $this->rule_id;
- }
-
- /**
- * Output only. The ID of the automation rule that initiated the operation.
- *
- * Generated from protobuf field string rule_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setRuleId($var)
- {
- GPBUtil::checkString($var, True);
- $this->rule_id = $var;
-
- return $this;
- }
-
- /**
- * Output only. The ID of the automation that initiated the operation.
- *
- * Generated from protobuf field string automation_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getAutomationId()
- {
- return $this->automation_id;
- }
-
- /**
- * Output only. The ID of the automation that initiated the operation.
- *
- * Generated from protobuf field string automation_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setAutomationId($var)
- {
- GPBUtil::checkString($var, True);
- $this->automation_id = $var;
-
- return $this;
- }
-
- /**
- * Output only. Promotes a release to a specified 'Target'.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PromoteReleaseOperation promote_release_operation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\PromoteReleaseOperation|null
- */
- public function getPromoteReleaseOperation()
- {
- return $this->readOneof(13);
- }
-
- public function hasPromoteReleaseOperation()
- {
- return $this->hasOneof(13);
- }
-
- /**
- * Output only. Promotes a release to a specified 'Target'.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PromoteReleaseOperation promote_release_operation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\PromoteReleaseOperation $var
- * @return $this
- */
- public function setPromoteReleaseOperation($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PromoteReleaseOperation::class);
- $this->writeOneof(13, $var);
-
- return $this;
- }
-
- /**
- * Output only. Advances a rollout to the next phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AdvanceRolloutOperation advance_rollout_operation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\AdvanceRolloutOperation|null
- */
- public function getAdvanceRolloutOperation()
- {
- return $this->readOneof(14);
- }
-
- public function hasAdvanceRolloutOperation()
- {
- return $this->hasOneof(14);
- }
-
- /**
- * Output only. Advances a rollout to the next phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AdvanceRolloutOperation advance_rollout_operation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\AdvanceRolloutOperation $var
- * @return $this
- */
- public function setAdvanceRolloutOperation($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AdvanceRolloutOperation::class);
- $this->writeOneof(14, $var);
-
- return $this;
- }
-
- /**
- * Output only. Repairs a failed 'Rollout'.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RepairRolloutOperation repair_rollout_operation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\RepairRolloutOperation|null
- */
- public function getRepairRolloutOperation()
- {
- return $this->readOneof(17);
- }
-
- public function hasRepairRolloutOperation()
- {
- return $this->hasOneof(17);
- }
-
- /**
- * Output only. Repairs a failed 'Rollout'.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RepairRolloutOperation repair_rollout_operation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\RepairRolloutOperation $var
- * @return $this
- */
- public function setRepairRolloutOperation($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RepairRolloutOperation::class);
- $this->writeOneof(17, $var);
-
- return $this;
- }
-
- /**
- * Output only. Earliest time the `AutomationRun` will attempt to resume.
- * Wait-time is configured by `wait` in automation rule.
- *
- * Generated from protobuf field .google.protobuf.Timestamp wait_until_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getWaitUntilTime()
- {
- return $this->wait_until_time;
- }
-
- public function hasWaitUntilTime()
- {
- return isset($this->wait_until_time);
- }
-
- public function clearWaitUntilTime()
- {
- unset($this->wait_until_time);
- }
-
- /**
- * Output only. Earliest time the `AutomationRun` will attempt to resume.
- * Wait-time is configured by `wait` in automation rule.
- *
- * Generated from protobuf field .google.protobuf.Timestamp wait_until_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setWaitUntilTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->wait_until_time = $var;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getOperation()
- {
- return $this->whichOneof("operation");
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRun/State.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRun/State.php
deleted file mode 100644
index 9ccb23bb5e37..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRun/State.php
+++ /dev/null
@@ -1,85 +0,0 @@
-google.cloud.deploy.v1.AutomationRun.State
- */
-class State
-{
- /**
- * The `AutomationRun` has an unspecified state.
- *
- * Generated from protobuf enum STATE_UNSPECIFIED = 0;
- */
- const STATE_UNSPECIFIED = 0;
- /**
- * The `AutomationRun` has succeeded.
- *
- * Generated from protobuf enum SUCCEEDED = 1;
- */
- const SUCCEEDED = 1;
- /**
- * The `AutomationRun` was cancelled.
- *
- * Generated from protobuf enum CANCELLED = 2;
- */
- const CANCELLED = 2;
- /**
- * The `AutomationRun` has failed.
- *
- * Generated from protobuf enum FAILED = 3;
- */
- const FAILED = 3;
- /**
- * The `AutomationRun` is in progress.
- *
- * Generated from protobuf enum IN_PROGRESS = 4;
- */
- const IN_PROGRESS = 4;
- /**
- * The `AutomationRun` is pending.
- *
- * Generated from protobuf enum PENDING = 5;
- */
- const PENDING = 5;
-
- private static $valueToName = [
- self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
- self::SUCCEEDED => 'SUCCEEDED',
- self::CANCELLED => 'CANCELLED',
- self::FAILED => 'FAILED',
- self::IN_PROGRESS => 'IN_PROGRESS',
- self::PENDING => 'PENDING',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(State::class, \Google\Cloud\Deploy\V1\AutomationRun_State::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRunEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRunEvent.php
deleted file mode 100644
index 409f23c5f943..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRunEvent.php
+++ /dev/null
@@ -1,276 +0,0 @@
-google.cloud.deploy.v1.AutomationRunEvent
- */
-class AutomationRunEvent extends \Google\Protobuf\Internal\Message
-{
- /**
- * Debug message for when there is an update on the AutomationRun.
- * Provides further details about the resource creation or state change.
- *
- * Generated from protobuf field string message = 1;
- */
- protected $message = '';
- /**
- * The name of the `AutomationRun`.
- *
- * Generated from protobuf field string automation_run = 2;
- */
- protected $automation_run = '';
- /**
- * Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string pipeline_uid = 3;
- */
- protected $pipeline_uid = '';
- /**
- * Identifier of the `Automation`.
- *
- * Generated from protobuf field string automation_id = 4;
- */
- protected $automation_id = '';
- /**
- * Identifier of the `Automation` rule.
- *
- * Generated from protobuf field string rule_id = 5;
- */
- protected $rule_id = '';
- /**
- * ID of the `Target` to which the `AutomationRun` is created.
- *
- * Generated from protobuf field string destination_target_id = 6;
- */
- protected $destination_target_id = '';
- /**
- * Type of this notification, e.g. for a Pub/Sub failure.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7;
- */
- protected $type = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $message
- * Debug message for when there is an update on the AutomationRun.
- * Provides further details about the resource creation or state change.
- * @type string $automation_run
- * The name of the `AutomationRun`.
- * @type string $pipeline_uid
- * Unique identifier of the `DeliveryPipeline`.
- * @type string $automation_id
- * Identifier of the `Automation`.
- * @type string $rule_id
- * Identifier of the `Automation` rule.
- * @type string $destination_target_id
- * ID of the `Target` to which the `AutomationRun` is created.
- * @type int $type
- * Type of this notification, e.g. for a Pub/Sub failure.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\AutomationrunPayload::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Debug message for when there is an update on the AutomationRun.
- * Provides further details about the resource creation or state change.
- *
- * Generated from protobuf field string message = 1;
- * @return string
- */
- public function getMessage()
- {
- return $this->message;
- }
-
- /**
- * Debug message for when there is an update on the AutomationRun.
- * Provides further details about the resource creation or state change.
- *
- * Generated from protobuf field string message = 1;
- * @param string $var
- * @return $this
- */
- public function setMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->message = $var;
-
- return $this;
- }
-
- /**
- * The name of the `AutomationRun`.
- *
- * Generated from protobuf field string automation_run = 2;
- * @return string
- */
- public function getAutomationRun()
- {
- return $this->automation_run;
- }
-
- /**
- * The name of the `AutomationRun`.
- *
- * Generated from protobuf field string automation_run = 2;
- * @param string $var
- * @return $this
- */
- public function setAutomationRun($var)
- {
- GPBUtil::checkString($var, True);
- $this->automation_run = $var;
-
- return $this;
- }
-
- /**
- * Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string pipeline_uid = 3;
- * @return string
- */
- public function getPipelineUid()
- {
- return $this->pipeline_uid;
- }
-
- /**
- * Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string pipeline_uid = 3;
- * @param string $var
- * @return $this
- */
- public function setPipelineUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->pipeline_uid = $var;
-
- return $this;
- }
-
- /**
- * Identifier of the `Automation`.
- *
- * Generated from protobuf field string automation_id = 4;
- * @return string
- */
- public function getAutomationId()
- {
- return $this->automation_id;
- }
-
- /**
- * Identifier of the `Automation`.
- *
- * Generated from protobuf field string automation_id = 4;
- * @param string $var
- * @return $this
- */
- public function setAutomationId($var)
- {
- GPBUtil::checkString($var, True);
- $this->automation_id = $var;
-
- return $this;
- }
-
- /**
- * Identifier of the `Automation` rule.
- *
- * Generated from protobuf field string rule_id = 5;
- * @return string
- */
- public function getRuleId()
- {
- return $this->rule_id;
- }
-
- /**
- * Identifier of the `Automation` rule.
- *
- * Generated from protobuf field string rule_id = 5;
- * @param string $var
- * @return $this
- */
- public function setRuleId($var)
- {
- GPBUtil::checkString($var, True);
- $this->rule_id = $var;
-
- return $this;
- }
-
- /**
- * ID of the `Target` to which the `AutomationRun` is created.
- *
- * Generated from protobuf field string destination_target_id = 6;
- * @return string
- */
- public function getDestinationTargetId()
- {
- return $this->destination_target_id;
- }
-
- /**
- * ID of the `Target` to which the `AutomationRun` is created.
- *
- * Generated from protobuf field string destination_target_id = 6;
- * @param string $var
- * @return $this
- */
- public function setDestinationTargetId($var)
- {
- GPBUtil::checkString($var, True);
- $this->destination_target_id = $var;
-
- return $this;
- }
-
- /**
- * Type of this notification, e.g. for a Pub/Sub failure.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7;
- * @return int
- */
- public function getType()
- {
- return $this->type;
- }
-
- /**
- * Type of this notification, e.g. for a Pub/Sub failure.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7;
- * @param int $var
- * @return $this
- */
- public function setType($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class);
- $this->type = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/BackoffMode.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/BackoffMode.php
deleted file mode 100644
index ae0edaeec84e..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/BackoffMode.php
+++ /dev/null
@@ -1,61 +0,0 @@
-google.cloud.deploy.v1.BackoffMode
- */
-class BackoffMode
-{
- /**
- * No WaitMode is specified.
- *
- * Generated from protobuf enum BACKOFF_MODE_UNSPECIFIED = 0;
- */
- const BACKOFF_MODE_UNSPECIFIED = 0;
- /**
- * Increases the wait time linearly.
- *
- * Generated from protobuf enum BACKOFF_MODE_LINEAR = 1;
- */
- const BACKOFF_MODE_LINEAR = 1;
- /**
- * Increases the wait time exponentially.
- *
- * Generated from protobuf enum BACKOFF_MODE_EXPONENTIAL = 2;
- */
- const BACKOFF_MODE_EXPONENTIAL = 2;
-
- private static $valueToName = [
- self::BACKOFF_MODE_UNSPECIFIED => 'BACKOFF_MODE_UNSPECIFIED',
- self::BACKOFF_MODE_LINEAR => 'BACKOFF_MODE_LINEAR',
- self::BACKOFF_MODE_EXPONENTIAL => 'BACKOFF_MODE_EXPONENTIAL',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/BuildArtifact.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/BuildArtifact.php
deleted file mode 100644
index 23cd5da0a754..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/BuildArtifact.php
+++ /dev/null
@@ -1,109 +0,0 @@
-google.cloud.deploy.v1.BuildArtifact
- */
-class BuildArtifact extends \Google\Protobuf\Internal\Message
-{
- /**
- * Image name in Skaffold configuration.
- *
- * Generated from protobuf field string image = 3;
- */
- protected $image = '';
- /**
- * Image tag to use. This will generally be the full path to an image, such
- * as "gcr.io/my-project/busybox:1.2.3" or
- * "gcr.io/my-project/busybox@sha256:abc123".
- *
- * Generated from protobuf field string tag = 2;
- */
- protected $tag = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $image
- * Image name in Skaffold configuration.
- * @type string $tag
- * Image tag to use. This will generally be the full path to an image, such
- * as "gcr.io/my-project/busybox:1.2.3" or
- * "gcr.io/my-project/busybox@sha256:abc123".
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Image name in Skaffold configuration.
- *
- * Generated from protobuf field string image = 3;
- * @return string
- */
- public function getImage()
- {
- return $this->image;
- }
-
- /**
- * Image name in Skaffold configuration.
- *
- * Generated from protobuf field string image = 3;
- * @param string $var
- * @return $this
- */
- public function setImage($var)
- {
- GPBUtil::checkString($var, True);
- $this->image = $var;
-
- return $this;
- }
-
- /**
- * Image tag to use. This will generally be the full path to an image, such
- * as "gcr.io/my-project/busybox:1.2.3" or
- * "gcr.io/my-project/busybox@sha256:abc123".
- *
- * Generated from protobuf field string tag = 2;
- * @return string
- */
- public function getTag()
- {
- return $this->tag;
- }
-
- /**
- * Image tag to use. This will generally be the full path to an image, such
- * as "gcr.io/my-project/busybox:1.2.3" or
- * "gcr.io/my-project/busybox@sha256:abc123".
- *
- * Generated from protobuf field string tag = 2;
- * @param string $var
- * @return $this
- */
- public function setTag($var)
- {
- GPBUtil::checkString($var, True);
- $this->tag = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Canary.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Canary.php
deleted file mode 100644
index 929faf223233..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Canary.php
+++ /dev/null
@@ -1,166 +0,0 @@
-google.cloud.deploy.v1.Canary
- */
-class Canary extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. Runtime specific configurations for the deployment strategy. The
- * runtime configuration is used to determine how Cloud Deploy will split
- * traffic to enable a progressive deployment.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RuntimeConfig runtime_config = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $runtime_config = null;
- protected $mode;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Deploy\V1\RuntimeConfig $runtime_config
- * Optional. Runtime specific configurations for the deployment strategy. The
- * runtime configuration is used to determine how Cloud Deploy will split
- * traffic to enable a progressive deployment.
- * @type \Google\Cloud\Deploy\V1\CanaryDeployment $canary_deployment
- * Configures the progressive based deployment for a Target.
- * @type \Google\Cloud\Deploy\V1\CustomCanaryDeployment $custom_canary_deployment
- * Configures the progressive based deployment for a Target, but allows
- * customizing at the phase level where a phase represents each of the
- * percentage deployments.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. Runtime specific configurations for the deployment strategy. The
- * runtime configuration is used to determine how Cloud Deploy will split
- * traffic to enable a progressive deployment.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RuntimeConfig runtime_config = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Deploy\V1\RuntimeConfig|null
- */
- public function getRuntimeConfig()
- {
- return $this->runtime_config;
- }
-
- public function hasRuntimeConfig()
- {
- return isset($this->runtime_config);
- }
-
- public function clearRuntimeConfig()
- {
- unset($this->runtime_config);
- }
-
- /**
- * Optional. Runtime specific configurations for the deployment strategy. The
- * runtime configuration is used to determine how Cloud Deploy will split
- * traffic to enable a progressive deployment.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RuntimeConfig runtime_config = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Deploy\V1\RuntimeConfig $var
- * @return $this
- */
- public function setRuntimeConfig($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RuntimeConfig::class);
- $this->runtime_config = $var;
-
- return $this;
- }
-
- /**
- * Configures the progressive based deployment for a Target.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CanaryDeployment canary_deployment = 2;
- * @return \Google\Cloud\Deploy\V1\CanaryDeployment|null
- */
- public function getCanaryDeployment()
- {
- return $this->readOneof(2);
- }
-
- public function hasCanaryDeployment()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * Configures the progressive based deployment for a Target.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CanaryDeployment canary_deployment = 2;
- * @param \Google\Cloud\Deploy\V1\CanaryDeployment $var
- * @return $this
- */
- public function setCanaryDeployment($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CanaryDeployment::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * Configures the progressive based deployment for a Target, but allows
- * customizing at the phase level where a phase represents each of the
- * percentage deployments.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomCanaryDeployment custom_canary_deployment = 3;
- * @return \Google\Cloud\Deploy\V1\CustomCanaryDeployment|null
- */
- public function getCustomCanaryDeployment()
- {
- return $this->readOneof(3);
- }
-
- public function hasCustomCanaryDeployment()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * Configures the progressive based deployment for a Target, but allows
- * customizing at the phase level where a phase represents each of the
- * percentage deployments.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomCanaryDeployment custom_canary_deployment = 3;
- * @param \Google\Cloud\Deploy\V1\CustomCanaryDeployment $var
- * @return $this
- */
- public function setCustomCanaryDeployment($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomCanaryDeployment::class);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getMode()
- {
- return $this->whichOneof("mode");
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CanaryDeployment.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CanaryDeployment.php
deleted file mode 100644
index 7d2b36b630b6..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CanaryDeployment.php
+++ /dev/null
@@ -1,205 +0,0 @@
-google.cloud.deploy.v1.CanaryDeployment
- */
-class CanaryDeployment extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The percentage based deployments that will occur as a part of a
- * `Rollout`. List is expected in ascending order and each integer n is
- * 0 <= n < 100.
- *
- * Generated from protobuf field repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- private $percentages;
- /**
- * Whether to run verify tests after each percentage deployment.
- *
- * Generated from protobuf field bool verify = 2;
- */
- protected $verify = false;
- /**
- * Optional. Configuration for the predeploy job of the first phase. If this
- * is not configured, there will be no predeploy job for this phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $predeploy = null;
- /**
- * Optional. Configuration for the postdeploy job of the last phase. If this
- * is not configured, there will be no postdeploy job for this phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $postdeploy = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\RepeatedField $percentages
- * Required. The percentage based deployments that will occur as a part of a
- * `Rollout`. List is expected in ascending order and each integer n is
- * 0 <= n < 100.
- * @type bool $verify
- * Whether to run verify tests after each percentage deployment.
- * @type \Google\Cloud\Deploy\V1\Predeploy $predeploy
- * Optional. Configuration for the predeploy job of the first phase. If this
- * is not configured, there will be no predeploy job for this phase.
- * @type \Google\Cloud\Deploy\V1\Postdeploy $postdeploy
- * Optional. Configuration for the postdeploy job of the last phase. If this
- * is not configured, there will be no postdeploy job for this phase.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The percentage based deployments that will occur as a part of a
- * `Rollout`. List is expected in ascending order and each integer n is
- * 0 <= n < 100.
- *
- * Generated from protobuf field repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getPercentages()
- {
- return $this->percentages;
- }
-
- /**
- * Required. The percentage based deployments that will occur as a part of a
- * `Rollout`. List is expected in ascending order and each integer n is
- * 0 <= n < 100.
- *
- * Generated from protobuf field repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setPercentages($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
- $this->percentages = $arr;
-
- return $this;
- }
-
- /**
- * Whether to run verify tests after each percentage deployment.
- *
- * Generated from protobuf field bool verify = 2;
- * @return bool
- */
- public function getVerify()
- {
- return $this->verify;
- }
-
- /**
- * Whether to run verify tests after each percentage deployment.
- *
- * Generated from protobuf field bool verify = 2;
- * @param bool $var
- * @return $this
- */
- public function setVerify($var)
- {
- GPBUtil::checkBool($var);
- $this->verify = $var;
-
- return $this;
- }
-
- /**
- * Optional. Configuration for the predeploy job of the first phase. If this
- * is not configured, there will be no predeploy job for this phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Deploy\V1\Predeploy|null
- */
- public function getPredeploy()
- {
- return $this->predeploy;
- }
-
- public function hasPredeploy()
- {
- return isset($this->predeploy);
- }
-
- public function clearPredeploy()
- {
- unset($this->predeploy);
- }
-
- /**
- * Optional. Configuration for the predeploy job of the first phase. If this
- * is not configured, there will be no predeploy job for this phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Deploy\V1\Predeploy $var
- * @return $this
- */
- public function setPredeploy($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Predeploy::class);
- $this->predeploy = $var;
-
- return $this;
- }
-
- /**
- * Optional. Configuration for the postdeploy job of the last phase. If this
- * is not configured, there will be no postdeploy job for this phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Deploy\V1\Postdeploy|null
- */
- public function getPostdeploy()
- {
- return $this->postdeploy;
- }
-
- public function hasPostdeploy()
- {
- return isset($this->postdeploy);
- }
-
- public function clearPostdeploy()
- {
- unset($this->postdeploy);
- }
-
- /**
- * Optional. Configuration for the postdeploy job of the last phase. If this
- * is not configured, there will be no postdeploy job for this phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Deploy\V1\Postdeploy $var
- * @return $this
- */
- public function setPostdeploy($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Postdeploy::class);
- $this->postdeploy = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelAutomationRunRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelAutomationRunRequest.php
deleted file mode 100644
index 9b97433df290..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelAutomationRunRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.deploy.v1.CancelAutomationRunRequest
- */
-class CancelAutomationRunRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the `AutomationRun`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. Name of the `AutomationRun`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. Please see
- * {@see CloudDeployClient::automationRunName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\CancelAutomationRunRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Name of the `AutomationRun`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the `AutomationRun`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Name of the `AutomationRun`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelAutomationRunResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelAutomationRunResponse.php
deleted file mode 100644
index c68cf6577c3f..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelAutomationRunResponse.php
+++ /dev/null
@@ -1,33 +0,0 @@
-google.cloud.deploy.v1.CancelAutomationRunResponse
- */
-class CancelAutomationRunResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelRolloutRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelRolloutRequest.php
deleted file mode 100644
index 3ae1d6f52a6f..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelRolloutRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.deploy.v1.CancelRolloutRequest
- */
-class CancelRolloutRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. Please see
- * {@see CloudDeployClient::rolloutName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\CancelRolloutRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelRolloutResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelRolloutResponse.php
deleted file mode 100644
index c7b2af7c39ac..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelRolloutResponse.php
+++ /dev/null
@@ -1,33 +0,0 @@
-google.cloud.deploy.v1.CancelRolloutResponse
- */
-class CancelRolloutResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ChildRolloutJobs.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ChildRolloutJobs.php
deleted file mode 100644
index a5fb687936dd..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ChildRolloutJobs.php
+++ /dev/null
@@ -1,101 +0,0 @@
-google.cloud.deploy.v1.ChildRolloutJobs
- */
-class ChildRolloutJobs extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. List of CreateChildRolloutJobs
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Job create_rollout_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $create_rollout_jobs;
- /**
- * Output only. List of AdvanceChildRolloutJobs
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Job advance_rollout_jobs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $advance_rollout_jobs;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Deploy\V1\Job>|\Google\Protobuf\Internal\RepeatedField $create_rollout_jobs
- * Output only. List of CreateChildRolloutJobs
- * @type array<\Google\Cloud\Deploy\V1\Job>|\Google\Protobuf\Internal\RepeatedField $advance_rollout_jobs
- * Output only. List of AdvanceChildRolloutJobs
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. List of CreateChildRolloutJobs
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Job create_rollout_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getCreateRolloutJobs()
- {
- return $this->create_rollout_jobs;
- }
-
- /**
- * Output only. List of CreateChildRolloutJobs
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Job create_rollout_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array<\Google\Cloud\Deploy\V1\Job>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setCreateRolloutJobs($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Job::class);
- $this->create_rollout_jobs = $arr;
-
- return $this;
- }
-
- /**
- * Output only. List of AdvanceChildRolloutJobs
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Job advance_rollout_jobs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getAdvanceRolloutJobs()
- {
- return $this->advance_rollout_jobs;
- }
-
- /**
- * Output only. List of AdvanceChildRolloutJobs
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Job advance_rollout_jobs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array<\Google\Cloud\Deploy\V1\Job>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setAdvanceRolloutJobs($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Job::class);
- $this->advance_rollout_jobs = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunConfig.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunConfig.php
deleted file mode 100644
index 030fbfbdf261..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunConfig.php
+++ /dev/null
@@ -1,193 +0,0 @@
-google.cloud.deploy.v1.CloudRunConfig
- */
-class CloudRunConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * Whether Cloud Deploy should update the traffic stanza in a Cloud Run
- * Service on the user's behalf to facilitate traffic splitting. This is
- * required to be true for CanaryDeployments, but optional for
- * CustomCanaryDeployments.
- *
- * Generated from protobuf field bool automatic_traffic_control = 1;
- */
- protected $automatic_traffic_control = false;
- /**
- * Optional. A list of tags that are added to the canary revision while the
- * canary phase is in progress.
- *
- * Generated from protobuf field repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $canary_revision_tags;
- /**
- * Optional. A list of tags that are added to the prior revision while the
- * canary phase is in progress.
- *
- * Generated from protobuf field repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $prior_revision_tags;
- /**
- * Optional. A list of tags that are added to the final stable revision when
- * the stable phase is applied.
- *
- * Generated from protobuf field repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $stable_revision_tags;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type bool $automatic_traffic_control
- * Whether Cloud Deploy should update the traffic stanza in a Cloud Run
- * Service on the user's behalf to facilitate traffic splitting. This is
- * required to be true for CanaryDeployments, but optional for
- * CustomCanaryDeployments.
- * @type array|\Google\Protobuf\Internal\RepeatedField $canary_revision_tags
- * Optional. A list of tags that are added to the canary revision while the
- * canary phase is in progress.
- * @type array|\Google\Protobuf\Internal\RepeatedField $prior_revision_tags
- * Optional. A list of tags that are added to the prior revision while the
- * canary phase is in progress.
- * @type array|\Google\Protobuf\Internal\RepeatedField $stable_revision_tags
- * Optional. A list of tags that are added to the final stable revision when
- * the stable phase is applied.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Whether Cloud Deploy should update the traffic stanza in a Cloud Run
- * Service on the user's behalf to facilitate traffic splitting. This is
- * required to be true for CanaryDeployments, but optional for
- * CustomCanaryDeployments.
- *
- * Generated from protobuf field bool automatic_traffic_control = 1;
- * @return bool
- */
- public function getAutomaticTrafficControl()
- {
- return $this->automatic_traffic_control;
- }
-
- /**
- * Whether Cloud Deploy should update the traffic stanza in a Cloud Run
- * Service on the user's behalf to facilitate traffic splitting. This is
- * required to be true for CanaryDeployments, but optional for
- * CustomCanaryDeployments.
- *
- * Generated from protobuf field bool automatic_traffic_control = 1;
- * @param bool $var
- * @return $this
- */
- public function setAutomaticTrafficControl($var)
- {
- GPBUtil::checkBool($var);
- $this->automatic_traffic_control = $var;
-
- return $this;
- }
-
- /**
- * Optional. A list of tags that are added to the canary revision while the
- * canary phase is in progress.
- *
- * Generated from protobuf field repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getCanaryRevisionTags()
- {
- return $this->canary_revision_tags;
- }
-
- /**
- * Optional. A list of tags that are added to the canary revision while the
- * canary phase is in progress.
- *
- * Generated from protobuf field repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setCanaryRevisionTags($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->canary_revision_tags = $arr;
-
- return $this;
- }
-
- /**
- * Optional. A list of tags that are added to the prior revision while the
- * canary phase is in progress.
- *
- * Generated from protobuf field repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getPriorRevisionTags()
- {
- return $this->prior_revision_tags;
- }
-
- /**
- * Optional. A list of tags that are added to the prior revision while the
- * canary phase is in progress.
- *
- * Generated from protobuf field repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setPriorRevisionTags($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->prior_revision_tags = $arr;
-
- return $this;
- }
-
- /**
- * Optional. A list of tags that are added to the final stable revision when
- * the stable phase is applied.
- *
- * Generated from protobuf field repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getStableRevisionTags()
- {
- return $this->stable_revision_tags;
- }
-
- /**
- * Optional. A list of tags that are added to the final stable revision when
- * the stable phase is applied.
- *
- * Generated from protobuf field repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setStableRevisionTags($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->stable_revision_tags = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunLocation.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunLocation.php
deleted file mode 100644
index ff0ebad3a710..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunLocation.php
+++ /dev/null
@@ -1,71 +0,0 @@
-google.cloud.deploy.v1.CloudRunLocation
- */
-class CloudRunLocation extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The location for the Cloud Run Service. Format must be
- * `projects/{project}/locations/{location}`.
- *
- * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $location = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $location
- * Required. The location for the Cloud Run Service. Format must be
- * `projects/{project}/locations/{location}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The location for the Cloud Run Service. Format must be
- * `projects/{project}/locations/{location}`.
- *
- * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getLocation()
- {
- return $this->location;
- }
-
- /**
- * Required. The location for the Cloud Run Service. Format must be
- * `projects/{project}/locations/{location}`.
- *
- * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setLocation($var)
- {
- GPBUtil::checkString($var, True);
- $this->location = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunMetadata.php
deleted file mode 100644
index ce57bad75b8c..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunMetadata.php
+++ /dev/null
@@ -1,189 +0,0 @@
-google.cloud.deploy.v1.CloudRunMetadata
- */
-class CloudRunMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The name of the Cloud Run Service that is associated with a
- * `Rollout`. Format is
- * `projects/{project}/locations/{location}/services/{service}`.
- *
- * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- */
- protected $service = '';
- /**
- * Output only. The Cloud Run Service urls that are associated with a
- * `Rollout`.
- *
- * Generated from protobuf field repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $service_urls;
- /**
- * Output only. The Cloud Run Revision id associated with a `Rollout`.
- *
- * Generated from protobuf field string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $revision = '';
- /**
- * Output only. The name of the Cloud Run job that is associated with a
- * `Rollout`. Format is
- * `projects/{project}/locations/{location}/jobs/{job_name}`.
- *
- * Generated from protobuf field string job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- */
- protected $job = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $service
- * Output only. The name of the Cloud Run Service that is associated with a
- * `Rollout`. Format is
- * `projects/{project}/locations/{location}/services/{service}`.
- * @type array|\Google\Protobuf\Internal\RepeatedField $service_urls
- * Output only. The Cloud Run Service urls that are associated with a
- * `Rollout`.
- * @type string $revision
- * Output only. The Cloud Run Revision id associated with a `Rollout`.
- * @type string $job
- * Output only. The name of the Cloud Run job that is associated with a
- * `Rollout`. Format is
- * `projects/{project}/locations/{location}/jobs/{job_name}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The name of the Cloud Run Service that is associated with a
- * `Rollout`. Format is
- * `projects/{project}/locations/{location}/services/{service}`.
- *
- * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @return string
- */
- public function getService()
- {
- return $this->service;
- }
-
- /**
- * Output only. The name of the Cloud Run Service that is associated with a
- * `Rollout`. Format is
- * `projects/{project}/locations/{location}/services/{service}`.
- *
- * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setService($var)
- {
- GPBUtil::checkString($var, True);
- $this->service = $var;
-
- return $this;
- }
-
- /**
- * Output only. The Cloud Run Service urls that are associated with a
- * `Rollout`.
- *
- * Generated from protobuf field repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getServiceUrls()
- {
- return $this->service_urls;
- }
-
- /**
- * Output only. The Cloud Run Service urls that are associated with a
- * `Rollout`.
- *
- * Generated from protobuf field repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setServiceUrls($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->service_urls = $arr;
-
- return $this;
- }
-
- /**
- * Output only. The Cloud Run Revision id associated with a `Rollout`.
- *
- * Generated from protobuf field string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getRevision()
- {
- return $this->revision;
- }
-
- /**
- * Output only. The Cloud Run Revision id associated with a `Rollout`.
- *
- * Generated from protobuf field string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setRevision($var)
- {
- GPBUtil::checkString($var, True);
- $this->revision = $var;
-
- return $this;
- }
-
- /**
- * Output only. The name of the Cloud Run job that is associated with a
- * `Rollout`. Format is
- * `projects/{project}/locations/{location}/jobs/{job_name}`.
- *
- * Generated from protobuf field string job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @return string
- */
- public function getJob()
- {
- return $this->job;
- }
-
- /**
- * Output only. The name of the Cloud Run job that is associated with a
- * `Rollout`. Format is
- * `projects/{project}/locations/{location}/jobs/{job_name}`.
- *
- * Generated from protobuf field string job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setJob($var)
- {
- GPBUtil::checkString($var, True);
- $this->job = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunRenderMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunRenderMetadata.php
deleted file mode 100644
index 8695f4611f63..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunRenderMetadata.php
+++ /dev/null
@@ -1,72 +0,0 @@
-google.cloud.deploy.v1.CloudRunRenderMetadata
- */
-class CloudRunRenderMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The name of the Cloud Run Service in the rendered manifest.
- * Format is `projects/{project}/locations/{location}/services/{service}`.
- *
- * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- */
- protected $service = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $service
- * Output only. The name of the Cloud Run Service in the rendered manifest.
- * Format is `projects/{project}/locations/{location}/services/{service}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The name of the Cloud Run Service in the rendered manifest.
- * Format is `projects/{project}/locations/{location}/services/{service}`.
- *
- * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @return string
- */
- public function getService()
- {
- return $this->service;
- }
-
- /**
- * Output only. The name of the Cloud Run Service in the rendered manifest.
- * Format is `projects/{project}/locations/{location}/services/{service}`.
- *
- * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setService($var)
- {
- GPBUtil::checkString($var, True);
- $this->service = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Config.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Config.php
deleted file mode 100644
index d3401ecb99a3..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Config.php
+++ /dev/null
@@ -1,139 +0,0 @@
-google.cloud.deploy.v1.Config
- */
-class Config extends \Google\Protobuf\Internal\Message
-{
- /**
- * Name of the configuration.
- *
- * Generated from protobuf field string name = 1;
- */
- protected $name = '';
- /**
- * All supported versions of Skaffold.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2;
- */
- private $supported_versions;
- /**
- * Default Skaffold version that is assigned when a Release is created without
- * specifying a Skaffold version.
- *
- * Generated from protobuf field string default_skaffold_version = 3;
- */
- protected $default_skaffold_version = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Name of the configuration.
- * @type array<\Google\Cloud\Deploy\V1\SkaffoldVersion>|\Google\Protobuf\Internal\RepeatedField $supported_versions
- * All supported versions of Skaffold.
- * @type string $default_skaffold_version
- * Default Skaffold version that is assigned when a Release is created without
- * specifying a Skaffold version.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Name of the configuration.
- *
- * Generated from protobuf field string name = 1;
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Name of the configuration.
- *
- * Generated from protobuf field string name = 1;
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * All supported versions of Skaffold.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getSupportedVersions()
- {
- return $this->supported_versions;
- }
-
- /**
- * All supported versions of Skaffold.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2;
- * @param array<\Google\Cloud\Deploy\V1\SkaffoldVersion>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setSupportedVersions($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\SkaffoldVersion::class);
- $this->supported_versions = $arr;
-
- return $this;
- }
-
- /**
- * Default Skaffold version that is assigned when a Release is created without
- * specifying a Skaffold version.
- *
- * Generated from protobuf field string default_skaffold_version = 3;
- * @return string
- */
- public function getDefaultSkaffoldVersion()
- {
- return $this->default_skaffold_version;
- }
-
- /**
- * Default Skaffold version that is assigned when a Release is created without
- * specifying a Skaffold version.
- *
- * Generated from protobuf field string default_skaffold_version = 3;
- * @param string $var
- * @return $this
- */
- public function setDefaultSkaffoldVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->default_skaffold_version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateAutomationRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateAutomationRequest.php
deleted file mode 100644
index be5a7c0be40e..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateAutomationRequest.php
+++ /dev/null
@@ -1,285 +0,0 @@
-google.cloud.deploy.v1.CreateAutomationRequest
- */
-class CreateAutomationRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent collection in which the `Automation` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Required. ID of the `Automation`.
- *
- * Generated from protobuf field string automation_id = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $automation_id = '';
- /**
- * Required. The `Automation` to create.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Automation automation = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $automation = null;
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $request_id = '';
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $validate_only = false;
-
- /**
- * @param string $parent Required. The parent collection in which the `Automation` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. Please see
- * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field.
- * @param \Google\Cloud\Deploy\V1\Automation $automation Required. The `Automation` to create.
- * @param string $automationId Required. ID of the `Automation`.
- *
- * @return \Google\Cloud\Deploy\V1\CreateAutomationRequest
- *
- * @experimental
- */
- public static function build(string $parent, \Google\Cloud\Deploy\V1\Automation $automation, string $automationId): self
- {
- return (new self())
- ->setParent($parent)
- ->setAutomation($automation)
- ->setAutomationId($automationId);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent collection in which the `Automation` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- * @type string $automation_id
- * Required. ID of the `Automation`.
- * @type \Google\Cloud\Deploy\V1\Automation $automation
- * Required. The `Automation` to create.
- * @type string $request_id
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $validate_only
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent collection in which the `Automation` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent collection in which the `Automation` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Required. ID of the `Automation`.
- *
- * Generated from protobuf field string automation_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getAutomationId()
- {
- return $this->automation_id;
- }
-
- /**
- * Required. ID of the `Automation`.
- *
- * Generated from protobuf field string automation_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setAutomationId($var)
- {
- GPBUtil::checkString($var, True);
- $this->automation_id = $var;
-
- return $this;
- }
-
- /**
- * Required. The `Automation` to create.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Automation automation = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Deploy\V1\Automation|null
- */
- public function getAutomation()
- {
- return $this->automation;
- }
-
- public function hasAutomation()
- {
- return isset($this->automation);
- }
-
- public function clearAutomation()
- {
- unset($this->automation);
- }
-
- /**
- * Required. The `Automation` to create.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Automation automation = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Deploy\V1\Automation $var
- * @return $this
- */
- public function setAutomation($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Automation::class);
- $this->automation = $var;
-
- return $this;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getValidateOnly()
- {
- return $this->validate_only;
- }
-
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setValidateOnly($var)
- {
- GPBUtil::checkBool($var);
- $this->validate_only = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateChildRolloutJob.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateChildRolloutJob.php
deleted file mode 100644
index ba7b1ce944b0..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateChildRolloutJob.php
+++ /dev/null
@@ -1,33 +0,0 @@
-google.cloud.deploy.v1.CreateChildRolloutJob
- */
-class CreateChildRolloutJob extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateChildRolloutJobRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateChildRolloutJobRun.php
deleted file mode 100644
index 2207026b617e..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateChildRolloutJobRun.php
+++ /dev/null
@@ -1,106 +0,0 @@
-google.cloud.deploy.v1.CreateChildRolloutJobRun
- */
-class CreateChildRolloutJobRun extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. Name of the `ChildRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $rollout = '';
- /**
- * Output only. The ID of the childRollout Phase initiated by this JobRun.
- *
- * Generated from protobuf field string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $rollout_phase_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $rollout
- * Output only. Name of the `ChildRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- * @type string $rollout_phase_id
- * Output only. The ID of the childRollout Phase initiated by this JobRun.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. Name of the `ChildRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getRollout()
- {
- return $this->rollout;
- }
-
- /**
- * Output only. Name of the `ChildRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setRollout($var)
- {
- GPBUtil::checkString($var, True);
- $this->rollout = $var;
-
- return $this;
- }
-
- /**
- * Output only. The ID of the childRollout Phase initiated by this JobRun.
- *
- * Generated from protobuf field string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getRolloutPhaseId()
- {
- return $this->rollout_phase_id;
- }
-
- /**
- * Output only. The ID of the childRollout Phase initiated by this JobRun.
- *
- * Generated from protobuf field string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setRolloutPhaseId($var)
- {
- GPBUtil::checkString($var, True);
- $this->rollout_phase_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateCustomTargetTypeRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateCustomTargetTypeRequest.php
deleted file mode 100644
index 8a960ab99c5c..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateCustomTargetTypeRequest.php
+++ /dev/null
@@ -1,285 +0,0 @@
-google.cloud.deploy.v1.CreateCustomTargetTypeRequest
- */
-class CreateCustomTargetTypeRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent collection in which the `CustomTargetType` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Required. ID of the `CustomTargetType`.
- *
- * Generated from protobuf field string custom_target_type_id = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $custom_target_type_id = '';
- /**
- * Required. The `CustomTargetType` to create.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $custom_target_type = null;
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $request_id = '';
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $validate_only = false;
-
- /**
- * @param string $parent Required. The parent collection in which the `CustomTargetType` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}`. Please see
- * {@see CloudDeployClient::locationName()} for help formatting this field.
- * @param \Google\Cloud\Deploy\V1\CustomTargetType $customTargetType Required. The `CustomTargetType` to create.
- * @param string $customTargetTypeId Required. ID of the `CustomTargetType`.
- *
- * @return \Google\Cloud\Deploy\V1\CreateCustomTargetTypeRequest
- *
- * @experimental
- */
- public static function build(string $parent, \Google\Cloud\Deploy\V1\CustomTargetType $customTargetType, string $customTargetTypeId): self
- {
- return (new self())
- ->setParent($parent)
- ->setCustomTargetType($customTargetType)
- ->setCustomTargetTypeId($customTargetTypeId);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent collection in which the `CustomTargetType` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}`.
- * @type string $custom_target_type_id
- * Required. ID of the `CustomTargetType`.
- * @type \Google\Cloud\Deploy\V1\CustomTargetType $custom_target_type
- * Required. The `CustomTargetType` to create.
- * @type string $request_id
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $validate_only
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent collection in which the `CustomTargetType` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent collection in which the `CustomTargetType` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Required. ID of the `CustomTargetType`.
- *
- * Generated from protobuf field string custom_target_type_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getCustomTargetTypeId()
- {
- return $this->custom_target_type_id;
- }
-
- /**
- * Required. ID of the `CustomTargetType`.
- *
- * Generated from protobuf field string custom_target_type_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setCustomTargetTypeId($var)
- {
- GPBUtil::checkString($var, True);
- $this->custom_target_type_id = $var;
-
- return $this;
- }
-
- /**
- * Required. The `CustomTargetType` to create.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Deploy\V1\CustomTargetType|null
- */
- public function getCustomTargetType()
- {
- return $this->custom_target_type;
- }
-
- public function hasCustomTargetType()
- {
- return isset($this->custom_target_type);
- }
-
- public function clearCustomTargetType()
- {
- unset($this->custom_target_type);
- }
-
- /**
- * Required. The `CustomTargetType` to create.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Deploy\V1\CustomTargetType $var
- * @return $this
- */
- public function setCustomTargetType($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomTargetType::class);
- $this->custom_target_type = $var;
-
- return $this;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getValidateOnly()
- {
- return $this->validate_only;
- }
-
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setValidateOnly($var)
- {
- GPBUtil::checkBool($var);
- $this->validate_only = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateDeliveryPipelineRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateDeliveryPipelineRequest.php
deleted file mode 100644
index 48852f0c48dd..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateDeliveryPipelineRequest.php
+++ /dev/null
@@ -1,285 +0,0 @@
-google.cloud.deploy.v1.CreateDeliveryPipelineRequest
- */
-class CreateDeliveryPipelineRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent collection in which the `DeliveryPipeline` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Required. ID of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string delivery_pipeline_id = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $delivery_pipeline_id = '';
- /**
- * Required. The `DeliveryPipeline` to create.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $delivery_pipeline = null;
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $request_id = '';
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $validate_only = false;
-
- /**
- * @param string $parent Required. The parent collection in which the `DeliveryPipeline` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}`. Please see
- * {@see CloudDeployClient::locationName()} for help formatting this field.
- * @param \Google\Cloud\Deploy\V1\DeliveryPipeline $deliveryPipeline Required. The `DeliveryPipeline` to create.
- * @param string $deliveryPipelineId Required. ID of the `DeliveryPipeline`.
- *
- * @return \Google\Cloud\Deploy\V1\CreateDeliveryPipelineRequest
- *
- * @experimental
- */
- public static function build(string $parent, \Google\Cloud\Deploy\V1\DeliveryPipeline $deliveryPipeline, string $deliveryPipelineId): self
- {
- return (new self())
- ->setParent($parent)
- ->setDeliveryPipeline($deliveryPipeline)
- ->setDeliveryPipelineId($deliveryPipelineId);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent collection in which the `DeliveryPipeline` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}`.
- * @type string $delivery_pipeline_id
- * Required. ID of the `DeliveryPipeline`.
- * @type \Google\Cloud\Deploy\V1\DeliveryPipeline $delivery_pipeline
- * Required. The `DeliveryPipeline` to create.
- * @type string $request_id
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $validate_only
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent collection in which the `DeliveryPipeline` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent collection in which the `DeliveryPipeline` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Required. ID of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string delivery_pipeline_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getDeliveryPipelineId()
- {
- return $this->delivery_pipeline_id;
- }
-
- /**
- * Required. ID of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string delivery_pipeline_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setDeliveryPipelineId($var)
- {
- GPBUtil::checkString($var, True);
- $this->delivery_pipeline_id = $var;
-
- return $this;
- }
-
- /**
- * Required. The `DeliveryPipeline` to create.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Deploy\V1\DeliveryPipeline|null
- */
- public function getDeliveryPipeline()
- {
- return $this->delivery_pipeline;
- }
-
- public function hasDeliveryPipeline()
- {
- return isset($this->delivery_pipeline);
- }
-
- public function clearDeliveryPipeline()
- {
- unset($this->delivery_pipeline);
- }
-
- /**
- * Required. The `DeliveryPipeline` to create.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Deploy\V1\DeliveryPipeline $var
- * @return $this
- */
- public function setDeliveryPipeline($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeliveryPipeline::class);
- $this->delivery_pipeline = $var;
-
- return $this;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getValidateOnly()
- {
- return $this->validate_only;
- }
-
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setValidateOnly($var)
- {
- GPBUtil::checkBool($var);
- $this->validate_only = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateReleaseRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateReleaseRequest.php
deleted file mode 100644
index 538162251d06..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateReleaseRequest.php
+++ /dev/null
@@ -1,285 +0,0 @@
-google.cloud.deploy.v1.CreateReleaseRequest
- */
-class CreateReleaseRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent collection in which the `Release` should be created.
- * Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Required. ID of the `Release`.
- *
- * Generated from protobuf field string release_id = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $release_id = '';
- /**
- * Required. The `Release` to create.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $release = null;
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $request_id = '';
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $validate_only = false;
-
- /**
- * @param string $parent Required. The parent collection in which the `Release` should be created.
- * Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. Please see
- * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field.
- * @param \Google\Cloud\Deploy\V1\Release $release Required. The `Release` to create.
- * @param string $releaseId Required. ID of the `Release`.
- *
- * @return \Google\Cloud\Deploy\V1\CreateReleaseRequest
- *
- * @experimental
- */
- public static function build(string $parent, \Google\Cloud\Deploy\V1\Release $release, string $releaseId): self
- {
- return (new self())
- ->setParent($parent)
- ->setRelease($release)
- ->setReleaseId($releaseId);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent collection in which the `Release` should be created.
- * Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- * @type string $release_id
- * Required. ID of the `Release`.
- * @type \Google\Cloud\Deploy\V1\Release $release
- * Required. The `Release` to create.
- * @type string $request_id
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $validate_only
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent collection in which the `Release` should be created.
- * Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent collection in which the `Release` should be created.
- * Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Required. ID of the `Release`.
- *
- * Generated from protobuf field string release_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getReleaseId()
- {
- return $this->release_id;
- }
-
- /**
- * Required. ID of the `Release`.
- *
- * Generated from protobuf field string release_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setReleaseId($var)
- {
- GPBUtil::checkString($var, True);
- $this->release_id = $var;
-
- return $this;
- }
-
- /**
- * Required. The `Release` to create.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Deploy\V1\Release|null
- */
- public function getRelease()
- {
- return $this->release;
- }
-
- public function hasRelease()
- {
- return isset($this->release);
- }
-
- public function clearRelease()
- {
- unset($this->release);
- }
-
- /**
- * Required. The `Release` to create.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Deploy\V1\Release $var
- * @return $this
- */
- public function setRelease($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Release::class);
- $this->release = $var;
-
- return $this;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getValidateOnly()
- {
- return $this->validate_only;
- }
-
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setValidateOnly($var)
- {
- GPBUtil::checkBool($var);
- $this->validate_only = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateRolloutRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateRolloutRequest.php
deleted file mode 100644
index 49dc433f36a2..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateRolloutRequest.php
+++ /dev/null
@@ -1,323 +0,0 @@
-google.cloud.deploy.v1.CreateRolloutRequest
- */
-class CreateRolloutRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent collection in which the `Rollout` should be created.
- * Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Required. ID of the `Rollout`.
- *
- * Generated from protobuf field string rollout_id = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $rollout_id = '';
- /**
- * Required. The `Rollout` to create.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $rollout = null;
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $request_id = '';
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $validate_only = false;
- /**
- * Optional. The starting phase ID for the `Rollout`. If empty the `Rollout`
- * will start at the first phase.
- *
- * Generated from protobuf field string starting_phase_id = 7 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $starting_phase_id = '';
-
- /**
- * @param string $parent Required. The parent collection in which the `Rollout` should be created.
- * Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. Please see
- * {@see CloudDeployClient::releaseName()} for help formatting this field.
- * @param \Google\Cloud\Deploy\V1\Rollout $rollout Required. The `Rollout` to create.
- * @param string $rolloutId Required. ID of the `Rollout`.
- *
- * @return \Google\Cloud\Deploy\V1\CreateRolloutRequest
- *
- * @experimental
- */
- public static function build(string $parent, \Google\Cloud\Deploy\V1\Rollout $rollout, string $rolloutId): self
- {
- return (new self())
- ->setParent($parent)
- ->setRollout($rollout)
- ->setRolloutId($rolloutId);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent collection in which the `Rollout` should be created.
- * Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.
- * @type string $rollout_id
- * Required. ID of the `Rollout`.
- * @type \Google\Cloud\Deploy\V1\Rollout $rollout
- * Required. The `Rollout` to create.
- * @type string $request_id
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $validate_only
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- * @type string $starting_phase_id
- * Optional. The starting phase ID for the `Rollout`. If empty the `Rollout`
- * will start at the first phase.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent collection in which the `Rollout` should be created.
- * Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent collection in which the `Rollout` should be created.
- * Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Required. ID of the `Rollout`.
- *
- * Generated from protobuf field string rollout_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getRolloutId()
- {
- return $this->rollout_id;
- }
-
- /**
- * Required. ID of the `Rollout`.
- *
- * Generated from protobuf field string rollout_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setRolloutId($var)
- {
- GPBUtil::checkString($var, True);
- $this->rollout_id = $var;
-
- return $this;
- }
-
- /**
- * Required. The `Rollout` to create.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Deploy\V1\Rollout|null
- */
- public function getRollout()
- {
- return $this->rollout;
- }
-
- public function hasRollout()
- {
- return isset($this->rollout);
- }
-
- public function clearRollout()
- {
- unset($this->rollout);
- }
-
- /**
- * Required. The `Rollout` to create.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Deploy\V1\Rollout $var
- * @return $this
- */
- public function setRollout($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Rollout::class);
- $this->rollout = $var;
-
- return $this;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getValidateOnly()
- {
- return $this->validate_only;
- }
-
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setValidateOnly($var)
- {
- GPBUtil::checkBool($var);
- $this->validate_only = $var;
-
- return $this;
- }
-
- /**
- * Optional. The starting phase ID for the `Rollout`. If empty the `Rollout`
- * will start at the first phase.
- *
- * Generated from protobuf field string starting_phase_id = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getStartingPhaseId()
- {
- return $this->starting_phase_id;
- }
-
- /**
- * Optional. The starting phase ID for the `Rollout`. If empty the `Rollout`
- * will start at the first phase.
- *
- * Generated from protobuf field string starting_phase_id = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setStartingPhaseId($var)
- {
- GPBUtil::checkString($var, True);
- $this->starting_phase_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateTargetRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateTargetRequest.php
deleted file mode 100644
index 9c666d2eca4f..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateTargetRequest.php
+++ /dev/null
@@ -1,285 +0,0 @@
-google.cloud.deploy.v1.CreateTargetRequest
- */
-class CreateTargetRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent collection in which the `Target` should be created.
- * Format should be
- * `projects/{project_id}/locations/{location_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Required. ID of the `Target`.
- *
- * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $target_id = '';
- /**
- * Required. The `Target` to create.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $target = null;
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $request_id = '';
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $validate_only = false;
-
- /**
- * @param string $parent Required. The parent collection in which the `Target` should be created.
- * Format should be
- * `projects/{project_id}/locations/{location_name}`. Please see
- * {@see CloudDeployClient::locationName()} for help formatting this field.
- * @param \Google\Cloud\Deploy\V1\Target $target Required. The `Target` to create.
- * @param string $targetId Required. ID of the `Target`.
- *
- * @return \Google\Cloud\Deploy\V1\CreateTargetRequest
- *
- * @experimental
- */
- public static function build(string $parent, \Google\Cloud\Deploy\V1\Target $target, string $targetId): self
- {
- return (new self())
- ->setParent($parent)
- ->setTarget($target)
- ->setTargetId($targetId);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent collection in which the `Target` should be created.
- * Format should be
- * `projects/{project_id}/locations/{location_name}`.
- * @type string $target_id
- * Required. ID of the `Target`.
- * @type \Google\Cloud\Deploy\V1\Target $target
- * Required. The `Target` to create.
- * @type string $request_id
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $validate_only
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent collection in which the `Target` should be created.
- * Format should be
- * `projects/{project_id}/locations/{location_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent collection in which the `Target` should be created.
- * Format should be
- * `projects/{project_id}/locations/{location_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Required. ID of the `Target`.
- *
- * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getTargetId()
- {
- return $this->target_id;
- }
-
- /**
- * Required. ID of the `Target`.
- *
- * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setTargetId($var)
- {
- GPBUtil::checkString($var, True);
- $this->target_id = $var;
-
- return $this;
- }
-
- /**
- * Required. The `Target` to create.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Deploy\V1\Target|null
- */
- public function getTarget()
- {
- return $this->target;
- }
-
- public function hasTarget()
- {
- return isset($this->target);
- }
-
- public function clearTarget()
- {
- unset($this->target);
- }
-
- /**
- * Required. The `Target` to create.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Deploy\V1\Target $var
- * @return $this
- */
- public function setTarget($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Target::class);
- $this->target = $var;
-
- return $this;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getValidateOnly()
- {
- return $this->validate_only;
- }
-
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setValidateOnly($var)
- {
- GPBUtil::checkBool($var);
- $this->validate_only = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomCanaryDeployment.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomCanaryDeployment.php
deleted file mode 100644
index 7564e1c85ac6..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomCanaryDeployment.php
+++ /dev/null
@@ -1,72 +0,0 @@
-google.cloud.deploy.v1.CustomCanaryDeployment
- */
-class CustomCanaryDeployment extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Configuration for each phase in the canary deployment in the
- * order executed.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomCanaryDeployment.PhaseConfig phase_configs = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- private $phase_configs;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Deploy\V1\CustomCanaryDeployment\PhaseConfig>|\Google\Protobuf\Internal\RepeatedField $phase_configs
- * Required. Configuration for each phase in the canary deployment in the
- * order executed.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Configuration for each phase in the canary deployment in the
- * order executed.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomCanaryDeployment.PhaseConfig phase_configs = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getPhaseConfigs()
- {
- return $this->phase_configs;
- }
-
- /**
- * Required. Configuration for each phase in the canary deployment in the
- * order executed.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomCanaryDeployment.PhaseConfig phase_configs = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param array<\Google\Cloud\Deploy\V1\CustomCanaryDeployment\PhaseConfig>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setPhaseConfigs($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\CustomCanaryDeployment\PhaseConfig::class);
- $this->phase_configs = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomCanaryDeployment/PhaseConfig.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomCanaryDeployment/PhaseConfig.php
deleted file mode 100644
index b491f4297665..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomCanaryDeployment/PhaseConfig.php
+++ /dev/null
@@ -1,293 +0,0 @@
-google.cloud.deploy.v1.CustomCanaryDeployment.PhaseConfig
- */
-class PhaseConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The ID to assign to the `Rollout` phase.
- * This value must consist of lower-case letters, numbers, and hyphens,
- * start with a letter and end with a letter or a number, and have a max
- * length of 63 characters. In other words, it must match the following
- * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
- *
- * Generated from protobuf field string phase_id = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $phase_id = '';
- /**
- * Required. Percentage deployment for the phase.
- *
- * Generated from protobuf field int32 percentage = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $percentage = 0;
- /**
- * Skaffold profiles to use when rendering the manifest for this phase.
- * These are in addition to the profiles list specified in the
- * `DeliveryPipeline` stage.
- *
- * Generated from protobuf field repeated string profiles = 3;
- */
- private $profiles;
- /**
- * Whether to run verify tests after the deployment.
- *
- * Generated from protobuf field bool verify = 4;
- */
- protected $verify = false;
- /**
- * Optional. Configuration for the predeploy job of this phase. If this is
- * not configured, there will be no predeploy job for this phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $predeploy = null;
- /**
- * Optional. Configuration for the postdeploy job of this phase. If this is
- * not configured, there will be no postdeploy job for this phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $postdeploy = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $phase_id
- * Required. The ID to assign to the `Rollout` phase.
- * This value must consist of lower-case letters, numbers, and hyphens,
- * start with a letter and end with a letter or a number, and have a max
- * length of 63 characters. In other words, it must match the following
- * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
- * @type int $percentage
- * Required. Percentage deployment for the phase.
- * @type array|\Google\Protobuf\Internal\RepeatedField $profiles
- * Skaffold profiles to use when rendering the manifest for this phase.
- * These are in addition to the profiles list specified in the
- * `DeliveryPipeline` stage.
- * @type bool $verify
- * Whether to run verify tests after the deployment.
- * @type \Google\Cloud\Deploy\V1\Predeploy $predeploy
- * Optional. Configuration for the predeploy job of this phase. If this is
- * not configured, there will be no predeploy job for this phase.
- * @type \Google\Cloud\Deploy\V1\Postdeploy $postdeploy
- * Optional. Configuration for the postdeploy job of this phase. If this is
- * not configured, there will be no postdeploy job for this phase.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The ID to assign to the `Rollout` phase.
- * This value must consist of lower-case letters, numbers, and hyphens,
- * start with a letter and end with a letter or a number, and have a max
- * length of 63 characters. In other words, it must match the following
- * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
- *
- * Generated from protobuf field string phase_id = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getPhaseId()
- {
- return $this->phase_id;
- }
-
- /**
- * Required. The ID to assign to the `Rollout` phase.
- * This value must consist of lower-case letters, numbers, and hyphens,
- * start with a letter and end with a letter or a number, and have a max
- * length of 63 characters. In other words, it must match the following
- * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
- *
- * Generated from protobuf field string phase_id = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setPhaseId($var)
- {
- GPBUtil::checkString($var, True);
- $this->phase_id = $var;
-
- return $this;
- }
-
- /**
- * Required. Percentage deployment for the phase.
- *
- * Generated from protobuf field int32 percentage = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return int
- */
- public function getPercentage()
- {
- return $this->percentage;
- }
-
- /**
- * Required. Percentage deployment for the phase.
- *
- * Generated from protobuf field int32 percentage = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param int $var
- * @return $this
- */
- public function setPercentage($var)
- {
- GPBUtil::checkInt32($var);
- $this->percentage = $var;
-
- return $this;
- }
-
- /**
- * Skaffold profiles to use when rendering the manifest for this phase.
- * These are in addition to the profiles list specified in the
- * `DeliveryPipeline` stage.
- *
- * Generated from protobuf field repeated string profiles = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getProfiles()
- {
- return $this->profiles;
- }
-
- /**
- * Skaffold profiles to use when rendering the manifest for this phase.
- * These are in addition to the profiles list specified in the
- * `DeliveryPipeline` stage.
- *
- * Generated from protobuf field repeated string profiles = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setProfiles($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->profiles = $arr;
-
- return $this;
- }
-
- /**
- * Whether to run verify tests after the deployment.
- *
- * Generated from protobuf field bool verify = 4;
- * @return bool
- */
- public function getVerify()
- {
- return $this->verify;
- }
-
- /**
- * Whether to run verify tests after the deployment.
- *
- * Generated from protobuf field bool verify = 4;
- * @param bool $var
- * @return $this
- */
- public function setVerify($var)
- {
- GPBUtil::checkBool($var);
- $this->verify = $var;
-
- return $this;
- }
-
- /**
- * Optional. Configuration for the predeploy job of this phase. If this is
- * not configured, there will be no predeploy job for this phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Deploy\V1\Predeploy|null
- */
- public function getPredeploy()
- {
- return $this->predeploy;
- }
-
- public function hasPredeploy()
- {
- return isset($this->predeploy);
- }
-
- public function clearPredeploy()
- {
- unset($this->predeploy);
- }
-
- /**
- * Optional. Configuration for the predeploy job of this phase. If this is
- * not configured, there will be no predeploy job for this phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Deploy\V1\Predeploy $var
- * @return $this
- */
- public function setPredeploy($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Predeploy::class);
- $this->predeploy = $var;
-
- return $this;
- }
-
- /**
- * Optional. Configuration for the postdeploy job of this phase. If this is
- * not configured, there will be no postdeploy job for this phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Deploy\V1\Postdeploy|null
- */
- public function getPostdeploy()
- {
- return $this->postdeploy;
- }
-
- public function hasPostdeploy()
- {
- return isset($this->postdeploy);
- }
-
- public function clearPostdeploy()
- {
- unset($this->postdeploy);
- }
-
- /**
- * Optional. Configuration for the postdeploy job of this phase. If this is
- * not configured, there will be no postdeploy job for this phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Deploy\V1\Postdeploy $var
- * @return $this
- */
- public function setPostdeploy($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Postdeploy::class);
- $this->postdeploy = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(PhaseConfig::class, \Google\Cloud\Deploy\V1\CustomCanaryDeployment_PhaseConfig::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomMetadata.php
deleted file mode 100644
index 0542e47d8caf..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomMetadata.php
+++ /dev/null
@@ -1,67 +0,0 @@
-google.cloud.deploy.v1.CustomMetadata
- */
-class CustomMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. Key-value pairs provided by the user-defined operation.
- *
- * Generated from protobuf field map values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $values;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\MapField $values
- * Output only. Key-value pairs provided by the user-defined operation.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. Key-value pairs provided by the user-defined operation.
- *
- * Generated from protobuf field map values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getValues()
- {
- return $this->values;
- }
-
- /**
- * Output only. Key-value pairs provided by the user-defined operation.
- *
- * Generated from protobuf field map values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setValues($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->values = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTarget.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTarget.php
deleted file mode 100644
index cd56d0f9ff5a..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTarget.php
+++ /dev/null
@@ -1,71 +0,0 @@
-google.cloud.deploy.v1.CustomTarget
- */
-class CustomTarget extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The name of the CustomTargetType. Format must be
- * `projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}`.
- *
- * Generated from protobuf field string custom_target_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $custom_target_type = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $custom_target_type
- * Required. The name of the CustomTargetType. Format must be
- * `projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The name of the CustomTargetType. Format must be
- * `projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}`.
- *
- * Generated from protobuf field string custom_target_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getCustomTargetType()
- {
- return $this->custom_target_type;
- }
-
- /**
- * Required. The name of the CustomTargetType. Format must be
- * `projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}`.
- *
- * Generated from protobuf field string custom_target_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setCustomTargetType($var)
- {
- GPBUtil::checkString($var, True);
- $this->custom_target_type = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetDeployMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetDeployMetadata.php
deleted file mode 100644
index 84f7747119b7..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetDeployMetadata.php
+++ /dev/null
@@ -1,72 +0,0 @@
-google.cloud.deploy.v1.CustomTargetDeployMetadata
- */
-class CustomTargetDeployMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. Skip message provided in the results of a custom deploy
- * operation.
- *
- * Generated from protobuf field string skip_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $skip_message = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $skip_message
- * Output only. Skip message provided in the results of a custom deploy
- * operation.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. Skip message provided in the results of a custom deploy
- * operation.
- *
- * Generated from protobuf field string skip_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getSkipMessage()
- {
- return $this->skip_message;
- }
-
- /**
- * Output only. Skip message provided in the results of a custom deploy
- * operation.
- *
- * Generated from protobuf field string skip_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setSkipMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->skip_message = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetSkaffoldActions.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetSkaffoldActions.php
deleted file mode 100644
index bd8698c053a8..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetSkaffoldActions.php
+++ /dev/null
@@ -1,148 +0,0 @@
-google.cloud.deploy.v1.CustomTargetSkaffoldActions
- */
-class CustomTargetSkaffoldActions extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. The Skaffold custom action responsible for render operations. If
- * not provided then Cloud Deploy will perform the render operations via
- * `skaffold render`.
- *
- * Generated from protobuf field string render_action = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $render_action = '';
- /**
- * Required. The Skaffold custom action responsible for deploy operations.
- *
- * Generated from protobuf field string deploy_action = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $deploy_action = '';
- /**
- * Optional. List of Skaffold modules Cloud Deploy will include in the
- * Skaffold Config as required before performing diagnose.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $include_skaffold_modules;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $render_action
- * Optional. The Skaffold custom action responsible for render operations. If
- * not provided then Cloud Deploy will perform the render operations via
- * `skaffold render`.
- * @type string $deploy_action
- * Required. The Skaffold custom action responsible for deploy operations.
- * @type array<\Google\Cloud\Deploy\V1\SkaffoldModules>|\Google\Protobuf\Internal\RepeatedField $include_skaffold_modules
- * Optional. List of Skaffold modules Cloud Deploy will include in the
- * Skaffold Config as required before performing diagnose.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. The Skaffold custom action responsible for render operations. If
- * not provided then Cloud Deploy will perform the render operations via
- * `skaffold render`.
- *
- * Generated from protobuf field string render_action = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRenderAction()
- {
- return $this->render_action;
- }
-
- /**
- * Optional. The Skaffold custom action responsible for render operations. If
- * not provided then Cloud Deploy will perform the render operations via
- * `skaffold render`.
- *
- * Generated from protobuf field string render_action = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRenderAction($var)
- {
- GPBUtil::checkString($var, True);
- $this->render_action = $var;
-
- return $this;
- }
-
- /**
- * Required. The Skaffold custom action responsible for deploy operations.
- *
- * Generated from protobuf field string deploy_action = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getDeployAction()
- {
- return $this->deploy_action;
- }
-
- /**
- * Required. The Skaffold custom action responsible for deploy operations.
- *
- * Generated from protobuf field string deploy_action = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setDeployAction($var)
- {
- GPBUtil::checkString($var, True);
- $this->deploy_action = $var;
-
- return $this;
- }
-
- /**
- * Optional. List of Skaffold modules Cloud Deploy will include in the
- * Skaffold Config as required before performing diagnose.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getIncludeSkaffoldModules()
- {
- return $this->include_skaffold_modules;
- }
-
- /**
- * Optional. List of Skaffold modules Cloud Deploy will include in the
- * Skaffold Config as required before performing diagnose.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param array<\Google\Cloud\Deploy\V1\SkaffoldModules>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setIncludeSkaffoldModules($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\SkaffoldModules::class);
- $this->include_skaffold_modules = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetType.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetType.php
deleted file mode 100644
index 8b54d063c81f..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetType.php
+++ /dev/null
@@ -1,475 +0,0 @@
-google.cloud.deploy.v1.CustomTargetType
- */
-class CustomTargetType extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. Name of the `CustomTargetType`. Format is
- * `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`.
- * The `customTargetType` component must match
- * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $name = '';
- /**
- * Output only. Resource id of the `CustomTargetType`.
- *
- * Generated from protobuf field string custom_target_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $custom_target_type_id = '';
- /**
- * Output only. Unique identifier of the `CustomTargetType`.
- *
- * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $uid = '';
- /**
- * Optional. Description of the `CustomTargetType`. Max length is 255
- * characters.
- *
- * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $description = '';
- /**
- * Optional. User annotations. These attributes can only be set and used by
- * the user, and not by Cloud Deploy. See
- * https://google.aip.dev/128#annotations for more details such as format and
- * size limitations.
- *
- * Generated from protobuf field map annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $annotations;
- /**
- * Optional. Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 128 bytes.
- *
- * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $labels;
- /**
- * Output only. Time at which the `CustomTargetType` was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Output only. Most recent time at which the `CustomTargetType` was updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $update_time = null;
- /**
- * Optional. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $etag = '';
- protected $definition;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Optional. Name of the `CustomTargetType`. Format is
- * `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`.
- * The `customTargetType` component must match
- * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
- * @type string $custom_target_type_id
- * Output only. Resource id of the `CustomTargetType`.
- * @type string $uid
- * Output only. Unique identifier of the `CustomTargetType`.
- * @type string $description
- * Optional. Description of the `CustomTargetType`. Max length is 255
- * characters.
- * @type array|\Google\Protobuf\Internal\MapField $annotations
- * Optional. User annotations. These attributes can only be set and used by
- * the user, and not by Cloud Deploy. See
- * https://google.aip.dev/128#annotations for more details such as format and
- * size limitations.
- * @type array|\Google\Protobuf\Internal\MapField $labels
- * Optional. Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 128 bytes.
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. Time at which the `CustomTargetType` was created.
- * @type \Google\Protobuf\Timestamp $update_time
- * Output only. Most recent time at which the `CustomTargetType` was updated.
- * @type string $etag
- * Optional. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- * @type \Google\Cloud\Deploy\V1\CustomTargetSkaffoldActions $custom_actions
- * Configures render and deploy for the `CustomTargetType` using Skaffold
- * custom actions.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. Name of the `CustomTargetType`. Format is
- * `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`.
- * The `customTargetType` component must match
- * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Optional. Name of the `CustomTargetType`. Format is
- * `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`.
- * The `customTargetType` component must match
- * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Output only. Resource id of the `CustomTargetType`.
- *
- * Generated from protobuf field string custom_target_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getCustomTargetTypeId()
- {
- return $this->custom_target_type_id;
- }
-
- /**
- * Output only. Resource id of the `CustomTargetType`.
- *
- * Generated from protobuf field string custom_target_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setCustomTargetTypeId($var)
- {
- GPBUtil::checkString($var, True);
- $this->custom_target_type_id = $var;
-
- return $this;
- }
-
- /**
- * Output only. Unique identifier of the `CustomTargetType`.
- *
- * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getUid()
- {
- return $this->uid;
- }
-
- /**
- * Output only. Unique identifier of the `CustomTargetType`.
- *
- * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->uid = $var;
-
- return $this;
- }
-
- /**
- * Optional. Description of the `CustomTargetType`. Max length is 255
- * characters.
- *
- * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * Optional. Description of the `CustomTargetType`. Max length is 255
- * characters.
- *
- * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setDescription($var)
- {
- GPBUtil::checkString($var, True);
- $this->description = $var;
-
- return $this;
- }
-
- /**
- * Optional. User annotations. These attributes can only be set and used by
- * the user, and not by Cloud Deploy. See
- * https://google.aip.dev/128#annotations for more details such as format and
- * size limitations.
- *
- * Generated from protobuf field map annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getAnnotations()
- {
- return $this->annotations;
- }
-
- /**
- * Optional. User annotations. These attributes can only be set and used by
- * the user, and not by Cloud Deploy. See
- * https://google.aip.dev/128#annotations for more details such as format and
- * size limitations.
- *
- * Generated from protobuf field map annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setAnnotations($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->annotations = $arr;
-
- return $this;
- }
-
- /**
- * Optional. Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 128 bytes.
- *
- * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getLabels()
- {
- return $this->labels;
- }
-
- /**
- * Optional. Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 128 bytes.
- *
- * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setLabels($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->labels = $arr;
-
- return $this;
- }
-
- /**
- * Output only. Time at which the `CustomTargetType` was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. Time at which the `CustomTargetType` was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. Most recent time at which the `CustomTargetType` was updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->update_time;
- }
-
- public function hasUpdateTime()
- {
- return isset($this->update_time);
- }
-
- public function clearUpdateTime()
- {
- unset($this->update_time);
- }
-
- /**
- * Output only. Most recent time at which the `CustomTargetType` was updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->update_time = $var;
-
- return $this;
- }
-
- /**
- * Optional. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * Optional. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
- /**
- * Configures render and deploy for the `CustomTargetType` using Skaffold
- * custom actions.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10;
- * @return \Google\Cloud\Deploy\V1\CustomTargetSkaffoldActions|null
- */
- public function getCustomActions()
- {
- return $this->readOneof(10);
- }
-
- public function hasCustomActions()
- {
- return $this->hasOneof(10);
- }
-
- /**
- * Configures render and deploy for the `CustomTargetType` using Skaffold
- * custom actions.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10;
- * @param \Google\Cloud\Deploy\V1\CustomTargetSkaffoldActions $var
- * @return $this
- */
- public function setCustomActions($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomTargetSkaffoldActions::class);
- $this->writeOneof(10, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getDefinition()
- {
- return $this->whichOneof("definition");
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DefaultPool.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DefaultPool.php
deleted file mode 100644
index 8e6bc4524fa3..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DefaultPool.php
+++ /dev/null
@@ -1,121 +0,0 @@
-google.cloud.deploy.v1.DefaultPool
- */
-class DefaultPool extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. Google service account to use for execution. If unspecified,
- * the project execution service account
- * (-compute@developer.gserviceaccount.com) will be used.
- *
- * Generated from protobuf field string service_account = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $service_account = '';
- /**
- * Optional. Cloud Storage location where execution outputs should be stored.
- * This can either be a bucket ("gs://my-bucket") or a path within a bucket
- * ("gs://my-bucket/my-dir").
- * If unspecified, a default bucket located in the same region will be used.
- *
- * Generated from protobuf field string artifact_storage = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $artifact_storage = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $service_account
- * Optional. Google service account to use for execution. If unspecified,
- * the project execution service account
- * (-compute@developer.gserviceaccount.com) will be used.
- * @type string $artifact_storage
- * Optional. Cloud Storage location where execution outputs should be stored.
- * This can either be a bucket ("gs://my-bucket") or a path within a bucket
- * ("gs://my-bucket/my-dir").
- * If unspecified, a default bucket located in the same region will be used.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. Google service account to use for execution. If unspecified,
- * the project execution service account
- * (-compute@developer.gserviceaccount.com) will be used.
- *
- * Generated from protobuf field string service_account = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getServiceAccount()
- {
- return $this->service_account;
- }
-
- /**
- * Optional. Google service account to use for execution. If unspecified,
- * the project execution service account
- * (-compute@developer.gserviceaccount.com) will be used.
- *
- * Generated from protobuf field string service_account = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setServiceAccount($var)
- {
- GPBUtil::checkString($var, True);
- $this->service_account = $var;
-
- return $this;
- }
-
- /**
- * Optional. Cloud Storage location where execution outputs should be stored.
- * This can either be a bucket ("gs://my-bucket") or a path within a bucket
- * ("gs://my-bucket/my-dir").
- * If unspecified, a default bucket located in the same region will be used.
- *
- * Generated from protobuf field string artifact_storage = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getArtifactStorage()
- {
- return $this->artifact_storage;
- }
-
- /**
- * Optional. Cloud Storage location where execution outputs should be stored.
- * This can either be a bucket ("gs://my-bucket") or a path within a bucket
- * ("gs://my-bucket/my-dir").
- * If unspecified, a default bucket located in the same region will be used.
- *
- * Generated from protobuf field string artifact_storage = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setArtifactStorage($var)
- {
- GPBUtil::checkString($var, True);
- $this->artifact_storage = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteAutomationRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteAutomationRequest.php
deleted file mode 100644
index 0dc66a756a74..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteAutomationRequest.php
+++ /dev/null
@@ -1,282 +0,0 @@
-google.cloud.deploy.v1.DeleteAutomationRequest
- */
-class DeleteAutomationRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The name of the `Automation` to delete. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $request_id = '';
- /**
- * Optional. If set to true, then deleting an already deleted or non-existing
- * `Automation` will succeed.
- *
- * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $allow_missing = false;
- /**
- * Optional. If set, validate the request and verify whether the resource
- * exists, but do not actually post it.
- *
- * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $validate_only = false;
- /**
- * Optional. The weak etag of the request.
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $etag = '';
-
- /**
- * @param string $name Required. The name of the `Automation` to delete. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. Please see
- * {@see CloudDeployClient::automationName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\DeleteAutomationRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The name of the `Automation` to delete. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.
- * @type string $request_id
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $allow_missing
- * Optional. If set to true, then deleting an already deleted or non-existing
- * `Automation` will succeed.
- * @type bool $validate_only
- * Optional. If set, validate the request and verify whether the resource
- * exists, but do not actually post it.
- * @type string $etag
- * Optional. The weak etag of the request.
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The name of the `Automation` to delete. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The name of the `Automation` to delete. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, then deleting an already deleted or non-existing
- * `Automation` will succeed.
- *
- * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getAllowMissing()
- {
- return $this->allow_missing;
- }
-
- /**
- * Optional. If set to true, then deleting an already deleted or non-existing
- * `Automation` will succeed.
- *
- * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setAllowMissing($var)
- {
- GPBUtil::checkBool($var);
- $this->allow_missing = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set, validate the request and verify whether the resource
- * exists, but do not actually post it.
- *
- * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getValidateOnly()
- {
- return $this->validate_only;
- }
-
- /**
- * Optional. If set, validate the request and verify whether the resource
- * exists, but do not actually post it.
- *
- * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setValidateOnly($var)
- {
- GPBUtil::checkBool($var);
- $this->validate_only = $var;
-
- return $this;
- }
-
- /**
- * Optional. The weak etag of the request.
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * Optional. The weak etag of the request.
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteCustomTargetTypeRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteCustomTargetTypeRequest.php
deleted file mode 100644
index 47939212ecd7..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteCustomTargetTypeRequest.php
+++ /dev/null
@@ -1,278 +0,0 @@
-google.cloud.deploy.v1.DeleteCustomTargetTypeRequest
- */
-class DeleteCustomTargetTypeRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The name of the `CustomTargetType` to delete. Format must be
- * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $request_id = '';
- /**
- * Optional. If set to true, then deleting an already deleted or non-existing
- * `CustomTargetType` will succeed.
- *
- * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $allow_missing = false;
- /**
- * Optional. If set to true, the request is validated but no actual change is
- * made.
- *
- * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $validate_only = false;
- /**
- * Optional. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $etag = '';
-
- /**
- * @param string $name Required. The name of the `CustomTargetType` to delete. Format must be
- * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. Please see
- * {@see CloudDeployClient::customTargetTypeName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\DeleteCustomTargetTypeRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The name of the `CustomTargetType` to delete. Format must be
- * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
- * @type string $request_id
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $allow_missing
- * Optional. If set to true, then deleting an already deleted or non-existing
- * `CustomTargetType` will succeed.
- * @type bool $validate_only
- * Optional. If set to true, the request is validated but no actual change is
- * made.
- * @type string $etag
- * Optional. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The name of the `CustomTargetType` to delete. Format must be
- * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The name of the `CustomTargetType` to delete. Format must be
- * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, then deleting an already deleted or non-existing
- * `CustomTargetType` will succeed.
- *
- * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getAllowMissing()
- {
- return $this->allow_missing;
- }
-
- /**
- * Optional. If set to true, then deleting an already deleted or non-existing
- * `CustomTargetType` will succeed.
- *
- * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setAllowMissing($var)
- {
- GPBUtil::checkBool($var);
- $this->allow_missing = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, the request is validated but no actual change is
- * made.
- *
- * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getValidateOnly()
- {
- return $this->validate_only;
- }
-
- /**
- * Optional. If set to true, the request is validated but no actual change is
- * made.
- *
- * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setValidateOnly($var)
- {
- GPBUtil::checkBool($var);
- $this->validate_only = $var;
-
- return $this;
- }
-
- /**
- * Optional. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * Optional. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteDeliveryPipelineRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteDeliveryPipelineRequest.php
deleted file mode 100644
index 8a5dfba282d3..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteDeliveryPipelineRequest.php
+++ /dev/null
@@ -1,320 +0,0 @@
-google.cloud.deploy.v1.DeleteDeliveryPipelineRequest
- */
-class DeleteDeliveryPipelineRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The name of the `DeliveryPipeline` to delete. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $request_id = '';
- /**
- * Optional. If set to true, then deleting an already deleted or non-existing
- * `DeliveryPipeline` will succeed.
- *
- * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $allow_missing = false;
- /**
- * Optional. If set, validate the request and preview the review, but do not
- * actually post it.
- *
- * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $validate_only = false;
- /**
- * Optional. If set to true, all child resources under this pipeline will also
- * be deleted. Otherwise, the request will only work if the pipeline has no
- * child resources.
- *
- * Generated from protobuf field bool force = 6 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $force = false;
- /**
- * Optional. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $etag = '';
-
- /**
- * @param string $name Required. The name of the `DeliveryPipeline` to delete. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. Please see
- * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\DeleteDeliveryPipelineRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The name of the `DeliveryPipeline` to delete. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- * @type string $request_id
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $allow_missing
- * Optional. If set to true, then deleting an already deleted or non-existing
- * `DeliveryPipeline` will succeed.
- * @type bool $validate_only
- * Optional. If set, validate the request and preview the review, but do not
- * actually post it.
- * @type bool $force
- * Optional. If set to true, all child resources under this pipeline will also
- * be deleted. Otherwise, the request will only work if the pipeline has no
- * child resources.
- * @type string $etag
- * Optional. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The name of the `DeliveryPipeline` to delete. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The name of the `DeliveryPipeline` to delete. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, then deleting an already deleted or non-existing
- * `DeliveryPipeline` will succeed.
- *
- * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getAllowMissing()
- {
- return $this->allow_missing;
- }
-
- /**
- * Optional. If set to true, then deleting an already deleted or non-existing
- * `DeliveryPipeline` will succeed.
- *
- * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setAllowMissing($var)
- {
- GPBUtil::checkBool($var);
- $this->allow_missing = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set, validate the request and preview the review, but do not
- * actually post it.
- *
- * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getValidateOnly()
- {
- return $this->validate_only;
- }
-
- /**
- * Optional. If set, validate the request and preview the review, but do not
- * actually post it.
- *
- * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setValidateOnly($var)
- {
- GPBUtil::checkBool($var);
- $this->validate_only = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, all child resources under this pipeline will also
- * be deleted. Otherwise, the request will only work if the pipeline has no
- * child resources.
- *
- * Generated from protobuf field bool force = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getForce()
- {
- return $this->force;
- }
-
- /**
- * Optional. If set to true, all child resources under this pipeline will also
- * be deleted. Otherwise, the request will only work if the pipeline has no
- * child resources.
- *
- * Generated from protobuf field bool force = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setForce($var)
- {
- GPBUtil::checkBool($var);
- $this->force = $var;
-
- return $this;
- }
-
- /**
- * Optional. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * Optional. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteTargetRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteTargetRequest.php
deleted file mode 100644
index 36ef1af47ace..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteTargetRequest.php
+++ /dev/null
@@ -1,278 +0,0 @@
-google.cloud.deploy.v1.DeleteTargetRequest
- */
-class DeleteTargetRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The name of the `Target` to delete. Format should be
- * `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $request_id = '';
- /**
- * Optional. If set to true, then deleting an already deleted or non-existing
- * `Target` will succeed.
- *
- * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $allow_missing = false;
- /**
- * Optional. If set, validate the request and preview the review, but do not
- * actually post it.
- *
- * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $validate_only = false;
- /**
- * Optional. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $etag = '';
-
- /**
- * @param string $name Required. The name of the `Target` to delete. Format should be
- * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. Please see
- * {@see CloudDeployClient::targetName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\DeleteTargetRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The name of the `Target` to delete. Format should be
- * `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
- * @type string $request_id
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $allow_missing
- * Optional. If set to true, then deleting an already deleted or non-existing
- * `Target` will succeed.
- * @type bool $validate_only
- * Optional. If set, validate the request and preview the review, but do not
- * actually post it.
- * @type string $etag
- * Optional. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The name of the `Target` to delete. Format should be
- * `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The name of the `Target` to delete. Format should be
- * `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, then deleting an already deleted or non-existing
- * `Target` will succeed.
- *
- * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getAllowMissing()
- {
- return $this->allow_missing;
- }
-
- /**
- * Optional. If set to true, then deleting an already deleted or non-existing
- * `Target` will succeed.
- *
- * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setAllowMissing($var)
- {
- GPBUtil::checkBool($var);
- $this->allow_missing = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set, validate the request and preview the review, but do not
- * actually post it.
- *
- * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getValidateOnly()
- {
- return $this->validate_only;
- }
-
- /**
- * Optional. If set, validate the request and preview the review, but do not
- * actually post it.
- *
- * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setValidateOnly($var)
- {
- GPBUtil::checkBool($var);
- $this->validate_only = $var;
-
- return $this;
- }
-
- /**
- * Optional. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * Optional. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipeline.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipeline.php
deleted file mode 100644
index 46ae0b0ad9a8..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipeline.php
+++ /dev/null
@@ -1,510 +0,0 @@
-google.cloud.deploy.v1.DeliveryPipeline
- */
-class DeliveryPipeline extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. Name of the `DeliveryPipeline`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}`.
- * The `deliveryPipeline` component must match
- * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $name = '';
- /**
- * Output only. Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $uid = '';
- /**
- * Description of the `DeliveryPipeline`. Max length is 255 characters.
- *
- * Generated from protobuf field string description = 3;
- */
- protected $description = '';
- /**
- * User annotations. These attributes can only be set and used by the
- * user, and not by Cloud Deploy.
- *
- * Generated from protobuf field map annotations = 4;
- */
- private $annotations;
- /**
- * Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 128 bytes.
- *
- * Generated from protobuf field map labels = 5;
- */
- private $labels;
- /**
- * Output only. Time at which the pipeline was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Output only. Most recent time at which the pipeline was updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $update_time = null;
- /**
- * Output only. Information around the state of the Delivery Pipeline.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $condition = null;
- /**
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 10;
- */
- protected $etag = '';
- /**
- * When suspended, no new releases or rollouts can be created,
- * but in-progress ones will complete.
- *
- * Generated from protobuf field bool suspended = 12;
- */
- protected $suspended = false;
- protected $pipeline;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Optional. Name of the `DeliveryPipeline`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}`.
- * The `deliveryPipeline` component must match
- * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
- * @type string $uid
- * Output only. Unique identifier of the `DeliveryPipeline`.
- * @type string $description
- * Description of the `DeliveryPipeline`. Max length is 255 characters.
- * @type array|\Google\Protobuf\Internal\MapField $annotations
- * User annotations. These attributes can only be set and used by the
- * user, and not by Cloud Deploy.
- * @type array|\Google\Protobuf\Internal\MapField $labels
- * Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 128 bytes.
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. Time at which the pipeline was created.
- * @type \Google\Protobuf\Timestamp $update_time
- * Output only. Most recent time at which the pipeline was updated.
- * @type \Google\Cloud\Deploy\V1\SerialPipeline $serial_pipeline
- * SerialPipeline defines a sequential set of stages for a
- * `DeliveryPipeline`.
- * @type \Google\Cloud\Deploy\V1\PipelineCondition $condition
- * Output only. Information around the state of the Delivery Pipeline.
- * @type string $etag
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- * @type bool $suspended
- * When suspended, no new releases or rollouts can be created,
- * but in-progress ones will complete.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. Name of the `DeliveryPipeline`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}`.
- * The `deliveryPipeline` component must match
- * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Optional. Name of the `DeliveryPipeline`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}`.
- * The `deliveryPipeline` component must match
- * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Output only. Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getUid()
- {
- return $this->uid;
- }
-
- /**
- * Output only. Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->uid = $var;
-
- return $this;
- }
-
- /**
- * Description of the `DeliveryPipeline`. Max length is 255 characters.
- *
- * Generated from protobuf field string description = 3;
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * Description of the `DeliveryPipeline`. Max length is 255 characters.
- *
- * Generated from protobuf field string description = 3;
- * @param string $var
- * @return $this
- */
- public function setDescription($var)
- {
- GPBUtil::checkString($var, True);
- $this->description = $var;
-
- return $this;
- }
-
- /**
- * User annotations. These attributes can only be set and used by the
- * user, and not by Cloud Deploy.
- *
- * Generated from protobuf field map annotations = 4;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getAnnotations()
- {
- return $this->annotations;
- }
-
- /**
- * User annotations. These attributes can only be set and used by the
- * user, and not by Cloud Deploy.
- *
- * Generated from protobuf field map annotations = 4;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setAnnotations($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->annotations = $arr;
-
- return $this;
- }
-
- /**
- * Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 128 bytes.
- *
- * Generated from protobuf field map labels = 5;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getLabels()
- {
- return $this->labels;
- }
-
- /**
- * Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 128 bytes.
- *
- * Generated from protobuf field map labels = 5;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setLabels($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->labels = $arr;
-
- return $this;
- }
-
- /**
- * Output only. Time at which the pipeline was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. Time at which the pipeline was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. Most recent time at which the pipeline was updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->update_time;
- }
-
- public function hasUpdateTime()
- {
- return isset($this->update_time);
- }
-
- public function clearUpdateTime()
- {
- unset($this->update_time);
- }
-
- /**
- * Output only. Most recent time at which the pipeline was updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->update_time = $var;
-
- return $this;
- }
-
- /**
- * SerialPipeline defines a sequential set of stages for a
- * `DeliveryPipeline`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.SerialPipeline serial_pipeline = 8;
- * @return \Google\Cloud\Deploy\V1\SerialPipeline|null
- */
- public function getSerialPipeline()
- {
- return $this->readOneof(8);
- }
-
- public function hasSerialPipeline()
- {
- return $this->hasOneof(8);
- }
-
- /**
- * SerialPipeline defines a sequential set of stages for a
- * `DeliveryPipeline`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.SerialPipeline serial_pipeline = 8;
- * @param \Google\Cloud\Deploy\V1\SerialPipeline $var
- * @return $this
- */
- public function setSerialPipeline($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\SerialPipeline::class);
- $this->writeOneof(8, $var);
-
- return $this;
- }
-
- /**
- * Output only. Information around the state of the Delivery Pipeline.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\PipelineCondition|null
- */
- public function getCondition()
- {
- return $this->condition;
- }
-
- public function hasCondition()
- {
- return isset($this->condition);
- }
-
- public function clearCondition()
- {
- unset($this->condition);
- }
-
- /**
- * Output only. Information around the state of the Delivery Pipeline.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\PipelineCondition $var
- * @return $this
- */
- public function setCondition($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PipelineCondition::class);
- $this->condition = $var;
-
- return $this;
- }
-
- /**
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 10;
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 10;
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
- /**
- * When suspended, no new releases or rollouts can be created,
- * but in-progress ones will complete.
- *
- * Generated from protobuf field bool suspended = 12;
- * @return bool
- */
- public function getSuspended()
- {
- return $this->suspended;
- }
-
- /**
- * When suspended, no new releases or rollouts can be created,
- * but in-progress ones will complete.
- *
- * Generated from protobuf field bool suspended = 12;
- * @param bool $var
- * @return $this
- */
- public function setSuspended($var)
- {
- GPBUtil::checkBool($var);
- $this->suspended = $var;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getPipeline()
- {
- return $this->whichOneof("pipeline");
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipelineNotificationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipelineNotificationEvent.php
deleted file mode 100644
index 835a16910e9e..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipelineNotificationEvent.php
+++ /dev/null
@@ -1,171 +0,0 @@
-google.cloud.deploy.v1.DeliveryPipelineNotificationEvent
- */
-class DeliveryPipelineNotificationEvent extends \Google\Protobuf\Internal\Message
-{
- /**
- * Debug message for when a notification fails to send.
- *
- * Generated from protobuf field string message = 1;
- */
- protected $message = '';
- /**
- * Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string pipeline_uid = 4;
- */
- protected $pipeline_uid = '';
- /**
- * The name of the `Delivery Pipeline`.
- *
- * Generated from protobuf field string delivery_pipeline = 2;
- */
- protected $delivery_pipeline = '';
- /**
- * Type of this notification, e.g. for a Pub/Sub failure.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3;
- */
- protected $type = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $message
- * Debug message for when a notification fails to send.
- * @type string $pipeline_uid
- * Unique identifier of the `DeliveryPipeline`.
- * @type string $delivery_pipeline
- * The name of the `Delivery Pipeline`.
- * @type int $type
- * Type of this notification, e.g. for a Pub/Sub failure.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\DeliverypipelineNotificationPayload::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Debug message for when a notification fails to send.
- *
- * Generated from protobuf field string message = 1;
- * @return string
- */
- public function getMessage()
- {
- return $this->message;
- }
-
- /**
- * Debug message for when a notification fails to send.
- *
- * Generated from protobuf field string message = 1;
- * @param string $var
- * @return $this
- */
- public function setMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->message = $var;
-
- return $this;
- }
-
- /**
- * Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string pipeline_uid = 4;
- * @return string
- */
- public function getPipelineUid()
- {
- return $this->pipeline_uid;
- }
-
- /**
- * Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string pipeline_uid = 4;
- * @param string $var
- * @return $this
- */
- public function setPipelineUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->pipeline_uid = $var;
-
- return $this;
- }
-
- /**
- * The name of the `Delivery Pipeline`.
- *
- * Generated from protobuf field string delivery_pipeline = 2;
- * @return string
- */
- public function getDeliveryPipeline()
- {
- return $this->delivery_pipeline;
- }
-
- /**
- * The name of the `Delivery Pipeline`.
- *
- * Generated from protobuf field string delivery_pipeline = 2;
- * @param string $var
- * @return $this
- */
- public function setDeliveryPipeline($var)
- {
- GPBUtil::checkString($var, True);
- $this->delivery_pipeline = $var;
-
- return $this;
- }
-
- /**
- * Type of this notification, e.g. for a Pub/Sub failure.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3;
- * @return int
- */
- public function getType()
- {
- return $this->type;
- }
-
- /**
- * Type of this notification, e.g. for a Pub/Sub failure.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3;
- * @param int $var
- * @return $this
- */
- public function setType($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class);
- $this->type = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployArtifact.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployArtifact.php
deleted file mode 100644
index f7b78f40dd51..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployArtifact.php
+++ /dev/null
@@ -1,109 +0,0 @@
-google.cloud.deploy.v1.DeployArtifact
- */
-class DeployArtifact extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. URI of a directory containing the artifacts. All paths are
- * relative to this location.
- *
- * Generated from protobuf field string artifact_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $artifact_uri = '';
- /**
- * Output only. File paths of the manifests applied during the deploy
- * operation relative to the URI.
- *
- * Generated from protobuf field repeated string manifest_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $manifest_paths;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $artifact_uri
- * Output only. URI of a directory containing the artifacts. All paths are
- * relative to this location.
- * @type array|\Google\Protobuf\Internal\RepeatedField $manifest_paths
- * Output only. File paths of the manifests applied during the deploy
- * operation relative to the URI.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. URI of a directory containing the artifacts. All paths are
- * relative to this location.
- *
- * Generated from protobuf field string artifact_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getArtifactUri()
- {
- return $this->artifact_uri;
- }
-
- /**
- * Output only. URI of a directory containing the artifacts. All paths are
- * relative to this location.
- *
- * Generated from protobuf field string artifact_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setArtifactUri($var)
- {
- GPBUtil::checkString($var, True);
- $this->artifact_uri = $var;
-
- return $this;
- }
-
- /**
- * Output only. File paths of the manifests applied during the deploy
- * operation relative to the URI.
- *
- * Generated from protobuf field repeated string manifest_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getManifestPaths()
- {
- return $this->manifest_paths;
- }
-
- /**
- * Output only. File paths of the manifests applied during the deploy
- * operation relative to the URI.
- *
- * Generated from protobuf field repeated string manifest_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setManifestPaths($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->manifest_paths = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJob.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJob.php
deleted file mode 100644
index 10225c0936ea..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJob.php
+++ /dev/null
@@ -1,33 +0,0 @@
-google.cloud.deploy.v1.DeployJob
- */
-class DeployJob extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRun.php
deleted file mode 100644
index 87d81854fcbb..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRun.php
+++ /dev/null
@@ -1,235 +0,0 @@
-google.cloud.deploy.v1.DeployJobRun
- */
-class DeployJobRun extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to deploy. Format is
- * `projects/{project}/locations/{location}/builds/{build}`.
- *
- * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- */
- protected $build = '';
- /**
- * Output only. The reason the deploy failed. This will always be unspecified
- * while the deploy is in progress or if it succeeded.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $failure_cause = 0;
- /**
- * Output only. Additional information about the deploy failure, if available.
- *
- * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $failure_message = '';
- /**
- * Output only. Metadata containing information about the deploy job run.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $metadata = null;
- /**
- * Output only. The artifact of a deploy job run, if available.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $artifact = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $build
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to deploy. Format is
- * `projects/{project}/locations/{location}/builds/{build}`.
- * @type int $failure_cause
- * Output only. The reason the deploy failed. This will always be unspecified
- * while the deploy is in progress or if it succeeded.
- * @type string $failure_message
- * Output only. Additional information about the deploy failure, if available.
- * @type \Google\Cloud\Deploy\V1\DeployJobRunMetadata $metadata
- * Output only. Metadata containing information about the deploy job run.
- * @type \Google\Cloud\Deploy\V1\DeployArtifact $artifact
- * Output only. The artifact of a deploy job run, if available.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to deploy. Format is
- * `projects/{project}/locations/{location}/builds/{build}`.
- *
- * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @return string
- */
- public function getBuild()
- {
- return $this->build;
- }
-
- /**
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to deploy. Format is
- * `projects/{project}/locations/{location}/builds/{build}`.
- *
- * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setBuild($var)
- {
- GPBUtil::checkString($var, True);
- $this->build = $var;
-
- return $this;
- }
-
- /**
- * Output only. The reason the deploy failed. This will always be unspecified
- * while the deploy is in progress or if it succeeded.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getFailureCause()
- {
- return $this->failure_cause;
- }
-
- /**
- * Output only. The reason the deploy failed. This will always be unspecified
- * while the deploy is in progress or if it succeeded.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setFailureCause($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\DeployJobRun\FailureCause::class);
- $this->failure_cause = $var;
-
- return $this;
- }
-
- /**
- * Output only. Additional information about the deploy failure, if available.
- *
- * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getFailureMessage()
- {
- return $this->failure_message;
- }
-
- /**
- * Output only. Additional information about the deploy failure, if available.
- *
- * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setFailureMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->failure_message = $var;
-
- return $this;
- }
-
- /**
- * Output only. Metadata containing information about the deploy job run.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\DeployJobRunMetadata|null
- */
- public function getMetadata()
- {
- return $this->metadata;
- }
-
- public function hasMetadata()
- {
- return isset($this->metadata);
- }
-
- public function clearMetadata()
- {
- unset($this->metadata);
- }
-
- /**
- * Output only. Metadata containing information about the deploy job run.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\DeployJobRunMetadata $var
- * @return $this
- */
- public function setMetadata($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeployJobRunMetadata::class);
- $this->metadata = $var;
-
- return $this;
- }
-
- /**
- * Output only. The artifact of a deploy job run, if available.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\DeployArtifact|null
- */
- public function getArtifact()
- {
- return $this->artifact;
- }
-
- public function hasArtifact()
- {
- return isset($this->artifact);
- }
-
- public function clearArtifact()
- {
- unset($this->artifact);
- }
-
- /**
- * Output only. The artifact of a deploy job run, if available.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\DeployArtifact $var
- * @return $this
- */
- public function setArtifact($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeployArtifact::class);
- $this->artifact = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRun/FailureCause.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRun/FailureCause.php
deleted file mode 100644
index fa77a22b0e5a..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRun/FailureCause.php
+++ /dev/null
@@ -1,97 +0,0 @@
-google.cloud.deploy.v1.DeployJobRun.FailureCause
- */
-class FailureCause
-{
- /**
- * No reason for failure is specified.
- *
- * Generated from protobuf enum FAILURE_CAUSE_UNSPECIFIED = 0;
- */
- const FAILURE_CAUSE_UNSPECIFIED = 0;
- /**
- * Cloud Build is not available, either because it is not enabled or because
- * Cloud Deploy has insufficient permissions. See [Required
- * permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account#required_permissions).
- *
- * Generated from protobuf enum CLOUD_BUILD_UNAVAILABLE = 1;
- */
- const CLOUD_BUILD_UNAVAILABLE = 1;
- /**
- * The deploy operation did not complete successfully; check Cloud Build
- * logs.
- *
- * Generated from protobuf enum EXECUTION_FAILED = 2;
- */
- const EXECUTION_FAILED = 2;
- /**
- * The deploy job run did not complete within the alloted time.
- *
- * Generated from protobuf enum DEADLINE_EXCEEDED = 3;
- */
- const DEADLINE_EXCEEDED = 3;
- /**
- * There were missing resources in the runtime environment required for a
- * canary deployment. Check the Cloud Build logs for more information.
- *
- * Generated from protobuf enum MISSING_RESOURCES_FOR_CANARY = 4;
- */
- const MISSING_RESOURCES_FOR_CANARY = 4;
- /**
- * Cloud Build failed to fulfill Cloud Deploy's request. See failure_message
- * for additional details.
- *
- * Generated from protobuf enum CLOUD_BUILD_REQUEST_FAILED = 5;
- */
- const CLOUD_BUILD_REQUEST_FAILED = 5;
- /**
- * The deploy operation had a feature configured that is not supported.
- *
- * Generated from protobuf enum DEPLOY_FEATURE_NOT_SUPPORTED = 6;
- */
- const DEPLOY_FEATURE_NOT_SUPPORTED = 6;
-
- private static $valueToName = [
- self::FAILURE_CAUSE_UNSPECIFIED => 'FAILURE_CAUSE_UNSPECIFIED',
- self::CLOUD_BUILD_UNAVAILABLE => 'CLOUD_BUILD_UNAVAILABLE',
- self::EXECUTION_FAILED => 'EXECUTION_FAILED',
- self::DEADLINE_EXCEEDED => 'DEADLINE_EXCEEDED',
- self::MISSING_RESOURCES_FOR_CANARY => 'MISSING_RESOURCES_FOR_CANARY',
- self::CLOUD_BUILD_REQUEST_FAILED => 'CLOUD_BUILD_REQUEST_FAILED',
- self::DEPLOY_FEATURE_NOT_SUPPORTED => 'DEPLOY_FEATURE_NOT_SUPPORTED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(FailureCause::class, \Google\Cloud\Deploy\V1\DeployJobRun_FailureCause::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRunMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRunMetadata.php
deleted file mode 100644
index b1a4c47c9cbd..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRunMetadata.php
+++ /dev/null
@@ -1,170 +0,0 @@
-google.cloud.deploy.v1.DeployJobRunMetadata
- */
-class DeployJobRunMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The name of the Cloud Run Service that is associated with a
- * `DeployJobRun`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $cloud_run = null;
- /**
- * Output only. Custom Target metadata associated with a `DeployJobRun`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $custom_target = null;
- /**
- * Output only. Custom metadata provided by user-defined deploy operation.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $custom = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Deploy\V1\CloudRunMetadata $cloud_run
- * Output only. The name of the Cloud Run Service that is associated with a
- * `DeployJobRun`.
- * @type \Google\Cloud\Deploy\V1\CustomTargetDeployMetadata $custom_target
- * Output only. Custom Target metadata associated with a `DeployJobRun`.
- * @type \Google\Cloud\Deploy\V1\CustomMetadata $custom
- * Output only. Custom metadata provided by user-defined deploy operation.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The name of the Cloud Run Service that is associated with a
- * `DeployJobRun`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\CloudRunMetadata|null
- */
- public function getCloudRun()
- {
- return $this->cloud_run;
- }
-
- public function hasCloudRun()
- {
- return isset($this->cloud_run);
- }
-
- public function clearCloudRun()
- {
- unset($this->cloud_run);
- }
-
- /**
- * Output only. The name of the Cloud Run Service that is associated with a
- * `DeployJobRun`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\CloudRunMetadata $var
- * @return $this
- */
- public function setCloudRun($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CloudRunMetadata::class);
- $this->cloud_run = $var;
-
- return $this;
- }
-
- /**
- * Output only. Custom Target metadata associated with a `DeployJobRun`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\CustomTargetDeployMetadata|null
- */
- public function getCustomTarget()
- {
- return $this->custom_target;
- }
-
- public function hasCustomTarget()
- {
- return isset($this->custom_target);
- }
-
- public function clearCustomTarget()
- {
- unset($this->custom_target);
- }
-
- /**
- * Output only. Custom Target metadata associated with a `DeployJobRun`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\CustomTargetDeployMetadata $var
- * @return $this
- */
- public function setCustomTarget($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomTargetDeployMetadata::class);
- $this->custom_target = $var;
-
- return $this;
- }
-
- /**
- * Output only. Custom metadata provided by user-defined deploy operation.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\CustomMetadata|null
- */
- public function getCustom()
- {
- return $this->custom;
- }
-
- public function hasCustom()
- {
- return isset($this->custom);
- }
-
- public function clearCustom()
- {
- unset($this->custom);
- }
-
- /**
- * Output only. Custom metadata provided by user-defined deploy operation.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\CustomMetadata $var
- * @return $this
- */
- public function setCustom($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomMetadata::class);
- $this->custom = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployParameters.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployParameters.php
deleted file mode 100644
index 858f6f734f62..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployParameters.php
+++ /dev/null
@@ -1,109 +0,0 @@
-google.cloud.deploy.v1.DeployParameters
- */
-class DeployParameters extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Values are deploy parameters in key-value pairs.
- *
- * Generated from protobuf field map values = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- private $values;
- /**
- * Optional. Deploy parameters are applied to targets with match labels.
- * If unspecified, deploy parameters are applied to all targets (including
- * child targets of a multi-target).
- *
- * Generated from protobuf field map match_target_labels = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $match_target_labels;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\MapField $values
- * Required. Values are deploy parameters in key-value pairs.
- * @type array|\Google\Protobuf\Internal\MapField $match_target_labels
- * Optional. Deploy parameters are applied to targets with match labels.
- * If unspecified, deploy parameters are applied to all targets (including
- * child targets of a multi-target).
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Values are deploy parameters in key-value pairs.
- *
- * Generated from protobuf field map values = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getValues()
- {
- return $this->values;
- }
-
- /**
- * Required. Values are deploy parameters in key-value pairs.
- *
- * Generated from protobuf field map values = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setValues($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->values = $arr;
-
- return $this;
- }
-
- /**
- * Optional. Deploy parameters are applied to targets with match labels.
- * If unspecified, deploy parameters are applied to all targets (including
- * child targets of a multi-target).
- *
- * Generated from protobuf field map match_target_labels = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getMatchTargetLabels()
- {
- return $this->match_target_labels;
- }
-
- /**
- * Optional. Deploy parameters are applied to targets with match labels.
- * If unspecified, deploy parameters are applied to all targets (including
- * child targets of a multi-target).
- *
- * Generated from protobuf field map match_target_labels = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setMatchTargetLabels($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->match_target_labels = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeploymentJobs.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeploymentJobs.php
deleted file mode 100644
index a4335b13b770..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeploymentJobs.php
+++ /dev/null
@@ -1,209 +0,0 @@
-google.cloud.deploy.v1.DeploymentJobs
- */
-class DeploymentJobs extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The deploy Job. This is the deploy job in the phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $deploy_job = null;
- /**
- * Output only. The verify Job. Runs after a deploy if the deploy succeeds.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $verify_job = null;
- /**
- * Output only. The predeploy Job, which is the first job on the phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Job predeploy_job = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $predeploy_job = null;
- /**
- * Output only. The postdeploy Job, which is the last job on the phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Job postdeploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $postdeploy_job = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Deploy\V1\Job $deploy_job
- * Output only. The deploy Job. This is the deploy job in the phase.
- * @type \Google\Cloud\Deploy\V1\Job $verify_job
- * Output only. The verify Job. Runs after a deploy if the deploy succeeds.
- * @type \Google\Cloud\Deploy\V1\Job $predeploy_job
- * Output only. The predeploy Job, which is the first job on the phase.
- * @type \Google\Cloud\Deploy\V1\Job $postdeploy_job
- * Output only. The postdeploy Job, which is the last job on the phase.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The deploy Job. This is the deploy job in the phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\Job|null
- */
- public function getDeployJob()
- {
- return $this->deploy_job;
- }
-
- public function hasDeployJob()
- {
- return isset($this->deploy_job);
- }
-
- public function clearDeployJob()
- {
- unset($this->deploy_job);
- }
-
- /**
- * Output only. The deploy Job. This is the deploy job in the phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\Job $var
- * @return $this
- */
- public function setDeployJob($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Job::class);
- $this->deploy_job = $var;
-
- return $this;
- }
-
- /**
- * Output only. The verify Job. Runs after a deploy if the deploy succeeds.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\Job|null
- */
- public function getVerifyJob()
- {
- return $this->verify_job;
- }
-
- public function hasVerifyJob()
- {
- return isset($this->verify_job);
- }
-
- public function clearVerifyJob()
- {
- unset($this->verify_job);
- }
-
- /**
- * Output only. The verify Job. Runs after a deploy if the deploy succeeds.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\Job $var
- * @return $this
- */
- public function setVerifyJob($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Job::class);
- $this->verify_job = $var;
-
- return $this;
- }
-
- /**
- * Output only. The predeploy Job, which is the first job on the phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Job predeploy_job = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\Job|null
- */
- public function getPredeployJob()
- {
- return $this->predeploy_job;
- }
-
- public function hasPredeployJob()
- {
- return isset($this->predeploy_job);
- }
-
- public function clearPredeployJob()
- {
- unset($this->predeploy_job);
- }
-
- /**
- * Output only. The predeploy Job, which is the first job on the phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Job predeploy_job = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\Job $var
- * @return $this
- */
- public function setPredeployJob($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Job::class);
- $this->predeploy_job = $var;
-
- return $this;
- }
-
- /**
- * Output only. The postdeploy Job, which is the last job on the phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Job postdeploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\Job|null
- */
- public function getPostdeployJob()
- {
- return $this->postdeploy_job;
- }
-
- public function hasPostdeployJob()
- {
- return isset($this->postdeploy_job);
- }
-
- public function clearPostdeployJob()
- {
- unset($this->postdeploy_job);
- }
-
- /**
- * Output only. The postdeploy Job, which is the last job on the phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Job postdeploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\Job $var
- * @return $this
- */
- public function setPostdeployJob($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Job::class);
- $this->postdeploy_job = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ExecutionConfig.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ExecutionConfig.php
deleted file mode 100644
index 17f5e8d0c0d3..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ExecutionConfig.php
+++ /dev/null
@@ -1,328 +0,0 @@
-google.cloud.deploy.v1.ExecutionConfig
- */
-class ExecutionConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Usages when this configuration should be applied.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- private $usages;
- /**
- * Optional. The resource name of the `WorkerPool`, with the format
- * `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
- * If this optional field is unspecified, the default Cloud Build pool will be
- * used.
- *
- * Generated from protobuf field string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- */
- protected $worker_pool = '';
- /**
- * Optional. Google service account to use for execution. If unspecified,
- * the project execution service account
- * (-compute@developer.gserviceaccount.com) is used.
- *
- * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $service_account = '';
- /**
- * Optional. Cloud Storage location in which to store execution outputs. This
- * can either be a bucket ("gs://my-bucket") or a path within a bucket
- * ("gs://my-bucket/my-dir").
- * If unspecified, a default bucket located in the same region will be used.
- *
- * Generated from protobuf field string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $artifact_storage = '';
- /**
- * Optional. Execution timeout for a Cloud Build Execution. This must be
- * between 10m and 24h in seconds format. If unspecified, a default timeout of
- * 1h is used.
- *
- * Generated from protobuf field .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $execution_timeout = null;
- protected $execution_environment;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\RepeatedField $usages
- * Required. Usages when this configuration should be applied.
- * @type \Google\Cloud\Deploy\V1\DefaultPool $default_pool
- * Optional. Use default Cloud Build pool.
- * @type \Google\Cloud\Deploy\V1\PrivatePool $private_pool
- * Optional. Use private Cloud Build pool.
- * @type string $worker_pool
- * Optional. The resource name of the `WorkerPool`, with the format
- * `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
- * If this optional field is unspecified, the default Cloud Build pool will be
- * used.
- * @type string $service_account
- * Optional. Google service account to use for execution. If unspecified,
- * the project execution service account
- * (-compute@developer.gserviceaccount.com) is used.
- * @type string $artifact_storage
- * Optional. Cloud Storage location in which to store execution outputs. This
- * can either be a bucket ("gs://my-bucket") or a path within a bucket
- * ("gs://my-bucket/my-dir").
- * If unspecified, a default bucket located in the same region will be used.
- * @type \Google\Protobuf\Duration $execution_timeout
- * Optional. Execution timeout for a Cloud Build Execution. This must be
- * between 10m and 24h in seconds format. If unspecified, a default timeout of
- * 1h is used.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Usages when this configuration should be applied.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getUsages()
- {
- return $this->usages;
- }
-
- /**
- * Required. Usages when this configuration should be applied.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setUsages($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Deploy\V1\ExecutionConfig\ExecutionEnvironmentUsage::class);
- $this->usages = $arr;
-
- return $this;
- }
-
- /**
- * Optional. Use default Cloud Build pool.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Deploy\V1\DefaultPool|null
- */
- public function getDefaultPool()
- {
- return $this->readOneof(2);
- }
-
- public function hasDefaultPool()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * Optional. Use default Cloud Build pool.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Deploy\V1\DefaultPool $var
- * @return $this
- */
- public function setDefaultPool($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DefaultPool::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * Optional. Use private Cloud Build pool.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Deploy\V1\PrivatePool|null
- */
- public function getPrivatePool()
- {
- return $this->readOneof(3);
- }
-
- public function hasPrivatePool()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * Optional. Use private Cloud Build pool.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Deploy\V1\PrivatePool $var
- * @return $this
- */
- public function setPrivatePool($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PrivatePool::class);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * Optional. The resource name of the `WorkerPool`, with the format
- * `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
- * If this optional field is unspecified, the default Cloud Build pool will be
- * used.
- *
- * Generated from protobuf field string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- * @return string
- */
- public function getWorkerPool()
- {
- return $this->worker_pool;
- }
-
- /**
- * Optional. The resource name of the `WorkerPool`, with the format
- * `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
- * If this optional field is unspecified, the default Cloud Build pool will be
- * used.
- *
- * Generated from protobuf field string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setWorkerPool($var)
- {
- GPBUtil::checkString($var, True);
- $this->worker_pool = $var;
-
- return $this;
- }
-
- /**
- * Optional. Google service account to use for execution. If unspecified,
- * the project execution service account
- * (-compute@developer.gserviceaccount.com) is used.
- *
- * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getServiceAccount()
- {
- return $this->service_account;
- }
-
- /**
- * Optional. Google service account to use for execution. If unspecified,
- * the project execution service account
- * (-compute@developer.gserviceaccount.com) is used.
- *
- * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setServiceAccount($var)
- {
- GPBUtil::checkString($var, True);
- $this->service_account = $var;
-
- return $this;
- }
-
- /**
- * Optional. Cloud Storage location in which to store execution outputs. This
- * can either be a bucket ("gs://my-bucket") or a path within a bucket
- * ("gs://my-bucket/my-dir").
- * If unspecified, a default bucket located in the same region will be used.
- *
- * Generated from protobuf field string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getArtifactStorage()
- {
- return $this->artifact_storage;
- }
-
- /**
- * Optional. Cloud Storage location in which to store execution outputs. This
- * can either be a bucket ("gs://my-bucket") or a path within a bucket
- * ("gs://my-bucket/my-dir").
- * If unspecified, a default bucket located in the same region will be used.
- *
- * Generated from protobuf field string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setArtifactStorage($var)
- {
- GPBUtil::checkString($var, True);
- $this->artifact_storage = $var;
-
- return $this;
- }
-
- /**
- * Optional. Execution timeout for a Cloud Build Execution. This must be
- * between 10m and 24h in seconds format. If unspecified, a default timeout of
- * 1h is used.
- *
- * Generated from protobuf field .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Duration|null
- */
- public function getExecutionTimeout()
- {
- return $this->execution_timeout;
- }
-
- public function hasExecutionTimeout()
- {
- return isset($this->execution_timeout);
- }
-
- public function clearExecutionTimeout()
- {
- unset($this->execution_timeout);
- }
-
- /**
- * Optional. Execution timeout for a Cloud Build Execution. This must be
- * between 10m and 24h in seconds format. If unspecified, a default timeout of
- * 1h is used.
- *
- * Generated from protobuf field .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setExecutionTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->execution_timeout = $var;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getExecutionEnvironment()
- {
- return $this->whichOneof("execution_environment");
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ExecutionConfig/ExecutionEnvironmentUsage.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ExecutionConfig/ExecutionEnvironmentUsage.php
deleted file mode 100644
index cab2e9f5b440..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ExecutionConfig/ExecutionEnvironmentUsage.php
+++ /dev/null
@@ -1,85 +0,0 @@
-google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage
- */
-class ExecutionEnvironmentUsage
-{
- /**
- * Default value. This value is unused.
- *
- * Generated from protobuf enum EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED = 0;
- */
- const EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED = 0;
- /**
- * Use for rendering.
- *
- * Generated from protobuf enum RENDER = 1;
- */
- const RENDER = 1;
- /**
- * Use for deploying and deployment hooks.
- *
- * Generated from protobuf enum DEPLOY = 2;
- */
- const DEPLOY = 2;
- /**
- * Use for deployment verification.
- *
- * Generated from protobuf enum VERIFY = 3;
- */
- const VERIFY = 3;
- /**
- * Use for predeploy job execution.
- *
- * Generated from protobuf enum PREDEPLOY = 4;
- */
- const PREDEPLOY = 4;
- /**
- * Use for postdeploy job execution.
- *
- * Generated from protobuf enum POSTDEPLOY = 5;
- */
- const POSTDEPLOY = 5;
-
- private static $valueToName = [
- self::EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED => 'EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED',
- self::RENDER => 'RENDER',
- self::DEPLOY => 'DEPLOY',
- self::VERIFY => 'VERIFY',
- self::PREDEPLOY => 'PREDEPLOY',
- self::POSTDEPLOY => 'POSTDEPLOY',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(ExecutionEnvironmentUsage::class, \Google\Cloud\Deploy\V1\ExecutionConfig_ExecutionEnvironmentUsage::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetAutomationRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetAutomationRequest.php
deleted file mode 100644
index f124bb5f99e0..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetAutomationRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.deploy.v1.GetAutomationRequest
- */
-class GetAutomationRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the `Automation`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. Name of the `Automation`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. Please see
- * {@see CloudDeployClient::automationName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\GetAutomationRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Name of the `Automation`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the `Automation`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Name of the `Automation`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetAutomationRunRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetAutomationRunRequest.php
deleted file mode 100644
index 015abd5ea426..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetAutomationRunRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.deploy.v1.GetAutomationRunRequest
- */
-class GetAutomationRunRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the `AutomationRun`. Format must be
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. Name of the `AutomationRun`. Format must be
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. Please see
- * {@see CloudDeployClient::automationRunName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\GetAutomationRunRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Name of the `AutomationRun`. Format must be
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the `AutomationRun`. Format must be
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Name of the `AutomationRun`. Format must be
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetConfigRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetConfigRequest.php
deleted file mode 100644
index affb901f5728..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetConfigRequest.php
+++ /dev/null
@@ -1,81 +0,0 @@
-google.cloud.deploy.v1.GetConfigRequest
- */
-class GetConfigRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of requested configuration.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. Name of requested configuration. Please see
- * {@see CloudDeployClient::configName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\GetConfigRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Name of requested configuration.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of requested configuration.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Name of requested configuration.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetCustomTargetTypeRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetCustomTargetTypeRequest.php
deleted file mode 100644
index 6ebe118b5a26..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetCustomTargetTypeRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.deploy.v1.GetCustomTargetTypeRequest
- */
-class GetCustomTargetTypeRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the `CustomTargetType`. Format must be
- * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. Name of the `CustomTargetType`. Format must be
- * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. Please see
- * {@see CloudDeployClient::customTargetTypeName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\GetCustomTargetTypeRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Name of the `CustomTargetType`. Format must be
- * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the `CustomTargetType`. Format must be
- * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Name of the `CustomTargetType`. Format must be
- * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetDeliveryPipelineRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetDeliveryPipelineRequest.php
deleted file mode 100644
index 739f790fa5f3..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetDeliveryPipelineRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.deploy.v1.GetDeliveryPipelineRequest
- */
-class GetDeliveryPipelineRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the `DeliveryPipeline`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. Name of the `DeliveryPipeline`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. Please see
- * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\GetDeliveryPipelineRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Name of the `DeliveryPipeline`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the `DeliveryPipeline`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Name of the `DeliveryPipeline`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetJobRunRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetJobRunRequest.php
deleted file mode 100644
index 8e935669dd16..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetJobRunRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.deploy.v1.GetJobRunRequest
- */
-class GetJobRunRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the `JobRun`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. Name of the `JobRun`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}`. Please see
- * {@see CloudDeployClient::jobRunName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\GetJobRunRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Name of the `JobRun`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the `JobRun`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Name of the `JobRun`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetReleaseRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetReleaseRequest.php
deleted file mode 100644
index ee0d72b371ac..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetReleaseRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.deploy.v1.GetReleaseRequest
- */
-class GetReleaseRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the `Release`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. Name of the `Release`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. Please see
- * {@see CloudDeployClient::releaseName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\GetReleaseRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Name of the `Release`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the `Release`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Name of the `Release`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetRolloutRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetRolloutRequest.php
deleted file mode 100644
index 9ff5d3af52af..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetRolloutRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.deploy.v1.GetRolloutRequest
- */
-class GetRolloutRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the `Rollout`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. Name of the `Rollout`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}`. Please see
- * {@see CloudDeployClient::rolloutName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\GetRolloutRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Name of the `Rollout`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the `Rollout`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Name of the `Rollout`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetTargetRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetTargetRequest.php
deleted file mode 100644
index e88f8c170dd1..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetTargetRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.deploy.v1.GetTargetRequest
- */
-class GetTargetRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the `Target`. Format must be
- * `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. Name of the `Target`. Format must be
- * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. Please see
- * {@see CloudDeployClient::targetName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\GetTargetRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Name of the `Target`. Format must be
- * `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the `Target`. Format must be
- * `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Name of the `Target`. Format must be
- * `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GkeCluster.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GkeCluster.php
deleted file mode 100644
index 0f11f604a390..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GkeCluster.php
+++ /dev/null
@@ -1,129 +0,0 @@
-google.cloud.deploy.v1.GkeCluster
- */
-class GkeCluster extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. Information specifying a GKE Cluster. Format is
- * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`.
- *
- * Generated from protobuf field string cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- */
- protected $cluster = '';
- /**
- * Optional. If true, `cluster` is accessed using the private IP address of
- * the control plane endpoint. Otherwise, the default IP address of the
- * control plane endpoint is used. The default IP address is the private IP
- * address for clusters with private control-plane endpoints and the public IP
- * address otherwise.
- * Only specify this option when `cluster` is a [private GKE
- * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept).
- *
- * Generated from protobuf field bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $internal_ip = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $cluster
- * Optional. Information specifying a GKE Cluster. Format is
- * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`.
- * @type bool $internal_ip
- * Optional. If true, `cluster` is accessed using the private IP address of
- * the control plane endpoint. Otherwise, the default IP address of the
- * control plane endpoint is used. The default IP address is the private IP
- * address for clusters with private control-plane endpoints and the public IP
- * address otherwise.
- * Only specify this option when `cluster` is a [private GKE
- * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept).
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. Information specifying a GKE Cluster. Format is
- * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`.
- *
- * Generated from protobuf field string cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- * @return string
- */
- public function getCluster()
- {
- return $this->cluster;
- }
-
- /**
- * Optional. Information specifying a GKE Cluster. Format is
- * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`.
- *
- * Generated from protobuf field string cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setCluster($var)
- {
- GPBUtil::checkString($var, True);
- $this->cluster = $var;
-
- return $this;
- }
-
- /**
- * Optional. If true, `cluster` is accessed using the private IP address of
- * the control plane endpoint. Otherwise, the default IP address of the
- * control plane endpoint is used. The default IP address is the private IP
- * address for clusters with private control-plane endpoints and the public IP
- * address otherwise.
- * Only specify this option when `cluster` is a [private GKE
- * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept).
- *
- * Generated from protobuf field bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getInternalIp()
- {
- return $this->internal_ip;
- }
-
- /**
- * Optional. If true, `cluster` is accessed using the private IP address of
- * the control plane endpoint. Otherwise, the default IP address of the
- * control plane endpoint is used. The default IP address is the private IP
- * address for clusters with private control-plane endpoints and the public IP
- * address otherwise.
- * Only specify this option when `cluster` is a [private GKE
- * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept).
- *
- * Generated from protobuf field bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setInternalIp($var)
- {
- GPBUtil::checkBool($var);
- $this->internal_ip = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/IgnoreJobRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/IgnoreJobRequest.php
deleted file mode 100644
index 094701d85774..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/IgnoreJobRequest.php
+++ /dev/null
@@ -1,158 +0,0 @@
-google.cloud.deploy.v1.IgnoreJobRequest
- */
-class IgnoreJobRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $rollout = '';
- /**
- * Required. The phase ID the Job to ignore belongs to.
- *
- * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $phase_id = '';
- /**
- * Required. The job ID for the Job to ignore.
- *
- * Generated from protobuf field string job_id = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $job_id = '';
-
- /**
- * @param string $rollout Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. Please see
- * {@see CloudDeployClient::rolloutName()} for help formatting this field.
- * @param string $phaseId Required. The phase ID the Job to ignore belongs to.
- * @param string $jobId Required. The job ID for the Job to ignore.
- *
- * @return \Google\Cloud\Deploy\V1\IgnoreJobRequest
- *
- * @experimental
- */
- public static function build(string $rollout, string $phaseId, string $jobId): self
- {
- return (new self())
- ->setRollout($rollout)
- ->setPhaseId($phaseId)
- ->setJobId($jobId);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $rollout
- * Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- * @type string $phase_id
- * Required. The phase ID the Job to ignore belongs to.
- * @type string $job_id
- * Required. The job ID for the Job to ignore.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getRollout()
- {
- return $this->rollout;
- }
-
- /**
- * Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setRollout($var)
- {
- GPBUtil::checkString($var, True);
- $this->rollout = $var;
-
- return $this;
- }
-
- /**
- * Required. The phase ID the Job to ignore belongs to.
- *
- * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getPhaseId()
- {
- return $this->phase_id;
- }
-
- /**
- * Required. The phase ID the Job to ignore belongs to.
- *
- * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setPhaseId($var)
- {
- GPBUtil::checkString($var, True);
- $this->phase_id = $var;
-
- return $this;
- }
-
- /**
- * Required. The job ID for the Job to ignore.
- *
- * Generated from protobuf field string job_id = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getJobId()
- {
- return $this->job_id;
- }
-
- /**
- * Required. The job ID for the Job to ignore.
- *
- * Generated from protobuf field string job_id = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setJobId($var)
- {
- GPBUtil::checkString($var, True);
- $this->job_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/IgnoreJobResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/IgnoreJobResponse.php
deleted file mode 100644
index a48bda5ffdf9..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/IgnoreJobResponse.php
+++ /dev/null
@@ -1,33 +0,0 @@
-google.cloud.deploy.v1.IgnoreJobResponse
- */
-class IgnoreJobResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Job.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Job.php
deleted file mode 100644
index 894b8658f331..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Job.php
+++ /dev/null
@@ -1,384 +0,0 @@
-google.cloud.deploy.v1.Job
- */
-class Job extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The ID of the Job.
- *
- * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $id = '';
- /**
- * Output only. The current state of the Job.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state = 0;
- /**
- * Output only. Additional information on why the Job was skipped, if
- * available.
- *
- * Generated from protobuf field string skip_message = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $skip_message = '';
- /**
- * Output only. The name of the `JobRun` responsible for the most recent
- * invocation of this Job.
- *
- * Generated from protobuf field string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- */
- protected $job_run = '';
- protected $job_type;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $id
- * Output only. The ID of the Job.
- * @type int $state
- * Output only. The current state of the Job.
- * @type string $skip_message
- * Output only. Additional information on why the Job was skipped, if
- * available.
- * @type string $job_run
- * Output only. The name of the `JobRun` responsible for the most recent
- * invocation of this Job.
- * @type \Google\Cloud\Deploy\V1\DeployJob $deploy_job
- * Output only. A deploy Job.
- * @type \Google\Cloud\Deploy\V1\VerifyJob $verify_job
- * Output only. A verify Job.
- * @type \Google\Cloud\Deploy\V1\PredeployJob $predeploy_job
- * Output only. A predeploy Job.
- * @type \Google\Cloud\Deploy\V1\PostdeployJob $postdeploy_job
- * Output only. A postdeploy Job.
- * @type \Google\Cloud\Deploy\V1\CreateChildRolloutJob $create_child_rollout_job
- * Output only. A createChildRollout Job.
- * @type \Google\Cloud\Deploy\V1\AdvanceChildRolloutJob $advance_child_rollout_job
- * Output only. An advanceChildRollout Job.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The ID of the Job.
- *
- * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getId()
- {
- return $this->id;
- }
-
- /**
- * Output only. The ID of the Job.
- *
- * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setId($var)
- {
- GPBUtil::checkString($var, True);
- $this->id = $var;
-
- return $this;
- }
-
- /**
- * Output only. The current state of the Job.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Output only. The current state of the Job.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Job\State::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Output only. Additional information on why the Job was skipped, if
- * available.
- *
- * Generated from protobuf field string skip_message = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getSkipMessage()
- {
- return $this->skip_message;
- }
-
- /**
- * Output only. Additional information on why the Job was skipped, if
- * available.
- *
- * Generated from protobuf field string skip_message = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setSkipMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->skip_message = $var;
-
- return $this;
- }
-
- /**
- * Output only. The name of the `JobRun` responsible for the most recent
- * invocation of this Job.
- *
- * Generated from protobuf field string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @return string
- */
- public function getJobRun()
- {
- return $this->job_run;
- }
-
- /**
- * Output only. The name of the `JobRun` responsible for the most recent
- * invocation of this Job.
- *
- * Generated from protobuf field string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setJobRun($var)
- {
- GPBUtil::checkString($var, True);
- $this->job_run = $var;
-
- return $this;
- }
-
- /**
- * Output only. A deploy Job.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\DeployJob|null
- */
- public function getDeployJob()
- {
- return $this->readOneof(4);
- }
-
- public function hasDeployJob()
- {
- return $this->hasOneof(4);
- }
-
- /**
- * Output only. A deploy Job.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\DeployJob $var
- * @return $this
- */
- public function setDeployJob($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeployJob::class);
- $this->writeOneof(4, $var);
-
- return $this;
- }
-
- /**
- * Output only. A verify Job.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\VerifyJob|null
- */
- public function getVerifyJob()
- {
- return $this->readOneof(5);
- }
-
- public function hasVerifyJob()
- {
- return $this->hasOneof(5);
- }
-
- /**
- * Output only. A verify Job.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\VerifyJob $var
- * @return $this
- */
- public function setVerifyJob($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\VerifyJob::class);
- $this->writeOneof(5, $var);
-
- return $this;
- }
-
- /**
- * Output only. A predeploy Job.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PredeployJob predeploy_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\PredeployJob|null
- */
- public function getPredeployJob()
- {
- return $this->readOneof(9);
- }
-
- public function hasPredeployJob()
- {
- return $this->hasOneof(9);
- }
-
- /**
- * Output only. A predeploy Job.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PredeployJob predeploy_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\PredeployJob $var
- * @return $this
- */
- public function setPredeployJob($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PredeployJob::class);
- $this->writeOneof(9, $var);
-
- return $this;
- }
-
- /**
- * Output only. A postdeploy Job.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PostdeployJob postdeploy_job = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\PostdeployJob|null
- */
- public function getPostdeployJob()
- {
- return $this->readOneof(10);
- }
-
- public function hasPostdeployJob()
- {
- return $this->hasOneof(10);
- }
-
- /**
- * Output only. A postdeploy Job.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PostdeployJob postdeploy_job = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\PostdeployJob $var
- * @return $this
- */
- public function setPostdeployJob($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PostdeployJob::class);
- $this->writeOneof(10, $var);
-
- return $this;
- }
-
- /**
- * Output only. A createChildRollout Job.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CreateChildRolloutJob create_child_rollout_job = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\CreateChildRolloutJob|null
- */
- public function getCreateChildRolloutJob()
- {
- return $this->readOneof(6);
- }
-
- public function hasCreateChildRolloutJob()
- {
- return $this->hasOneof(6);
- }
-
- /**
- * Output only. A createChildRollout Job.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CreateChildRolloutJob create_child_rollout_job = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\CreateChildRolloutJob $var
- * @return $this
- */
- public function setCreateChildRolloutJob($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CreateChildRolloutJob::class);
- $this->writeOneof(6, $var);
-
- return $this;
- }
-
- /**
- * Output only. An advanceChildRollout Job.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AdvanceChildRolloutJob advance_child_rollout_job = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\AdvanceChildRolloutJob|null
- */
- public function getAdvanceChildRolloutJob()
- {
- return $this->readOneof(7);
- }
-
- public function hasAdvanceChildRolloutJob()
- {
- return $this->hasOneof(7);
- }
-
- /**
- * Output only. An advanceChildRollout Job.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AdvanceChildRolloutJob advance_child_rollout_job = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\AdvanceChildRolloutJob $var
- * @return $this
- */
- public function setAdvanceChildRolloutJob($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AdvanceChildRolloutJob::class);
- $this->writeOneof(7, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getJobType()
- {
- return $this->whichOneof("job_type");
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Job/State.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Job/State.php
deleted file mode 100644
index de523dfefaa6..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Job/State.php
+++ /dev/null
@@ -1,106 +0,0 @@
-google.cloud.deploy.v1.Job.State
- */
-class State
-{
- /**
- * The Job has an unspecified state.
- *
- * Generated from protobuf enum STATE_UNSPECIFIED = 0;
- */
- const STATE_UNSPECIFIED = 0;
- /**
- * The Job is waiting for an earlier Phase(s) or Job(s) to complete.
- *
- * Generated from protobuf enum PENDING = 1;
- */
- const PENDING = 1;
- /**
- * The Job is disabled.
- *
- * Generated from protobuf enum DISABLED = 2;
- */
- const DISABLED = 2;
- /**
- * The Job is in progress.
- *
- * Generated from protobuf enum IN_PROGRESS = 3;
- */
- const IN_PROGRESS = 3;
- /**
- * The Job succeeded.
- *
- * Generated from protobuf enum SUCCEEDED = 4;
- */
- const SUCCEEDED = 4;
- /**
- * The Job failed.
- *
- * Generated from protobuf enum FAILED = 5;
- */
- const FAILED = 5;
- /**
- * The Job was aborted.
- *
- * Generated from protobuf enum ABORTED = 6;
- */
- const ABORTED = 6;
- /**
- * The Job was skipped.
- *
- * Generated from protobuf enum SKIPPED = 7;
- */
- const SKIPPED = 7;
- /**
- * The Job was ignored.
- *
- * Generated from protobuf enum IGNORED = 8;
- */
- const IGNORED = 8;
-
- private static $valueToName = [
- self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
- self::PENDING => 'PENDING',
- self::DISABLED => 'DISABLED',
- self::IN_PROGRESS => 'IN_PROGRESS',
- self::SUCCEEDED => 'SUCCEEDED',
- self::FAILED => 'FAILED',
- self::ABORTED => 'ABORTED',
- self::SKIPPED => 'SKIPPED',
- self::IGNORED => 'IGNORED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(State::class, \Google\Cloud\Deploy\V1\Job_State::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRun.php
deleted file mode 100644
index 2a9a5fa9bc5e..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRun.php
+++ /dev/null
@@ -1,589 +0,0 @@
-google.cloud.deploy.v1.JobRun
- */
-class JobRun extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. Name of the `JobRun`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/{rollouts}/jobRuns/{uuid}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $name = '';
- /**
- * Output only. Unique identifier of the `JobRun`.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $uid = '';
- /**
- * Output only. ID of the `Rollout` phase this `JobRun` belongs in.
- *
- * Generated from protobuf field string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $phase_id = '';
- /**
- * Output only. ID of the `Rollout` job this `JobRun` corresponds to.
- *
- * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $job_id = '';
- /**
- * Output only. Time at which the `JobRun` was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Output only. Time at which the `JobRun` was started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $start_time = null;
- /**
- * Output only. Time at which the `JobRun` ended.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $end_time = null;
- /**
- * Output only. The current state of the `JobRun`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state = 0;
- /**
- * Output only. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $etag = '';
- protected $job_run;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Optional. Name of the `JobRun`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/{rollouts}/jobRuns/{uuid}`.
- * @type string $uid
- * Output only. Unique identifier of the `JobRun`.
- * @type string $phase_id
- * Output only. ID of the `Rollout` phase this `JobRun` belongs in.
- * @type string $job_id
- * Output only. ID of the `Rollout` job this `JobRun` corresponds to.
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. Time at which the `JobRun` was created.
- * @type \Google\Protobuf\Timestamp $start_time
- * Output only. Time at which the `JobRun` was started.
- * @type \Google\Protobuf\Timestamp $end_time
- * Output only. Time at which the `JobRun` ended.
- * @type int $state
- * Output only. The current state of the `JobRun`.
- * @type \Google\Cloud\Deploy\V1\DeployJobRun $deploy_job_run
- * Output only. Information specific to a deploy `JobRun`.
- * @type \Google\Cloud\Deploy\V1\VerifyJobRun $verify_job_run
- * Output only. Information specific to a verify `JobRun`.
- * @type \Google\Cloud\Deploy\V1\PredeployJobRun $predeploy_job_run
- * Output only. Information specific to a predeploy `JobRun`.
- * @type \Google\Cloud\Deploy\V1\PostdeployJobRun $postdeploy_job_run
- * Output only. Information specific to a postdeploy `JobRun`.
- * @type \Google\Cloud\Deploy\V1\CreateChildRolloutJobRun $create_child_rollout_job_run
- * Output only. Information specific to a createChildRollout `JobRun`.
- * @type \Google\Cloud\Deploy\V1\AdvanceChildRolloutJobRun $advance_child_rollout_job_run
- * Output only. Information specific to an advanceChildRollout `JobRun`
- * @type string $etag
- * Output only. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. Name of the `JobRun`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/{rollouts}/jobRuns/{uuid}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Optional. Name of the `JobRun`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/{rollouts}/jobRuns/{uuid}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Output only. Unique identifier of the `JobRun`.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getUid()
- {
- return $this->uid;
- }
-
- /**
- * Output only. Unique identifier of the `JobRun`.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->uid = $var;
-
- return $this;
- }
-
- /**
- * Output only. ID of the `Rollout` phase this `JobRun` belongs in.
- *
- * Generated from protobuf field string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getPhaseId()
- {
- return $this->phase_id;
- }
-
- /**
- * Output only. ID of the `Rollout` phase this `JobRun` belongs in.
- *
- * Generated from protobuf field string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setPhaseId($var)
- {
- GPBUtil::checkString($var, True);
- $this->phase_id = $var;
-
- return $this;
- }
-
- /**
- * Output only. ID of the `Rollout` job this `JobRun` corresponds to.
- *
- * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getJobId()
- {
- return $this->job_id;
- }
-
- /**
- * Output only. ID of the `Rollout` job this `JobRun` corresponds to.
- *
- * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setJobId($var)
- {
- GPBUtil::checkString($var, True);
- $this->job_id = $var;
-
- return $this;
- }
-
- /**
- * Output only. Time at which the `JobRun` was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. Time at which the `JobRun` was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. Time at which the `JobRun` was started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getStartTime()
- {
- return $this->start_time;
- }
-
- public function hasStartTime()
- {
- return isset($this->start_time);
- }
-
- public function clearStartTime()
- {
- unset($this->start_time);
- }
-
- /**
- * Output only. Time at which the `JobRun` was started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setStartTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->start_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. Time at which the `JobRun` ended.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getEndTime()
- {
- return $this->end_time;
- }
-
- public function hasEndTime()
- {
- return isset($this->end_time);
- }
-
- public function clearEndTime()
- {
- unset($this->end_time);
- }
-
- /**
- * Output only. Time at which the `JobRun` ended.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setEndTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->end_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The current state of the `JobRun`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Output only. The current state of the `JobRun`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\JobRun\State::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Output only. Information specific to a deploy `JobRun`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\DeployJobRun|null
- */
- public function getDeployJobRun()
- {
- return $this->readOneof(9);
- }
-
- public function hasDeployJobRun()
- {
- return $this->hasOneof(9);
- }
-
- /**
- * Output only. Information specific to a deploy `JobRun`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\DeployJobRun $var
- * @return $this
- */
- public function setDeployJobRun($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeployJobRun::class);
- $this->writeOneof(9, $var);
-
- return $this;
- }
-
- /**
- * Output only. Information specific to a verify `JobRun`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\VerifyJobRun|null
- */
- public function getVerifyJobRun()
- {
- return $this->readOneof(10);
- }
-
- public function hasVerifyJobRun()
- {
- return $this->hasOneof(10);
- }
-
- /**
- * Output only. Information specific to a verify `JobRun`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\VerifyJobRun $var
- * @return $this
- */
- public function setVerifyJobRun($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\VerifyJobRun::class);
- $this->writeOneof(10, $var);
-
- return $this;
- }
-
- /**
- * Output only. Information specific to a predeploy `JobRun`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PredeployJobRun predeploy_job_run = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\PredeployJobRun|null
- */
- public function getPredeployJobRun()
- {
- return $this->readOneof(14);
- }
-
- public function hasPredeployJobRun()
- {
- return $this->hasOneof(14);
- }
-
- /**
- * Output only. Information specific to a predeploy `JobRun`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PredeployJobRun predeploy_job_run = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\PredeployJobRun $var
- * @return $this
- */
- public function setPredeployJobRun($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PredeployJobRun::class);
- $this->writeOneof(14, $var);
-
- return $this;
- }
-
- /**
- * Output only. Information specific to a postdeploy `JobRun`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PostdeployJobRun postdeploy_job_run = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\PostdeployJobRun|null
- */
- public function getPostdeployJobRun()
- {
- return $this->readOneof(15);
- }
-
- public function hasPostdeployJobRun()
- {
- return $this->hasOneof(15);
- }
-
- /**
- * Output only. Information specific to a postdeploy `JobRun`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PostdeployJobRun postdeploy_job_run = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\PostdeployJobRun $var
- * @return $this
- */
- public function setPostdeployJobRun($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PostdeployJobRun::class);
- $this->writeOneof(15, $var);
-
- return $this;
- }
-
- /**
- * Output only. Information specific to a createChildRollout `JobRun`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CreateChildRolloutJobRun create_child_rollout_job_run = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\CreateChildRolloutJobRun|null
- */
- public function getCreateChildRolloutJobRun()
- {
- return $this->readOneof(12);
- }
-
- public function hasCreateChildRolloutJobRun()
- {
- return $this->hasOneof(12);
- }
-
- /**
- * Output only. Information specific to a createChildRollout `JobRun`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CreateChildRolloutJobRun create_child_rollout_job_run = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\CreateChildRolloutJobRun $var
- * @return $this
- */
- public function setCreateChildRolloutJobRun($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CreateChildRolloutJobRun::class);
- $this->writeOneof(12, $var);
-
- return $this;
- }
-
- /**
- * Output only. Information specific to an advanceChildRollout `JobRun`
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AdvanceChildRolloutJobRun advance_child_rollout_job_run = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\AdvanceChildRolloutJobRun|null
- */
- public function getAdvanceChildRolloutJobRun()
- {
- return $this->readOneof(13);
- }
-
- public function hasAdvanceChildRolloutJobRun()
- {
- return $this->hasOneof(13);
- }
-
- /**
- * Output only. Information specific to an advanceChildRollout `JobRun`
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AdvanceChildRolloutJobRun advance_child_rollout_job_run = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\AdvanceChildRolloutJobRun $var
- * @return $this
- */
- public function setAdvanceChildRolloutJobRun($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AdvanceChildRolloutJobRun::class);
- $this->writeOneof(13, $var);
-
- return $this;
- }
-
- /**
- * Output only. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * Output only. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getJobRun()
- {
- return $this->whichOneof("job_run");
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRun/State.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRun/State.php
deleted file mode 100644
index df8b7b7d61cf..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRun/State.php
+++ /dev/null
@@ -1,85 +0,0 @@
-google.cloud.deploy.v1.JobRun.State
- */
-class State
-{
- /**
- * The `JobRun` has an unspecified state.
- *
- * Generated from protobuf enum STATE_UNSPECIFIED = 0;
- */
- const STATE_UNSPECIFIED = 0;
- /**
- * The `JobRun` is in progress.
- *
- * Generated from protobuf enum IN_PROGRESS = 1;
- */
- const IN_PROGRESS = 1;
- /**
- * The `JobRun` has succeeded.
- *
- * Generated from protobuf enum SUCCEEDED = 2;
- */
- const SUCCEEDED = 2;
- /**
- * The `JobRun` has failed.
- *
- * Generated from protobuf enum FAILED = 3;
- */
- const FAILED = 3;
- /**
- * The `JobRun` is terminating.
- *
- * Generated from protobuf enum TERMINATING = 4;
- */
- const TERMINATING = 4;
- /**
- * The `JobRun` was terminated.
- *
- * Generated from protobuf enum TERMINATED = 5;
- */
- const TERMINATED = 5;
-
- private static $valueToName = [
- self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
- self::IN_PROGRESS => 'IN_PROGRESS',
- self::SUCCEEDED => 'SUCCEEDED',
- self::FAILED => 'FAILED',
- self::TERMINATING => 'TERMINATING',
- self::TERMINATED => 'TERMINATED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(State::class, \Google\Cloud\Deploy\V1\JobRun_State::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRunNotificationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRunNotificationEvent.php
deleted file mode 100644
index 74416dde71d6..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRunNotificationEvent.php
+++ /dev/null
@@ -1,341 +0,0 @@
-google.cloud.deploy.v1.JobRunNotificationEvent
- */
-class JobRunNotificationEvent extends \Google\Protobuf\Internal\Message
-{
- /**
- * Debug message for when a notification fails to send.
- *
- * Generated from protobuf field string message = 1;
- */
- protected $message = '';
- /**
- * The name of the `JobRun`.
- *
- * Generated from protobuf field string job_run = 2;
- */
- protected $job_run = '';
- /**
- * Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string pipeline_uid = 3;
- */
- protected $pipeline_uid = '';
- /**
- * Unique identifier of the `Release`.
- *
- * Generated from protobuf field string release_uid = 4;
- */
- protected $release_uid = '';
- /**
- * The name of the `Release`.
- *
- * Generated from protobuf field string release = 8;
- */
- protected $release = '';
- /**
- * Unique identifier of the `Rollout`.
- *
- * Generated from protobuf field string rollout_uid = 5;
- */
- protected $rollout_uid = '';
- /**
- * The name of the `Rollout`.
- *
- * Generated from protobuf field string rollout = 9;
- */
- protected $rollout = '';
- /**
- * ID of the `Target`.
- *
- * Generated from protobuf field string target_id = 6;
- */
- protected $target_id = '';
- /**
- * Type of this notification, e.g. for a Pub/Sub failure.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7;
- */
- protected $type = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $message
- * Debug message for when a notification fails to send.
- * @type string $job_run
- * The name of the `JobRun`.
- * @type string $pipeline_uid
- * Unique identifier of the `DeliveryPipeline`.
- * @type string $release_uid
- * Unique identifier of the `Release`.
- * @type string $release
- * The name of the `Release`.
- * @type string $rollout_uid
- * Unique identifier of the `Rollout`.
- * @type string $rollout
- * The name of the `Rollout`.
- * @type string $target_id
- * ID of the `Target`.
- * @type int $type
- * Type of this notification, e.g. for a Pub/Sub failure.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\JobrunNotificationPayload::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Debug message for when a notification fails to send.
- *
- * Generated from protobuf field string message = 1;
- * @return string
- */
- public function getMessage()
- {
- return $this->message;
- }
-
- /**
- * Debug message for when a notification fails to send.
- *
- * Generated from protobuf field string message = 1;
- * @param string $var
- * @return $this
- */
- public function setMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->message = $var;
-
- return $this;
- }
-
- /**
- * The name of the `JobRun`.
- *
- * Generated from protobuf field string job_run = 2;
- * @return string
- */
- public function getJobRun()
- {
- return $this->job_run;
- }
-
- /**
- * The name of the `JobRun`.
- *
- * Generated from protobuf field string job_run = 2;
- * @param string $var
- * @return $this
- */
- public function setJobRun($var)
- {
- GPBUtil::checkString($var, True);
- $this->job_run = $var;
-
- return $this;
- }
-
- /**
- * Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string pipeline_uid = 3;
- * @return string
- */
- public function getPipelineUid()
- {
- return $this->pipeline_uid;
- }
-
- /**
- * Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string pipeline_uid = 3;
- * @param string $var
- * @return $this
- */
- public function setPipelineUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->pipeline_uid = $var;
-
- return $this;
- }
-
- /**
- * Unique identifier of the `Release`.
- *
- * Generated from protobuf field string release_uid = 4;
- * @return string
- */
- public function getReleaseUid()
- {
- return $this->release_uid;
- }
-
- /**
- * Unique identifier of the `Release`.
- *
- * Generated from protobuf field string release_uid = 4;
- * @param string $var
- * @return $this
- */
- public function setReleaseUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->release_uid = $var;
-
- return $this;
- }
-
- /**
- * The name of the `Release`.
- *
- * Generated from protobuf field string release = 8;
- * @return string
- */
- public function getRelease()
- {
- return $this->release;
- }
-
- /**
- * The name of the `Release`.
- *
- * Generated from protobuf field string release = 8;
- * @param string $var
- * @return $this
- */
- public function setRelease($var)
- {
- GPBUtil::checkString($var, True);
- $this->release = $var;
-
- return $this;
- }
-
- /**
- * Unique identifier of the `Rollout`.
- *
- * Generated from protobuf field string rollout_uid = 5;
- * @return string
- */
- public function getRolloutUid()
- {
- return $this->rollout_uid;
- }
-
- /**
- * Unique identifier of the `Rollout`.
- *
- * Generated from protobuf field string rollout_uid = 5;
- * @param string $var
- * @return $this
- */
- public function setRolloutUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->rollout_uid = $var;
-
- return $this;
- }
-
- /**
- * The name of the `Rollout`.
- *
- * Generated from protobuf field string rollout = 9;
- * @return string
- */
- public function getRollout()
- {
- return $this->rollout;
- }
-
- /**
- * The name of the `Rollout`.
- *
- * Generated from protobuf field string rollout = 9;
- * @param string $var
- * @return $this
- */
- public function setRollout($var)
- {
- GPBUtil::checkString($var, True);
- $this->rollout = $var;
-
- return $this;
- }
-
- /**
- * ID of the `Target`.
- *
- * Generated from protobuf field string target_id = 6;
- * @return string
- */
- public function getTargetId()
- {
- return $this->target_id;
- }
-
- /**
- * ID of the `Target`.
- *
- * Generated from protobuf field string target_id = 6;
- * @param string $var
- * @return $this
- */
- public function setTargetId($var)
- {
- GPBUtil::checkString($var, True);
- $this->target_id = $var;
-
- return $this;
- }
-
- /**
- * Type of this notification, e.g. for a Pub/Sub failure.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7;
- * @return int
- */
- public function getType()
- {
- return $this->type;
- }
-
- /**
- * Type of this notification, e.g. for a Pub/Sub failure.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7;
- * @param int $var
- * @return $this
- */
- public function setType($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class);
- $this->type = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig.php
deleted file mode 100644
index d262b60c61bd..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig.php
+++ /dev/null
@@ -1,108 +0,0 @@
-google.cloud.deploy.v1.KubernetesConfig
- */
-class KubernetesConfig extends \Google\Protobuf\Internal\Message
-{
- protected $service_definition;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Deploy\V1\KubernetesConfig\GatewayServiceMesh $gateway_service_mesh
- * Kubernetes Gateway API service mesh configuration.
- * @type \Google\Cloud\Deploy\V1\KubernetesConfig\ServiceNetworking $service_networking
- * Kubernetes Service networking configuration.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Kubernetes Gateway API service mesh configuration.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh gateway_service_mesh = 1;
- * @return \Google\Cloud\Deploy\V1\KubernetesConfig\GatewayServiceMesh|null
- */
- public function getGatewayServiceMesh()
- {
- return $this->readOneof(1);
- }
-
- public function hasGatewayServiceMesh()
- {
- return $this->hasOneof(1);
- }
-
- /**
- * Kubernetes Gateway API service mesh configuration.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh gateway_service_mesh = 1;
- * @param \Google\Cloud\Deploy\V1\KubernetesConfig\GatewayServiceMesh $var
- * @return $this
- */
- public function setGatewayServiceMesh($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\KubernetesConfig\GatewayServiceMesh::class);
- $this->writeOneof(1, $var);
-
- return $this;
- }
-
- /**
- * Kubernetes Service networking configuration.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig.ServiceNetworking service_networking = 2;
- * @return \Google\Cloud\Deploy\V1\KubernetesConfig\ServiceNetworking|null
- */
- public function getServiceNetworking()
- {
- return $this->readOneof(2);
- }
-
- public function hasServiceNetworking()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * Kubernetes Service networking configuration.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig.ServiceNetworking service_networking = 2;
- * @param \Google\Cloud\Deploy\V1\KubernetesConfig\ServiceNetworking $var
- * @return $this
- */
- public function setServiceNetworking($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\KubernetesConfig\ServiceNetworking::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getServiceDefinition()
- {
- return $this->whichOneof("service_definition");
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/GatewayServiceMesh.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/GatewayServiceMesh.php
deleted file mode 100644
index ea4ee9fac2f0..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/GatewayServiceMesh.php
+++ /dev/null
@@ -1,250 +0,0 @@
-google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh
- */
-class GatewayServiceMesh extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the Gateway API HTTPRoute.
- *
- * Generated from protobuf field string http_route = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $http_route = '';
- /**
- * Required. Name of the Kubernetes Service.
- *
- * Generated from protobuf field string service = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $service = '';
- /**
- * Required. Name of the Kubernetes Deployment whose traffic is managed by
- * the specified HTTPRoute and Service.
- *
- * Generated from protobuf field string deployment = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $deployment = '';
- /**
- * Optional. The time to wait for route updates to propagate. The maximum
- * configurable time is 3 hours, in seconds format. If unspecified, there is
- * no wait time.
- *
- * Generated from protobuf field .google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $route_update_wait_time = null;
- /**
- * Optional. The amount of time to migrate traffic back from the canary
- * Service to the original Service during the stable phase deployment. If
- * specified, must be between 15s and 3600s. If unspecified, there is no
- * cutback time.
- *
- * Generated from protobuf field .google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $stable_cutback_duration = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $http_route
- * Required. Name of the Gateway API HTTPRoute.
- * @type string $service
- * Required. Name of the Kubernetes Service.
- * @type string $deployment
- * Required. Name of the Kubernetes Deployment whose traffic is managed by
- * the specified HTTPRoute and Service.
- * @type \Google\Protobuf\Duration $route_update_wait_time
- * Optional. The time to wait for route updates to propagate. The maximum
- * configurable time is 3 hours, in seconds format. If unspecified, there is
- * no wait time.
- * @type \Google\Protobuf\Duration $stable_cutback_duration
- * Optional. The amount of time to migrate traffic back from the canary
- * Service to the original Service during the stable phase deployment. If
- * specified, must be between 15s and 3600s. If unspecified, there is no
- * cutback time.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the Gateway API HTTPRoute.
- *
- * Generated from protobuf field string http_route = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getHttpRoute()
- {
- return $this->http_route;
- }
-
- /**
- * Required. Name of the Gateway API HTTPRoute.
- *
- * Generated from protobuf field string http_route = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setHttpRoute($var)
- {
- GPBUtil::checkString($var, True);
- $this->http_route = $var;
-
- return $this;
- }
-
- /**
- * Required. Name of the Kubernetes Service.
- *
- * Generated from protobuf field string service = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getService()
- {
- return $this->service;
- }
-
- /**
- * Required. Name of the Kubernetes Service.
- *
- * Generated from protobuf field string service = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setService($var)
- {
- GPBUtil::checkString($var, True);
- $this->service = $var;
-
- return $this;
- }
-
- /**
- * Required. Name of the Kubernetes Deployment whose traffic is managed by
- * the specified HTTPRoute and Service.
- *
- * Generated from protobuf field string deployment = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getDeployment()
- {
- return $this->deployment;
- }
-
- /**
- * Required. Name of the Kubernetes Deployment whose traffic is managed by
- * the specified HTTPRoute and Service.
- *
- * Generated from protobuf field string deployment = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setDeployment($var)
- {
- GPBUtil::checkString($var, True);
- $this->deployment = $var;
-
- return $this;
- }
-
- /**
- * Optional. The time to wait for route updates to propagate. The maximum
- * configurable time is 3 hours, in seconds format. If unspecified, there is
- * no wait time.
- *
- * Generated from protobuf field .google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Duration|null
- */
- public function getRouteUpdateWaitTime()
- {
- return $this->route_update_wait_time;
- }
-
- public function hasRouteUpdateWaitTime()
- {
- return isset($this->route_update_wait_time);
- }
-
- public function clearRouteUpdateWaitTime()
- {
- unset($this->route_update_wait_time);
- }
-
- /**
- * Optional. The time to wait for route updates to propagate. The maximum
- * configurable time is 3 hours, in seconds format. If unspecified, there is
- * no wait time.
- *
- * Generated from protobuf field .google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setRouteUpdateWaitTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->route_update_wait_time = $var;
-
- return $this;
- }
-
- /**
- * Optional. The amount of time to migrate traffic back from the canary
- * Service to the original Service during the stable phase deployment. If
- * specified, must be between 15s and 3600s. If unspecified, there is no
- * cutback time.
- *
- * Generated from protobuf field .google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Duration|null
- */
- public function getStableCutbackDuration()
- {
- return $this->stable_cutback_duration;
- }
-
- public function hasStableCutbackDuration()
- {
- return isset($this->stable_cutback_duration);
- }
-
- public function clearStableCutbackDuration()
- {
- unset($this->stable_cutback_duration);
- }
-
- /**
- * Optional. The amount of time to migrate traffic back from the canary
- * Service to the original Service during the stable phase deployment. If
- * specified, must be between 15s and 3600s. If unspecified, there is no
- * cutback time.
- *
- * Generated from protobuf field .google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setStableCutbackDuration($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->stable_cutback_duration = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(GatewayServiceMesh::class, \Google\Cloud\Deploy\V1\KubernetesConfig_GatewayServiceMesh::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/ServiceNetworking.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/ServiceNetworking.php
deleted file mode 100644
index 66028de9a1aa..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/ServiceNetworking.php
+++ /dev/null
@@ -1,154 +0,0 @@
-google.cloud.deploy.v1.KubernetesConfig.ServiceNetworking
- */
-class ServiceNetworking extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the Kubernetes Service.
- *
- * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $service = '';
- /**
- * Required. Name of the Kubernetes Deployment whose traffic is managed by
- * the specified Service.
- *
- * Generated from protobuf field string deployment = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $deployment = '';
- /**
- * Optional. Whether to disable Pod overprovisioning. If Pod
- * overprovisioning is disabled then Cloud Deploy will limit the number of
- * total Pods used for the deployment strategy to the number of Pods the
- * Deployment has on the cluster.
- *
- * Generated from protobuf field bool disable_pod_overprovisioning = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $disable_pod_overprovisioning = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $service
- * Required. Name of the Kubernetes Service.
- * @type string $deployment
- * Required. Name of the Kubernetes Deployment whose traffic is managed by
- * the specified Service.
- * @type bool $disable_pod_overprovisioning
- * Optional. Whether to disable Pod overprovisioning. If Pod
- * overprovisioning is disabled then Cloud Deploy will limit the number of
- * total Pods used for the deployment strategy to the number of Pods the
- * Deployment has on the cluster.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the Kubernetes Service.
- *
- * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getService()
- {
- return $this->service;
- }
-
- /**
- * Required. Name of the Kubernetes Service.
- *
- * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setService($var)
- {
- GPBUtil::checkString($var, True);
- $this->service = $var;
-
- return $this;
- }
-
- /**
- * Required. Name of the Kubernetes Deployment whose traffic is managed by
- * the specified Service.
- *
- * Generated from protobuf field string deployment = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getDeployment()
- {
- return $this->deployment;
- }
-
- /**
- * Required. Name of the Kubernetes Deployment whose traffic is managed by
- * the specified Service.
- *
- * Generated from protobuf field string deployment = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setDeployment($var)
- {
- GPBUtil::checkString($var, True);
- $this->deployment = $var;
-
- return $this;
- }
-
- /**
- * Optional. Whether to disable Pod overprovisioning. If Pod
- * overprovisioning is disabled then Cloud Deploy will limit the number of
- * total Pods used for the deployment strategy to the number of Pods the
- * Deployment has on the cluster.
- *
- * Generated from protobuf field bool disable_pod_overprovisioning = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getDisablePodOverprovisioning()
- {
- return $this->disable_pod_overprovisioning;
- }
-
- /**
- * Optional. Whether to disable Pod overprovisioning. If Pod
- * overprovisioning is disabled then Cloud Deploy will limit the number of
- * total Pods used for the deployment strategy to the number of Pods the
- * Deployment has on the cluster.
- *
- * Generated from protobuf field bool disable_pod_overprovisioning = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setDisablePodOverprovisioning($var)
- {
- GPBUtil::checkBool($var);
- $this->disable_pod_overprovisioning = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(ServiceNetworking::class, \Google\Cloud\Deploy\V1\KubernetesConfig_ServiceNetworking::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationRunsRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationRunsRequest.php
deleted file mode 100644
index de808a00b4a8..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationRunsRequest.php
+++ /dev/null
@@ -1,255 +0,0 @@
-google.cloud.deploy.v1.ListAutomationRunsRequest
- */
-class ListAutomationRunsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent `Delivery Pipeline`, which owns this collection of
- * automationRuns. Format must be
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * The maximum number of automationRuns to return. The service may return
- * fewer than this value. If unspecified, at most 50 automationRuns will
- * be returned. The maximum value is 1000; values above 1000 will be set
- * to 1000.
- *
- * Generated from protobuf field int32 page_size = 2;
- */
- protected $page_size = 0;
- /**
- * A page token, received from a previous `ListAutomationRuns` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3;
- */
- protected $page_token = '';
- /**
- * Filter automationRuns to be returned. All fields can be used in the
- * filter.
- *
- * Generated from protobuf field string filter = 4;
- */
- protected $filter = '';
- /**
- * Field to sort by.
- *
- * Generated from protobuf field string order_by = 5;
- */
- protected $order_by = '';
-
- /**
- * @param string $parent Required. The parent `Delivery Pipeline`, which owns this collection of
- * automationRuns. Format must be
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`. Please see
- * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\ListAutomationRunsRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent `Delivery Pipeline`, which owns this collection of
- * automationRuns. Format must be
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`.
- * @type int $page_size
- * The maximum number of automationRuns to return. The service may return
- * fewer than this value. If unspecified, at most 50 automationRuns will
- * be returned. The maximum value is 1000; values above 1000 will be set
- * to 1000.
- * @type string $page_token
- * A page token, received from a previous `ListAutomationRuns` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- * @type string $filter
- * Filter automationRuns to be returned. All fields can be used in the
- * filter.
- * @type string $order_by
- * Field to sort by.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent `Delivery Pipeline`, which owns this collection of
- * automationRuns. Format must be
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent `Delivery Pipeline`, which owns this collection of
- * automationRuns. Format must be
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * The maximum number of automationRuns to return. The service may return
- * fewer than this value. If unspecified, at most 50 automationRuns will
- * be returned. The maximum value is 1000; values above 1000 will be set
- * to 1000.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * The maximum number of automationRuns to return. The service may return
- * fewer than this value. If unspecified, at most 50 automationRuns will
- * be returned. The maximum value is 1000; values above 1000 will be set
- * to 1000.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * A page token, received from a previous `ListAutomationRuns` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3;
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * A page token, received from a previous `ListAutomationRuns` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3;
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
- /**
- * Filter automationRuns to be returned. All fields can be used in the
- * filter.
- *
- * Generated from protobuf field string filter = 4;
- * @return string
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- /**
- * Filter automationRuns to be returned. All fields can be used in the
- * filter.
- *
- * Generated from protobuf field string filter = 4;
- * @param string $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkString($var, True);
- $this->filter = $var;
-
- return $this;
- }
-
- /**
- * Field to sort by.
- *
- * Generated from protobuf field string order_by = 5;
- * @return string
- */
- public function getOrderBy()
- {
- return $this->order_by;
- }
-
- /**
- * Field to sort by.
- *
- * Generated from protobuf field string order_by = 5;
- * @param string $var
- * @return $this
- */
- public function setOrderBy($var)
- {
- GPBUtil::checkString($var, True);
- $this->order_by = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationRunsResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationRunsResponse.php
deleted file mode 100644
index 9a672c0fe1de..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationRunsResponse.php
+++ /dev/null
@@ -1,139 +0,0 @@
-google.cloud.deploy.v1.ListAutomationRunsResponse
- */
-class ListAutomationRunsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The `AutomationRuns` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.AutomationRun automation_runs = 1;
- */
- private $automation_runs;
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- */
- private $unreachable;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Deploy\V1\AutomationRun>|\Google\Protobuf\Internal\RepeatedField $automation_runs
- * The `AutomationRuns` objects.
- * @type string $next_page_token
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable
- * Locations that could not be reached.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The `AutomationRuns` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.AutomationRun automation_runs = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getAutomationRuns()
- {
- return $this->automation_runs;
- }
-
- /**
- * The `AutomationRuns` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.AutomationRun automation_runs = 1;
- * @param array<\Google\Cloud\Deploy\V1\AutomationRun>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setAutomationRuns($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\AutomationRun::class);
- $this->automation_runs = $arr;
-
- return $this;
- }
-
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getUnreachable()
- {
- return $this->unreachable;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setUnreachable($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->unreachable = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationsRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationsRequest.php
deleted file mode 100644
index beacb32f80d0..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationsRequest.php
+++ /dev/null
@@ -1,255 +0,0 @@
-google.cloud.deploy.v1.ListAutomationsRequest
- */
-class ListAutomationsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent `Delivery Pipeline`, which owns this collection of
- * automations. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * The maximum number of automations to return. The service may return
- * fewer than this value. If unspecified, at most 50 automations will
- * be returned. The maximum value is 1000; values above 1000 will be set
- * to 1000.
- *
- * Generated from protobuf field int32 page_size = 2;
- */
- protected $page_size = 0;
- /**
- * A page token, received from a previous `ListAutomations` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3;
- */
- protected $page_token = '';
- /**
- * Filter automations to be returned. All fields can be used in the
- * filter.
- *
- * Generated from protobuf field string filter = 4;
- */
- protected $filter = '';
- /**
- * Field to sort by.
- *
- * Generated from protobuf field string order_by = 5;
- */
- protected $order_by = '';
-
- /**
- * @param string $parent Required. The parent `Delivery Pipeline`, which owns this collection of
- * automations. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. Please see
- * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\ListAutomationsRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent `Delivery Pipeline`, which owns this collection of
- * automations. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- * @type int $page_size
- * The maximum number of automations to return. The service may return
- * fewer than this value. If unspecified, at most 50 automations will
- * be returned. The maximum value is 1000; values above 1000 will be set
- * to 1000.
- * @type string $page_token
- * A page token, received from a previous `ListAutomations` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- * @type string $filter
- * Filter automations to be returned. All fields can be used in the
- * filter.
- * @type string $order_by
- * Field to sort by.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent `Delivery Pipeline`, which owns this collection of
- * automations. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent `Delivery Pipeline`, which owns this collection of
- * automations. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * The maximum number of automations to return. The service may return
- * fewer than this value. If unspecified, at most 50 automations will
- * be returned. The maximum value is 1000; values above 1000 will be set
- * to 1000.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * The maximum number of automations to return. The service may return
- * fewer than this value. If unspecified, at most 50 automations will
- * be returned. The maximum value is 1000; values above 1000 will be set
- * to 1000.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * A page token, received from a previous `ListAutomations` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3;
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * A page token, received from a previous `ListAutomations` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3;
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
- /**
- * Filter automations to be returned. All fields can be used in the
- * filter.
- *
- * Generated from protobuf field string filter = 4;
- * @return string
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- /**
- * Filter automations to be returned. All fields can be used in the
- * filter.
- *
- * Generated from protobuf field string filter = 4;
- * @param string $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkString($var, True);
- $this->filter = $var;
-
- return $this;
- }
-
- /**
- * Field to sort by.
- *
- * Generated from protobuf field string order_by = 5;
- * @return string
- */
- public function getOrderBy()
- {
- return $this->order_by;
- }
-
- /**
- * Field to sort by.
- *
- * Generated from protobuf field string order_by = 5;
- * @param string $var
- * @return $this
- */
- public function setOrderBy($var)
- {
- GPBUtil::checkString($var, True);
- $this->order_by = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationsResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationsResponse.php
deleted file mode 100644
index c14853d6404e..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationsResponse.php
+++ /dev/null
@@ -1,139 +0,0 @@
-google.cloud.deploy.v1.ListAutomationsResponse
- */
-class ListAutomationsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The `Automation` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Automation automations = 1;
- */
- private $automations;
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- */
- private $unreachable;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Deploy\V1\Automation>|\Google\Protobuf\Internal\RepeatedField $automations
- * The `Automation` objects.
- * @type string $next_page_token
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable
- * Locations that could not be reached.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The `Automation` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Automation automations = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getAutomations()
- {
- return $this->automations;
- }
-
- /**
- * The `Automation` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Automation automations = 1;
- * @param array<\Google\Cloud\Deploy\V1\Automation>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setAutomations($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Automation::class);
- $this->automations = $arr;
-
- return $this;
- }
-
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getUnreachable()
- {
- return $this->unreachable;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setUnreachable($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->unreachable = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListCustomTargetTypesRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListCustomTargetTypesRequest.php
deleted file mode 100644
index 375fe11940d1..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListCustomTargetTypesRequest.php
+++ /dev/null
@@ -1,254 +0,0 @@
-google.cloud.deploy.v1.ListCustomTargetTypesRequest
- */
-class ListCustomTargetTypesRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent that owns this collection of custom target types.
- * Format must be `projects/{project_id}/locations/{location_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Optional. The maximum number of `CustomTargetType` objects to return. The
- * service may return fewer than this value. If unspecified, at most 50
- * `CustomTargetType` objects will be returned. The maximum value is 1000;
- * values above 1000 will be set to 1000.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_size = 0;
- /**
- * Optional. A page token, received from a previous `ListCustomTargetTypes`
- * call. Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_token = '';
- /**
- * Optional. Filter custom target types to be returned. See
- * https://google.aip.dev/160 for more details.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $filter = '';
- /**
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $order_by = '';
-
- /**
- * @param string $parent Required. The parent that owns this collection of custom target types.
- * Format must be `projects/{project_id}/locations/{location_name}`. Please see
- * {@see CloudDeployClient::locationName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\ListCustomTargetTypesRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent that owns this collection of custom target types.
- * Format must be `projects/{project_id}/locations/{location_name}`.
- * @type int $page_size
- * Optional. The maximum number of `CustomTargetType` objects to return. The
- * service may return fewer than this value. If unspecified, at most 50
- * `CustomTargetType` objects will be returned. The maximum value is 1000;
- * values above 1000 will be set to 1000.
- * @type string $page_token
- * Optional. A page token, received from a previous `ListCustomTargetTypes`
- * call. Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- * @type string $filter
- * Optional. Filter custom target types to be returned. See
- * https://google.aip.dev/160 for more details.
- * @type string $order_by
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent that owns this collection of custom target types.
- * Format must be `projects/{project_id}/locations/{location_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent that owns this collection of custom target types.
- * Format must be `projects/{project_id}/locations/{location_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Optional. The maximum number of `CustomTargetType` objects to return. The
- * service may return fewer than this value. If unspecified, at most 50
- * `CustomTargetType` objects will be returned. The maximum value is 1000;
- * values above 1000 will be set to 1000.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * Optional. The maximum number of `CustomTargetType` objects to return. The
- * service may return fewer than this value. If unspecified, at most 50
- * `CustomTargetType` objects will be returned. The maximum value is 1000;
- * values above 1000 will be set to 1000.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * Optional. A page token, received from a previous `ListCustomTargetTypes`
- * call. Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * Optional. A page token, received from a previous `ListCustomTargetTypes`
- * call. Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
- /**
- * Optional. Filter custom target types to be returned. See
- * https://google.aip.dev/160 for more details.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- /**
- * Optional. Filter custom target types to be returned. See
- * https://google.aip.dev/160 for more details.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkString($var, True);
- $this->filter = $var;
-
- return $this;
- }
-
- /**
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getOrderBy()
- {
- return $this->order_by;
- }
-
- /**
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setOrderBy($var)
- {
- GPBUtil::checkString($var, True);
- $this->order_by = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListCustomTargetTypesResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListCustomTargetTypesResponse.php
deleted file mode 100644
index 0b7aed0e438f..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListCustomTargetTypesResponse.php
+++ /dev/null
@@ -1,139 +0,0 @@
-google.cloud.deploy.v1.ListCustomTargetTypesResponse
- */
-class ListCustomTargetTypesResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The `CustomTargetType` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1;
- */
- private $custom_target_types;
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- */
- private $unreachable;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Deploy\V1\CustomTargetType>|\Google\Protobuf\Internal\RepeatedField $custom_target_types
- * The `CustomTargetType` objects.
- * @type string $next_page_token
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable
- * Locations that could not be reached.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The `CustomTargetType` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getCustomTargetTypes()
- {
- return $this->custom_target_types;
- }
-
- /**
- * The `CustomTargetType` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1;
- * @param array<\Google\Cloud\Deploy\V1\CustomTargetType>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setCustomTargetTypes($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\CustomTargetType::class);
- $this->custom_target_types = $arr;
-
- return $this;
- }
-
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getUnreachable()
- {
- return $this->unreachable;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setUnreachable($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->unreachable = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeliveryPipelinesRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeliveryPipelinesRequest.php
deleted file mode 100644
index 5718d4cb4190..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeliveryPipelinesRequest.php
+++ /dev/null
@@ -1,250 +0,0 @@
-google.cloud.deploy.v1.ListDeliveryPipelinesRequest
- */
-class ListDeliveryPipelinesRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent, which owns this collection of pipelines. Format must
- * be `projects/{project_id}/locations/{location_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * The maximum number of pipelines to return. The service may return
- * fewer than this value. If unspecified, at most 50 pipelines will
- * be returned. The maximum value is 1000; values above 1000 will be set
- * to 1000.
- *
- * Generated from protobuf field int32 page_size = 2;
- */
- protected $page_size = 0;
- /**
- * A page token, received from a previous `ListDeliveryPipelines` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3;
- */
- protected $page_token = '';
- /**
- * Filter pipelines to be returned. See https://google.aip.dev/160 for more
- * details.
- *
- * Generated from protobuf field string filter = 4;
- */
- protected $filter = '';
- /**
- * Field to sort by. See https://google.aip.dev/132#ordering for more details.
- *
- * Generated from protobuf field string order_by = 5;
- */
- protected $order_by = '';
-
- /**
- * @param string $parent Required. The parent, which owns this collection of pipelines. Format must
- * be `projects/{project_id}/locations/{location_name}`. Please see
- * {@see CloudDeployClient::locationName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\ListDeliveryPipelinesRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent, which owns this collection of pipelines. Format must
- * be `projects/{project_id}/locations/{location_name}`.
- * @type int $page_size
- * The maximum number of pipelines to return. The service may return
- * fewer than this value. If unspecified, at most 50 pipelines will
- * be returned. The maximum value is 1000; values above 1000 will be set
- * to 1000.
- * @type string $page_token
- * A page token, received from a previous `ListDeliveryPipelines` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- * @type string $filter
- * Filter pipelines to be returned. See https://google.aip.dev/160 for more
- * details.
- * @type string $order_by
- * Field to sort by. See https://google.aip.dev/132#ordering for more details.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent, which owns this collection of pipelines. Format must
- * be `projects/{project_id}/locations/{location_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent, which owns this collection of pipelines. Format must
- * be `projects/{project_id}/locations/{location_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * The maximum number of pipelines to return. The service may return
- * fewer than this value. If unspecified, at most 50 pipelines will
- * be returned. The maximum value is 1000; values above 1000 will be set
- * to 1000.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * The maximum number of pipelines to return. The service may return
- * fewer than this value. If unspecified, at most 50 pipelines will
- * be returned. The maximum value is 1000; values above 1000 will be set
- * to 1000.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * A page token, received from a previous `ListDeliveryPipelines` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3;
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * A page token, received from a previous `ListDeliveryPipelines` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3;
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
- /**
- * Filter pipelines to be returned. See https://google.aip.dev/160 for more
- * details.
- *
- * Generated from protobuf field string filter = 4;
- * @return string
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- /**
- * Filter pipelines to be returned. See https://google.aip.dev/160 for more
- * details.
- *
- * Generated from protobuf field string filter = 4;
- * @param string $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkString($var, True);
- $this->filter = $var;
-
- return $this;
- }
-
- /**
- * Field to sort by. See https://google.aip.dev/132#ordering for more details.
- *
- * Generated from protobuf field string order_by = 5;
- * @return string
- */
- public function getOrderBy()
- {
- return $this->order_by;
- }
-
- /**
- * Field to sort by. See https://google.aip.dev/132#ordering for more details.
- *
- * Generated from protobuf field string order_by = 5;
- * @param string $var
- * @return $this
- */
- public function setOrderBy($var)
- {
- GPBUtil::checkString($var, True);
- $this->order_by = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeliveryPipelinesResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeliveryPipelinesResponse.php
deleted file mode 100644
index aade7781c825..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeliveryPipelinesResponse.php
+++ /dev/null
@@ -1,139 +0,0 @@
-google.cloud.deploy.v1.ListDeliveryPipelinesResponse
- */
-class ListDeliveryPipelinesResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The `DeliveryPipeline` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1;
- */
- private $delivery_pipelines;
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- */
- private $unreachable;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Deploy\V1\DeliveryPipeline>|\Google\Protobuf\Internal\RepeatedField $delivery_pipelines
- * The `DeliveryPipeline` objects.
- * @type string $next_page_token
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable
- * Locations that could not be reached.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The `DeliveryPipeline` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getDeliveryPipelines()
- {
- return $this->delivery_pipelines;
- }
-
- /**
- * The `DeliveryPipeline` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1;
- * @param array<\Google\Cloud\Deploy\V1\DeliveryPipeline>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setDeliveryPipelines($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\DeliveryPipeline::class);
- $this->delivery_pipelines = $arr;
-
- return $this;
- }
-
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getUnreachable()
- {
- return $this->unreachable;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setUnreachable($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->unreachable = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListJobRunsRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListJobRunsRequest.php
deleted file mode 100644
index de678b046e48..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListJobRunsRequest.php
+++ /dev/null
@@ -1,249 +0,0 @@
-google.cloud.deploy.v1.ListJobRunsRequest
- */
-class ListJobRunsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The `Rollout` which owns this collection of `JobRun` objects.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Optional. The maximum number of `JobRun` objects to return. The service may
- * return fewer than this value. If unspecified, at most 50 `JobRun` objects
- * will be returned. The maximum value is 1000; values above 1000 will be set
- * to 1000.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_size = 0;
- /**
- * Optional. A page token, received from a previous `ListJobRuns` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match the call that provided
- * the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_token = '';
- /**
- * Optional. Filter results to be returned. See https://google.aip.dev/160 for
- * more details.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $filter = '';
- /**
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $order_by = '';
-
- /**
- * @param string $parent Required. The `Rollout` which owns this collection of `JobRun` objects. Please see
- * {@see CloudDeployClient::rolloutName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\ListJobRunsRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The `Rollout` which owns this collection of `JobRun` objects.
- * @type int $page_size
- * Optional. The maximum number of `JobRun` objects to return. The service may
- * return fewer than this value. If unspecified, at most 50 `JobRun` objects
- * will be returned. The maximum value is 1000; values above 1000 will be set
- * to 1000.
- * @type string $page_token
- * Optional. A page token, received from a previous `ListJobRuns` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match the call that provided
- * the page token.
- * @type string $filter
- * Optional. Filter results to be returned. See https://google.aip.dev/160 for
- * more details.
- * @type string $order_by
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The `Rollout` which owns this collection of `JobRun` objects.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The `Rollout` which owns this collection of `JobRun` objects.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Optional. The maximum number of `JobRun` objects to return. The service may
- * return fewer than this value. If unspecified, at most 50 `JobRun` objects
- * will be returned. The maximum value is 1000; values above 1000 will be set
- * to 1000.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * Optional. The maximum number of `JobRun` objects to return. The service may
- * return fewer than this value. If unspecified, at most 50 `JobRun` objects
- * will be returned. The maximum value is 1000; values above 1000 will be set
- * to 1000.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * Optional. A page token, received from a previous `ListJobRuns` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match the call that provided
- * the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * Optional. A page token, received from a previous `ListJobRuns` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match the call that provided
- * the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
- /**
- * Optional. Filter results to be returned. See https://google.aip.dev/160 for
- * more details.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- /**
- * Optional. Filter results to be returned. See https://google.aip.dev/160 for
- * more details.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkString($var, True);
- $this->filter = $var;
-
- return $this;
- }
-
- /**
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getOrderBy()
- {
- return $this->order_by;
- }
-
- /**
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setOrderBy($var)
- {
- GPBUtil::checkString($var, True);
- $this->order_by = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListJobRunsResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListJobRunsResponse.php
deleted file mode 100644
index c62986ce2dbe..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListJobRunsResponse.php
+++ /dev/null
@@ -1,139 +0,0 @@
-google.cloud.deploy.v1.ListJobRunsResponse
- */
-class ListJobRunsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The `JobRun` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.JobRun job_runs = 1;
- */
- private $job_runs;
- /**
- * A token, which can be sent as `page_token` to retrieve the next page. If
- * this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
- /**
- * Locations that could not be reached
- *
- * Generated from protobuf field repeated string unreachable = 3;
- */
- private $unreachable;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Deploy\V1\JobRun>|\Google\Protobuf\Internal\RepeatedField $job_runs
- * The `JobRun` objects.
- * @type string $next_page_token
- * A token, which can be sent as `page_token` to retrieve the next page. If
- * this field is omitted, there are no subsequent pages.
- * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable
- * Locations that could not be reached
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The `JobRun` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.JobRun job_runs = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getJobRuns()
- {
- return $this->job_runs;
- }
-
- /**
- * The `JobRun` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.JobRun job_runs = 1;
- * @param array<\Google\Cloud\Deploy\V1\JobRun>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setJobRuns($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\JobRun::class);
- $this->job_runs = $arr;
-
- return $this;
- }
-
- /**
- * A token, which can be sent as `page_token` to retrieve the next page. If
- * this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * A token, which can be sent as `page_token` to retrieve the next page. If
- * this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * Locations that could not be reached
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getUnreachable()
- {
- return $this->unreachable;
- }
-
- /**
- * Locations that could not be reached
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setUnreachable($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->unreachable = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListReleasesRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListReleasesRequest.php
deleted file mode 100644
index a133cfc5e498..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListReleasesRequest.php
+++ /dev/null
@@ -1,254 +0,0 @@
-google.cloud.deploy.v1.ListReleasesRequest
- */
-class ListReleasesRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The `DeliveryPipeline` which owns this collection of `Release`
- * objects.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Optional. The maximum number of `Release` objects to return. The service
- * may return fewer than this value. If unspecified, at most 50 `Release`
- * objects will be returned. The maximum value is 1000; values above 1000 will
- * be set to 1000.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_size = 0;
- /**
- * Optional. A page token, received from a previous `ListReleases` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_token = '';
- /**
- * Optional. Filter releases to be returned. See https://google.aip.dev/160
- * for more details.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $filter = '';
- /**
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $order_by = '';
-
- /**
- * @param string $parent Required. The `DeliveryPipeline` which owns this collection of `Release`
- * objects. Please see
- * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\ListReleasesRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The `DeliveryPipeline` which owns this collection of `Release`
- * objects.
- * @type int $page_size
- * Optional. The maximum number of `Release` objects to return. The service
- * may return fewer than this value. If unspecified, at most 50 `Release`
- * objects will be returned. The maximum value is 1000; values above 1000 will
- * be set to 1000.
- * @type string $page_token
- * Optional. A page token, received from a previous `ListReleases` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- * @type string $filter
- * Optional. Filter releases to be returned. See https://google.aip.dev/160
- * for more details.
- * @type string $order_by
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The `DeliveryPipeline` which owns this collection of `Release`
- * objects.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The `DeliveryPipeline` which owns this collection of `Release`
- * objects.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Optional. The maximum number of `Release` objects to return. The service
- * may return fewer than this value. If unspecified, at most 50 `Release`
- * objects will be returned. The maximum value is 1000; values above 1000 will
- * be set to 1000.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * Optional. The maximum number of `Release` objects to return. The service
- * may return fewer than this value. If unspecified, at most 50 `Release`
- * objects will be returned. The maximum value is 1000; values above 1000 will
- * be set to 1000.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * Optional. A page token, received from a previous `ListReleases` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * Optional. A page token, received from a previous `ListReleases` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
- /**
- * Optional. Filter releases to be returned. See https://google.aip.dev/160
- * for more details.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- /**
- * Optional. Filter releases to be returned. See https://google.aip.dev/160
- * for more details.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkString($var, True);
- $this->filter = $var;
-
- return $this;
- }
-
- /**
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getOrderBy()
- {
- return $this->order_by;
- }
-
- /**
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setOrderBy($var)
- {
- GPBUtil::checkString($var, True);
- $this->order_by = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListReleasesResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListReleasesResponse.php
deleted file mode 100644
index 72798b69fe4c..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListReleasesResponse.php
+++ /dev/null
@@ -1,139 +0,0 @@
-google.cloud.deploy.v1.ListReleasesResponse
- */
-class ListReleasesResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The `Release` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Release releases = 1;
- */
- private $releases;
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- */
- private $unreachable;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Deploy\V1\Release>|\Google\Protobuf\Internal\RepeatedField $releases
- * The `Release` objects.
- * @type string $next_page_token
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable
- * Locations that could not be reached.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The `Release` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Release releases = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getReleases()
- {
- return $this->releases;
- }
-
- /**
- * The `Release` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Release releases = 1;
- * @param array<\Google\Cloud\Deploy\V1\Release>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setReleases($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Release::class);
- $this->releases = $arr;
-
- return $this;
- }
-
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getUnreachable()
- {
- return $this->unreachable;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setUnreachable($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->unreachable = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListRolloutsRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListRolloutsRequest.php
deleted file mode 100644
index 6209b04be8b5..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListRolloutsRequest.php
+++ /dev/null
@@ -1,249 +0,0 @@
-google.cloud.deploy.v1.ListRolloutsRequest
- */
-class ListRolloutsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The `Release` which owns this collection of `Rollout` objects.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Optional. The maximum number of `Rollout` objects to return. The service
- * may return fewer than this value. If unspecified, at most 50 `Rollout`
- * objects will be returned. The maximum value is 1000; values above 1000 will
- * be set to 1000.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_size = 0;
- /**
- * Optional. A page token, received from a previous `ListRollouts` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_token = '';
- /**
- * Optional. Filter rollouts to be returned. See https://google.aip.dev/160
- * for more details.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $filter = '';
- /**
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $order_by = '';
-
- /**
- * @param string $parent Required. The `Release` which owns this collection of `Rollout` objects. Please see
- * {@see CloudDeployClient::releaseName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\ListRolloutsRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The `Release` which owns this collection of `Rollout` objects.
- * @type int $page_size
- * Optional. The maximum number of `Rollout` objects to return. The service
- * may return fewer than this value. If unspecified, at most 50 `Rollout`
- * objects will be returned. The maximum value is 1000; values above 1000 will
- * be set to 1000.
- * @type string $page_token
- * Optional. A page token, received from a previous `ListRollouts` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- * @type string $filter
- * Optional. Filter rollouts to be returned. See https://google.aip.dev/160
- * for more details.
- * @type string $order_by
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The `Release` which owns this collection of `Rollout` objects.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The `Release` which owns this collection of `Rollout` objects.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Optional. The maximum number of `Rollout` objects to return. The service
- * may return fewer than this value. If unspecified, at most 50 `Rollout`
- * objects will be returned. The maximum value is 1000; values above 1000 will
- * be set to 1000.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * Optional. The maximum number of `Rollout` objects to return. The service
- * may return fewer than this value. If unspecified, at most 50 `Rollout`
- * objects will be returned. The maximum value is 1000; values above 1000 will
- * be set to 1000.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * Optional. A page token, received from a previous `ListRollouts` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * Optional. A page token, received from a previous `ListRollouts` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
- /**
- * Optional. Filter rollouts to be returned. See https://google.aip.dev/160
- * for more details.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- /**
- * Optional. Filter rollouts to be returned. See https://google.aip.dev/160
- * for more details.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkString($var, True);
- $this->filter = $var;
-
- return $this;
- }
-
- /**
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getOrderBy()
- {
- return $this->order_by;
- }
-
- /**
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setOrderBy($var)
- {
- GPBUtil::checkString($var, True);
- $this->order_by = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListRolloutsResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListRolloutsResponse.php
deleted file mode 100644
index fc25e3092666..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListRolloutsResponse.php
+++ /dev/null
@@ -1,139 +0,0 @@
-google.cloud.deploy.v1.ListRolloutsResponse
- */
-class ListRolloutsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The `Rollout` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Rollout rollouts = 1;
- */
- private $rollouts;
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- */
- private $unreachable;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Deploy\V1\Rollout>|\Google\Protobuf\Internal\RepeatedField $rollouts
- * The `Rollout` objects.
- * @type string $next_page_token
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable
- * Locations that could not be reached.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The `Rollout` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Rollout rollouts = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getRollouts()
- {
- return $this->rollouts;
- }
-
- /**
- * The `Rollout` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Rollout rollouts = 1;
- * @param array<\Google\Cloud\Deploy\V1\Rollout>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setRollouts($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Rollout::class);
- $this->rollouts = $arr;
-
- return $this;
- }
-
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getUnreachable()
- {
- return $this->unreachable;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setUnreachable($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->unreachable = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListTargetsRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListTargetsRequest.php
deleted file mode 100644
index 2aa7809d0875..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListTargetsRequest.php
+++ /dev/null
@@ -1,254 +0,0 @@
-google.cloud.deploy.v1.ListTargetsRequest
- */
-class ListTargetsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent, which owns this collection of targets. Format must be
- * `projects/{project_id}/locations/{location_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Optional. The maximum number of `Target` objects to return. The service may
- * return fewer than this value. If unspecified, at most 50 `Target` objects
- * will be returned. The maximum value is 1000; values above 1000 will be set
- * to 1000.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_size = 0;
- /**
- * Optional. A page token, received from a previous `ListTargets` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_token = '';
- /**
- * Optional. Filter targets to be returned. See https://google.aip.dev/160 for
- * more details.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $filter = '';
- /**
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $order_by = '';
-
- /**
- * @param string $parent Required. The parent, which owns this collection of targets. Format must be
- * `projects/{project_id}/locations/{location_name}`. Please see
- * {@see CloudDeployClient::locationName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\ListTargetsRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent, which owns this collection of targets. Format must be
- * `projects/{project_id}/locations/{location_name}`.
- * @type int $page_size
- * Optional. The maximum number of `Target` objects to return. The service may
- * return fewer than this value. If unspecified, at most 50 `Target` objects
- * will be returned. The maximum value is 1000; values above 1000 will be set
- * to 1000.
- * @type string $page_token
- * Optional. A page token, received from a previous `ListTargets` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- * @type string $filter
- * Optional. Filter targets to be returned. See https://google.aip.dev/160 for
- * more details.
- * @type string $order_by
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent, which owns this collection of targets. Format must be
- * `projects/{project_id}/locations/{location_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent, which owns this collection of targets. Format must be
- * `projects/{project_id}/locations/{location_name}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Optional. The maximum number of `Target` objects to return. The service may
- * return fewer than this value. If unspecified, at most 50 `Target` objects
- * will be returned. The maximum value is 1000; values above 1000 will be set
- * to 1000.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * Optional. The maximum number of `Target` objects to return. The service may
- * return fewer than this value. If unspecified, at most 50 `Target` objects
- * will be returned. The maximum value is 1000; values above 1000 will be set
- * to 1000.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * Optional. A page token, received from a previous `ListTargets` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * Optional. A page token, received from a previous `ListTargets` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other provided parameters match
- * the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
- /**
- * Optional. Filter targets to be returned. See https://google.aip.dev/160 for
- * more details.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- /**
- * Optional. Filter targets to be returned. See https://google.aip.dev/160 for
- * more details.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkString($var, True);
- $this->filter = $var;
-
- return $this;
- }
-
- /**
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getOrderBy()
- {
- return $this->order_by;
- }
-
- /**
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setOrderBy($var)
- {
- GPBUtil::checkString($var, True);
- $this->order_by = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListTargetsResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListTargetsResponse.php
deleted file mode 100644
index 4c648ae25fd5..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListTargetsResponse.php
+++ /dev/null
@@ -1,139 +0,0 @@
-google.cloud.deploy.v1.ListTargetsResponse
- */
-class ListTargetsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The `Target` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Target targets = 1;
- */
- private $targets;
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- */
- private $unreachable;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Deploy\V1\Target>|\Google\Protobuf\Internal\RepeatedField $targets
- * The `Target` objects.
- * @type string $next_page_token
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable
- * Locations that could not be reached.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The `Target` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Target targets = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getTargets()
- {
- return $this->targets;
- }
-
- /**
- * The `Target` objects.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Target targets = 1;
- * @param array<\Google\Cloud\Deploy\V1\Target>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setTargets($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Target::class);
- $this->targets = $arr;
-
- return $this;
- }
-
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getUnreachable()
- {
- return $this->unreachable;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setUnreachable($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->unreachable = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Metadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Metadata.php
deleted file mode 100644
index f9940ac35423..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Metadata.php
+++ /dev/null
@@ -1,173 +0,0 @@
-google.cloud.deploy.v1.Metadata
- */
-class Metadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The name of the Cloud Run Service that is associated with a
- * `Rollout`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $cloud_run = null;
- /**
- * Output only. AutomationRolloutMetadata contains the information about the
- * interactions between Automation service and this rollout.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AutomationRolloutMetadata automation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $automation = null;
- /**
- * Output only. Custom metadata provided by user-defined `Rollout` operations.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $custom = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Deploy\V1\CloudRunMetadata $cloud_run
- * Output only. The name of the Cloud Run Service that is associated with a
- * `Rollout`.
- * @type \Google\Cloud\Deploy\V1\AutomationRolloutMetadata $automation
- * Output only. AutomationRolloutMetadata contains the information about the
- * interactions between Automation service and this rollout.
- * @type \Google\Cloud\Deploy\V1\CustomMetadata $custom
- * Output only. Custom metadata provided by user-defined `Rollout` operations.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The name of the Cloud Run Service that is associated with a
- * `Rollout`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\CloudRunMetadata|null
- */
- public function getCloudRun()
- {
- return $this->cloud_run;
- }
-
- public function hasCloudRun()
- {
- return isset($this->cloud_run);
- }
-
- public function clearCloudRun()
- {
- unset($this->cloud_run);
- }
-
- /**
- * Output only. The name of the Cloud Run Service that is associated with a
- * `Rollout`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\CloudRunMetadata $var
- * @return $this
- */
- public function setCloudRun($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CloudRunMetadata::class);
- $this->cloud_run = $var;
-
- return $this;
- }
-
- /**
- * Output only. AutomationRolloutMetadata contains the information about the
- * interactions between Automation service and this rollout.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AutomationRolloutMetadata automation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\AutomationRolloutMetadata|null
- */
- public function getAutomation()
- {
- return $this->automation;
- }
-
- public function hasAutomation()
- {
- return isset($this->automation);
- }
-
- public function clearAutomation()
- {
- unset($this->automation);
- }
-
- /**
- * Output only. AutomationRolloutMetadata contains the information about the
- * interactions between Automation service and this rollout.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AutomationRolloutMetadata automation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\AutomationRolloutMetadata $var
- * @return $this
- */
- public function setAutomation($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AutomationRolloutMetadata::class);
- $this->automation = $var;
-
- return $this;
- }
-
- /**
- * Output only. Custom metadata provided by user-defined `Rollout` operations.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\CustomMetadata|null
- */
- public function getCustom()
- {
- return $this->custom;
- }
-
- public function hasCustom()
- {
- return isset($this->custom);
- }
-
- public function clearCustom()
- {
- unset($this->custom);
- }
-
- /**
- * Output only. Custom metadata provided by user-defined `Rollout` operations.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\CustomMetadata $var
- * @return $this
- */
- public function setCustom($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomMetadata::class);
- $this->custom = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/MultiTarget.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/MultiTarget.php
deleted file mode 100644
index 339eb1798208..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/MultiTarget.php
+++ /dev/null
@@ -1,67 +0,0 @@
-google.cloud.deploy.v1.MultiTarget
- */
-class MultiTarget extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The target_ids of this multiTarget.
- *
- * Generated from protobuf field repeated string target_ids = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- private $target_ids;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\RepeatedField $target_ids
- * Required. The target_ids of this multiTarget.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The target_ids of this multiTarget.
- *
- * Generated from protobuf field repeated string target_ids = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getTargetIds()
- {
- return $this->target_ids;
- }
-
- /**
- * Required. The target_ids of this multiTarget.
- *
- * Generated from protobuf field repeated string target_ids = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setTargetIds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->target_ids = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/OperationMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/OperationMetadata.php
deleted file mode 100644
index 2565328b1fe3..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/OperationMetadata.php
+++ /dev/null
@@ -1,307 +0,0 @@
-google.cloud.deploy.v1.OperationMetadata
- */
-class OperationMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The time the operation was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Output only. The time the operation finished running.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $end_time = null;
- /**
- * Output only. Server-defined resource path for the target of the operation.
- *
- * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $target = '';
- /**
- * Output only. Name of the verb executed by the operation.
- *
- * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $verb = '';
- /**
- * Output only. Human-readable status of the operation, if any.
- *
- * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $status_message = '';
- /**
- * Output only. Identifies whether the user has requested cancellation
- * of the operation. Operations that have successfully been cancelled
- * have [Operation.error][] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
- * `Code.CANCELLED`.
- *
- * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $requested_cancellation = false;
- /**
- * Output only. API version used to start the operation.
- *
- * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $api_version = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. The time the operation was created.
- * @type \Google\Protobuf\Timestamp $end_time
- * Output only. The time the operation finished running.
- * @type string $target
- * Output only. Server-defined resource path for the target of the operation.
- * @type string $verb
- * Output only. Name of the verb executed by the operation.
- * @type string $status_message
- * Output only. Human-readable status of the operation, if any.
- * @type bool $requested_cancellation
- * Output only. Identifies whether the user has requested cancellation
- * of the operation. Operations that have successfully been cancelled
- * have [Operation.error][] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
- * `Code.CANCELLED`.
- * @type string $api_version
- * Output only. API version used to start the operation.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The time the operation was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. The time the operation was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The time the operation finished running.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getEndTime()
- {
- return $this->end_time;
- }
-
- public function hasEndTime()
- {
- return isset($this->end_time);
- }
-
- public function clearEndTime()
- {
- unset($this->end_time);
- }
-
- /**
- * Output only. The time the operation finished running.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setEndTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->end_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. Server-defined resource path for the target of the operation.
- *
- * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getTarget()
- {
- return $this->target;
- }
-
- /**
- * Output only. Server-defined resource path for the target of the operation.
- *
- * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setTarget($var)
- {
- GPBUtil::checkString($var, True);
- $this->target = $var;
-
- return $this;
- }
-
- /**
- * Output only. Name of the verb executed by the operation.
- *
- * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getVerb()
- {
- return $this->verb;
- }
-
- /**
- * Output only. Name of the verb executed by the operation.
- *
- * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setVerb($var)
- {
- GPBUtil::checkString($var, True);
- $this->verb = $var;
-
- return $this;
- }
-
- /**
- * Output only. Human-readable status of the operation, if any.
- *
- * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getStatusMessage()
- {
- return $this->status_message;
- }
-
- /**
- * Output only. Human-readable status of the operation, if any.
- *
- * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setStatusMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->status_message = $var;
-
- return $this;
- }
-
- /**
- * Output only. Identifies whether the user has requested cancellation
- * of the operation. Operations that have successfully been cancelled
- * have [Operation.error][] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
- * `Code.CANCELLED`.
- *
- * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return bool
- */
- public function getRequestedCancellation()
- {
- return $this->requested_cancellation;
- }
-
- /**
- * Output only. Identifies whether the user has requested cancellation
- * of the operation. Operations that have successfully been cancelled
- * have [Operation.error][] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
- * `Code.CANCELLED`.
- *
- * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param bool $var
- * @return $this
- */
- public function setRequestedCancellation($var)
- {
- GPBUtil::checkBool($var);
- $this->requested_cancellation = $var;
-
- return $this;
- }
-
- /**
- * Output only. API version used to start the operation.
- *
- * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getApiVersion()
- {
- return $this->api_version;
- }
-
- /**
- * Output only. API version used to start the operation.
- *
- * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setApiVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->api_version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Phase.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Phase.php
deleted file mode 100644
index d4eb8041827c..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Phase.php
+++ /dev/null
@@ -1,215 +0,0 @@
-google.cloud.deploy.v1.Phase
- */
-class Phase extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The ID of the Phase.
- *
- * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $id = '';
- /**
- * Output only. Current state of the Phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state = 0;
- /**
- * Output only. Additional information on why the Phase was skipped, if
- * available.
- *
- * Generated from protobuf field string skip_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $skip_message = '';
- protected $jobs;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $id
- * Output only. The ID of the Phase.
- * @type int $state
- * Output only. Current state of the Phase.
- * @type string $skip_message
- * Output only. Additional information on why the Phase was skipped, if
- * available.
- * @type \Google\Cloud\Deploy\V1\DeploymentJobs $deployment_jobs
- * Output only. Deployment job composition.
- * @type \Google\Cloud\Deploy\V1\ChildRolloutJobs $child_rollout_jobs
- * Output only. ChildRollout job composition.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The ID of the Phase.
- *
- * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getId()
- {
- return $this->id;
- }
-
- /**
- * Output only. The ID of the Phase.
- *
- * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setId($var)
- {
- GPBUtil::checkString($var, True);
- $this->id = $var;
-
- return $this;
- }
-
- /**
- * Output only. Current state of the Phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Output only. Current state of the Phase.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Phase\State::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Output only. Additional information on why the Phase was skipped, if
- * available.
- *
- * Generated from protobuf field string skip_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getSkipMessage()
- {
- return $this->skip_message;
- }
-
- /**
- * Output only. Additional information on why the Phase was skipped, if
- * available.
- *
- * Generated from protobuf field string skip_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setSkipMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->skip_message = $var;
-
- return $this;
- }
-
- /**
- * Output only. Deployment job composition.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\DeploymentJobs|null
- */
- public function getDeploymentJobs()
- {
- return $this->readOneof(4);
- }
-
- public function hasDeploymentJobs()
- {
- return $this->hasOneof(4);
- }
-
- /**
- * Output only. Deployment job composition.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\DeploymentJobs $var
- * @return $this
- */
- public function setDeploymentJobs($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeploymentJobs::class);
- $this->writeOneof(4, $var);
-
- return $this;
- }
-
- /**
- * Output only. ChildRollout job composition.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.ChildRolloutJobs child_rollout_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\ChildRolloutJobs|null
- */
- public function getChildRolloutJobs()
- {
- return $this->readOneof(5);
- }
-
- public function hasChildRolloutJobs()
- {
- return $this->hasOneof(5);
- }
-
- /**
- * Output only. ChildRollout job composition.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.ChildRolloutJobs child_rollout_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\ChildRolloutJobs $var
- * @return $this
- */
- public function setChildRolloutJobs($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\ChildRolloutJobs::class);
- $this->writeOneof(5, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getJobs()
- {
- return $this->whichOneof("jobs");
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Phase/State.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Phase/State.php
deleted file mode 100644
index 0685882739b8..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Phase/State.php
+++ /dev/null
@@ -1,92 +0,0 @@
-google.cloud.deploy.v1.Phase.State
- */
-class State
-{
- /**
- * The Phase has an unspecified state.
- *
- * Generated from protobuf enum STATE_UNSPECIFIED = 0;
- */
- const STATE_UNSPECIFIED = 0;
- /**
- * The Phase is waiting for an earlier Phase(s) to complete.
- *
- * Generated from protobuf enum PENDING = 1;
- */
- const PENDING = 1;
- /**
- * The Phase is in progress.
- *
- * Generated from protobuf enum IN_PROGRESS = 2;
- */
- const IN_PROGRESS = 2;
- /**
- * The Phase has succeeded.
- *
- * Generated from protobuf enum SUCCEEDED = 3;
- */
- const SUCCEEDED = 3;
- /**
- * The Phase has failed.
- *
- * Generated from protobuf enum FAILED = 4;
- */
- const FAILED = 4;
- /**
- * The Phase was aborted.
- *
- * Generated from protobuf enum ABORTED = 5;
- */
- const ABORTED = 5;
- /**
- * The Phase was skipped.
- *
- * Generated from protobuf enum SKIPPED = 6;
- */
- const SKIPPED = 6;
-
- private static $valueToName = [
- self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
- self::PENDING => 'PENDING',
- self::IN_PROGRESS => 'IN_PROGRESS',
- self::SUCCEEDED => 'SUCCEEDED',
- self::FAILED => 'FAILED',
- self::ABORTED => 'ABORTED',
- self::SKIPPED => 'SKIPPED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(State::class, \Google\Cloud\Deploy\V1\Phase_State::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PipelineCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PipelineCondition.php
deleted file mode 100644
index 9b2a718bb204..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PipelineCondition.php
+++ /dev/null
@@ -1,169 +0,0 @@
-google.cloud.deploy.v1.PipelineCondition
- */
-class PipelineCondition extends \Google\Protobuf\Internal\Message
-{
- /**
- * Details around the Pipeline's overall status.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1;
- */
- protected $pipeline_ready_condition = null;
- /**
- * Details around targets enumerated in the pipeline.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3;
- */
- protected $targets_present_condition = null;
- /**
- * Details on the whether the targets enumerated in the pipeline are of the
- * same type.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.TargetsTypeCondition targets_type_condition = 4;
- */
- protected $targets_type_condition = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Deploy\V1\PipelineReadyCondition $pipeline_ready_condition
- * Details around the Pipeline's overall status.
- * @type \Google\Cloud\Deploy\V1\TargetsPresentCondition $targets_present_condition
- * Details around targets enumerated in the pipeline.
- * @type \Google\Cloud\Deploy\V1\TargetsTypeCondition $targets_type_condition
- * Details on the whether the targets enumerated in the pipeline are of the
- * same type.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Details around the Pipeline's overall status.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1;
- * @return \Google\Cloud\Deploy\V1\PipelineReadyCondition|null
- */
- public function getPipelineReadyCondition()
- {
- return $this->pipeline_ready_condition;
- }
-
- public function hasPipelineReadyCondition()
- {
- return isset($this->pipeline_ready_condition);
- }
-
- public function clearPipelineReadyCondition()
- {
- unset($this->pipeline_ready_condition);
- }
-
- /**
- * Details around the Pipeline's overall status.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1;
- * @param \Google\Cloud\Deploy\V1\PipelineReadyCondition $var
- * @return $this
- */
- public function setPipelineReadyCondition($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PipelineReadyCondition::class);
- $this->pipeline_ready_condition = $var;
-
- return $this;
- }
-
- /**
- * Details around targets enumerated in the pipeline.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3;
- * @return \Google\Cloud\Deploy\V1\TargetsPresentCondition|null
- */
- public function getTargetsPresentCondition()
- {
- return $this->targets_present_condition;
- }
-
- public function hasTargetsPresentCondition()
- {
- return isset($this->targets_present_condition);
- }
-
- public function clearTargetsPresentCondition()
- {
- unset($this->targets_present_condition);
- }
-
- /**
- * Details around targets enumerated in the pipeline.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3;
- * @param \Google\Cloud\Deploy\V1\TargetsPresentCondition $var
- * @return $this
- */
- public function setTargetsPresentCondition($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\TargetsPresentCondition::class);
- $this->targets_present_condition = $var;
-
- return $this;
- }
-
- /**
- * Details on the whether the targets enumerated in the pipeline are of the
- * same type.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.TargetsTypeCondition targets_type_condition = 4;
- * @return \Google\Cloud\Deploy\V1\TargetsTypeCondition|null
- */
- public function getTargetsTypeCondition()
- {
- return $this->targets_type_condition;
- }
-
- public function hasTargetsTypeCondition()
- {
- return isset($this->targets_type_condition);
- }
-
- public function clearTargetsTypeCondition()
- {
- unset($this->targets_type_condition);
- }
-
- /**
- * Details on the whether the targets enumerated in the pipeline are of the
- * same type.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.TargetsTypeCondition targets_type_condition = 4;
- * @param \Google\Cloud\Deploy\V1\TargetsTypeCondition $var
- * @return $this
- */
- public function setTargetsTypeCondition($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\TargetsTypeCondition::class);
- $this->targets_type_condition = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PipelineReadyCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PipelineReadyCondition.php
deleted file mode 100644
index 5ed4775bcce0..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PipelineReadyCondition.php
+++ /dev/null
@@ -1,124 +0,0 @@
-google.cloud.deploy.v1.PipelineReadyCondition
- */
-class PipelineReadyCondition extends \Google\Protobuf\Internal\Message
-{
- /**
- * True if the Pipeline is in a valid state. Otherwise at least one condition
- * in `PipelineCondition` is in an invalid state. Iterate over those
- * conditions and see which condition(s) has status = false to find out what
- * is wrong with the Pipeline.
- *
- * Generated from protobuf field bool status = 3;
- */
- protected $status = false;
- /**
- * Last time the condition was updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4;
- */
- protected $update_time = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type bool $status
- * True if the Pipeline is in a valid state. Otherwise at least one condition
- * in `PipelineCondition` is in an invalid state. Iterate over those
- * conditions and see which condition(s) has status = false to find out what
- * is wrong with the Pipeline.
- * @type \Google\Protobuf\Timestamp $update_time
- * Last time the condition was updated.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * True if the Pipeline is in a valid state. Otherwise at least one condition
- * in `PipelineCondition` is in an invalid state. Iterate over those
- * conditions and see which condition(s) has status = false to find out what
- * is wrong with the Pipeline.
- *
- * Generated from protobuf field bool status = 3;
- * @return bool
- */
- public function getStatus()
- {
- return $this->status;
- }
-
- /**
- * True if the Pipeline is in a valid state. Otherwise at least one condition
- * in `PipelineCondition` is in an invalid state. Iterate over those
- * conditions and see which condition(s) has status = false to find out what
- * is wrong with the Pipeline.
- *
- * Generated from protobuf field bool status = 3;
- * @param bool $var
- * @return $this
- */
- public function setStatus($var)
- {
- GPBUtil::checkBool($var);
- $this->status = $var;
-
- return $this;
- }
-
- /**
- * Last time the condition was updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->update_time;
- }
-
- public function hasUpdateTime()
- {
- return isset($this->update_time);
- }
-
- public function clearUpdateTime()
- {
- unset($this->update_time);
- }
-
- /**
- * Last time the condition was updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->update_time = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Postdeploy.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Postdeploy.php
deleted file mode 100644
index 9d9352935c0e..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Postdeploy.php
+++ /dev/null
@@ -1,71 +0,0 @@
-google.cloud.deploy.v1.Postdeploy
- */
-class Postdeploy extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. A sequence of Skaffold custom actions to invoke during execution
- * of the postdeploy job.
- *
- * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $actions;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\RepeatedField $actions
- * Optional. A sequence of Skaffold custom actions to invoke during execution
- * of the postdeploy job.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. A sequence of Skaffold custom actions to invoke during execution
- * of the postdeploy job.
- *
- * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getActions()
- {
- return $this->actions;
- }
-
- /**
- * Optional. A sequence of Skaffold custom actions to invoke during execution
- * of the postdeploy job.
- *
- * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setActions($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->actions = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJob.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJob.php
deleted file mode 100644
index 44bcfbac945d..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJob.php
+++ /dev/null
@@ -1,67 +0,0 @@
-google.cloud.deploy.v1.PostdeployJob
- */
-class PostdeployJob extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The custom actions that the postdeploy Job executes.
- *
- * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $actions;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\RepeatedField $actions
- * Output only. The custom actions that the postdeploy Job executes.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The custom actions that the postdeploy Job executes.
- *
- * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getActions()
- {
- return $this->actions;
- }
-
- /**
- * Output only. The custom actions that the postdeploy Job executes.
- *
- * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setActions($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->actions = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJobRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJobRun.php
deleted file mode 100644
index 1f75d56505ec..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJobRun.php
+++ /dev/null
@@ -1,151 +0,0 @@
-google.cloud.deploy.v1.PostdeployJobRun
- */
-class PostdeployJobRun extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to execute the custom actions associated with the postdeploy Job.
- * Format is `projects/{project}/locations/{location}/builds/{build}`.
- *
- * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- */
- protected $build = '';
- /**
- * Output only. The reason the postdeploy failed. This will always be
- * unspecified while the postdeploy is in progress or if it succeeded.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PostdeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $failure_cause = 0;
- /**
- * Output only. Additional information about the postdeploy failure, if
- * available.
- *
- * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $failure_message = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $build
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to execute the custom actions associated with the postdeploy Job.
- * Format is `projects/{project}/locations/{location}/builds/{build}`.
- * @type int $failure_cause
- * Output only. The reason the postdeploy failed. This will always be
- * unspecified while the postdeploy is in progress or if it succeeded.
- * @type string $failure_message
- * Output only. Additional information about the postdeploy failure, if
- * available.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to execute the custom actions associated with the postdeploy Job.
- * Format is `projects/{project}/locations/{location}/builds/{build}`.
- *
- * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @return string
- */
- public function getBuild()
- {
- return $this->build;
- }
-
- /**
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to execute the custom actions associated with the postdeploy Job.
- * Format is `projects/{project}/locations/{location}/builds/{build}`.
- *
- * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setBuild($var)
- {
- GPBUtil::checkString($var, True);
- $this->build = $var;
-
- return $this;
- }
-
- /**
- * Output only. The reason the postdeploy failed. This will always be
- * unspecified while the postdeploy is in progress or if it succeeded.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PostdeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getFailureCause()
- {
- return $this->failure_cause;
- }
-
- /**
- * Output only. The reason the postdeploy failed. This will always be
- * unspecified while the postdeploy is in progress or if it succeeded.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PostdeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setFailureCause($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\PostdeployJobRun\FailureCause::class);
- $this->failure_cause = $var;
-
- return $this;
- }
-
- /**
- * Output only. Additional information about the postdeploy failure, if
- * available.
- *
- * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getFailureMessage()
- {
- return $this->failure_message;
- }
-
- /**
- * Output only. Additional information about the postdeploy failure, if
- * available.
- *
- * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setFailureMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->failure_message = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJobRun/FailureCause.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJobRun/FailureCause.php
deleted file mode 100644
index c8b36d03b38b..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJobRun/FailureCause.php
+++ /dev/null
@@ -1,82 +0,0 @@
-google.cloud.deploy.v1.PostdeployJobRun.FailureCause
- */
-class FailureCause
-{
- /**
- * No reason for failure is specified.
- *
- * Generated from protobuf enum FAILURE_CAUSE_UNSPECIFIED = 0;
- */
- const FAILURE_CAUSE_UNSPECIFIED = 0;
- /**
- * Cloud Build is not available, either because it is not enabled or because
- * Cloud Deploy has insufficient permissions. See [required
- * permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account#required_permissions).
- *
- * Generated from protobuf enum CLOUD_BUILD_UNAVAILABLE = 1;
- */
- const CLOUD_BUILD_UNAVAILABLE = 1;
- /**
- * The postdeploy operation did not complete successfully; check Cloud Build
- * logs.
- *
- * Generated from protobuf enum EXECUTION_FAILED = 2;
- */
- const EXECUTION_FAILED = 2;
- /**
- * The postdeploy job run did not complete within the alloted time.
- *
- * Generated from protobuf enum DEADLINE_EXCEEDED = 3;
- */
- const DEADLINE_EXCEEDED = 3;
- /**
- * Cloud Build failed to fulfill Cloud Deploy's request. See failure_message
- * for additional details.
- *
- * Generated from protobuf enum CLOUD_BUILD_REQUEST_FAILED = 4;
- */
- const CLOUD_BUILD_REQUEST_FAILED = 4;
-
- private static $valueToName = [
- self::FAILURE_CAUSE_UNSPECIFIED => 'FAILURE_CAUSE_UNSPECIFIED',
- self::CLOUD_BUILD_UNAVAILABLE => 'CLOUD_BUILD_UNAVAILABLE',
- self::EXECUTION_FAILED => 'EXECUTION_FAILED',
- self::DEADLINE_EXCEEDED => 'DEADLINE_EXCEEDED',
- self::CLOUD_BUILD_REQUEST_FAILED => 'CLOUD_BUILD_REQUEST_FAILED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(FailureCause::class, \Google\Cloud\Deploy\V1\PostdeployJobRun_FailureCause::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Predeploy.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Predeploy.php
deleted file mode 100644
index cb69743fa87d..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Predeploy.php
+++ /dev/null
@@ -1,71 +0,0 @@
-google.cloud.deploy.v1.Predeploy
- */
-class Predeploy extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. A sequence of Skaffold custom actions to invoke during execution
- * of the predeploy job.
- *
- * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $actions;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\RepeatedField $actions
- * Optional. A sequence of Skaffold custom actions to invoke during execution
- * of the predeploy job.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. A sequence of Skaffold custom actions to invoke during execution
- * of the predeploy job.
- *
- * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getActions()
- {
- return $this->actions;
- }
-
- /**
- * Optional. A sequence of Skaffold custom actions to invoke during execution
- * of the predeploy job.
- *
- * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setActions($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->actions = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJob.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJob.php
deleted file mode 100644
index d11e91272b59..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJob.php
+++ /dev/null
@@ -1,67 +0,0 @@
-google.cloud.deploy.v1.PredeployJob
- */
-class PredeployJob extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The custom actions that the predeploy Job executes.
- *
- * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $actions;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\RepeatedField $actions
- * Output only. The custom actions that the predeploy Job executes.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The custom actions that the predeploy Job executes.
- *
- * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getActions()
- {
- return $this->actions;
- }
-
- /**
- * Output only. The custom actions that the predeploy Job executes.
- *
- * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setActions($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->actions = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJobRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJobRun.php
deleted file mode 100644
index ad155d70502c..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJobRun.php
+++ /dev/null
@@ -1,151 +0,0 @@
-google.cloud.deploy.v1.PredeployJobRun
- */
-class PredeployJobRun extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to execute the custom actions associated with the predeploy Job.
- * Format is `projects/{project}/locations/{location}/builds/{build}`.
- *
- * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- */
- protected $build = '';
- /**
- * Output only. The reason the predeploy failed. This will always be
- * unspecified while the predeploy is in progress or if it succeeded.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PredeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $failure_cause = 0;
- /**
- * Output only. Additional information about the predeploy failure, if
- * available.
- *
- * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $failure_message = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $build
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to execute the custom actions associated with the predeploy Job.
- * Format is `projects/{project}/locations/{location}/builds/{build}`.
- * @type int $failure_cause
- * Output only. The reason the predeploy failed. This will always be
- * unspecified while the predeploy is in progress or if it succeeded.
- * @type string $failure_message
- * Output only. Additional information about the predeploy failure, if
- * available.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to execute the custom actions associated with the predeploy Job.
- * Format is `projects/{project}/locations/{location}/builds/{build}`.
- *
- * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @return string
- */
- public function getBuild()
- {
- return $this->build;
- }
-
- /**
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to execute the custom actions associated with the predeploy Job.
- * Format is `projects/{project}/locations/{location}/builds/{build}`.
- *
- * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setBuild($var)
- {
- GPBUtil::checkString($var, True);
- $this->build = $var;
-
- return $this;
- }
-
- /**
- * Output only. The reason the predeploy failed. This will always be
- * unspecified while the predeploy is in progress or if it succeeded.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PredeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getFailureCause()
- {
- return $this->failure_cause;
- }
-
- /**
- * Output only. The reason the predeploy failed. This will always be
- * unspecified while the predeploy is in progress or if it succeeded.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.PredeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setFailureCause($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\PredeployJobRun\FailureCause::class);
- $this->failure_cause = $var;
-
- return $this;
- }
-
- /**
- * Output only. Additional information about the predeploy failure, if
- * available.
- *
- * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getFailureMessage()
- {
- return $this->failure_message;
- }
-
- /**
- * Output only. Additional information about the predeploy failure, if
- * available.
- *
- * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setFailureMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->failure_message = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJobRun/FailureCause.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJobRun/FailureCause.php
deleted file mode 100644
index 4859716a18b2..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJobRun/FailureCause.php
+++ /dev/null
@@ -1,82 +0,0 @@
-google.cloud.deploy.v1.PredeployJobRun.FailureCause
- */
-class FailureCause
-{
- /**
- * No reason for failure is specified.
- *
- * Generated from protobuf enum FAILURE_CAUSE_UNSPECIFIED = 0;
- */
- const FAILURE_CAUSE_UNSPECIFIED = 0;
- /**
- * Cloud Build is not available, either because it is not enabled or because
- * Cloud Deploy has insufficient permissions. See [required
- * permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account#required_permissions).
- *
- * Generated from protobuf enum CLOUD_BUILD_UNAVAILABLE = 1;
- */
- const CLOUD_BUILD_UNAVAILABLE = 1;
- /**
- * The predeploy operation did not complete successfully; check Cloud Build
- * logs.
- *
- * Generated from protobuf enum EXECUTION_FAILED = 2;
- */
- const EXECUTION_FAILED = 2;
- /**
- * The predeploy job run did not complete within the alloted time.
- *
- * Generated from protobuf enum DEADLINE_EXCEEDED = 3;
- */
- const DEADLINE_EXCEEDED = 3;
- /**
- * Cloud Build failed to fulfill Cloud Deploy's request. See failure_message
- * for additional details.
- *
- * Generated from protobuf enum CLOUD_BUILD_REQUEST_FAILED = 4;
- */
- const CLOUD_BUILD_REQUEST_FAILED = 4;
-
- private static $valueToName = [
- self::FAILURE_CAUSE_UNSPECIFIED => 'FAILURE_CAUSE_UNSPECIFIED',
- self::CLOUD_BUILD_UNAVAILABLE => 'CLOUD_BUILD_UNAVAILABLE',
- self::EXECUTION_FAILED => 'EXECUTION_FAILED',
- self::DEADLINE_EXCEEDED => 'DEADLINE_EXCEEDED',
- self::CLOUD_BUILD_REQUEST_FAILED => 'CLOUD_BUILD_REQUEST_FAILED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(FailureCause::class, \Google\Cloud\Deploy\V1\PredeployJobRun_FailureCause::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PrivatePool.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PrivatePool.php
deleted file mode 100644
index b7a8ae63ba44..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PrivatePool.php
+++ /dev/null
@@ -1,159 +0,0 @@
-google.cloud.deploy.v1.PrivatePool
- */
-class PrivatePool extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Resource name of the Cloud Build worker pool to use. The format
- * is `projects/{project}/locations/{location}/workerPools/{pool}`.
- *
- * Generated from protobuf field string worker_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $worker_pool = '';
- /**
- * Optional. Google service account to use for execution. If unspecified,
- * the project execution service account
- * (-compute@developer.gserviceaccount.com) will be used.
- *
- * Generated from protobuf field string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $service_account = '';
- /**
- * Optional. Cloud Storage location where execution outputs should be stored.
- * This can either be a bucket ("gs://my-bucket") or a path within a bucket
- * ("gs://my-bucket/my-dir").
- * If unspecified, a default bucket located in the same region will be used.
- *
- * Generated from protobuf field string artifact_storage = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $artifact_storage = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $worker_pool
- * Required. Resource name of the Cloud Build worker pool to use. The format
- * is `projects/{project}/locations/{location}/workerPools/{pool}`.
- * @type string $service_account
- * Optional. Google service account to use for execution. If unspecified,
- * the project execution service account
- * (-compute@developer.gserviceaccount.com) will be used.
- * @type string $artifact_storage
- * Optional. Cloud Storage location where execution outputs should be stored.
- * This can either be a bucket ("gs://my-bucket") or a path within a bucket
- * ("gs://my-bucket/my-dir").
- * If unspecified, a default bucket located in the same region will be used.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Resource name of the Cloud Build worker pool to use. The format
- * is `projects/{project}/locations/{location}/workerPools/{pool}`.
- *
- * Generated from protobuf field string worker_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getWorkerPool()
- {
- return $this->worker_pool;
- }
-
- /**
- * Required. Resource name of the Cloud Build worker pool to use. The format
- * is `projects/{project}/locations/{location}/workerPools/{pool}`.
- *
- * Generated from protobuf field string worker_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setWorkerPool($var)
- {
- GPBUtil::checkString($var, True);
- $this->worker_pool = $var;
-
- return $this;
- }
-
- /**
- * Optional. Google service account to use for execution. If unspecified,
- * the project execution service account
- * (-compute@developer.gserviceaccount.com) will be used.
- *
- * Generated from protobuf field string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getServiceAccount()
- {
- return $this->service_account;
- }
-
- /**
- * Optional. Google service account to use for execution. If unspecified,
- * the project execution service account
- * (-compute@developer.gserviceaccount.com) will be used.
- *
- * Generated from protobuf field string service_account = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setServiceAccount($var)
- {
- GPBUtil::checkString($var, True);
- $this->service_account = $var;
-
- return $this;
- }
-
- /**
- * Optional. Cloud Storage location where execution outputs should be stored.
- * This can either be a bucket ("gs://my-bucket") or a path within a bucket
- * ("gs://my-bucket/my-dir").
- * If unspecified, a default bucket located in the same region will be used.
- *
- * Generated from protobuf field string artifact_storage = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getArtifactStorage()
- {
- return $this->artifact_storage;
- }
-
- /**
- * Optional. Cloud Storage location where execution outputs should be stored.
- * This can either be a bucket ("gs://my-bucket") or a path within a bucket
- * ("gs://my-bucket/my-dir").
- * If unspecified, a default bucket located in the same region will be used.
- *
- * Generated from protobuf field string artifact_storage = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setArtifactStorage($var)
- {
- GPBUtil::checkString($var, True);
- $this->artifact_storage = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PromoteReleaseOperation.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PromoteReleaseOperation.php
deleted file mode 100644
index 5dec2ed45fe3..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PromoteReleaseOperation.php
+++ /dev/null
@@ -1,187 +0,0 @@
-google.cloud.deploy.v1.PromoteReleaseOperation
- */
-class PromoteReleaseOperation extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The ID of the target that represents the promotion stage to
- * which the release will be promoted. The value of this field is the last
- * segment of a target name.
- *
- * Generated from protobuf field string target_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $target_id = '';
- /**
- * Output only. How long the operation will be paused.
- *
- * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $wait = null;
- /**
- * Output only. The name of the rollout that initiates the `AutomationRun`.
- *
- * Generated from protobuf field string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $rollout = '';
- /**
- * Output only. The starting phase of the rollout created by this operation.
- *
- * Generated from protobuf field string phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $phase = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $target_id
- * Output only. The ID of the target that represents the promotion stage to
- * which the release will be promoted. The value of this field is the last
- * segment of a target name.
- * @type \Google\Protobuf\Duration $wait
- * Output only. How long the operation will be paused.
- * @type string $rollout
- * Output only. The name of the rollout that initiates the `AutomationRun`.
- * @type string $phase
- * Output only. The starting phase of the rollout created by this operation.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The ID of the target that represents the promotion stage to
- * which the release will be promoted. The value of this field is the last
- * segment of a target name.
- *
- * Generated from protobuf field string target_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getTargetId()
- {
- return $this->target_id;
- }
-
- /**
- * Output only. The ID of the target that represents the promotion stage to
- * which the release will be promoted. The value of this field is the last
- * segment of a target name.
- *
- * Generated from protobuf field string target_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setTargetId($var)
- {
- GPBUtil::checkString($var, True);
- $this->target_id = $var;
-
- return $this;
- }
-
- /**
- * Output only. How long the operation will be paused.
- *
- * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWait()
- {
- return $this->wait;
- }
-
- public function hasWait()
- {
- return isset($this->wait);
- }
-
- public function clearWait()
- {
- unset($this->wait);
- }
-
- /**
- * Output only. How long the operation will be paused.
- *
- * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWait($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->wait = $var;
-
- return $this;
- }
-
- /**
- * Output only. The name of the rollout that initiates the `AutomationRun`.
- *
- * Generated from protobuf field string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getRollout()
- {
- return $this->rollout;
- }
-
- /**
- * Output only. The name of the rollout that initiates the `AutomationRun`.
- *
- * Generated from protobuf field string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setRollout($var)
- {
- GPBUtil::checkString($var, True);
- $this->rollout = $var;
-
- return $this;
- }
-
- /**
- * Output only. The starting phase of the rollout created by this operation.
- *
- * Generated from protobuf field string phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getPhase()
- {
- return $this->phase;
- }
-
- /**
- * Output only. The starting phase of the rollout created by this operation.
- *
- * Generated from protobuf field string phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setPhase($var)
- {
- GPBUtil::checkString($var, True);
- $this->phase = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PromoteReleaseRule.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PromoteReleaseRule.php
deleted file mode 100644
index 5f7bb10e599e..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PromoteReleaseRule.php
+++ /dev/null
@@ -1,264 +0,0 @@
-google.cloud.deploy.v1.PromoteReleaseRule
- */
-class PromoteReleaseRule extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is
- * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
- *
- * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $id = '';
- /**
- * Optional. How long the release need to be paused until being promoted to
- * the next target.
- *
- * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $wait = null;
- /**
- * Optional. The ID of the stage in the pipeline to which this `Release` is
- * deploying. If unspecified, default it to the next stage in the promotion
- * flow. The value of this field could be one of the following:
- * * The last segment of a target name. It only needs the ID to determine
- * if the target is one of the stages in the promotion sequence defined
- * in the pipeline.
- * * "@next", the next target in the promotion sequence.
- *
- * Generated from protobuf field string destination_target_id = 7 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $destination_target_id = '';
- /**
- * Output only. Information around the state of the Automation rule.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $condition = null;
- /**
- * Optional. The starting phase of the rollout created by this operation.
- * Default to the first phase.
- *
- * Generated from protobuf field string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $destination_phase = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $id
- * Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is
- * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
- * @type \Google\Protobuf\Duration $wait
- * Optional. How long the release need to be paused until being promoted to
- * the next target.
- * @type string $destination_target_id
- * Optional. The ID of the stage in the pipeline to which this `Release` is
- * deploying. If unspecified, default it to the next stage in the promotion
- * flow. The value of this field could be one of the following:
- * * The last segment of a target name. It only needs the ID to determine
- * if the target is one of the stages in the promotion sequence defined
- * in the pipeline.
- * * "@next", the next target in the promotion sequence.
- * @type \Google\Cloud\Deploy\V1\AutomationRuleCondition $condition
- * Output only. Information around the state of the Automation rule.
- * @type string $destination_phase
- * Optional. The starting phase of the rollout created by this operation.
- * Default to the first phase.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is
- * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
- *
- * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getId()
- {
- return $this->id;
- }
-
- /**
- * Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is
- * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
- *
- * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setId($var)
- {
- GPBUtil::checkString($var, True);
- $this->id = $var;
-
- return $this;
- }
-
- /**
- * Optional. How long the release need to be paused until being promoted to
- * the next target.
- *
- * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWait()
- {
- return $this->wait;
- }
-
- public function hasWait()
- {
- return isset($this->wait);
- }
-
- public function clearWait()
- {
- unset($this->wait);
- }
-
- /**
- * Optional. How long the release need to be paused until being promoted to
- * the next target.
- *
- * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWait($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->wait = $var;
-
- return $this;
- }
-
- /**
- * Optional. The ID of the stage in the pipeline to which this `Release` is
- * deploying. If unspecified, default it to the next stage in the promotion
- * flow. The value of this field could be one of the following:
- * * The last segment of a target name. It only needs the ID to determine
- * if the target is one of the stages in the promotion sequence defined
- * in the pipeline.
- * * "@next", the next target in the promotion sequence.
- *
- * Generated from protobuf field string destination_target_id = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getDestinationTargetId()
- {
- return $this->destination_target_id;
- }
-
- /**
- * Optional. The ID of the stage in the pipeline to which this `Release` is
- * deploying. If unspecified, default it to the next stage in the promotion
- * flow. The value of this field could be one of the following:
- * * The last segment of a target name. It only needs the ID to determine
- * if the target is one of the stages in the promotion sequence defined
- * in the pipeline.
- * * "@next", the next target in the promotion sequence.
- *
- * Generated from protobuf field string destination_target_id = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setDestinationTargetId($var)
- {
- GPBUtil::checkString($var, True);
- $this->destination_target_id = $var;
-
- return $this;
- }
-
- /**
- * Output only. Information around the state of the Automation rule.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\AutomationRuleCondition|null
- */
- public function getCondition()
- {
- return $this->condition;
- }
-
- public function hasCondition()
- {
- return isset($this->condition);
- }
-
- public function clearCondition()
- {
- unset($this->condition);
- }
-
- /**
- * Output only. Information around the state of the Automation rule.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\AutomationRuleCondition $var
- * @return $this
- */
- public function setCondition($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AutomationRuleCondition::class);
- $this->condition = $var;
-
- return $this;
- }
-
- /**
- * Optional. The starting phase of the rollout created by this operation.
- * Default to the first phase.
- *
- * Generated from protobuf field string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getDestinationPhase()
- {
- return $this->destination_phase;
- }
-
- /**
- * Optional. The starting phase of the rollout created by this operation.
- * Default to the first phase.
- *
- * Generated from protobuf field string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setDestinationPhase($var)
- {
- GPBUtil::checkString($var, True);
- $this->destination_phase = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release.php
deleted file mode 100644
index 2842c336a4e7..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release.php
+++ /dev/null
@@ -1,917 +0,0 @@
-google.cloud.deploy.v1.Release
- */
-class Release extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. Name of the `Release`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`.
- * The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $name = '';
- /**
- * Output only. Unique identifier of the `Release`.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $uid = '';
- /**
- * Description of the `Release`. Max length is 255 characters.
- *
- * Generated from protobuf field string description = 3;
- */
- protected $description = '';
- /**
- * User annotations. These attributes can only be set and used by the
- * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations
- * for more details such as format and size limitations.
- *
- * Generated from protobuf field map annotations = 4;
- */
- private $annotations;
- /**
- * Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 128 bytes.
- *
- * Generated from protobuf field map labels = 5;
- */
- private $labels;
- /**
- * Output only. Indicates whether this is an abandoned release.
- *
- * Generated from protobuf field bool abandoned = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $abandoned = false;
- /**
- * Output only. Time at which the `Release` was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Output only. Time at which the render began.
- *
- * Generated from protobuf field .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $render_start_time = null;
- /**
- * Output only. Time at which the render completed.
- *
- * Generated from protobuf field .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $render_end_time = null;
- /**
- * Cloud Storage URI of tar.gz archive containing Skaffold configuration.
- *
- * Generated from protobuf field string skaffold_config_uri = 17;
- */
- protected $skaffold_config_uri = '';
- /**
- * Filepath of the Skaffold config inside of the config URI.
- *
- * Generated from protobuf field string skaffold_config_path = 9;
- */
- protected $skaffold_config_path = '';
- /**
- * List of artifacts to pass through to Skaffold command.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
- */
- private $build_artifacts;
- /**
- * Output only. Snapshot of the parent pipeline taken at release creation
- * time.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $delivery_pipeline_snapshot = null;
- /**
- * Output only. Snapshot of the targets taken at release creation time.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $target_snapshots;
- /**
- * Output only. Snapshot of the custom target types referenced by the targets
- * taken at release creation time.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $custom_target_type_snapshots;
- /**
- * Output only. Current state of the render operation.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $render_state = 0;
- /**
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 16;
- */
- protected $etag = '';
- /**
- * The Skaffold version to use when operating on this release, such as
- * "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set
- * of versions.
- * If unset, the most recent supported Skaffold version will be used.
- *
- * Generated from protobuf field string skaffold_version = 19;
- */
- protected $skaffold_version = '';
- /**
- * Output only. Map from target ID to the target artifacts created
- * during the render operation.
- *
- * Generated from protobuf field map target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $target_artifacts;
- /**
- * Output only. Map from target ID to details of the render operation for that
- * target.
- *
- * Generated from protobuf field map target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $target_renders;
- /**
- * Output only. Information around the state of the Release.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release.ReleaseCondition condition = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $condition = null;
- /**
- * Optional. The deploy parameters to use for all targets in this release.
- *
- * Generated from protobuf field map deploy_parameters = 25 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $deploy_parameters;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Optional. Name of the `Release`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`.
- * The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
- * @type string $uid
- * Output only. Unique identifier of the `Release`.
- * @type string $description
- * Description of the `Release`. Max length is 255 characters.
- * @type array|\Google\Protobuf\Internal\MapField $annotations
- * User annotations. These attributes can only be set and used by the
- * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations
- * for more details such as format and size limitations.
- * @type array|\Google\Protobuf\Internal\MapField $labels
- * Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 128 bytes.
- * @type bool $abandoned
- * Output only. Indicates whether this is an abandoned release.
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. Time at which the `Release` was created.
- * @type \Google\Protobuf\Timestamp $render_start_time
- * Output only. Time at which the render began.
- * @type \Google\Protobuf\Timestamp $render_end_time
- * Output only. Time at which the render completed.
- * @type string $skaffold_config_uri
- * Cloud Storage URI of tar.gz archive containing Skaffold configuration.
- * @type string $skaffold_config_path
- * Filepath of the Skaffold config inside of the config URI.
- * @type array<\Google\Cloud\Deploy\V1\BuildArtifact>|\Google\Protobuf\Internal\RepeatedField $build_artifacts
- * List of artifacts to pass through to Skaffold command.
- * @type \Google\Cloud\Deploy\V1\DeliveryPipeline $delivery_pipeline_snapshot
- * Output only. Snapshot of the parent pipeline taken at release creation
- * time.
- * @type array<\Google\Cloud\Deploy\V1\Target>|\Google\Protobuf\Internal\RepeatedField $target_snapshots
- * Output only. Snapshot of the targets taken at release creation time.
- * @type array<\Google\Cloud\Deploy\V1\CustomTargetType>|\Google\Protobuf\Internal\RepeatedField $custom_target_type_snapshots
- * Output only. Snapshot of the custom target types referenced by the targets
- * taken at release creation time.
- * @type int $render_state
- * Output only. Current state of the render operation.
- * @type string $etag
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- * @type string $skaffold_version
- * The Skaffold version to use when operating on this release, such as
- * "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set
- * of versions.
- * If unset, the most recent supported Skaffold version will be used.
- * @type array|\Google\Protobuf\Internal\MapField $target_artifacts
- * Output only. Map from target ID to the target artifacts created
- * during the render operation.
- * @type array|\Google\Protobuf\Internal\MapField $target_renders
- * Output only. Map from target ID to details of the render operation for that
- * target.
- * @type \Google\Cloud\Deploy\V1\Release\ReleaseCondition $condition
- * Output only. Information around the state of the Release.
- * @type array|\Google\Protobuf\Internal\MapField $deploy_parameters
- * Optional. The deploy parameters to use for all targets in this release.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. Name of the `Release`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`.
- * The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Optional. Name of the `Release`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`.
- * The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Output only. Unique identifier of the `Release`.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getUid()
- {
- return $this->uid;
- }
-
- /**
- * Output only. Unique identifier of the `Release`.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->uid = $var;
-
- return $this;
- }
-
- /**
- * Description of the `Release`. Max length is 255 characters.
- *
- * Generated from protobuf field string description = 3;
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * Description of the `Release`. Max length is 255 characters.
- *
- * Generated from protobuf field string description = 3;
- * @param string $var
- * @return $this
- */
- public function setDescription($var)
- {
- GPBUtil::checkString($var, True);
- $this->description = $var;
-
- return $this;
- }
-
- /**
- * User annotations. These attributes can only be set and used by the
- * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations
- * for more details such as format and size limitations.
- *
- * Generated from protobuf field map annotations = 4;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getAnnotations()
- {
- return $this->annotations;
- }
-
- /**
- * User annotations. These attributes can only be set and used by the
- * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations
- * for more details such as format and size limitations.
- *
- * Generated from protobuf field map annotations = 4;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setAnnotations($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->annotations = $arr;
-
- return $this;
- }
-
- /**
- * Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 128 bytes.
- *
- * Generated from protobuf field map labels = 5;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getLabels()
- {
- return $this->labels;
- }
-
- /**
- * Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 128 bytes.
- *
- * Generated from protobuf field map labels = 5;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setLabels($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->labels = $arr;
-
- return $this;
- }
-
- /**
- * Output only. Indicates whether this is an abandoned release.
- *
- * Generated from protobuf field bool abandoned = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return bool
- */
- public function getAbandoned()
- {
- return $this->abandoned;
- }
-
- /**
- * Output only. Indicates whether this is an abandoned release.
- *
- * Generated from protobuf field bool abandoned = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param bool $var
- * @return $this
- */
- public function setAbandoned($var)
- {
- GPBUtil::checkBool($var);
- $this->abandoned = $var;
-
- return $this;
- }
-
- /**
- * Output only. Time at which the `Release` was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. Time at which the `Release` was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. Time at which the render began.
- *
- * Generated from protobuf field .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getRenderStartTime()
- {
- return $this->render_start_time;
- }
-
- public function hasRenderStartTime()
- {
- return isset($this->render_start_time);
- }
-
- public function clearRenderStartTime()
- {
- unset($this->render_start_time);
- }
-
- /**
- * Output only. Time at which the render began.
- *
- * Generated from protobuf field .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setRenderStartTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->render_start_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. Time at which the render completed.
- *
- * Generated from protobuf field .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getRenderEndTime()
- {
- return $this->render_end_time;
- }
-
- public function hasRenderEndTime()
- {
- return isset($this->render_end_time);
- }
-
- public function clearRenderEndTime()
- {
- unset($this->render_end_time);
- }
-
- /**
- * Output only. Time at which the render completed.
- *
- * Generated from protobuf field .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setRenderEndTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->render_end_time = $var;
-
- return $this;
- }
-
- /**
- * Cloud Storage URI of tar.gz archive containing Skaffold configuration.
- *
- * Generated from protobuf field string skaffold_config_uri = 17;
- * @return string
- */
- public function getSkaffoldConfigUri()
- {
- return $this->skaffold_config_uri;
- }
-
- /**
- * Cloud Storage URI of tar.gz archive containing Skaffold configuration.
- *
- * Generated from protobuf field string skaffold_config_uri = 17;
- * @param string $var
- * @return $this
- */
- public function setSkaffoldConfigUri($var)
- {
- GPBUtil::checkString($var, True);
- $this->skaffold_config_uri = $var;
-
- return $this;
- }
-
- /**
- * Filepath of the Skaffold config inside of the config URI.
- *
- * Generated from protobuf field string skaffold_config_path = 9;
- * @return string
- */
- public function getSkaffoldConfigPath()
- {
- return $this->skaffold_config_path;
- }
-
- /**
- * Filepath of the Skaffold config inside of the config URI.
- *
- * Generated from protobuf field string skaffold_config_path = 9;
- * @param string $var
- * @return $this
- */
- public function setSkaffoldConfigPath($var)
- {
- GPBUtil::checkString($var, True);
- $this->skaffold_config_path = $var;
-
- return $this;
- }
-
- /**
- * List of artifacts to pass through to Skaffold command.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getBuildArtifacts()
- {
- return $this->build_artifacts;
- }
-
- /**
- * List of artifacts to pass through to Skaffold command.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
- * @param array<\Google\Cloud\Deploy\V1\BuildArtifact>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setBuildArtifacts($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\BuildArtifact::class);
- $this->build_artifacts = $arr;
-
- return $this;
- }
-
- /**
- * Output only. Snapshot of the parent pipeline taken at release creation
- * time.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\DeliveryPipeline|null
- */
- public function getDeliveryPipelineSnapshot()
- {
- return $this->delivery_pipeline_snapshot;
- }
-
- public function hasDeliveryPipelineSnapshot()
- {
- return isset($this->delivery_pipeline_snapshot);
- }
-
- public function clearDeliveryPipelineSnapshot()
- {
- unset($this->delivery_pipeline_snapshot);
- }
-
- /**
- * Output only. Snapshot of the parent pipeline taken at release creation
- * time.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\DeliveryPipeline $var
- * @return $this
- */
- public function setDeliveryPipelineSnapshot($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeliveryPipeline::class);
- $this->delivery_pipeline_snapshot = $var;
-
- return $this;
- }
-
- /**
- * Output only. Snapshot of the targets taken at release creation time.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getTargetSnapshots()
- {
- return $this->target_snapshots;
- }
-
- /**
- * Output only. Snapshot of the targets taken at release creation time.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array<\Google\Cloud\Deploy\V1\Target>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setTargetSnapshots($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Target::class);
- $this->target_snapshots = $arr;
-
- return $this;
- }
-
- /**
- * Output only. Snapshot of the custom target types referenced by the targets
- * taken at release creation time.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getCustomTargetTypeSnapshots()
- {
- return $this->custom_target_type_snapshots;
- }
-
- /**
- * Output only. Snapshot of the custom target types referenced by the targets
- * taken at release creation time.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array<\Google\Cloud\Deploy\V1\CustomTargetType>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setCustomTargetTypeSnapshots($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\CustomTargetType::class);
- $this->custom_target_type_snapshots = $arr;
-
- return $this;
- }
-
- /**
- * Output only. Current state of the render operation.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getRenderState()
- {
- return $this->render_state;
- }
-
- /**
- * Output only. Current state of the render operation.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setRenderState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Release\RenderState::class);
- $this->render_state = $var;
-
- return $this;
- }
-
- /**
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 16;
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 16;
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
- /**
- * The Skaffold version to use when operating on this release, such as
- * "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set
- * of versions.
- * If unset, the most recent supported Skaffold version will be used.
- *
- * Generated from protobuf field string skaffold_version = 19;
- * @return string
- */
- public function getSkaffoldVersion()
- {
- return $this->skaffold_version;
- }
-
- /**
- * The Skaffold version to use when operating on this release, such as
- * "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set
- * of versions.
- * If unset, the most recent supported Skaffold version will be used.
- *
- * Generated from protobuf field string skaffold_version = 19;
- * @param string $var
- * @return $this
- */
- public function setSkaffoldVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->skaffold_version = $var;
-
- return $this;
- }
-
- /**
- * Output only. Map from target ID to the target artifacts created
- * during the render operation.
- *
- * Generated from protobuf field map target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getTargetArtifacts()
- {
- return $this->target_artifacts;
- }
-
- /**
- * Output only. Map from target ID to the target artifacts created
- * during the render operation.
- *
- * Generated from protobuf field map target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setTargetArtifacts($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\TargetArtifact::class);
- $this->target_artifacts = $arr;
-
- return $this;
- }
-
- /**
- * Output only. Map from target ID to details of the render operation for that
- * target.
- *
- * Generated from protobuf field map target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getTargetRenders()
- {
- return $this->target_renders;
- }
-
- /**
- * Output only. Map from target ID to details of the render operation for that
- * target.
- *
- * Generated from protobuf field map target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setTargetRenders($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Release\TargetRender::class);
- $this->target_renders = $arr;
-
- return $this;
- }
-
- /**
- * Output only. Information around the state of the Release.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release.ReleaseCondition condition = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\Release\ReleaseCondition|null
- */
- public function getCondition()
- {
- return $this->condition;
- }
-
- public function hasCondition()
- {
- return isset($this->condition);
- }
-
- public function clearCondition()
- {
- unset($this->condition);
- }
-
- /**
- * Output only. Information around the state of the Release.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release.ReleaseCondition condition = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\Release\ReleaseCondition $var
- * @return $this
- */
- public function setCondition($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Release\ReleaseCondition::class);
- $this->condition = $var;
-
- return $this;
- }
-
- /**
- * Optional. The deploy parameters to use for all targets in this release.
- *
- * Generated from protobuf field map deploy_parameters = 25 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getDeployParameters()
- {
- return $this->deploy_parameters;
- }
-
- /**
- * Optional. The deploy parameters to use for all targets in this release.
- *
- * Generated from protobuf field map deploy_parameters = 25 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setDeployParameters($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->deploy_parameters = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/ReleaseCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/ReleaseCondition.php
deleted file mode 100644
index 5312fff399f3..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/ReleaseCondition.php
+++ /dev/null
@@ -1,128 +0,0 @@
-google.cloud.deploy.v1.Release.ReleaseCondition
- */
-class ReleaseCondition extends \Google\Protobuf\Internal\Message
-{
- /**
- * Details around the Releases's overall status.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1;
- */
- protected $release_ready_condition = null;
- /**
- * Details around the support state of the release's Skaffold
- * version.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2;
- */
- protected $skaffold_supported_condition = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Deploy\V1\Release\ReleaseReadyCondition $release_ready_condition
- * Details around the Releases's overall status.
- * @type \Google\Cloud\Deploy\V1\Release\SkaffoldSupportedCondition $skaffold_supported_condition
- * Details around the support state of the release's Skaffold
- * version.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Details around the Releases's overall status.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1;
- * @return \Google\Cloud\Deploy\V1\Release\ReleaseReadyCondition|null
- */
- public function getReleaseReadyCondition()
- {
- return $this->release_ready_condition;
- }
-
- public function hasReleaseReadyCondition()
- {
- return isset($this->release_ready_condition);
- }
-
- public function clearReleaseReadyCondition()
- {
- unset($this->release_ready_condition);
- }
-
- /**
- * Details around the Releases's overall status.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1;
- * @param \Google\Cloud\Deploy\V1\Release\ReleaseReadyCondition $var
- * @return $this
- */
- public function setReleaseReadyCondition($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Release\ReleaseReadyCondition::class);
- $this->release_ready_condition = $var;
-
- return $this;
- }
-
- /**
- * Details around the support state of the release's Skaffold
- * version.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2;
- * @return \Google\Cloud\Deploy\V1\Release\SkaffoldSupportedCondition|null
- */
- public function getSkaffoldSupportedCondition()
- {
- return $this->skaffold_supported_condition;
- }
-
- public function hasSkaffoldSupportedCondition()
- {
- return isset($this->skaffold_supported_condition);
- }
-
- public function clearSkaffoldSupportedCondition()
- {
- unset($this->skaffold_supported_condition);
- }
-
- /**
- * Details around the support state of the release's Skaffold
- * version.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2;
- * @param \Google\Cloud\Deploy\V1\Release\SkaffoldSupportedCondition $var
- * @return $this
- */
- public function setSkaffoldSupportedCondition($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Release\SkaffoldSupportedCondition::class);
- $this->skaffold_supported_condition = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(ReleaseCondition::class, \Google\Cloud\Deploy\V1\Release_ReleaseCondition::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/ReleaseReadyCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/ReleaseReadyCondition.php
deleted file mode 100644
index 067f272f1658..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/ReleaseReadyCondition.php
+++ /dev/null
@@ -1,84 +0,0 @@
-google.cloud.deploy.v1.Release.ReleaseReadyCondition
- */
-class ReleaseReadyCondition extends \Google\Protobuf\Internal\Message
-{
- /**
- * True if the Release is in a valid state. Otherwise at least one condition
- * in `ReleaseCondition` is in an invalid state. Iterate over those
- * conditions and see which condition(s) has status = false to find out what
- * is wrong with the Release.
- *
- * Generated from protobuf field bool status = 1;
- */
- protected $status = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type bool $status
- * True if the Release is in a valid state. Otherwise at least one condition
- * in `ReleaseCondition` is in an invalid state. Iterate over those
- * conditions and see which condition(s) has status = false to find out what
- * is wrong with the Release.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * True if the Release is in a valid state. Otherwise at least one condition
- * in `ReleaseCondition` is in an invalid state. Iterate over those
- * conditions and see which condition(s) has status = false to find out what
- * is wrong with the Release.
- *
- * Generated from protobuf field bool status = 1;
- * @return bool
- */
- public function getStatus()
- {
- return $this->status;
- }
-
- /**
- * True if the Release is in a valid state. Otherwise at least one condition
- * in `ReleaseCondition` is in an invalid state. Iterate over those
- * conditions and see which condition(s) has status = false to find out what
- * is wrong with the Release.
- *
- * Generated from protobuf field bool status = 1;
- * @param bool $var
- * @return $this
- */
- public function setStatus($var)
- {
- GPBUtil::checkBool($var);
- $this->status = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(ReleaseReadyCondition::class, \Google\Cloud\Deploy\V1\Release_ReleaseReadyCondition::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/RenderState.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/RenderState.php
deleted file mode 100644
index 37282c517e76..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/RenderState.php
+++ /dev/null
@@ -1,71 +0,0 @@
-google.cloud.deploy.v1.Release.RenderState
- */
-class RenderState
-{
- /**
- * The render state is unspecified.
- *
- * Generated from protobuf enum RENDER_STATE_UNSPECIFIED = 0;
- */
- const RENDER_STATE_UNSPECIFIED = 0;
- /**
- * All rendering operations have completed successfully.
- *
- * Generated from protobuf enum SUCCEEDED = 1;
- */
- const SUCCEEDED = 1;
- /**
- * All rendering operations have completed, and one or more have failed.
- *
- * Generated from protobuf enum FAILED = 2;
- */
- const FAILED = 2;
- /**
- * Rendering has started and is not complete.
- *
- * Generated from protobuf enum IN_PROGRESS = 3;
- */
- const IN_PROGRESS = 3;
-
- private static $valueToName = [
- self::RENDER_STATE_UNSPECIFIED => 'RENDER_STATE_UNSPECIFIED',
- self::SUCCEEDED => 'SUCCEEDED',
- self::FAILED => 'FAILED',
- self::IN_PROGRESS => 'IN_PROGRESS',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(RenderState::class, \Google\Cloud\Deploy\V1\Release_RenderState::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/SkaffoldSupportedCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/SkaffoldSupportedCondition.php
deleted file mode 100644
index 282e3fa25ab1..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/SkaffoldSupportedCondition.php
+++ /dev/null
@@ -1,201 +0,0 @@
-google.cloud.deploy.v1.Release.SkaffoldSupportedCondition
- */
-class SkaffoldSupportedCondition extends \Google\Protobuf\Internal\Message
-{
- /**
- * True if the version of Skaffold used by this release is supported.
- *
- * Generated from protobuf field bool status = 1;
- */
- protected $status = false;
- /**
- * The Skaffold support state for this release's version of Skaffold.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2;
- */
- protected $skaffold_support_state = 0;
- /**
- * The time at which this release's version of Skaffold will enter
- * maintenance mode.
- *
- * Generated from protobuf field .google.protobuf.Timestamp maintenance_mode_time = 3;
- */
- protected $maintenance_mode_time = null;
- /**
- * The time at which this release's version of Skaffold will no longer be
- * supported.
- *
- * Generated from protobuf field .google.protobuf.Timestamp support_expiration_time = 4;
- */
- protected $support_expiration_time = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type bool $status
- * True if the version of Skaffold used by this release is supported.
- * @type int $skaffold_support_state
- * The Skaffold support state for this release's version of Skaffold.
- * @type \Google\Protobuf\Timestamp $maintenance_mode_time
- * The time at which this release's version of Skaffold will enter
- * maintenance mode.
- * @type \Google\Protobuf\Timestamp $support_expiration_time
- * The time at which this release's version of Skaffold will no longer be
- * supported.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * True if the version of Skaffold used by this release is supported.
- *
- * Generated from protobuf field bool status = 1;
- * @return bool
- */
- public function getStatus()
- {
- return $this->status;
- }
-
- /**
- * True if the version of Skaffold used by this release is supported.
- *
- * Generated from protobuf field bool status = 1;
- * @param bool $var
- * @return $this
- */
- public function setStatus($var)
- {
- GPBUtil::checkBool($var);
- $this->status = $var;
-
- return $this;
- }
-
- /**
- * The Skaffold support state for this release's version of Skaffold.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2;
- * @return int
- */
- public function getSkaffoldSupportState()
- {
- return $this->skaffold_support_state;
- }
-
- /**
- * The Skaffold support state for this release's version of Skaffold.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2;
- * @param int $var
- * @return $this
- */
- public function setSkaffoldSupportState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\SkaffoldSupportState::class);
- $this->skaffold_support_state = $var;
-
- return $this;
- }
-
- /**
- * The time at which this release's version of Skaffold will enter
- * maintenance mode.
- *
- * Generated from protobuf field .google.protobuf.Timestamp maintenance_mode_time = 3;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getMaintenanceModeTime()
- {
- return $this->maintenance_mode_time;
- }
-
- public function hasMaintenanceModeTime()
- {
- return isset($this->maintenance_mode_time);
- }
-
- public function clearMaintenanceModeTime()
- {
- unset($this->maintenance_mode_time);
- }
-
- /**
- * The time at which this release's version of Skaffold will enter
- * maintenance mode.
- *
- * Generated from protobuf field .google.protobuf.Timestamp maintenance_mode_time = 3;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setMaintenanceModeTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->maintenance_mode_time = $var;
-
- return $this;
- }
-
- /**
- * The time at which this release's version of Skaffold will no longer be
- * supported.
- *
- * Generated from protobuf field .google.protobuf.Timestamp support_expiration_time = 4;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getSupportExpirationTime()
- {
- return $this->support_expiration_time;
- }
-
- public function hasSupportExpirationTime()
- {
- return isset($this->support_expiration_time);
- }
-
- public function clearSupportExpirationTime()
- {
- unset($this->support_expiration_time);
- }
-
- /**
- * The time at which this release's version of Skaffold will no longer be
- * supported.
- *
- * Generated from protobuf field .google.protobuf.Timestamp support_expiration_time = 4;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setSupportExpirationTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->support_expiration_time = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(SkaffoldSupportedCondition::class, \Google\Cloud\Deploy\V1\Release_SkaffoldSupportedCondition::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender.php
deleted file mode 100644
index 6042ed840749..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender.php
+++ /dev/null
@@ -1,232 +0,0 @@
-google.cloud.deploy.v1.Release.TargetRender
- */
-class TargetRender extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to render the manifest for this target. Format is
- * `projects/{project}/locations/{location}/builds/{build}`.
- *
- * Generated from protobuf field string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- */
- protected $rendering_build = '';
- /**
- * Output only. Current state of the render operation for this Target.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $rendering_state = 0;
- /**
- * Output only. Metadata related to the `Release` render for this Target.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $metadata = null;
- /**
- * Output only. Reason this render failed. This will always be unspecified
- * while the render in progress.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $failure_cause = 0;
- /**
- * Output only. Additional information about the render failure, if
- * available.
- *
- * Generated from protobuf field string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $failure_message = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $rendering_build
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to render the manifest for this target. Format is
- * `projects/{project}/locations/{location}/builds/{build}`.
- * @type int $rendering_state
- * Output only. Current state of the render operation for this Target.
- * @type \Google\Cloud\Deploy\V1\RenderMetadata $metadata
- * Output only. Metadata related to the `Release` render for this Target.
- * @type int $failure_cause
- * Output only. Reason this render failed. This will always be unspecified
- * while the render in progress.
- * @type string $failure_message
- * Output only. Additional information about the render failure, if
- * available.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to render the manifest for this target. Format is
- * `projects/{project}/locations/{location}/builds/{build}`.
- *
- * Generated from protobuf field string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @return string
- */
- public function getRenderingBuild()
- {
- return $this->rendering_build;
- }
-
- /**
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to render the manifest for this target. Format is
- * `projects/{project}/locations/{location}/builds/{build}`.
- *
- * Generated from protobuf field string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setRenderingBuild($var)
- {
- GPBUtil::checkString($var, True);
- $this->rendering_build = $var;
-
- return $this;
- }
-
- /**
- * Output only. Current state of the render operation for this Target.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getRenderingState()
- {
- return $this->rendering_state;
- }
-
- /**
- * Output only. Current state of the render operation for this Target.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setRenderingState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Release\TargetRender\TargetRenderState::class);
- $this->rendering_state = $var;
-
- return $this;
- }
-
- /**
- * Output only. Metadata related to the `Release` render for this Target.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\RenderMetadata|null
- */
- public function getMetadata()
- {
- return $this->metadata;
- }
-
- public function hasMetadata()
- {
- return isset($this->metadata);
- }
-
- public function clearMetadata()
- {
- unset($this->metadata);
- }
-
- /**
- * Output only. Metadata related to the `Release` render for this Target.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\RenderMetadata $var
- * @return $this
- */
- public function setMetadata($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RenderMetadata::class);
- $this->metadata = $var;
-
- return $this;
- }
-
- /**
- * Output only. Reason this render failed. This will always be unspecified
- * while the render in progress.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getFailureCause()
- {
- return $this->failure_cause;
- }
-
- /**
- * Output only. Reason this render failed. This will always be unspecified
- * while the render in progress.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setFailureCause($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Release\TargetRender\FailureCause::class);
- $this->failure_cause = $var;
-
- return $this;
- }
-
- /**
- * Output only. Additional information about the render failure, if
- * available.
- *
- * Generated from protobuf field string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getFailureMessage()
- {
- return $this->failure_message;
- }
-
- /**
- * Output only. Additional information about the render failure, if
- * available.
- *
- * Generated from protobuf field string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setFailureMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->failure_message = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(TargetRender::class, \Google\Cloud\Deploy\V1\Release_TargetRender::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender/FailureCause.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender/FailureCause.php
deleted file mode 100644
index b5c87f038ed3..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender/FailureCause.php
+++ /dev/null
@@ -1,108 +0,0 @@
-google.cloud.deploy.v1.Release.TargetRender.FailureCause
- */
-class FailureCause
-{
- /**
- * No reason for failure is specified.
- *
- * Generated from protobuf enum FAILURE_CAUSE_UNSPECIFIED = 0;
- */
- const FAILURE_CAUSE_UNSPECIFIED = 0;
- /**
- * Cloud Build is not available, either because it is not enabled or
- * because Cloud Deploy has insufficient permissions. See [required
- * permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account#required_permissions).
- *
- * Generated from protobuf enum CLOUD_BUILD_UNAVAILABLE = 1;
- */
- const CLOUD_BUILD_UNAVAILABLE = 1;
- /**
- * The render operation did not complete successfully; check Cloud Build
- * logs.
- *
- * Generated from protobuf enum EXECUTION_FAILED = 2;
- */
- const EXECUTION_FAILED = 2;
- /**
- * Cloud Build failed to fulfill Cloud Deploy's request. See
- * failure_message for additional details.
- *
- * Generated from protobuf enum CLOUD_BUILD_REQUEST_FAILED = 3;
- */
- const CLOUD_BUILD_REQUEST_FAILED = 3;
- /**
- * The render operation did not complete successfully because the
- * verification stanza required for verify was not found on the Skaffold
- * configuration.
- *
- * Generated from protobuf enum VERIFICATION_CONFIG_NOT_FOUND = 4;
- */
- const VERIFICATION_CONFIG_NOT_FOUND = 4;
- /**
- * The render operation did not complete successfully because the custom
- * action required for predeploy or postdeploy was not found in the
- * Skaffold configuration. See failure_message for additional details.
- *
- * Generated from protobuf enum CUSTOM_ACTION_NOT_FOUND = 5;
- */
- const CUSTOM_ACTION_NOT_FOUND = 5;
- /**
- * Release failed during rendering because the release configuration is
- * not supported with the specified deployment strategy.
- *
- * Generated from protobuf enum DEPLOYMENT_STRATEGY_NOT_SUPPORTED = 6;
- */
- const DEPLOYMENT_STRATEGY_NOT_SUPPORTED = 6;
- /**
- * The render operation had a feature configured that is not supported.
- *
- * Generated from protobuf enum RENDER_FEATURE_NOT_SUPPORTED = 7;
- */
- const RENDER_FEATURE_NOT_SUPPORTED = 7;
-
- private static $valueToName = [
- self::FAILURE_CAUSE_UNSPECIFIED => 'FAILURE_CAUSE_UNSPECIFIED',
- self::CLOUD_BUILD_UNAVAILABLE => 'CLOUD_BUILD_UNAVAILABLE',
- self::EXECUTION_FAILED => 'EXECUTION_FAILED',
- self::CLOUD_BUILD_REQUEST_FAILED => 'CLOUD_BUILD_REQUEST_FAILED',
- self::VERIFICATION_CONFIG_NOT_FOUND => 'VERIFICATION_CONFIG_NOT_FOUND',
- self::CUSTOM_ACTION_NOT_FOUND => 'CUSTOM_ACTION_NOT_FOUND',
- self::DEPLOYMENT_STRATEGY_NOT_SUPPORTED => 'DEPLOYMENT_STRATEGY_NOT_SUPPORTED',
- self::RENDER_FEATURE_NOT_SUPPORTED => 'RENDER_FEATURE_NOT_SUPPORTED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(FailureCause::class, \Google\Cloud\Deploy\V1\Release_TargetRender_FailureCause::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender/TargetRenderState.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender/TargetRenderState.php
deleted file mode 100644
index 3f4840b1272f..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender/TargetRenderState.php
+++ /dev/null
@@ -1,71 +0,0 @@
-google.cloud.deploy.v1.Release.TargetRender.TargetRenderState
- */
-class TargetRenderState
-{
- /**
- * The render operation state is unspecified.
- *
- * Generated from protobuf enum TARGET_RENDER_STATE_UNSPECIFIED = 0;
- */
- const TARGET_RENDER_STATE_UNSPECIFIED = 0;
- /**
- * The render operation has completed successfully.
- *
- * Generated from protobuf enum SUCCEEDED = 1;
- */
- const SUCCEEDED = 1;
- /**
- * The render operation has failed.
- *
- * Generated from protobuf enum FAILED = 2;
- */
- const FAILED = 2;
- /**
- * The render operation is in progress.
- *
- * Generated from protobuf enum IN_PROGRESS = 3;
- */
- const IN_PROGRESS = 3;
-
- private static $valueToName = [
- self::TARGET_RENDER_STATE_UNSPECIFIED => 'TARGET_RENDER_STATE_UNSPECIFIED',
- self::SUCCEEDED => 'SUCCEEDED',
- self::FAILED => 'FAILED',
- self::IN_PROGRESS => 'IN_PROGRESS',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(TargetRenderState::class, \Google\Cloud\Deploy\V1\Release_TargetRender_TargetRenderState::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ReleaseNotificationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ReleaseNotificationEvent.php
deleted file mode 100644
index 564707b255ce..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ReleaseNotificationEvent.php
+++ /dev/null
@@ -1,205 +0,0 @@
-google.cloud.deploy.v1.ReleaseNotificationEvent
- */
-class ReleaseNotificationEvent extends \Google\Protobuf\Internal\Message
-{
- /**
- * Debug message for when a notification fails to send.
- *
- * Generated from protobuf field string message = 1;
- */
- protected $message = '';
- /**
- * Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string pipeline_uid = 4;
- */
- protected $pipeline_uid = '';
- /**
- * Unique identifier of the `Release`.
- *
- * Generated from protobuf field string release_uid = 5;
- */
- protected $release_uid = '';
- /**
- * The name of the `Release`.
- *
- * Generated from protobuf field string release = 2;
- */
- protected $release = '';
- /**
- * Type of this notification, e.g. for a Pub/Sub failure.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3;
- */
- protected $type = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $message
- * Debug message for when a notification fails to send.
- * @type string $pipeline_uid
- * Unique identifier of the `DeliveryPipeline`.
- * @type string $release_uid
- * Unique identifier of the `Release`.
- * @type string $release
- * The name of the `Release`.
- * @type int $type
- * Type of this notification, e.g. for a Pub/Sub failure.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\ReleaseNotificationPayload::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Debug message for when a notification fails to send.
- *
- * Generated from protobuf field string message = 1;
- * @return string
- */
- public function getMessage()
- {
- return $this->message;
- }
-
- /**
- * Debug message for when a notification fails to send.
- *
- * Generated from protobuf field string message = 1;
- * @param string $var
- * @return $this
- */
- public function setMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->message = $var;
-
- return $this;
- }
-
- /**
- * Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string pipeline_uid = 4;
- * @return string
- */
- public function getPipelineUid()
- {
- return $this->pipeline_uid;
- }
-
- /**
- * Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string pipeline_uid = 4;
- * @param string $var
- * @return $this
- */
- public function setPipelineUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->pipeline_uid = $var;
-
- return $this;
- }
-
- /**
- * Unique identifier of the `Release`.
- *
- * Generated from protobuf field string release_uid = 5;
- * @return string
- */
- public function getReleaseUid()
- {
- return $this->release_uid;
- }
-
- /**
- * Unique identifier of the `Release`.
- *
- * Generated from protobuf field string release_uid = 5;
- * @param string $var
- * @return $this
- */
- public function setReleaseUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->release_uid = $var;
-
- return $this;
- }
-
- /**
- * The name of the `Release`.
- *
- * Generated from protobuf field string release = 2;
- * @return string
- */
- public function getRelease()
- {
- return $this->release;
- }
-
- /**
- * The name of the `Release`.
- *
- * Generated from protobuf field string release = 2;
- * @param string $var
- * @return $this
- */
- public function setRelease($var)
- {
- GPBUtil::checkString($var, True);
- $this->release = $var;
-
- return $this;
- }
-
- /**
- * Type of this notification, e.g. for a Pub/Sub failure.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3;
- * @return int
- */
- public function getType()
- {
- return $this->type;
- }
-
- /**
- * Type of this notification, e.g. for a Pub/Sub failure.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3;
- * @param int $var
- * @return $this
- */
- public function setType($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class);
- $this->type = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ReleaseRenderEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ReleaseRenderEvent.php
deleted file mode 100644
index 59933d460f13..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ReleaseRenderEvent.php
+++ /dev/null
@@ -1,216 +0,0 @@
-google.cloud.deploy.v1.ReleaseRenderEvent
- */
-class ReleaseRenderEvent extends \Google\Protobuf\Internal\Message
-{
- /**
- * Debug message for when a render transition occurs. Provides further
- * details as rendering progresses through render states.
- *
- * Generated from protobuf field string message = 1;
- */
- protected $message = '';
- /**
- * Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string pipeline_uid = 4;
- */
- protected $pipeline_uid = '';
- /**
- * The name of the release.
- * release_uid is not in this log message because we write some of these log
- * messages at release creation time, before we've generated the uid.
- *
- * Generated from protobuf field string release = 2;
- */
- protected $release = '';
- /**
- * Type of this notification, e.g. for a release render state change event.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 5;
- */
- protected $type = 0;
- /**
- * The state of the release render.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release.RenderState release_render_state = 3;
- */
- protected $release_render_state = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $message
- * Debug message for when a render transition occurs. Provides further
- * details as rendering progresses through render states.
- * @type string $pipeline_uid
- * Unique identifier of the `DeliveryPipeline`.
- * @type string $release
- * The name of the release.
- * release_uid is not in this log message because we write some of these log
- * messages at release creation time, before we've generated the uid.
- * @type int $type
- * Type of this notification, e.g. for a release render state change event.
- * @type int $release_render_state
- * The state of the release render.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\ReleaseRenderPayload::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Debug message for when a render transition occurs. Provides further
- * details as rendering progresses through render states.
- *
- * Generated from protobuf field string message = 1;
- * @return string
- */
- public function getMessage()
- {
- return $this->message;
- }
-
- /**
- * Debug message for when a render transition occurs. Provides further
- * details as rendering progresses through render states.
- *
- * Generated from protobuf field string message = 1;
- * @param string $var
- * @return $this
- */
- public function setMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->message = $var;
-
- return $this;
- }
-
- /**
- * Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string pipeline_uid = 4;
- * @return string
- */
- public function getPipelineUid()
- {
- return $this->pipeline_uid;
- }
-
- /**
- * Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string pipeline_uid = 4;
- * @param string $var
- * @return $this
- */
- public function setPipelineUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->pipeline_uid = $var;
-
- return $this;
- }
-
- /**
- * The name of the release.
- * release_uid is not in this log message because we write some of these log
- * messages at release creation time, before we've generated the uid.
- *
- * Generated from protobuf field string release = 2;
- * @return string
- */
- public function getRelease()
- {
- return $this->release;
- }
-
- /**
- * The name of the release.
- * release_uid is not in this log message because we write some of these log
- * messages at release creation time, before we've generated the uid.
- *
- * Generated from protobuf field string release = 2;
- * @param string $var
- * @return $this
- */
- public function setRelease($var)
- {
- GPBUtil::checkString($var, True);
- $this->release = $var;
-
- return $this;
- }
-
- /**
- * Type of this notification, e.g. for a release render state change event.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 5;
- * @return int
- */
- public function getType()
- {
- return $this->type;
- }
-
- /**
- * Type of this notification, e.g. for a release render state change event.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 5;
- * @param int $var
- * @return $this
- */
- public function setType($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class);
- $this->type = $var;
-
- return $this;
- }
-
- /**
- * The state of the release render.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release.RenderState release_render_state = 3;
- * @return int
- */
- public function getReleaseRenderState()
- {
- return $this->release_render_state;
- }
-
- /**
- * The state of the release render.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Release.RenderState release_render_state = 3;
- * @param int $var
- * @return $this
- */
- public function setReleaseRenderState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Release\RenderState::class);
- $this->release_render_state = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RenderMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RenderMetadata.php
deleted file mode 100644
index a4ef9c53a1d1..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RenderMetadata.php
+++ /dev/null
@@ -1,121 +0,0 @@
-google.cloud.deploy.v1.RenderMetadata
- */
-class RenderMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. Metadata associated with rendering for Cloud Run.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CloudRunRenderMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $cloud_run = null;
- /**
- * Output only. Custom metadata provided by user-defined render operation.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $custom = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Deploy\V1\CloudRunRenderMetadata $cloud_run
- * Output only. Metadata associated with rendering for Cloud Run.
- * @type \Google\Cloud\Deploy\V1\CustomMetadata $custom
- * Output only. Custom metadata provided by user-defined render operation.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. Metadata associated with rendering for Cloud Run.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CloudRunRenderMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\CloudRunRenderMetadata|null
- */
- public function getCloudRun()
- {
- return $this->cloud_run;
- }
-
- public function hasCloudRun()
- {
- return isset($this->cloud_run);
- }
-
- public function clearCloudRun()
- {
- unset($this->cloud_run);
- }
-
- /**
- * Output only. Metadata associated with rendering for Cloud Run.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CloudRunRenderMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\CloudRunRenderMetadata $var
- * @return $this
- */
- public function setCloudRun($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CloudRunRenderMetadata::class);
- $this->cloud_run = $var;
-
- return $this;
- }
-
- /**
- * Output only. Custom metadata provided by user-defined render operation.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\CustomMetadata|null
- */
- public function getCustom()
- {
- return $this->custom;
- }
-
- public function hasCustom()
- {
- return isset($this->custom);
- }
-
- public function clearCustom()
- {
- unset($this->custom);
- }
-
- /**
- * Output only. Custom metadata provided by user-defined render operation.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\CustomMetadata $var
- * @return $this
- */
- public function setCustom($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomMetadata::class);
- $this->custom = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairMode.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairMode.php
deleted file mode 100644
index fc68f99b0bb3..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairMode.php
+++ /dev/null
@@ -1,108 +0,0 @@
-google.cloud.deploy.v1.RepairMode
- */
-class RepairMode extends \Google\Protobuf\Internal\Message
-{
- protected $mode;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Deploy\V1\Retry $retry
- * Optional. Retries a failed job.
- * @type \Google\Cloud\Deploy\V1\Rollback $rollback
- * Optional. Rolls back a `Rollout`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. Retries a failed job.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Retry retry = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Deploy\V1\Retry|null
- */
- public function getRetry()
- {
- return $this->readOneof(1);
- }
-
- public function hasRetry()
- {
- return $this->hasOneof(1);
- }
-
- /**
- * Optional. Retries a failed job.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Retry retry = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Deploy\V1\Retry $var
- * @return $this
- */
- public function setRetry($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Retry::class);
- $this->writeOneof(1, $var);
-
- return $this;
- }
-
- /**
- * Optional. Rolls back a `Rollout`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Rollback rollback = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Deploy\V1\Rollback|null
- */
- public function getRollback()
- {
- return $this->readOneof(2);
- }
-
- public function hasRollback()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * Optional. Rolls back a `Rollout`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Rollback rollback = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Deploy\V1\Rollback $var
- * @return $this
- */
- public function setRollback($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Rollback::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getMode()
- {
- return $this->whichOneof("mode");
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairPhase.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairPhase.php
deleted file mode 100644
index c0e3879c2809..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairPhase.php
+++ /dev/null
@@ -1,109 +0,0 @@
-google.cloud.deploy.v1.RepairPhase
- */
-class RepairPhase extends \Google\Protobuf\Internal\Message
-{
- protected $repair_phase;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Deploy\V1\RetryPhase $retry
- * Output only. Records of the retry attempts for retry repair mode.
- * @type \Google\Cloud\Deploy\V1\RollbackAttempt $rollback
- * Output only. Rollback attempt for rollback repair mode .
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. Records of the retry attempts for retry repair mode.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RetryPhase retry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\RetryPhase|null
- */
- public function getRetry()
- {
- return $this->readOneof(1);
- }
-
- public function hasRetry()
- {
- return $this->hasOneof(1);
- }
-
- /**
- * Output only. Records of the retry attempts for retry repair mode.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RetryPhase retry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\RetryPhase $var
- * @return $this
- */
- public function setRetry($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RetryPhase::class);
- $this->writeOneof(1, $var);
-
- return $this;
- }
-
- /**
- * Output only. Rollback attempt for rollback repair mode .
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RollbackAttempt rollback = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\RollbackAttempt|null
- */
- public function getRollback()
- {
- return $this->readOneof(2);
- }
-
- public function hasRollback()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * Output only. Rollback attempt for rollback repair mode .
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RollbackAttempt rollback = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\RollbackAttempt $var
- * @return $this
- */
- public function setRollback($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RollbackAttempt::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getRepairPhase()
- {
- return $this->whichOneof("repair_phase");
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairRolloutOperation.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairRolloutOperation.php
deleted file mode 100644
index cbc9fa6ba97a..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairRolloutOperation.php
+++ /dev/null
@@ -1,139 +0,0 @@
-google.cloud.deploy.v1.RepairRolloutOperation
- */
-class RepairRolloutOperation extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The name of the rollout that initiates the `AutomationRun`.
- *
- * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $rollout = '';
- /**
- * Output only. The index of the current repair action in the repair sequence.
- *
- * Generated from protobuf field int64 current_repair_mode_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $current_repair_mode_index = 0;
- /**
- * Output only. Records of the repair attempts. Each repair phase may have
- * multiple retry attempts or single rollback attempt.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $repair_phases;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $rollout
- * Output only. The name of the rollout that initiates the `AutomationRun`.
- * @type int|string $current_repair_mode_index
- * Output only. The index of the current repair action in the repair sequence.
- * @type array<\Google\Cloud\Deploy\V1\RepairPhase>|\Google\Protobuf\Internal\RepeatedField $repair_phases
- * Output only. Records of the repair attempts. Each repair phase may have
- * multiple retry attempts or single rollback attempt.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The name of the rollout that initiates the `AutomationRun`.
- *
- * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getRollout()
- {
- return $this->rollout;
- }
-
- /**
- * Output only. The name of the rollout that initiates the `AutomationRun`.
- *
- * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setRollout($var)
- {
- GPBUtil::checkString($var, True);
- $this->rollout = $var;
-
- return $this;
- }
-
- /**
- * Output only. The index of the current repair action in the repair sequence.
- *
- * Generated from protobuf field int64 current_repair_mode_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int|string
- */
- public function getCurrentRepairModeIndex()
- {
- return $this->current_repair_mode_index;
- }
-
- /**
- * Output only. The index of the current repair action in the repair sequence.
- *
- * Generated from protobuf field int64 current_repair_mode_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int|string $var
- * @return $this
- */
- public function setCurrentRepairModeIndex($var)
- {
- GPBUtil::checkInt64($var);
- $this->current_repair_mode_index = $var;
-
- return $this;
- }
-
- /**
- * Output only. Records of the repair attempts. Each repair phase may have
- * multiple retry attempts or single rollback attempt.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getRepairPhases()
- {
- return $this->repair_phases;
- }
-
- /**
- * Output only. Records of the repair attempts. Each repair phase may have
- * multiple retry attempts or single rollback attempt.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array<\Google\Cloud\Deploy\V1\RepairPhase>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setRepairPhases($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\RepairPhase::class);
- $this->repair_phases = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairRolloutRule.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairRolloutRule.php
deleted file mode 100644
index 44a01f3f4736..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairRolloutRule.php
+++ /dev/null
@@ -1,266 +0,0 @@
-google.cloud.deploy.v1.RepairRolloutRule
- */
-class RepairRolloutRule extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is
- * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
- *
- * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $id = '';
- /**
- * Optional. Phases within which jobs are subject to automatic repair actions
- * on failure. Proceeds only after phase name matched any one in the list, or
- * for all phases if unspecified. This value must consist of lower-case
- * letters, numbers, and hyphens, start with a letter and end with a letter or
- * a number, and have a max length of 63 characters. In other words, it must
- * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
- *
- * Generated from protobuf field repeated string source_phases = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $source_phases;
- /**
- * Optional. Jobs to repair. Proceeds only after job name matched any one in
- * the list, or for all jobs if unspecified or empty. The phase that includes
- * the job must match the phase ID specified in `source_phase`. This value
- * must consist of lower-case letters, numbers, and hyphens, start with a
- * letter and end with a letter or a number, and have a max length of 63
- * characters. In other words, it must match the following regex:
- * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
- *
- * Generated from protobuf field repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $jobs;
- /**
- * Required. Defines the types of automatic repair actions for failed jobs.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED];
- */
- private $repair_modes;
- /**
- * Output only. Information around the state of the 'Automation' rule.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $condition = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $id
- * Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is
- * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
- * @type array|\Google\Protobuf\Internal\RepeatedField $source_phases
- * Optional. Phases within which jobs are subject to automatic repair actions
- * on failure. Proceeds only after phase name matched any one in the list, or
- * for all phases if unspecified. This value must consist of lower-case
- * letters, numbers, and hyphens, start with a letter and end with a letter or
- * a number, and have a max length of 63 characters. In other words, it must
- * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
- * @type array|\Google\Protobuf\Internal\RepeatedField $jobs
- * Optional. Jobs to repair. Proceeds only after job name matched any one in
- * the list, or for all jobs if unspecified or empty. The phase that includes
- * the job must match the phase ID specified in `source_phase`. This value
- * must consist of lower-case letters, numbers, and hyphens, start with a
- * letter and end with a letter or a number, and have a max length of 63
- * characters. In other words, it must match the following regex:
- * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
- * @type array<\Google\Cloud\Deploy\V1\RepairMode>|\Google\Protobuf\Internal\RepeatedField $repair_modes
- * Required. Defines the types of automatic repair actions for failed jobs.
- * @type \Google\Cloud\Deploy\V1\AutomationRuleCondition $condition
- * Output only. Information around the state of the 'Automation' rule.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is
- * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
- *
- * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getId()
- {
- return $this->id;
- }
-
- /**
- * Required. ID of the rule. This id must be unique in the `Automation`
- * resource to which this rule belongs. The format is
- * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
- *
- * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setId($var)
- {
- GPBUtil::checkString($var, True);
- $this->id = $var;
-
- return $this;
- }
-
- /**
- * Optional. Phases within which jobs are subject to automatic repair actions
- * on failure. Proceeds only after phase name matched any one in the list, or
- * for all phases if unspecified. This value must consist of lower-case
- * letters, numbers, and hyphens, start with a letter and end with a letter or
- * a number, and have a max length of 63 characters. In other words, it must
- * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
- *
- * Generated from protobuf field repeated string source_phases = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getSourcePhases()
- {
- return $this->source_phases;
- }
-
- /**
- * Optional. Phases within which jobs are subject to automatic repair actions
- * on failure. Proceeds only after phase name matched any one in the list, or
- * for all phases if unspecified. This value must consist of lower-case
- * letters, numbers, and hyphens, start with a letter and end with a letter or
- * a number, and have a max length of 63 characters. In other words, it must
- * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
- *
- * Generated from protobuf field repeated string source_phases = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setSourcePhases($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->source_phases = $arr;
-
- return $this;
- }
-
- /**
- * Optional. Jobs to repair. Proceeds only after job name matched any one in
- * the list, or for all jobs if unspecified or empty. The phase that includes
- * the job must match the phase ID specified in `source_phase`. This value
- * must consist of lower-case letters, numbers, and hyphens, start with a
- * letter and end with a letter or a number, and have a max length of 63
- * characters. In other words, it must match the following regex:
- * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
- *
- * Generated from protobuf field repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getJobs()
- {
- return $this->jobs;
- }
-
- /**
- * Optional. Jobs to repair. Proceeds only after job name matched any one in
- * the list, or for all jobs if unspecified or empty. The phase that includes
- * the job must match the phase ID specified in `source_phase`. This value
- * must consist of lower-case letters, numbers, and hyphens, start with a
- * letter and end with a letter or a number, and have a max length of 63
- * characters. In other words, it must match the following regex:
- * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
- *
- * Generated from protobuf field repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setJobs($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->jobs = $arr;
-
- return $this;
- }
-
- /**
- * Required. Defines the types of automatic repair actions for failed jobs.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getRepairModes()
- {
- return $this->repair_modes;
- }
-
- /**
- * Required. Defines the types of automatic repair actions for failed jobs.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.RepairMode repair_modes = 4 [(.google.api.field_behavior) = REQUIRED];
- * @param array<\Google\Cloud\Deploy\V1\RepairMode>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setRepairModes($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\RepairMode::class);
- $this->repair_modes = $arr;
-
- return $this;
- }
-
- /**
- * Output only. Information around the state of the 'Automation' rule.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\AutomationRuleCondition|null
- */
- public function getCondition()
- {
- return $this->condition;
- }
-
- public function hasCondition()
- {
- return isset($this->condition);
- }
-
- public function clearCondition()
- {
- unset($this->condition);
- }
-
- /**
- * Output only. Information around the state of the 'Automation' rule.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\AutomationRuleCondition $var
- * @return $this
- */
- public function setCondition($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AutomationRuleCondition::class);
- $this->condition = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairState.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairState.php
deleted file mode 100644
index 0069e36d1f81..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairState.php
+++ /dev/null
@@ -1,89 +0,0 @@
-google.cloud.deploy.v1.RepairState
- */
-class RepairState
-{
- /**
- * The `repair` has an unspecified state.
- *
- * Generated from protobuf enum REPAIR_STATE_UNSPECIFIED = 0;
- */
- const REPAIR_STATE_UNSPECIFIED = 0;
- /**
- * The `repair` action has succeeded.
- *
- * Generated from protobuf enum REPAIR_STATE_SUCCEEDED = 1;
- */
- const REPAIR_STATE_SUCCEEDED = 1;
- /**
- * The `repair` action was cancelled.
- *
- * Generated from protobuf enum REPAIR_STATE_CANCELLED = 2;
- */
- const REPAIR_STATE_CANCELLED = 2;
- /**
- * The `repair` action has failed.
- *
- * Generated from protobuf enum REPAIR_STATE_FAILED = 3;
- */
- const REPAIR_STATE_FAILED = 3;
- /**
- * The `repair` action is in progress.
- *
- * Generated from protobuf enum REPAIR_STATE_IN_PROGRESS = 4;
- */
- const REPAIR_STATE_IN_PROGRESS = 4;
- /**
- * The `repair` action is pending.
- *
- * Generated from protobuf enum REPAIR_STATE_PENDING = 5;
- */
- const REPAIR_STATE_PENDING = 5;
- /**
- * The `repair` action was skipped.
- *
- * Generated from protobuf enum REPAIR_STATE_SKIPPED = 6;
- */
- const REPAIR_STATE_SKIPPED = 6;
-
- private static $valueToName = [
- self::REPAIR_STATE_UNSPECIFIED => 'REPAIR_STATE_UNSPECIFIED',
- self::REPAIR_STATE_SUCCEEDED => 'REPAIR_STATE_SUCCEEDED',
- self::REPAIR_STATE_CANCELLED => 'REPAIR_STATE_CANCELLED',
- self::REPAIR_STATE_FAILED => 'REPAIR_STATE_FAILED',
- self::REPAIR_STATE_IN_PROGRESS => 'REPAIR_STATE_IN_PROGRESS',
- self::REPAIR_STATE_PENDING => 'REPAIR_STATE_PENDING',
- self::REPAIR_STATE_SKIPPED => 'REPAIR_STATE_SKIPPED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Retry.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Retry.php
deleted file mode 100644
index 75f2e79026fd..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Retry.php
+++ /dev/null
@@ -1,157 +0,0 @@
-google.cloud.deploy.v1.Retry
- */
-class Retry extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Total number of retries. Retry is skipped if set to 0; The
- * minimum value is 1, and the maximum value is 10.
- *
- * Generated from protobuf field int64 attempts = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $attempts = 0;
- /**
- * Optional. How long to wait for the first retry. Default is 0, and the
- * maximum value is 14d.
- *
- * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $wait = null;
- /**
- * Optional. The pattern of how wait time will be increased. Default is
- * linear. Backoff mode will be ignored if `wait` is 0.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.BackoffMode backoff_mode = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $backoff_mode = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $attempts
- * Required. Total number of retries. Retry is skipped if set to 0; The
- * minimum value is 1, and the maximum value is 10.
- * @type \Google\Protobuf\Duration $wait
- * Optional. How long to wait for the first retry. Default is 0, and the
- * maximum value is 14d.
- * @type int $backoff_mode
- * Optional. The pattern of how wait time will be increased. Default is
- * linear. Backoff mode will be ignored if `wait` is 0.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Total number of retries. Retry is skipped if set to 0; The
- * minimum value is 1, and the maximum value is 10.
- *
- * Generated from protobuf field int64 attempts = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return int|string
- */
- public function getAttempts()
- {
- return $this->attempts;
- }
-
- /**
- * Required. Total number of retries. Retry is skipped if set to 0; The
- * minimum value is 1, and the maximum value is 10.
- *
- * Generated from protobuf field int64 attempts = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param int|string $var
- * @return $this
- */
- public function setAttempts($var)
- {
- GPBUtil::checkInt64($var);
- $this->attempts = $var;
-
- return $this;
- }
-
- /**
- * Optional. How long to wait for the first retry. Default is 0, and the
- * maximum value is 14d.
- *
- * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWait()
- {
- return $this->wait;
- }
-
- public function hasWait()
- {
- return isset($this->wait);
- }
-
- public function clearWait()
- {
- unset($this->wait);
- }
-
- /**
- * Optional. How long to wait for the first retry. Default is 0, and the
- * maximum value is 14d.
- *
- * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWait($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->wait = $var;
-
- return $this;
- }
-
- /**
- * Optional. The pattern of how wait time will be increased. Default is
- * linear. Backoff mode will be ignored if `wait` is 0.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.BackoffMode backoff_mode = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getBackoffMode()
- {
- return $this->backoff_mode;
- }
-
- /**
- * Optional. The pattern of how wait time will be increased. Default is
- * linear. Backoff mode will be ignored if `wait` is 0.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.BackoffMode backoff_mode = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setBackoffMode($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\BackoffMode::class);
- $this->backoff_mode = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryAttempt.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryAttempt.php
deleted file mode 100644
index 469c65d247e7..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryAttempt.php
+++ /dev/null
@@ -1,179 +0,0 @@
-google.cloud.deploy.v1.RetryAttempt
- */
-class RetryAttempt extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The index of this retry attempt.
- *
- * Generated from protobuf field int64 attempt = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $attempt = 0;
- /**
- * Output only. How long the operation will be paused.
- *
- * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $wait = null;
- /**
- * Output only. Valid state of this retry action.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RepairState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state = 0;
- /**
- * Output only. Description of the state of the Retry.
- *
- * Generated from protobuf field string state_desc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state_desc = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $attempt
- * Output only. The index of this retry attempt.
- * @type \Google\Protobuf\Duration $wait
- * Output only. How long the operation will be paused.
- * @type int $state
- * Output only. Valid state of this retry action.
- * @type string $state_desc
- * Output only. Description of the state of the Retry.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The index of this retry attempt.
- *
- * Generated from protobuf field int64 attempt = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int|string
- */
- public function getAttempt()
- {
- return $this->attempt;
- }
-
- /**
- * Output only. The index of this retry attempt.
- *
- * Generated from protobuf field int64 attempt = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int|string $var
- * @return $this
- */
- public function setAttempt($var)
- {
- GPBUtil::checkInt64($var);
- $this->attempt = $var;
-
- return $this;
- }
-
- /**
- * Output only. How long the operation will be paused.
- *
- * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWait()
- {
- return $this->wait;
- }
-
- public function hasWait()
- {
- return isset($this->wait);
- }
-
- public function clearWait()
- {
- unset($this->wait);
- }
-
- /**
- * Output only. How long the operation will be paused.
- *
- * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWait($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->wait = $var;
-
- return $this;
- }
-
- /**
- * Output only. Valid state of this retry action.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RepairState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Output only. Valid state of this retry action.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RepairState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\RepairState::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Output only. Description of the state of the Retry.
- *
- * Generated from protobuf field string state_desc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getStateDesc()
- {
- return $this->state_desc;
- }
-
- /**
- * Output only. Description of the state of the Retry.
- *
- * Generated from protobuf field string state_desc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setStateDesc($var)
- {
- GPBUtil::checkString($var, True);
- $this->state_desc = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryJobRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryJobRequest.php
deleted file mode 100644
index eb2ecc465174..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryJobRequest.php
+++ /dev/null
@@ -1,158 +0,0 @@
-google.cloud.deploy.v1.RetryJobRequest
- */
-class RetryJobRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $rollout = '';
- /**
- * Required. The phase ID the Job to retry belongs to.
- *
- * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $phase_id = '';
- /**
- * Required. The job ID for the Job to retry.
- *
- * Generated from protobuf field string job_id = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $job_id = '';
-
- /**
- * @param string $rollout Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. Please see
- * {@see CloudDeployClient::rolloutName()} for help formatting this field.
- * @param string $phaseId Required. The phase ID the Job to retry belongs to.
- * @param string $jobId Required. The job ID for the Job to retry.
- *
- * @return \Google\Cloud\Deploy\V1\RetryJobRequest
- *
- * @experimental
- */
- public static function build(string $rollout, string $phaseId, string $jobId): self
- {
- return (new self())
- ->setRollout($rollout)
- ->setPhaseId($phaseId)
- ->setJobId($jobId);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $rollout
- * Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- * @type string $phase_id
- * Required. The phase ID the Job to retry belongs to.
- * @type string $job_id
- * Required. The job ID for the Job to retry.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getRollout()
- {
- return $this->rollout;
- }
-
- /**
- * Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setRollout($var)
- {
- GPBUtil::checkString($var, True);
- $this->rollout = $var;
-
- return $this;
- }
-
- /**
- * Required. The phase ID the Job to retry belongs to.
- *
- * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getPhaseId()
- {
- return $this->phase_id;
- }
-
- /**
- * Required. The phase ID the Job to retry belongs to.
- *
- * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setPhaseId($var)
- {
- GPBUtil::checkString($var, True);
- $this->phase_id = $var;
-
- return $this;
- }
-
- /**
- * Required. The job ID for the Job to retry.
- *
- * Generated from protobuf field string job_id = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getJobId()
- {
- return $this->job_id;
- }
-
- /**
- * Required. The job ID for the Job to retry.
- *
- * Generated from protobuf field string job_id = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setJobId($var)
- {
- GPBUtil::checkString($var, True);
- $this->job_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryJobResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryJobResponse.php
deleted file mode 100644
index 3058f4b1d9e7..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryJobResponse.php
+++ /dev/null
@@ -1,33 +0,0 @@
-google.cloud.deploy.v1.RetryJobResponse
- */
-class RetryJobResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryPhase.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryPhase.php
deleted file mode 100644
index 0eb3f79d6b1d..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryPhase.php
+++ /dev/null
@@ -1,208 +0,0 @@
-google.cloud.deploy.v1.RetryPhase
- */
-class RetryPhase extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The number of attempts that have been made.
- *
- * Generated from protobuf field int64 total_attempts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $total_attempts = 0;
- /**
- * Output only. The pattern of how the wait time of the retry attempt is
- * calculated.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.BackoffMode backoff_mode = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $backoff_mode = 0;
- /**
- * Output only. The phase ID of the phase that includes the job being retried.
- *
- * Generated from protobuf field string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $phase_id = '';
- /**
- * Output only. The job ID for the Job to retry.
- *
- * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $job_id = '';
- /**
- * Output only. Detail of a retry action.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $attempts;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $total_attempts
- * Output only. The number of attempts that have been made.
- * @type int $backoff_mode
- * Output only. The pattern of how the wait time of the retry attempt is
- * calculated.
- * @type string $phase_id
- * Output only. The phase ID of the phase that includes the job being retried.
- * @type string $job_id
- * Output only. The job ID for the Job to retry.
- * @type array<\Google\Cloud\Deploy\V1\RetryAttempt>|\Google\Protobuf\Internal\RepeatedField $attempts
- * Output only. Detail of a retry action.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The number of attempts that have been made.
- *
- * Generated from protobuf field int64 total_attempts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int|string
- */
- public function getTotalAttempts()
- {
- return $this->total_attempts;
- }
-
- /**
- * Output only. The number of attempts that have been made.
- *
- * Generated from protobuf field int64 total_attempts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int|string $var
- * @return $this
- */
- public function setTotalAttempts($var)
- {
- GPBUtil::checkInt64($var);
- $this->total_attempts = $var;
-
- return $this;
- }
-
- /**
- * Output only. The pattern of how the wait time of the retry attempt is
- * calculated.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.BackoffMode backoff_mode = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getBackoffMode()
- {
- return $this->backoff_mode;
- }
-
- /**
- * Output only. The pattern of how the wait time of the retry attempt is
- * calculated.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.BackoffMode backoff_mode = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setBackoffMode($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\BackoffMode::class);
- $this->backoff_mode = $var;
-
- return $this;
- }
-
- /**
- * Output only. The phase ID of the phase that includes the job being retried.
- *
- * Generated from protobuf field string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getPhaseId()
- {
- return $this->phase_id;
- }
-
- /**
- * Output only. The phase ID of the phase that includes the job being retried.
- *
- * Generated from protobuf field string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setPhaseId($var)
- {
- GPBUtil::checkString($var, True);
- $this->phase_id = $var;
-
- return $this;
- }
-
- /**
- * Output only. The job ID for the Job to retry.
- *
- * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getJobId()
- {
- return $this->job_id;
- }
-
- /**
- * Output only. The job ID for the Job to retry.
- *
- * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setJobId($var)
- {
- GPBUtil::checkString($var, True);
- $this->job_id = $var;
-
- return $this;
- }
-
- /**
- * Output only. Detail of a retry action.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getAttempts()
- {
- return $this->attempts;
- }
-
- /**
- * Output only. Detail of a retry action.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array<\Google\Cloud\Deploy\V1\RetryAttempt>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setAttempts($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\RetryAttempt::class);
- $this->attempts = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollback.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollback.php
deleted file mode 100644
index 62a577b8775e..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollback.php
+++ /dev/null
@@ -1,71 +0,0 @@
-google.cloud.deploy.v1.Rollback
- */
-class Rollback extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. The starting phase ID for the `Rollout`. If unspecified, the
- * `Rollout` will start in the stable phase.
- *
- * Generated from protobuf field string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $destination_phase = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $destination_phase
- * Optional. The starting phase ID for the `Rollout`. If unspecified, the
- * `Rollout` will start in the stable phase.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. The starting phase ID for the `Rollout`. If unspecified, the
- * `Rollout` will start in the stable phase.
- *
- * Generated from protobuf field string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getDestinationPhase()
- {
- return $this->destination_phase;
- }
-
- /**
- * Optional. The starting phase ID for the `Rollout`. If unspecified, the
- * `Rollout` will start in the stable phase.
- *
- * Generated from protobuf field string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setDestinationPhase($var)
- {
- GPBUtil::checkString($var, True);
- $this->destination_phase = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackAttempt.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackAttempt.php
deleted file mode 100644
index 6cf2b0dae8d7..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackAttempt.php
+++ /dev/null
@@ -1,169 +0,0 @@
-google.cloud.deploy.v1.RollbackAttempt
- */
-class RollbackAttempt extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The phase to which the rollout will be rolled back to.
- *
- * Generated from protobuf field string destination_phase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $destination_phase = '';
- /**
- * Output only. ID of the rollback `Rollout` to create.
- *
- * Generated from protobuf field string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $rollout_id = '';
- /**
- * Output only. Valid state of this rollback action.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RepairState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state = 0;
- /**
- * Output only. Description of the state of the Rollback.
- *
- * Generated from protobuf field string state_desc = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state_desc = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $destination_phase
- * Output only. The phase to which the rollout will be rolled back to.
- * @type string $rollout_id
- * Output only. ID of the rollback `Rollout` to create.
- * @type int $state
- * Output only. Valid state of this rollback action.
- * @type string $state_desc
- * Output only. Description of the state of the Rollback.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The phase to which the rollout will be rolled back to.
- *
- * Generated from protobuf field string destination_phase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getDestinationPhase()
- {
- return $this->destination_phase;
- }
-
- /**
- * Output only. The phase to which the rollout will be rolled back to.
- *
- * Generated from protobuf field string destination_phase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setDestinationPhase($var)
- {
- GPBUtil::checkString($var, True);
- $this->destination_phase = $var;
-
- return $this;
- }
-
- /**
- * Output only. ID of the rollback `Rollout` to create.
- *
- * Generated from protobuf field string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getRolloutId()
- {
- return $this->rollout_id;
- }
-
- /**
- * Output only. ID of the rollback `Rollout` to create.
- *
- * Generated from protobuf field string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setRolloutId($var)
- {
- GPBUtil::checkString($var, True);
- $this->rollout_id = $var;
-
- return $this;
- }
-
- /**
- * Output only. Valid state of this rollback action.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RepairState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Output only. Valid state of this rollback action.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RepairState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\RepairState::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Output only. Description of the state of the Rollback.
- *
- * Generated from protobuf field string state_desc = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getStateDesc()
- {
- return $this->state_desc;
- }
-
- /**
- * Output only. Description of the state of the Rollback.
- *
- * Generated from protobuf field string state_desc = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setStateDesc($var)
- {
- GPBUtil::checkString($var, True);
- $this->state_desc = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetConfig.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetConfig.php
deleted file mode 100644
index 0993a0b5efbe..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetConfig.php
+++ /dev/null
@@ -1,115 +0,0 @@
-google.cloud.deploy.v1.RollbackTargetConfig
- */
-class RollbackTargetConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. The rollback `Rollout` to create.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $rollout = null;
- /**
- * Optional. The starting phase ID for the `Rollout`. If unspecified, the
- * `Rollout` will start in the stable phase.
- *
- * Generated from protobuf field string starting_phase_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $starting_phase_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Deploy\V1\Rollout $rollout
- * Optional. The rollback `Rollout` to create.
- * @type string $starting_phase_id
- * Optional. The starting phase ID for the `Rollout`. If unspecified, the
- * `Rollout` will start in the stable phase.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. The rollback `Rollout` to create.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Deploy\V1\Rollout|null
- */
- public function getRollout()
- {
- return $this->rollout;
- }
-
- public function hasRollout()
- {
- return isset($this->rollout);
- }
-
- public function clearRollout()
- {
- unset($this->rollout);
- }
-
- /**
- * Optional. The rollback `Rollout` to create.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Deploy\V1\Rollout $var
- * @return $this
- */
- public function setRollout($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Rollout::class);
- $this->rollout = $var;
-
- return $this;
- }
-
- /**
- * Optional. The starting phase ID for the `Rollout`. If unspecified, the
- * `Rollout` will start in the stable phase.
- *
- * Generated from protobuf field string starting_phase_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getStartingPhaseId()
- {
- return $this->starting_phase_id;
- }
-
- /**
- * Optional. The starting phase ID for the `Rollout`. If unspecified, the
- * `Rollout` will start in the stable phase.
- *
- * Generated from protobuf field string starting_phase_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setStartingPhaseId($var)
- {
- GPBUtil::checkString($var, True);
- $this->starting_phase_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetRequest.php
deleted file mode 100644
index 2d634cbd0e5e..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetRequest.php
+++ /dev/null
@@ -1,325 +0,0 @@
-google.cloud.deploy.v1.RollbackTargetRequest
- */
-class RollbackTargetRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The `DeliveryPipeline` for which the rollback `Rollout` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * Required. ID of the `Target` that is being rolled back.
- *
- * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $target_id = '';
- /**
- * Required. ID of the rollback `Rollout` to create.
- *
- * Generated from protobuf field string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $rollout_id = '';
- /**
- * Optional. ID of the `Release` to roll back to. If this isn't specified, the
- * previous successful `Rollout` to the specified target will be used to
- * determine the `Release`.
- *
- * Generated from protobuf field string release_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $release_id = '';
- /**
- * Optional. If provided, this must be the latest `Rollout` that is on the
- * `Target`.
- *
- * Generated from protobuf field string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $rollout_to_roll_back = '';
- /**
- * Optional. Configs for the rollback `Rollout`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $rollback_config = null;
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with a `RollbackTargetResponse`.
- *
- * Generated from protobuf field bool validate_only = 7 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $validate_only = false;
-
- /**
- * @param string $name Required. The `DeliveryPipeline` for which the rollback `Rollout` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. Please see
- * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field.
- * @param string $targetId Required. ID of the `Target` that is being rolled back.
- * @param string $rolloutId Required. ID of the rollback `Rollout` to create.
- *
- * @return \Google\Cloud\Deploy\V1\RollbackTargetRequest
- *
- * @experimental
- */
- public static function build(string $name, string $targetId, string $rolloutId): self
- {
- return (new self())
- ->setName($name)
- ->setTargetId($targetId)
- ->setRolloutId($rolloutId);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The `DeliveryPipeline` for which the rollback `Rollout` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- * @type string $target_id
- * Required. ID of the `Target` that is being rolled back.
- * @type string $rollout_id
- * Required. ID of the rollback `Rollout` to create.
- * @type string $release_id
- * Optional. ID of the `Release` to roll back to. If this isn't specified, the
- * previous successful `Rollout` to the specified target will be used to
- * determine the `Release`.
- * @type string $rollout_to_roll_back
- * Optional. If provided, this must be the latest `Rollout` that is on the
- * `Target`.
- * @type \Google\Cloud\Deploy\V1\RollbackTargetConfig $rollback_config
- * Optional. Configs for the rollback `Rollout`.
- * @type bool $validate_only
- * Optional. If set to true, the request is validated and the user is provided
- * with a `RollbackTargetResponse`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The `DeliveryPipeline` for which the rollback `Rollout` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The `DeliveryPipeline` for which the rollback `Rollout` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Required. ID of the `Target` that is being rolled back.
- *
- * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getTargetId()
- {
- return $this->target_id;
- }
-
- /**
- * Required. ID of the `Target` that is being rolled back.
- *
- * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setTargetId($var)
- {
- GPBUtil::checkString($var, True);
- $this->target_id = $var;
-
- return $this;
- }
-
- /**
- * Required. ID of the rollback `Rollout` to create.
- *
- * Generated from protobuf field string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getRolloutId()
- {
- return $this->rollout_id;
- }
-
- /**
- * Required. ID of the rollback `Rollout` to create.
- *
- * Generated from protobuf field string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setRolloutId($var)
- {
- GPBUtil::checkString($var, True);
- $this->rollout_id = $var;
-
- return $this;
- }
-
- /**
- * Optional. ID of the `Release` to roll back to. If this isn't specified, the
- * previous successful `Rollout` to the specified target will be used to
- * determine the `Release`.
- *
- * Generated from protobuf field string release_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getReleaseId()
- {
- return $this->release_id;
- }
-
- /**
- * Optional. ID of the `Release` to roll back to. If this isn't specified, the
- * previous successful `Rollout` to the specified target will be used to
- * determine the `Release`.
- *
- * Generated from protobuf field string release_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setReleaseId($var)
- {
- GPBUtil::checkString($var, True);
- $this->release_id = $var;
-
- return $this;
- }
-
- /**
- * Optional. If provided, this must be the latest `Rollout` that is on the
- * `Target`.
- *
- * Generated from protobuf field string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRolloutToRollBack()
- {
- return $this->rollout_to_roll_back;
- }
-
- /**
- * Optional. If provided, this must be the latest `Rollout` that is on the
- * `Target`.
- *
- * Generated from protobuf field string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRolloutToRollBack($var)
- {
- GPBUtil::checkString($var, True);
- $this->rollout_to_roll_back = $var;
-
- return $this;
- }
-
- /**
- * Optional. Configs for the rollback `Rollout`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Deploy\V1\RollbackTargetConfig|null
- */
- public function getRollbackConfig()
- {
- return $this->rollback_config;
- }
-
- public function hasRollbackConfig()
- {
- return isset($this->rollback_config);
- }
-
- public function clearRollbackConfig()
- {
- unset($this->rollback_config);
- }
-
- /**
- * Optional. Configs for the rollback `Rollout`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Deploy\V1\RollbackTargetConfig $var
- * @return $this
- */
- public function setRollbackConfig($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RollbackTargetConfig::class);
- $this->rollback_config = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with a `RollbackTargetResponse`.
- *
- * Generated from protobuf field bool validate_only = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getValidateOnly()
- {
- return $this->validate_only;
- }
-
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with a `RollbackTargetResponse`.
- *
- * Generated from protobuf field bool validate_only = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setValidateOnly($var)
- {
- GPBUtil::checkBool($var);
- $this->validate_only = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetResponse.php
deleted file mode 100644
index 0c2baf18351b..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetResponse.php
+++ /dev/null
@@ -1,77 +0,0 @@
-google.cloud.deploy.v1.RollbackTargetResponse
- */
-class RollbackTargetResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The config of the rollback `Rollout` created or will be created.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 1;
- */
- protected $rollback_config = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Deploy\V1\RollbackTargetConfig $rollback_config
- * The config of the rollback `Rollout` created or will be created.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The config of the rollback `Rollout` created or will be created.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 1;
- * @return \Google\Cloud\Deploy\V1\RollbackTargetConfig|null
- */
- public function getRollbackConfig()
- {
- return $this->rollback_config;
- }
-
- public function hasRollbackConfig()
- {
- return isset($this->rollback_config);
- }
-
- public function clearRollbackConfig()
- {
- unset($this->rollback_config);
- }
-
- /**
- * The config of the rollback `Rollout` created or will be created.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 1;
- * @param \Google\Cloud\Deploy\V1\RollbackTargetConfig $var
- * @return $this
- */
- public function setRollbackConfig($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RollbackTargetConfig::class);
- $this->rollback_config = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout.php
deleted file mode 100644
index 4a50ee1c678b..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout.php
+++ /dev/null
@@ -1,926 +0,0 @@
-google.cloud.deploy.v1.Rollout
- */
-class Rollout extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. Name of the `Rollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- * The `rollout` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $name = '';
- /**
- * Output only. Unique identifier of the `Rollout`.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $uid = '';
- /**
- * Description of the `Rollout` for user purposes. Max length is 255
- * characters.
- *
- * Generated from protobuf field string description = 3;
- */
- protected $description = '';
- /**
- * User annotations. These attributes can only be set and used by the
- * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations
- * for more details such as format and size limitations.
- *
- * Generated from protobuf field map annotations = 4;
- */
- private $annotations;
- /**
- * Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 128 bytes.
- *
- * Generated from protobuf field map labels = 5;
- */
- private $labels;
- /**
- * Output only. Time at which the `Rollout` was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Output only. Time at which the `Rollout` was approved.
- *
- * Generated from protobuf field .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $approve_time = null;
- /**
- * Output only. Time at which the `Rollout` was enqueued.
- *
- * Generated from protobuf field .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $enqueue_time = null;
- /**
- * Output only. Time at which the `Rollout` started deploying.
- *
- * Generated from protobuf field .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $deploy_start_time = null;
- /**
- * Output only. Time at which the `Rollout` finished deploying.
- *
- * Generated from protobuf field .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $deploy_end_time = null;
- /**
- * Required. The ID of Target to which this `Rollout` is deploying.
- *
- * Generated from protobuf field string target_id = 18 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $target_id = '';
- /**
- * Output only. Approval state of the `Rollout`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Rollout.ApprovalState approval_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $approval_state = 0;
- /**
- * Output only. Current state of the `Rollout`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Rollout.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state = 0;
- /**
- * Output only. Additional information about the rollout failure, if
- * available.
- *
- * Generated from protobuf field string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $failure_reason = '';
- /**
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to deploy the Rollout. Format is
- * `projects/{project}/locations/{location}/builds/{build}`.
- *
- * Generated from protobuf field string deploying_build = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- */
- protected $deploying_build = '';
- /**
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 16;
- */
- protected $etag = '';
- /**
- * Output only. The reason this rollout failed. This will always be
- * unspecified while the rollout is in progress.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $deploy_failure_cause = 0;
- /**
- * Output only. The phases that represent the workflows of this `Rollout`.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $phases;
- /**
- * Output only. Metadata contains information about the rollout.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $metadata = null;
- /**
- * Output only. Name of the `ControllerRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string controller_rollout = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $controller_rollout = '';
- /**
- * Output only. Name of the `Rollout` that is rolled back by this `Rollout`.
- * Empty if this `Rollout` wasn't created as a rollback.
- *
- * Generated from protobuf field string rollback_of_rollout = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $rollback_of_rollout = '';
- /**
- * Output only. Names of `Rollouts` that rolled back this `Rollout`.
- *
- * Generated from protobuf field repeated string rolled_back_by_rollouts = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $rolled_back_by_rollouts;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Optional. Name of the `Rollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- * The `rollout` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
- * @type string $uid
- * Output only. Unique identifier of the `Rollout`.
- * @type string $description
- * Description of the `Rollout` for user purposes. Max length is 255
- * characters.
- * @type array|\Google\Protobuf\Internal\MapField $annotations
- * User annotations. These attributes can only be set and used by the
- * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations
- * for more details such as format and size limitations.
- * @type array|\Google\Protobuf\Internal\MapField $labels
- * Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 128 bytes.
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. Time at which the `Rollout` was created.
- * @type \Google\Protobuf\Timestamp $approve_time
- * Output only. Time at which the `Rollout` was approved.
- * @type \Google\Protobuf\Timestamp $enqueue_time
- * Output only. Time at which the `Rollout` was enqueued.
- * @type \Google\Protobuf\Timestamp $deploy_start_time
- * Output only. Time at which the `Rollout` started deploying.
- * @type \Google\Protobuf\Timestamp $deploy_end_time
- * Output only. Time at which the `Rollout` finished deploying.
- * @type string $target_id
- * Required. The ID of Target to which this `Rollout` is deploying.
- * @type int $approval_state
- * Output only. Approval state of the `Rollout`.
- * @type int $state
- * Output only. Current state of the `Rollout`.
- * @type string $failure_reason
- * Output only. Additional information about the rollout failure, if
- * available.
- * @type string $deploying_build
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to deploy the Rollout. Format is
- * `projects/{project}/locations/{location}/builds/{build}`.
- * @type string $etag
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- * @type int $deploy_failure_cause
- * Output only. The reason this rollout failed. This will always be
- * unspecified while the rollout is in progress.
- * @type array<\Google\Cloud\Deploy\V1\Phase>|\Google\Protobuf\Internal\RepeatedField $phases
- * Output only. The phases that represent the workflows of this `Rollout`.
- * @type \Google\Cloud\Deploy\V1\Metadata $metadata
- * Output only. Metadata contains information about the rollout.
- * @type string $controller_rollout
- * Output only. Name of the `ControllerRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- * @type string $rollback_of_rollout
- * Output only. Name of the `Rollout` that is rolled back by this `Rollout`.
- * Empty if this `Rollout` wasn't created as a rollback.
- * @type array|\Google\Protobuf\Internal\RepeatedField $rolled_back_by_rollouts
- * Output only. Names of `Rollouts` that rolled back this `Rollout`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. Name of the `Rollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- * The `rollout` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Optional. Name of the `Rollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- * The `rollout` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Output only. Unique identifier of the `Rollout`.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getUid()
- {
- return $this->uid;
- }
-
- /**
- * Output only. Unique identifier of the `Rollout`.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->uid = $var;
-
- return $this;
- }
-
- /**
- * Description of the `Rollout` for user purposes. Max length is 255
- * characters.
- *
- * Generated from protobuf field string description = 3;
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * Description of the `Rollout` for user purposes. Max length is 255
- * characters.
- *
- * Generated from protobuf field string description = 3;
- * @param string $var
- * @return $this
- */
- public function setDescription($var)
- {
- GPBUtil::checkString($var, True);
- $this->description = $var;
-
- return $this;
- }
-
- /**
- * User annotations. These attributes can only be set and used by the
- * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations
- * for more details such as format and size limitations.
- *
- * Generated from protobuf field map annotations = 4;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getAnnotations()
- {
- return $this->annotations;
- }
-
- /**
- * User annotations. These attributes can only be set and used by the
- * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations
- * for more details such as format and size limitations.
- *
- * Generated from protobuf field map annotations = 4;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setAnnotations($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->annotations = $arr;
-
- return $this;
- }
-
- /**
- * Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 128 bytes.
- *
- * Generated from protobuf field map labels = 5;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getLabels()
- {
- return $this->labels;
- }
-
- /**
- * Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 128 bytes.
- *
- * Generated from protobuf field map labels = 5;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setLabels($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->labels = $arr;
-
- return $this;
- }
-
- /**
- * Output only. Time at which the `Rollout` was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. Time at which the `Rollout` was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. Time at which the `Rollout` was approved.
- *
- * Generated from protobuf field .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getApproveTime()
- {
- return $this->approve_time;
- }
-
- public function hasApproveTime()
- {
- return isset($this->approve_time);
- }
-
- public function clearApproveTime()
- {
- unset($this->approve_time);
- }
-
- /**
- * Output only. Time at which the `Rollout` was approved.
- *
- * Generated from protobuf field .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setApproveTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->approve_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. Time at which the `Rollout` was enqueued.
- *
- * Generated from protobuf field .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getEnqueueTime()
- {
- return $this->enqueue_time;
- }
-
- public function hasEnqueueTime()
- {
- return isset($this->enqueue_time);
- }
-
- public function clearEnqueueTime()
- {
- unset($this->enqueue_time);
- }
-
- /**
- * Output only. Time at which the `Rollout` was enqueued.
- *
- * Generated from protobuf field .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setEnqueueTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->enqueue_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. Time at which the `Rollout` started deploying.
- *
- * Generated from protobuf field .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getDeployStartTime()
- {
- return $this->deploy_start_time;
- }
-
- public function hasDeployStartTime()
- {
- return isset($this->deploy_start_time);
- }
-
- public function clearDeployStartTime()
- {
- unset($this->deploy_start_time);
- }
-
- /**
- * Output only. Time at which the `Rollout` started deploying.
- *
- * Generated from protobuf field .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setDeployStartTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->deploy_start_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. Time at which the `Rollout` finished deploying.
- *
- * Generated from protobuf field .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getDeployEndTime()
- {
- return $this->deploy_end_time;
- }
-
- public function hasDeployEndTime()
- {
- return isset($this->deploy_end_time);
- }
-
- public function clearDeployEndTime()
- {
- unset($this->deploy_end_time);
- }
-
- /**
- * Output only. Time at which the `Rollout` finished deploying.
- *
- * Generated from protobuf field .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setDeployEndTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->deploy_end_time = $var;
-
- return $this;
- }
-
- /**
- * Required. The ID of Target to which this `Rollout` is deploying.
- *
- * Generated from protobuf field string target_id = 18 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getTargetId()
- {
- return $this->target_id;
- }
-
- /**
- * Required. The ID of Target to which this `Rollout` is deploying.
- *
- * Generated from protobuf field string target_id = 18 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setTargetId($var)
- {
- GPBUtil::checkString($var, True);
- $this->target_id = $var;
-
- return $this;
- }
-
- /**
- * Output only. Approval state of the `Rollout`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Rollout.ApprovalState approval_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getApprovalState()
- {
- return $this->approval_state;
- }
-
- /**
- * Output only. Approval state of the `Rollout`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Rollout.ApprovalState approval_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setApprovalState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Rollout\ApprovalState::class);
- $this->approval_state = $var;
-
- return $this;
- }
-
- /**
- * Output only. Current state of the `Rollout`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Rollout.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Output only. Current state of the `Rollout`.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Rollout.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Rollout\State::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Output only. Additional information about the rollout failure, if
- * available.
- *
- * Generated from protobuf field string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getFailureReason()
- {
- return $this->failure_reason;
- }
-
- /**
- * Output only. Additional information about the rollout failure, if
- * available.
- *
- * Generated from protobuf field string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setFailureReason($var)
- {
- GPBUtil::checkString($var, True);
- $this->failure_reason = $var;
-
- return $this;
- }
-
- /**
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to deploy the Rollout. Format is
- * `projects/{project}/locations/{location}/builds/{build}`.
- *
- * Generated from protobuf field string deploying_build = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @return string
- */
- public function getDeployingBuild()
- {
- return $this->deploying_build;
- }
-
- /**
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to deploy the Rollout. Format is
- * `projects/{project}/locations/{location}/builds/{build}`.
- *
- * Generated from protobuf field string deploying_build = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setDeployingBuild($var)
- {
- GPBUtil::checkString($var, True);
- $this->deploying_build = $var;
-
- return $this;
- }
-
- /**
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 16;
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 16;
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
- /**
- * Output only. The reason this rollout failed. This will always be
- * unspecified while the rollout is in progress.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getDeployFailureCause()
- {
- return $this->deploy_failure_cause;
- }
-
- /**
- * Output only. The reason this rollout failed. This will always be
- * unspecified while the rollout is in progress.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setDeployFailureCause($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Rollout\FailureCause::class);
- $this->deploy_failure_cause = $var;
-
- return $this;
- }
-
- /**
- * Output only. The phases that represent the workflows of this `Rollout`.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getPhases()
- {
- return $this->phases;
- }
-
- /**
- * Output only. The phases that represent the workflows of this `Rollout`.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array<\Google\Cloud\Deploy\V1\Phase>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setPhases($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Phase::class);
- $this->phases = $arr;
-
- return $this;
- }
-
- /**
- * Output only. Metadata contains information about the rollout.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Deploy\V1\Metadata|null
- */
- public function getMetadata()
- {
- return $this->metadata;
- }
-
- public function hasMetadata()
- {
- return isset($this->metadata);
- }
-
- public function clearMetadata()
- {
- unset($this->metadata);
- }
-
- /**
- * Output only. Metadata contains information about the rollout.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Deploy\V1\Metadata $var
- * @return $this
- */
- public function setMetadata($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Metadata::class);
- $this->metadata = $var;
-
- return $this;
- }
-
- /**
- * Output only. Name of the `ControllerRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string controller_rollout = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getControllerRollout()
- {
- return $this->controller_rollout;
- }
-
- /**
- * Output only. Name of the `ControllerRollout`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- *
- * Generated from protobuf field string controller_rollout = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setControllerRollout($var)
- {
- GPBUtil::checkString($var, True);
- $this->controller_rollout = $var;
-
- return $this;
- }
-
- /**
- * Output only. Name of the `Rollout` that is rolled back by this `Rollout`.
- * Empty if this `Rollout` wasn't created as a rollback.
- *
- * Generated from protobuf field string rollback_of_rollout = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getRollbackOfRollout()
- {
- return $this->rollback_of_rollout;
- }
-
- /**
- * Output only. Name of the `Rollout` that is rolled back by this `Rollout`.
- * Empty if this `Rollout` wasn't created as a rollback.
- *
- * Generated from protobuf field string rollback_of_rollout = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setRollbackOfRollout($var)
- {
- GPBUtil::checkString($var, True);
- $this->rollback_of_rollout = $var;
-
- return $this;
- }
-
- /**
- * Output only. Names of `Rollouts` that rolled back this `Rollout`.
- *
- * Generated from protobuf field repeated string rolled_back_by_rollouts = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getRolledBackByRollouts()
- {
- return $this->rolled_back_by_rollouts;
- }
-
- /**
- * Output only. Names of `Rollouts` that rolled back this `Rollout`.
- *
- * Generated from protobuf field repeated string rolled_back_by_rollouts = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setRolledBackByRollouts($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->rolled_back_by_rollouts = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/ApprovalState.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/ApprovalState.php
deleted file mode 100644
index c0fb8336f4e8..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/ApprovalState.php
+++ /dev/null
@@ -1,78 +0,0 @@
-google.cloud.deploy.v1.Rollout.ApprovalState
- */
-class ApprovalState
-{
- /**
- * The `Rollout` has an unspecified approval state.
- *
- * Generated from protobuf enum APPROVAL_STATE_UNSPECIFIED = 0;
- */
- const APPROVAL_STATE_UNSPECIFIED = 0;
- /**
- * The `Rollout` requires approval.
- *
- * Generated from protobuf enum NEEDS_APPROVAL = 1;
- */
- const NEEDS_APPROVAL = 1;
- /**
- * The `Rollout` does not require approval.
- *
- * Generated from protobuf enum DOES_NOT_NEED_APPROVAL = 2;
- */
- const DOES_NOT_NEED_APPROVAL = 2;
- /**
- * The `Rollout` has been approved.
- *
- * Generated from protobuf enum APPROVED = 3;
- */
- const APPROVED = 3;
- /**
- * The `Rollout` has been rejected.
- *
- * Generated from protobuf enum REJECTED = 4;
- */
- const REJECTED = 4;
-
- private static $valueToName = [
- self::APPROVAL_STATE_UNSPECIFIED => 'APPROVAL_STATE_UNSPECIFIED',
- self::NEEDS_APPROVAL => 'NEEDS_APPROVAL',
- self::DOES_NOT_NEED_APPROVAL => 'DOES_NOT_NEED_APPROVAL',
- self::APPROVED => 'APPROVED',
- self::REJECTED => 'REJECTED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(ApprovalState::class, \Google\Cloud\Deploy\V1\Rollout_ApprovalState::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/FailureCause.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/FailureCause.php
deleted file mode 100644
index 4b398b758ecb..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/FailureCause.php
+++ /dev/null
@@ -1,110 +0,0 @@
-google.cloud.deploy.v1.Rollout.FailureCause
- */
-class FailureCause
-{
- /**
- * No reason for failure is specified.
- *
- * Generated from protobuf enum FAILURE_CAUSE_UNSPECIFIED = 0;
- */
- const FAILURE_CAUSE_UNSPECIFIED = 0;
- /**
- * Cloud Build is not available, either because it is not enabled or because
- * Cloud Deploy has insufficient permissions. See [required
- * permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account#required_permissions).
- *
- * Generated from protobuf enum CLOUD_BUILD_UNAVAILABLE = 1;
- */
- const CLOUD_BUILD_UNAVAILABLE = 1;
- /**
- * The deploy operation did not complete successfully; check Cloud Build
- * logs.
- *
- * Generated from protobuf enum EXECUTION_FAILED = 2;
- */
- const EXECUTION_FAILED = 2;
- /**
- * Deployment did not complete within the alloted time.
- *
- * Generated from protobuf enum DEADLINE_EXCEEDED = 3;
- */
- const DEADLINE_EXCEEDED = 3;
- /**
- * Release is in a failed state.
- *
- * Generated from protobuf enum RELEASE_FAILED = 4;
- */
- const RELEASE_FAILED = 4;
- /**
- * Release is abandoned.
- *
- * Generated from protobuf enum RELEASE_ABANDONED = 5;
- */
- const RELEASE_ABANDONED = 5;
- /**
- * No Skaffold verify configuration was found.
- *
- * Generated from protobuf enum VERIFICATION_CONFIG_NOT_FOUND = 6;
- */
- const VERIFICATION_CONFIG_NOT_FOUND = 6;
- /**
- * Cloud Build failed to fulfill Cloud Deploy's request. See failure_message
- * for additional details.
- *
- * Generated from protobuf enum CLOUD_BUILD_REQUEST_FAILED = 7;
- */
- const CLOUD_BUILD_REQUEST_FAILED = 7;
- /**
- * A Rollout operation had a feature configured that is not supported.
- *
- * Generated from protobuf enum OPERATION_FEATURE_NOT_SUPPORTED = 8;
- */
- const OPERATION_FEATURE_NOT_SUPPORTED = 8;
-
- private static $valueToName = [
- self::FAILURE_CAUSE_UNSPECIFIED => 'FAILURE_CAUSE_UNSPECIFIED',
- self::CLOUD_BUILD_UNAVAILABLE => 'CLOUD_BUILD_UNAVAILABLE',
- self::EXECUTION_FAILED => 'EXECUTION_FAILED',
- self::DEADLINE_EXCEEDED => 'DEADLINE_EXCEEDED',
- self::RELEASE_FAILED => 'RELEASE_FAILED',
- self::RELEASE_ABANDONED => 'RELEASE_ABANDONED',
- self::VERIFICATION_CONFIG_NOT_FOUND => 'VERIFICATION_CONFIG_NOT_FOUND',
- self::CLOUD_BUILD_REQUEST_FAILED => 'CLOUD_BUILD_REQUEST_FAILED',
- self::OPERATION_FEATURE_NOT_SUPPORTED => 'OPERATION_FEATURE_NOT_SUPPORTED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(FailureCause::class, \Google\Cloud\Deploy\V1\Rollout_FailureCause::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/State.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/State.php
deleted file mode 100644
index d92e91477504..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/State.php
+++ /dev/null
@@ -1,121 +0,0 @@
-google.cloud.deploy.v1.Rollout.State
- */
-class State
-{
- /**
- * The `Rollout` has an unspecified state.
- *
- * Generated from protobuf enum STATE_UNSPECIFIED = 0;
- */
- const STATE_UNSPECIFIED = 0;
- /**
- * The `Rollout` has completed successfully.
- *
- * Generated from protobuf enum SUCCEEDED = 1;
- */
- const SUCCEEDED = 1;
- /**
- * The `Rollout` has failed.
- *
- * Generated from protobuf enum FAILED = 2;
- */
- const FAILED = 2;
- /**
- * The `Rollout` is being deployed.
- *
- * Generated from protobuf enum IN_PROGRESS = 3;
- */
- const IN_PROGRESS = 3;
- /**
- * The `Rollout` needs approval.
- *
- * Generated from protobuf enum PENDING_APPROVAL = 4;
- */
- const PENDING_APPROVAL = 4;
- /**
- * An approver rejected the `Rollout`.
- *
- * Generated from protobuf enum APPROVAL_REJECTED = 5;
- */
- const APPROVAL_REJECTED = 5;
- /**
- * The `Rollout` is waiting for an earlier Rollout(s) to complete on this
- * `Target`.
- *
- * Generated from protobuf enum PENDING = 6;
- */
- const PENDING = 6;
- /**
- * The `Rollout` is waiting for the `Release` to be fully rendered.
- *
- * Generated from protobuf enum PENDING_RELEASE = 7;
- */
- const PENDING_RELEASE = 7;
- /**
- * The `Rollout` is in the process of being cancelled.
- *
- * Generated from protobuf enum CANCELLING = 8;
- */
- const CANCELLING = 8;
- /**
- * The `Rollout` has been cancelled.
- *
- * Generated from protobuf enum CANCELLED = 9;
- */
- const CANCELLED = 9;
- /**
- * The `Rollout` is halted.
- *
- * Generated from protobuf enum HALTED = 10;
- */
- const HALTED = 10;
-
- private static $valueToName = [
- self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
- self::SUCCEEDED => 'SUCCEEDED',
- self::FAILED => 'FAILED',
- self::IN_PROGRESS => 'IN_PROGRESS',
- self::PENDING_APPROVAL => 'PENDING_APPROVAL',
- self::APPROVAL_REJECTED => 'APPROVAL_REJECTED',
- self::PENDING => 'PENDING',
- self::PENDING_RELEASE => 'PENDING_RELEASE',
- self::CANCELLING => 'CANCELLING',
- self::CANCELLED => 'CANCELLED',
- self::HALTED => 'HALTED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(State::class, \Google\Cloud\Deploy\V1\Rollout_State::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutNotificationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutNotificationEvent.php
deleted file mode 100644
index 98651e6feff8..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutNotificationEvent.php
+++ /dev/null
@@ -1,307 +0,0 @@
-google.cloud.deploy.v1.RolloutNotificationEvent
- */
-class RolloutNotificationEvent extends \Google\Protobuf\Internal\Message
-{
- /**
- * Debug message for when a notification fails to send.
- *
- * Generated from protobuf field string message = 1;
- */
- protected $message = '';
- /**
- * Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string pipeline_uid = 2;
- */
- protected $pipeline_uid = '';
- /**
- * Unique identifier of the `Release`.
- *
- * Generated from protobuf field string release_uid = 3;
- */
- protected $release_uid = '';
- /**
- * The name of the `Release`.
- *
- * Generated from protobuf field string release = 7;
- */
- protected $release = '';
- /**
- * Unique identifier of the `Rollout`.
- *
- * Generated from protobuf field string rollout_uid = 8;
- */
- protected $rollout_uid = '';
- /**
- * The name of the `Rollout`.
- *
- * Generated from protobuf field string rollout = 4;
- */
- protected $rollout = '';
- /**
- * ID of the `Target` that the rollout is deployed to.
- *
- * Generated from protobuf field string target_id = 6;
- */
- protected $target_id = '';
- /**
- * Type of this notification, e.g. for a Pub/Sub failure.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 5;
- */
- protected $type = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $message
- * Debug message for when a notification fails to send.
- * @type string $pipeline_uid
- * Unique identifier of the `DeliveryPipeline`.
- * @type string $release_uid
- * Unique identifier of the `Release`.
- * @type string $release
- * The name of the `Release`.
- * @type string $rollout_uid
- * Unique identifier of the `Rollout`.
- * @type string $rollout
- * The name of the `Rollout`.
- * @type string $target_id
- * ID of the `Target` that the rollout is deployed to.
- * @type int $type
- * Type of this notification, e.g. for a Pub/Sub failure.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\RolloutNotificationPayload::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Debug message for when a notification fails to send.
- *
- * Generated from protobuf field string message = 1;
- * @return string
- */
- public function getMessage()
- {
- return $this->message;
- }
-
- /**
- * Debug message for when a notification fails to send.
- *
- * Generated from protobuf field string message = 1;
- * @param string $var
- * @return $this
- */
- public function setMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->message = $var;
-
- return $this;
- }
-
- /**
- * Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string pipeline_uid = 2;
- * @return string
- */
- public function getPipelineUid()
- {
- return $this->pipeline_uid;
- }
-
- /**
- * Unique identifier of the `DeliveryPipeline`.
- *
- * Generated from protobuf field string pipeline_uid = 2;
- * @param string $var
- * @return $this
- */
- public function setPipelineUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->pipeline_uid = $var;
-
- return $this;
- }
-
- /**
- * Unique identifier of the `Release`.
- *
- * Generated from protobuf field string release_uid = 3;
- * @return string
- */
- public function getReleaseUid()
- {
- return $this->release_uid;
- }
-
- /**
- * Unique identifier of the `Release`.
- *
- * Generated from protobuf field string release_uid = 3;
- * @param string $var
- * @return $this
- */
- public function setReleaseUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->release_uid = $var;
-
- return $this;
- }
-
- /**
- * The name of the `Release`.
- *
- * Generated from protobuf field string release = 7;
- * @return string
- */
- public function getRelease()
- {
- return $this->release;
- }
-
- /**
- * The name of the `Release`.
- *
- * Generated from protobuf field string release = 7;
- * @param string $var
- * @return $this
- */
- public function setRelease($var)
- {
- GPBUtil::checkString($var, True);
- $this->release = $var;
-
- return $this;
- }
-
- /**
- * Unique identifier of the `Rollout`.
- *
- * Generated from protobuf field string rollout_uid = 8;
- * @return string
- */
- public function getRolloutUid()
- {
- return $this->rollout_uid;
- }
-
- /**
- * Unique identifier of the `Rollout`.
- *
- * Generated from protobuf field string rollout_uid = 8;
- * @param string $var
- * @return $this
- */
- public function setRolloutUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->rollout_uid = $var;
-
- return $this;
- }
-
- /**
- * The name of the `Rollout`.
- *
- * Generated from protobuf field string rollout = 4;
- * @return string
- */
- public function getRollout()
- {
- return $this->rollout;
- }
-
- /**
- * The name of the `Rollout`.
- *
- * Generated from protobuf field string rollout = 4;
- * @param string $var
- * @return $this
- */
- public function setRollout($var)
- {
- GPBUtil::checkString($var, True);
- $this->rollout = $var;
-
- return $this;
- }
-
- /**
- * ID of the `Target` that the rollout is deployed to.
- *
- * Generated from protobuf field string target_id = 6;
- * @return string
- */
- public function getTargetId()
- {
- return $this->target_id;
- }
-
- /**
- * ID of the `Target` that the rollout is deployed to.
- *
- * Generated from protobuf field string target_id = 6;
- * @param string $var
- * @return $this
- */
- public function setTargetId($var)
- {
- GPBUtil::checkString($var, True);
- $this->target_id = $var;
-
- return $this;
- }
-
- /**
- * Type of this notification, e.g. for a Pub/Sub failure.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 5;
- * @return int
- */
- public function getType()
- {
- return $this->type;
- }
-
- /**
- * Type of this notification, e.g. for a Pub/Sub failure.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 5;
- * @param int $var
- * @return $this
- */
- public function setType($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class);
- $this->type = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutUpdateEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutUpdateEvent.php
deleted file mode 100644
index 6595c48a0d0f..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutUpdateEvent.php
+++ /dev/null
@@ -1,314 +0,0 @@
-google.cloud.deploy.v1.RolloutUpdateEvent
- */
-class RolloutUpdateEvent extends \Google\Protobuf\Internal\Message
-{
- /**
- * Debug message for when a rollout update event occurs.
- *
- * Generated from protobuf field string message = 6;
- */
- protected $message = '';
- /**
- * Unique identifier of the pipeline.
- *
- * Generated from protobuf field string pipeline_uid = 1;
- */
- protected $pipeline_uid = '';
- /**
- * Unique identifier of the release.
- *
- * Generated from protobuf field string release_uid = 2;
- */
- protected $release_uid = '';
- /**
- * The name of the `Release`.
- *
- * Generated from protobuf field string release = 8;
- */
- protected $release = '';
- /**
- * The name of the rollout.
- * rollout_uid is not in this log message because we write some of these log
- * messages at rollout creation time, before we've generated the uid.
- *
- * Generated from protobuf field string rollout = 3;
- */
- protected $rollout = '';
- /**
- * ID of the target.
- *
- * Generated from protobuf field string target_id = 4;
- */
- protected $target_id = '';
- /**
- * Type of this notification, e.g. for a rollout update event.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7;
- */
- protected $type = 0;
- /**
- * The type of the rollout update.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RolloutUpdateEvent.RolloutUpdateType rollout_update_type = 5;
- */
- protected $rollout_update_type = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $message
- * Debug message for when a rollout update event occurs.
- * @type string $pipeline_uid
- * Unique identifier of the pipeline.
- * @type string $release_uid
- * Unique identifier of the release.
- * @type string $release
- * The name of the `Release`.
- * @type string $rollout
- * The name of the rollout.
- * rollout_uid is not in this log message because we write some of these log
- * messages at rollout creation time, before we've generated the uid.
- * @type string $target_id
- * ID of the target.
- * @type int $type
- * Type of this notification, e.g. for a rollout update event.
- * @type int $rollout_update_type
- * The type of the rollout update.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\RolloutUpdatePayload::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Debug message for when a rollout update event occurs.
- *
- * Generated from protobuf field string message = 6;
- * @return string
- */
- public function getMessage()
- {
- return $this->message;
- }
-
- /**
- * Debug message for when a rollout update event occurs.
- *
- * Generated from protobuf field string message = 6;
- * @param string $var
- * @return $this
- */
- public function setMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->message = $var;
-
- return $this;
- }
-
- /**
- * Unique identifier of the pipeline.
- *
- * Generated from protobuf field string pipeline_uid = 1;
- * @return string
- */
- public function getPipelineUid()
- {
- return $this->pipeline_uid;
- }
-
- /**
- * Unique identifier of the pipeline.
- *
- * Generated from protobuf field string pipeline_uid = 1;
- * @param string $var
- * @return $this
- */
- public function setPipelineUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->pipeline_uid = $var;
-
- return $this;
- }
-
- /**
- * Unique identifier of the release.
- *
- * Generated from protobuf field string release_uid = 2;
- * @return string
- */
- public function getReleaseUid()
- {
- return $this->release_uid;
- }
-
- /**
- * Unique identifier of the release.
- *
- * Generated from protobuf field string release_uid = 2;
- * @param string $var
- * @return $this
- */
- public function setReleaseUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->release_uid = $var;
-
- return $this;
- }
-
- /**
- * The name of the `Release`.
- *
- * Generated from protobuf field string release = 8;
- * @return string
- */
- public function getRelease()
- {
- return $this->release;
- }
-
- /**
- * The name of the `Release`.
- *
- * Generated from protobuf field string release = 8;
- * @param string $var
- * @return $this
- */
- public function setRelease($var)
- {
- GPBUtil::checkString($var, True);
- $this->release = $var;
-
- return $this;
- }
-
- /**
- * The name of the rollout.
- * rollout_uid is not in this log message because we write some of these log
- * messages at rollout creation time, before we've generated the uid.
- *
- * Generated from protobuf field string rollout = 3;
- * @return string
- */
- public function getRollout()
- {
- return $this->rollout;
- }
-
- /**
- * The name of the rollout.
- * rollout_uid is not in this log message because we write some of these log
- * messages at rollout creation time, before we've generated the uid.
- *
- * Generated from protobuf field string rollout = 3;
- * @param string $var
- * @return $this
- */
- public function setRollout($var)
- {
- GPBUtil::checkString($var, True);
- $this->rollout = $var;
-
- return $this;
- }
-
- /**
- * ID of the target.
- *
- * Generated from protobuf field string target_id = 4;
- * @return string
- */
- public function getTargetId()
- {
- return $this->target_id;
- }
-
- /**
- * ID of the target.
- *
- * Generated from protobuf field string target_id = 4;
- * @param string $var
- * @return $this
- */
- public function setTargetId($var)
- {
- GPBUtil::checkString($var, True);
- $this->target_id = $var;
-
- return $this;
- }
-
- /**
- * Type of this notification, e.g. for a rollout update event.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7;
- * @return int
- */
- public function getType()
- {
- return $this->type;
- }
-
- /**
- * Type of this notification, e.g. for a rollout update event.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7;
- * @param int $var
- * @return $this
- */
- public function setType($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class);
- $this->type = $var;
-
- return $this;
- }
-
- /**
- * The type of the rollout update.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RolloutUpdateEvent.RolloutUpdateType rollout_update_type = 5;
- * @return int
- */
- public function getRolloutUpdateType()
- {
- return $this->rollout_update_type;
- }
-
- /**
- * The type of the rollout update.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.RolloutUpdateEvent.RolloutUpdateType rollout_update_type = 5;
- * @param int $var
- * @return $this
- */
- public function setRolloutUpdateType($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\RolloutUpdateEvent\RolloutUpdateType::class);
- $this->rollout_update_type = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutUpdateEvent/RolloutUpdateType.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutUpdateEvent/RolloutUpdateType.php
deleted file mode 100644
index 2bb121e5eae8..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutUpdateEvent/RolloutUpdateType.php
+++ /dev/null
@@ -1,141 +0,0 @@
-google.cloud.deploy.v1.RolloutUpdateEvent.RolloutUpdateType
- */
-class RolloutUpdateType
-{
- /**
- * Rollout update type unspecified.
- *
- * Generated from protobuf enum ROLLOUT_UPDATE_TYPE_UNSPECIFIED = 0;
- */
- const ROLLOUT_UPDATE_TYPE_UNSPECIFIED = 0;
- /**
- * rollout state updated to pending.
- *
- * Generated from protobuf enum PENDING = 1;
- */
- const PENDING = 1;
- /**
- * Rollout state updated to pending release.
- *
- * Generated from protobuf enum PENDING_RELEASE = 2;
- */
- const PENDING_RELEASE = 2;
- /**
- * Rollout state updated to in progress.
- *
- * Generated from protobuf enum IN_PROGRESS = 3;
- */
- const IN_PROGRESS = 3;
- /**
- * Rollout state updated to cancelling.
- *
- * Generated from protobuf enum CANCELLING = 4;
- */
- const CANCELLING = 4;
- /**
- * Rollout state updated to cancelled.
- *
- * Generated from protobuf enum CANCELLED = 5;
- */
- const CANCELLED = 5;
- /**
- * Rollout state updated to halted.
- *
- * Generated from protobuf enum HALTED = 6;
- */
- const HALTED = 6;
- /**
- * Rollout state updated to succeeded.
- *
- * Generated from protobuf enum SUCCEEDED = 7;
- */
- const SUCCEEDED = 7;
- /**
- * Rollout state updated to failed.
- *
- * Generated from protobuf enum FAILED = 8;
- */
- const FAILED = 8;
- /**
- * Rollout requires approval.
- *
- * Generated from protobuf enum APPROVAL_REQUIRED = 9;
- */
- const APPROVAL_REQUIRED = 9;
- /**
- * Rollout has been approved.
- *
- * Generated from protobuf enum APPROVED = 10;
- */
- const APPROVED = 10;
- /**
- * Rollout has been rejected.
- *
- * Generated from protobuf enum REJECTED = 11;
- */
- const REJECTED = 11;
- /**
- * Rollout requires advance to the next phase.
- *
- * Generated from protobuf enum ADVANCE_REQUIRED = 12;
- */
- const ADVANCE_REQUIRED = 12;
- /**
- * Rollout has been advanced.
- *
- * Generated from protobuf enum ADVANCED = 13;
- */
- const ADVANCED = 13;
-
- private static $valueToName = [
- self::ROLLOUT_UPDATE_TYPE_UNSPECIFIED => 'ROLLOUT_UPDATE_TYPE_UNSPECIFIED',
- self::PENDING => 'PENDING',
- self::PENDING_RELEASE => 'PENDING_RELEASE',
- self::IN_PROGRESS => 'IN_PROGRESS',
- self::CANCELLING => 'CANCELLING',
- self::CANCELLED => 'CANCELLED',
- self::HALTED => 'HALTED',
- self::SUCCEEDED => 'SUCCEEDED',
- self::FAILED => 'FAILED',
- self::APPROVAL_REQUIRED => 'APPROVAL_REQUIRED',
- self::APPROVED => 'APPROVED',
- self::REJECTED => 'REJECTED',
- self::ADVANCE_REQUIRED => 'ADVANCE_REQUIRED',
- self::ADVANCED => 'ADVANCED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(RolloutUpdateType::class, \Google\Cloud\Deploy\V1\RolloutUpdateEvent_RolloutUpdateType::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RuntimeConfig.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RuntimeConfig.php
deleted file mode 100644
index 21cbabe4279b..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RuntimeConfig.php
+++ /dev/null
@@ -1,109 +0,0 @@
-google.cloud.deploy.v1.RuntimeConfig
- */
-class RuntimeConfig extends \Google\Protobuf\Internal\Message
-{
- protected $runtime_config;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Deploy\V1\KubernetesConfig $kubernetes
- * Kubernetes runtime configuration.
- * @type \Google\Cloud\Deploy\V1\CloudRunConfig $cloud_run
- * Cloud Run runtime configuration.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Kubernetes runtime configuration.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig kubernetes = 1;
- * @return \Google\Cloud\Deploy\V1\KubernetesConfig|null
- */
- public function getKubernetes()
- {
- return $this->readOneof(1);
- }
-
- public function hasKubernetes()
- {
- return $this->hasOneof(1);
- }
-
- /**
- * Kubernetes runtime configuration.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig kubernetes = 1;
- * @param \Google\Cloud\Deploy\V1\KubernetesConfig $var
- * @return $this
- */
- public function setKubernetes($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\KubernetesConfig::class);
- $this->writeOneof(1, $var);
-
- return $this;
- }
-
- /**
- * Cloud Run runtime configuration.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CloudRunConfig cloud_run = 2;
- * @return \Google\Cloud\Deploy\V1\CloudRunConfig|null
- */
- public function getCloudRun()
- {
- return $this->readOneof(2);
- }
-
- public function hasCloudRun()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * Cloud Run runtime configuration.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CloudRunConfig cloud_run = 2;
- * @param \Google\Cloud\Deploy\V1\CloudRunConfig $var
- * @return $this
- */
- public function setCloudRun($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CloudRunConfig::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getRuntimeConfig()
- {
- return $this->whichOneof("runtime_config");
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SerialPipeline.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SerialPipeline.php
deleted file mode 100644
index df68b2ffa1d9..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SerialPipeline.php
+++ /dev/null
@@ -1,71 +0,0 @@
-google.cloud.deploy.v1.SerialPipeline
- */
-class SerialPipeline extends \Google\Protobuf\Internal\Message
-{
- /**
- * Each stage specifies configuration for a `Target`. The ordering
- * of this list defines the promotion flow.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Stage stages = 1;
- */
- private $stages;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Deploy\V1\Stage>|\Google\Protobuf\Internal\RepeatedField $stages
- * Each stage specifies configuration for a `Target`. The ordering
- * of this list defines the promotion flow.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Each stage specifies configuration for a `Target`. The ordering
- * of this list defines the promotion flow.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Stage stages = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getStages()
- {
- return $this->stages;
- }
-
- /**
- * Each stage specifies configuration for a `Target`. The ordering
- * of this list defines the promotion flow.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.Stage stages = 1;
- * @param array<\Google\Cloud\Deploy\V1\Stage>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setStages($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Stage::class);
- $this->stages = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules.php
deleted file mode 100644
index 80cd38b13c24..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules.php
+++ /dev/null
@@ -1,175 +0,0 @@
-google.cloud.deploy.v1.SkaffoldModules
- */
-class SkaffoldModules extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. The Skaffold Config modules to use from the specified source.
- *
- * Generated from protobuf field repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $configs;
- protected $source;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\RepeatedField $configs
- * Optional. The Skaffold Config modules to use from the specified source.
- * @type \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGitSource $git
- * Remote git repository containing the Skaffold Config modules.
- * @type \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCSSource $google_cloud_storage
- * Cloud Storage bucket containing the Skaffold Config modules.
- * @type \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCBRepoSource $google_cloud_build_repo
- * Cloud Build V2 repository containing the Skaffold Config modules.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. The Skaffold Config modules to use from the specified source.
- *
- * Generated from protobuf field repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getConfigs()
- {
- return $this->configs;
- }
-
- /**
- * Optional. The Skaffold Config modules to use from the specified source.
- *
- * Generated from protobuf field repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setConfigs($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->configs = $arr;
-
- return $this;
- }
-
- /**
- * Remote git repository containing the Skaffold Config modules.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource git = 2;
- * @return \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGitSource|null
- */
- public function getGit()
- {
- return $this->readOneof(2);
- }
-
- public function hasGit()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * Remote git repository containing the Skaffold Config modules.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource git = 2;
- * @param \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGitSource $var
- * @return $this
- */
- public function setGit($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGitSource::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * Cloud Storage bucket containing the Skaffold Config modules.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource google_cloud_storage = 3;
- * @return \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCSSource|null
- */
- public function getGoogleCloudStorage()
- {
- return $this->readOneof(3);
- }
-
- public function hasGoogleCloudStorage()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * Cloud Storage bucket containing the Skaffold Config modules.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource google_cloud_storage = 3;
- * @param \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCSSource $var
- * @return $this
- */
- public function setGoogleCloudStorage($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCSSource::class);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * Cloud Build V2 repository containing the Skaffold Config modules.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource google_cloud_build_repo = 4;
- * @return \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCBRepoSource|null
- */
- public function getGoogleCloudBuildRepo()
- {
- return $this->readOneof(4);
- }
-
- public function hasGoogleCloudBuildRepo()
- {
- return $this->hasOneof(4);
- }
-
- /**
- * Cloud Build V2 repository containing the Skaffold Config modules.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource google_cloud_build_repo = 4;
- * @param \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCBRepoSource $var
- * @return $this
- */
- public function setGoogleCloudBuildRepo($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCBRepoSource::class);
- $this->writeOneof(4, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getSource()
- {
- return $this->whichOneof("source");
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGCBRepoSource.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGCBRepoSource.php
deleted file mode 100644
index fa3d408ca365..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGCBRepoSource.php
+++ /dev/null
@@ -1,150 +0,0 @@
-google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource
- */
-class SkaffoldGCBRepoSource extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the Cloud Build V2 Repository.
- * Format is
- * projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}.
- *
- * Generated from protobuf field string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $repository = '';
- /**
- * Optional. Relative path from the repository root to the Skaffold Config
- * file.
- *
- * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $path = '';
- /**
- * Optional. Branch or tag to use when cloning the repository.
- *
- * Generated from protobuf field string ref = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $ref = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $repository
- * Required. Name of the Cloud Build V2 Repository.
- * Format is
- * projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}.
- * @type string $path
- * Optional. Relative path from the repository root to the Skaffold Config
- * file.
- * @type string $ref
- * Optional. Branch or tag to use when cloning the repository.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the Cloud Build V2 Repository.
- * Format is
- * projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}.
- *
- * Generated from protobuf field string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getRepository()
- {
- return $this->repository;
- }
-
- /**
- * Required. Name of the Cloud Build V2 Repository.
- * Format is
- * projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}.
- *
- * Generated from protobuf field string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setRepository($var)
- {
- GPBUtil::checkString($var, True);
- $this->repository = $var;
-
- return $this;
- }
-
- /**
- * Optional. Relative path from the repository root to the Skaffold Config
- * file.
- *
- * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getPath()
- {
- return $this->path;
- }
-
- /**
- * Optional. Relative path from the repository root to the Skaffold Config
- * file.
- *
- * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setPath($var)
- {
- GPBUtil::checkString($var, True);
- $this->path = $var;
-
- return $this;
- }
-
- /**
- * Optional. Branch or tag to use when cloning the repository.
- *
- * Generated from protobuf field string ref = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRef()
- {
- return $this->ref;
- }
-
- /**
- * Optional. Branch or tag to use when cloning the repository.
- *
- * Generated from protobuf field string ref = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRef($var)
- {
- GPBUtil::checkString($var, True);
- $this->ref = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(SkaffoldGCBRepoSource::class, \Google\Cloud\Deploy\V1\SkaffoldModules_SkaffoldGCBRepoSource::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGCSSource.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGCSSource.php
deleted file mode 100644
index 30506470d3ce..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGCSSource.php
+++ /dev/null
@@ -1,112 +0,0 @@
-google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource
- */
-class SkaffoldGCSSource extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Cloud Storage source paths to copy recursively. For example,
- * providing "gs://my-bucket/dir/configs/*" will result in Skaffold copying
- * all files within the "dir/configs" directory in the bucket "my-bucket".
- *
- * Generated from protobuf field string source = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $source = '';
- /**
- * Optional. Relative path from the source to the Skaffold file.
- *
- * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $path = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $source
- * Required. Cloud Storage source paths to copy recursively. For example,
- * providing "gs://my-bucket/dir/configs/*" will result in Skaffold copying
- * all files within the "dir/configs" directory in the bucket "my-bucket".
- * @type string $path
- * Optional. Relative path from the source to the Skaffold file.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Cloud Storage source paths to copy recursively. For example,
- * providing "gs://my-bucket/dir/configs/*" will result in Skaffold copying
- * all files within the "dir/configs" directory in the bucket "my-bucket".
- *
- * Generated from protobuf field string source = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getSource()
- {
- return $this->source;
- }
-
- /**
- * Required. Cloud Storage source paths to copy recursively. For example,
- * providing "gs://my-bucket/dir/configs/*" will result in Skaffold copying
- * all files within the "dir/configs" directory in the bucket "my-bucket".
- *
- * Generated from protobuf field string source = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setSource($var)
- {
- GPBUtil::checkString($var, True);
- $this->source = $var;
-
- return $this;
- }
-
- /**
- * Optional. Relative path from the source to the Skaffold file.
- *
- * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getPath()
- {
- return $this->path;
- }
-
- /**
- * Optional. Relative path from the source to the Skaffold file.
- *
- * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setPath($var)
- {
- GPBUtil::checkString($var, True);
- $this->path = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(SkaffoldGCSSource::class, \Google\Cloud\Deploy\V1\SkaffoldModules_SkaffoldGCSSource::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGitSource.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGitSource.php
deleted file mode 100644
index 38bc7ae988de..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGitSource.php
+++ /dev/null
@@ -1,138 +0,0 @@
-google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource
- */
-class SkaffoldGitSource extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Git repository the package should be cloned from.
- *
- * Generated from protobuf field string repo = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $repo = '';
- /**
- * Optional. Relative path from the repository root to the Skaffold file.
- *
- * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $path = '';
- /**
- * Optional. Git branch or tag to use when cloning the repository.
- *
- * Generated from protobuf field string ref = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $ref = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $repo
- * Required. Git repository the package should be cloned from.
- * @type string $path
- * Optional. Relative path from the repository root to the Skaffold file.
- * @type string $ref
- * Optional. Git branch or tag to use when cloning the repository.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Git repository the package should be cloned from.
- *
- * Generated from protobuf field string repo = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getRepo()
- {
- return $this->repo;
- }
-
- /**
- * Required. Git repository the package should be cloned from.
- *
- * Generated from protobuf field string repo = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setRepo($var)
- {
- GPBUtil::checkString($var, True);
- $this->repo = $var;
-
- return $this;
- }
-
- /**
- * Optional. Relative path from the repository root to the Skaffold file.
- *
- * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getPath()
- {
- return $this->path;
- }
-
- /**
- * Optional. Relative path from the repository root to the Skaffold file.
- *
- * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setPath($var)
- {
- GPBUtil::checkString($var, True);
- $this->path = $var;
-
- return $this;
- }
-
- /**
- * Optional. Git branch or tag to use when cloning the repository.
- *
- * Generated from protobuf field string ref = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRef()
- {
- return $this->ref;
- }
-
- /**
- * Optional. Git branch or tag to use when cloning the repository.
- *
- * Generated from protobuf field string ref = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRef($var)
- {
- GPBUtil::checkString($var, True);
- $this->ref = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(SkaffoldGitSource::class, \Google\Cloud\Deploy\V1\SkaffoldModules_SkaffoldGitSource::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldSupportState.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldSupportState.php
deleted file mode 100644
index ddeaf2ac9f3a..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldSupportState.php
+++ /dev/null
@@ -1,68 +0,0 @@
-google.cloud.deploy.v1.SkaffoldSupportState
- */
-class SkaffoldSupportState
-{
- /**
- * Default value. This value is unused.
- *
- * Generated from protobuf enum SKAFFOLD_SUPPORT_STATE_UNSPECIFIED = 0;
- */
- const SKAFFOLD_SUPPORT_STATE_UNSPECIFIED = 0;
- /**
- * This Skaffold version is currently supported.
- *
- * Generated from protobuf enum SKAFFOLD_SUPPORT_STATE_SUPPORTED = 1;
- */
- const SKAFFOLD_SUPPORT_STATE_SUPPORTED = 1;
- /**
- * This Skaffold version is in maintenance mode.
- *
- * Generated from protobuf enum SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE = 2;
- */
- const SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE = 2;
- /**
- * This Skaffold version is no longer supported.
- *
- * Generated from protobuf enum SKAFFOLD_SUPPORT_STATE_UNSUPPORTED = 3;
- */
- const SKAFFOLD_SUPPORT_STATE_UNSUPPORTED = 3;
-
- private static $valueToName = [
- self::SKAFFOLD_SUPPORT_STATE_UNSPECIFIED => 'SKAFFOLD_SUPPORT_STATE_UNSPECIFIED',
- self::SKAFFOLD_SUPPORT_STATE_SUPPORTED => 'SKAFFOLD_SUPPORT_STATE_SUPPORTED',
- self::SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE => 'SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE',
- self::SKAFFOLD_SUPPORT_STATE_UNSUPPORTED => 'SKAFFOLD_SUPPORT_STATE_UNSUPPORTED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldVersion.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldVersion.php
deleted file mode 100644
index 025ceb464b68..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldVersion.php
+++ /dev/null
@@ -1,199 +0,0 @@
-google.cloud.deploy.v1.SkaffoldVersion
- */
-class SkaffoldVersion extends \Google\Protobuf\Internal\Message
-{
- /**
- * Release version number. For example, "1.20.3".
- *
- * Generated from protobuf field string version = 1;
- */
- protected $version = '';
- /**
- * The time at which this version of Skaffold will enter maintenance mode.
- *
- * Generated from protobuf field .google.protobuf.Timestamp maintenance_mode_time = 3;
- */
- protected $maintenance_mode_time = null;
- /**
- * The time at which this version of Skaffold will no longer be supported.
- *
- * Generated from protobuf field .google.protobuf.Timestamp support_expiration_time = 4;
- */
- protected $support_expiration_time = null;
- /**
- * Date when this version is expected to no longer be supported.
- *
- * Generated from protobuf field .google.type.Date support_end_date = 2;
- */
- protected $support_end_date = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $version
- * Release version number. For example, "1.20.3".
- * @type \Google\Protobuf\Timestamp $maintenance_mode_time
- * The time at which this version of Skaffold will enter maintenance mode.
- * @type \Google\Protobuf\Timestamp $support_expiration_time
- * The time at which this version of Skaffold will no longer be supported.
- * @type \Google\Type\Date $support_end_date
- * Date when this version is expected to no longer be supported.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Release version number. For example, "1.20.3".
- *
- * Generated from protobuf field string version = 1;
- * @return string
- */
- public function getVersion()
- {
- return $this->version;
- }
-
- /**
- * Release version number. For example, "1.20.3".
- *
- * Generated from protobuf field string version = 1;
- * @param string $var
- * @return $this
- */
- public function setVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->version = $var;
-
- return $this;
- }
-
- /**
- * The time at which this version of Skaffold will enter maintenance mode.
- *
- * Generated from protobuf field .google.protobuf.Timestamp maintenance_mode_time = 3;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getMaintenanceModeTime()
- {
- return $this->maintenance_mode_time;
- }
-
- public function hasMaintenanceModeTime()
- {
- return isset($this->maintenance_mode_time);
- }
-
- public function clearMaintenanceModeTime()
- {
- unset($this->maintenance_mode_time);
- }
-
- /**
- * The time at which this version of Skaffold will enter maintenance mode.
- *
- * Generated from protobuf field .google.protobuf.Timestamp maintenance_mode_time = 3;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setMaintenanceModeTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->maintenance_mode_time = $var;
-
- return $this;
- }
-
- /**
- * The time at which this version of Skaffold will no longer be supported.
- *
- * Generated from protobuf field .google.protobuf.Timestamp support_expiration_time = 4;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getSupportExpirationTime()
- {
- return $this->support_expiration_time;
- }
-
- public function hasSupportExpirationTime()
- {
- return isset($this->support_expiration_time);
- }
-
- public function clearSupportExpirationTime()
- {
- unset($this->support_expiration_time);
- }
-
- /**
- * The time at which this version of Skaffold will no longer be supported.
- *
- * Generated from protobuf field .google.protobuf.Timestamp support_expiration_time = 4;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setSupportExpirationTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->support_expiration_time = $var;
-
- return $this;
- }
-
- /**
- * Date when this version is expected to no longer be supported.
- *
- * Generated from protobuf field .google.type.Date support_end_date = 2;
- * @return \Google\Type\Date|null
- */
- public function getSupportEndDate()
- {
- return $this->support_end_date;
- }
-
- public function hasSupportEndDate()
- {
- return isset($this->support_end_date);
- }
-
- public function clearSupportEndDate()
- {
- unset($this->support_end_date);
- }
-
- /**
- * Date when this version is expected to no longer be supported.
- *
- * Generated from protobuf field .google.type.Date support_end_date = 2;
- * @param \Google\Type\Date $var
- * @return $this
- */
- public function setSupportEndDate($var)
- {
- GPBUtil::checkMessage($var, \Google\Type\Date::class);
- $this->support_end_date = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Stage.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Stage.php
deleted file mode 100644
index ffd1b986043b..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Stage.php
+++ /dev/null
@@ -1,203 +0,0 @@
-google.cloud.deploy.v1.Stage
- */
-class Stage extends \Google\Protobuf\Internal\Message
-{
- /**
- * The target_id to which this stage points. This field refers exclusively to
- * the last segment of a target name. For example, this field would just be
- * `my-target` (rather than
- * `projects/project/locations/location/targets/my-target`). The location of
- * the `Target` is inferred to be the same as the location of the
- * `DeliveryPipeline` that contains this `Stage`.
- *
- * Generated from protobuf field string target_id = 1;
- */
- protected $target_id = '';
- /**
- * Skaffold profiles to use when rendering the manifest for this stage's
- * `Target`.
- *
- * Generated from protobuf field repeated string profiles = 2;
- */
- private $profiles;
- /**
- * Optional. The strategy to use for a `Rollout` to this stage.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $strategy = null;
- /**
- * Optional. The deploy parameters to use for the target in this stage.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $deploy_parameters;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $target_id
- * The target_id to which this stage points. This field refers exclusively to
- * the last segment of a target name. For example, this field would just be
- * `my-target` (rather than
- * `projects/project/locations/location/targets/my-target`). The location of
- * the `Target` is inferred to be the same as the location of the
- * `DeliveryPipeline` that contains this `Stage`.
- * @type array|\Google\Protobuf\Internal\RepeatedField $profiles
- * Skaffold profiles to use when rendering the manifest for this stage's
- * `Target`.
- * @type \Google\Cloud\Deploy\V1\Strategy $strategy
- * Optional. The strategy to use for a `Rollout` to this stage.
- * @type array<\Google\Cloud\Deploy\V1\DeployParameters>|\Google\Protobuf\Internal\RepeatedField $deploy_parameters
- * Optional. The deploy parameters to use for the target in this stage.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The target_id to which this stage points. This field refers exclusively to
- * the last segment of a target name. For example, this field would just be
- * `my-target` (rather than
- * `projects/project/locations/location/targets/my-target`). The location of
- * the `Target` is inferred to be the same as the location of the
- * `DeliveryPipeline` that contains this `Stage`.
- *
- * Generated from protobuf field string target_id = 1;
- * @return string
- */
- public function getTargetId()
- {
- return $this->target_id;
- }
-
- /**
- * The target_id to which this stage points. This field refers exclusively to
- * the last segment of a target name. For example, this field would just be
- * `my-target` (rather than
- * `projects/project/locations/location/targets/my-target`). The location of
- * the `Target` is inferred to be the same as the location of the
- * `DeliveryPipeline` that contains this `Stage`.
- *
- * Generated from protobuf field string target_id = 1;
- * @param string $var
- * @return $this
- */
- public function setTargetId($var)
- {
- GPBUtil::checkString($var, True);
- $this->target_id = $var;
-
- return $this;
- }
-
- /**
- * Skaffold profiles to use when rendering the manifest for this stage's
- * `Target`.
- *
- * Generated from protobuf field repeated string profiles = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getProfiles()
- {
- return $this->profiles;
- }
-
- /**
- * Skaffold profiles to use when rendering the manifest for this stage's
- * `Target`.
- *
- * Generated from protobuf field repeated string profiles = 2;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setProfiles($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->profiles = $arr;
-
- return $this;
- }
-
- /**
- * Optional. The strategy to use for a `Rollout` to this stage.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Deploy\V1\Strategy|null
- */
- public function getStrategy()
- {
- return $this->strategy;
- }
-
- public function hasStrategy()
- {
- return isset($this->strategy);
- }
-
- public function clearStrategy()
- {
- unset($this->strategy);
- }
-
- /**
- * Optional. The strategy to use for a `Rollout` to this stage.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Deploy\V1\Strategy $var
- * @return $this
- */
- public function setStrategy($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Strategy::class);
- $this->strategy = $var;
-
- return $this;
- }
-
- /**
- * Optional. The deploy parameters to use for the target in this stage.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getDeployParameters()
- {
- return $this->deploy_parameters;
- }
-
- /**
- * Optional. The deploy parameters to use for the target in this stage.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @param array<\Google\Cloud\Deploy\V1\DeployParameters>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setDeployParameters($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\DeployParameters::class);
- $this->deploy_parameters = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Standard.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Standard.php
deleted file mode 100644
index 5dfce8ecc950..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Standard.php
+++ /dev/null
@@ -1,163 +0,0 @@
-google.cloud.deploy.v1.Standard
- */
-class Standard extends \Google\Protobuf\Internal\Message
-{
- /**
- * Whether to verify a deployment.
- *
- * Generated from protobuf field bool verify = 1;
- */
- protected $verify = false;
- /**
- * Optional. Configuration for the predeploy job. If this is not configured,
- * predeploy job will not be present.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $predeploy = null;
- /**
- * Optional. Configuration for the postdeploy job. If this is not configured,
- * postdeploy job will not be present.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $postdeploy = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type bool $verify
- * Whether to verify a deployment.
- * @type \Google\Cloud\Deploy\V1\Predeploy $predeploy
- * Optional. Configuration for the predeploy job. If this is not configured,
- * predeploy job will not be present.
- * @type \Google\Cloud\Deploy\V1\Postdeploy $postdeploy
- * Optional. Configuration for the postdeploy job. If this is not configured,
- * postdeploy job will not be present.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Whether to verify a deployment.
- *
- * Generated from protobuf field bool verify = 1;
- * @return bool
- */
- public function getVerify()
- {
- return $this->verify;
- }
-
- /**
- * Whether to verify a deployment.
- *
- * Generated from protobuf field bool verify = 1;
- * @param bool $var
- * @return $this
- */
- public function setVerify($var)
- {
- GPBUtil::checkBool($var);
- $this->verify = $var;
-
- return $this;
- }
-
- /**
- * Optional. Configuration for the predeploy job. If this is not configured,
- * predeploy job will not be present.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Deploy\V1\Predeploy|null
- */
- public function getPredeploy()
- {
- return $this->predeploy;
- }
-
- public function hasPredeploy()
- {
- return isset($this->predeploy);
- }
-
- public function clearPredeploy()
- {
- unset($this->predeploy);
- }
-
- /**
- * Optional. Configuration for the predeploy job. If this is not configured,
- * predeploy job will not be present.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Deploy\V1\Predeploy $var
- * @return $this
- */
- public function setPredeploy($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Predeploy::class);
- $this->predeploy = $var;
-
- return $this;
- }
-
- /**
- * Optional. Configuration for the postdeploy job. If this is not configured,
- * postdeploy job will not be present.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Deploy\V1\Postdeploy|null
- */
- public function getPostdeploy()
- {
- return $this->postdeploy;
- }
-
- public function hasPostdeploy()
- {
- return isset($this->postdeploy);
- }
-
- public function clearPostdeploy()
- {
- unset($this->postdeploy);
- }
-
- /**
- * Optional. Configuration for the postdeploy job. If this is not configured,
- * postdeploy job will not be present.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Deploy\V1\Postdeploy $var
- * @return $this
- */
- public function setPostdeploy($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Postdeploy::class);
- $this->postdeploy = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Strategy.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Strategy.php
deleted file mode 100644
index 3d4f9641a71f..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Strategy.php
+++ /dev/null
@@ -1,114 +0,0 @@
-google.cloud.deploy.v1.Strategy
- */
-class Strategy extends \Google\Protobuf\Internal\Message
-{
- protected $deployment_strategy;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Deploy\V1\Standard $standard
- * Standard deployment strategy executes a single deploy and allows
- * verifying the deployment.
- * @type \Google\Cloud\Deploy\V1\Canary $canary
- * Canary deployment strategy provides progressive percentage based
- * deployments to a Target.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Standard deployment strategy executes a single deploy and allows
- * verifying the deployment.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Standard standard = 1;
- * @return \Google\Cloud\Deploy\V1\Standard|null
- */
- public function getStandard()
- {
- return $this->readOneof(1);
- }
-
- public function hasStandard()
- {
- return $this->hasOneof(1);
- }
-
- /**
- * Standard deployment strategy executes a single deploy and allows
- * verifying the deployment.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Standard standard = 1;
- * @param \Google\Cloud\Deploy\V1\Standard $var
- * @return $this
- */
- public function setStandard($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Standard::class);
- $this->writeOneof(1, $var);
-
- return $this;
- }
-
- /**
- * Canary deployment strategy provides progressive percentage based
- * deployments to a Target.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Canary canary = 2;
- * @return \Google\Cloud\Deploy\V1\Canary|null
- */
- public function getCanary()
- {
- return $this->readOneof(2);
- }
-
- public function hasCanary()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * Canary deployment strategy provides progressive percentage based
- * deployments to a Target.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Canary canary = 2;
- * @param \Google\Cloud\Deploy\V1\Canary $var
- * @return $this
- */
- public function setCanary($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Canary::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getDeploymentStrategy()
- {
- return $this->whichOneof("deployment_strategy");
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Target.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Target.php
deleted file mode 100644
index 8e17d8f3b811..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Target.php
+++ /dev/null
@@ -1,721 +0,0 @@
-google.cloud.deploy.v1.Target
- */
-class Target extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. Name of the `Target`. Format is
- * `projects/{project}/locations/{location}/targets/{target}`.
- * The `target` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $name = '';
- /**
- * Output only. Resource id of the `Target`.
- *
- * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $target_id = '';
- /**
- * Output only. Unique identifier of the `Target`.
- *
- * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $uid = '';
- /**
- * Optional. Description of the `Target`. Max length is 255 characters.
- *
- * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $description = '';
- /**
- * Optional. User annotations. These attributes can only be set and used by
- * the user, and not by Cloud Deploy. See
- * https://google.aip.dev/128#annotations for more details such as format and
- * size limitations.
- *
- * Generated from protobuf field map annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $annotations;
- /**
- * Optional. Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 128 bytes.
- *
- * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $labels;
- /**
- * Optional. Whether or not the `Target` requires approval.
- *
- * Generated from protobuf field bool require_approval = 13 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $require_approval = false;
- /**
- * Output only. Time at which the `Target` was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Output only. Most recent time at which the `Target` was updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $update_time = null;
- /**
- * Optional. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 12 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $etag = '';
- /**
- * Configurations for all execution that relates to this `Target`.
- * Each `ExecutionEnvironmentUsage` value may only be used in a single
- * configuration; using the same value multiple times is an error.
- * When one or more configurations are specified, they must include the
- * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
- * When no configurations are specified, execution will use the default
- * specified in `DefaultPool`.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16;
- */
- private $execution_configs;
- /**
- * Optional. The deploy parameters to use for this target.
- *
- * Generated from protobuf field map deploy_parameters = 20 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $deploy_parameters;
- protected $deployment_target;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Optional. Name of the `Target`. Format is
- * `projects/{project}/locations/{location}/targets/{target}`.
- * The `target` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
- * @type string $target_id
- * Output only. Resource id of the `Target`.
- * @type string $uid
- * Output only. Unique identifier of the `Target`.
- * @type string $description
- * Optional. Description of the `Target`. Max length is 255 characters.
- * @type array|\Google\Protobuf\Internal\MapField $annotations
- * Optional. User annotations. These attributes can only be set and used by
- * the user, and not by Cloud Deploy. See
- * https://google.aip.dev/128#annotations for more details such as format and
- * size limitations.
- * @type array|\Google\Protobuf\Internal\MapField $labels
- * Optional. Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 128 bytes.
- * @type bool $require_approval
- * Optional. Whether or not the `Target` requires approval.
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. Time at which the `Target` was created.
- * @type \Google\Protobuf\Timestamp $update_time
- * Output only. Most recent time at which the `Target` was updated.
- * @type \Google\Cloud\Deploy\V1\GkeCluster $gke
- * Optional. Information specifying a GKE Cluster.
- * @type \Google\Cloud\Deploy\V1\AnthosCluster $anthos_cluster
- * Optional. Information specifying an Anthos Cluster.
- * @type \Google\Cloud\Deploy\V1\CloudRunLocation $run
- * Optional. Information specifying a Cloud Run deployment target.
- * @type \Google\Cloud\Deploy\V1\MultiTarget $multi_target
- * Optional. Information specifying a multiTarget.
- * @type \Google\Cloud\Deploy\V1\CustomTarget $custom_target
- * Optional. Information specifying a Custom Target.
- * @type string $etag
- * Optional. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- * @type array<\Google\Cloud\Deploy\V1\ExecutionConfig>|\Google\Protobuf\Internal\RepeatedField $execution_configs
- * Configurations for all execution that relates to this `Target`.
- * Each `ExecutionEnvironmentUsage` value may only be used in a single
- * configuration; using the same value multiple times is an error.
- * When one or more configurations are specified, they must include the
- * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
- * When no configurations are specified, execution will use the default
- * specified in `DefaultPool`.
- * @type array|\Google\Protobuf\Internal\MapField $deploy_parameters
- * Optional. The deploy parameters to use for this target.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. Name of the `Target`. Format is
- * `projects/{project}/locations/{location}/targets/{target}`.
- * The `target` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Optional. Name of the `Target`. Format is
- * `projects/{project}/locations/{location}/targets/{target}`.
- * The `target` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Output only. Resource id of the `Target`.
- *
- * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getTargetId()
- {
- return $this->target_id;
- }
-
- /**
- * Output only. Resource id of the `Target`.
- *
- * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setTargetId($var)
- {
- GPBUtil::checkString($var, True);
- $this->target_id = $var;
-
- return $this;
- }
-
- /**
- * Output only. Unique identifier of the `Target`.
- *
- * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getUid()
- {
- return $this->uid;
- }
-
- /**
- * Output only. Unique identifier of the `Target`.
- *
- * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->uid = $var;
-
- return $this;
- }
-
- /**
- * Optional. Description of the `Target`. Max length is 255 characters.
- *
- * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * Optional. Description of the `Target`. Max length is 255 characters.
- *
- * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setDescription($var)
- {
- GPBUtil::checkString($var, True);
- $this->description = $var;
-
- return $this;
- }
-
- /**
- * Optional. User annotations. These attributes can only be set and used by
- * the user, and not by Cloud Deploy. See
- * https://google.aip.dev/128#annotations for more details such as format and
- * size limitations.
- *
- * Generated from protobuf field map annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getAnnotations()
- {
- return $this->annotations;
- }
-
- /**
- * Optional. User annotations. These attributes can only be set and used by
- * the user, and not by Cloud Deploy. See
- * https://google.aip.dev/128#annotations for more details such as format and
- * size limitations.
- *
- * Generated from protobuf field map annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setAnnotations($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->annotations = $arr;
-
- return $this;
- }
-
- /**
- * Optional. Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 128 bytes.
- *
- * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getLabels()
- {
- return $this->labels;
- }
-
- /**
- * Optional. Labels are attributes that can be set and used by both the
- * user and by Cloud Deploy. Labels must meet the following constraints:
- * * Keys and values can contain only lowercase letters, numeric characters,
- * underscores, and dashes.
- * * All characters must use UTF-8 encoding, and international characters are
- * allowed.
- * * Keys must start with a lowercase letter or international character.
- * * Each resource is limited to a maximum of 64 labels.
- * Both keys and values are additionally constrained to be <= 128 bytes.
- *
- * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setLabels($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->labels = $arr;
-
- return $this;
- }
-
- /**
- * Optional. Whether or not the `Target` requires approval.
- *
- * Generated from protobuf field bool require_approval = 13 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getRequireApproval()
- {
- return $this->require_approval;
- }
-
- /**
- * Optional. Whether or not the `Target` requires approval.
- *
- * Generated from protobuf field bool require_approval = 13 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setRequireApproval($var)
- {
- GPBUtil::checkBool($var);
- $this->require_approval = $var;
-
- return $this;
- }
-
- /**
- * Output only. Time at which the `Target` was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. Time at which the `Target` was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. Most recent time at which the `Target` was updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->update_time;
- }
-
- public function hasUpdateTime()
- {
- return isset($this->update_time);
- }
-
- public function clearUpdateTime()
- {
- unset($this->update_time);
- }
-
- /**
- * Output only. Most recent time at which the `Target` was updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->update_time = $var;
-
- return $this;
- }
-
- /**
- * Optional. Information specifying a GKE Cluster.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.GkeCluster gke = 15 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Deploy\V1\GkeCluster|null
- */
- public function getGke()
- {
- return $this->readOneof(15);
- }
-
- public function hasGke()
- {
- return $this->hasOneof(15);
- }
-
- /**
- * Optional. Information specifying a GKE Cluster.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.GkeCluster gke = 15 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Deploy\V1\GkeCluster $var
- * @return $this
- */
- public function setGke($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\GkeCluster::class);
- $this->writeOneof(15, $var);
-
- return $this;
- }
-
- /**
- * Optional. Information specifying an Anthos Cluster.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Deploy\V1\AnthosCluster|null
- */
- public function getAnthosCluster()
- {
- return $this->readOneof(17);
- }
-
- public function hasAnthosCluster()
- {
- return $this->hasOneof(17);
- }
-
- /**
- * Optional. Information specifying an Anthos Cluster.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Deploy\V1\AnthosCluster $var
- * @return $this
- */
- public function setAnthosCluster($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AnthosCluster::class);
- $this->writeOneof(17, $var);
-
- return $this;
- }
-
- /**
- * Optional. Information specifying a Cloud Run deployment target.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CloudRunLocation run = 18 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Deploy\V1\CloudRunLocation|null
- */
- public function getRun()
- {
- return $this->readOneof(18);
- }
-
- public function hasRun()
- {
- return $this->hasOneof(18);
- }
-
- /**
- * Optional. Information specifying a Cloud Run deployment target.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CloudRunLocation run = 18 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Deploy\V1\CloudRunLocation $var
- * @return $this
- */
- public function setRun($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CloudRunLocation::class);
- $this->writeOneof(18, $var);
-
- return $this;
- }
-
- /**
- * Optional. Information specifying a multiTarget.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.MultiTarget multi_target = 19 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Deploy\V1\MultiTarget|null
- */
- public function getMultiTarget()
- {
- return $this->readOneof(19);
- }
-
- public function hasMultiTarget()
- {
- return $this->hasOneof(19);
- }
-
- /**
- * Optional. Information specifying a multiTarget.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.MultiTarget multi_target = 19 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Deploy\V1\MultiTarget $var
- * @return $this
- */
- public function setMultiTarget($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\MultiTarget::class);
- $this->writeOneof(19, $var);
-
- return $this;
- }
-
- /**
- * Optional. Information specifying a Custom Target.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Deploy\V1\CustomTarget|null
- */
- public function getCustomTarget()
- {
- return $this->readOneof(21);
- }
-
- public function hasCustomTarget()
- {
- return $this->hasOneof(21);
- }
-
- /**
- * Optional. Information specifying a Custom Target.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Deploy\V1\CustomTarget $var
- * @return $this
- */
- public function setCustomTarget($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomTarget::class);
- $this->writeOneof(21, $var);
-
- return $this;
- }
-
- /**
- * Optional. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 12 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * Optional. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 12 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
- /**
- * Configurations for all execution that relates to this `Target`.
- * Each `ExecutionEnvironmentUsage` value may only be used in a single
- * configuration; using the same value multiple times is an error.
- * When one or more configurations are specified, they must include the
- * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
- * When no configurations are specified, execution will use the default
- * specified in `DefaultPool`.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getExecutionConfigs()
- {
- return $this->execution_configs;
- }
-
- /**
- * Configurations for all execution that relates to this `Target`.
- * Each `ExecutionEnvironmentUsage` value may only be used in a single
- * configuration; using the same value multiple times is an error.
- * When one or more configurations are specified, they must include the
- * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
- * When no configurations are specified, execution will use the default
- * specified in `DefaultPool`.
- *
- * Generated from protobuf field repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16;
- * @param array<\Google\Cloud\Deploy\V1\ExecutionConfig>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setExecutionConfigs($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\ExecutionConfig::class);
- $this->execution_configs = $arr;
-
- return $this;
- }
-
- /**
- * Optional. The deploy parameters to use for this target.
- *
- * Generated from protobuf field map deploy_parameters = 20 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getDeployParameters()
- {
- return $this->deploy_parameters;
- }
-
- /**
- * Optional. The deploy parameters to use for this target.
- *
- * Generated from protobuf field map deploy_parameters = 20 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setDeployParameters($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->deploy_parameters = $arr;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getDeploymentTarget()
- {
- return $this->whichOneof("deployment_target");
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetArtifact.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetArtifact.php
deleted file mode 100644
index dcca9ff5bfa5..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetArtifact.php
+++ /dev/null
@@ -1,187 +0,0 @@
-google.cloud.deploy.v1.TargetArtifact
- */
-class TargetArtifact extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. File path of the resolved Skaffold configuration relative to
- * the URI.
- *
- * Generated from protobuf field string skaffold_config_path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $skaffold_config_path = '';
- /**
- * Output only. File path of the rendered manifest relative to the URI.
- *
- * Generated from protobuf field string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $manifest_path = '';
- /**
- * Output only. Map from the phase ID to the phase artifacts for the `Target`.
- *
- * Generated from protobuf field map phase_artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $phase_artifacts;
- protected $uri;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $artifact_uri
- * Output only. URI of a directory containing the artifacts. This contains
- * deployment configuration used by Skaffold during a rollout, and all
- * paths are relative to this location.
- * @type string $skaffold_config_path
- * Output only. File path of the resolved Skaffold configuration relative to
- * the URI.
- * @type string $manifest_path
- * Output only. File path of the rendered manifest relative to the URI.
- * @type array|\Google\Protobuf\Internal\MapField $phase_artifacts
- * Output only. Map from the phase ID to the phase artifacts for the `Target`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. URI of a directory containing the artifacts. This contains
- * deployment configuration used by Skaffold during a rollout, and all
- * paths are relative to this location.
- *
- * Generated from protobuf field string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getArtifactUri()
- {
- return $this->readOneof(4);
- }
-
- public function hasArtifactUri()
- {
- return $this->hasOneof(4);
- }
-
- /**
- * Output only. URI of a directory containing the artifacts. This contains
- * deployment configuration used by Skaffold during a rollout, and all
- * paths are relative to this location.
- *
- * Generated from protobuf field string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setArtifactUri($var)
- {
- GPBUtil::checkString($var, True);
- $this->writeOneof(4, $var);
-
- return $this;
- }
-
- /**
- * Output only. File path of the resolved Skaffold configuration relative to
- * the URI.
- *
- * Generated from protobuf field string skaffold_config_path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getSkaffoldConfigPath()
- {
- return $this->skaffold_config_path;
- }
-
- /**
- * Output only. File path of the resolved Skaffold configuration relative to
- * the URI.
- *
- * Generated from protobuf field string skaffold_config_path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setSkaffoldConfigPath($var)
- {
- GPBUtil::checkString($var, True);
- $this->skaffold_config_path = $var;
-
- return $this;
- }
-
- /**
- * Output only. File path of the rendered manifest relative to the URI.
- *
- * Generated from protobuf field string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getManifestPath()
- {
- return $this->manifest_path;
- }
-
- /**
- * Output only. File path of the rendered manifest relative to the URI.
- *
- * Generated from protobuf field string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setManifestPath($var)
- {
- GPBUtil::checkString($var, True);
- $this->manifest_path = $var;
-
- return $this;
- }
-
- /**
- * Output only. Map from the phase ID to the phase artifacts for the `Target`.
- *
- * Generated from protobuf field map phase_artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getPhaseArtifacts()
- {
- return $this->phase_artifacts;
- }
-
- /**
- * Output only. Map from the phase ID to the phase artifacts for the `Target`.
- *
- * Generated from protobuf field map phase_artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setPhaseArtifacts($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\TargetArtifact\PhaseArtifact::class);
- $this->phase_artifacts = $arr;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getUri()
- {
- return $this->whichOneof("uri");
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetArtifact/PhaseArtifact.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetArtifact/PhaseArtifact.php
deleted file mode 100644
index 27736c6008e0..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetArtifact/PhaseArtifact.php
+++ /dev/null
@@ -1,146 +0,0 @@
-google.cloud.deploy.v1.TargetArtifact.PhaseArtifact
- */
-class PhaseArtifact extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. File path of the resolved Skaffold configuration relative to
- * the URI.
- *
- * Generated from protobuf field string skaffold_config_path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $skaffold_config_path = '';
- /**
- * Output only. File path of the rendered manifest relative to the URI.
- *
- * Generated from protobuf field string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $manifest_path = '';
- /**
- * Output only. File path of the directory of rendered job manifests
- * relative to the URI. This is only set if it is applicable.
- *
- * Generated from protobuf field string job_manifests_path = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $job_manifests_path = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $skaffold_config_path
- * Output only. File path of the resolved Skaffold configuration relative to
- * the URI.
- * @type string $manifest_path
- * Output only. File path of the rendered manifest relative to the URI.
- * @type string $job_manifests_path
- * Output only. File path of the directory of rendered job manifests
- * relative to the URI. This is only set if it is applicable.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. File path of the resolved Skaffold configuration relative to
- * the URI.
- *
- * Generated from protobuf field string skaffold_config_path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getSkaffoldConfigPath()
- {
- return $this->skaffold_config_path;
- }
-
- /**
- * Output only. File path of the resolved Skaffold configuration relative to
- * the URI.
- *
- * Generated from protobuf field string skaffold_config_path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setSkaffoldConfigPath($var)
- {
- GPBUtil::checkString($var, True);
- $this->skaffold_config_path = $var;
-
- return $this;
- }
-
- /**
- * Output only. File path of the rendered manifest relative to the URI.
- *
- * Generated from protobuf field string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getManifestPath()
- {
- return $this->manifest_path;
- }
-
- /**
- * Output only. File path of the rendered manifest relative to the URI.
- *
- * Generated from protobuf field string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setManifestPath($var)
- {
- GPBUtil::checkString($var, True);
- $this->manifest_path = $var;
-
- return $this;
- }
-
- /**
- * Output only. File path of the directory of rendered job manifests
- * relative to the URI. This is only set if it is applicable.
- *
- * Generated from protobuf field string job_manifests_path = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getJobManifestsPath()
- {
- return $this->job_manifests_path;
- }
-
- /**
- * Output only. File path of the directory of rendered job manifests
- * relative to the URI. This is only set if it is applicable.
- *
- * Generated from protobuf field string job_manifests_path = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setJobManifestsPath($var)
- {
- GPBUtil::checkString($var, True);
- $this->job_manifests_path = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(PhaseArtifact::class, \Google\Cloud\Deploy\V1\TargetArtifact_PhaseArtifact::class);
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetAttribute.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetAttribute.php
deleted file mode 100644
index 2ad745bdf87b..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetAttribute.php
+++ /dev/null
@@ -1,117 +0,0 @@
-google.cloud.deploy.v1.TargetAttribute
- */
-class TargetAttribute extends \Google\Protobuf\Internal\Message
-{
- /**
- * ID of the `Target`. The value of this field could be one of the
- * following:
- * * The last segment of a target name. It only needs the ID to determine
- * which target is being referred to
- * * "*", all targets in a location.
- *
- * Generated from protobuf field string id = 1;
- */
- protected $id = '';
- /**
- * Target labels.
- *
- * Generated from protobuf field map labels = 2;
- */
- private $labels;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $id
- * ID of the `Target`. The value of this field could be one of the
- * following:
- * * The last segment of a target name. It only needs the ID to determine
- * which target is being referred to
- * * "*", all targets in a location.
- * @type array|\Google\Protobuf\Internal\MapField $labels
- * Target labels.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * ID of the `Target`. The value of this field could be one of the
- * following:
- * * The last segment of a target name. It only needs the ID to determine
- * which target is being referred to
- * * "*", all targets in a location.
- *
- * Generated from protobuf field string id = 1;
- * @return string
- */
- public function getId()
- {
- return $this->id;
- }
-
- /**
- * ID of the `Target`. The value of this field could be one of the
- * following:
- * * The last segment of a target name. It only needs the ID to determine
- * which target is being referred to
- * * "*", all targets in a location.
- *
- * Generated from protobuf field string id = 1;
- * @param string $var
- * @return $this
- */
- public function setId($var)
- {
- GPBUtil::checkString($var, True);
- $this->id = $var;
-
- return $this;
- }
-
- /**
- * Target labels.
- *
- * Generated from protobuf field map labels = 2;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getLabels()
- {
- return $this->labels;
- }
-
- /**
- * Target labels.
- *
- * Generated from protobuf field map labels = 2;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setLabels($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->labels = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetNotificationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetNotificationEvent.php
deleted file mode 100644
index 60f2044019f6..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetNotificationEvent.php
+++ /dev/null
@@ -1,137 +0,0 @@
-google.cloud.deploy.v1.TargetNotificationEvent
- */
-class TargetNotificationEvent extends \Google\Protobuf\Internal\Message
-{
- /**
- * Debug message for when a notification fails to send.
- *
- * Generated from protobuf field string message = 1;
- */
- protected $message = '';
- /**
- * The name of the `Target`.
- *
- * Generated from protobuf field string target = 2;
- */
- protected $target = '';
- /**
- * Type of this notification, e.g. for a Pub/Sub failure.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3;
- */
- protected $type = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $message
- * Debug message for when a notification fails to send.
- * @type string $target
- * The name of the `Target`.
- * @type int $type
- * Type of this notification, e.g. for a Pub/Sub failure.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\TargetNotificationPayload::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Debug message for when a notification fails to send.
- *
- * Generated from protobuf field string message = 1;
- * @return string
- */
- public function getMessage()
- {
- return $this->message;
- }
-
- /**
- * Debug message for when a notification fails to send.
- *
- * Generated from protobuf field string message = 1;
- * @param string $var
- * @return $this
- */
- public function setMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->message = $var;
-
- return $this;
- }
-
- /**
- * The name of the `Target`.
- *
- * Generated from protobuf field string target = 2;
- * @return string
- */
- public function getTarget()
- {
- return $this->target;
- }
-
- /**
- * The name of the `Target`.
- *
- * Generated from protobuf field string target = 2;
- * @param string $var
- * @return $this
- */
- public function setTarget($var)
- {
- GPBUtil::checkString($var, True);
- $this->target = $var;
-
- return $this;
- }
-
- /**
- * Type of this notification, e.g. for a Pub/Sub failure.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3;
- * @return int
- */
- public function getType()
- {
- return $this->type;
- }
-
- /**
- * Type of this notification, e.g. for a Pub/Sub failure.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3;
- * @param int $var
- * @return $this
- */
- public function setType($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class);
- $this->type = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetsPresentCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetsPresentCondition.php
deleted file mode 100644
index 7dba90cabb9d..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetsPresentCondition.php
+++ /dev/null
@@ -1,150 +0,0 @@
-google.cloud.deploy.v1.TargetsPresentCondition
- */
-class TargetsPresentCondition extends \Google\Protobuf\Internal\Message
-{
- /**
- * True if there aren't any missing Targets.
- *
- * Generated from protobuf field bool status = 1;
- */
- protected $status = false;
- /**
- * The list of Target names that do not exist. For example,
- * `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
- *
- * Generated from protobuf field repeated string missing_targets = 2 [(.google.api.resource_reference) = {
- */
- private $missing_targets;
- /**
- * Last time the condition was updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4;
- */
- protected $update_time = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type bool $status
- * True if there aren't any missing Targets.
- * @type array|\Google\Protobuf\Internal\RepeatedField $missing_targets
- * The list of Target names that do not exist. For example,
- * `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
- * @type \Google\Protobuf\Timestamp $update_time
- * Last time the condition was updated.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * True if there aren't any missing Targets.
- *
- * Generated from protobuf field bool status = 1;
- * @return bool
- */
- public function getStatus()
- {
- return $this->status;
- }
-
- /**
- * True if there aren't any missing Targets.
- *
- * Generated from protobuf field bool status = 1;
- * @param bool $var
- * @return $this
- */
- public function setStatus($var)
- {
- GPBUtil::checkBool($var);
- $this->status = $var;
-
- return $this;
- }
-
- /**
- * The list of Target names that do not exist. For example,
- * `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
- *
- * Generated from protobuf field repeated string missing_targets = 2 [(.google.api.resource_reference) = {
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getMissingTargets()
- {
- return $this->missing_targets;
- }
-
- /**
- * The list of Target names that do not exist. For example,
- * `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
- *
- * Generated from protobuf field repeated string missing_targets = 2 [(.google.api.resource_reference) = {
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setMissingTargets($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->missing_targets = $arr;
-
- return $this;
- }
-
- /**
- * Last time the condition was updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->update_time;
- }
-
- public function hasUpdateTime()
- {
- return isset($this->update_time);
- }
-
- public function clearUpdateTime()
- {
- unset($this->update_time);
- }
-
- /**
- * Last time the condition was updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->update_time = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetsTypeCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetsTypeCondition.php
deleted file mode 100644
index 34705dbf6df7..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetsTypeCondition.php
+++ /dev/null
@@ -1,110 +0,0 @@
-google.cloud.deploy.v1.TargetsTypeCondition
- */
-class TargetsTypeCondition extends \Google\Protobuf\Internal\Message
-{
- /**
- * True if the targets are all a comparable type. For example this is true if
- * all targets are GKE clusters. This is false if some targets are Cloud Run
- * targets and others are GKE clusters.
- *
- * Generated from protobuf field bool status = 1;
- */
- protected $status = false;
- /**
- * Human readable error message.
- *
- * Generated from protobuf field string error_details = 2;
- */
- protected $error_details = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type bool $status
- * True if the targets are all a comparable type. For example this is true if
- * all targets are GKE clusters. This is false if some targets are Cloud Run
- * targets and others are GKE clusters.
- * @type string $error_details
- * Human readable error message.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * True if the targets are all a comparable type. For example this is true if
- * all targets are GKE clusters. This is false if some targets are Cloud Run
- * targets and others are GKE clusters.
- *
- * Generated from protobuf field bool status = 1;
- * @return bool
- */
- public function getStatus()
- {
- return $this->status;
- }
-
- /**
- * True if the targets are all a comparable type. For example this is true if
- * all targets are GKE clusters. This is false if some targets are Cloud Run
- * targets and others are GKE clusters.
- *
- * Generated from protobuf field bool status = 1;
- * @param bool $var
- * @return $this
- */
- public function setStatus($var)
- {
- GPBUtil::checkBool($var);
- $this->status = $var;
-
- return $this;
- }
-
- /**
- * Human readable error message.
- *
- * Generated from protobuf field string error_details = 2;
- * @return string
- */
- public function getErrorDetails()
- {
- return $this->error_details;
- }
-
- /**
- * Human readable error message.
- *
- * Generated from protobuf field string error_details = 2;
- * @param string $var
- * @return $this
- */
- public function setErrorDetails($var)
- {
- GPBUtil::checkString($var, True);
- $this->error_details = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TerminateJobRunRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TerminateJobRunRequest.php
deleted file mode 100644
index 4264a7361286..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TerminateJobRunRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.deploy.v1.TerminateJobRunRequest
- */
-class TerminateJobRunRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the `JobRun`. Format must be
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. Name of the `JobRun`. Format must be
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}`. Please see
- * {@see CloudDeployClient::jobRunName()} for help formatting this field.
- *
- * @return \Google\Cloud\Deploy\V1\TerminateJobRunRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Name of the `JobRun`. Format must be
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the `JobRun`. Format must be
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Name of the `JobRun`. Format must be
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TerminateJobRunResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TerminateJobRunResponse.php
deleted file mode 100644
index 7053edb3af40..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TerminateJobRunResponse.php
+++ /dev/null
@@ -1,33 +0,0 @@
-google.cloud.deploy.v1.TerminateJobRunResponse
- */
-class TerminateJobRunResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Type.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Type.php
deleted file mode 100644
index 1835a51f34aa..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Type.php
+++ /dev/null
@@ -1,96 +0,0 @@
-google.cloud.deploy.v1.Type
- */
-class Type
-{
- /**
- * Type is unspecified.
- *
- * Generated from protobuf enum TYPE_UNSPECIFIED = 0;
- */
- const TYPE_UNSPECIFIED = 0;
- /**
- * A Pub/Sub notification failed to be sent.
- *
- * Generated from protobuf enum TYPE_PUBSUB_NOTIFICATION_FAILURE = 1;
- */
- const TYPE_PUBSUB_NOTIFICATION_FAILURE = 1;
- /**
- * Resource state changed.
- *
- * Generated from protobuf enum TYPE_RESOURCE_STATE_CHANGE = 3;
- */
- const TYPE_RESOURCE_STATE_CHANGE = 3;
- /**
- * A process aborted.
- *
- * Generated from protobuf enum TYPE_PROCESS_ABORTED = 4;
- */
- const TYPE_PROCESS_ABORTED = 4;
- /**
- * Restriction check failed.
- *
- * Generated from protobuf enum TYPE_RESTRICTION_VIOLATED = 5;
- */
- const TYPE_RESTRICTION_VIOLATED = 5;
- /**
- * Resource deleted.
- *
- * Generated from protobuf enum TYPE_RESOURCE_DELETED = 6;
- */
- const TYPE_RESOURCE_DELETED = 6;
- /**
- * Rollout updated.
- *
- * Generated from protobuf enum TYPE_ROLLOUT_UPDATE = 7;
- */
- const TYPE_ROLLOUT_UPDATE = 7;
- /**
- * Deprecated: This field is never used. Use release_render log type instead.
- *
- * Generated from protobuf enum TYPE_RENDER_STATUES_CHANGE = 2 [deprecated = true];
- */
- const TYPE_RENDER_STATUES_CHANGE = 2;
-
- private static $valueToName = [
- self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED',
- self::TYPE_PUBSUB_NOTIFICATION_FAILURE => 'TYPE_PUBSUB_NOTIFICATION_FAILURE',
- self::TYPE_RESOURCE_STATE_CHANGE => 'TYPE_RESOURCE_STATE_CHANGE',
- self::TYPE_PROCESS_ABORTED => 'TYPE_PROCESS_ABORTED',
- self::TYPE_RESTRICTION_VIOLATED => 'TYPE_RESTRICTION_VIOLATED',
- self::TYPE_RESOURCE_DELETED => 'TYPE_RESOURCE_DELETED',
- self::TYPE_ROLLOUT_UPDATE => 'TYPE_ROLLOUT_UPDATE',
- self::TYPE_RENDER_STATUES_CHANGE => 'TYPE_RENDER_STATUES_CHANGE',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateAutomationRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateAutomationRequest.php
deleted file mode 100644
index 0e0955a6a129..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateAutomationRequest.php
+++ /dev/null
@@ -1,306 +0,0 @@
-google.cloud.deploy.v1.UpdateAutomationRequest
- */
-class UpdateAutomationRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Field mask is used to specify the fields to be overwritten in the
- * `Automation` resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $update_mask = null;
- /**
- * Required. The `Automation` to update.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Automation automation = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $automation = null;
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $request_id = '';
- /**
- * Optional. If set to true, updating a `Automation` that does not exist will
- * result in the creation of a new `Automation`.
- *
- * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $allow_missing = false;
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $validate_only = false;
-
- /**
- * @param \Google\Cloud\Deploy\V1\Automation $automation Required. The `Automation` to update.
- * @param \Google\Protobuf\FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten in the
- * `Automation` resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- *
- * @return \Google\Cloud\Deploy\V1\UpdateAutomationRequest
- *
- * @experimental
- */
- public static function build(\Google\Cloud\Deploy\V1\Automation $automation, \Google\Protobuf\FieldMask $updateMask): self
- {
- return (new self())
- ->setAutomation($automation)
- ->setUpdateMask($updateMask);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\FieldMask $update_mask
- * Required. Field mask is used to specify the fields to be overwritten in the
- * `Automation` resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- * @type \Google\Cloud\Deploy\V1\Automation $automation
- * Required. The `Automation` to update.
- * @type string $request_id
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $allow_missing
- * Optional. If set to true, updating a `Automation` that does not exist will
- * result in the creation of a new `Automation`.
- * @type bool $validate_only
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Field mask is used to specify the fields to be overwritten in the
- * `Automation` resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Protobuf\FieldMask|null
- */
- public function getUpdateMask()
- {
- return $this->update_mask;
- }
-
- public function hasUpdateMask()
- {
- return isset($this->update_mask);
- }
-
- public function clearUpdateMask()
- {
- unset($this->update_mask);
- }
-
- /**
- * Required. Field mask is used to specify the fields to be overwritten in the
- * `Automation` resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Protobuf\FieldMask $var
- * @return $this
- */
- public function setUpdateMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
- $this->update_mask = $var;
-
- return $this;
- }
-
- /**
- * Required. The `Automation` to update.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Automation automation = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Deploy\V1\Automation|null
- */
- public function getAutomation()
- {
- return $this->automation;
- }
-
- public function hasAutomation()
- {
- return isset($this->automation);
- }
-
- public function clearAutomation()
- {
- unset($this->automation);
- }
-
- /**
- * Required. The `Automation` to update.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Automation automation = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Deploy\V1\Automation $var
- * @return $this
- */
- public function setAutomation($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Automation::class);
- $this->automation = $var;
-
- return $this;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, updating a `Automation` that does not exist will
- * result in the creation of a new `Automation`.
- *
- * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getAllowMissing()
- {
- return $this->allow_missing;
- }
-
- /**
- * Optional. If set to true, updating a `Automation` that does not exist will
- * result in the creation of a new `Automation`.
- *
- * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setAllowMissing($var)
- {
- GPBUtil::checkBool($var);
- $this->allow_missing = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getValidateOnly()
- {
- return $this->validate_only;
- }
-
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setValidateOnly($var)
- {
- GPBUtil::checkBool($var);
- $this->validate_only = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateCustomTargetTypeRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateCustomTargetTypeRequest.php
deleted file mode 100644
index f6bcbf1d6395..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateCustomTargetTypeRequest.php
+++ /dev/null
@@ -1,306 +0,0 @@
-google.cloud.deploy.v1.UpdateCustomTargetTypeRequest
- */
-class UpdateCustomTargetTypeRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Field mask is used to specify the fields to be overwritten in the
- * `CustomTargetType` resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $update_mask = null;
- /**
- * Required. The `CustomTargetType` to update.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $custom_target_type = null;
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $request_id = '';
- /**
- * Optional. If set to true, updating a `CustomTargetType` that does not exist
- * will result in the creation of a new `CustomTargetType`.
- *
- * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $allow_missing = false;
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $validate_only = false;
-
- /**
- * @param \Google\Cloud\Deploy\V1\CustomTargetType $customTargetType Required. The `CustomTargetType` to update.
- * @param \Google\Protobuf\FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten in the
- * `CustomTargetType` resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- *
- * @return \Google\Cloud\Deploy\V1\UpdateCustomTargetTypeRequest
- *
- * @experimental
- */
- public static function build(\Google\Cloud\Deploy\V1\CustomTargetType $customTargetType, \Google\Protobuf\FieldMask $updateMask): self
- {
- return (new self())
- ->setCustomTargetType($customTargetType)
- ->setUpdateMask($updateMask);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\FieldMask $update_mask
- * Required. Field mask is used to specify the fields to be overwritten in the
- * `CustomTargetType` resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- * @type \Google\Cloud\Deploy\V1\CustomTargetType $custom_target_type
- * Required. The `CustomTargetType` to update.
- * @type string $request_id
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $allow_missing
- * Optional. If set to true, updating a `CustomTargetType` that does not exist
- * will result in the creation of a new `CustomTargetType`.
- * @type bool $validate_only
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Field mask is used to specify the fields to be overwritten in the
- * `CustomTargetType` resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Protobuf\FieldMask|null
- */
- public function getUpdateMask()
- {
- return $this->update_mask;
- }
-
- public function hasUpdateMask()
- {
- return isset($this->update_mask);
- }
-
- public function clearUpdateMask()
- {
- unset($this->update_mask);
- }
-
- /**
- * Required. Field mask is used to specify the fields to be overwritten in the
- * `CustomTargetType` resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Protobuf\FieldMask $var
- * @return $this
- */
- public function setUpdateMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
- $this->update_mask = $var;
-
- return $this;
- }
-
- /**
- * Required. The `CustomTargetType` to update.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Deploy\V1\CustomTargetType|null
- */
- public function getCustomTargetType()
- {
- return $this->custom_target_type;
- }
-
- public function hasCustomTargetType()
- {
- return isset($this->custom_target_type);
- }
-
- public function clearCustomTargetType()
- {
- unset($this->custom_target_type);
- }
-
- /**
- * Required. The `CustomTargetType` to update.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Deploy\V1\CustomTargetType $var
- * @return $this
- */
- public function setCustomTargetType($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomTargetType::class);
- $this->custom_target_type = $var;
-
- return $this;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, updating a `CustomTargetType` that does not exist
- * will result in the creation of a new `CustomTargetType`.
- *
- * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getAllowMissing()
- {
- return $this->allow_missing;
- }
-
- /**
- * Optional. If set to true, updating a `CustomTargetType` that does not exist
- * will result in the creation of a new `CustomTargetType`.
- *
- * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setAllowMissing($var)
- {
- GPBUtil::checkBool($var);
- $this->allow_missing = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getValidateOnly()
- {
- return $this->validate_only;
- }
-
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setValidateOnly($var)
- {
- GPBUtil::checkBool($var);
- $this->validate_only = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateDeliveryPipelineRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateDeliveryPipelineRequest.php
deleted file mode 100644
index dea1172e93e5..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateDeliveryPipelineRequest.php
+++ /dev/null
@@ -1,306 +0,0 @@
-google.cloud.deploy.v1.UpdateDeliveryPipelineRequest
- */
-class UpdateDeliveryPipelineRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Field mask is used to specify the fields to be overwritten in the
- * `DeliveryPipeline` resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $update_mask = null;
- /**
- * Required. The `DeliveryPipeline` to update.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $delivery_pipeline = null;
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $request_id = '';
- /**
- * Optional. If set to true, updating a `DeliveryPipeline` that does not exist
- * will result in the creation of a new `DeliveryPipeline`.
- *
- * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $allow_missing = false;
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $validate_only = false;
-
- /**
- * @param \Google\Cloud\Deploy\V1\DeliveryPipeline $deliveryPipeline Required. The `DeliveryPipeline` to update.
- * @param \Google\Protobuf\FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten in the
- * `DeliveryPipeline` resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- *
- * @return \Google\Cloud\Deploy\V1\UpdateDeliveryPipelineRequest
- *
- * @experimental
- */
- public static function build(\Google\Cloud\Deploy\V1\DeliveryPipeline $deliveryPipeline, \Google\Protobuf\FieldMask $updateMask): self
- {
- return (new self())
- ->setDeliveryPipeline($deliveryPipeline)
- ->setUpdateMask($updateMask);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\FieldMask $update_mask
- * Required. Field mask is used to specify the fields to be overwritten in the
- * `DeliveryPipeline` resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- * @type \Google\Cloud\Deploy\V1\DeliveryPipeline $delivery_pipeline
- * Required. The `DeliveryPipeline` to update.
- * @type string $request_id
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $allow_missing
- * Optional. If set to true, updating a `DeliveryPipeline` that does not exist
- * will result in the creation of a new `DeliveryPipeline`.
- * @type bool $validate_only
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Field mask is used to specify the fields to be overwritten in the
- * `DeliveryPipeline` resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Protobuf\FieldMask|null
- */
- public function getUpdateMask()
- {
- return $this->update_mask;
- }
-
- public function hasUpdateMask()
- {
- return isset($this->update_mask);
- }
-
- public function clearUpdateMask()
- {
- unset($this->update_mask);
- }
-
- /**
- * Required. Field mask is used to specify the fields to be overwritten in the
- * `DeliveryPipeline` resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Protobuf\FieldMask $var
- * @return $this
- */
- public function setUpdateMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
- $this->update_mask = $var;
-
- return $this;
- }
-
- /**
- * Required. The `DeliveryPipeline` to update.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Deploy\V1\DeliveryPipeline|null
- */
- public function getDeliveryPipeline()
- {
- return $this->delivery_pipeline;
- }
-
- public function hasDeliveryPipeline()
- {
- return isset($this->delivery_pipeline);
- }
-
- public function clearDeliveryPipeline()
- {
- unset($this->delivery_pipeline);
- }
-
- /**
- * Required. The `DeliveryPipeline` to update.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Deploy\V1\DeliveryPipeline $var
- * @return $this
- */
- public function setDeliveryPipeline($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeliveryPipeline::class);
- $this->delivery_pipeline = $var;
-
- return $this;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, updating a `DeliveryPipeline` that does not exist
- * will result in the creation of a new `DeliveryPipeline`.
- *
- * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getAllowMissing()
- {
- return $this->allow_missing;
- }
-
- /**
- * Optional. If set to true, updating a `DeliveryPipeline` that does not exist
- * will result in the creation of a new `DeliveryPipeline`.
- *
- * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setAllowMissing($var)
- {
- GPBUtil::checkBool($var);
- $this->allow_missing = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getValidateOnly()
- {
- return $this->validate_only;
- }
-
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setValidateOnly($var)
- {
- GPBUtil::checkBool($var);
- $this->validate_only = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateTargetRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateTargetRequest.php
deleted file mode 100644
index 7823d7339fdd..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateTargetRequest.php
+++ /dev/null
@@ -1,306 +0,0 @@
-google.cloud.deploy.v1.UpdateTargetRequest
- */
-class UpdateTargetRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Field mask is used to specify the fields to be overwritten in the
- * Target resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $update_mask = null;
- /**
- * Required. The `Target` to update.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $target = null;
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $request_id = '';
- /**
- * Optional. If set to true, updating a `Target` that does not exist will
- * result in the creation of a new `Target`.
- *
- * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $allow_missing = false;
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $validate_only = false;
-
- /**
- * @param \Google\Cloud\Deploy\V1\Target $target Required. The `Target` to update.
- * @param \Google\Protobuf\FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten in the
- * Target resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- *
- * @return \Google\Cloud\Deploy\V1\UpdateTargetRequest
- *
- * @experimental
- */
- public static function build(\Google\Cloud\Deploy\V1\Target $target, \Google\Protobuf\FieldMask $updateMask): self
- {
- return (new self())
- ->setTarget($target)
- ->setUpdateMask($updateMask);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\FieldMask $update_mask
- * Required. Field mask is used to specify the fields to be overwritten in the
- * Target resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- * @type \Google\Cloud\Deploy\V1\Target $target
- * Required. The `Target` to update.
- * @type string $request_id
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $allow_missing
- * Optional. If set to true, updating a `Target` that does not exist will
- * result in the creation of a new `Target`.
- * @type bool $validate_only
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Field mask is used to specify the fields to be overwritten in the
- * Target resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Protobuf\FieldMask|null
- */
- public function getUpdateMask()
- {
- return $this->update_mask;
- }
-
- public function hasUpdateMask()
- {
- return isset($this->update_mask);
- }
-
- public function clearUpdateMask()
- {
- unset($this->update_mask);
- }
-
- /**
- * Required. Field mask is used to specify the fields to be overwritten in the
- * Target resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Protobuf\FieldMask $var
- * @return $this
- */
- public function setUpdateMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
- $this->update_mask = $var;
-
- return $this;
- }
-
- /**
- * Required. The `Target` to update.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Deploy\V1\Target|null
- */
- public function getTarget()
- {
- return $this->target;
- }
-
- public function hasTarget()
- {
- return isset($this->target);
- }
-
- public function clearTarget()
- {
- unset($this->target);
- }
-
- /**
- * Required. The `Target` to update.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Deploy\V1\Target $var
- * @return $this
- */
- public function setTarget($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Target::class);
- $this->target = $var;
-
- return $this;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, updating a `Target` that does not exist will
- * result in the creation of a new `Target`.
- *
- * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getAllowMissing()
- {
- return $this->allow_missing;
- }
-
- /**
- * Optional. If set to true, updating a `Target` that does not exist will
- * result in the creation of a new `Target`.
- *
- * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setAllowMissing($var)
- {
- GPBUtil::checkBool($var);
- $this->allow_missing = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getValidateOnly()
- {
- return $this->validate_only;
- }
-
- /**
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- *
- * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setValidateOnly($var)
- {
- GPBUtil::checkBool($var);
- $this->validate_only = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJob.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJob.php
deleted file mode 100644
index acbf1fc38199..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJob.php
+++ /dev/null
@@ -1,33 +0,0 @@
-google.cloud.deploy.v1.VerifyJob
- */
-class VerifyJob extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJobRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJobRun.php
deleted file mode 100644
index 71c2c05ff0a9..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJobRun.php
+++ /dev/null
@@ -1,223 +0,0 @@
-google.cloud.deploy.v1.VerifyJobRun
- */
-class VerifyJobRun extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to verify. Format is
- * `projects/{project}/locations/{location}/builds/{build}`.
- *
- * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- */
- protected $build = '';
- /**
- * Output only. URI of a directory containing the verify artifacts. This
- * contains the Skaffold event log.
- *
- * Generated from protobuf field string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $artifact_uri = '';
- /**
- * Output only. File path of the Skaffold event log relative to the artifact
- * URI.
- *
- * Generated from protobuf field string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $event_log_path = '';
- /**
- * Output only. The reason the verify failed. This will always be unspecified
- * while the verify is in progress or if it succeeded.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $failure_cause = 0;
- /**
- * Output only. Additional information about the verify failure, if available.
- *
- * Generated from protobuf field string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $failure_message = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $build
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to verify. Format is
- * `projects/{project}/locations/{location}/builds/{build}`.
- * @type string $artifact_uri
- * Output only. URI of a directory containing the verify artifacts. This
- * contains the Skaffold event log.
- * @type string $event_log_path
- * Output only. File path of the Skaffold event log relative to the artifact
- * URI.
- * @type int $failure_cause
- * Output only. The reason the verify failed. This will always be unspecified
- * while the verify is in progress or if it succeeded.
- * @type string $failure_message
- * Output only. Additional information about the verify failure, if available.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to verify. Format is
- * `projects/{project}/locations/{location}/builds/{build}`.
- *
- * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @return string
- */
- public function getBuild()
- {
- return $this->build;
- }
-
- /**
- * Output only. The resource name of the Cloud Build `Build` object that is
- * used to verify. Format is
- * `projects/{project}/locations/{location}/builds/{build}`.
- *
- * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setBuild($var)
- {
- GPBUtil::checkString($var, True);
- $this->build = $var;
-
- return $this;
- }
-
- /**
- * Output only. URI of a directory containing the verify artifacts. This
- * contains the Skaffold event log.
- *
- * Generated from protobuf field string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getArtifactUri()
- {
- return $this->artifact_uri;
- }
-
- /**
- * Output only. URI of a directory containing the verify artifacts. This
- * contains the Skaffold event log.
- *
- * Generated from protobuf field string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setArtifactUri($var)
- {
- GPBUtil::checkString($var, True);
- $this->artifact_uri = $var;
-
- return $this;
- }
-
- /**
- * Output only. File path of the Skaffold event log relative to the artifact
- * URI.
- *
- * Generated from protobuf field string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getEventLogPath()
- {
- return $this->event_log_path;
- }
-
- /**
- * Output only. File path of the Skaffold event log relative to the artifact
- * URI.
- *
- * Generated from protobuf field string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setEventLogPath($var)
- {
- GPBUtil::checkString($var, True);
- $this->event_log_path = $var;
-
- return $this;
- }
-
- /**
- * Output only. The reason the verify failed. This will always be unspecified
- * while the verify is in progress or if it succeeded.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getFailureCause()
- {
- return $this->failure_cause;
- }
-
- /**
- * Output only. The reason the verify failed. This will always be unspecified
- * while the verify is in progress or if it succeeded.
- *
- * Generated from protobuf field .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setFailureCause($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\VerifyJobRun\FailureCause::class);
- $this->failure_cause = $var;
-
- return $this;
- }
-
- /**
- * Output only. Additional information about the verify failure, if available.
- *
- * Generated from protobuf field string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getFailureMessage()
- {
- return $this->failure_message;
- }
-
- /**
- * Output only. Additional information about the verify failure, if available.
- *
- * Generated from protobuf field string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setFailureMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->failure_message = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJobRun/FailureCause.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJobRun/FailureCause.php
deleted file mode 100644
index 84d3ba2506c5..000000000000
--- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJobRun/FailureCause.php
+++ /dev/null
@@ -1,89 +0,0 @@
-google.cloud.deploy.v1.VerifyJobRun.FailureCause
- */
-class FailureCause
-{
- /**
- * No reason for failure is specified.
- *
- * Generated from protobuf enum FAILURE_CAUSE_UNSPECIFIED = 0;
- */
- const FAILURE_CAUSE_UNSPECIFIED = 0;
- /**
- * Cloud Build is not available, either because it is not enabled or because
- * Cloud Deploy has insufficient permissions. See [required
- * permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account#required_permissions).
- *
- * Generated from protobuf enum CLOUD_BUILD_UNAVAILABLE = 1;
- */
- const CLOUD_BUILD_UNAVAILABLE = 1;
- /**
- * The verify operation did not complete successfully; check Cloud Build
- * logs.
- *
- * Generated from protobuf enum EXECUTION_FAILED = 2;
- */
- const EXECUTION_FAILED = 2;
- /**
- * The verify job run did not complete within the alloted time.
- *
- * Generated from protobuf enum DEADLINE_EXCEEDED = 3;
- */
- const DEADLINE_EXCEEDED = 3;
- /**
- * No Skaffold verify configuration was found.
- *
- * Generated from protobuf enum VERIFICATION_CONFIG_NOT_FOUND = 4;
- */
- const VERIFICATION_CONFIG_NOT_FOUND = 4;
- /**
- * Cloud Build failed to fulfill Cloud Deploy's request. See failure_message
- * for additional details.
- *
- * Generated from protobuf enum CLOUD_BUILD_REQUEST_FAILED = 5;
- */
- const CLOUD_BUILD_REQUEST_FAILED = 5;
-
- private static $valueToName = [
- self::FAILURE_CAUSE_UNSPECIFIED => 'FAILURE_CAUSE_UNSPECIFIED',
- self::CLOUD_BUILD_UNAVAILABLE => 'CLOUD_BUILD_UNAVAILABLE',
- self::EXECUTION_FAILED => 'EXECUTION_FAILED',
- self::DEADLINE_EXCEEDED => 'DEADLINE_EXCEEDED',
- self::VERIFICATION_CONFIG_NOT_FOUND => 'VERIFICATION_CONFIG_NOT_FOUND',
- self::CLOUD_BUILD_REQUEST_FAILED => 'CLOUD_BUILD_REQUEST_FAILED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(FailureCause::class, \Google\Cloud\Deploy\V1\VerifyJobRun_FailureCause::class);
-
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/abandon_release.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/abandon_release.php
deleted file mode 100644
index 93c54b196326..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/abandon_release.php
+++ /dev/null
@@ -1,77 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var AbandonReleaseResponse $response */
- $response = $cloudDeployClient->abandonRelease($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudDeployClient::releaseName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]',
- '[RELEASE]'
- );
-
- abandon_release_sample($formattedName);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_AbandonRelease_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/advance_rollout.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/advance_rollout.php
deleted file mode 100644
index 988ef64288ef..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/advance_rollout.php
+++ /dev/null
@@ -1,81 +0,0 @@
-setName($formattedName)
- ->setPhaseId($phaseId);
-
- // Call the API and handle any network failures.
- try {
- /** @var AdvanceRolloutResponse $response */
- $response = $cloudDeployClient->advanceRollout($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudDeployClient::rolloutName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]',
- '[RELEASE]',
- '[ROLLOUT]'
- );
- $phaseId = '[PHASE_ID]';
-
- advance_rollout_sample($formattedName, $phaseId);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_AdvanceRollout_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/approve_rollout.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/approve_rollout.php
deleted file mode 100644
index 6fe35745c1d0..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/approve_rollout.php
+++ /dev/null
@@ -1,81 +0,0 @@
-setName($formattedName)
- ->setApproved($approved);
-
- // Call the API and handle any network failures.
- try {
- /** @var ApproveRolloutResponse $response */
- $response = $cloudDeployClient->approveRollout($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudDeployClient::rolloutName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]',
- '[RELEASE]',
- '[ROLLOUT]'
- );
- $approved = false;
-
- approve_rollout_sample($formattedName, $approved);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_ApproveRollout_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/cancel_automation_run.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/cancel_automation_run.php
deleted file mode 100644
index ce0d6a678314..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/cancel_automation_run.php
+++ /dev/null
@@ -1,80 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var CancelAutomationRunResponse $response */
- $response = $cloudDeployClient->cancelAutomationRun($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudDeployClient::automationRunName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]',
- '[AUTOMATION_RUN]'
- );
-
- cancel_automation_run_sample($formattedName);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_CancelAutomationRun_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/cancel_rollout.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/cancel_rollout.php
deleted file mode 100644
index 27aeaad0cd0b..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/cancel_rollout.php
+++ /dev/null
@@ -1,78 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var CancelRolloutResponse $response */
- $response = $cloudDeployClient->cancelRollout($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudDeployClient::rolloutName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]',
- '[RELEASE]',
- '[ROLLOUT]'
- );
-
- cancel_rollout_sample($formattedName);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_CancelRollout_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_automation.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_automation.php
deleted file mode 100644
index e3f62b5fbd55..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_automation.php
+++ /dev/null
@@ -1,107 +0,0 @@
-setServiceAccount($automationServiceAccount)
- ->setSelector($automationSelector)
- ->setRules($automationRules);
- $request = (new CreateAutomationRequest())
- ->setParent($formattedParent)
- ->setAutomationId($automationId)
- ->setAutomation($automation);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudDeployClient->createAutomation($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Automation $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = CloudDeployClient::deliveryPipelineName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]'
- );
- $automationId = '[AUTOMATION_ID]';
- $automationServiceAccount = '[SERVICE_ACCOUNT]';
-
- create_automation_sample($formattedParent, $automationId, $automationServiceAccount);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_CreateAutomation_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_custom_target_type.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_custom_target_type.php
deleted file mode 100644
index dd9f6864eda3..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_custom_target_type.php
+++ /dev/null
@@ -1,92 +0,0 @@
-setParent($formattedParent)
- ->setCustomTargetTypeId($customTargetTypeId)
- ->setCustomTargetType($customTargetType);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudDeployClient->createCustomTargetType($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var CustomTargetType $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = CloudDeployClient::locationName('[PROJECT]', '[LOCATION]');
- $customTargetTypeId = '[CUSTOM_TARGET_TYPE_ID]';
-
- create_custom_target_type_sample($formattedParent, $customTargetTypeId);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_CreateCustomTargetType_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_delivery_pipeline.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_delivery_pipeline.php
deleted file mode 100644
index cec3829d3be5..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_delivery_pipeline.php
+++ /dev/null
@@ -1,92 +0,0 @@
-setParent($formattedParent)
- ->setDeliveryPipelineId($deliveryPipelineId)
- ->setDeliveryPipeline($deliveryPipeline);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudDeployClient->createDeliveryPipeline($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var DeliveryPipeline $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = CloudDeployClient::locationName('[PROJECT]', '[LOCATION]');
- $deliveryPipelineId = '[DELIVERY_PIPELINE_ID]';
-
- create_delivery_pipeline_sample($formattedParent, $deliveryPipelineId);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_CreateDeliveryPipeline_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_release.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_release.php
deleted file mode 100644
index 1c4ae5d9b062..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_release.php
+++ /dev/null
@@ -1,94 +0,0 @@
-setParent($formattedParent)
- ->setReleaseId($releaseId)
- ->setRelease($release);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudDeployClient->createRelease($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Release $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = CloudDeployClient::deliveryPipelineName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]'
- );
- $releaseId = '[RELEASE_ID]';
-
- create_release_sample($formattedParent, $releaseId);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_CreateRelease_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_rollout.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_rollout.php
deleted file mode 100644
index 06a5e830e5e2..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_rollout.php
+++ /dev/null
@@ -1,101 +0,0 @@
-setTargetId($rolloutTargetId);
- $request = (new CreateRolloutRequest())
- ->setParent($formattedParent)
- ->setRolloutId($rolloutId)
- ->setRollout($rollout);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudDeployClient->createRollout($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Rollout $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = CloudDeployClient::releaseName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]',
- '[RELEASE]'
- );
- $rolloutId = '[ROLLOUT_ID]';
- $rolloutTargetId = '[TARGET_ID]';
-
- create_rollout_sample($formattedParent, $rolloutId, $rolloutTargetId);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_CreateRollout_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_target.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_target.php
deleted file mode 100644
index 1fb14caeb54c..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_target.php
+++ /dev/null
@@ -1,90 +0,0 @@
-setParent($formattedParent)
- ->setTargetId($targetId)
- ->setTarget($target);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudDeployClient->createTarget($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Target $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = CloudDeployClient::locationName('[PROJECT]', '[LOCATION]');
- $targetId = '[TARGET_ID]';
-
- create_target_sample($formattedParent, $targetId);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_CreateTarget_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_automation.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_automation.php
deleted file mode 100644
index 658375ac3965..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_automation.php
+++ /dev/null
@@ -1,86 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudDeployClient->deleteAutomation($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- printf('Operation completed successfully.' . PHP_EOL);
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudDeployClient::automationName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]',
- '[AUTOMATION]'
- );
-
- delete_automation_sample($formattedName);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_DeleteAutomation_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_custom_target_type.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_custom_target_type.php
deleted file mode 100644
index f4e1e3664dc3..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_custom_target_type.php
+++ /dev/null
@@ -1,85 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudDeployClient->deleteCustomTargetType($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- printf('Operation completed successfully.' . PHP_EOL);
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudDeployClient::customTargetTypeName(
- '[PROJECT]',
- '[LOCATION]',
- '[CUSTOM_TARGET_TYPE]'
- );
-
- delete_custom_target_type_sample($formattedName);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_DeleteCustomTargetType_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_delivery_pipeline.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_delivery_pipeline.php
deleted file mode 100644
index 077ef7a13222..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_delivery_pipeline.php
+++ /dev/null
@@ -1,85 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudDeployClient->deleteDeliveryPipeline($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- printf('Operation completed successfully.' . PHP_EOL);
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudDeployClient::deliveryPipelineName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]'
- );
-
- delete_delivery_pipeline_sample($formattedName);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_DeleteDeliveryPipeline_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_target.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_target.php
deleted file mode 100644
index 0ed5bd7e5efa..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_target.php
+++ /dev/null
@@ -1,81 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudDeployClient->deleteTarget($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- printf('Operation completed successfully.' . PHP_EOL);
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudDeployClient::targetName('[PROJECT]', '[LOCATION]', '[TARGET]');
-
- delete_target_sample($formattedName);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_DeleteTarget_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_automation.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_automation.php
deleted file mode 100644
index d1ac732d1174..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_automation.php
+++ /dev/null
@@ -1,77 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var Automation $response */
- $response = $cloudDeployClient->getAutomation($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudDeployClient::automationName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]',
- '[AUTOMATION]'
- );
-
- get_automation_sample($formattedName);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_GetAutomation_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_automation_run.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_automation_run.php
deleted file mode 100644
index c7bd635659c9..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_automation_run.php
+++ /dev/null
@@ -1,77 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var AutomationRun $response */
- $response = $cloudDeployClient->getAutomationRun($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudDeployClient::automationRunName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]',
- '[AUTOMATION_RUN]'
- );
-
- get_automation_run_sample($formattedName);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_GetAutomationRun_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_config.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_config.php
deleted file mode 100644
index fb2b635fc12a..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_config.php
+++ /dev/null
@@ -1,71 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var Config $response */
- $response = $cloudDeployClient->getConfig($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudDeployClient::configName('[PROJECT]', '[LOCATION]');
-
- get_config_sample($formattedName);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_GetConfig_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_custom_target_type.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_custom_target_type.php
deleted file mode 100644
index b17cea5b245b..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_custom_target_type.php
+++ /dev/null
@@ -1,76 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var CustomTargetType $response */
- $response = $cloudDeployClient->getCustomTargetType($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudDeployClient::customTargetTypeName(
- '[PROJECT]',
- '[LOCATION]',
- '[CUSTOM_TARGET_TYPE]'
- );
-
- get_custom_target_type_sample($formattedName);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_GetCustomTargetType_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_delivery_pipeline.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_delivery_pipeline.php
deleted file mode 100644
index 9b7b527629fe..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_delivery_pipeline.php
+++ /dev/null
@@ -1,76 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var DeliveryPipeline $response */
- $response = $cloudDeployClient->getDeliveryPipeline($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudDeployClient::deliveryPipelineName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]'
- );
-
- get_delivery_pipeline_sample($formattedName);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_GetDeliveryPipeline_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_iam_policy.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_iam_policy.php
deleted file mode 100644
index 712cc11c9bff..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_iam_policy.php
+++ /dev/null
@@ -1,72 +0,0 @@
-setResource($resource);
-
- // Call the API and handle any network failures.
- try {
- /** @var Policy $response */
- $response = $cloudDeployClient->getIamPolicy($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $resource = '[RESOURCE]';
-
- get_iam_policy_sample($resource);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_GetIamPolicy_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_job_run.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_job_run.php
deleted file mode 100644
index 6a44b1f36fb9..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_job_run.php
+++ /dev/null
@@ -1,79 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var JobRun $response */
- $response = $cloudDeployClient->getJobRun($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudDeployClient::jobRunName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]',
- '[RELEASE]',
- '[ROLLOUT]',
- '[JOB_RUN]'
- );
-
- get_job_run_sample($formattedName);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_GetJobRun_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_location.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_location.php
deleted file mode 100644
index 87b0ca5d002b..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_location.php
+++ /dev/null
@@ -1,57 +0,0 @@
-getLocation($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END clouddeploy_v1_generated_CloudDeploy_GetLocation_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_release.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_release.php
deleted file mode 100644
index a704cb10281f..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_release.php
+++ /dev/null
@@ -1,77 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var Release $response */
- $response = $cloudDeployClient->getRelease($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudDeployClient::releaseName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]',
- '[RELEASE]'
- );
-
- get_release_sample($formattedName);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_GetRelease_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_rollout.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_rollout.php
deleted file mode 100644
index 6b3047a364fa..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_rollout.php
+++ /dev/null
@@ -1,78 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var Rollout $response */
- $response = $cloudDeployClient->getRollout($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudDeployClient::rolloutName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]',
- '[RELEASE]',
- '[ROLLOUT]'
- );
-
- get_rollout_sample($formattedName);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_GetRollout_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_target.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_target.php
deleted file mode 100644
index 9b5a0a1bc287..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_target.php
+++ /dev/null
@@ -1,72 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var Target $response */
- $response = $cloudDeployClient->getTarget($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudDeployClient::targetName('[PROJECT]', '[LOCATION]', '[TARGET]');
-
- get_target_sample($formattedName);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_GetTarget_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/ignore_job.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/ignore_job.php
deleted file mode 100644
index c18b0622c202..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/ignore_job.php
+++ /dev/null
@@ -1,84 +0,0 @@
-setRollout($formattedRollout)
- ->setPhaseId($phaseId)
- ->setJobId($jobId);
-
- // Call the API and handle any network failures.
- try {
- /** @var IgnoreJobResponse $response */
- $response = $cloudDeployClient->ignoreJob($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedRollout = CloudDeployClient::rolloutName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]',
- '[RELEASE]',
- '[ROLLOUT]'
- );
- $phaseId = '[PHASE_ID]';
- $jobId = '[JOB_ID]';
-
- ignore_job_sample($formattedRollout, $phaseId, $jobId);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_IgnoreJob_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_automation_runs.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_automation_runs.php
deleted file mode 100644
index 30813b68d6f1..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_automation_runs.php
+++ /dev/null
@@ -1,82 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $cloudDeployClient->listAutomationRuns($request);
-
- /** @var AutomationRun $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = CloudDeployClient::deliveryPipelineName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]'
- );
-
- list_automation_runs_sample($formattedParent);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_ListAutomationRuns_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_automations.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_automations.php
deleted file mode 100644
index 8c3b995f7858..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_automations.php
+++ /dev/null
@@ -1,82 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $cloudDeployClient->listAutomations($request);
-
- /** @var Automation $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = CloudDeployClient::deliveryPipelineName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]'
- );
-
- list_automations_sample($formattedParent);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_ListAutomations_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_custom_target_types.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_custom_target_types.php
deleted file mode 100644
index 267cc5678e2c..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_custom_target_types.php
+++ /dev/null
@@ -1,77 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $cloudDeployClient->listCustomTargetTypes($request);
-
- /** @var CustomTargetType $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = CloudDeployClient::locationName('[PROJECT]', '[LOCATION]');
-
- list_custom_target_types_sample($formattedParent);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_ListCustomTargetTypes_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_delivery_pipelines.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_delivery_pipelines.php
deleted file mode 100644
index 2e784d091d01..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_delivery_pipelines.php
+++ /dev/null
@@ -1,77 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $cloudDeployClient->listDeliveryPipelines($request);
-
- /** @var DeliveryPipeline $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = CloudDeployClient::locationName('[PROJECT]', '[LOCATION]');
-
- list_delivery_pipelines_sample($formattedParent);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_ListDeliveryPipelines_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_job_runs.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_job_runs.php
deleted file mode 100644
index 6ca3a42ad7d5..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_job_runs.php
+++ /dev/null
@@ -1,82 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $cloudDeployClient->listJobRuns($request);
-
- /** @var JobRun $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = CloudDeployClient::rolloutName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]',
- '[RELEASE]',
- '[ROLLOUT]'
- );
-
- list_job_runs_sample($formattedParent);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_ListJobRuns_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_locations.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_locations.php
deleted file mode 100644
index a5a9b23761df..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_locations.php
+++ /dev/null
@@ -1,62 +0,0 @@
-listLocations($request);
-
- /** @var Location $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END clouddeploy_v1_generated_CloudDeploy_ListLocations_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_releases.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_releases.php
deleted file mode 100644
index da6f6702354c..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_releases.php
+++ /dev/null
@@ -1,81 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $cloudDeployClient->listReleases($request);
-
- /** @var Release $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = CloudDeployClient::deliveryPipelineName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]'
- );
-
- list_releases_sample($formattedParent);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_ListReleases_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_rollouts.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_rollouts.php
deleted file mode 100644
index 5e4d6f18bfdb..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_rollouts.php
+++ /dev/null
@@ -1,81 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $cloudDeployClient->listRollouts($request);
-
- /** @var Rollout $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = CloudDeployClient::releaseName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]',
- '[RELEASE]'
- );
-
- list_rollouts_sample($formattedParent);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_ListRollouts_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_targets.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_targets.php
deleted file mode 100644
index 2e250fbaceba..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_targets.php
+++ /dev/null
@@ -1,77 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $cloudDeployClient->listTargets($request);
-
- /** @var Target $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = CloudDeployClient::locationName('[PROJECT]', '[LOCATION]');
-
- list_targets_sample($formattedParent);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_ListTargets_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/retry_job.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/retry_job.php
deleted file mode 100644
index 55e00cd6a97a..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/retry_job.php
+++ /dev/null
@@ -1,84 +0,0 @@
-setRollout($formattedRollout)
- ->setPhaseId($phaseId)
- ->setJobId($jobId);
-
- // Call the API and handle any network failures.
- try {
- /** @var RetryJobResponse $response */
- $response = $cloudDeployClient->retryJob($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedRollout = CloudDeployClient::rolloutName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]',
- '[RELEASE]',
- '[ROLLOUT]'
- );
- $phaseId = '[PHASE_ID]';
- $jobId = '[JOB_ID]';
-
- retry_job_sample($formattedRollout, $phaseId, $jobId);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_RetryJob_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/rollback_target.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/rollback_target.php
deleted file mode 100644
index 819474ec1f45..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/rollback_target.php
+++ /dev/null
@@ -1,83 +0,0 @@
-setName($formattedName)
- ->setTargetId($targetId)
- ->setRolloutId($rolloutId);
-
- // Call the API and handle any network failures.
- try {
- /** @var RollbackTargetResponse $response */
- $response = $cloudDeployClient->rollbackTarget($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudDeployClient::deliveryPipelineName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]'
- );
- $targetId = '[TARGET_ID]';
- $rolloutId = '[ROLLOUT_ID]';
-
- rollback_target_sample($formattedName, $targetId, $rolloutId);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_RollbackTarget_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/set_iam_policy.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/set_iam_policy.php
deleted file mode 100644
index 1ba2a095ce60..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/set_iam_policy.php
+++ /dev/null
@@ -1,77 +0,0 @@
-setResource($resource)
- ->setPolicy($policy);
-
- // Call the API and handle any network failures.
- try {
- /** @var Policy $response */
- $response = $cloudDeployClient->setIamPolicy($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $resource = '[RESOURCE]';
-
- set_iam_policy_sample($resource);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_SetIamPolicy_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/terminate_job_run.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/terminate_job_run.php
deleted file mode 100644
index 2c0906752d36..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/terminate_job_run.php
+++ /dev/null
@@ -1,79 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var TerminateJobRunResponse $response */
- $response = $cloudDeployClient->terminateJobRun($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudDeployClient::jobRunName(
- '[PROJECT]',
- '[LOCATION]',
- '[DELIVERY_PIPELINE]',
- '[RELEASE]',
- '[ROLLOUT]',
- '[JOB_RUN]'
- );
-
- terminate_job_run_sample($formattedName);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_TerminateJobRun_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/test_iam_permissions.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/test_iam_permissions.php
deleted file mode 100644
index 20741898d747..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/test_iam_permissions.php
+++ /dev/null
@@ -1,84 +0,0 @@
-setResource($resource)
- ->setPermissions($permissions);
-
- // Call the API and handle any network failures.
- try {
- /** @var TestIamPermissionsResponse $response */
- $response = $cloudDeployClient->testIamPermissions($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $resource = '[RESOURCE]';
- $permissionsElement = '[PERMISSIONS]';
-
- test_iam_permissions_sample($resource, $permissionsElement);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_TestIamPermissions_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_automation.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_automation.php
deleted file mode 100644
index 3072581159da..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_automation.php
+++ /dev/null
@@ -1,94 +0,0 @@
-setServiceAccount($automationServiceAccount)
- ->setSelector($automationSelector)
- ->setRules($automationRules);
- $request = (new UpdateAutomationRequest())
- ->setUpdateMask($updateMask)
- ->setAutomation($automation);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudDeployClient->updateAutomation($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Automation $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $automationServiceAccount = '[SERVICE_ACCOUNT]';
-
- update_automation_sample($automationServiceAccount);
-}
-// [END clouddeploy_v1_generated_CloudDeploy_UpdateAutomation_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_custom_target_type.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_custom_target_type.php
deleted file mode 100644
index fd0272b9ccae..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_custom_target_type.php
+++ /dev/null
@@ -1,74 +0,0 @@
-setUpdateMask($updateMask)
- ->setCustomTargetType($customTargetType);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudDeployClient->updateCustomTargetType($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var CustomTargetType $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END clouddeploy_v1_generated_CloudDeploy_UpdateCustomTargetType_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_delivery_pipeline.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_delivery_pipeline.php
deleted file mode 100644
index 456f5d8f996c..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_delivery_pipeline.php
+++ /dev/null
@@ -1,74 +0,0 @@
-setUpdateMask($updateMask)
- ->setDeliveryPipeline($deliveryPipeline);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudDeployClient->updateDeliveryPipeline($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var DeliveryPipeline $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END clouddeploy_v1_generated_CloudDeploy_UpdateDeliveryPipeline_sync]
diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_target.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_target.php
deleted file mode 100644
index fd188ed74fe0..000000000000
--- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_target.php
+++ /dev/null
@@ -1,74 +0,0 @@
-setUpdateMask($updateMask)
- ->setTarget($target);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudDeployClient->updateTarget($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Target $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END clouddeploy_v1_generated_CloudDeploy_UpdateTarget_sync]
diff --git a/owl-bot-staging/Deploy/v1/src/V1/Client/CloudDeployClient.php b/owl-bot-staging/Deploy/v1/src/V1/Client/CloudDeployClient.php
deleted file mode 100644
index 80b58f2a75c8..000000000000
--- a/owl-bot-staging/Deploy/v1/src/V1/Client/CloudDeployClient.php
+++ /dev/null
@@ -1,1876 +0,0 @@
- self::SERVICE_NAME,
- 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT,
- 'clientConfig' => __DIR__ . '/../resources/cloud_deploy_client_config.json',
- 'descriptorsConfigPath' => __DIR__ . '/../resources/cloud_deploy_descriptor_config.php',
- 'gcpApiConfigPath' => __DIR__ . '/../resources/cloud_deploy_grpc_config.json',
- 'credentialsConfig' => [
- 'defaultScopes' => self::$serviceScopes,
- ],
- 'transportConfig' => [
- 'rest' => [
- 'restClientConfigPath' => __DIR__ . '/../resources/cloud_deploy_rest_client_config.php',
- ],
- ],
- ];
- }
-
- /**
- * Return an OperationsClient object with the same endpoint as $this.
- *
- * @return OperationsClient
- */
- public function getOperationsClient()
- {
- return $this->operationsClient;
- }
-
- /**
- * Resume an existing long running operation that was previously started by a long
- * running API method. If $methodName is not provided, or does not match a long
- * running API method, then the operation can still be resumed, but the
- * OperationResponse object will not deserialize the final response.
- *
- * @param string $operationName The name of the long running operation
- * @param string $methodName The name of the method used to start the operation
- *
- * @return OperationResponse
- */
- public function resumeOperation($operationName, $methodName = null)
- {
- $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : [];
- $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options);
- $operation->reload();
- return $operation;
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a automation
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $deliveryPipeline
- * @param string $automation
- *
- * @return string The formatted automation resource.
- */
- public static function automationName(string $project, string $location, string $deliveryPipeline, string $automation): string
- {
- return self::getPathTemplate('automation')->render([
- 'project' => $project,
- 'location' => $location,
- 'delivery_pipeline' => $deliveryPipeline,
- 'automation' => $automation,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a
- * automation_run resource.
- *
- * @param string $project
- * @param string $location
- * @param string $deliveryPipeline
- * @param string $automationRun
- *
- * @return string The formatted automation_run resource.
- */
- public static function automationRunName(string $project, string $location, string $deliveryPipeline, string $automationRun): string
- {
- return self::getPathTemplate('automationRun')->render([
- 'project' => $project,
- 'location' => $location,
- 'delivery_pipeline' => $deliveryPipeline,
- 'automation_run' => $automationRun,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a build
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $build
- *
- * @return string The formatted build resource.
- */
- public static function buildName(string $project, string $location, string $build): string
- {
- return self::getPathTemplate('build')->render([
- 'project' => $project,
- 'location' => $location,
- 'build' => $build,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a cluster
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $cluster
- *
- * @return string The formatted cluster resource.
- */
- public static function clusterName(string $project, string $location, string $cluster): string
- {
- return self::getPathTemplate('cluster')->render([
- 'project' => $project,
- 'location' => $location,
- 'cluster' => $cluster,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a config
- * resource.
- *
- * @param string $project
- * @param string $location
- *
- * @return string The formatted config resource.
- */
- public static function configName(string $project, string $location): string
- {
- return self::getPathTemplate('config')->render([
- 'project' => $project,
- 'location' => $location,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a
- * custom_target_type resource.
- *
- * @param string $project
- * @param string $location
- * @param string $customTargetType
- *
- * @return string The formatted custom_target_type resource.
- */
- public static function customTargetTypeName(string $project, string $location, string $customTargetType): string
- {
- return self::getPathTemplate('customTargetType')->render([
- 'project' => $project,
- 'location' => $location,
- 'custom_target_type' => $customTargetType,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a
- * delivery_pipeline resource.
- *
- * @param string $project
- * @param string $location
- * @param string $deliveryPipeline
- *
- * @return string The formatted delivery_pipeline resource.
- */
- public static function deliveryPipelineName(string $project, string $location, string $deliveryPipeline): string
- {
- return self::getPathTemplate('deliveryPipeline')->render([
- 'project' => $project,
- 'location' => $location,
- 'delivery_pipeline' => $deliveryPipeline,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a job
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $job
- *
- * @return string The formatted job resource.
- */
- public static function jobName(string $project, string $location, string $job): string
- {
- return self::getPathTemplate('job')->render([
- 'project' => $project,
- 'location' => $location,
- 'job' => $job,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a job_run
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $deliveryPipeline
- * @param string $release
- * @param string $rollout
- * @param string $jobRun
- *
- * @return string The formatted job_run resource.
- */
- public static function jobRunName(string $project, string $location, string $deliveryPipeline, string $release, string $rollout, string $jobRun): string
- {
- return self::getPathTemplate('jobRun')->render([
- 'project' => $project,
- 'location' => $location,
- 'delivery_pipeline' => $deliveryPipeline,
- 'release' => $release,
- 'rollout' => $rollout,
- 'job_run' => $jobRun,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a location
- * resource.
- *
- * @param string $project
- * @param string $location
- *
- * @return string The formatted location resource.
- */
- public static function locationName(string $project, string $location): string
- {
- return self::getPathTemplate('location')->render([
- 'project' => $project,
- 'location' => $location,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a membership
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $membership
- *
- * @return string The formatted membership resource.
- */
- public static function membershipName(string $project, string $location, string $membership): string
- {
- return self::getPathTemplate('membership')->render([
- 'project' => $project,
- 'location' => $location,
- 'membership' => $membership,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a release
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $deliveryPipeline
- * @param string $release
- *
- * @return string The formatted release resource.
- */
- public static function releaseName(string $project, string $location, string $deliveryPipeline, string $release): string
- {
- return self::getPathTemplate('release')->render([
- 'project' => $project,
- 'location' => $location,
- 'delivery_pipeline' => $deliveryPipeline,
- 'release' => $release,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a repository
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $connection
- * @param string $repository
- *
- * @return string The formatted repository resource.
- */
- public static function repositoryName(string $project, string $location, string $connection, string $repository): string
- {
- return self::getPathTemplate('repository')->render([
- 'project' => $project,
- 'location' => $location,
- 'connection' => $connection,
- 'repository' => $repository,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a rollout
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $deliveryPipeline
- * @param string $release
- * @param string $rollout
- *
- * @return string The formatted rollout resource.
- */
- public static function rolloutName(string $project, string $location, string $deliveryPipeline, string $release, string $rollout): string
- {
- return self::getPathTemplate('rollout')->render([
- 'project' => $project,
- 'location' => $location,
- 'delivery_pipeline' => $deliveryPipeline,
- 'release' => $release,
- 'rollout' => $rollout,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a service
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $service
- *
- * @return string The formatted service resource.
- */
- public static function serviceName(string $project, string $location, string $service): string
- {
- return self::getPathTemplate('service')->render([
- 'project' => $project,
- 'location' => $location,
- 'service' => $service,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a target
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $target
- *
- * @return string The formatted target resource.
- */
- public static function targetName(string $project, string $location, string $target): string
- {
- return self::getPathTemplate('target')->render([
- 'project' => $project,
- 'location' => $location,
- 'target' => $target,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a worker_pool
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $workerPool
- *
- * @return string The formatted worker_pool resource.
- */
- public static function workerPoolName(string $project, string $location, string $workerPool): string
- {
- return self::getPathTemplate('workerPool')->render([
- 'project' => $project,
- 'location' => $location,
- 'worker_pool' => $workerPool,
- ]);
- }
-
- /**
- * Parses a formatted name string and returns an associative array of the components in the name.
- * The following name formats are supported:
- * Template: Pattern
- * - automation: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}
- * - automationRun: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}
- * - build: projects/{project}/locations/{location}/builds/{build}
- * - cluster: projects/{project}/locations/{location}/clusters/{cluster}
- * - config: projects/{project}/locations/{location}/config
- * - customTargetType: projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}
- * - deliveryPipeline: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}
- * - job: projects/{project}/locations/{location}/jobs/{job}
- * - jobRun: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{job_run}
- * - location: projects/{project}/locations/{location}
- * - membership: projects/{project}/locations/{location}/memberships/{membership}
- * - release: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}
- * - repository: projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}
- * - rollout: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout}
- * - service: projects/{project}/locations/{location}/services/{service}
- * - target: projects/{project}/locations/{location}/targets/{target}
- * - workerPool: projects/{project}/locations/{location}/workerPools/{worker_pool}
- *
- * The optional $template argument can be supplied to specify a particular pattern,
- * and must match one of the templates listed above. If no $template argument is
- * provided, or if the $template argument does not match one of the templates
- * listed, then parseName will check each of the supported templates, and return
- * the first match.
- *
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
- *
- * @return array An associative array from name component IDs to component values.
- *
- * @throws ValidationException If $formattedName could not be matched.
- */
- public static function parseName(string $formattedName, string $template = null): array
- {
- return self::parseFormattedName($formattedName, $template);
- }
-
- /**
- * Constructor.
- *
- * @param array $options {
- * Optional. Options for configuring the service API wrapper.
- *
- * @type string $apiEndpoint
- * The address of the API remote host. May optionally include the port, formatted
- * as ":". Default 'clouddeploy.googleapis.com:443'.
- * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
- * The credentials to be used by the client to authorize API calls. This option
- * accepts either a path to a credentials file, or a decoded credentials file as a
- * PHP array.
- * *Advanced usage*: In addition, this option can also accept a pre-constructed
- * {@see \Google\Auth\FetchAuthTokenInterface} object or
- * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these
- * objects are provided, any settings in $credentialsConfig will be ignored.
- * @type array $credentialsConfig
- * Options used to configure credentials, including auth token caching, for the
- * client. For a full list of supporting configuration options, see
- * {@see \Google\ApiCore\CredentialsWrapper::build()} .
- * @type bool $disableRetries
- * Determines whether or not retries defined by the client configuration should be
- * disabled. Defaults to `false`.
- * @type string|array $clientConfig
- * Client method configuration, including retry settings. This option can be either
- * a path to a JSON file, or a PHP array containing the decoded JSON data. By
- * default this settings points to the default client config file, which is
- * provided in the resources folder.
- * @type string|TransportInterface $transport
- * The transport used for executing network requests. May be either the string
- * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system.
- * *Advanced usage*: Additionally, it is possible to pass in an already
- * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note
- * that when this object is provided, any settings in $transportConfig, and any
- * $apiEndpoint setting, will be ignored.
- * @type array $transportConfig
- * Configuration options that will be used to construct the transport. Options for
- * each supported transport type should be passed in a key for that transport. For
- * example:
- * $transportConfig = [
- * 'grpc' => [...],
- * 'rest' => [...],
- * ];
- * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and
- * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the
- * supported options.
- * @type callable $clientCertSource
- * A callable which returns the client cert as a string. This can be used to
- * provide a certificate and private key to the transport layer for mTLS.
- * }
- *
- * @throws ValidationException
- */
- public function __construct(array $options = [])
- {
- $clientOptions = $this->buildClientOptions($options);
- $this->setClientOptions($clientOptions);
- $this->operationsClient = $this->createOperationsClient($clientOptions);
- }
-
- /** Handles execution of the async variants for each documented method. */
- public function __call($method, $args)
- {
- if (substr($method, -5) !== 'Async') {
- trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR);
- }
-
- array_unshift($args, substr($method, 0, -5));
- return call_user_func_array([$this, 'startAsyncCall'], $args);
- }
-
- /**
- * Abandons a Release in the Delivery Pipeline.
- *
- * The async variant is {@see CloudDeployClient::abandonReleaseAsync()} .
- *
- * @example samples/V1/CloudDeployClient/abandon_release.php
- *
- * @param AbandonReleaseRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return AbandonReleaseResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function abandonRelease(AbandonReleaseRequest $request, array $callOptions = []): AbandonReleaseResponse
- {
- return $this->startApiCall('AbandonRelease', $request, $callOptions)->wait();
- }
-
- /**
- * Advances a Rollout in a given project and location.
- *
- * The async variant is {@see CloudDeployClient::advanceRolloutAsync()} .
- *
- * @example samples/V1/CloudDeployClient/advance_rollout.php
- *
- * @param AdvanceRolloutRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return AdvanceRolloutResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function advanceRollout(AdvanceRolloutRequest $request, array $callOptions = []): AdvanceRolloutResponse
- {
- return $this->startApiCall('AdvanceRollout', $request, $callOptions)->wait();
- }
-
- /**
- * Approves a Rollout.
- *
- * The async variant is {@see CloudDeployClient::approveRolloutAsync()} .
- *
- * @example samples/V1/CloudDeployClient/approve_rollout.php
- *
- * @param ApproveRolloutRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return ApproveRolloutResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function approveRollout(ApproveRolloutRequest $request, array $callOptions = []): ApproveRolloutResponse
- {
- return $this->startApiCall('ApproveRollout', $request, $callOptions)->wait();
- }
-
- /**
- * Cancels an AutomationRun. The `state` of the `AutomationRun` after
- * cancelling is `CANCELLED`. `CancelAutomationRun` can be called on
- * AutomationRun in the state `IN_PROGRESS` and `PENDING`; AutomationRun
- * in a different state returns an `FAILED_PRECONDITION` error.
- *
- * The async variant is {@see CloudDeployClient::cancelAutomationRunAsync()} .
- *
- * @example samples/V1/CloudDeployClient/cancel_automation_run.php
- *
- * @param CancelAutomationRunRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return CancelAutomationRunResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function cancelAutomationRun(CancelAutomationRunRequest $request, array $callOptions = []): CancelAutomationRunResponse
- {
- return $this->startApiCall('CancelAutomationRun', $request, $callOptions)->wait();
- }
-
- /**
- * Cancels a Rollout in a given project and location.
- *
- * The async variant is {@see CloudDeployClient::cancelRolloutAsync()} .
- *
- * @example samples/V1/CloudDeployClient/cancel_rollout.php
- *
- * @param CancelRolloutRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return CancelRolloutResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function cancelRollout(CancelRolloutRequest $request, array $callOptions = []): CancelRolloutResponse
- {
- return $this->startApiCall('CancelRollout', $request, $callOptions)->wait();
- }
-
- /**
- * Creates a new Automation in a given project and location.
- *
- * The async variant is {@see CloudDeployClient::createAutomationAsync()} .
- *
- * @example samples/V1/CloudDeployClient/create_automation.php
- *
- * @param CreateAutomationRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function createAutomation(CreateAutomationRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('CreateAutomation', $request, $callOptions)->wait();
- }
-
- /**
- * Creates a new CustomTargetType in a given project and location.
- *
- * The async variant is {@see CloudDeployClient::createCustomTargetTypeAsync()} .
- *
- * @example samples/V1/CloudDeployClient/create_custom_target_type.php
- *
- * @param CreateCustomTargetTypeRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function createCustomTargetType(CreateCustomTargetTypeRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('CreateCustomTargetType', $request, $callOptions)->wait();
- }
-
- /**
- * Creates a new DeliveryPipeline in a given project and location.
- *
- * The async variant is {@see CloudDeployClient::createDeliveryPipelineAsync()} .
- *
- * @example samples/V1/CloudDeployClient/create_delivery_pipeline.php
- *
- * @param CreateDeliveryPipelineRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function createDeliveryPipeline(CreateDeliveryPipelineRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('CreateDeliveryPipeline', $request, $callOptions)->wait();
- }
-
- /**
- * Creates a new Release in a given project and location.
- *
- * The async variant is {@see CloudDeployClient::createReleaseAsync()} .
- *
- * @example samples/V1/CloudDeployClient/create_release.php
- *
- * @param CreateReleaseRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function createRelease(CreateReleaseRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('CreateRelease', $request, $callOptions)->wait();
- }
-
- /**
- * Creates a new Rollout in a given project and location.
- *
- * The async variant is {@see CloudDeployClient::createRolloutAsync()} .
- *
- * @example samples/V1/CloudDeployClient/create_rollout.php
- *
- * @param CreateRolloutRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function createRollout(CreateRolloutRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('CreateRollout', $request, $callOptions)->wait();
- }
-
- /**
- * Creates a new Target in a given project and location.
- *
- * The async variant is {@see CloudDeployClient::createTargetAsync()} .
- *
- * @example samples/V1/CloudDeployClient/create_target.php
- *
- * @param CreateTargetRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function createTarget(CreateTargetRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('CreateTarget', $request, $callOptions)->wait();
- }
-
- /**
- * Deletes a single Automation resource.
- *
- * The async variant is {@see CloudDeployClient::deleteAutomationAsync()} .
- *
- * @example samples/V1/CloudDeployClient/delete_automation.php
- *
- * @param DeleteAutomationRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function deleteAutomation(DeleteAutomationRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('DeleteAutomation', $request, $callOptions)->wait();
- }
-
- /**
- * Deletes a single CustomTargetType.
- *
- * The async variant is {@see CloudDeployClient::deleteCustomTargetTypeAsync()} .
- *
- * @example samples/V1/CloudDeployClient/delete_custom_target_type.php
- *
- * @param DeleteCustomTargetTypeRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function deleteCustomTargetType(DeleteCustomTargetTypeRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('DeleteCustomTargetType', $request, $callOptions)->wait();
- }
-
- /**
- * Deletes a single DeliveryPipeline.
- *
- * The async variant is {@see CloudDeployClient::deleteDeliveryPipelineAsync()} .
- *
- * @example samples/V1/CloudDeployClient/delete_delivery_pipeline.php
- *
- * @param DeleteDeliveryPipelineRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function deleteDeliveryPipeline(DeleteDeliveryPipelineRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('DeleteDeliveryPipeline', $request, $callOptions)->wait();
- }
-
- /**
- * Deletes a single Target.
- *
- * The async variant is {@see CloudDeployClient::deleteTargetAsync()} .
- *
- * @example samples/V1/CloudDeployClient/delete_target.php
- *
- * @param DeleteTargetRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function deleteTarget(DeleteTargetRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('DeleteTarget', $request, $callOptions)->wait();
- }
-
- /**
- * Gets details of a single Automation.
- *
- * The async variant is {@see CloudDeployClient::getAutomationAsync()} .
- *
- * @example samples/V1/CloudDeployClient/get_automation.php
- *
- * @param GetAutomationRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return Automation
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getAutomation(GetAutomationRequest $request, array $callOptions = []): Automation
- {
- return $this->startApiCall('GetAutomation', $request, $callOptions)->wait();
- }
-
- /**
- * Gets details of a single AutomationRun.
- *
- * The async variant is {@see CloudDeployClient::getAutomationRunAsync()} .
- *
- * @example samples/V1/CloudDeployClient/get_automation_run.php
- *
- * @param GetAutomationRunRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return AutomationRun
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getAutomationRun(GetAutomationRunRequest $request, array $callOptions = []): AutomationRun
- {
- return $this->startApiCall('GetAutomationRun', $request, $callOptions)->wait();
- }
-
- /**
- * Gets the configuration for a location.
- *
- * The async variant is {@see CloudDeployClient::getConfigAsync()} .
- *
- * @example samples/V1/CloudDeployClient/get_config.php
- *
- * @param GetConfigRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return Config
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getConfig(GetConfigRequest $request, array $callOptions = []): Config
- {
- return $this->startApiCall('GetConfig', $request, $callOptions)->wait();
- }
-
- /**
- * Gets details of a single CustomTargetType.
- *
- * The async variant is {@see CloudDeployClient::getCustomTargetTypeAsync()} .
- *
- * @example samples/V1/CloudDeployClient/get_custom_target_type.php
- *
- * @param GetCustomTargetTypeRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return CustomTargetType
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getCustomTargetType(GetCustomTargetTypeRequest $request, array $callOptions = []): CustomTargetType
- {
- return $this->startApiCall('GetCustomTargetType', $request, $callOptions)->wait();
- }
-
- /**
- * Gets details of a single DeliveryPipeline.
- *
- * The async variant is {@see CloudDeployClient::getDeliveryPipelineAsync()} .
- *
- * @example samples/V1/CloudDeployClient/get_delivery_pipeline.php
- *
- * @param GetDeliveryPipelineRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return DeliveryPipeline
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getDeliveryPipeline(GetDeliveryPipelineRequest $request, array $callOptions = []): DeliveryPipeline
- {
- return $this->startApiCall('GetDeliveryPipeline', $request, $callOptions)->wait();
- }
-
- /**
- * Gets details of a single JobRun.
- *
- * The async variant is {@see CloudDeployClient::getJobRunAsync()} .
- *
- * @example samples/V1/CloudDeployClient/get_job_run.php
- *
- * @param GetJobRunRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return JobRun
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getJobRun(GetJobRunRequest $request, array $callOptions = []): JobRun
- {
- return $this->startApiCall('GetJobRun', $request, $callOptions)->wait();
- }
-
- /**
- * Gets details of a single Release.
- *
- * The async variant is {@see CloudDeployClient::getReleaseAsync()} .
- *
- * @example samples/V1/CloudDeployClient/get_release.php
- *
- * @param GetReleaseRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return Release
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getRelease(GetReleaseRequest $request, array $callOptions = []): Release
- {
- return $this->startApiCall('GetRelease', $request, $callOptions)->wait();
- }
-
- /**
- * Gets details of a single Rollout.
- *
- * The async variant is {@see CloudDeployClient::getRolloutAsync()} .
- *
- * @example samples/V1/CloudDeployClient/get_rollout.php
- *
- * @param GetRolloutRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return Rollout
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getRollout(GetRolloutRequest $request, array $callOptions = []): Rollout
- {
- return $this->startApiCall('GetRollout', $request, $callOptions)->wait();
- }
-
- /**
- * Gets details of a single Target.
- *
- * The async variant is {@see CloudDeployClient::getTargetAsync()} .
- *
- * @example samples/V1/CloudDeployClient/get_target.php
- *
- * @param GetTargetRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return Target
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getTarget(GetTargetRequest $request, array $callOptions = []): Target
- {
- return $this->startApiCall('GetTarget', $request, $callOptions)->wait();
- }
-
- /**
- * Ignores the specified Job in a Rollout.
- *
- * The async variant is {@see CloudDeployClient::ignoreJobAsync()} .
- *
- * @example samples/V1/CloudDeployClient/ignore_job.php
- *
- * @param IgnoreJobRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return IgnoreJobResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function ignoreJob(IgnoreJobRequest $request, array $callOptions = []): IgnoreJobResponse
- {
- return $this->startApiCall('IgnoreJob', $request, $callOptions)->wait();
- }
-
- /**
- * Lists AutomationRuns in a given project and location.
- *
- * The async variant is {@see CloudDeployClient::listAutomationRunsAsync()} .
- *
- * @example samples/V1/CloudDeployClient/list_automation_runs.php
- *
- * @param ListAutomationRunsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listAutomationRuns(ListAutomationRunsRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListAutomationRuns', $request, $callOptions);
- }
-
- /**
- * Lists Automations in a given project and location.
- *
- * The async variant is {@see CloudDeployClient::listAutomationsAsync()} .
- *
- * @example samples/V1/CloudDeployClient/list_automations.php
- *
- * @param ListAutomationsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listAutomations(ListAutomationsRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListAutomations', $request, $callOptions);
- }
-
- /**
- * Lists CustomTargetTypes in a given project and location.
- *
- * The async variant is {@see CloudDeployClient::listCustomTargetTypesAsync()} .
- *
- * @example samples/V1/CloudDeployClient/list_custom_target_types.php
- *
- * @param ListCustomTargetTypesRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listCustomTargetTypes(ListCustomTargetTypesRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListCustomTargetTypes', $request, $callOptions);
- }
-
- /**
- * Lists DeliveryPipelines in a given project and location.
- *
- * The async variant is {@see CloudDeployClient::listDeliveryPipelinesAsync()} .
- *
- * @example samples/V1/CloudDeployClient/list_delivery_pipelines.php
- *
- * @param ListDeliveryPipelinesRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listDeliveryPipelines(ListDeliveryPipelinesRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListDeliveryPipelines', $request, $callOptions);
- }
-
- /**
- * Lists JobRuns in a given project and location.
- *
- * The async variant is {@see CloudDeployClient::listJobRunsAsync()} .
- *
- * @example samples/V1/CloudDeployClient/list_job_runs.php
- *
- * @param ListJobRunsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listJobRuns(ListJobRunsRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListJobRuns', $request, $callOptions);
- }
-
- /**
- * Lists Releases in a given project and location.
- *
- * The async variant is {@see CloudDeployClient::listReleasesAsync()} .
- *
- * @example samples/V1/CloudDeployClient/list_releases.php
- *
- * @param ListReleasesRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listReleases(ListReleasesRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListReleases', $request, $callOptions);
- }
-
- /**
- * Lists Rollouts in a given project and location.
- *
- * The async variant is {@see CloudDeployClient::listRolloutsAsync()} .
- *
- * @example samples/V1/CloudDeployClient/list_rollouts.php
- *
- * @param ListRolloutsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listRollouts(ListRolloutsRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListRollouts', $request, $callOptions);
- }
-
- /**
- * Lists Targets in a given project and location.
- *
- * The async variant is {@see CloudDeployClient::listTargetsAsync()} .
- *
- * @example samples/V1/CloudDeployClient/list_targets.php
- *
- * @param ListTargetsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listTargets(ListTargetsRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListTargets', $request, $callOptions);
- }
-
- /**
- * Retries the specified Job in a Rollout.
- *
- * The async variant is {@see CloudDeployClient::retryJobAsync()} .
- *
- * @example samples/V1/CloudDeployClient/retry_job.php
- *
- * @param RetryJobRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return RetryJobResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function retryJob(RetryJobRequest $request, array $callOptions = []): RetryJobResponse
- {
- return $this->startApiCall('RetryJob', $request, $callOptions)->wait();
- }
-
- /**
- * Creates a `Rollout` to roll back the specified target.
- *
- * The async variant is {@see CloudDeployClient::rollbackTargetAsync()} .
- *
- * @example samples/V1/CloudDeployClient/rollback_target.php
- *
- * @param RollbackTargetRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return RollbackTargetResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function rollbackTarget(RollbackTargetRequest $request, array $callOptions = []): RollbackTargetResponse
- {
- return $this->startApiCall('RollbackTarget', $request, $callOptions)->wait();
- }
-
- /**
- * Terminates a Job Run in a given project and location.
- *
- * The async variant is {@see CloudDeployClient::terminateJobRunAsync()} .
- *
- * @example samples/V1/CloudDeployClient/terminate_job_run.php
- *
- * @param TerminateJobRunRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return TerminateJobRunResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function terminateJobRun(TerminateJobRunRequest $request, array $callOptions = []): TerminateJobRunResponse
- {
- return $this->startApiCall('TerminateJobRun', $request, $callOptions)->wait();
- }
-
- /**
- * Updates the parameters of a single Automation resource.
- *
- * The async variant is {@see CloudDeployClient::updateAutomationAsync()} .
- *
- * @example samples/V1/CloudDeployClient/update_automation.php
- *
- * @param UpdateAutomationRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function updateAutomation(UpdateAutomationRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('UpdateAutomation', $request, $callOptions)->wait();
- }
-
- /**
- * Updates a single CustomTargetType.
- *
- * The async variant is {@see CloudDeployClient::updateCustomTargetTypeAsync()} .
- *
- * @example samples/V1/CloudDeployClient/update_custom_target_type.php
- *
- * @param UpdateCustomTargetTypeRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function updateCustomTargetType(UpdateCustomTargetTypeRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('UpdateCustomTargetType', $request, $callOptions)->wait();
- }
-
- /**
- * Updates the parameters of a single DeliveryPipeline.
- *
- * The async variant is {@see CloudDeployClient::updateDeliveryPipelineAsync()} .
- *
- * @example samples/V1/CloudDeployClient/update_delivery_pipeline.php
- *
- * @param UpdateDeliveryPipelineRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function updateDeliveryPipeline(UpdateDeliveryPipelineRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('UpdateDeliveryPipeline', $request, $callOptions)->wait();
- }
-
- /**
- * Updates the parameters of a single Target.
- *
- * The async variant is {@see CloudDeployClient::updateTargetAsync()} .
- *
- * @example samples/V1/CloudDeployClient/update_target.php
- *
- * @param UpdateTargetRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function updateTarget(UpdateTargetRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('UpdateTarget', $request, $callOptions)->wait();
- }
-
- /**
- * Gets information about a location.
- *
- * The async variant is {@see CloudDeployClient::getLocationAsync()} .
- *
- * @example samples/V1/CloudDeployClient/get_location.php
- *
- * @param GetLocationRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return Location
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getLocation(GetLocationRequest $request, array $callOptions = []): Location
- {
- return $this->startApiCall('GetLocation', $request, $callOptions)->wait();
- }
-
- /**
- * Lists information about the supported locations for this service.
- *
- * The async variant is {@see CloudDeployClient::listLocationsAsync()} .
- *
- * @example samples/V1/CloudDeployClient/list_locations.php
- *
- * @param ListLocationsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListLocations', $request, $callOptions);
- }
-
- /**
- * Gets the access control policy for a resource. Returns an empty policy
- if the resource exists and does not have a policy set.
- *
- * The async variant is {@see CloudDeployClient::getIamPolicyAsync()} .
- *
- * @example samples/V1/CloudDeployClient/get_iam_policy.php
- *
- * @param GetIamPolicyRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return Policy
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy
- {
- return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait();
- }
-
- /**
- * Sets the access control policy on the specified resource. Replaces
- any existing policy.
-
- Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`
- errors.
- *
- * The async variant is {@see CloudDeployClient::setIamPolicyAsync()} .
- *
- * @example samples/V1/CloudDeployClient/set_iam_policy.php
- *
- * @param SetIamPolicyRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return Policy
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy
- {
- return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait();
- }
-
- /**
- * Returns permissions that a caller has on the specified resource. If the
- resource does not exist, this will return an empty set of
- permissions, not a `NOT_FOUND` error.
-
- Note: This operation is designed to be used for building
- permission-aware UIs and command-line tools, not for authorization
- checking. This operation may "fail open" without warning.
- *
- * The async variant is {@see CloudDeployClient::testIamPermissionsAsync()} .
- *
- * @example samples/V1/CloudDeployClient/test_iam_permissions.php
- *
- * @param TestIamPermissionsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return TestIamPermissionsResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse
- {
- return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait();
- }
-}
diff --git a/owl-bot-staging/Deploy/v1/src/V1/CloudDeployClient.php b/owl-bot-staging/Deploy/v1/src/V1/CloudDeployClient.php
deleted file mode 100644
index 6414b378868e..000000000000
--- a/owl-bot-staging/Deploy/v1/src/V1/CloudDeployClient.php
+++ /dev/null
@@ -1,34 +0,0 @@
-releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]');
- * $response = $cloudDeployClient->abandonRelease($formattedName);
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * Many parameters require resource names to be formatted in a particular way. To
- * assist with these names, this class includes a format method for each type of
- * name, and additionally a parseName method to extract the individual identifiers
- * contained within formatted names that are returned by the API.
- *
- * @deprecated Please use the new service client {@see \Google\Cloud\Deploy\V1\Client\CloudDeployClient}.
- */
-class CloudDeployGapicClient
-{
- use GapicClientTrait;
-
- /** The name of the service. */
- const SERVICE_NAME = 'google.cloud.deploy.v1.CloudDeploy';
-
- /**
- * The default address of the service.
- *
- * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
- */
- const SERVICE_ADDRESS = 'clouddeploy.googleapis.com';
-
- /** The address template of the service. */
- private const SERVICE_ADDRESS_TEMPLATE = 'clouddeploy.UNIVERSE_DOMAIN';
-
- /** The default port of the service. */
- const DEFAULT_SERVICE_PORT = 443;
-
- /** The name of the code generator, to be included in the agent header. */
- const CODEGEN_NAME = 'gapic';
-
- /** The default scopes required by the service. */
- public static $serviceScopes = [
- 'https://www.googleapis.com/auth/cloud-platform',
- ];
-
- private static $automationNameTemplate;
-
- private static $automationRunNameTemplate;
-
- private static $buildNameTemplate;
-
- private static $clusterNameTemplate;
-
- private static $configNameTemplate;
-
- private static $customTargetTypeNameTemplate;
-
- private static $deliveryPipelineNameTemplate;
-
- private static $jobNameTemplate;
-
- private static $jobRunNameTemplate;
-
- private static $locationNameTemplate;
-
- private static $membershipNameTemplate;
-
- private static $releaseNameTemplate;
-
- private static $repositoryNameTemplate;
-
- private static $rolloutNameTemplate;
-
- private static $serviceNameTemplate;
-
- private static $targetNameTemplate;
-
- private static $workerPoolNameTemplate;
-
- private static $pathTemplateMap;
-
- private $operationsClient;
-
- private static function getClientDefaults()
- {
- return [
- 'serviceName' => self::SERVICE_NAME,
- 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT,
- 'clientConfig' => __DIR__ . '/../resources/cloud_deploy_client_config.json',
- 'descriptorsConfigPath' => __DIR__ . '/../resources/cloud_deploy_descriptor_config.php',
- 'gcpApiConfigPath' => __DIR__ . '/../resources/cloud_deploy_grpc_config.json',
- 'credentialsConfig' => [
- 'defaultScopes' => self::$serviceScopes,
- ],
- 'transportConfig' => [
- 'rest' => [
- 'restClientConfigPath' => __DIR__ . '/../resources/cloud_deploy_rest_client_config.php',
- ],
- ],
- ];
- }
-
- private static function getAutomationNameTemplate()
- {
- if (self::$automationNameTemplate == null) {
- self::$automationNameTemplate = new PathTemplate('projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}');
- }
-
- return self::$automationNameTemplate;
- }
-
- private static function getAutomationRunNameTemplate()
- {
- if (self::$automationRunNameTemplate == null) {
- self::$automationRunNameTemplate = new PathTemplate('projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}');
- }
-
- return self::$automationRunNameTemplate;
- }
-
- private static function getBuildNameTemplate()
- {
- if (self::$buildNameTemplate == null) {
- self::$buildNameTemplate = new PathTemplate('projects/{project}/locations/{location}/builds/{build}');
- }
-
- return self::$buildNameTemplate;
- }
-
- private static function getClusterNameTemplate()
- {
- if (self::$clusterNameTemplate == null) {
- self::$clusterNameTemplate = new PathTemplate('projects/{project}/locations/{location}/clusters/{cluster}');
- }
-
- return self::$clusterNameTemplate;
- }
-
- private static function getConfigNameTemplate()
- {
- if (self::$configNameTemplate == null) {
- self::$configNameTemplate = new PathTemplate('projects/{project}/locations/{location}/config');
- }
-
- return self::$configNameTemplate;
- }
-
- private static function getCustomTargetTypeNameTemplate()
- {
- if (self::$customTargetTypeNameTemplate == null) {
- self::$customTargetTypeNameTemplate = new PathTemplate('projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}');
- }
-
- return self::$customTargetTypeNameTemplate;
- }
-
- private static function getDeliveryPipelineNameTemplate()
- {
- if (self::$deliveryPipelineNameTemplate == null) {
- self::$deliveryPipelineNameTemplate = new PathTemplate('projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}');
- }
-
- return self::$deliveryPipelineNameTemplate;
- }
-
- private static function getJobNameTemplate()
- {
- if (self::$jobNameTemplate == null) {
- self::$jobNameTemplate = new PathTemplate('projects/{project}/locations/{location}/jobs/{job}');
- }
-
- return self::$jobNameTemplate;
- }
-
- private static function getJobRunNameTemplate()
- {
- if (self::$jobRunNameTemplate == null) {
- self::$jobRunNameTemplate = new PathTemplate('projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{job_run}');
- }
-
- return self::$jobRunNameTemplate;
- }
-
- private static function getLocationNameTemplate()
- {
- if (self::$locationNameTemplate == null) {
- self::$locationNameTemplate = new PathTemplate('projects/{project}/locations/{location}');
- }
-
- return self::$locationNameTemplate;
- }
-
- private static function getMembershipNameTemplate()
- {
- if (self::$membershipNameTemplate == null) {
- self::$membershipNameTemplate = new PathTemplate('projects/{project}/locations/{location}/memberships/{membership}');
- }
-
- return self::$membershipNameTemplate;
- }
-
- private static function getReleaseNameTemplate()
- {
- if (self::$releaseNameTemplate == null) {
- self::$releaseNameTemplate = new PathTemplate('projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}');
- }
-
- return self::$releaseNameTemplate;
- }
-
- private static function getRepositoryNameTemplate()
- {
- if (self::$repositoryNameTemplate == null) {
- self::$repositoryNameTemplate = new PathTemplate('projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}');
- }
-
- return self::$repositoryNameTemplate;
- }
-
- private static function getRolloutNameTemplate()
- {
- if (self::$rolloutNameTemplate == null) {
- self::$rolloutNameTemplate = new PathTemplate('projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout}');
- }
-
- return self::$rolloutNameTemplate;
- }
-
- private static function getServiceNameTemplate()
- {
- if (self::$serviceNameTemplate == null) {
- self::$serviceNameTemplate = new PathTemplate('projects/{project}/locations/{location}/services/{service}');
- }
-
- return self::$serviceNameTemplate;
- }
-
- private static function getTargetNameTemplate()
- {
- if (self::$targetNameTemplate == null) {
- self::$targetNameTemplate = new PathTemplate('projects/{project}/locations/{location}/targets/{target}');
- }
-
- return self::$targetNameTemplate;
- }
-
- private static function getWorkerPoolNameTemplate()
- {
- if (self::$workerPoolNameTemplate == null) {
- self::$workerPoolNameTemplate = new PathTemplate('projects/{project}/locations/{location}/workerPools/{worker_pool}');
- }
-
- return self::$workerPoolNameTemplate;
- }
-
- private static function getPathTemplateMap()
- {
- if (self::$pathTemplateMap == null) {
- self::$pathTemplateMap = [
- 'automation' => self::getAutomationNameTemplate(),
- 'automationRun' => self::getAutomationRunNameTemplate(),
- 'build' => self::getBuildNameTemplate(),
- 'cluster' => self::getClusterNameTemplate(),
- 'config' => self::getConfigNameTemplate(),
- 'customTargetType' => self::getCustomTargetTypeNameTemplate(),
- 'deliveryPipeline' => self::getDeliveryPipelineNameTemplate(),
- 'job' => self::getJobNameTemplate(),
- 'jobRun' => self::getJobRunNameTemplate(),
- 'location' => self::getLocationNameTemplate(),
- 'membership' => self::getMembershipNameTemplate(),
- 'release' => self::getReleaseNameTemplate(),
- 'repository' => self::getRepositoryNameTemplate(),
- 'rollout' => self::getRolloutNameTemplate(),
- 'service' => self::getServiceNameTemplate(),
- 'target' => self::getTargetNameTemplate(),
- 'workerPool' => self::getWorkerPoolNameTemplate(),
- ];
- }
-
- return self::$pathTemplateMap;
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a automation
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $deliveryPipeline
- * @param string $automation
- *
- * @return string The formatted automation resource.
- */
- public static function automationName($project, $location, $deliveryPipeline, $automation)
- {
- return self::getAutomationNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- 'delivery_pipeline' => $deliveryPipeline,
- 'automation' => $automation,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a
- * automation_run resource.
- *
- * @param string $project
- * @param string $location
- * @param string $deliveryPipeline
- * @param string $automationRun
- *
- * @return string The formatted automation_run resource.
- */
- public static function automationRunName($project, $location, $deliveryPipeline, $automationRun)
- {
- return self::getAutomationRunNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- 'delivery_pipeline' => $deliveryPipeline,
- 'automation_run' => $automationRun,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a build
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $build
- *
- * @return string The formatted build resource.
- */
- public static function buildName($project, $location, $build)
- {
- return self::getBuildNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- 'build' => $build,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a cluster
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $cluster
- *
- * @return string The formatted cluster resource.
- */
- public static function clusterName($project, $location, $cluster)
- {
- return self::getClusterNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- 'cluster' => $cluster,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a config
- * resource.
- *
- * @param string $project
- * @param string $location
- *
- * @return string The formatted config resource.
- */
- public static function configName($project, $location)
- {
- return self::getConfigNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a
- * custom_target_type resource.
- *
- * @param string $project
- * @param string $location
- * @param string $customTargetType
- *
- * @return string The formatted custom_target_type resource.
- */
- public static function customTargetTypeName($project, $location, $customTargetType)
- {
- return self::getCustomTargetTypeNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- 'custom_target_type' => $customTargetType,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a
- * delivery_pipeline resource.
- *
- * @param string $project
- * @param string $location
- * @param string $deliveryPipeline
- *
- * @return string The formatted delivery_pipeline resource.
- */
- public static function deliveryPipelineName($project, $location, $deliveryPipeline)
- {
- return self::getDeliveryPipelineNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- 'delivery_pipeline' => $deliveryPipeline,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a job
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $job
- *
- * @return string The formatted job resource.
- */
- public static function jobName($project, $location, $job)
- {
- return self::getJobNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- 'job' => $job,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a job_run
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $deliveryPipeline
- * @param string $release
- * @param string $rollout
- * @param string $jobRun
- *
- * @return string The formatted job_run resource.
- */
- public static function jobRunName($project, $location, $deliveryPipeline, $release, $rollout, $jobRun)
- {
- return self::getJobRunNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- 'delivery_pipeline' => $deliveryPipeline,
- 'release' => $release,
- 'rollout' => $rollout,
- 'job_run' => $jobRun,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a location
- * resource.
- *
- * @param string $project
- * @param string $location
- *
- * @return string The formatted location resource.
- */
- public static function locationName($project, $location)
- {
- return self::getLocationNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a membership
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $membership
- *
- * @return string The formatted membership resource.
- */
- public static function membershipName($project, $location, $membership)
- {
- return self::getMembershipNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- 'membership' => $membership,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a release
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $deliveryPipeline
- * @param string $release
- *
- * @return string The formatted release resource.
- */
- public static function releaseName($project, $location, $deliveryPipeline, $release)
- {
- return self::getReleaseNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- 'delivery_pipeline' => $deliveryPipeline,
- 'release' => $release,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a repository
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $connection
- * @param string $repository
- *
- * @return string The formatted repository resource.
- */
- public static function repositoryName($project, $location, $connection, $repository)
- {
- return self::getRepositoryNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- 'connection' => $connection,
- 'repository' => $repository,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a rollout
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $deliveryPipeline
- * @param string $release
- * @param string $rollout
- *
- * @return string The formatted rollout resource.
- */
- public static function rolloutName($project, $location, $deliveryPipeline, $release, $rollout)
- {
- return self::getRolloutNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- 'delivery_pipeline' => $deliveryPipeline,
- 'release' => $release,
- 'rollout' => $rollout,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a service
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $service
- *
- * @return string The formatted service resource.
- */
- public static function serviceName($project, $location, $service)
- {
- return self::getServiceNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- 'service' => $service,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a target
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $target
- *
- * @return string The formatted target resource.
- */
- public static function targetName($project, $location, $target)
- {
- return self::getTargetNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- 'target' => $target,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a worker_pool
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $workerPool
- *
- * @return string The formatted worker_pool resource.
- */
- public static function workerPoolName($project, $location, $workerPool)
- {
- return self::getWorkerPoolNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- 'worker_pool' => $workerPool,
- ]);
- }
-
- /**
- * Parses a formatted name string and returns an associative array of the components in the name.
- * The following name formats are supported:
- * Template: Pattern
- * - automation: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}
- * - automationRun: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}
- * - build: projects/{project}/locations/{location}/builds/{build}
- * - cluster: projects/{project}/locations/{location}/clusters/{cluster}
- * - config: projects/{project}/locations/{location}/config
- * - customTargetType: projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}
- * - deliveryPipeline: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}
- * - job: projects/{project}/locations/{location}/jobs/{job}
- * - jobRun: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{job_run}
- * - location: projects/{project}/locations/{location}
- * - membership: projects/{project}/locations/{location}/memberships/{membership}
- * - release: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}
- * - repository: projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}
- * - rollout: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout}
- * - service: projects/{project}/locations/{location}/services/{service}
- * - target: projects/{project}/locations/{location}/targets/{target}
- * - workerPool: projects/{project}/locations/{location}/workerPools/{worker_pool}
- *
- * The optional $template argument can be supplied to specify a particular pattern,
- * and must match one of the templates listed above. If no $template argument is
- * provided, or if the $template argument does not match one of the templates
- * listed, then parseName will check each of the supported templates, and return
- * the first match.
- *
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
- *
- * @return array An associative array from name component IDs to component values.
- *
- * @throws ValidationException If $formattedName could not be matched.
- */
- public static function parseName($formattedName, $template = null)
- {
- $templateMap = self::getPathTemplateMap();
- if ($template) {
- if (!isset($templateMap[$template])) {
- throw new ValidationException("Template name $template does not exist");
- }
-
- return $templateMap[$template]->match($formattedName);
- }
-
- foreach ($templateMap as $templateName => $pathTemplate) {
- try {
- return $pathTemplate->match($formattedName);
- } catch (ValidationException $ex) {
- // Swallow the exception to continue trying other path templates
- }
- }
-
- throw new ValidationException("Input did not match any known format. Input: $formattedName");
- }
-
- /**
- * Return an OperationsClient object with the same endpoint as $this.
- *
- * @return OperationsClient
- */
- public function getOperationsClient()
- {
- return $this->operationsClient;
- }
-
- /**
- * Resume an existing long running operation that was previously started by a long
- * running API method. If $methodName is not provided, or does not match a long
- * running API method, then the operation can still be resumed, but the
- * OperationResponse object will not deserialize the final response.
- *
- * @param string $operationName The name of the long running operation
- * @param string $methodName The name of the method used to start the operation
- *
- * @return OperationResponse
- */
- public function resumeOperation($operationName, $methodName = null)
- {
- $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : [];
- $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options);
- $operation->reload();
- return $operation;
- }
-
- /**
- * Constructor.
- *
- * @param array $options {
- * Optional. Options for configuring the service API wrapper.
- *
- * @type string $apiEndpoint
- * The address of the API remote host. May optionally include the port, formatted
- * as ":". Default 'clouddeploy.googleapis.com:443'.
- * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
- * The credentials to be used by the client to authorize API calls. This option
- * accepts either a path to a credentials file, or a decoded credentials file as a
- * PHP array.
- * *Advanced usage*: In addition, this option can also accept a pre-constructed
- * {@see \Google\Auth\FetchAuthTokenInterface} object or
- * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these
- * objects are provided, any settings in $credentialsConfig will be ignored.
- * @type array $credentialsConfig
- * Options used to configure credentials, including auth token caching, for the
- * client. For a full list of supporting configuration options, see
- * {@see \Google\ApiCore\CredentialsWrapper::build()} .
- * @type bool $disableRetries
- * Determines whether or not retries defined by the client configuration should be
- * disabled. Defaults to `false`.
- * @type string|array $clientConfig
- * Client method configuration, including retry settings. This option can be either
- * a path to a JSON file, or a PHP array containing the decoded JSON data. By
- * default this settings points to the default client config file, which is
- * provided in the resources folder.
- * @type string|TransportInterface $transport
- * The transport used for executing network requests. May be either the string
- * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system.
- * *Advanced usage*: Additionally, it is possible to pass in an already
- * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note
- * that when this object is provided, any settings in $transportConfig, and any
- * $apiEndpoint setting, will be ignored.
- * @type array $transportConfig
- * Configuration options that will be used to construct the transport. Options for
- * each supported transport type should be passed in a key for that transport. For
- * example:
- * $transportConfig = [
- * 'grpc' => [...],
- * 'rest' => [...],
- * ];
- * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and
- * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the
- * supported options.
- * @type callable $clientCertSource
- * A callable which returns the client cert as a string. This can be used to
- * provide a certificate and private key to the transport layer for mTLS.
- * }
- *
- * @throws ValidationException
- */
- public function __construct(array $options = [])
- {
- $clientOptions = $this->buildClientOptions($options);
- $this->setClientOptions($clientOptions);
- $this->operationsClient = $this->createOperationsClient($clientOptions);
- }
-
- /**
- * Abandons a Release in the Delivery Pipeline.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedName = $cloudDeployClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]');
- * $response = $cloudDeployClient->abandonRelease($formattedName);
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $name Required. Name of the Release. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Deploy\V1\AbandonReleaseResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function abandonRelease($name, array $optionalArgs = [])
- {
- $request = new AbandonReleaseRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('AbandonRelease', AbandonReleaseResponse::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Advances a Rollout in a given project and location.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedName = $cloudDeployClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- * $phaseId = 'phase_id';
- * $response = $cloudDeployClient->advanceRollout($formattedName, $phaseId);
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $name Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- * @param string $phaseId Required. The phase ID to advance the `Rollout` to.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Deploy\V1\AdvanceRolloutResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function advanceRollout($name, $phaseId, array $optionalArgs = [])
- {
- $request = new AdvanceRolloutRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $request->setPhaseId($phaseId);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('AdvanceRollout', AdvanceRolloutResponse::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Approves a Rollout.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedName = $cloudDeployClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- * $approved = false;
- * $response = $cloudDeployClient->approveRollout($formattedName, $approved);
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $name Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- * @param bool $approved Required. True = approve; false = reject
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Deploy\V1\ApproveRolloutResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function approveRollout($name, $approved, array $optionalArgs = [])
- {
- $request = new ApproveRolloutRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $request->setApproved($approved);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('ApproveRollout', ApproveRolloutResponse::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Cancels an AutomationRun. The `state` of the `AutomationRun` after
- * cancelling is `CANCELLED`. `CancelAutomationRun` can be called on
- * AutomationRun in the state `IN_PROGRESS` and `PENDING`; AutomationRun
- * in a different state returns an `FAILED_PRECONDITION` error.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedName = $cloudDeployClient->automationRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION_RUN]');
- * $response = $cloudDeployClient->cancelAutomationRun($formattedName);
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $name Required. Name of the `AutomationRun`. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Deploy\V1\CancelAutomationRunResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function cancelAutomationRun($name, array $optionalArgs = [])
- {
- $request = new CancelAutomationRunRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('CancelAutomationRun', CancelAutomationRunResponse::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Cancels a Rollout in a given project and location.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedName = $cloudDeployClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- * $response = $cloudDeployClient->cancelRollout($formattedName);
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $name Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Deploy\V1\CancelRolloutResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function cancelRollout($name, array $optionalArgs = [])
- {
- $request = new CancelRolloutRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('CancelRollout', CancelRolloutResponse::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Creates a new Automation in a given project and location.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedParent = $cloudDeployClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- * $automationId = 'automation_id';
- * $automation = new Automation();
- * $operationResponse = $cloudDeployClient->createAutomation($formattedParent, $automationId, $automation);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * $result = $operationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $cloudDeployClient->createAutomation($formattedParent, $automationId, $automation);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $cloudDeployClient->resumeOperation($operationName, 'createAutomation');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * $result = $newOperationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent collection in which the `Automation` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- * @param string $automationId Required. ID of the `Automation`.
- * @param Automation $automation Required. The `Automation` to create.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string $requestId
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- *
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- *
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $validateOnly
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\OperationResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function createAutomation($parent, $automationId, $automation, array $optionalArgs = [])
- {
- $request = new CreateAutomationRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $request->setAutomationId($automationId);
- $request->setAutomation($automation);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['requestId'])) {
- $request->setRequestId($optionalArgs['requestId']);
- }
-
- if (isset($optionalArgs['validateOnly'])) {
- $request->setValidateOnly($optionalArgs['validateOnly']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startOperationsCall('CreateAutomation', $optionalArgs, $request, $this->getOperationsClient())->wait();
- }
-
- /**
- * Creates a new CustomTargetType in a given project and location.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedParent = $cloudDeployClient->locationName('[PROJECT]', '[LOCATION]');
- * $customTargetTypeId = 'custom_target_type_id';
- * $customTargetType = new CustomTargetType();
- * $operationResponse = $cloudDeployClient->createCustomTargetType($formattedParent, $customTargetTypeId, $customTargetType);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * $result = $operationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $cloudDeployClient->createCustomTargetType($formattedParent, $customTargetTypeId, $customTargetType);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $cloudDeployClient->resumeOperation($operationName, 'createCustomTargetType');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * $result = $newOperationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent collection in which the `CustomTargetType` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}`.
- * @param string $customTargetTypeId Required. ID of the `CustomTargetType`.
- * @param CustomTargetType $customTargetType Required. The `CustomTargetType` to create.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string $requestId
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- *
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- *
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $validateOnly
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\OperationResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function createCustomTargetType($parent, $customTargetTypeId, $customTargetType, array $optionalArgs = [])
- {
- $request = new CreateCustomTargetTypeRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $request->setCustomTargetTypeId($customTargetTypeId);
- $request->setCustomTargetType($customTargetType);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['requestId'])) {
- $request->setRequestId($optionalArgs['requestId']);
- }
-
- if (isset($optionalArgs['validateOnly'])) {
- $request->setValidateOnly($optionalArgs['validateOnly']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startOperationsCall('CreateCustomTargetType', $optionalArgs, $request, $this->getOperationsClient())->wait();
- }
-
- /**
- * Creates a new DeliveryPipeline in a given project and location.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedParent = $cloudDeployClient->locationName('[PROJECT]', '[LOCATION]');
- * $deliveryPipelineId = 'delivery_pipeline_id';
- * $deliveryPipeline = new DeliveryPipeline();
- * $operationResponse = $cloudDeployClient->createDeliveryPipeline($formattedParent, $deliveryPipelineId, $deliveryPipeline);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * $result = $operationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $cloudDeployClient->createDeliveryPipeline($formattedParent, $deliveryPipelineId, $deliveryPipeline);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $cloudDeployClient->resumeOperation($operationName, 'createDeliveryPipeline');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * $result = $newOperationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent collection in which the `DeliveryPipeline` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}`.
- * @param string $deliveryPipelineId Required. ID of the `DeliveryPipeline`.
- * @param DeliveryPipeline $deliveryPipeline Required. The `DeliveryPipeline` to create.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string $requestId
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- *
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- *
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $validateOnly
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\OperationResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function createDeliveryPipeline($parent, $deliveryPipelineId, $deliveryPipeline, array $optionalArgs = [])
- {
- $request = new CreateDeliveryPipelineRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $request->setDeliveryPipelineId($deliveryPipelineId);
- $request->setDeliveryPipeline($deliveryPipeline);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['requestId'])) {
- $request->setRequestId($optionalArgs['requestId']);
- }
-
- if (isset($optionalArgs['validateOnly'])) {
- $request->setValidateOnly($optionalArgs['validateOnly']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startOperationsCall('CreateDeliveryPipeline', $optionalArgs, $request, $this->getOperationsClient())->wait();
- }
-
- /**
- * Creates a new Release in a given project and location.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedParent = $cloudDeployClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- * $releaseId = 'release_id';
- * $release = new Release();
- * $operationResponse = $cloudDeployClient->createRelease($formattedParent, $releaseId, $release);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * $result = $operationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $cloudDeployClient->createRelease($formattedParent, $releaseId, $release);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $cloudDeployClient->resumeOperation($operationName, 'createRelease');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * $result = $newOperationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent collection in which the `Release` should be created.
- * Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- * @param string $releaseId Required. ID of the `Release`.
- * @param Release $release Required. The `Release` to create.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string $requestId
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- *
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- *
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $validateOnly
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\OperationResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function createRelease($parent, $releaseId, $release, array $optionalArgs = [])
- {
- $request = new CreateReleaseRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $request->setReleaseId($releaseId);
- $request->setRelease($release);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['requestId'])) {
- $request->setRequestId($optionalArgs['requestId']);
- }
-
- if (isset($optionalArgs['validateOnly'])) {
- $request->setValidateOnly($optionalArgs['validateOnly']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startOperationsCall('CreateRelease', $optionalArgs, $request, $this->getOperationsClient())->wait();
- }
-
- /**
- * Creates a new Rollout in a given project and location.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedParent = $cloudDeployClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]');
- * $rolloutId = 'rollout_id';
- * $rollout = new Rollout();
- * $operationResponse = $cloudDeployClient->createRollout($formattedParent, $rolloutId, $rollout);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * $result = $operationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $cloudDeployClient->createRollout($formattedParent, $rolloutId, $rollout);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $cloudDeployClient->resumeOperation($operationName, 'createRollout');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * $result = $newOperationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent collection in which the `Rollout` should be created.
- * Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.
- * @param string $rolloutId Required. ID of the `Rollout`.
- * @param Rollout $rollout Required. The `Rollout` to create.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string $requestId
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- *
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- *
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $validateOnly
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- * @type string $startingPhaseId
- * Optional. The starting phase ID for the `Rollout`. If empty the `Rollout`
- * will start at the first phase.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\OperationResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function createRollout($parent, $rolloutId, $rollout, array $optionalArgs = [])
- {
- $request = new CreateRolloutRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $request->setRolloutId($rolloutId);
- $request->setRollout($rollout);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['requestId'])) {
- $request->setRequestId($optionalArgs['requestId']);
- }
-
- if (isset($optionalArgs['validateOnly'])) {
- $request->setValidateOnly($optionalArgs['validateOnly']);
- }
-
- if (isset($optionalArgs['startingPhaseId'])) {
- $request->setStartingPhaseId($optionalArgs['startingPhaseId']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startOperationsCall('CreateRollout', $optionalArgs, $request, $this->getOperationsClient())->wait();
- }
-
- /**
- * Creates a new Target in a given project and location.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedParent = $cloudDeployClient->locationName('[PROJECT]', '[LOCATION]');
- * $targetId = 'target_id';
- * $target = new Target();
- * $operationResponse = $cloudDeployClient->createTarget($formattedParent, $targetId, $target);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * $result = $operationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $cloudDeployClient->createTarget($formattedParent, $targetId, $target);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $cloudDeployClient->resumeOperation($operationName, 'createTarget');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * $result = $newOperationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent collection in which the `Target` should be created.
- * Format should be
- * `projects/{project_id}/locations/{location_name}`.
- * @param string $targetId Required. ID of the `Target`.
- * @param Target $target Required. The `Target` to create.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string $requestId
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- *
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- *
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $validateOnly
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\OperationResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function createTarget($parent, $targetId, $target, array $optionalArgs = [])
- {
- $request = new CreateTargetRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $request->setTargetId($targetId);
- $request->setTarget($target);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['requestId'])) {
- $request->setRequestId($optionalArgs['requestId']);
- }
-
- if (isset($optionalArgs['validateOnly'])) {
- $request->setValidateOnly($optionalArgs['validateOnly']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startOperationsCall('CreateTarget', $optionalArgs, $request, $this->getOperationsClient())->wait();
- }
-
- /**
- * Deletes a single Automation resource.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedName = $cloudDeployClient->automationName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION]');
- * $operationResponse = $cloudDeployClient->deleteAutomation($formattedName);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * // operation succeeded and returns no value
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $cloudDeployClient->deleteAutomation($formattedName);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $cloudDeployClient->resumeOperation($operationName, 'deleteAutomation');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * // operation succeeded and returns no value
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $name Required. The name of the `Automation` to delete. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string $requestId
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- *
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- *
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $allowMissing
- * Optional. If set to true, then deleting an already deleted or non-existing
- * `Automation` will succeed.
- * @type bool $validateOnly
- * Optional. If set, validate the request and verify whether the resource
- * exists, but do not actually post it.
- * @type string $etag
- * Optional. The weak etag of the request.
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\OperationResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function deleteAutomation($name, array $optionalArgs = [])
- {
- $request = new DeleteAutomationRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- if (isset($optionalArgs['requestId'])) {
- $request->setRequestId($optionalArgs['requestId']);
- }
-
- if (isset($optionalArgs['allowMissing'])) {
- $request->setAllowMissing($optionalArgs['allowMissing']);
- }
-
- if (isset($optionalArgs['validateOnly'])) {
- $request->setValidateOnly($optionalArgs['validateOnly']);
- }
-
- if (isset($optionalArgs['etag'])) {
- $request->setEtag($optionalArgs['etag']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startOperationsCall('DeleteAutomation', $optionalArgs, $request, $this->getOperationsClient())->wait();
- }
-
- /**
- * Deletes a single CustomTargetType.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedName = $cloudDeployClient->customTargetTypeName('[PROJECT]', '[LOCATION]', '[CUSTOM_TARGET_TYPE]');
- * $operationResponse = $cloudDeployClient->deleteCustomTargetType($formattedName);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * // operation succeeded and returns no value
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $cloudDeployClient->deleteCustomTargetType($formattedName);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $cloudDeployClient->resumeOperation($operationName, 'deleteCustomTargetType');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * // operation succeeded and returns no value
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $name Required. The name of the `CustomTargetType` to delete. Format must be
- * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string $requestId
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- *
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- *
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $allowMissing
- * Optional. If set to true, then deleting an already deleted or non-existing
- * `CustomTargetType` will succeed.
- * @type bool $validateOnly
- * Optional. If set to true, the request is validated but no actual change is
- * made.
- * @type string $etag
- * Optional. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\OperationResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function deleteCustomTargetType($name, array $optionalArgs = [])
- {
- $request = new DeleteCustomTargetTypeRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- if (isset($optionalArgs['requestId'])) {
- $request->setRequestId($optionalArgs['requestId']);
- }
-
- if (isset($optionalArgs['allowMissing'])) {
- $request->setAllowMissing($optionalArgs['allowMissing']);
- }
-
- if (isset($optionalArgs['validateOnly'])) {
- $request->setValidateOnly($optionalArgs['validateOnly']);
- }
-
- if (isset($optionalArgs['etag'])) {
- $request->setEtag($optionalArgs['etag']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startOperationsCall('DeleteCustomTargetType', $optionalArgs, $request, $this->getOperationsClient())->wait();
- }
-
- /**
- * Deletes a single DeliveryPipeline.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedName = $cloudDeployClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- * $operationResponse = $cloudDeployClient->deleteDeliveryPipeline($formattedName);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * // operation succeeded and returns no value
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $cloudDeployClient->deleteDeliveryPipeline($formattedName);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $cloudDeployClient->resumeOperation($operationName, 'deleteDeliveryPipeline');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * // operation succeeded and returns no value
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $name Required. The name of the `DeliveryPipeline` to delete. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string $requestId
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- *
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- *
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $allowMissing
- * Optional. If set to true, then deleting an already deleted or non-existing
- * `DeliveryPipeline` will succeed.
- * @type bool $validateOnly
- * Optional. If set, validate the request and preview the review, but do not
- * actually post it.
- * @type bool $force
- * Optional. If set to true, all child resources under this pipeline will also
- * be deleted. Otherwise, the request will only work if the pipeline has no
- * child resources.
- * @type string $etag
- * Optional. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\OperationResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function deleteDeliveryPipeline($name, array $optionalArgs = [])
- {
- $request = new DeleteDeliveryPipelineRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- if (isset($optionalArgs['requestId'])) {
- $request->setRequestId($optionalArgs['requestId']);
- }
-
- if (isset($optionalArgs['allowMissing'])) {
- $request->setAllowMissing($optionalArgs['allowMissing']);
- }
-
- if (isset($optionalArgs['validateOnly'])) {
- $request->setValidateOnly($optionalArgs['validateOnly']);
- }
-
- if (isset($optionalArgs['force'])) {
- $request->setForce($optionalArgs['force']);
- }
-
- if (isset($optionalArgs['etag'])) {
- $request->setEtag($optionalArgs['etag']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startOperationsCall('DeleteDeliveryPipeline', $optionalArgs, $request, $this->getOperationsClient())->wait();
- }
-
- /**
- * Deletes a single Target.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedName = $cloudDeployClient->targetName('[PROJECT]', '[LOCATION]', '[TARGET]');
- * $operationResponse = $cloudDeployClient->deleteTarget($formattedName);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * // operation succeeded and returns no value
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $cloudDeployClient->deleteTarget($formattedName);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $cloudDeployClient->resumeOperation($operationName, 'deleteTarget');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * // operation succeeded and returns no value
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $name Required. The name of the `Target` to delete. Format should be
- * `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string $requestId
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- *
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- *
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $allowMissing
- * Optional. If set to true, then deleting an already deleted or non-existing
- * `Target` will succeed.
- * @type bool $validateOnly
- * Optional. If set, validate the request and preview the review, but do not
- * actually post it.
- * @type string $etag
- * Optional. This checksum is computed by the server based on the value of
- * other fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\OperationResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function deleteTarget($name, array $optionalArgs = [])
- {
- $request = new DeleteTargetRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- if (isset($optionalArgs['requestId'])) {
- $request->setRequestId($optionalArgs['requestId']);
- }
-
- if (isset($optionalArgs['allowMissing'])) {
- $request->setAllowMissing($optionalArgs['allowMissing']);
- }
-
- if (isset($optionalArgs['validateOnly'])) {
- $request->setValidateOnly($optionalArgs['validateOnly']);
- }
-
- if (isset($optionalArgs['etag'])) {
- $request->setEtag($optionalArgs['etag']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startOperationsCall('DeleteTarget', $optionalArgs, $request, $this->getOperationsClient())->wait();
- }
-
- /**
- * Gets details of a single Automation.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedName = $cloudDeployClient->automationName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION]');
- * $response = $cloudDeployClient->getAutomation($formattedName);
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $name Required. Name of the `Automation`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Deploy\V1\Automation
- *
- * @throws ApiException if the remote call fails
- */
- public function getAutomation($name, array $optionalArgs = [])
- {
- $request = new GetAutomationRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GetAutomation', Automation::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Gets details of a single AutomationRun.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedName = $cloudDeployClient->automationRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION_RUN]');
- * $response = $cloudDeployClient->getAutomationRun($formattedName);
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $name Required. Name of the `AutomationRun`. Format must be
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Deploy\V1\AutomationRun
- *
- * @throws ApiException if the remote call fails
- */
- public function getAutomationRun($name, array $optionalArgs = [])
- {
- $request = new GetAutomationRunRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GetAutomationRun', AutomationRun::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Gets the configuration for a location.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedName = $cloudDeployClient->configName('[PROJECT]', '[LOCATION]');
- * $response = $cloudDeployClient->getConfig($formattedName);
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $name Required. Name of requested configuration.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Deploy\V1\Config
- *
- * @throws ApiException if the remote call fails
- */
- public function getConfig($name, array $optionalArgs = [])
- {
- $request = new GetConfigRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GetConfig', Config::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Gets details of a single CustomTargetType.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedName = $cloudDeployClient->customTargetTypeName('[PROJECT]', '[LOCATION]', '[CUSTOM_TARGET_TYPE]');
- * $response = $cloudDeployClient->getCustomTargetType($formattedName);
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $name Required. Name of the `CustomTargetType`. Format must be
- * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Deploy\V1\CustomTargetType
- *
- * @throws ApiException if the remote call fails
- */
- public function getCustomTargetType($name, array $optionalArgs = [])
- {
- $request = new GetCustomTargetTypeRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GetCustomTargetType', CustomTargetType::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Gets details of a single DeliveryPipeline.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedName = $cloudDeployClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- * $response = $cloudDeployClient->getDeliveryPipeline($formattedName);
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $name Required. Name of the `DeliveryPipeline`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Deploy\V1\DeliveryPipeline
- *
- * @throws ApiException if the remote call fails
- */
- public function getDeliveryPipeline($name, array $optionalArgs = [])
- {
- $request = new GetDeliveryPipelineRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GetDeliveryPipeline', DeliveryPipeline::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Gets details of a single JobRun.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedName = $cloudDeployClient->jobRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]', '[JOB_RUN]');
- * $response = $cloudDeployClient->getJobRun($formattedName);
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $name Required. Name of the `JobRun`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Deploy\V1\JobRun
- *
- * @throws ApiException if the remote call fails
- */
- public function getJobRun($name, array $optionalArgs = [])
- {
- $request = new GetJobRunRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GetJobRun', JobRun::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Gets details of a single Release.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedName = $cloudDeployClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]');
- * $response = $cloudDeployClient->getRelease($formattedName);
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $name Required. Name of the `Release`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Deploy\V1\Release
- *
- * @throws ApiException if the remote call fails
- */
- public function getRelease($name, array $optionalArgs = [])
- {
- $request = new GetReleaseRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GetRelease', Release::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Gets details of a single Rollout.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedName = $cloudDeployClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- * $response = $cloudDeployClient->getRollout($formattedName);
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $name Required. Name of the `Rollout`. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Deploy\V1\Rollout
- *
- * @throws ApiException if the remote call fails
- */
- public function getRollout($name, array $optionalArgs = [])
- {
- $request = new GetRolloutRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GetRollout', Rollout::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Gets details of a single Target.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedName = $cloudDeployClient->targetName('[PROJECT]', '[LOCATION]', '[TARGET]');
- * $response = $cloudDeployClient->getTarget($formattedName);
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $name Required. Name of the `Target`. Format must be
- * `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Deploy\V1\Target
- *
- * @throws ApiException if the remote call fails
- */
- public function getTarget($name, array $optionalArgs = [])
- {
- $request = new GetTargetRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GetTarget', Target::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Ignores the specified Job in a Rollout.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedRollout = $cloudDeployClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- * $phaseId = 'phase_id';
- * $jobId = 'job_id';
- * $response = $cloudDeployClient->ignoreJob($formattedRollout, $phaseId, $jobId);
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $rollout Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- * @param string $phaseId Required. The phase ID the Job to ignore belongs to.
- * @param string $jobId Required. The job ID for the Job to ignore.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Deploy\V1\IgnoreJobResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function ignoreJob($rollout, $phaseId, $jobId, array $optionalArgs = [])
- {
- $request = new IgnoreJobRequest();
- $requestParamHeaders = [];
- $request->setRollout($rollout);
- $request->setPhaseId($phaseId);
- $request->setJobId($jobId);
- $requestParamHeaders['rollout'] = $rollout;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('IgnoreJob', IgnoreJobResponse::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Lists AutomationRuns in a given project and location.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedParent = $cloudDeployClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- * // Iterate over pages of elements
- * $pagedResponse = $cloudDeployClient->listAutomationRuns($formattedParent);
- * foreach ($pagedResponse->iteratePages() as $page) {
- * foreach ($page as $element) {
- * // doSomethingWith($element);
- * }
- * }
- * // Alternatively:
- * // Iterate through all elements
- * $pagedResponse = $cloudDeployClient->listAutomationRuns($formattedParent);
- * foreach ($pagedResponse->iterateAllElements() as $element) {
- * // doSomethingWith($element);
- * }
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent `Delivery Pipeline`, which owns this collection of
- * automationRuns. Format must be
- * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @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
- * there are additional values to be retrieved.
- * @type string $pageToken
- * A page token is used to specify a page of values to be returned.
- * If no page token is specified (the default), the first page
- * of values will be returned. Any page token used here must have
- * been generated by a previous call to the API.
- * @type string $filter
- * Filter automationRuns to be returned. All fields can be used in the
- * filter.
- * @type string $orderBy
- * Field to sort by.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\PagedListResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function listAutomationRuns($parent, array $optionalArgs = [])
- {
- $request = new ListAutomationRunsRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['pageSize'])) {
- $request->setPageSize($optionalArgs['pageSize']);
- }
-
- if (isset($optionalArgs['pageToken'])) {
- $request->setPageToken($optionalArgs['pageToken']);
- }
-
- if (isset($optionalArgs['filter'])) {
- $request->setFilter($optionalArgs['filter']);
- }
-
- if (isset($optionalArgs['orderBy'])) {
- $request->setOrderBy($optionalArgs['orderBy']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->getPagedListResponse('ListAutomationRuns', $optionalArgs, ListAutomationRunsResponse::class, $request);
- }
-
- /**
- * Lists Automations in a given project and location.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedParent = $cloudDeployClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- * // Iterate over pages of elements
- * $pagedResponse = $cloudDeployClient->listAutomations($formattedParent);
- * foreach ($pagedResponse->iteratePages() as $page) {
- * foreach ($page as $element) {
- * // doSomethingWith($element);
- * }
- * }
- * // Alternatively:
- * // Iterate through all elements
- * $pagedResponse = $cloudDeployClient->listAutomations($formattedParent);
- * foreach ($pagedResponse->iterateAllElements() as $element) {
- * // doSomethingWith($element);
- * }
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent `Delivery Pipeline`, which owns this collection of
- * automations. Format must be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @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
- * there are additional values to be retrieved.
- * @type string $pageToken
- * A page token is used to specify a page of values to be returned.
- * If no page token is specified (the default), the first page
- * of values will be returned. Any page token used here must have
- * been generated by a previous call to the API.
- * @type string $filter
- * Filter automations to be returned. All fields can be used in the
- * filter.
- * @type string $orderBy
- * Field to sort by.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\PagedListResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function listAutomations($parent, array $optionalArgs = [])
- {
- $request = new ListAutomationsRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['pageSize'])) {
- $request->setPageSize($optionalArgs['pageSize']);
- }
-
- if (isset($optionalArgs['pageToken'])) {
- $request->setPageToken($optionalArgs['pageToken']);
- }
-
- if (isset($optionalArgs['filter'])) {
- $request->setFilter($optionalArgs['filter']);
- }
-
- if (isset($optionalArgs['orderBy'])) {
- $request->setOrderBy($optionalArgs['orderBy']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->getPagedListResponse('ListAutomations', $optionalArgs, ListAutomationsResponse::class, $request);
- }
-
- /**
- * Lists CustomTargetTypes in a given project and location.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedParent = $cloudDeployClient->locationName('[PROJECT]', '[LOCATION]');
- * // Iterate over pages of elements
- * $pagedResponse = $cloudDeployClient->listCustomTargetTypes($formattedParent);
- * foreach ($pagedResponse->iteratePages() as $page) {
- * foreach ($page as $element) {
- * // doSomethingWith($element);
- * }
- * }
- * // Alternatively:
- * // Iterate through all elements
- * $pagedResponse = $cloudDeployClient->listCustomTargetTypes($formattedParent);
- * foreach ($pagedResponse->iterateAllElements() as $element) {
- * // doSomethingWith($element);
- * }
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent that owns this collection of custom target types.
- * Format must be `projects/{project_id}/locations/{location_name}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @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
- * there are additional values to be retrieved.
- * @type string $pageToken
- * A page token is used to specify a page of values to be returned.
- * If no page token is specified (the default), the first page
- * of values will be returned. Any page token used here must have
- * been generated by a previous call to the API.
- * @type string $filter
- * Optional. Filter custom target types to be returned. See
- * https://google.aip.dev/160 for more details.
- * @type string $orderBy
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\PagedListResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function listCustomTargetTypes($parent, array $optionalArgs = [])
- {
- $request = new ListCustomTargetTypesRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['pageSize'])) {
- $request->setPageSize($optionalArgs['pageSize']);
- }
-
- if (isset($optionalArgs['pageToken'])) {
- $request->setPageToken($optionalArgs['pageToken']);
- }
-
- if (isset($optionalArgs['filter'])) {
- $request->setFilter($optionalArgs['filter']);
- }
-
- if (isset($optionalArgs['orderBy'])) {
- $request->setOrderBy($optionalArgs['orderBy']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->getPagedListResponse('ListCustomTargetTypes', $optionalArgs, ListCustomTargetTypesResponse::class, $request);
- }
-
- /**
- * Lists DeliveryPipelines in a given project and location.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedParent = $cloudDeployClient->locationName('[PROJECT]', '[LOCATION]');
- * // Iterate over pages of elements
- * $pagedResponse = $cloudDeployClient->listDeliveryPipelines($formattedParent);
- * foreach ($pagedResponse->iteratePages() as $page) {
- * foreach ($page as $element) {
- * // doSomethingWith($element);
- * }
- * }
- * // Alternatively:
- * // Iterate through all elements
- * $pagedResponse = $cloudDeployClient->listDeliveryPipelines($formattedParent);
- * foreach ($pagedResponse->iterateAllElements() as $element) {
- * // doSomethingWith($element);
- * }
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent, which owns this collection of pipelines. Format must
- * be `projects/{project_id}/locations/{location_name}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @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
- * there are additional values to be retrieved.
- * @type string $pageToken
- * A page token is used to specify a page of values to be returned.
- * If no page token is specified (the default), the first page
- * of values will be returned. Any page token used here must have
- * been generated by a previous call to the API.
- * @type string $filter
- * Filter pipelines to be returned. See https://google.aip.dev/160 for more
- * details.
- * @type string $orderBy
- * Field to sort by. See https://google.aip.dev/132#ordering for more details.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\PagedListResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function listDeliveryPipelines($parent, array $optionalArgs = [])
- {
- $request = new ListDeliveryPipelinesRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['pageSize'])) {
- $request->setPageSize($optionalArgs['pageSize']);
- }
-
- if (isset($optionalArgs['pageToken'])) {
- $request->setPageToken($optionalArgs['pageToken']);
- }
-
- if (isset($optionalArgs['filter'])) {
- $request->setFilter($optionalArgs['filter']);
- }
-
- if (isset($optionalArgs['orderBy'])) {
- $request->setOrderBy($optionalArgs['orderBy']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->getPagedListResponse('ListDeliveryPipelines', $optionalArgs, ListDeliveryPipelinesResponse::class, $request);
- }
-
- /**
- * Lists JobRuns in a given project and location.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedParent = $cloudDeployClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- * // Iterate over pages of elements
- * $pagedResponse = $cloudDeployClient->listJobRuns($formattedParent);
- * foreach ($pagedResponse->iteratePages() as $page) {
- * foreach ($page as $element) {
- * // doSomethingWith($element);
- * }
- * }
- * // Alternatively:
- * // Iterate through all elements
- * $pagedResponse = $cloudDeployClient->listJobRuns($formattedParent);
- * foreach ($pagedResponse->iterateAllElements() as $element) {
- * // doSomethingWith($element);
- * }
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The `Rollout` which owns this collection of `JobRun` objects.
- * @param array $optionalArgs {
- * Optional.
- *
- * @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
- * there are additional values to be retrieved.
- * @type string $pageToken
- * A page token is used to specify a page of values to be returned.
- * If no page token is specified (the default), the first page
- * of values will be returned. Any page token used here must have
- * been generated by a previous call to the API.
- * @type string $filter
- * Optional. Filter results to be returned. See https://google.aip.dev/160 for
- * more details.
- * @type string $orderBy
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\PagedListResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function listJobRuns($parent, array $optionalArgs = [])
- {
- $request = new ListJobRunsRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['pageSize'])) {
- $request->setPageSize($optionalArgs['pageSize']);
- }
-
- if (isset($optionalArgs['pageToken'])) {
- $request->setPageToken($optionalArgs['pageToken']);
- }
-
- if (isset($optionalArgs['filter'])) {
- $request->setFilter($optionalArgs['filter']);
- }
-
- if (isset($optionalArgs['orderBy'])) {
- $request->setOrderBy($optionalArgs['orderBy']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->getPagedListResponse('ListJobRuns', $optionalArgs, ListJobRunsResponse::class, $request);
- }
-
- /**
- * Lists Releases in a given project and location.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedParent = $cloudDeployClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- * // Iterate over pages of elements
- * $pagedResponse = $cloudDeployClient->listReleases($formattedParent);
- * foreach ($pagedResponse->iteratePages() as $page) {
- * foreach ($page as $element) {
- * // doSomethingWith($element);
- * }
- * }
- * // Alternatively:
- * // Iterate through all elements
- * $pagedResponse = $cloudDeployClient->listReleases($formattedParent);
- * foreach ($pagedResponse->iterateAllElements() as $element) {
- * // doSomethingWith($element);
- * }
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The `DeliveryPipeline` which owns this collection of `Release`
- * objects.
- * @param array $optionalArgs {
- * Optional.
- *
- * @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
- * there are additional values to be retrieved.
- * @type string $pageToken
- * A page token is used to specify a page of values to be returned.
- * If no page token is specified (the default), the first page
- * of values will be returned. Any page token used here must have
- * been generated by a previous call to the API.
- * @type string $filter
- * Optional. Filter releases to be returned. See https://google.aip.dev/160
- * for more details.
- * @type string $orderBy
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\PagedListResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function listReleases($parent, array $optionalArgs = [])
- {
- $request = new ListReleasesRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['pageSize'])) {
- $request->setPageSize($optionalArgs['pageSize']);
- }
-
- if (isset($optionalArgs['pageToken'])) {
- $request->setPageToken($optionalArgs['pageToken']);
- }
-
- if (isset($optionalArgs['filter'])) {
- $request->setFilter($optionalArgs['filter']);
- }
-
- if (isset($optionalArgs['orderBy'])) {
- $request->setOrderBy($optionalArgs['orderBy']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->getPagedListResponse('ListReleases', $optionalArgs, ListReleasesResponse::class, $request);
- }
-
- /**
- * Lists Rollouts in a given project and location.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedParent = $cloudDeployClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]');
- * // Iterate over pages of elements
- * $pagedResponse = $cloudDeployClient->listRollouts($formattedParent);
- * foreach ($pagedResponse->iteratePages() as $page) {
- * foreach ($page as $element) {
- * // doSomethingWith($element);
- * }
- * }
- * // Alternatively:
- * // Iterate through all elements
- * $pagedResponse = $cloudDeployClient->listRollouts($formattedParent);
- * foreach ($pagedResponse->iterateAllElements() as $element) {
- * // doSomethingWith($element);
- * }
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The `Release` which owns this collection of `Rollout` objects.
- * @param array $optionalArgs {
- * Optional.
- *
- * @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
- * there are additional values to be retrieved.
- * @type string $pageToken
- * A page token is used to specify a page of values to be returned.
- * If no page token is specified (the default), the first page
- * of values will be returned. Any page token used here must have
- * been generated by a previous call to the API.
- * @type string $filter
- * Optional. Filter rollouts to be returned. See https://google.aip.dev/160
- * for more details.
- * @type string $orderBy
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\PagedListResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function listRollouts($parent, array $optionalArgs = [])
- {
- $request = new ListRolloutsRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['pageSize'])) {
- $request->setPageSize($optionalArgs['pageSize']);
- }
-
- if (isset($optionalArgs['pageToken'])) {
- $request->setPageToken($optionalArgs['pageToken']);
- }
-
- if (isset($optionalArgs['filter'])) {
- $request->setFilter($optionalArgs['filter']);
- }
-
- if (isset($optionalArgs['orderBy'])) {
- $request->setOrderBy($optionalArgs['orderBy']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->getPagedListResponse('ListRollouts', $optionalArgs, ListRolloutsResponse::class, $request);
- }
-
- /**
- * Lists Targets in a given project and location.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedParent = $cloudDeployClient->locationName('[PROJECT]', '[LOCATION]');
- * // Iterate over pages of elements
- * $pagedResponse = $cloudDeployClient->listTargets($formattedParent);
- * foreach ($pagedResponse->iteratePages() as $page) {
- * foreach ($page as $element) {
- * // doSomethingWith($element);
- * }
- * }
- * // Alternatively:
- * // Iterate through all elements
- * $pagedResponse = $cloudDeployClient->listTargets($formattedParent);
- * foreach ($pagedResponse->iterateAllElements() as $element) {
- * // doSomethingWith($element);
- * }
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent, which owns this collection of targets. Format must be
- * `projects/{project_id}/locations/{location_name}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @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
- * there are additional values to be retrieved.
- * @type string $pageToken
- * A page token is used to specify a page of values to be returned.
- * If no page token is specified (the default), the first page
- * of values will be returned. Any page token used here must have
- * been generated by a previous call to the API.
- * @type string $filter
- * Optional. Filter targets to be returned. See https://google.aip.dev/160 for
- * more details.
- * @type string $orderBy
- * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
- * more details.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\PagedListResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function listTargets($parent, array $optionalArgs = [])
- {
- $request = new ListTargetsRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['pageSize'])) {
- $request->setPageSize($optionalArgs['pageSize']);
- }
-
- if (isset($optionalArgs['pageToken'])) {
- $request->setPageToken($optionalArgs['pageToken']);
- }
-
- if (isset($optionalArgs['filter'])) {
- $request->setFilter($optionalArgs['filter']);
- }
-
- if (isset($optionalArgs['orderBy'])) {
- $request->setOrderBy($optionalArgs['orderBy']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->getPagedListResponse('ListTargets', $optionalArgs, ListTargetsResponse::class, $request);
- }
-
- /**
- * Retries the specified Job in a Rollout.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedRollout = $cloudDeployClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- * $phaseId = 'phase_id';
- * $jobId = 'job_id';
- * $response = $cloudDeployClient->retryJob($formattedRollout, $phaseId, $jobId);
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $rollout Required. Name of the Rollout. Format is
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.
- * @param string $phaseId Required. The phase ID the Job to retry belongs to.
- * @param string $jobId Required. The job ID for the Job to retry.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Deploy\V1\RetryJobResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function retryJob($rollout, $phaseId, $jobId, array $optionalArgs = [])
- {
- $request = new RetryJobRequest();
- $requestParamHeaders = [];
- $request->setRollout($rollout);
- $request->setPhaseId($phaseId);
- $request->setJobId($jobId);
- $requestParamHeaders['rollout'] = $rollout;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('RetryJob', RetryJobResponse::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Creates a `Rollout` to roll back the specified target.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedName = $cloudDeployClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- * $targetId = 'target_id';
- * $rolloutId = 'rollout_id';
- * $response = $cloudDeployClient->rollbackTarget($formattedName, $targetId, $rolloutId);
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $name Required. The `DeliveryPipeline` for which the rollback `Rollout` should be
- * created. Format should be
- * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
- * @param string $targetId Required. ID of the `Target` that is being rolled back.
- * @param string $rolloutId Required. ID of the rollback `Rollout` to create.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string $releaseId
- * Optional. ID of the `Release` to roll back to. If this isn't specified, the
- * previous successful `Rollout` to the specified target will be used to
- * determine the `Release`.
- * @type string $rolloutToRollBack
- * Optional. If provided, this must be the latest `Rollout` that is on the
- * `Target`.
- * @type RollbackTargetConfig $rollbackConfig
- * Optional. Configs for the rollback `Rollout`.
- * @type bool $validateOnly
- * Optional. If set to true, the request is validated and the user is provided
- * with a `RollbackTargetResponse`.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Deploy\V1\RollbackTargetResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function rollbackTarget($name, $targetId, $rolloutId, array $optionalArgs = [])
- {
- $request = new RollbackTargetRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $request->setTargetId($targetId);
- $request->setRolloutId($rolloutId);
- $requestParamHeaders['name'] = $name;
- if (isset($optionalArgs['releaseId'])) {
- $request->setReleaseId($optionalArgs['releaseId']);
- }
-
- if (isset($optionalArgs['rolloutToRollBack'])) {
- $request->setRolloutToRollBack($optionalArgs['rolloutToRollBack']);
- }
-
- if (isset($optionalArgs['rollbackConfig'])) {
- $request->setRollbackConfig($optionalArgs['rollbackConfig']);
- }
-
- if (isset($optionalArgs['validateOnly'])) {
- $request->setValidateOnly($optionalArgs['validateOnly']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('RollbackTarget', RollbackTargetResponse::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Terminates a Job Run in a given project and location.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $formattedName = $cloudDeployClient->jobRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]', '[JOB_RUN]');
- * $response = $cloudDeployClient->terminateJobRun($formattedName);
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $name Required. Name of the `JobRun`. Format must be
- * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Deploy\V1\TerminateJobRunResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function terminateJobRun($name, array $optionalArgs = [])
- {
- $request = new TerminateJobRunRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('TerminateJobRun', TerminateJobRunResponse::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Updates the parameters of a single Automation resource.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $updateMask = new FieldMask();
- * $automation = new Automation();
- * $operationResponse = $cloudDeployClient->updateAutomation($updateMask, $automation);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * $result = $operationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $cloudDeployClient->updateAutomation($updateMask, $automation);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $cloudDeployClient->resumeOperation($operationName, 'updateAutomation');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * $result = $newOperationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten in the
- * `Automation` resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- * @param Automation $automation Required. The `Automation` to update.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string $requestId
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- *
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- *
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $allowMissing
- * Optional. If set to true, updating a `Automation` that does not exist will
- * result in the creation of a new `Automation`.
- * @type bool $validateOnly
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\OperationResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function updateAutomation($updateMask, $automation, array $optionalArgs = [])
- {
- $request = new UpdateAutomationRequest();
- $requestParamHeaders = [];
- $request->setUpdateMask($updateMask);
- $request->setAutomation($automation);
- $requestParamHeaders['automation.name'] = $automation->getName();
- if (isset($optionalArgs['requestId'])) {
- $request->setRequestId($optionalArgs['requestId']);
- }
-
- if (isset($optionalArgs['allowMissing'])) {
- $request->setAllowMissing($optionalArgs['allowMissing']);
- }
-
- if (isset($optionalArgs['validateOnly'])) {
- $request->setValidateOnly($optionalArgs['validateOnly']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startOperationsCall('UpdateAutomation', $optionalArgs, $request, $this->getOperationsClient())->wait();
- }
-
- /**
- * Updates a single CustomTargetType.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $updateMask = new FieldMask();
- * $customTargetType = new CustomTargetType();
- * $operationResponse = $cloudDeployClient->updateCustomTargetType($updateMask, $customTargetType);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * $result = $operationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $cloudDeployClient->updateCustomTargetType($updateMask, $customTargetType);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $cloudDeployClient->resumeOperation($operationName, 'updateCustomTargetType');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * $result = $newOperationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten in the
- * `CustomTargetType` resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- * @param CustomTargetType $customTargetType Required. The `CustomTargetType` to update.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string $requestId
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- *
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- *
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $allowMissing
- * Optional. If set to true, updating a `CustomTargetType` that does not exist
- * will result in the creation of a new `CustomTargetType`.
- * @type bool $validateOnly
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\OperationResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function updateCustomTargetType($updateMask, $customTargetType, array $optionalArgs = [])
- {
- $request = new UpdateCustomTargetTypeRequest();
- $requestParamHeaders = [];
- $request->setUpdateMask($updateMask);
- $request->setCustomTargetType($customTargetType);
- $requestParamHeaders['custom_target_type.name'] = $customTargetType->getName();
- if (isset($optionalArgs['requestId'])) {
- $request->setRequestId($optionalArgs['requestId']);
- }
-
- if (isset($optionalArgs['allowMissing'])) {
- $request->setAllowMissing($optionalArgs['allowMissing']);
- }
-
- if (isset($optionalArgs['validateOnly'])) {
- $request->setValidateOnly($optionalArgs['validateOnly']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startOperationsCall('UpdateCustomTargetType', $optionalArgs, $request, $this->getOperationsClient())->wait();
- }
-
- /**
- * Updates the parameters of a single DeliveryPipeline.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $updateMask = new FieldMask();
- * $deliveryPipeline = new DeliveryPipeline();
- * $operationResponse = $cloudDeployClient->updateDeliveryPipeline($updateMask, $deliveryPipeline);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * $result = $operationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $cloudDeployClient->updateDeliveryPipeline($updateMask, $deliveryPipeline);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $cloudDeployClient->resumeOperation($operationName, 'updateDeliveryPipeline');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * $result = $newOperationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten in the
- * `DeliveryPipeline` resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- * @param DeliveryPipeline $deliveryPipeline Required. The `DeliveryPipeline` to update.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string $requestId
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- *
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- *
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $allowMissing
- * Optional. If set to true, updating a `DeliveryPipeline` that does not exist
- * will result in the creation of a new `DeliveryPipeline`.
- * @type bool $validateOnly
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\OperationResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function updateDeliveryPipeline($updateMask, $deliveryPipeline, array $optionalArgs = [])
- {
- $request = new UpdateDeliveryPipelineRequest();
- $requestParamHeaders = [];
- $request->setUpdateMask($updateMask);
- $request->setDeliveryPipeline($deliveryPipeline);
- $requestParamHeaders['delivery_pipeline.name'] = $deliveryPipeline->getName();
- if (isset($optionalArgs['requestId'])) {
- $request->setRequestId($optionalArgs['requestId']);
- }
-
- if (isset($optionalArgs['allowMissing'])) {
- $request->setAllowMissing($optionalArgs['allowMissing']);
- }
-
- if (isset($optionalArgs['validateOnly'])) {
- $request->setValidateOnly($optionalArgs['validateOnly']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startOperationsCall('UpdateDeliveryPipeline', $optionalArgs, $request, $this->getOperationsClient())->wait();
- }
-
- /**
- * Updates the parameters of a single Target.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $updateMask = new FieldMask();
- * $target = new Target();
- * $operationResponse = $cloudDeployClient->updateTarget($updateMask, $target);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * $result = $operationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $cloudDeployClient->updateTarget($updateMask, $target);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $cloudDeployClient->resumeOperation($operationName, 'updateTarget');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * $result = $newOperationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten in the
- * Target resource by the update.
- * The fields specified in the update_mask are relative to the resource, not
- * the full request. A field will be overwritten if it's in the mask. If the
- * user doesn't provide a mask then all fields are overwritten.
- * @param Target $target Required. The `Target` to update.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string $requestId
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server knows to ignore the
- * request if it has already been completed. The server guarantees that for
- * at least 60 minutes after the first request.
- *
- * For example, consider a situation where you make an initial request and the
- * request times out. If you make the request again with the same request ID,
- * the server can check if original operation with the same request ID was
- * received, and if so, will ignore the second request. This prevents clients
- * from accidentally creating duplicate commitments.
- *
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $allowMissing
- * Optional. If set to true, updating a `Target` that does not exist will
- * result in the creation of a new `Target`.
- * @type bool $validateOnly
- * Optional. If set to true, the request is validated and the user is provided
- * with an expected result, but no actual change is made.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\OperationResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function updateTarget($updateMask, $target, array $optionalArgs = [])
- {
- $request = new UpdateTargetRequest();
- $requestParamHeaders = [];
- $request->setUpdateMask($updateMask);
- $request->setTarget($target);
- $requestParamHeaders['target.name'] = $target->getName();
- if (isset($optionalArgs['requestId'])) {
- $request->setRequestId($optionalArgs['requestId']);
- }
-
- if (isset($optionalArgs['allowMissing'])) {
- $request->setAllowMissing($optionalArgs['allowMissing']);
- }
-
- if (isset($optionalArgs['validateOnly'])) {
- $request->setValidateOnly($optionalArgs['validateOnly']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startOperationsCall('UpdateTarget', $optionalArgs, $request, $this->getOperationsClient())->wait();
- }
-
- /**
- * Gets information about a location.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $response = $cloudDeployClient->getLocation();
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string $name
- * Resource name for the location.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Location\Location
- *
- * @throws ApiException if the remote call fails
- */
- public function getLocation(array $optionalArgs = [])
- {
- $request = new GetLocationRequest();
- $requestParamHeaders = [];
- if (isset($optionalArgs['name'])) {
- $request->setName($optionalArgs['name']);
- $requestParamHeaders['name'] = $optionalArgs['name'];
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GetLocation', Location::class, $optionalArgs, $request, Call::UNARY_CALL, 'google.cloud.location.Locations')->wait();
- }
-
- /**
- * Lists information about the supported locations for this service.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * // Iterate over pages of elements
- * $pagedResponse = $cloudDeployClient->listLocations();
- * foreach ($pagedResponse->iteratePages() as $page) {
- * foreach ($page as $element) {
- * // doSomethingWith($element);
- * }
- * }
- * // Alternatively:
- * // Iterate through all elements
- * $pagedResponse = $cloudDeployClient->listLocations();
- * foreach ($pagedResponse->iterateAllElements() as $element) {
- * // doSomethingWith($element);
- * }
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string $name
- * The resource that owns the locations collection, if applicable.
- * @type string $filter
- * The standard list filter.
- * @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
- * there are additional values to be retrieved.
- * @type string $pageToken
- * A page token is used to specify a page of values to be returned.
- * If no page token is specified (the default), the first page
- * of values will be returned. Any page token used here must have
- * been generated by a previous call to the API.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\ApiCore\PagedListResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function listLocations(array $optionalArgs = [])
- {
- $request = new ListLocationsRequest();
- $requestParamHeaders = [];
- if (isset($optionalArgs['name'])) {
- $request->setName($optionalArgs['name']);
- $requestParamHeaders['name'] = $optionalArgs['name'];
- }
-
- if (isset($optionalArgs['filter'])) {
- $request->setFilter($optionalArgs['filter']);
- }
-
- if (isset($optionalArgs['pageSize'])) {
- $request->setPageSize($optionalArgs['pageSize']);
- }
-
- if (isset($optionalArgs['pageToken'])) {
- $request->setPageToken($optionalArgs['pageToken']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->getPagedListResponse('ListLocations', $optionalArgs, ListLocationsResponse::class, $request, 'google.cloud.location.Locations');
- }
-
- /**
- * Gets the access control policy for a resource. Returns an empty policy
- if the resource exists and does not have a policy set.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $resource = 'resource';
- * $response = $cloudDeployClient->getIamPolicy($resource);
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $resource REQUIRED: The resource for which the policy is being requested.
- * See the operation documentation for the appropriate value for this field.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type GetPolicyOptions $options
- * OPTIONAL: A `GetPolicyOptions` object for specifying options to
- * `GetIamPolicy`.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Iam\V1\Policy
- *
- * @throws ApiException if the remote call fails
- */
- public function getIamPolicy($resource, array $optionalArgs = [])
- {
- $request = new GetIamPolicyRequest();
- $requestParamHeaders = [];
- $request->setResource($resource);
- $requestParamHeaders['resource'] = $resource;
- if (isset($optionalArgs['options'])) {
- $request->setOptions($optionalArgs['options']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GetIamPolicy', Policy::class, $optionalArgs, $request, Call::UNARY_CALL, 'google.iam.v1.IAMPolicy')->wait();
- }
-
- /**
- * Sets the access control policy on the specified resource. Replaces
- any existing policy.
-
- Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`
- errors.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $resource = 'resource';
- * $policy = new Policy();
- * $response = $cloudDeployClient->setIamPolicy($resource, $policy);
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $resource REQUIRED: The resource for which the policy is being specified.
- * See the operation documentation for the appropriate value for this field.
- * @param Policy $policy REQUIRED: The complete policy to be applied to the `resource`. The size of
- * the policy is limited to a few 10s of KB. An empty policy is a
- * valid policy but certain Cloud Platform services (such as Projects)
- * might reject them.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type FieldMask $updateMask
- * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
- * the fields in the mask will be modified. If no mask is provided, the
- * following default mask is used:
- *
- * `paths: "bindings, etag"`
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Iam\V1\Policy
- *
- * @throws ApiException if the remote call fails
- */
- public function setIamPolicy($resource, $policy, array $optionalArgs = [])
- {
- $request = new SetIamPolicyRequest();
- $requestParamHeaders = [];
- $request->setResource($resource);
- $request->setPolicy($policy);
- $requestParamHeaders['resource'] = $resource;
- if (isset($optionalArgs['updateMask'])) {
- $request->setUpdateMask($optionalArgs['updateMask']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('SetIamPolicy', Policy::class, $optionalArgs, $request, Call::UNARY_CALL, 'google.iam.v1.IAMPolicy')->wait();
- }
-
- /**
- * Returns permissions that a caller has on the specified resource. If the
- resource does not exist, this will return an empty set of
- permissions, not a `NOT_FOUND` error.
-
- Note: This operation is designed to be used for building
- permission-aware UIs and command-line tools, not for authorization
- checking. This operation may "fail open" without warning.
- *
- * Sample code:
- * ```
- * $cloudDeployClient = new CloudDeployClient();
- * try {
- * $resource = 'resource';
- * $permissions = [];
- * $response = $cloudDeployClient->testIamPermissions($resource, $permissions);
- * } finally {
- * $cloudDeployClient->close();
- * }
- * ```
- *
- * @param string $resource REQUIRED: The resource for which the policy detail is being requested.
- * See the operation documentation for the appropriate value for this field.
- * @param string[] $permissions The set of permissions to check for the `resource`. Permissions with
- * wildcards (such as '*' or 'storage.*') are not allowed. For more
- * information see
- * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Cloud\Iam\V1\TestIamPermissionsResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function testIamPermissions($resource, $permissions, array $optionalArgs = [])
- {
- $request = new TestIamPermissionsRequest();
- $requestParamHeaders = [];
- $request->setResource($resource);
- $request->setPermissions($permissions);
- $requestParamHeaders['resource'] = $resource;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('TestIamPermissions', TestIamPermissionsResponse::class, $optionalArgs, $request, Call::UNARY_CALL, 'google.iam.v1.IAMPolicy')->wait();
- }
-}
diff --git a/owl-bot-staging/Deploy/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Deploy/v1/src/V1/gapic_metadata.json
deleted file mode 100644
index 4fb04e21a05b..000000000000
--- a/owl-bot-staging/Deploy/v1/src/V1/gapic_metadata.json
+++ /dev/null
@@ -1,243 +0,0 @@
-{
- "schema": "1.0",
- "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods",
- "language": "php",
- "protoPackage": "google.cloud.deploy.v1",
- "libraryPackage": "Google\\Cloud\\Deploy\\V1",
- "services": {
- "CloudDeploy": {
- "clients": {
- "grpc": {
- "libraryClient": "CloudDeployGapicClient",
- "rpcs": {
- "AbandonRelease": {
- "methods": [
- "abandonRelease"
- ]
- },
- "AdvanceRollout": {
- "methods": [
- "advanceRollout"
- ]
- },
- "ApproveRollout": {
- "methods": [
- "approveRollout"
- ]
- },
- "CancelAutomationRun": {
- "methods": [
- "cancelAutomationRun"
- ]
- },
- "CancelRollout": {
- "methods": [
- "cancelRollout"
- ]
- },
- "CreateAutomation": {
- "methods": [
- "createAutomation"
- ]
- },
- "CreateCustomTargetType": {
- "methods": [
- "createCustomTargetType"
- ]
- },
- "CreateDeliveryPipeline": {
- "methods": [
- "createDeliveryPipeline"
- ]
- },
- "CreateRelease": {
- "methods": [
- "createRelease"
- ]
- },
- "CreateRollout": {
- "methods": [
- "createRollout"
- ]
- },
- "CreateTarget": {
- "methods": [
- "createTarget"
- ]
- },
- "DeleteAutomation": {
- "methods": [
- "deleteAutomation"
- ]
- },
- "DeleteCustomTargetType": {
- "methods": [
- "deleteCustomTargetType"
- ]
- },
- "DeleteDeliveryPipeline": {
- "methods": [
- "deleteDeliveryPipeline"
- ]
- },
- "DeleteTarget": {
- "methods": [
- "deleteTarget"
- ]
- },
- "GetAutomation": {
- "methods": [
- "getAutomation"
- ]
- },
- "GetAutomationRun": {
- "methods": [
- "getAutomationRun"
- ]
- },
- "GetConfig": {
- "methods": [
- "getConfig"
- ]
- },
- "GetCustomTargetType": {
- "methods": [
- "getCustomTargetType"
- ]
- },
- "GetDeliveryPipeline": {
- "methods": [
- "getDeliveryPipeline"
- ]
- },
- "GetJobRun": {
- "methods": [
- "getJobRun"
- ]
- },
- "GetRelease": {
- "methods": [
- "getRelease"
- ]
- },
- "GetRollout": {
- "methods": [
- "getRollout"
- ]
- },
- "GetTarget": {
- "methods": [
- "getTarget"
- ]
- },
- "IgnoreJob": {
- "methods": [
- "ignoreJob"
- ]
- },
- "ListAutomationRuns": {
- "methods": [
- "listAutomationRuns"
- ]
- },
- "ListAutomations": {
- "methods": [
- "listAutomations"
- ]
- },
- "ListCustomTargetTypes": {
- "methods": [
- "listCustomTargetTypes"
- ]
- },
- "ListDeliveryPipelines": {
- "methods": [
- "listDeliveryPipelines"
- ]
- },
- "ListJobRuns": {
- "methods": [
- "listJobRuns"
- ]
- },
- "ListReleases": {
- "methods": [
- "listReleases"
- ]
- },
- "ListRollouts": {
- "methods": [
- "listRollouts"
- ]
- },
- "ListTargets": {
- "methods": [
- "listTargets"
- ]
- },
- "RetryJob": {
- "methods": [
- "retryJob"
- ]
- },
- "RollbackTarget": {
- "methods": [
- "rollbackTarget"
- ]
- },
- "TerminateJobRun": {
- "methods": [
- "terminateJobRun"
- ]
- },
- "UpdateAutomation": {
- "methods": [
- "updateAutomation"
- ]
- },
- "UpdateCustomTargetType": {
- "methods": [
- "updateCustomTargetType"
- ]
- },
- "UpdateDeliveryPipeline": {
- "methods": [
- "updateDeliveryPipeline"
- ]
- },
- "UpdateTarget": {
- "methods": [
- "updateTarget"
- ]
- },
- "GetLocation": {
- "methods": [
- "getLocation"
- ]
- },
- "ListLocations": {
- "methods": [
- "listLocations"
- ]
- },
- "GetIamPolicy": {
- "methods": [
- "getIamPolicy"
- ]
- },
- "SetIamPolicy": {
- "methods": [
- "setIamPolicy"
- ]
- },
- "TestIamPermissions": {
- "methods": [
- "testIamPermissions"
- ]
- }
- }
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_client_config.json b/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_client_config.json
deleted file mode 100644
index 344ed8b2d90a..000000000000
--- a/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_client_config.json
+++ /dev/null
@@ -1,269 +0,0 @@
-{
- "interfaces": {
- "google.cloud.deploy.v1.CloudDeploy": {
- "retry_codes": {
- "no_retry_codes": [],
- "retry_policy_1_codes": [
- "UNAVAILABLE"
- ],
- "no_retry_1_codes": []
- },
- "retry_params": {
- "no_retry_params": {
- "initial_retry_delay_millis": 0,
- "retry_delay_multiplier": 0.0,
- "max_retry_delay_millis": 0,
- "initial_rpc_timeout_millis": 0,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 0,
- "total_timeout_millis": 0
- },
- "retry_policy_1_params": {
- "initial_retry_delay_millis": 1000,
- "retry_delay_multiplier": 1.3,
- "max_retry_delay_millis": 60000,
- "initial_rpc_timeout_millis": 60000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 60000,
- "total_timeout_millis": 60000
- },
- "no_retry_1_params": {
- "initial_retry_delay_millis": 0,
- "retry_delay_multiplier": 0.0,
- "max_retry_delay_millis": 0,
- "initial_rpc_timeout_millis": 60000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 60000,
- "total_timeout_millis": 60000
- }
- },
- "methods": {
- "AbandonRelease": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "AdvanceRollout": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "ApproveRollout": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "CancelAutomationRun": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "CancelRollout": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "CreateAutomation": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "CreateCustomTargetType": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "CreateDeliveryPipeline": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "CreateRelease": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "CreateRollout": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "CreateTarget": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "DeleteAutomation": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "DeleteCustomTargetType": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "DeleteDeliveryPipeline": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "DeleteTarget": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "GetAutomation": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "GetAutomationRun": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "GetConfig": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "GetCustomTargetType": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "GetDeliveryPipeline": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "GetJobRun": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "GetRelease": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "GetRollout": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "GetTarget": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "IgnoreJob": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "ListAutomationRuns": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "ListAutomations": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "ListCustomTargetTypes": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "ListDeliveryPipelines": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "ListJobRuns": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "ListReleases": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "ListRollouts": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "ListTargets": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "RetryJob": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "RollbackTarget": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "TerminateJobRun": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "UpdateAutomation": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "UpdateCustomTargetType": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "UpdateDeliveryPipeline": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "UpdateTarget": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "GetLocation": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "ListLocations": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "GetIamPolicy": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "SetIamPolicy": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "TestIamPermissions": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- }
- }
- }
- }
-}
diff --git a/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_descriptor_config.php b/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_descriptor_config.php
deleted file mode 100644
index 1b7b7bbc3ac4..000000000000
--- a/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_descriptor_config.php
+++ /dev/null
@@ -1,766 +0,0 @@
- [
- 'google.cloud.deploy.v1.CloudDeploy' => [
- 'CreateAutomation' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Deploy\V1\Automation',
- 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'CreateCustomTargetType' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Deploy\V1\CustomTargetType',
- 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'CreateDeliveryPipeline' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Deploy\V1\DeliveryPipeline',
- 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'CreateRelease' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Deploy\V1\Release',
- 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'CreateRollout' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Deploy\V1\Rollout',
- 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'CreateTarget' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Deploy\V1\Target',
- 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'DeleteAutomation' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Protobuf\GPBEmpty',
- 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteCustomTargetType' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Protobuf\GPBEmpty',
- 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteDeliveryPipeline' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Protobuf\GPBEmpty',
- 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteTarget' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Protobuf\GPBEmpty',
- 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'UpdateAutomation' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Deploy\V1\Automation',
- 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'automation.name',
- 'fieldAccessors' => [
- 'getAutomation',
- 'getName',
- ],
- ],
- ],
- ],
- 'UpdateCustomTargetType' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Deploy\V1\CustomTargetType',
- 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'custom_target_type.name',
- 'fieldAccessors' => [
- 'getCustomTargetType',
- 'getName',
- ],
- ],
- ],
- ],
- 'UpdateDeliveryPipeline' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Deploy\V1\DeliveryPipeline',
- 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'delivery_pipeline.name',
- 'fieldAccessors' => [
- 'getDeliveryPipeline',
- 'getName',
- ],
- ],
- ],
- ],
- 'UpdateTarget' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Deploy\V1\Target',
- 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'target.name',
- 'fieldAccessors' => [
- 'getTarget',
- 'getName',
- ],
- ],
- ],
- ],
- 'AbandonRelease' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\AbandonReleaseResponse',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'AdvanceRollout' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\AdvanceRolloutResponse',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ApproveRollout' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\ApproveRolloutResponse',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'CancelAutomationRun' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\CancelAutomationRunResponse',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'CancelRollout' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\CancelRolloutResponse',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetAutomation' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\Automation',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetAutomationRun' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\AutomationRun',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetConfig' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\Config',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetCustomTargetType' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\CustomTargetType',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetDeliveryPipeline' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\DeliveryPipeline',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetJobRun' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\JobRun',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetRelease' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\Release',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetRollout' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\Rollout',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetTarget' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\Target',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'IgnoreJob' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\IgnoreJobResponse',
- 'headerParams' => [
- [
- 'keyName' => 'rollout',
- 'fieldAccessors' => [
- 'getRollout',
- ],
- ],
- ],
- ],
- 'ListAutomationRuns' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getAutomationRuns',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\ListAutomationRunsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListAutomations' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getAutomations',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\ListAutomationsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListCustomTargetTypes' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getCustomTargetTypes',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\ListCustomTargetTypesResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListDeliveryPipelines' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getDeliveryPipelines',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\ListDeliveryPipelinesResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListJobRuns' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getJobRuns',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\ListJobRunsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListReleases' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getReleases',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\ListReleasesResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListRollouts' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getRollouts',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\ListRolloutsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListTargets' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getTargets',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\ListTargetsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'RetryJob' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\RetryJobResponse',
- 'headerParams' => [
- [
- 'keyName' => 'rollout',
- 'fieldAccessors' => [
- 'getRollout',
- ],
- ],
- ],
- ],
- 'RollbackTarget' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\RollbackTargetResponse',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'TerminateJobRun' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Deploy\V1\TerminateJobRunResponse',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetLocation' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Location\Location',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- 'interfaceOverride' => 'google.cloud.location.Locations',
- ],
- 'ListLocations' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getLocations',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\Location\ListLocationsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- 'interfaceOverride' => 'google.cloud.location.Locations',
- ],
- 'GetIamPolicy' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Iam\V1\Policy',
- 'headerParams' => [
- [
- 'keyName' => 'resource',
- 'fieldAccessors' => [
- 'getResource',
- ],
- ],
- ],
- 'interfaceOverride' => 'google.iam.v1.IAMPolicy',
- ],
- 'SetIamPolicy' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Iam\V1\Policy',
- 'headerParams' => [
- [
- 'keyName' => 'resource',
- 'fieldAccessors' => [
- 'getResource',
- ],
- ],
- ],
- 'interfaceOverride' => 'google.iam.v1.IAMPolicy',
- ],
- 'TestIamPermissions' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'resource',
- 'fieldAccessors' => [
- 'getResource',
- ],
- ],
- ],
- 'interfaceOverride' => 'google.iam.v1.IAMPolicy',
- ],
- 'templateMap' => [
- 'automation' => 'projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}',
- 'automationRun' => 'projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}',
- 'build' => 'projects/{project}/locations/{location}/builds/{build}',
- 'cluster' => 'projects/{project}/locations/{location}/clusters/{cluster}',
- 'config' => 'projects/{project}/locations/{location}/config',
- 'customTargetType' => 'projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}',
- 'deliveryPipeline' => 'projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}',
- 'job' => 'projects/{project}/locations/{location}/jobs/{job}',
- 'jobRun' => 'projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{job_run}',
- 'location' => 'projects/{project}/locations/{location}',
- 'membership' => 'projects/{project}/locations/{location}/memberships/{membership}',
- 'release' => 'projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}',
- 'repository' => 'projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}',
- 'rollout' => 'projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout}',
- 'service' => 'projects/{project}/locations/{location}/services/{service}',
- 'target' => 'projects/{project}/locations/{location}/targets/{target}',
- 'workerPool' => 'projects/{project}/locations/{location}/workerPools/{worker_pool}',
- ],
- ],
- ],
-];
diff --git a/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_rest_client_config.php b/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_rest_client_config.php
deleted file mode 100644
index febaff6b324f..000000000000
--- a/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_rest_client_config.php
+++ /dev/null
@@ -1,659 +0,0 @@
- [
- 'google.cloud.deploy.v1.CloudDeploy' => [
- 'AbandonRelease' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*}:abandon',
- 'body' => '*',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'AdvanceRollout' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:advance',
- 'body' => '*',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ApproveRollout' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:approve',
- 'body' => '*',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'CancelAutomationRun' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/automationRuns/*}:cancel',
- 'body' => '*',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'CancelRollout' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:cancel',
- 'body' => '*',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'CreateAutomation' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*}/automations',
- 'body' => 'automation',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- 'queryParams' => [
- 'automation_id',
- ],
- ],
- 'CreateCustomTargetType' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/customTargetTypes',
- 'body' => 'custom_target_type',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- 'queryParams' => [
- 'custom_target_type_id',
- ],
- ],
- 'CreateDeliveryPipeline' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/deliveryPipelines',
- 'body' => 'delivery_pipeline',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- 'queryParams' => [
- 'delivery_pipeline_id',
- ],
- ],
- 'CreateRelease' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*}/releases',
- 'body' => 'release',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- 'queryParams' => [
- 'release_id',
- ],
- ],
- 'CreateRollout' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*/releases/*}/rollouts',
- 'body' => 'rollout',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- 'queryParams' => [
- 'rollout_id',
- ],
- ],
- 'CreateTarget' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/targets',
- 'body' => 'target',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- 'queryParams' => [
- 'target_id',
- ],
- ],
- 'DeleteAutomation' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/automations/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteCustomTargetType' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/customTargetTypes/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteDeliveryPipeline' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteTarget' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/targets/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetAutomation' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/automations/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetAutomationRun' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/automationRuns/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetConfig' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/config}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetCustomTargetType' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/customTargetTypes/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetDeliveryPipeline' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetJobRun' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*/jobRuns/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetRelease' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetRollout' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetTarget' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/targets/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'IgnoreJob' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{rollout=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:ignoreJob',
- 'body' => '*',
- 'placeholders' => [
- 'rollout' => [
- 'getters' => [
- 'getRollout',
- ],
- ],
- ],
- ],
- 'ListAutomationRuns' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*}/automationRuns',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListAutomations' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*}/automations',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListCustomTargetTypes' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/customTargetTypes',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListDeliveryPipelines' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/deliveryPipelines',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListJobRuns' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}/jobRuns',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListReleases' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*}/releases',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListRollouts' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*/releases/*}/rollouts',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListTargets' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/targets',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'RetryJob' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{rollout=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:retryJob',
- 'body' => '*',
- 'placeholders' => [
- 'rollout' => [
- 'getters' => [
- 'getRollout',
- ],
- ],
- ],
- ],
- 'RollbackTarget' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*}:rollbackTarget',
- 'body' => '*',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'TerminateJobRun' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*/jobRuns/*}:terminate',
- 'body' => '*',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'UpdateAutomation' => [
- 'method' => 'patch',
- 'uriTemplate' => '/v1/{automation.name=projects/*/locations/*/deliveryPipelines/*/automations/*}',
- 'body' => 'automation',
- 'placeholders' => [
- 'automation.name' => [
- 'getters' => [
- 'getAutomation',
- 'getName',
- ],
- ],
- ],
- 'queryParams' => [
- 'update_mask',
- ],
- ],
- 'UpdateCustomTargetType' => [
- 'method' => 'patch',
- 'uriTemplate' => '/v1/{custom_target_type.name=projects/*/locations/*/customTargetTypes/*}',
- 'body' => 'custom_target_type',
- 'placeholders' => [
- 'custom_target_type.name' => [
- 'getters' => [
- 'getCustomTargetType',
- 'getName',
- ],
- ],
- ],
- 'queryParams' => [
- 'update_mask',
- ],
- ],
- 'UpdateDeliveryPipeline' => [
- 'method' => 'patch',
- 'uriTemplate' => '/v1/{delivery_pipeline.name=projects/*/locations/*/deliveryPipelines/*}',
- 'body' => 'delivery_pipeline',
- 'placeholders' => [
- 'delivery_pipeline.name' => [
- 'getters' => [
- 'getDeliveryPipeline',
- 'getName',
- ],
- ],
- ],
- 'queryParams' => [
- 'update_mask',
- ],
- ],
- 'UpdateTarget' => [
- 'method' => 'patch',
- 'uriTemplate' => '/v1/{target.name=projects/*/locations/*/targets/*}',
- 'body' => 'target',
- 'placeholders' => [
- 'target.name' => [
- 'getters' => [
- 'getTarget',
- 'getName',
- ],
- ],
- ],
- 'queryParams' => [
- 'update_mask',
- ],
- ],
- ],
- 'google.cloud.location.Locations' => [
- 'GetLocation' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ListLocations' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*}/locations',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- ],
- 'google.iam.v1.IAMPolicy' => [
- 'GetIamPolicy' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/deliveryPipelines/*}:getIamPolicy',
- 'additionalBindings' => [
- [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/targets/*}:getIamPolicy',
- ],
- [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/customTargetTypes/*}:getIamPolicy',
- ],
- ],
- 'placeholders' => [
- 'resource' => [
- 'getters' => [
- 'getResource',
- ],
- ],
- ],
- ],
- 'SetIamPolicy' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/deliveryPipelines/*}:setIamPolicy',
- 'body' => '*',
- 'additionalBindings' => [
- [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/targets/*}:setIamPolicy',
- 'body' => '*',
- ],
- [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/customTargetTypes/*}:setIamPolicy',
- 'body' => '*',
- ],
- ],
- 'placeholders' => [
- 'resource' => [
- 'getters' => [
- 'getResource',
- ],
- ],
- ],
- ],
- 'TestIamPermissions' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/deliveryPipelines/*}:testIamPermissions',
- 'body' => '*',
- 'additionalBindings' => [
- [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/targets/*}:testIamPermissions',
- 'body' => '*',
- ],
- ],
- 'placeholders' => [
- 'resource' => [
- 'getters' => [
- 'getResource',
- ],
- ],
- ],
- ],
- ],
- 'google.longrunning.Operations' => [
- 'CancelOperation' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel',
- 'body' => '*',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteOperation' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetOperation' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ListOperations' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- ],
- ],
- 'numericEnums' => true,
-];
diff --git a/owl-bot-staging/Deploy/v1/tests/Unit/V1/Client/CloudDeployClientTest.php b/owl-bot-staging/Deploy/v1/tests/Unit/V1/Client/CloudDeployClientTest.php
deleted file mode 100644
index d10d7cdd6af7..000000000000
--- a/owl-bot-staging/Deploy/v1/tests/Unit/V1/Client/CloudDeployClientTest.php
+++ /dev/null
@@ -1,4285 +0,0 @@
-getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock();
- }
-
- /** @return CloudDeployClient */
- private function createClient(array $options = [])
- {
- $options += [
- 'credentials' => $this->createCredentials(),
- ];
- return new CloudDeployClient($options);
- }
-
- /** @test */
- public function abandonReleaseTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new AbandonReleaseResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]');
- $request = (new AbandonReleaseRequest())
- ->setName($formattedName);
- $response = $gapicClient->abandonRelease($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/AbandonRelease', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function abandonReleaseExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]');
- $request = (new AbandonReleaseRequest())
- ->setName($formattedName);
- try {
- $gapicClient->abandonRelease($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function advanceRolloutTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new AdvanceRolloutResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $phaseId = 'phaseId-1676299681';
- $request = (new AdvanceRolloutRequest())
- ->setName($formattedName)
- ->setPhaseId($phaseId);
- $response = $gapicClient->advanceRollout($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/AdvanceRollout', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $actualValue = $actualRequestObject->getPhaseId();
- $this->assertProtobufEquals($phaseId, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function advanceRolloutExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $phaseId = 'phaseId-1676299681';
- $request = (new AdvanceRolloutRequest())
- ->setName($formattedName)
- ->setPhaseId($phaseId);
- try {
- $gapicClient->advanceRollout($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function approveRolloutTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new ApproveRolloutResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $approved = false;
- $request = (new ApproveRolloutRequest())
- ->setName($formattedName)
- ->setApproved($approved);
- $response = $gapicClient->approveRollout($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ApproveRollout', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $actualValue = $actualRequestObject->getApproved();
- $this->assertProtobufEquals($approved, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function approveRolloutExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $approved = false;
- $request = (new ApproveRolloutRequest())
- ->setName($formattedName)
- ->setApproved($approved);
- try {
- $gapicClient->approveRollout($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function cancelAutomationRunTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new CancelAutomationRunResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->automationRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION_RUN]');
- $request = (new CancelAutomationRunRequest())
- ->setName($formattedName);
- $response = $gapicClient->cancelAutomationRun($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CancelAutomationRun', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function cancelAutomationRunExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->automationRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION_RUN]');
- $request = (new CancelAutomationRunRequest())
- ->setName($formattedName);
- try {
- $gapicClient->cancelAutomationRun($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function cancelRolloutTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new CancelRolloutResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $request = (new CancelRolloutRequest())
- ->setName($formattedName);
- $response = $gapicClient->cancelRollout($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CancelRollout', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function cancelRolloutExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $request = (new CancelRolloutRequest())
- ->setName($formattedName);
- try {
- $gapicClient->cancelRollout($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function createAutomationTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createAutomationTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $etag = 'etag3123477';
- $suspended = false;
- $serviceAccount = 'serviceAccount-1948028253';
- $expectedResponse = new Automation();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setSuspended($suspended);
- $expectedResponse->setServiceAccount($serviceAccount);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createAutomationTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $automationId = 'automationId1989390659';
- $automation = new Automation();
- $automationServiceAccount = 'automationServiceAccount-192216401';
- $automation->setServiceAccount($automationServiceAccount);
- $automationSelector = new AutomationResourceSelector();
- $automation->setSelector($automationSelector);
- $automationRules = [];
- $automation->setRules($automationRules);
- $request = (new CreateAutomationRequest())
- ->setParent($formattedParent)
- ->setAutomationId($automationId)
- ->setAutomation($automation);
- $response = $gapicClient->createAutomation($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateAutomation', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getAutomationId();
- $this->assertProtobufEquals($automationId, $actualValue);
- $actualValue = $actualApiRequestObject->getAutomation();
- $this->assertProtobufEquals($automation, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createAutomationTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createAutomationExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createAutomationTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $automationId = 'automationId1989390659';
- $automation = new Automation();
- $automationServiceAccount = 'automationServiceAccount-192216401';
- $automation->setServiceAccount($automationServiceAccount);
- $automationSelector = new AutomationResourceSelector();
- $automation->setSelector($automationSelector);
- $automationRules = [];
- $automation->setRules($automationRules);
- $request = (new CreateAutomationRequest())
- ->setParent($formattedParent)
- ->setAutomationId($automationId)
- ->setAutomation($automation);
- $response = $gapicClient->createAutomation($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createAutomationTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createCustomTargetTypeTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createCustomTargetTypeTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $customTargetTypeId2 = 'customTargetTypeId2-1392620077';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $etag = 'etag3123477';
- $expectedResponse = new CustomTargetType();
- $expectedResponse->setName($name);
- $expectedResponse->setCustomTargetTypeId($customTargetTypeId2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setEtag($etag);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createCustomTargetTypeTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $customTargetTypeId = 'customTargetTypeId-2048374240';
- $customTargetType = new CustomTargetType();
- $request = (new CreateCustomTargetTypeRequest())
- ->setParent($formattedParent)
- ->setCustomTargetTypeId($customTargetTypeId)
- ->setCustomTargetType($customTargetType);
- $response = $gapicClient->createCustomTargetType($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateCustomTargetType', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getCustomTargetTypeId();
- $this->assertProtobufEquals($customTargetTypeId, $actualValue);
- $actualValue = $actualApiRequestObject->getCustomTargetType();
- $this->assertProtobufEquals($customTargetType, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createCustomTargetTypeTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createCustomTargetTypeExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createCustomTargetTypeTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $customTargetTypeId = 'customTargetTypeId-2048374240';
- $customTargetType = new CustomTargetType();
- $request = (new CreateCustomTargetTypeRequest())
- ->setParent($formattedParent)
- ->setCustomTargetTypeId($customTargetTypeId)
- ->setCustomTargetType($customTargetType);
- $response = $gapicClient->createCustomTargetType($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createCustomTargetTypeTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createDeliveryPipelineTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createDeliveryPipelineTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $etag = 'etag3123477';
- $suspended = false;
- $expectedResponse = new DeliveryPipeline();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setSuspended($suspended);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createDeliveryPipelineTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $deliveryPipelineId = 'deliveryPipelineId1972590605';
- $deliveryPipeline = new DeliveryPipeline();
- $request = (new CreateDeliveryPipelineRequest())
- ->setParent($formattedParent)
- ->setDeliveryPipelineId($deliveryPipelineId)
- ->setDeliveryPipeline($deliveryPipeline);
- $response = $gapicClient->createDeliveryPipeline($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateDeliveryPipeline', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getDeliveryPipelineId();
- $this->assertProtobufEquals($deliveryPipelineId, $actualValue);
- $actualValue = $actualApiRequestObject->getDeliveryPipeline();
- $this->assertProtobufEquals($deliveryPipeline, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createDeliveryPipelineTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createDeliveryPipelineExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createDeliveryPipelineTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $deliveryPipelineId = 'deliveryPipelineId1972590605';
- $deliveryPipeline = new DeliveryPipeline();
- $request = (new CreateDeliveryPipelineRequest())
- ->setParent($formattedParent)
- ->setDeliveryPipelineId($deliveryPipelineId)
- ->setDeliveryPipeline($deliveryPipeline);
- $response = $gapicClient->createDeliveryPipeline($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createDeliveryPipelineTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createReleaseTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createReleaseTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $abandoned = true;
- $skaffoldConfigUri = 'skaffoldConfigUri-860592176';
- $skaffoldConfigPath = 'skaffoldConfigPath-908718527';
- $etag = 'etag3123477';
- $skaffoldVersion = 'skaffoldVersion-1146663017';
- $expectedResponse = new Release();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setAbandoned($abandoned);
- $expectedResponse->setSkaffoldConfigUri($skaffoldConfigUri);
- $expectedResponse->setSkaffoldConfigPath($skaffoldConfigPath);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setSkaffoldVersion($skaffoldVersion);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createReleaseTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $releaseId = 'releaseId-1517127597';
- $release = new Release();
- $request = (new CreateReleaseRequest())
- ->setParent($formattedParent)
- ->setReleaseId($releaseId)
- ->setRelease($release);
- $response = $gapicClient->createRelease($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateRelease', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getReleaseId();
- $this->assertProtobufEquals($releaseId, $actualValue);
- $actualValue = $actualApiRequestObject->getRelease();
- $this->assertProtobufEquals($release, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createReleaseTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createReleaseExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createReleaseTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $releaseId = 'releaseId-1517127597';
- $release = new Release();
- $request = (new CreateReleaseRequest())
- ->setParent($formattedParent)
- ->setReleaseId($releaseId)
- ->setRelease($release);
- $response = $gapicClient->createRelease($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createReleaseTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createRolloutTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createRolloutTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $targetId = 'targetId-815576439';
- $failureReason = 'failureReason1743941273';
- $deployingBuild = 'deployingBuild931623626';
- $etag = 'etag3123477';
- $controllerRollout = 'controllerRollout-146558962';
- $rollbackOfRollout = 'rollbackOfRollout-1880699004';
- $expectedResponse = new Rollout();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setTargetId($targetId);
- $expectedResponse->setFailureReason($failureReason);
- $expectedResponse->setDeployingBuild($deployingBuild);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setControllerRollout($controllerRollout);
- $expectedResponse->setRollbackOfRollout($rollbackOfRollout);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createRolloutTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]');
- $rolloutId = 'rolloutId-91142551';
- $rollout = new Rollout();
- $rolloutTargetId = 'rolloutTargetId509050717';
- $rollout->setTargetId($rolloutTargetId);
- $request = (new CreateRolloutRequest())
- ->setParent($formattedParent)
- ->setRolloutId($rolloutId)
- ->setRollout($rollout);
- $response = $gapicClient->createRollout($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateRollout', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getRolloutId();
- $this->assertProtobufEquals($rolloutId, $actualValue);
- $actualValue = $actualApiRequestObject->getRollout();
- $this->assertProtobufEquals($rollout, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createRolloutTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createRolloutExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createRolloutTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]');
- $rolloutId = 'rolloutId-91142551';
- $rollout = new Rollout();
- $rolloutTargetId = 'rolloutTargetId509050717';
- $rollout->setTargetId($rolloutTargetId);
- $request = (new CreateRolloutRequest())
- ->setParent($formattedParent)
- ->setRolloutId($rolloutId)
- ->setRollout($rollout);
- $response = $gapicClient->createRollout($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createRolloutTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createTargetTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createTargetTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $targetId2 = 'targetId2-2084907012';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $requireApproval = false;
- $etag = 'etag3123477';
- $expectedResponse = new Target();
- $expectedResponse->setName($name);
- $expectedResponse->setTargetId($targetId2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setRequireApproval($requireApproval);
- $expectedResponse->setEtag($etag);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createTargetTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $targetId = 'targetId-815576439';
- $target = new Target();
- $request = (new CreateTargetRequest())
- ->setParent($formattedParent)
- ->setTargetId($targetId)
- ->setTarget($target);
- $response = $gapicClient->createTarget($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateTarget', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getTargetId();
- $this->assertProtobufEquals($targetId, $actualValue);
- $actualValue = $actualApiRequestObject->getTarget();
- $this->assertProtobufEquals($target, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createTargetTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createTargetExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createTargetTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $targetId = 'targetId-815576439';
- $target = new Target();
- $request = (new CreateTargetRequest())
- ->setParent($formattedParent)
- ->setTargetId($targetId)
- ->setTarget($target);
- $response = $gapicClient->createTarget($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createTargetTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteAutomationTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteAutomationTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $expectedResponse = new GPBEmpty();
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/deleteAutomationTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->automationName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION]');
- $request = (new DeleteAutomationRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteAutomation($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/DeleteAutomation', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteAutomationTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteAutomationExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteAutomationTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->automationName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION]');
- $request = (new DeleteAutomationRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteAutomation($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteAutomationTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteCustomTargetTypeTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteCustomTargetTypeTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $expectedResponse = new GPBEmpty();
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/deleteCustomTargetTypeTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->customTargetTypeName('[PROJECT]', '[LOCATION]', '[CUSTOM_TARGET_TYPE]');
- $request = (new DeleteCustomTargetTypeRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteCustomTargetType($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/DeleteCustomTargetType', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteCustomTargetTypeTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteCustomTargetTypeExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteCustomTargetTypeTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->customTargetTypeName('[PROJECT]', '[LOCATION]', '[CUSTOM_TARGET_TYPE]');
- $request = (new DeleteCustomTargetTypeRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteCustomTargetType($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteCustomTargetTypeTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteDeliveryPipelineTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteDeliveryPipelineTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $expectedResponse = new GPBEmpty();
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/deleteDeliveryPipelineTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $request = (new DeleteDeliveryPipelineRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteDeliveryPipeline($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/DeleteDeliveryPipeline', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteDeliveryPipelineTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteDeliveryPipelineExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteDeliveryPipelineTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $request = (new DeleteDeliveryPipelineRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteDeliveryPipeline($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteDeliveryPipelineTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteTargetTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteTargetTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $expectedResponse = new GPBEmpty();
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/deleteTargetTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->targetName('[PROJECT]', '[LOCATION]', '[TARGET]');
- $request = (new DeleteTargetRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteTarget($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/DeleteTarget', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteTargetTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteTargetExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteTargetTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->targetName('[PROJECT]', '[LOCATION]', '[TARGET]');
- $request = (new DeleteTargetRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteTarget($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteTargetTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function getAutomationTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $etag = 'etag3123477';
- $suspended = false;
- $serviceAccount = 'serviceAccount-1948028253';
- $expectedResponse = new Automation();
- $expectedResponse->setName($name2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setSuspended($suspended);
- $expectedResponse->setServiceAccount($serviceAccount);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->automationName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION]');
- $request = (new GetAutomationRequest())
- ->setName($formattedName);
- $response = $gapicClient->getAutomation($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetAutomation', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getAutomationExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->automationName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION]');
- $request = (new GetAutomationRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getAutomation($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getAutomationRunTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $etag = 'etag3123477';
- $serviceAccount = 'serviceAccount-1948028253';
- $targetId = 'targetId-815576439';
- $stateDescription = 'stateDescription1692226894';
- $ruleId = 'ruleId1548659006';
- $automationId = 'automationId1989390659';
- $expectedResponse = new AutomationRun();
- $expectedResponse->setName($name2);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setServiceAccount($serviceAccount);
- $expectedResponse->setTargetId($targetId);
- $expectedResponse->setStateDescription($stateDescription);
- $expectedResponse->setRuleId($ruleId);
- $expectedResponse->setAutomationId($automationId);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->automationRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION_RUN]');
- $request = (new GetAutomationRunRequest())
- ->setName($formattedName);
- $response = $gapicClient->getAutomationRun($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetAutomationRun', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getAutomationRunExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->automationRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION_RUN]');
- $request = (new GetAutomationRunRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getAutomationRun($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getConfigTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $defaultSkaffoldVersion = 'defaultSkaffoldVersion1930298837';
- $expectedResponse = new Config();
- $expectedResponse->setName($name2);
- $expectedResponse->setDefaultSkaffoldVersion($defaultSkaffoldVersion);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->configName('[PROJECT]', '[LOCATION]');
- $request = (new GetConfigRequest())
- ->setName($formattedName);
- $response = $gapicClient->getConfig($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetConfig', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getConfigExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->configName('[PROJECT]', '[LOCATION]');
- $request = (new GetConfigRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getConfig($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getCustomTargetTypeTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $customTargetTypeId = 'customTargetTypeId-2048374240';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $etag = 'etag3123477';
- $expectedResponse = new CustomTargetType();
- $expectedResponse->setName($name2);
- $expectedResponse->setCustomTargetTypeId($customTargetTypeId);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setEtag($etag);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->customTargetTypeName('[PROJECT]', '[LOCATION]', '[CUSTOM_TARGET_TYPE]');
- $request = (new GetCustomTargetTypeRequest())
- ->setName($formattedName);
- $response = $gapicClient->getCustomTargetType($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetCustomTargetType', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getCustomTargetTypeExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->customTargetTypeName('[PROJECT]', '[LOCATION]', '[CUSTOM_TARGET_TYPE]');
- $request = (new GetCustomTargetTypeRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getCustomTargetType($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getDeliveryPipelineTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $etag = 'etag3123477';
- $suspended = false;
- $expectedResponse = new DeliveryPipeline();
- $expectedResponse->setName($name2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setSuspended($suspended);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $request = (new GetDeliveryPipelineRequest())
- ->setName($formattedName);
- $response = $gapicClient->getDeliveryPipeline($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetDeliveryPipeline', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getDeliveryPipelineExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $request = (new GetDeliveryPipelineRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getDeliveryPipeline($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getJobRunTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $uid = 'uid115792';
- $phaseId = 'phaseId-1676299681';
- $jobId = 'jobId-1154752291';
- $etag = 'etag3123477';
- $expectedResponse = new JobRun();
- $expectedResponse->setName($name2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setPhaseId($phaseId);
- $expectedResponse->setJobId($jobId);
- $expectedResponse->setEtag($etag);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->jobRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]', '[JOB_RUN]');
- $request = (new GetJobRunRequest())
- ->setName($formattedName);
- $response = $gapicClient->getJobRun($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetJobRun', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getJobRunExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->jobRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]', '[JOB_RUN]');
- $request = (new GetJobRunRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getJobRun($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getReleaseTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $abandoned = true;
- $skaffoldConfigUri = 'skaffoldConfigUri-860592176';
- $skaffoldConfigPath = 'skaffoldConfigPath-908718527';
- $etag = 'etag3123477';
- $skaffoldVersion = 'skaffoldVersion-1146663017';
- $expectedResponse = new Release();
- $expectedResponse->setName($name2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setAbandoned($abandoned);
- $expectedResponse->setSkaffoldConfigUri($skaffoldConfigUri);
- $expectedResponse->setSkaffoldConfigPath($skaffoldConfigPath);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setSkaffoldVersion($skaffoldVersion);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]');
- $request = (new GetReleaseRequest())
- ->setName($formattedName);
- $response = $gapicClient->getRelease($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetRelease', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getReleaseExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]');
- $request = (new GetReleaseRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getRelease($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getRolloutTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $targetId = 'targetId-815576439';
- $failureReason = 'failureReason1743941273';
- $deployingBuild = 'deployingBuild931623626';
- $etag = 'etag3123477';
- $controllerRollout = 'controllerRollout-146558962';
- $rollbackOfRollout = 'rollbackOfRollout-1880699004';
- $expectedResponse = new Rollout();
- $expectedResponse->setName($name2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setTargetId($targetId);
- $expectedResponse->setFailureReason($failureReason);
- $expectedResponse->setDeployingBuild($deployingBuild);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setControllerRollout($controllerRollout);
- $expectedResponse->setRollbackOfRollout($rollbackOfRollout);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $request = (new GetRolloutRequest())
- ->setName($formattedName);
- $response = $gapicClient->getRollout($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetRollout', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getRolloutExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $request = (new GetRolloutRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getRollout($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getTargetTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $targetId = 'targetId-815576439';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $requireApproval = false;
- $etag = 'etag3123477';
- $expectedResponse = new Target();
- $expectedResponse->setName($name2);
- $expectedResponse->setTargetId($targetId);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setRequireApproval($requireApproval);
- $expectedResponse->setEtag($etag);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->targetName('[PROJECT]', '[LOCATION]', '[TARGET]');
- $request = (new GetTargetRequest())
- ->setName($formattedName);
- $response = $gapicClient->getTarget($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetTarget', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getTargetExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->targetName('[PROJECT]', '[LOCATION]', '[TARGET]');
- $request = (new GetTargetRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getTarget($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function ignoreJobTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new IgnoreJobResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedRollout = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $phaseId = 'phaseId-1676299681';
- $jobId = 'jobId-1154752291';
- $request = (new IgnoreJobRequest())
- ->setRollout($formattedRollout)
- ->setPhaseId($phaseId)
- ->setJobId($jobId);
- $response = $gapicClient->ignoreJob($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/IgnoreJob', $actualFuncCall);
- $actualValue = $actualRequestObject->getRollout();
- $this->assertProtobufEquals($formattedRollout, $actualValue);
- $actualValue = $actualRequestObject->getPhaseId();
- $this->assertProtobufEquals($phaseId, $actualValue);
- $actualValue = $actualRequestObject->getJobId();
- $this->assertProtobufEquals($jobId, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function ignoreJobExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedRollout = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $phaseId = 'phaseId-1676299681';
- $jobId = 'jobId-1154752291';
- $request = (new IgnoreJobRequest())
- ->setRollout($formattedRollout)
- ->setPhaseId($phaseId)
- ->setJobId($jobId);
- try {
- $gapicClient->ignoreJob($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listAutomationRunsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $automationRunsElement = new AutomationRun();
- $automationRuns = [
- $automationRunsElement,
- ];
- $expectedResponse = new ListAutomationRunsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setAutomationRuns($automationRuns);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $request = (new ListAutomationRunsRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listAutomationRuns($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getAutomationRuns()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListAutomationRuns', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listAutomationRunsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $request = (new ListAutomationRunsRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listAutomationRuns($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listAutomationsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $automationsElement = new Automation();
- $automations = [
- $automationsElement,
- ];
- $expectedResponse = new ListAutomationsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setAutomations($automations);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $request = (new ListAutomationsRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listAutomations($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getAutomations()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListAutomations', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listAutomationsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $request = (new ListAutomationsRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listAutomations($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listCustomTargetTypesTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $customTargetTypesElement = new CustomTargetType();
- $customTargetTypes = [
- $customTargetTypesElement,
- ];
- $expectedResponse = new ListCustomTargetTypesResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setCustomTargetTypes($customTargetTypes);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListCustomTargetTypesRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listCustomTargetTypes($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getCustomTargetTypes()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListCustomTargetTypes', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listCustomTargetTypesExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListCustomTargetTypesRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listCustomTargetTypes($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listDeliveryPipelinesTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $deliveryPipelinesElement = new DeliveryPipeline();
- $deliveryPipelines = [
- $deliveryPipelinesElement,
- ];
- $expectedResponse = new ListDeliveryPipelinesResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setDeliveryPipelines($deliveryPipelines);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListDeliveryPipelinesRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listDeliveryPipelines($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getDeliveryPipelines()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListDeliveryPipelines', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listDeliveryPipelinesExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListDeliveryPipelinesRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listDeliveryPipelines($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listJobRunsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $jobRunsElement = new JobRun();
- $jobRuns = [
- $jobRunsElement,
- ];
- $expectedResponse = new ListJobRunsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setJobRuns($jobRuns);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $request = (new ListJobRunsRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listJobRuns($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getJobRuns()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListJobRuns', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listJobRunsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $request = (new ListJobRunsRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listJobRuns($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listReleasesTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $releasesElement = new Release();
- $releases = [
- $releasesElement,
- ];
- $expectedResponse = new ListReleasesResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setReleases($releases);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $request = (new ListReleasesRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listReleases($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getReleases()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListReleases', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listReleasesExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $request = (new ListReleasesRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listReleases($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listRolloutsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $rolloutsElement = new Rollout();
- $rollouts = [
- $rolloutsElement,
- ];
- $expectedResponse = new ListRolloutsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setRollouts($rollouts);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]');
- $request = (new ListRolloutsRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listRollouts($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getRollouts()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListRollouts', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listRolloutsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]');
- $request = (new ListRolloutsRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listRollouts($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listTargetsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $targetsElement = new Target();
- $targets = [
- $targetsElement,
- ];
- $expectedResponse = new ListTargetsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setTargets($targets);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListTargetsRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listTargets($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getTargets()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListTargets', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listTargetsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListTargetsRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listTargets($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function retryJobTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new RetryJobResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedRollout = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $phaseId = 'phaseId-1676299681';
- $jobId = 'jobId-1154752291';
- $request = (new RetryJobRequest())
- ->setRollout($formattedRollout)
- ->setPhaseId($phaseId)
- ->setJobId($jobId);
- $response = $gapicClient->retryJob($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/RetryJob', $actualFuncCall);
- $actualValue = $actualRequestObject->getRollout();
- $this->assertProtobufEquals($formattedRollout, $actualValue);
- $actualValue = $actualRequestObject->getPhaseId();
- $this->assertProtobufEquals($phaseId, $actualValue);
- $actualValue = $actualRequestObject->getJobId();
- $this->assertProtobufEquals($jobId, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function retryJobExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedRollout = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $phaseId = 'phaseId-1676299681';
- $jobId = 'jobId-1154752291';
- $request = (new RetryJobRequest())
- ->setRollout($formattedRollout)
- ->setPhaseId($phaseId)
- ->setJobId($jobId);
- try {
- $gapicClient->retryJob($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function rollbackTargetTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new RollbackTargetResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $targetId = 'targetId-815576439';
- $rolloutId = 'rolloutId-91142551';
- $request = (new RollbackTargetRequest())
- ->setName($formattedName)
- ->setTargetId($targetId)
- ->setRolloutId($rolloutId);
- $response = $gapicClient->rollbackTarget($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/RollbackTarget', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $actualValue = $actualRequestObject->getTargetId();
- $this->assertProtobufEquals($targetId, $actualValue);
- $actualValue = $actualRequestObject->getRolloutId();
- $this->assertProtobufEquals($rolloutId, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function rollbackTargetExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $targetId = 'targetId-815576439';
- $rolloutId = 'rolloutId-91142551';
- $request = (new RollbackTargetRequest())
- ->setName($formattedName)
- ->setTargetId($targetId)
- ->setRolloutId($rolloutId);
- try {
- $gapicClient->rollbackTarget($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function terminateJobRunTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new TerminateJobRunResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->jobRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]', '[JOB_RUN]');
- $request = (new TerminateJobRunRequest())
- ->setName($formattedName);
- $response = $gapicClient->terminateJobRun($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/TerminateJobRun', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function terminateJobRunExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->jobRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]', '[JOB_RUN]');
- $request = (new TerminateJobRunRequest())
- ->setName($formattedName);
- try {
- $gapicClient->terminateJobRun($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function updateAutomationTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateAutomationTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $etag = 'etag3123477';
- $suspended = false;
- $serviceAccount = 'serviceAccount-1948028253';
- $expectedResponse = new Automation();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setSuspended($suspended);
- $expectedResponse->setServiceAccount($serviceAccount);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/updateAutomationTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $updateMask = new FieldMask();
- $automation = new Automation();
- $automationServiceAccount = 'automationServiceAccount-192216401';
- $automation->setServiceAccount($automationServiceAccount);
- $automationSelector = new AutomationResourceSelector();
- $automation->setSelector($automationSelector);
- $automationRules = [];
- $automation->setRules($automationRules);
- $request = (new UpdateAutomationRequest())
- ->setUpdateMask($updateMask)
- ->setAutomation($automation);
- $response = $gapicClient->updateAutomation($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/UpdateAutomation', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getUpdateMask();
- $this->assertProtobufEquals($updateMask, $actualValue);
- $actualValue = $actualApiRequestObject->getAutomation();
- $this->assertProtobufEquals($automation, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateAutomationTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateAutomationExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateAutomationTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $updateMask = new FieldMask();
- $automation = new Automation();
- $automationServiceAccount = 'automationServiceAccount-192216401';
- $automation->setServiceAccount($automationServiceAccount);
- $automationSelector = new AutomationResourceSelector();
- $automation->setSelector($automationSelector);
- $automationRules = [];
- $automation->setRules($automationRules);
- $request = (new UpdateAutomationRequest())
- ->setUpdateMask($updateMask)
- ->setAutomation($automation);
- $response = $gapicClient->updateAutomation($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateAutomationTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateCustomTargetTypeTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateCustomTargetTypeTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $customTargetTypeId = 'customTargetTypeId-2048374240';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $etag = 'etag3123477';
- $expectedResponse = new CustomTargetType();
- $expectedResponse->setName($name);
- $expectedResponse->setCustomTargetTypeId($customTargetTypeId);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setEtag($etag);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/updateCustomTargetTypeTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $updateMask = new FieldMask();
- $customTargetType = new CustomTargetType();
- $request = (new UpdateCustomTargetTypeRequest())
- ->setUpdateMask($updateMask)
- ->setCustomTargetType($customTargetType);
- $response = $gapicClient->updateCustomTargetType($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/UpdateCustomTargetType', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getUpdateMask();
- $this->assertProtobufEquals($updateMask, $actualValue);
- $actualValue = $actualApiRequestObject->getCustomTargetType();
- $this->assertProtobufEquals($customTargetType, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateCustomTargetTypeTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateCustomTargetTypeExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateCustomTargetTypeTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $updateMask = new FieldMask();
- $customTargetType = new CustomTargetType();
- $request = (new UpdateCustomTargetTypeRequest())
- ->setUpdateMask($updateMask)
- ->setCustomTargetType($customTargetType);
- $response = $gapicClient->updateCustomTargetType($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateCustomTargetTypeTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateDeliveryPipelineTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateDeliveryPipelineTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $etag = 'etag3123477';
- $suspended = false;
- $expectedResponse = new DeliveryPipeline();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setSuspended($suspended);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/updateDeliveryPipelineTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $updateMask = new FieldMask();
- $deliveryPipeline = new DeliveryPipeline();
- $request = (new UpdateDeliveryPipelineRequest())
- ->setUpdateMask($updateMask)
- ->setDeliveryPipeline($deliveryPipeline);
- $response = $gapicClient->updateDeliveryPipeline($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/UpdateDeliveryPipeline', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getUpdateMask();
- $this->assertProtobufEquals($updateMask, $actualValue);
- $actualValue = $actualApiRequestObject->getDeliveryPipeline();
- $this->assertProtobufEquals($deliveryPipeline, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateDeliveryPipelineTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateDeliveryPipelineExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateDeliveryPipelineTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $updateMask = new FieldMask();
- $deliveryPipeline = new DeliveryPipeline();
- $request = (new UpdateDeliveryPipelineRequest())
- ->setUpdateMask($updateMask)
- ->setDeliveryPipeline($deliveryPipeline);
- $response = $gapicClient->updateDeliveryPipeline($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateDeliveryPipelineTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateTargetTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateTargetTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $targetId = 'targetId-815576439';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $requireApproval = false;
- $etag = 'etag3123477';
- $expectedResponse = new Target();
- $expectedResponse->setName($name);
- $expectedResponse->setTargetId($targetId);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setRequireApproval($requireApproval);
- $expectedResponse->setEtag($etag);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/updateTargetTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $updateMask = new FieldMask();
- $target = new Target();
- $request = (new UpdateTargetRequest())
- ->setUpdateMask($updateMask)
- ->setTarget($target);
- $response = $gapicClient->updateTarget($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/UpdateTarget', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getUpdateMask();
- $this->assertProtobufEquals($updateMask, $actualValue);
- $actualValue = $actualApiRequestObject->getTarget();
- $this->assertProtobufEquals($target, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateTargetTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateTargetExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateTargetTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $updateMask = new FieldMask();
- $target = new Target();
- $request = (new UpdateTargetRequest())
- ->setUpdateMask($updateMask)
- ->setTarget($target);
- $response = $gapicClient->updateTarget($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateTargetTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function getLocationTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $locationId = 'locationId552319461';
- $displayName = 'displayName1615086568';
- $expectedResponse = new Location();
- $expectedResponse->setName($name2);
- $expectedResponse->setLocationId($locationId);
- $expectedResponse->setDisplayName($displayName);
- $transport->addResponse($expectedResponse);
- $request = new GetLocationRequest();
- $response = $gapicClient->getLocation($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getLocationExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- $request = new GetLocationRequest();
- try {
- $gapicClient->getLocation($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listLocationsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $locationsElement = new Location();
- $locations = [
- $locationsElement,
- ];
- $expectedResponse = new ListLocationsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setLocations($locations);
- $transport->addResponse($expectedResponse);
- $request = new ListLocationsRequest();
- $response = $gapicClient->listLocations($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listLocationsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- $request = new ListLocationsRequest();
- try {
- $gapicClient->listLocations($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getIamPolicyTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $version = 351608024;
- $etag = '21';
- $expectedResponse = new Policy();
- $expectedResponse->setVersion($version);
- $expectedResponse->setEtag($etag);
- $transport->addResponse($expectedResponse);
- // Mock request
- $resource = 'resource-341064690';
- $request = (new GetIamPolicyRequest())
- ->setResource($resource);
- $response = $gapicClient->getIamPolicy($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall);
- $actualValue = $actualRequestObject->getResource();
- $this->assertProtobufEquals($resource, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getIamPolicyExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $resource = 'resource-341064690';
- $request = (new GetIamPolicyRequest())
- ->setResource($resource);
- try {
- $gapicClient->getIamPolicy($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function setIamPolicyTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $version = 351608024;
- $etag = '21';
- $expectedResponse = new Policy();
- $expectedResponse->setVersion($version);
- $expectedResponse->setEtag($etag);
- $transport->addResponse($expectedResponse);
- // Mock request
- $resource = 'resource-341064690';
- $policy = new Policy();
- $request = (new SetIamPolicyRequest())
- ->setResource($resource)
- ->setPolicy($policy);
- $response = $gapicClient->setIamPolicy($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall);
- $actualValue = $actualRequestObject->getResource();
- $this->assertProtobufEquals($resource, $actualValue);
- $actualValue = $actualRequestObject->getPolicy();
- $this->assertProtobufEquals($policy, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function setIamPolicyExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $resource = 'resource-341064690';
- $policy = new Policy();
- $request = (new SetIamPolicyRequest())
- ->setResource($resource)
- ->setPolicy($policy);
- try {
- $gapicClient->setIamPolicy($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function testIamPermissionsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new TestIamPermissionsResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $resource = 'resource-341064690';
- $permissions = [];
- $request = (new TestIamPermissionsRequest())
- ->setResource($resource)
- ->setPermissions($permissions);
- $response = $gapicClient->testIamPermissions($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall);
- $actualValue = $actualRequestObject->getResource();
- $this->assertProtobufEquals($resource, $actualValue);
- $actualValue = $actualRequestObject->getPermissions();
- $this->assertProtobufEquals($permissions, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function testIamPermissionsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $resource = 'resource-341064690';
- $permissions = [];
- $request = (new TestIamPermissionsRequest())
- ->setResource($resource)
- ->setPermissions($permissions);
- try {
- $gapicClient->testIamPermissions($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function abandonReleaseAsyncTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new AbandonReleaseResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]');
- $request = (new AbandonReleaseRequest())
- ->setName($formattedName);
- $response = $gapicClient->abandonReleaseAsync($request)->wait();
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/AbandonRelease', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-}
diff --git a/owl-bot-staging/Deploy/v1/tests/Unit/V1/CloudDeployClientTest.php b/owl-bot-staging/Deploy/v1/tests/Unit/V1/CloudDeployClientTest.php
deleted file mode 100644
index cc3912565166..000000000000
--- a/owl-bot-staging/Deploy/v1/tests/Unit/V1/CloudDeployClientTest.php
+++ /dev/null
@@ -1,3985 +0,0 @@
-getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock();
- }
-
- /** @return CloudDeployClient */
- private function createClient(array $options = [])
- {
- $options += [
- 'credentials' => $this->createCredentials(),
- ];
- return new CloudDeployClient($options);
- }
-
- /** @test */
- public function abandonReleaseTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new AbandonReleaseResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]');
- $response = $gapicClient->abandonRelease($formattedName);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/AbandonRelease', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function abandonReleaseExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]');
- try {
- $gapicClient->abandonRelease($formattedName);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function advanceRolloutTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new AdvanceRolloutResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $phaseId = 'phaseId-1676299681';
- $response = $gapicClient->advanceRollout($formattedName, $phaseId);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/AdvanceRollout', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $actualValue = $actualRequestObject->getPhaseId();
- $this->assertProtobufEquals($phaseId, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function advanceRolloutExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $phaseId = 'phaseId-1676299681';
- try {
- $gapicClient->advanceRollout($formattedName, $phaseId);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function approveRolloutTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new ApproveRolloutResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $approved = false;
- $response = $gapicClient->approveRollout($formattedName, $approved);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ApproveRollout', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $actualValue = $actualRequestObject->getApproved();
- $this->assertProtobufEquals($approved, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function approveRolloutExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $approved = false;
- try {
- $gapicClient->approveRollout($formattedName, $approved);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function cancelAutomationRunTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new CancelAutomationRunResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->automationRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION_RUN]');
- $response = $gapicClient->cancelAutomationRun($formattedName);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CancelAutomationRun', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function cancelAutomationRunExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->automationRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION_RUN]');
- try {
- $gapicClient->cancelAutomationRun($formattedName);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function cancelRolloutTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new CancelRolloutResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $response = $gapicClient->cancelRollout($formattedName);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CancelRollout', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function cancelRolloutExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- try {
- $gapicClient->cancelRollout($formattedName);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function createAutomationTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createAutomationTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $etag = 'etag3123477';
- $suspended = false;
- $serviceAccount = 'serviceAccount-1948028253';
- $expectedResponse = new Automation();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setSuspended($suspended);
- $expectedResponse->setServiceAccount($serviceAccount);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createAutomationTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $automationId = 'automationId1989390659';
- $automation = new Automation();
- $automationServiceAccount = 'automationServiceAccount-192216401';
- $automation->setServiceAccount($automationServiceAccount);
- $automationSelector = new AutomationResourceSelector();
- $automation->setSelector($automationSelector);
- $automationRules = [];
- $automation->setRules($automationRules);
- $response = $gapicClient->createAutomation($formattedParent, $automationId, $automation);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateAutomation', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getAutomationId();
- $this->assertProtobufEquals($automationId, $actualValue);
- $actualValue = $actualApiRequestObject->getAutomation();
- $this->assertProtobufEquals($automation, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createAutomationTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createAutomationExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createAutomationTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $automationId = 'automationId1989390659';
- $automation = new Automation();
- $automationServiceAccount = 'automationServiceAccount-192216401';
- $automation->setServiceAccount($automationServiceAccount);
- $automationSelector = new AutomationResourceSelector();
- $automation->setSelector($automationSelector);
- $automationRules = [];
- $automation->setRules($automationRules);
- $response = $gapicClient->createAutomation($formattedParent, $automationId, $automation);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createAutomationTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createCustomTargetTypeTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createCustomTargetTypeTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $customTargetTypeId2 = 'customTargetTypeId2-1392620077';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $etag = 'etag3123477';
- $expectedResponse = new CustomTargetType();
- $expectedResponse->setName($name);
- $expectedResponse->setCustomTargetTypeId($customTargetTypeId2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setEtag($etag);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createCustomTargetTypeTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $customTargetTypeId = 'customTargetTypeId-2048374240';
- $customTargetType = new CustomTargetType();
- $response = $gapicClient->createCustomTargetType($formattedParent, $customTargetTypeId, $customTargetType);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateCustomTargetType', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getCustomTargetTypeId();
- $this->assertProtobufEquals($customTargetTypeId, $actualValue);
- $actualValue = $actualApiRequestObject->getCustomTargetType();
- $this->assertProtobufEquals($customTargetType, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createCustomTargetTypeTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createCustomTargetTypeExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createCustomTargetTypeTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $customTargetTypeId = 'customTargetTypeId-2048374240';
- $customTargetType = new CustomTargetType();
- $response = $gapicClient->createCustomTargetType($formattedParent, $customTargetTypeId, $customTargetType);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createCustomTargetTypeTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createDeliveryPipelineTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createDeliveryPipelineTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $etag = 'etag3123477';
- $suspended = false;
- $expectedResponse = new DeliveryPipeline();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setSuspended($suspended);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createDeliveryPipelineTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $deliveryPipelineId = 'deliveryPipelineId1972590605';
- $deliveryPipeline = new DeliveryPipeline();
- $response = $gapicClient->createDeliveryPipeline($formattedParent, $deliveryPipelineId, $deliveryPipeline);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateDeliveryPipeline', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getDeliveryPipelineId();
- $this->assertProtobufEquals($deliveryPipelineId, $actualValue);
- $actualValue = $actualApiRequestObject->getDeliveryPipeline();
- $this->assertProtobufEquals($deliveryPipeline, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createDeliveryPipelineTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createDeliveryPipelineExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createDeliveryPipelineTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $deliveryPipelineId = 'deliveryPipelineId1972590605';
- $deliveryPipeline = new DeliveryPipeline();
- $response = $gapicClient->createDeliveryPipeline($formattedParent, $deliveryPipelineId, $deliveryPipeline);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createDeliveryPipelineTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createReleaseTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createReleaseTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $abandoned = true;
- $skaffoldConfigUri = 'skaffoldConfigUri-860592176';
- $skaffoldConfigPath = 'skaffoldConfigPath-908718527';
- $etag = 'etag3123477';
- $skaffoldVersion = 'skaffoldVersion-1146663017';
- $expectedResponse = new Release();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setAbandoned($abandoned);
- $expectedResponse->setSkaffoldConfigUri($skaffoldConfigUri);
- $expectedResponse->setSkaffoldConfigPath($skaffoldConfigPath);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setSkaffoldVersion($skaffoldVersion);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createReleaseTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $releaseId = 'releaseId-1517127597';
- $release = new Release();
- $response = $gapicClient->createRelease($formattedParent, $releaseId, $release);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateRelease', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getReleaseId();
- $this->assertProtobufEquals($releaseId, $actualValue);
- $actualValue = $actualApiRequestObject->getRelease();
- $this->assertProtobufEquals($release, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createReleaseTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createReleaseExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createReleaseTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $releaseId = 'releaseId-1517127597';
- $release = new Release();
- $response = $gapicClient->createRelease($formattedParent, $releaseId, $release);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createReleaseTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createRolloutTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createRolloutTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $targetId = 'targetId-815576439';
- $failureReason = 'failureReason1743941273';
- $deployingBuild = 'deployingBuild931623626';
- $etag = 'etag3123477';
- $controllerRollout = 'controllerRollout-146558962';
- $rollbackOfRollout = 'rollbackOfRollout-1880699004';
- $expectedResponse = new Rollout();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setTargetId($targetId);
- $expectedResponse->setFailureReason($failureReason);
- $expectedResponse->setDeployingBuild($deployingBuild);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setControllerRollout($controllerRollout);
- $expectedResponse->setRollbackOfRollout($rollbackOfRollout);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createRolloutTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]');
- $rolloutId = 'rolloutId-91142551';
- $rollout = new Rollout();
- $rolloutTargetId = 'rolloutTargetId509050717';
- $rollout->setTargetId($rolloutTargetId);
- $response = $gapicClient->createRollout($formattedParent, $rolloutId, $rollout);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateRollout', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getRolloutId();
- $this->assertProtobufEquals($rolloutId, $actualValue);
- $actualValue = $actualApiRequestObject->getRollout();
- $this->assertProtobufEquals($rollout, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createRolloutTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createRolloutExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createRolloutTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]');
- $rolloutId = 'rolloutId-91142551';
- $rollout = new Rollout();
- $rolloutTargetId = 'rolloutTargetId509050717';
- $rollout->setTargetId($rolloutTargetId);
- $response = $gapicClient->createRollout($formattedParent, $rolloutId, $rollout);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createRolloutTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createTargetTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createTargetTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $targetId2 = 'targetId2-2084907012';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $requireApproval = false;
- $etag = 'etag3123477';
- $expectedResponse = new Target();
- $expectedResponse->setName($name);
- $expectedResponse->setTargetId($targetId2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setRequireApproval($requireApproval);
- $expectedResponse->setEtag($etag);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createTargetTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $targetId = 'targetId-815576439';
- $target = new Target();
- $response = $gapicClient->createTarget($formattedParent, $targetId, $target);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateTarget', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getTargetId();
- $this->assertProtobufEquals($targetId, $actualValue);
- $actualValue = $actualApiRequestObject->getTarget();
- $this->assertProtobufEquals($target, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createTargetTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createTargetExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createTargetTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $targetId = 'targetId-815576439';
- $target = new Target();
- $response = $gapicClient->createTarget($formattedParent, $targetId, $target);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createTargetTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteAutomationTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteAutomationTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $expectedResponse = new GPBEmpty();
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/deleteAutomationTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->automationName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION]');
- $response = $gapicClient->deleteAutomation($formattedName);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/DeleteAutomation', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteAutomationTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteAutomationExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteAutomationTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->automationName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION]');
- $response = $gapicClient->deleteAutomation($formattedName);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteAutomationTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteCustomTargetTypeTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteCustomTargetTypeTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $expectedResponse = new GPBEmpty();
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/deleteCustomTargetTypeTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->customTargetTypeName('[PROJECT]', '[LOCATION]', '[CUSTOM_TARGET_TYPE]');
- $response = $gapicClient->deleteCustomTargetType($formattedName);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/DeleteCustomTargetType', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteCustomTargetTypeTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteCustomTargetTypeExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteCustomTargetTypeTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->customTargetTypeName('[PROJECT]', '[LOCATION]', '[CUSTOM_TARGET_TYPE]');
- $response = $gapicClient->deleteCustomTargetType($formattedName);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteCustomTargetTypeTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteDeliveryPipelineTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteDeliveryPipelineTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $expectedResponse = new GPBEmpty();
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/deleteDeliveryPipelineTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $response = $gapicClient->deleteDeliveryPipeline($formattedName);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/DeleteDeliveryPipeline', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteDeliveryPipelineTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteDeliveryPipelineExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteDeliveryPipelineTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $response = $gapicClient->deleteDeliveryPipeline($formattedName);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteDeliveryPipelineTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteTargetTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteTargetTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $expectedResponse = new GPBEmpty();
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/deleteTargetTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->targetName('[PROJECT]', '[LOCATION]', '[TARGET]');
- $response = $gapicClient->deleteTarget($formattedName);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/DeleteTarget', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteTargetTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteTargetExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteTargetTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->targetName('[PROJECT]', '[LOCATION]', '[TARGET]');
- $response = $gapicClient->deleteTarget($formattedName);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteTargetTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function getAutomationTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $etag = 'etag3123477';
- $suspended = false;
- $serviceAccount = 'serviceAccount-1948028253';
- $expectedResponse = new Automation();
- $expectedResponse->setName($name2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setSuspended($suspended);
- $expectedResponse->setServiceAccount($serviceAccount);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->automationName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION]');
- $response = $gapicClient->getAutomation($formattedName);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetAutomation', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getAutomationExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->automationName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION]');
- try {
- $gapicClient->getAutomation($formattedName);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getAutomationRunTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $etag = 'etag3123477';
- $serviceAccount = 'serviceAccount-1948028253';
- $targetId = 'targetId-815576439';
- $stateDescription = 'stateDescription1692226894';
- $ruleId = 'ruleId1548659006';
- $automationId = 'automationId1989390659';
- $expectedResponse = new AutomationRun();
- $expectedResponse->setName($name2);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setServiceAccount($serviceAccount);
- $expectedResponse->setTargetId($targetId);
- $expectedResponse->setStateDescription($stateDescription);
- $expectedResponse->setRuleId($ruleId);
- $expectedResponse->setAutomationId($automationId);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->automationRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION_RUN]');
- $response = $gapicClient->getAutomationRun($formattedName);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetAutomationRun', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getAutomationRunExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->automationRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION_RUN]');
- try {
- $gapicClient->getAutomationRun($formattedName);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getConfigTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $defaultSkaffoldVersion = 'defaultSkaffoldVersion1930298837';
- $expectedResponse = new Config();
- $expectedResponse->setName($name2);
- $expectedResponse->setDefaultSkaffoldVersion($defaultSkaffoldVersion);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->configName('[PROJECT]', '[LOCATION]');
- $response = $gapicClient->getConfig($formattedName);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetConfig', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getConfigExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->configName('[PROJECT]', '[LOCATION]');
- try {
- $gapicClient->getConfig($formattedName);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getCustomTargetTypeTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $customTargetTypeId = 'customTargetTypeId-2048374240';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $etag = 'etag3123477';
- $expectedResponse = new CustomTargetType();
- $expectedResponse->setName($name2);
- $expectedResponse->setCustomTargetTypeId($customTargetTypeId);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setEtag($etag);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->customTargetTypeName('[PROJECT]', '[LOCATION]', '[CUSTOM_TARGET_TYPE]');
- $response = $gapicClient->getCustomTargetType($formattedName);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetCustomTargetType', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getCustomTargetTypeExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->customTargetTypeName('[PROJECT]', '[LOCATION]', '[CUSTOM_TARGET_TYPE]');
- try {
- $gapicClient->getCustomTargetType($formattedName);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getDeliveryPipelineTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $etag = 'etag3123477';
- $suspended = false;
- $expectedResponse = new DeliveryPipeline();
- $expectedResponse->setName($name2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setSuspended($suspended);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $response = $gapicClient->getDeliveryPipeline($formattedName);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetDeliveryPipeline', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getDeliveryPipelineExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- try {
- $gapicClient->getDeliveryPipeline($formattedName);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getJobRunTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $uid = 'uid115792';
- $phaseId = 'phaseId-1676299681';
- $jobId = 'jobId-1154752291';
- $etag = 'etag3123477';
- $expectedResponse = new JobRun();
- $expectedResponse->setName($name2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setPhaseId($phaseId);
- $expectedResponse->setJobId($jobId);
- $expectedResponse->setEtag($etag);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->jobRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]', '[JOB_RUN]');
- $response = $gapicClient->getJobRun($formattedName);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetJobRun', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getJobRunExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->jobRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]', '[JOB_RUN]');
- try {
- $gapicClient->getJobRun($formattedName);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getReleaseTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $abandoned = true;
- $skaffoldConfigUri = 'skaffoldConfigUri-860592176';
- $skaffoldConfigPath = 'skaffoldConfigPath-908718527';
- $etag = 'etag3123477';
- $skaffoldVersion = 'skaffoldVersion-1146663017';
- $expectedResponse = new Release();
- $expectedResponse->setName($name2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setAbandoned($abandoned);
- $expectedResponse->setSkaffoldConfigUri($skaffoldConfigUri);
- $expectedResponse->setSkaffoldConfigPath($skaffoldConfigPath);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setSkaffoldVersion($skaffoldVersion);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]');
- $response = $gapicClient->getRelease($formattedName);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetRelease', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getReleaseExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]');
- try {
- $gapicClient->getRelease($formattedName);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getRolloutTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $targetId = 'targetId-815576439';
- $failureReason = 'failureReason1743941273';
- $deployingBuild = 'deployingBuild931623626';
- $etag = 'etag3123477';
- $controllerRollout = 'controllerRollout-146558962';
- $rollbackOfRollout = 'rollbackOfRollout-1880699004';
- $expectedResponse = new Rollout();
- $expectedResponse->setName($name2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setTargetId($targetId);
- $expectedResponse->setFailureReason($failureReason);
- $expectedResponse->setDeployingBuild($deployingBuild);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setControllerRollout($controllerRollout);
- $expectedResponse->setRollbackOfRollout($rollbackOfRollout);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $response = $gapicClient->getRollout($formattedName);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetRollout', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getRolloutExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- try {
- $gapicClient->getRollout($formattedName);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getTargetTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $targetId = 'targetId-815576439';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $requireApproval = false;
- $etag = 'etag3123477';
- $expectedResponse = new Target();
- $expectedResponse->setName($name2);
- $expectedResponse->setTargetId($targetId);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setRequireApproval($requireApproval);
- $expectedResponse->setEtag($etag);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->targetName('[PROJECT]', '[LOCATION]', '[TARGET]');
- $response = $gapicClient->getTarget($formattedName);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetTarget', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getTargetExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->targetName('[PROJECT]', '[LOCATION]', '[TARGET]');
- try {
- $gapicClient->getTarget($formattedName);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function ignoreJobTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new IgnoreJobResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedRollout = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $phaseId = 'phaseId-1676299681';
- $jobId = 'jobId-1154752291';
- $response = $gapicClient->ignoreJob($formattedRollout, $phaseId, $jobId);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/IgnoreJob', $actualFuncCall);
- $actualValue = $actualRequestObject->getRollout();
- $this->assertProtobufEquals($formattedRollout, $actualValue);
- $actualValue = $actualRequestObject->getPhaseId();
- $this->assertProtobufEquals($phaseId, $actualValue);
- $actualValue = $actualRequestObject->getJobId();
- $this->assertProtobufEquals($jobId, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function ignoreJobExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedRollout = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $phaseId = 'phaseId-1676299681';
- $jobId = 'jobId-1154752291';
- try {
- $gapicClient->ignoreJob($formattedRollout, $phaseId, $jobId);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listAutomationRunsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $automationRunsElement = new AutomationRun();
- $automationRuns = [
- $automationRunsElement,
- ];
- $expectedResponse = new ListAutomationRunsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setAutomationRuns($automationRuns);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $response = $gapicClient->listAutomationRuns($formattedParent);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getAutomationRuns()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListAutomationRuns', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listAutomationRunsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- try {
- $gapicClient->listAutomationRuns($formattedParent);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listAutomationsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $automationsElement = new Automation();
- $automations = [
- $automationsElement,
- ];
- $expectedResponse = new ListAutomationsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setAutomations($automations);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $response = $gapicClient->listAutomations($formattedParent);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getAutomations()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListAutomations', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listAutomationsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- try {
- $gapicClient->listAutomations($formattedParent);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listCustomTargetTypesTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $customTargetTypesElement = new CustomTargetType();
- $customTargetTypes = [
- $customTargetTypesElement,
- ];
- $expectedResponse = new ListCustomTargetTypesResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setCustomTargetTypes($customTargetTypes);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $response = $gapicClient->listCustomTargetTypes($formattedParent);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getCustomTargetTypes()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListCustomTargetTypes', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listCustomTargetTypesExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- try {
- $gapicClient->listCustomTargetTypes($formattedParent);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listDeliveryPipelinesTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $deliveryPipelinesElement = new DeliveryPipeline();
- $deliveryPipelines = [
- $deliveryPipelinesElement,
- ];
- $expectedResponse = new ListDeliveryPipelinesResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setDeliveryPipelines($deliveryPipelines);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $response = $gapicClient->listDeliveryPipelines($formattedParent);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getDeliveryPipelines()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListDeliveryPipelines', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listDeliveryPipelinesExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- try {
- $gapicClient->listDeliveryPipelines($formattedParent);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listJobRunsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $jobRunsElement = new JobRun();
- $jobRuns = [
- $jobRunsElement,
- ];
- $expectedResponse = new ListJobRunsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setJobRuns($jobRuns);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $response = $gapicClient->listJobRuns($formattedParent);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getJobRuns()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListJobRuns', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listJobRunsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- try {
- $gapicClient->listJobRuns($formattedParent);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listReleasesTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $releasesElement = new Release();
- $releases = [
- $releasesElement,
- ];
- $expectedResponse = new ListReleasesResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setReleases($releases);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $response = $gapicClient->listReleases($formattedParent);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getReleases()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListReleases', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listReleasesExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- try {
- $gapicClient->listReleases($formattedParent);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listRolloutsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $rolloutsElement = new Rollout();
- $rollouts = [
- $rolloutsElement,
- ];
- $expectedResponse = new ListRolloutsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setRollouts($rollouts);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]');
- $response = $gapicClient->listRollouts($formattedParent);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getRollouts()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListRollouts', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listRolloutsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]');
- try {
- $gapicClient->listRollouts($formattedParent);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listTargetsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $targetsElement = new Target();
- $targets = [
- $targetsElement,
- ];
- $expectedResponse = new ListTargetsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setTargets($targets);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $response = $gapicClient->listTargets($formattedParent);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getTargets()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListTargets', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listTargetsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- try {
- $gapicClient->listTargets($formattedParent);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function retryJobTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new RetryJobResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedRollout = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $phaseId = 'phaseId-1676299681';
- $jobId = 'jobId-1154752291';
- $response = $gapicClient->retryJob($formattedRollout, $phaseId, $jobId);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/RetryJob', $actualFuncCall);
- $actualValue = $actualRequestObject->getRollout();
- $this->assertProtobufEquals($formattedRollout, $actualValue);
- $actualValue = $actualRequestObject->getPhaseId();
- $this->assertProtobufEquals($phaseId, $actualValue);
- $actualValue = $actualRequestObject->getJobId();
- $this->assertProtobufEquals($jobId, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function retryJobExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedRollout = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]');
- $phaseId = 'phaseId-1676299681';
- $jobId = 'jobId-1154752291';
- try {
- $gapicClient->retryJob($formattedRollout, $phaseId, $jobId);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function rollbackTargetTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new RollbackTargetResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $targetId = 'targetId-815576439';
- $rolloutId = 'rolloutId-91142551';
- $response = $gapicClient->rollbackTarget($formattedName, $targetId, $rolloutId);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/RollbackTarget', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $actualValue = $actualRequestObject->getTargetId();
- $this->assertProtobufEquals($targetId, $actualValue);
- $actualValue = $actualRequestObject->getRolloutId();
- $this->assertProtobufEquals($rolloutId, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function rollbackTargetExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]');
- $targetId = 'targetId-815576439';
- $rolloutId = 'rolloutId-91142551';
- try {
- $gapicClient->rollbackTarget($formattedName, $targetId, $rolloutId);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function terminateJobRunTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new TerminateJobRunResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->jobRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]', '[JOB_RUN]');
- $response = $gapicClient->terminateJobRun($formattedName);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/TerminateJobRun', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function terminateJobRunExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->jobRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]', '[JOB_RUN]');
- try {
- $gapicClient->terminateJobRun($formattedName);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function updateAutomationTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateAutomationTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $etag = 'etag3123477';
- $suspended = false;
- $serviceAccount = 'serviceAccount-1948028253';
- $expectedResponse = new Automation();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setSuspended($suspended);
- $expectedResponse->setServiceAccount($serviceAccount);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/updateAutomationTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $updateMask = new FieldMask();
- $automation = new Automation();
- $automationServiceAccount = 'automationServiceAccount-192216401';
- $automation->setServiceAccount($automationServiceAccount);
- $automationSelector = new AutomationResourceSelector();
- $automation->setSelector($automationSelector);
- $automationRules = [];
- $automation->setRules($automationRules);
- $response = $gapicClient->updateAutomation($updateMask, $automation);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/UpdateAutomation', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getUpdateMask();
- $this->assertProtobufEquals($updateMask, $actualValue);
- $actualValue = $actualApiRequestObject->getAutomation();
- $this->assertProtobufEquals($automation, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateAutomationTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateAutomationExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateAutomationTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $updateMask = new FieldMask();
- $automation = new Automation();
- $automationServiceAccount = 'automationServiceAccount-192216401';
- $automation->setServiceAccount($automationServiceAccount);
- $automationSelector = new AutomationResourceSelector();
- $automation->setSelector($automationSelector);
- $automationRules = [];
- $automation->setRules($automationRules);
- $response = $gapicClient->updateAutomation($updateMask, $automation);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateAutomationTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateCustomTargetTypeTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateCustomTargetTypeTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $customTargetTypeId = 'customTargetTypeId-2048374240';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $etag = 'etag3123477';
- $expectedResponse = new CustomTargetType();
- $expectedResponse->setName($name);
- $expectedResponse->setCustomTargetTypeId($customTargetTypeId);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setEtag($etag);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/updateCustomTargetTypeTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $updateMask = new FieldMask();
- $customTargetType = new CustomTargetType();
- $response = $gapicClient->updateCustomTargetType($updateMask, $customTargetType);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/UpdateCustomTargetType', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getUpdateMask();
- $this->assertProtobufEquals($updateMask, $actualValue);
- $actualValue = $actualApiRequestObject->getCustomTargetType();
- $this->assertProtobufEquals($customTargetType, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateCustomTargetTypeTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateCustomTargetTypeExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateCustomTargetTypeTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $updateMask = new FieldMask();
- $customTargetType = new CustomTargetType();
- $response = $gapicClient->updateCustomTargetType($updateMask, $customTargetType);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateCustomTargetTypeTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateDeliveryPipelineTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateDeliveryPipelineTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $etag = 'etag3123477';
- $suspended = false;
- $expectedResponse = new DeliveryPipeline();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setSuspended($suspended);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/updateDeliveryPipelineTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $updateMask = new FieldMask();
- $deliveryPipeline = new DeliveryPipeline();
- $response = $gapicClient->updateDeliveryPipeline($updateMask, $deliveryPipeline);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/UpdateDeliveryPipeline', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getUpdateMask();
- $this->assertProtobufEquals($updateMask, $actualValue);
- $actualValue = $actualApiRequestObject->getDeliveryPipeline();
- $this->assertProtobufEquals($deliveryPipeline, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateDeliveryPipelineTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateDeliveryPipelineExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateDeliveryPipelineTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $updateMask = new FieldMask();
- $deliveryPipeline = new DeliveryPipeline();
- $response = $gapicClient->updateDeliveryPipeline($updateMask, $deliveryPipeline);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateDeliveryPipelineTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateTargetTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateTargetTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $targetId = 'targetId-815576439';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $requireApproval = false;
- $etag = 'etag3123477';
- $expectedResponse = new Target();
- $expectedResponse->setName($name);
- $expectedResponse->setTargetId($targetId);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setRequireApproval($requireApproval);
- $expectedResponse->setEtag($etag);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/updateTargetTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $updateMask = new FieldMask();
- $target = new Target();
- $response = $gapicClient->updateTarget($updateMask, $target);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/UpdateTarget', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getUpdateMask();
- $this->assertProtobufEquals($updateMask, $actualValue);
- $actualValue = $actualApiRequestObject->getTarget();
- $this->assertProtobufEquals($target, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateTargetTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateTargetExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateTargetTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $updateMask = new FieldMask();
- $target = new Target();
- $response = $gapicClient->updateTarget($updateMask, $target);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateTargetTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function getLocationTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $locationId = 'locationId552319461';
- $displayName = 'displayName1615086568';
- $expectedResponse = new Location();
- $expectedResponse->setName($name2);
- $expectedResponse->setLocationId($locationId);
- $expectedResponse->setDisplayName($displayName);
- $transport->addResponse($expectedResponse);
- $response = $gapicClient->getLocation();
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getLocationExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- try {
- $gapicClient->getLocation();
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listLocationsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $locationsElement = new Location();
- $locations = [
- $locationsElement,
- ];
- $expectedResponse = new ListLocationsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setLocations($locations);
- $transport->addResponse($expectedResponse);
- $response = $gapicClient->listLocations();
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listLocationsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- try {
- $gapicClient->listLocations();
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getIamPolicyTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $version = 351608024;
- $etag = '21';
- $expectedResponse = new Policy();
- $expectedResponse->setVersion($version);
- $expectedResponse->setEtag($etag);
- $transport->addResponse($expectedResponse);
- // Mock request
- $resource = 'resource-341064690';
- $response = $gapicClient->getIamPolicy($resource);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall);
- $actualValue = $actualRequestObject->getResource();
- $this->assertProtobufEquals($resource, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getIamPolicyExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $resource = 'resource-341064690';
- try {
- $gapicClient->getIamPolicy($resource);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function setIamPolicyTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $version = 351608024;
- $etag = '21';
- $expectedResponse = new Policy();
- $expectedResponse->setVersion($version);
- $expectedResponse->setEtag($etag);
- $transport->addResponse($expectedResponse);
- // Mock request
- $resource = 'resource-341064690';
- $policy = new Policy();
- $response = $gapicClient->setIamPolicy($resource, $policy);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall);
- $actualValue = $actualRequestObject->getResource();
- $this->assertProtobufEquals($resource, $actualValue);
- $actualValue = $actualRequestObject->getPolicy();
- $this->assertProtobufEquals($policy, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function setIamPolicyExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $resource = 'resource-341064690';
- $policy = new Policy();
- try {
- $gapicClient->setIamPolicy($resource, $policy);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function testIamPermissionsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new TestIamPermissionsResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $resource = 'resource-341064690';
- $permissions = [];
- $response = $gapicClient->testIamPermissions($resource, $permissions);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall);
- $actualValue = $actualRequestObject->getResource();
- $this->assertProtobufEquals($resource, $actualValue);
- $actualValue = $actualRequestObject->getPermissions();
- $this->assertProtobufEquals($permissions, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function testIamPermissionsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $resource = 'resource-341064690';
- $permissions = [];
- try {
- $gapicClient->testIamPermissions($resource, $permissions);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-}