gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class AbandonReleaseRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AbandonReleaseRequest::class, 'Google_Service_CloudDeploy_AbandonReleaseRequest');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class AbandonReleaseResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AbandonReleaseResponse::class, 'Google_Service_CloudDeploy_AbandonReleaseResponse');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class AdvanceChildRolloutJob extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdvanceChildRolloutJob::class, 'Google_Service_CloudDeploy_AdvanceChildRolloutJob');
@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class AdvanceChildRolloutJobRun extends \Google\Model
{
/**
* Output only. Name of the `ChildRollout`. Format is `projects/{project}/loca
* tions/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/ro
* llouts/{rollout}`.
*
* @var string
*/
public $rollout;
/**
* Output only. the ID of the ChildRollout's Phase.
*
* @var string
*/
public $rolloutPhaseId;
/**
* Output only. Name of the `ChildRollout`. Format is `projects/{project}/loca
* tions/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/ro
* llouts/{rollout}`.
*
* @param string $rollout
*/
public function setRollout($rollout)
{
$this->rollout = $rollout;
}
/**
* @return string
*/
public function getRollout()
{
return $this->rollout;
}
/**
* Output only. the ID of the ChildRollout's Phase.
*
* @param string $rolloutPhaseId
*/
public function setRolloutPhaseId($rolloutPhaseId)
{
$this->rolloutPhaseId = $rolloutPhaseId;
}
/**
* @return string
*/
public function getRolloutPhaseId()
{
return $this->rolloutPhaseId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdvanceChildRolloutJobRun::class, 'Google_Service_CloudDeploy_AdvanceChildRolloutJobRun');
@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class AdvanceRolloutOperation extends \Google\Model
{
/**
* Output only. The phase the rollout will be advanced to.
*
* @var string
*/
public $destinationPhase;
/**
* Output only. The name of the rollout that initiates the `AutomationRun`.
*
* @var string
*/
public $rollout;
/**
* Output only. The phase of a deployment that initiated the operation.
*
* @var string
*/
public $sourcePhase;
/**
* Output only. How long the operation will be paused.
*
* @var string
*/
public $wait;
/**
* Output only. The phase the rollout will be advanced to.
*
* @param string $destinationPhase
*/
public function setDestinationPhase($destinationPhase)
{
$this->destinationPhase = $destinationPhase;
}
/**
* @return string
*/
public function getDestinationPhase()
{
return $this->destinationPhase;
}
/**
* Output only. The name of the rollout that initiates the `AutomationRun`.
*
* @param string $rollout
*/
public function setRollout($rollout)
{
$this->rollout = $rollout;
}
/**
* @return string
*/
public function getRollout()
{
return $this->rollout;
}
/**
* Output only. The phase of a deployment that initiated the operation.
*
* @param string $sourcePhase
*/
public function setSourcePhase($sourcePhase)
{
$this->sourcePhase = $sourcePhase;
}
/**
* @return string
*/
public function getSourcePhase()
{
return $this->sourcePhase;
}
/**
* Output only. How long the operation will be paused.
*
* @param string $wait
*/
public function setWait($wait)
{
$this->wait = $wait;
}
/**
* @return string
*/
public function getWait()
{
return $this->wait;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdvanceRolloutOperation::class, 'Google_Service_CloudDeploy_AdvanceRolloutOperation');
@@ -0,0 +1,73 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class AdvanceRolloutRequest extends \Google\Collection
{
protected $collection_key = 'overrideDeployPolicy';
/**
* Optional. Deploy policies to override. Format is
* `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
*
* @var string[]
*/
public $overrideDeployPolicy;
/**
* Required. The phase ID to advance the `Rollout` to.
*
* @var string
*/
public $phaseId;
/**
* Optional. Deploy policies to override. Format is
* `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
*
* @param string[] $overrideDeployPolicy
*/
public function setOverrideDeployPolicy($overrideDeployPolicy)
{
$this->overrideDeployPolicy = $overrideDeployPolicy;
}
/**
* @return string[]
*/
public function getOverrideDeployPolicy()
{
return $this->overrideDeployPolicy;
}
/**
* Required. The phase ID to advance the `Rollout` to.
*
* @param string $phaseId
*/
public function setPhaseId($phaseId)
{
$this->phaseId = $phaseId;
}
/**
* @return string
*/
public function getPhaseId()
{
return $this->phaseId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdvanceRolloutRequest::class, 'Google_Service_CloudDeploy_AdvanceRolloutRequest');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class AdvanceRolloutResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdvanceRolloutResponse::class, 'Google_Service_CloudDeploy_AdvanceRolloutResponse');
@@ -0,0 +1,123 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class AdvanceRolloutRule extends \Google\Collection
{
protected $collection_key = 'sourcePhases';
protected $conditionType = AutomationRuleCondition::class;
protected $conditionDataType = '';
/**
* 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])?`.
*
* @var string
*/
public $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])?$`.
*
* @var string[]
*/
public $sourcePhases;
/**
* Optional. How long to wait after a rollout is finished.
*
* @var string
*/
public $wait;
/**
* Output only. Information around the state of the Automation rule.
*
* @param AutomationRuleCondition $condition
*/
public function setCondition(AutomationRuleCondition $condition)
{
$this->condition = $condition;
}
/**
* @return AutomationRuleCondition
*/
public function getCondition()
{
return $this->condition;
}
/**
* 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])?`.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->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])?$`.
*
* @param string[] $sourcePhases
*/
public function setSourcePhases($sourcePhases)
{
$this->sourcePhases = $sourcePhases;
}
/**
* @return string[]
*/
public function getSourcePhases()
{
return $this->sourcePhases;
}
/**
* Optional. How long to wait after a rollout is finished.
*
* @param string $wait
*/
public function setWait($wait)
{
$this->wait = $wait;
}
/**
* @return string
*/
public function getWait()
{
return $this->wait;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdvanceRolloutRule::class, 'Google_Service_CloudDeploy_AdvanceRolloutRule');
@@ -0,0 +1,99 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class AlertPolicyCheck extends \Google\Collection
{
protected $collection_key = 'alertPolicies';
/**
* Required. The Cloud Monitoring Alert Policies to check for active alerts.
* Format is `projects/{project}/alertPolicies/{alert_policy}`.
*
* @var string[]
*/
public $alertPolicies;
/**
* Required. The ID of the analysis check.
*
* @var string
*/
public $id;
/**
* Optional. A set of labels to filter active alerts. If set, only alerts
* having all of the specified labels will be considered. Otherwise, all
* active alerts will be considered.
*
* @var string[]
*/
public $labels;
/**
* Required. The Cloud Monitoring Alert Policies to check for active alerts.
* Format is `projects/{project}/alertPolicies/{alert_policy}`.
*
* @param string[] $alertPolicies
*/
public function setAlertPolicies($alertPolicies)
{
$this->alertPolicies = $alertPolicies;
}
/**
* @return string[]
*/
public function getAlertPolicies()
{
return $this->alertPolicies;
}
/**
* Required. The ID of the analysis check.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Optional. A set of labels to filter active alerts. If set, only alerts
* having all of the specified labels will be considered. Otherwise, all
* active alerts will be considered.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AlertPolicyCheck::class, 'Google_Service_CloudDeploy_AlertPolicyCheck');
@@ -0,0 +1,138 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class AlertPolicyCheckStatus extends \Google\Collection
{
protected $collection_key = 'failedAlertPolicies';
/**
* Output only. The alert policies that this analysis monitors. Format is
* `projects/{project}/locations/{location}/alertPolicies/{alertPolicy}`.
*
* @var string[]
*/
public $alertPolicies;
protected $failedAlertPoliciesType = FailedAlertPolicy::class;
protected $failedAlertPoliciesDataType = 'array';
/**
* Output only. Additional information about the alert policy check failure,
* if available. This will be empty if the alert policy check succeeded.
*
* @var string
*/
public $failureMessage;
/**
* Output only. The ID of this analysis.
*
* @var string
*/
public $id;
/**
* Output only. The resolved labels used to filter for specific incidents.
*
* @var string[]
*/
public $labels;
/**
* Output only. The alert policies that this analysis monitors. Format is
* `projects/{project}/locations/{location}/alertPolicies/{alertPolicy}`.
*
* @param string[] $alertPolicies
*/
public function setAlertPolicies($alertPolicies)
{
$this->alertPolicies = $alertPolicies;
}
/**
* @return string[]
*/
public function getAlertPolicies()
{
return $this->alertPolicies;
}
/**
* Output only. The alert policies that were found to be firing during this
* check. This will be empty if no incidents were found.
*
* @param FailedAlertPolicy[] $failedAlertPolicies
*/
public function setFailedAlertPolicies($failedAlertPolicies)
{
$this->failedAlertPolicies = $failedAlertPolicies;
}
/**
* @return FailedAlertPolicy[]
*/
public function getFailedAlertPolicies()
{
return $this->failedAlertPolicies;
}
/**
* Output only. Additional information about the alert policy check failure,
* if available. This will be empty if the alert policy check succeeded.
*
* @param string $failureMessage
*/
public function setFailureMessage($failureMessage)
{
$this->failureMessage = $failureMessage;
}
/**
* @return string
*/
public function getFailureMessage()
{
return $this->failureMessage;
}
/**
* Output only. The ID of this analysis.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Output only. The resolved labels used to filter for specific incidents.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AlertPolicyCheckStatus::class, 'Google_Service_CloudDeploy_AlertPolicyCheckStatus');
@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class Analysis extends \Google\Collection
{
protected $collection_key = 'customChecks';
protected $customChecksType = CustomCheck::class;
protected $customChecksDataType = 'array';
/**
* Required. The amount of time in minutes the analysis on the target will
* last. If all analysis checks have successfully completed before the
* specified duration, the analysis is successful. If a check is still running
* while the specified duration passes, it will wait for that check to
* complete to determine if the analysis is successful. The maximum duration
* is 48 hours.
*
* @var string
*/
public $duration;
protected $googleCloudType = GoogleCloudAnalysis::class;
protected $googleCloudDataType = '';
/**
* Optional. Custom analysis checks from 3P metric providers.
*
* @param CustomCheck[] $customChecks
*/
public function setCustomChecks($customChecks)
{
$this->customChecks = $customChecks;
}
/**
* @return CustomCheck[]
*/
public function getCustomChecks()
{
return $this->customChecks;
}
/**
* Required. The amount of time in minutes the analysis on the target will
* last. If all analysis checks have successfully completed before the
* specified duration, the analysis is successful. If a check is still running
* while the specified duration passes, it will wait for that check to
* complete to determine if the analysis is successful. The maximum duration
* is 48 hours.
*
* @param string $duration
*/
public function setDuration($duration)
{
$this->duration = $duration;
}
/**
* @return string
*/
public function getDuration()
{
return $this->duration;
}
/**
* Optional. Google Cloud - based analysis checks.
*
* @param GoogleCloudAnalysis $googleCloud
*/
public function setGoogleCloud(GoogleCloudAnalysis $googleCloud)
{
$this->googleCloud = $googleCloud;
}
/**
* @return GoogleCloudAnalysis
*/
public function getGoogleCloud()
{
return $this->googleCloud;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Analysis::class, 'Google_Service_CloudDeploy_Analysis');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class AnalysisJob extends \Google\Collection
{
protected $collection_key = 'customChecks';
protected $customChecksType = CustomCheck::class;
protected $customChecksDataType = 'array';
/**
* Output only. The amount of time in minutes the analysis Job will run, up to
* a maximum of 48 hours. If any check in this Job is still running when the
* duration ends, the Job keeps running until that check completes.
*
* @var string
*/
public $duration;
protected $googleCloudType = GoogleCloudAnalysis::class;
protected $googleCloudDataType = '';
/**
* Output only. Custom analysis checks from 3P metric providers that are run
* as part of the analysis Job.
*
* @param CustomCheck[] $customChecks
*/
public function setCustomChecks($customChecks)
{
$this->customChecks = $customChecks;
}
/**
* @return CustomCheck[]
*/
public function getCustomChecks()
{
return $this->customChecks;
}
/**
* Output only. The amount of time in minutes the analysis Job will run, up to
* a maximum of 48 hours. If any check in this Job is still running when the
* duration ends, the Job keeps running until that check completes.
*
* @param string $duration
*/
public function setDuration($duration)
{
$this->duration = $duration;
}
/**
* @return string
*/
public function getDuration()
{
return $this->duration;
}
/**
* Output only. Google Cloud - based analysis checks that are run as part of
* the analysis Job.
*
* @param GoogleCloudAnalysis $googleCloud
*/
public function setGoogleCloud(GoogleCloudAnalysis $googleCloud)
{
$this->googleCloud = $googleCloud;
}
/**
* @return GoogleCloudAnalysis
*/
public function getGoogleCloud()
{
return $this->googleCloud;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnalysisJob::class, 'Google_Service_CloudDeploy_AnalysisJob');
@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class AnalysisJobRun extends \Google\Collection
{
protected $collection_key = 'customCheckAnalyses';
protected $alertPolicyAnalysesType = AlertPolicyCheckStatus::class;
protected $alertPolicyAnalysesDataType = 'array';
protected $customCheckAnalysesType = CustomCheckStatus::class;
protected $customCheckAnalysesDataType = 'array';
/**
* Output only. The ID of the configured check that failed. This will always
* be blank while the analysis is in progress or if it succeeded.
*
* @var string
*/
public $failedCheckId;
/**
* Output only. The status of the running alert policy checks configured for
* this analysis.
*
* @param AlertPolicyCheckStatus[] $alertPolicyAnalyses
*/
public function setAlertPolicyAnalyses($alertPolicyAnalyses)
{
$this->alertPolicyAnalyses = $alertPolicyAnalyses;
}
/**
* @return AlertPolicyCheckStatus[]
*/
public function getAlertPolicyAnalyses()
{
return $this->alertPolicyAnalyses;
}
/**
* Output only. The status of the running custom checks configured for this
* analysis.
*
* @param CustomCheckStatus[] $customCheckAnalyses
*/
public function setCustomCheckAnalyses($customCheckAnalyses)
{
$this->customCheckAnalyses = $customCheckAnalyses;
}
/**
* @return CustomCheckStatus[]
*/
public function getCustomCheckAnalyses()
{
return $this->customCheckAnalyses;
}
/**
* Output only. The ID of the configured check that failed. This will always
* be blank while the analysis is in progress or if it succeeded.
*
* @param string $failedCheckId
*/
public function setFailedCheckId($failedCheckId)
{
$this->failedCheckId = $failedCheckId;
}
/**
* @return string
*/
public function getFailedCheckId()
{
return $this->failedCheckId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnalysisJobRun::class, 'Google_Service_CloudDeploy_AnalysisJobRun');
@@ -0,0 +1,52 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class AnthosCluster extends \Google\Model
{
/**
* Optional. Membership of the GKE Hub-registered cluster to which to apply
* the Skaffold configuration. Format is
* `projects/{project}/locations/{location}/memberships/{membership_name}`.
*
* @var string
*/
public $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}`.
*
* @param string $membership
*/
public function setMembership($membership)
{
$this->membership = $membership;
}
/**
* @return string
*/
public function getMembership()
{
return $this->membership;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnthosCluster::class, 'Google_Service_CloudDeploy_AnthosCluster');
@@ -0,0 +1,73 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class ApproveRolloutRequest extends \Google\Collection
{
protected $collection_key = 'overrideDeployPolicy';
/**
* Required. True = approve; false = reject
*
* @var bool
*/
public $approved;
/**
* Optional. Deploy policies to override. Format is
* `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
*
* @var string[]
*/
public $overrideDeployPolicy;
/**
* Required. True = approve; false = reject
*
* @param bool $approved
*/
public function setApproved($approved)
{
$this->approved = $approved;
}
/**
* @return bool
*/
public function getApproved()
{
return $this->approved;
}
/**
* Optional. Deploy policies to override. Format is
* `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
*
* @param string[] $overrideDeployPolicy
*/
public function setOverrideDeployPolicy($overrideDeployPolicy)
{
$this->overrideDeployPolicy = $overrideDeployPolicy;
}
/**
* @return string[]
*/
public function getOverrideDeployPolicy()
{
return $this->overrideDeployPolicy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApproveRolloutRequest::class, 'Google_Service_CloudDeploy_ApproveRolloutRequest');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class ApproveRolloutResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApproveRolloutResponse::class, 'Google_Service_CloudDeploy_ApproveRolloutResponse');
@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class AssociatedEntities extends \Google\Collection
{
protected $collection_key = 'gkeClusters';
protected $anthosClustersType = AnthosCluster::class;
protected $anthosClustersDataType = 'array';
protected $gkeClustersType = GkeCluster::class;
protected $gkeClustersDataType = 'array';
/**
* Optional. Information specifying Anthos clusters as associated entities.
*
* @param AnthosCluster[] $anthosClusters
*/
public function setAnthosClusters($anthosClusters)
{
$this->anthosClusters = $anthosClusters;
}
/**
* @return AnthosCluster[]
*/
public function getAnthosClusters()
{
return $this->anthosClusters;
}
/**
* Optional. Information specifying GKE clusters as associated entities.
*
* @param GkeCluster[] $gkeClusters
*/
public function setGkeClusters($gkeClusters)
{
$this->gkeClusters = $gkeClusters;
}
/**
* @return GkeCluster[]
*/
public function getGkeClusters()
{
return $this->gkeClusters;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AssociatedEntities::class, 'Google_Service_CloudDeploy_AssociatedEntities');
@@ -0,0 +1,71 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @var string
*/
public $service;
/**
* The configuration for logging of each type of permission.
*
* @param AuditLogConfig[] $auditLogConfigs
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return AuditLogConfig[]
*/
public function getAuditLogConfigs()
{
return $this->auditLogConfigs;
}
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditConfig::class, 'Google_Service_CloudDeploy_AuditConfig');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class AuditLogConfig extends \Google\Collection
{
/**
* Default case. Should never be this.
*/
public const LOG_TYPE_LOG_TYPE_UNSPECIFIED = 'LOG_TYPE_UNSPECIFIED';
/**
* Admin reads. Example: CloudIAM getIamPolicy
*/
public const LOG_TYPE_ADMIN_READ = 'ADMIN_READ';
/**
* Data writes. Example: CloudSQL Users create
*/
public const LOG_TYPE_DATA_WRITE = 'DATA_WRITE';
/**
* Data reads. Example: CloudSQL Users list
*/
public const LOG_TYPE_DATA_READ = 'DATA_READ';
protected $collection_key = 'exemptedMembers';
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @var string[]
*/
public $exemptedMembers;
/**
* The log type that this config enables.
*
* @var string
*/
public $logType;
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @param string[] $exemptedMembers
*/
public function setExemptedMembers($exemptedMembers)
{
$this->exemptedMembers = $exemptedMembers;
}
/**
* @return string[]
*/
public function getExemptedMembers()
{
return $this->exemptedMembers;
}
/**
* The log type that this config enables.
*
* Accepted values: LOG_TYPE_UNSPECIFIED, ADMIN_READ, DATA_WRITE, DATA_READ
*
* @param self::LOG_TYPE_* $logType
*/
public function setLogType($logType)
{
$this->logType = $logType;
}
/**
* @return self::LOG_TYPE_*
*/
public function getLogType()
{
return $this->logType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditLogConfig::class, 'Google_Service_CloudDeploy_AuditLogConfig');
@@ -0,0 +1,334 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class Automation extends \Google\Collection
{
protected $collection_key = 'rules';
/**
* 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.
*
* @var string[]
*/
public $annotations;
/**
* Output only. Time at which the automation was created.
*
* @var string
*/
public $createTime;
/**
* Optional. Description of the `Automation`. Max length is 255 characters.
*
* @var string
*/
public $description;
/**
* 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.
*
* @var string
*/
public $etag;
/**
* 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.
*
* @var string[]
*/
public $labels;
/**
* Output only. Name of the `Automation`. Format is `projects/{project}/locati
* ons/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automatio
* n}`.
*
* @var string
*/
public $name;
protected $rulesType = AutomationRule::class;
protected $rulesDataType = 'array';
protected $selectorType = AutomationResourceSelector::class;
protected $selectorDataType = '';
/**
* Required. Email address of the user-managed IAM service account that
* creates Cloud Deploy release and rollout resources.
*
* @var string
*/
public $serviceAccount;
/**
* Optional. When Suspended, automation is deactivated from execution.
*
* @var bool
*/
public $suspended;
/**
* Output only. Unique identifier of the `Automation`.
*
* @var string
*/
public $uid;
/**
* Output only. Time at which the automation was updated.
*
* @var string
*/
public $updateTime;
/**
* 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.
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Output only. Time at which the automation was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. Description of the `Automation`. Max length is 255 characters.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* 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.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* 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.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. Name of the `Automation`. Format is `projects/{project}/locati
* ons/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automatio
* n}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* 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.
*
* @param AutomationRule[] $rules
*/
public function setRules($rules)
{
$this->rules = $rules;
}
/**
* @return AutomationRule[]
*/
public function getRules()
{
return $this->rules;
}
/**
* Required. Selected resources to which the automation will be applied.
*
* @param AutomationResourceSelector $selector
*/
public function setSelector(AutomationResourceSelector $selector)
{
$this->selector = $selector;
}
/**
* @return AutomationResourceSelector
*/
public function getSelector()
{
return $this->selector;
}
/**
* Required. Email address of the user-managed IAM service account that
* creates Cloud Deploy release and rollout resources.
*
* @param string $serviceAccount
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* Optional. When Suspended, automation is deactivated from execution.
*
* @param bool $suspended
*/
public function setSuspended($suspended)
{
$this->suspended = $suspended;
}
/**
* @return bool
*/
public function getSuspended()
{
return $this->suspended;
}
/**
* Output only. Unique identifier of the `Automation`.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. Time at which the automation was updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Automation::class, 'Google_Service_CloudDeploy_Automation');
@@ -0,0 +1,159 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class AutomationEvent extends \Google\Model
{
/**
* Type is unspecified.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* A Pub/Sub notification failed to be sent.
*/
public const TYPE_TYPE_PUBSUB_NOTIFICATION_FAILURE = 'TYPE_PUBSUB_NOTIFICATION_FAILURE';
/**
* Resource state changed.
*/
public const TYPE_TYPE_RESOURCE_STATE_CHANGE = 'TYPE_RESOURCE_STATE_CHANGE';
/**
* A process aborted.
*/
public const TYPE_TYPE_PROCESS_ABORTED = 'TYPE_PROCESS_ABORTED';
/**
* Restriction check failed.
*/
public const TYPE_TYPE_RESTRICTION_VIOLATED = 'TYPE_RESTRICTION_VIOLATED';
/**
* Resource deleted.
*/
public const TYPE_TYPE_RESOURCE_DELETED = 'TYPE_RESOURCE_DELETED';
/**
* Rollout updated.
*/
public const TYPE_TYPE_ROLLOUT_UPDATE = 'TYPE_ROLLOUT_UPDATE';
/**
* Deploy Policy evaluation.
*/
public const TYPE_TYPE_DEPLOY_POLICY_EVALUATION = 'TYPE_DEPLOY_POLICY_EVALUATION';
/**
* Deprecated: This field is never used. Use release_render log type instead.
*
* @deprecated
*/
public const TYPE_TYPE_RENDER_STATUES_CHANGE = 'TYPE_RENDER_STATUES_CHANGE';
/**
* The name of the `AutomationRun`.
*
* @var string
*/
public $automation;
/**
* Debug message for when there is an update on the AutomationRun. Provides
* further details about the resource creation or state change.
*
* @var string
*/
public $message;
/**
* Unique identifier of the `DeliveryPipeline`.
*
* @var string
*/
public $pipelineUid;
/**
* Type of this notification, e.g. for a Pub/Sub failure.
*
* @var string
*/
public $type;
/**
* The name of the `AutomationRun`.
*
* @param string $automation
*/
public function setAutomation($automation)
{
$this->automation = $automation;
}
/**
* @return string
*/
public function getAutomation()
{
return $this->automation;
}
/**
* Debug message for when there is an update on the AutomationRun. Provides
* further details about the resource creation or state change.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Unique identifier of the `DeliveryPipeline`.
*
* @param string $pipelineUid
*/
public function setPipelineUid($pipelineUid)
{
$this->pipelineUid = $pipelineUid;
}
/**
* @return string
*/
public function getPipelineUid()
{
return $this->pipelineUid;
}
/**
* Type of this notification, e.g. for a Pub/Sub failure.
*
* Accepted values: TYPE_UNSPECIFIED, TYPE_PUBSUB_NOTIFICATION_FAILURE,
* TYPE_RESOURCE_STATE_CHANGE, TYPE_PROCESS_ABORTED,
* TYPE_RESTRICTION_VIOLATED, TYPE_RESOURCE_DELETED, TYPE_ROLLOUT_UPDATE,
* TYPE_DEPLOY_POLICY_EVALUATION, TYPE_RENDER_STATUES_CHANGE
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutomationEvent::class, 'Google_Service_CloudDeploy_AutomationEvent');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class AutomationResourceSelector extends \Google\Collection
{
protected $collection_key = 'targets';
protected $targetsType = TargetAttribute::class;
protected $targetsDataType = 'array';
/**
* Optional. Contains attributes about a target.
*
* @param TargetAttribute[] $targets
*/
public function setTargets($targets)
{
$this->targets = $targets;
}
/**
* @return TargetAttribute[]
*/
public function getTargets()
{
return $this->targets;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutomationResourceSelector::class, 'Google_Service_CloudDeploy_AutomationResourceSelector');
@@ -0,0 +1,99 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class AutomationRolloutMetadata extends \Google\Collection
{
protected $collection_key = 'repairAutomationRuns';
/**
* Output only. The names of the AutomationRuns initiated by an advance
* rollout rule.
*
* @var string[]
*/
public $advanceAutomationRuns;
/**
* Output only. The name of the AutomationRun initiated by a promote release
* rule.
*
* @var string
*/
public $promoteAutomationRun;
/**
* Output only. The names of the AutomationRuns initiated by a repair rollout
* rule.
*
* @var string[]
*/
public $repairAutomationRuns;
/**
* Output only. The names of the AutomationRuns initiated by an advance
* rollout rule.
*
* @param string[] $advanceAutomationRuns
*/
public function setAdvanceAutomationRuns($advanceAutomationRuns)
{
$this->advanceAutomationRuns = $advanceAutomationRuns;
}
/**
* @return string[]
*/
public function getAdvanceAutomationRuns()
{
return $this->advanceAutomationRuns;
}
/**
* Output only. The name of the AutomationRun initiated by a promote release
* rule.
*
* @param string $promoteAutomationRun
*/
public function setPromoteAutomationRun($promoteAutomationRun)
{
$this->promoteAutomationRun = $promoteAutomationRun;
}
/**
* @return string
*/
public function getPromoteAutomationRun()
{
return $this->promoteAutomationRun;
}
/**
* Output only. The names of the AutomationRuns initiated by a repair rollout
* rule.
*
* @param string[] $repairAutomationRuns
*/
public function setRepairAutomationRuns($repairAutomationRuns)
{
$this->repairAutomationRuns = $repairAutomationRuns;
}
/**
* @return string[]
*/
public function getRepairAutomationRuns()
{
return $this->repairAutomationRuns;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutomationRolloutMetadata::class, 'Google_Service_CloudDeploy_AutomationRolloutMetadata');
@@ -0,0 +1,103 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class AutomationRule extends \Google\Model
{
protected $advanceRolloutRuleType = AdvanceRolloutRule::class;
protected $advanceRolloutRuleDataType = '';
protected $promoteReleaseRuleType = PromoteReleaseRule::class;
protected $promoteReleaseRuleDataType = '';
protected $repairRolloutRuleType = RepairRolloutRule::class;
protected $repairRolloutRuleDataType = '';
protected $timedPromoteReleaseRuleType = TimedPromoteReleaseRule::class;
protected $timedPromoteReleaseRuleDataType = '';
/**
* Optional. The `AdvanceRolloutRule` will automatically advance a successful
* Rollout.
*
* @param AdvanceRolloutRule $advanceRolloutRule
*/
public function setAdvanceRolloutRule(AdvanceRolloutRule $advanceRolloutRule)
{
$this->advanceRolloutRule = $advanceRolloutRule;
}
/**
* @return AdvanceRolloutRule
*/
public function getAdvanceRolloutRule()
{
return $this->advanceRolloutRule;
}
/**
* Optional. `PromoteReleaseRule` will automatically promote a release from
* the current target to a specified target.
*
* @param PromoteReleaseRule $promoteReleaseRule
*/
public function setPromoteReleaseRule(PromoteReleaseRule $promoteReleaseRule)
{
$this->promoteReleaseRule = $promoteReleaseRule;
}
/**
* @return PromoteReleaseRule
*/
public function getPromoteReleaseRule()
{
return $this->promoteReleaseRule;
}
/**
* Optional. The `RepairRolloutRule` will automatically repair a failed
* rollout.
*
* @param RepairRolloutRule $repairRolloutRule
*/
public function setRepairRolloutRule(RepairRolloutRule $repairRolloutRule)
{
$this->repairRolloutRule = $repairRolloutRule;
}
/**
* @return RepairRolloutRule
*/
public function getRepairRolloutRule()
{
return $this->repairRolloutRule;
}
/**
* Optional. The `TimedPromoteReleaseRule` will automatically promote a
* release from the current target(s) to the specified target(s) on a
* configured schedule.
*
* @param TimedPromoteReleaseRule $timedPromoteReleaseRule
*/
public function setTimedPromoteReleaseRule(TimedPromoteReleaseRule $timedPromoteReleaseRule)
{
$this->timedPromoteReleaseRule = $timedPromoteReleaseRule;
}
/**
* @return TimedPromoteReleaseRule
*/
public function getTimedPromoteReleaseRule()
{
return $this->timedPromoteReleaseRule;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutomationRule::class, 'Google_Service_CloudDeploy_AutomationRule');
@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class AutomationRuleCondition extends \Google\Model
{
protected $targetsPresentConditionType = TargetsPresentCondition::class;
protected $targetsPresentConditionDataType = '';
protected $timedPromoteReleaseConditionType = TimedPromoteReleaseCondition::class;
protected $timedPromoteReleaseConditionDataType = '';
/**
* Optional. Details around targets enumerated in the rule.
*
* @param TargetsPresentCondition $targetsPresentCondition
*/
public function setTargetsPresentCondition(TargetsPresentCondition $targetsPresentCondition)
{
$this->targetsPresentCondition = $targetsPresentCondition;
}
/**
* @return TargetsPresentCondition
*/
public function getTargetsPresentCondition()
{
return $this->targetsPresentCondition;
}
/**
* Optional. TimedPromoteReleaseCondition contains rule conditions specific to
* a an Automation with a timed promote release rule defined.
*
* @param TimedPromoteReleaseCondition $timedPromoteReleaseCondition
*/
public function setTimedPromoteReleaseCondition(TimedPromoteReleaseCondition $timedPromoteReleaseCondition)
{
$this->timedPromoteReleaseCondition = $timedPromoteReleaseCondition;
}
/**
* @return TimedPromoteReleaseCondition
*/
public function getTimedPromoteReleaseCondition()
{
return $this->timedPromoteReleaseCondition;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutomationRuleCondition::class, 'Google_Service_CloudDeploy_AutomationRuleCondition');
@@ -0,0 +1,476 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class AutomationRun extends \Google\Model
{
/**
* The `AutomationRun` has an unspecified state.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The `AutomationRun` has succeeded.
*/
public const STATE_SUCCEEDED = 'SUCCEEDED';
/**
* The `AutomationRun` was cancelled.
*/
public const STATE_CANCELLED = 'CANCELLED';
/**
* The `AutomationRun` has failed.
*/
public const STATE_FAILED = 'FAILED';
/**
* The `AutomationRun` is in progress.
*/
public const STATE_IN_PROGRESS = 'IN_PROGRESS';
/**
* The `AutomationRun` is pending.
*/
public const STATE_PENDING = 'PENDING';
/**
* The `AutomationRun` was aborted.
*/
public const STATE_ABORTED = 'ABORTED';
protected $advanceRolloutOperationType = AdvanceRolloutOperation::class;
protected $advanceRolloutOperationDataType = '';
/**
* Output only. The ID of the automation that initiated the operation.
*
* @var string
*/
public $automationId;
protected $automationSnapshotType = Automation::class;
protected $automationSnapshotDataType = '';
/**
* Output only. Time at which the `AutomationRun` was created.
*
* @var string
*/
public $createTime;
/**
* 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.
*
* @var string
*/
public $etag;
/**
* Output only. Time the `AutomationRun` expires. An `AutomationRun` expires
* after 14 days from its creation date.
*
* @var string
*/
public $expireTime;
/**
* Output only. Name of the `AutomationRun`. Format is `projects/{project}/loc
* ations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{aut
* omation_run}`.
*
* @var string
*/
public $name;
protected $policyViolationType = PolicyViolation::class;
protected $policyViolationDataType = '';
protected $promoteReleaseOperationType = PromoteReleaseOperation::class;
protected $promoteReleaseOperationDataType = '';
protected $repairRolloutOperationType = RepairRolloutOperation::class;
protected $repairRolloutOperationDataType = '';
/**
* Output only. The ID of the automation rule that initiated the operation.
*
* @var string
*/
public $ruleId;
/**
* Output only. Email address of the user-managed IAM service account that
* performs the operations against Cloud Deploy resources.
*
* @var string
*/
public $serviceAccount;
/**
* Output only. Current state of the `AutomationRun`.
*
* @var string
*/
public $state;
/**
* Output only. Explains the current state of the `AutomationRun`. Present
* only when an explanation is needed.
*
* @var string
*/
public $stateDescription;
/**
* Output only. The ID of the source target that initiates the
* `AutomationRun`. The value of this field is the last segment of a target
* name.
*
* @var string
*/
public $targetId;
protected $timedPromoteReleaseOperationType = TimedPromoteReleaseOperation::class;
protected $timedPromoteReleaseOperationDataType = '';
/**
* Output only. Unique identifier of the `AutomationRun`.
*
* @var string
*/
public $uid;
/**
* Output only. Time at which the automationRun was updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. Earliest time the `AutomationRun` will attempt to resume.
* Wait-time is configured by `wait` in automation rule.
*
* @var string
*/
public $waitUntilTime;
/**
* Output only. Advances a rollout to the next phase.
*
* @param AdvanceRolloutOperation $advanceRolloutOperation
*/
public function setAdvanceRolloutOperation(AdvanceRolloutOperation $advanceRolloutOperation)
{
$this->advanceRolloutOperation = $advanceRolloutOperation;
}
/**
* @return AdvanceRolloutOperation
*/
public function getAdvanceRolloutOperation()
{
return $this->advanceRolloutOperation;
}
/**
* Output only. The ID of the automation that initiated the operation.
*
* @param string $automationId
*/
public function setAutomationId($automationId)
{
$this->automationId = $automationId;
}
/**
* @return string
*/
public function getAutomationId()
{
return $this->automationId;
}
/**
* Output only. Snapshot of the Automation taken at AutomationRun creation
* time.
*
* @param Automation $automationSnapshot
*/
public function setAutomationSnapshot(Automation $automationSnapshot)
{
$this->automationSnapshot = $automationSnapshot;
}
/**
* @return Automation
*/
public function getAutomationSnapshot()
{
return $this->automationSnapshot;
}
/**
* Output only. Time at which the `AutomationRun` was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* 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.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Output only. Time the `AutomationRun` expires. An `AutomationRun` expires
* after 14 days from its creation date.
*
* @param string $expireTime
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* Output only. Name of the `AutomationRun`. Format is `projects/{project}/loc
* ations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{aut
* omation_run}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Contains information about what policies prevented the
* `AutomationRun` from proceeding.
*
* @param PolicyViolation $policyViolation
*/
public function setPolicyViolation(PolicyViolation $policyViolation)
{
$this->policyViolation = $policyViolation;
}
/**
* @return PolicyViolation
*/
public function getPolicyViolation()
{
return $this->policyViolation;
}
/**
* Output only. Promotes a release to a specified 'Target'.
*
* @param PromoteReleaseOperation $promoteReleaseOperation
*/
public function setPromoteReleaseOperation(PromoteReleaseOperation $promoteReleaseOperation)
{
$this->promoteReleaseOperation = $promoteReleaseOperation;
}
/**
* @return PromoteReleaseOperation
*/
public function getPromoteReleaseOperation()
{
return $this->promoteReleaseOperation;
}
/**
* Output only. Repairs a failed 'Rollout'.
*
* @param RepairRolloutOperation $repairRolloutOperation
*/
public function setRepairRolloutOperation(RepairRolloutOperation $repairRolloutOperation)
{
$this->repairRolloutOperation = $repairRolloutOperation;
}
/**
* @return RepairRolloutOperation
*/
public function getRepairRolloutOperation()
{
return $this->repairRolloutOperation;
}
/**
* Output only. The ID of the automation rule that initiated the operation.
*
* @param string $ruleId
*/
public function setRuleId($ruleId)
{
$this->ruleId = $ruleId;
}
/**
* @return string
*/
public function getRuleId()
{
return $this->ruleId;
}
/**
* Output only. Email address of the user-managed IAM service account that
* performs the operations against Cloud Deploy resources.
*
* @param string $serviceAccount
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* Output only. Current state of the `AutomationRun`.
*
* Accepted values: STATE_UNSPECIFIED, SUCCEEDED, CANCELLED, FAILED,
* IN_PROGRESS, PENDING, ABORTED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Explains the current state of the `AutomationRun`. Present
* only when an explanation is needed.
*
* @param string $stateDescription
*/
public function setStateDescription($stateDescription)
{
$this->stateDescription = $stateDescription;
}
/**
* @return string
*/
public function getStateDescription()
{
return $this->stateDescription;
}
/**
* Output only. The ID of the source target that initiates the
* `AutomationRun`. The value of this field is the last segment of a target
* name.
*
* @param string $targetId
*/
public function setTargetId($targetId)
{
$this->targetId = $targetId;
}
/**
* @return string
*/
public function getTargetId()
{
return $this->targetId;
}
/**
* Output only. Promotes a release to a specified 'Target' as defined in a
* Timed Promote Release rule.
*
* @param TimedPromoteReleaseOperation $timedPromoteReleaseOperation
*/
public function setTimedPromoteReleaseOperation(TimedPromoteReleaseOperation $timedPromoteReleaseOperation)
{
$this->timedPromoteReleaseOperation = $timedPromoteReleaseOperation;
}
/**
* @return TimedPromoteReleaseOperation
*/
public function getTimedPromoteReleaseOperation()
{
return $this->timedPromoteReleaseOperation;
}
/**
* Output only. Unique identifier of the `AutomationRun`.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. Time at which the automationRun was updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Output only. Earliest time the `AutomationRun` will attempt to resume.
* Wait-time is configured by `wait` in automation rule.
*
* @param string $waitUntilTime
*/
public function setWaitUntilTime($waitUntilTime)
{
$this->waitUntilTime = $waitUntilTime;
}
/**
* @return string
*/
public function getWaitUntilTime()
{
return $this->waitUntilTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutomationRun::class, 'Google_Service_CloudDeploy_AutomationRun');
@@ -0,0 +1,225 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class AutomationRunEvent extends \Google\Model
{
/**
* Type is unspecified.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* A Pub/Sub notification failed to be sent.
*/
public const TYPE_TYPE_PUBSUB_NOTIFICATION_FAILURE = 'TYPE_PUBSUB_NOTIFICATION_FAILURE';
/**
* Resource state changed.
*/
public const TYPE_TYPE_RESOURCE_STATE_CHANGE = 'TYPE_RESOURCE_STATE_CHANGE';
/**
* A process aborted.
*/
public const TYPE_TYPE_PROCESS_ABORTED = 'TYPE_PROCESS_ABORTED';
/**
* Restriction check failed.
*/
public const TYPE_TYPE_RESTRICTION_VIOLATED = 'TYPE_RESTRICTION_VIOLATED';
/**
* Resource deleted.
*/
public const TYPE_TYPE_RESOURCE_DELETED = 'TYPE_RESOURCE_DELETED';
/**
* Rollout updated.
*/
public const TYPE_TYPE_ROLLOUT_UPDATE = 'TYPE_ROLLOUT_UPDATE';
/**
* Deploy Policy evaluation.
*/
public const TYPE_TYPE_DEPLOY_POLICY_EVALUATION = 'TYPE_DEPLOY_POLICY_EVALUATION';
/**
* Deprecated: This field is never used. Use release_render log type instead.
*
* @deprecated
*/
public const TYPE_TYPE_RENDER_STATUES_CHANGE = 'TYPE_RENDER_STATUES_CHANGE';
/**
* Identifier of the `Automation`.
*
* @var string
*/
public $automationId;
/**
* The name of the `AutomationRun`.
*
* @var string
*/
public $automationRun;
/**
* ID of the `Target` to which the `AutomationRun` is created.
*
* @var string
*/
public $destinationTargetId;
/**
* Debug message for when there is an update on the AutomationRun. Provides
* further details about the resource creation or state change.
*
* @var string
*/
public $message;
/**
* Unique identifier of the `DeliveryPipeline`.
*
* @var string
*/
public $pipelineUid;
/**
* Identifier of the `Automation` rule.
*
* @var string
*/
public $ruleId;
/**
* Type of this notification, e.g. for a Pub/Sub failure.
*
* @var string
*/
public $type;
/**
* Identifier of the `Automation`.
*
* @param string $automationId
*/
public function setAutomationId($automationId)
{
$this->automationId = $automationId;
}
/**
* @return string
*/
public function getAutomationId()
{
return $this->automationId;
}
/**
* The name of the `AutomationRun`.
*
* @param string $automationRun
*/
public function setAutomationRun($automationRun)
{
$this->automationRun = $automationRun;
}
/**
* @return string
*/
public function getAutomationRun()
{
return $this->automationRun;
}
/**
* ID of the `Target` to which the `AutomationRun` is created.
*
* @param string $destinationTargetId
*/
public function setDestinationTargetId($destinationTargetId)
{
$this->destinationTargetId = $destinationTargetId;
}
/**
* @return string
*/
public function getDestinationTargetId()
{
return $this->destinationTargetId;
}
/**
* Debug message for when there is an update on the AutomationRun. Provides
* further details about the resource creation or state change.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Unique identifier of the `DeliveryPipeline`.
*
* @param string $pipelineUid
*/
public function setPipelineUid($pipelineUid)
{
$this->pipelineUid = $pipelineUid;
}
/**
* @return string
*/
public function getPipelineUid()
{
return $this->pipelineUid;
}
/**
* Identifier of the `Automation` rule.
*
* @param string $ruleId
*/
public function setRuleId($ruleId)
{
$this->ruleId = $ruleId;
}
/**
* @return string
*/
public function getRuleId()
{
return $this->ruleId;
}
/**
* Type of this notification, e.g. for a Pub/Sub failure.
*
* Accepted values: TYPE_UNSPECIFIED, TYPE_PUBSUB_NOTIFICATION_FAILURE,
* TYPE_RESOURCE_STATE_CHANGE, TYPE_PROCESS_ABORTED,
* TYPE_RESTRICTION_VIOLATED, TYPE_RESOURCE_DELETED, TYPE_ROLLOUT_UPDATE,
* TYPE_DEPLOY_POLICY_EVALUATION, TYPE_RENDER_STATUES_CHANGE
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutomationRunEvent::class, 'Google_Service_CloudDeploy_AutomationRunEvent');
@@ -0,0 +1,216 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @var string[]
*/
public $members;
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @var string
*/
public $role;
/**
* The condition that is associated with this binding. If the condition
* evaluates to `true`, then this binding applies to the current request. If
* the condition evaluates to `false`, then this binding does not apply to the
* current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding. To learn which
* resources support conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param Expr $condition
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @param string[] $members
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Binding::class, 'Google_Service_CloudDeploy_Binding');
@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class BuildArtifact extends \Google\Model
{
/**
* Optional. Image name in Skaffold configuration.
*
* @var string
*/
public $image;
/**
* Optional. 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".
*
* @var string
*/
public $tag;
/**
* Optional. Image name in Skaffold configuration.
*
* @param string $image
*/
public function setImage($image)
{
$this->image = $image;
}
/**
* @return string
*/
public function getImage()
{
return $this->image;
}
/**
* Optional. 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".
*
* @param string $tag
*/
public function setTag($tag)
{
$this->tag = $tag;
}
/**
* @return string
*/
public function getTag()
{
return $this->tag;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BuildArtifact::class, 'Google_Service_CloudDeploy_BuildArtifact');
@@ -0,0 +1,84 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class Canary extends \Google\Model
{
protected $canaryDeploymentType = CanaryDeployment::class;
protected $canaryDeploymentDataType = '';
protected $customCanaryDeploymentType = CustomCanaryDeployment::class;
protected $customCanaryDeploymentDataType = '';
protected $runtimeConfigType = RuntimeConfig::class;
protected $runtimeConfigDataType = '';
/**
* Optional. Configures the progressive based deployment for a Target.
*
* @param CanaryDeployment $canaryDeployment
*/
public function setCanaryDeployment(CanaryDeployment $canaryDeployment)
{
$this->canaryDeployment = $canaryDeployment;
}
/**
* @return CanaryDeployment
*/
public function getCanaryDeployment()
{
return $this->canaryDeployment;
}
/**
* Optional. Configures the progressive based deployment for a Target, but
* allows customizing at the phase level where a phase represents each of the
* percentage deployments.
*
* @param CustomCanaryDeployment $customCanaryDeployment
*/
public function setCustomCanaryDeployment(CustomCanaryDeployment $customCanaryDeployment)
{
$this->customCanaryDeployment = $customCanaryDeployment;
}
/**
* @return CustomCanaryDeployment
*/
public function getCustomCanaryDeployment()
{
return $this->customCanaryDeployment;
}
/**
* 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.
*
* @param RuntimeConfig $runtimeConfig
*/
public function setRuntimeConfig(RuntimeConfig $runtimeConfig)
{
$this->runtimeConfig = $runtimeConfig;
}
/**
* @return RuntimeConfig
*/
public function getRuntimeConfig()
{
return $this->runtimeConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Canary::class, 'Google_Service_CloudDeploy_Canary');
@@ -0,0 +1,155 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class CanaryDeployment extends \Google\Collection
{
protected $collection_key = 'percentages';
protected $analysisType = Analysis::class;
protected $analysisDataType = '';
/**
* 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. If the GatewayServiceMesh is configured for Kubernetes, then the
* range for n is 0 <= n <= 100.
*
* @var int[]
*/
public $percentages;
protected $postdeployType = Postdeploy::class;
protected $postdeployDataType = '';
protected $predeployType = Predeploy::class;
protected $predeployDataType = '';
/**
* Optional. Whether to run verify tests after each percentage deployment via
* `skaffold verify`.
*
* @var bool
*/
public $verify;
protected $verifyConfigType = Verify::class;
protected $verifyConfigDataType = '';
/**
* Optional. Configuration for the analysis job. If configured, the analysis
* will run after each percentage deployment.
*
* @param Analysis $analysis
*/
public function setAnalysis(Analysis $analysis)
{
$this->analysis = $analysis;
}
/**
* @return Analysis
*/
public function getAnalysis()
{
return $this->analysis;
}
/**
* 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. If the GatewayServiceMesh is configured for Kubernetes, then the
* range for n is 0 <= n <= 100.
*
* @param int[] $percentages
*/
public function setPercentages($percentages)
{
$this->percentages = $percentages;
}
/**
* @return int[]
*/
public function getPercentages()
{
return $this->percentages;
}
/**
* Optional. Configuration for the postdeploy job of the last phase. If this
* is not configured, there will be no postdeploy job for this phase.
*
* @param Postdeploy $postdeploy
*/
public function setPostdeploy(Postdeploy $postdeploy)
{
$this->postdeploy = $postdeploy;
}
/**
* @return Postdeploy
*/
public function getPostdeploy()
{
return $this->postdeploy;
}
/**
* Optional. Configuration for the predeploy job of the first phase. If this
* is not configured, there will be no predeploy job for this phase.
*
* @param Predeploy $predeploy
*/
public function setPredeploy(Predeploy $predeploy)
{
$this->predeploy = $predeploy;
}
/**
* @return Predeploy
*/
public function getPredeploy()
{
return $this->predeploy;
}
/**
* Optional. Whether to run verify tests after each percentage deployment via
* `skaffold verify`.
*
* @param bool $verify
*/
public function setVerify($verify)
{
$this->verify = $verify;
}
/**
* @return bool
*/
public function getVerify()
{
return $this->verify;
}
/**
* Optional. Configuration for the verify job. Cannot be set if `verify` is
* set to true.
*
* @param Verify $verifyConfig
*/
public function setVerifyConfig(Verify $verifyConfig)
{
$this->verifyConfig = $verifyConfig;
}
/**
* @return Verify
*/
public function getVerifyConfig()
{
return $this->verifyConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CanaryDeployment::class, 'Google_Service_CloudDeploy_CanaryDeployment');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class CancelAutomationRunRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelAutomationRunRequest::class, 'Google_Service_CloudDeploy_CancelAutomationRunRequest');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class CancelAutomationRunResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelAutomationRunResponse::class, 'Google_Service_CloudDeploy_CancelAutomationRunResponse');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_CloudDeploy_CancelOperationRequest');
@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class CancelRolloutRequest extends \Google\Collection
{
protected $collection_key = 'overrideDeployPolicy';
/**
* Optional. Deploy policies to override. Format is
* `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
*
* @var string[]
*/
public $overrideDeployPolicy;
/**
* Optional. Deploy policies to override. Format is
* `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
*
* @param string[] $overrideDeployPolicy
*/
public function setOverrideDeployPolicy($overrideDeployPolicy)
{
$this->overrideDeployPolicy = $overrideDeployPolicy;
}
/**
* @return string[]
*/
public function getOverrideDeployPolicy()
{
return $this->overrideDeployPolicy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelRolloutRequest::class, 'Google_Service_CloudDeploy_CancelRolloutRequest');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class CancelRolloutResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelRolloutResponse::class, 'Google_Service_CloudDeploy_CancelRolloutResponse');
@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class ChildRolloutJobs extends \Google\Collection
{
protected $collection_key = 'createRolloutJobs';
protected $advanceRolloutJobsType = Job::class;
protected $advanceRolloutJobsDataType = 'array';
protected $createRolloutJobsType = Job::class;
protected $createRolloutJobsDataType = 'array';
/**
* Output only. List of AdvanceChildRolloutJobs
*
* @param Job[] $advanceRolloutJobs
*/
public function setAdvanceRolloutJobs($advanceRolloutJobs)
{
$this->advanceRolloutJobs = $advanceRolloutJobs;
}
/**
* @return Job[]
*/
public function getAdvanceRolloutJobs()
{
return $this->advanceRolloutJobs;
}
/**
* Output only. List of CreateChildRolloutJobs
*
* @param Job[] $createRolloutJobs
*/
public function setCreateRolloutJobs($createRolloutJobs)
{
$this->createRolloutJobs = $createRolloutJobs;
}
/**
* @return Job[]
*/
public function getCreateRolloutJobs()
{
return $this->createRolloutJobs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ChildRolloutJobs::class, 'Google_Service_CloudDeploy_ChildRolloutJobs');
@@ -0,0 +1,127 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class CloudRunConfig extends \Google\Collection
{
protected $collection_key = 'stableRevisionTags';
/**
* Optional. 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.
*
* @var bool
*/
public $automaticTrafficControl;
/**
* Optional. A list of tags that are added to the canary revision while the
* canary phase is in progress.
*
* @var string[]
*/
public $canaryRevisionTags;
/**
* Optional. A list of tags that are added to the prior revision while the
* canary phase is in progress.
*
* @var string[]
*/
public $priorRevisionTags;
/**
* Optional. A list of tags that are added to the final stable revision when
* the stable phase is applied.
*
* @var string[]
*/
public $stableRevisionTags;
/**
* Optional. 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.
*
* @param bool $automaticTrafficControl
*/
public function setAutomaticTrafficControl($automaticTrafficControl)
{
$this->automaticTrafficControl = $automaticTrafficControl;
}
/**
* @return bool
*/
public function getAutomaticTrafficControl()
{
return $this->automaticTrafficControl;
}
/**
* Optional. A list of tags that are added to the canary revision while the
* canary phase is in progress.
*
* @param string[] $canaryRevisionTags
*/
public function setCanaryRevisionTags($canaryRevisionTags)
{
$this->canaryRevisionTags = $canaryRevisionTags;
}
/**
* @return string[]
*/
public function getCanaryRevisionTags()
{
return $this->canaryRevisionTags;
}
/**
* Optional. A list of tags that are added to the prior revision while the
* canary phase is in progress.
*
* @param string[] $priorRevisionTags
*/
public function setPriorRevisionTags($priorRevisionTags)
{
$this->priorRevisionTags = $priorRevisionTags;
}
/**
* @return string[]
*/
public function getPriorRevisionTags()
{
return $this->priorRevisionTags;
}
/**
* Optional. A list of tags that are added to the final stable revision when
* the stable phase is applied.
*
* @param string[] $stableRevisionTags
*/
public function setStableRevisionTags($stableRevisionTags)
{
$this->stableRevisionTags = $stableRevisionTags;
}
/**
* @return string[]
*/
public function getStableRevisionTags()
{
return $this->stableRevisionTags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudRunConfig::class, 'Google_Service_CloudDeploy_CloudRunConfig');
@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class CloudRunLocation extends \Google\Model
{
/**
* Required. The location for the Cloud Run Service. Format must be
* `projects/{project}/locations/{location}`.
*
* @var string
*/
public $location;
/**
* Required. The location for the Cloud Run Service. Format must be
* `projects/{project}/locations/{location}`.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudRunLocation::class, 'Google_Service_CloudDeploy_CloudRunLocation');
@@ -0,0 +1,179 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class CloudRunMetadata extends \Google\Collection
{
protected $collection_key = 'serviceUrls';
/**
* Output only. The name of the Cloud Run job that is associated with a
* `Rollout`. Format is
* `projects/{project}/locations/{location}/jobs/{job_name}`.
*
* @var string
*/
public $job;
/**
* Output only. The previous Cloud Run Revision name associated with a
* `Rollout`. Only set when a canary deployment strategy is configured. Format
* for service is projects/{project}/locations/{location}/services/{service}/r
* evisions/{revision}. Format for worker pool is projects/{project}/locations
* /{location}/workerPools/{workerpool}/revisions/{revision}.
*
* @var string
*/
public $previousRevision;
/**
* Output only. The Cloud Run Revision id associated with a `Rollout`.
*
* @var string
*/
public $revision;
/**
* Output only. The name of the Cloud Run Service that is associated with a
* `Rollout`. Format is
* `projects/{project}/locations/{location}/services/{service}`.
*
* @var string
*/
public $service;
/**
* Output only. The Cloud Run Service urls that are associated with a
* `Rollout`.
*
* @var string[]
*/
public $serviceUrls;
/**
* Output only. The Cloud Run worker pool associated with a `Rollout`. Format
* is `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
*
* @var string
*/
public $workerPool;
/**
* Output only. The name of the Cloud Run job that is associated with a
* `Rollout`. Format is
* `projects/{project}/locations/{location}/jobs/{job_name}`.
*
* @param string $job
*/
public function setJob($job)
{
$this->job = $job;
}
/**
* @return string
*/
public function getJob()
{
return $this->job;
}
/**
* Output only. The previous Cloud Run Revision name associated with a
* `Rollout`. Only set when a canary deployment strategy is configured. Format
* for service is projects/{project}/locations/{location}/services/{service}/r
* evisions/{revision}. Format for worker pool is projects/{project}/locations
* /{location}/workerPools/{workerpool}/revisions/{revision}.
*
* @param string $previousRevision
*/
public function setPreviousRevision($previousRevision)
{
$this->previousRevision = $previousRevision;
}
/**
* @return string
*/
public function getPreviousRevision()
{
return $this->previousRevision;
}
/**
* Output only. The Cloud Run Revision id associated with a `Rollout`.
*
* @param string $revision
*/
public function setRevision($revision)
{
$this->revision = $revision;
}
/**
* @return string
*/
public function getRevision()
{
return $this->revision;
}
/**
* Output only. The name of the Cloud Run Service that is associated with a
* `Rollout`. Format is
* `projects/{project}/locations/{location}/services/{service}`.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
/**
* Output only. The Cloud Run Service urls that are associated with a
* `Rollout`.
*
* @param string[] $serviceUrls
*/
public function setServiceUrls($serviceUrls)
{
$this->serviceUrls = $serviceUrls;
}
/**
* @return string[]
*/
public function getServiceUrls()
{
return $this->serviceUrls;
}
/**
* Output only. The Cloud Run worker pool associated with a `Rollout`. Format
* is `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
*
* @param string $workerPool
*/
public function setWorkerPool($workerPool)
{
$this->workerPool = $workerPool;
}
/**
* @return string
*/
public function getWorkerPool()
{
return $this->workerPool;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudRunMetadata::class, 'Google_Service_CloudDeploy_CloudRunMetadata');
@@ -0,0 +1,126 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class CloudRunRenderMetadata extends \Google\Model
{
/**
* Output only. The name of the Cloud Run Job in the rendered manifest. Format
* is `projects/{project}/locations/{location}/jobs/{job}`.
*
* @var string
*/
public $job;
/**
* Output only. The name of the Cloud Run Revision in the rendered manifest.
* Format is `projects/{project}/locations/{location}/services/{service}/revis
* ions/{revision}`.
*
* @var string
*/
public $revision;
/**
* Output only. The name of the Cloud Run Service in the rendered manifest.
* Format is `projects/{project}/locations/{location}/services/{service}`.
*
* @var string
*/
public $service;
/**
* Output only. The name of the Cloud Run Worker Pool in the rendered
* manifest. Format is
* `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
*
* @var string
*/
public $workerPool;
/**
* Output only. The name of the Cloud Run Job in the rendered manifest. Format
* is `projects/{project}/locations/{location}/jobs/{job}`.
*
* @param string $job
*/
public function setJob($job)
{
$this->job = $job;
}
/**
* @return string
*/
public function getJob()
{
return $this->job;
}
/**
* Output only. The name of the Cloud Run Revision in the rendered manifest.
* Format is `projects/{project}/locations/{location}/services/{service}/revis
* ions/{revision}`.
*
* @param string $revision
*/
public function setRevision($revision)
{
$this->revision = $revision;
}
/**
* @return string
*/
public function getRevision()
{
return $this->revision;
}
/**
* Output only. The name of the Cloud Run Service in the rendered manifest.
* Format is `projects/{project}/locations/{location}/services/{service}`.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
/**
* Output only. The name of the Cloud Run Worker Pool in the rendered
* manifest. Format is
* `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
*
* @param string $workerPool
*/
public function setWorkerPool($workerPool)
{
$this->workerPool = $workerPool;
}
/**
* @return string
*/
public function getWorkerPool()
{
return $this->workerPool;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudRunRenderMetadata::class, 'Google_Service_CloudDeploy_CloudRunRenderMetadata');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class ClouddeployEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClouddeployEmpty::class, 'Google_Service_CloudDeploy_ClouddeployEmpty');
@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class Config extends \Google\Collection
{
protected $collection_key = 'supportedVersions';
/**
* Default Skaffold version that is assigned when a Release is created without
* specifying a Skaffold version.
*
* @var string
*/
public $defaultSkaffoldVersion;
protected $defaultToolVersionsType = ToolVersions::class;
protected $defaultToolVersionsDataType = '';
/**
* Name of the configuration.
*
* @var string
*/
public $name;
protected $supportedVersionsType = SkaffoldVersion::class;
protected $supportedVersionsDataType = 'array';
/**
* Default Skaffold version that is assigned when a Release is created without
* specifying a Skaffold version.
*
* @param string $defaultSkaffoldVersion
*/
public function setDefaultSkaffoldVersion($defaultSkaffoldVersion)
{
$this->defaultSkaffoldVersion = $defaultSkaffoldVersion;
}
/**
* @return string
*/
public function getDefaultSkaffoldVersion()
{
return $this->defaultSkaffoldVersion;
}
/**
* Output only. Default tool versions. These tool versions are assigned when a
* Release is created without specifying tool versions.
*
* @param ToolVersions $defaultToolVersions
*/
public function setDefaultToolVersions(ToolVersions $defaultToolVersions)
{
$this->defaultToolVersions = $defaultToolVersions;
}
/**
* @return ToolVersions
*/
public function getDefaultToolVersions()
{
return $this->defaultToolVersions;
}
/**
* Name of the configuration.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* All supported versions of Skaffold.
*
* @param SkaffoldVersion[] $supportedVersions
*/
public function setSupportedVersions($supportedVersions)
{
$this->supportedVersions = $supportedVersions;
}
/**
* @return SkaffoldVersion[]
*/
public function getSupportedVersions()
{
return $this->supportedVersions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Config::class, 'Google_Service_CloudDeploy_Config');
@@ -0,0 +1,119 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class ContainerTask extends \Google\Collection
{
protected $collection_key = 'command';
/**
* Optional. Args is the container arguments to use. This overrides the
* default arguments defined in the container image.
*
* @var string[]
*/
public $args;
/**
* Optional. Command is the container entrypoint to use. This overrides the
* default entrypoint defined in the container image.
*
* @var string[]
*/
public $command;
/**
* Optional. Environment variables that are set in the container.
*
* @var string[]
*/
public $env;
/**
* Required. Image is the container image to use.
*
* @var string
*/
public $image;
/**
* Optional. Args is the container arguments to use. This overrides the
* default arguments defined in the container image.
*
* @param string[] $args
*/
public function setArgs($args)
{
$this->args = $args;
}
/**
* @return string[]
*/
public function getArgs()
{
return $this->args;
}
/**
* Optional. Command is the container entrypoint to use. This overrides the
* default entrypoint defined in the container image.
*
* @param string[] $command
*/
public function setCommand($command)
{
$this->command = $command;
}
/**
* @return string[]
*/
public function getCommand()
{
return $this->command;
}
/**
* Optional. Environment variables that are set in the container.
*
* @param string[] $env
*/
public function setEnv($env)
{
$this->env = $env;
}
/**
* @return string[]
*/
public function getEnv()
{
return $this->env;
}
/**
* Required. Image is the container image to use.
*
* @param string $image
*/
public function setImage($image)
{
$this->image = $image;
}
/**
* @return string
*/
public function getImage()
{
return $this->image;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContainerTask::class, 'Google_Service_CloudDeploy_ContainerTask');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class CreateChildRolloutJob extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateChildRolloutJob::class, 'Google_Service_CloudDeploy_CreateChildRolloutJob');
@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class CreateChildRolloutJobRun extends \Google\Model
{
/**
* Output only. Name of the `ChildRollout`. Format is `projects/{project}/loca
* tions/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/ro
* llouts/{rollout}`.
*
* @var string
*/
public $rollout;
/**
* Output only. The ID of the childRollout Phase initiated by this JobRun.
*
* @var string
*/
public $rolloutPhaseId;
/**
* Output only. Name of the `ChildRollout`. Format is `projects/{project}/loca
* tions/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/ro
* llouts/{rollout}`.
*
* @param string $rollout
*/
public function setRollout($rollout)
{
$this->rollout = $rollout;
}
/**
* @return string
*/
public function getRollout()
{
return $this->rollout;
}
/**
* Output only. The ID of the childRollout Phase initiated by this JobRun.
*
* @param string $rolloutPhaseId
*/
public function setRolloutPhaseId($rolloutPhaseId)
{
$this->rolloutPhaseId = $rolloutPhaseId;
}
/**
* @return string
*/
public function getRolloutPhaseId()
{
return $this->rolloutPhaseId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateChildRolloutJobRun::class, 'Google_Service_CloudDeploy_CreateChildRolloutJobRun');
@@ -0,0 +1,46 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class CustomCanaryDeployment extends \Google\Collection
{
protected $collection_key = 'phaseConfigs';
protected $phaseConfigsType = PhaseConfig::class;
protected $phaseConfigsDataType = 'array';
/**
* Required. Configuration for each phase in the canary deployment in the
* order executed.
*
* @param PhaseConfig[] $phaseConfigs
*/
public function setPhaseConfigs($phaseConfigs)
{
$this->phaseConfigs = $phaseConfigs;
}
/**
* @return PhaseConfig[]
*/
public function getPhaseConfigs()
{
return $this->phaseConfigs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomCanaryDeployment::class, 'Google_Service_CloudDeploy_CustomCanaryDeployment');
@@ -0,0 +1,90 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class CustomCheck extends \Google\Model
{
/**
* Optional. The frequency at which the custom check will be run, with a
* minimum and default of 5 minutes.
*
* @var string
*/
public $frequency;
/**
* Required. The ID of the custom Analysis check.
*
* @var string
*/
public $id;
protected $taskType = Task::class;
protected $taskDataType = '';
/**
* Optional. The frequency at which the custom check will be run, with a
* minimum and default of 5 minutes.
*
* @param string $frequency
*/
public function setFrequency($frequency)
{
$this->frequency = $frequency;
}
/**
* @return string
*/
public function getFrequency()
{
return $this->frequency;
}
/**
* Required. The ID of the custom Analysis check.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Required. The Task to be run for this custom check.
*
* @param Task $task
*/
public function setTask(Task $task)
{
$this->task = $task;
}
/**
* @return Task
*/
public function getTask()
{
return $this->task;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomCheck::class, 'Google_Service_CloudDeploy_CustomCheck');
@@ -0,0 +1,210 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class CustomCheckStatus extends \Google\Model
{
/**
* No reason for failure is specified.
*/
public const FAILURE_CAUSE_FAILURE_CAUSE_UNSPECIFIED = 'FAILURE_CAUSE_UNSPECIFIED';
/**
* 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).
*/
public const FAILURE_CAUSE_CLOUD_BUILD_UNAVAILABLE = 'CLOUD_BUILD_UNAVAILABLE';
/**
* The analysis operation did not complete successfully; check Cloud Build
* logs.
*/
public const FAILURE_CAUSE_EXECUTION_FAILED = 'EXECUTION_FAILED';
/**
* The analysis job run did not complete within the alloted time defined in
* the target's execution environment configuration.
*/
public const FAILURE_CAUSE_DEADLINE_EXCEEDED = 'DEADLINE_EXCEEDED';
/**
* Cloud Build failed to fulfill Cloud Deploy's request. See failure_message
* for additional details.
*/
public const FAILURE_CAUSE_CLOUD_BUILD_REQUEST_FAILED = 'CLOUD_BUILD_REQUEST_FAILED';
/**
* Output only. The reason the analysis failed. This will always be
* unspecified while the analysis is in progress or if it succeeded.
*
* @var string
*/
public $failureCause;
/**
* Output only. Additional information about the analysis failure, if
* available.
*
* @var string
*/
public $failureMessage;
/**
* Output only. The frequency in minutes at which the custom check is run.
*
* @var string
*/
public $frequency;
/**
* Output only. The ID of the custom check.
*
* @var string
*/
public $id;
/**
* Output only. The resource name of the Cloud Build `Build` object that was
* used to execute the latest run of this custom action check. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
* @var string
*/
public $latestBuild;
protected $metadataType = CustomMetadata::class;
protected $metadataDataType = '';
protected $taskType = Task::class;
protected $taskDataType = '';
/**
* Output only. The reason the analysis failed. This will always be
* unspecified while the analysis is in progress or if it succeeded.
*
* Accepted values: FAILURE_CAUSE_UNSPECIFIED, CLOUD_BUILD_UNAVAILABLE,
* EXECUTION_FAILED, DEADLINE_EXCEEDED, CLOUD_BUILD_REQUEST_FAILED
*
* @param self::FAILURE_CAUSE_* $failureCause
*/
public function setFailureCause($failureCause)
{
$this->failureCause = $failureCause;
}
/**
* @return self::FAILURE_CAUSE_*
*/
public function getFailureCause()
{
return $this->failureCause;
}
/**
* Output only. Additional information about the analysis failure, if
* available.
*
* @param string $failureMessage
*/
public function setFailureMessage($failureMessage)
{
$this->failureMessage = $failureMessage;
}
/**
* @return string
*/
public function getFailureMessage()
{
return $this->failureMessage;
}
/**
* Output only. The frequency in minutes at which the custom check is run.
*
* @param string $frequency
*/
public function setFrequency($frequency)
{
$this->frequency = $frequency;
}
/**
* @return string
*/
public function getFrequency()
{
return $this->frequency;
}
/**
* Output only. The ID of the custom check.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Output only. The resource name of the Cloud Build `Build` object that was
* used to execute the latest run of this custom action check. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
* @param string $latestBuild
*/
public function setLatestBuild($latestBuild)
{
$this->latestBuild = $latestBuild;
}
/**
* @return string
*/
public function getLatestBuild()
{
return $this->latestBuild;
}
/**
* Output only. Custom metadata provided by the user-defined custom check
* operation. result.
*
* @param CustomMetadata $metadata
*/
public function setMetadata(CustomMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return CustomMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Output only. The task that ran for this custom check.
*
* @param Task $task
*/
public function setTask(Task $task)
{
$this->task = $task;
}
/**
* @return Task
*/
public function getTask()
{
return $this->task;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomCheckStatus::class, 'Google_Service_CloudDeploy_CustomCheckStatus');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class CustomMetadata extends \Google\Model
{
/**
* Output only. Key-value pairs provided by the user-defined operation.
*
* @var string[]
*/
public $values;
/**
* Output only. Key-value pairs provided by the user-defined operation.
*
* @param string[] $values
*/
public function setValues($values)
{
$this->values = $values;
}
/**
* @return string[]
*/
public function getValues()
{
return $this->values;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomMetadata::class, 'Google_Service_CloudDeploy_CustomMetadata');
@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class CustomTarget extends \Google\Model
{
/**
* Required. The name of the CustomTargetType. Format must be `projects/{proje
* ct}/locations/{location}/customTargetTypes/{custom_target_type}`.
*
* @var string
*/
public $customTargetType;
/**
* Required. The name of the CustomTargetType. Format must be `projects/{proje
* ct}/locations/{location}/customTargetTypes/{custom_target_type}`.
*
* @param string $customTargetType
*/
public function setCustomTargetType($customTargetType)
{
$this->customTargetType = $customTargetType;
}
/**
* @return string
*/
public function getCustomTargetType()
{
return $this->customTargetType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomTarget::class, 'Google_Service_CloudDeploy_CustomTarget');
@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class CustomTargetDeployMetadata extends \Google\Model
{
/**
* Output only. Skip message provided in the results of a custom deploy
* operation.
*
* @var string
*/
public $skipMessage;
/**
* Output only. Skip message provided in the results of a custom deploy
* operation.
*
* @param string $skipMessage
*/
public function setSkipMessage($skipMessage)
{
$this->skipMessage = $skipMessage;
}
/**
* @return string
*/
public function getSkipMessage()
{
return $this->skipMessage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomTargetDeployMetadata::class, 'Google_Service_CloudDeploy_CustomTargetDeployMetadata');
@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class CustomTargetSkaffoldActions extends \Google\Collection
{
protected $collection_key = 'includeSkaffoldModules';
/**
* Required. The Skaffold custom action responsible for deploy operations.
*
* @var string
*/
public $deployAction;
protected $includeSkaffoldModulesType = SkaffoldModules::class;
protected $includeSkaffoldModulesDataType = 'array';
/**
* Optional. The Skaffold custom action responsible for render operations. If
* not provided then Cloud Deploy will perform the render operations via
* `skaffold render`.
*
* @var string
*/
public $renderAction;
/**
* Required. The Skaffold custom action responsible for deploy operations.
*
* @param string $deployAction
*/
public function setDeployAction($deployAction)
{
$this->deployAction = $deployAction;
}
/**
* @return string
*/
public function getDeployAction()
{
return $this->deployAction;
}
/**
* Optional. List of Skaffold modules Cloud Deploy will include in the
* Skaffold Config as required before performing diagnose.
*
* @param SkaffoldModules[] $includeSkaffoldModules
*/
public function setIncludeSkaffoldModules($includeSkaffoldModules)
{
$this->includeSkaffoldModules = $includeSkaffoldModules;
}
/**
* @return SkaffoldModules[]
*/
public function getIncludeSkaffoldModules()
{
return $this->includeSkaffoldModules;
}
/**
* Optional. The Skaffold custom action responsible for render operations. If
* not provided then Cloud Deploy will perform the render operations via
* `skaffold render`.
*
* @param string $renderAction
*/
public function setRenderAction($renderAction)
{
$this->renderAction = $renderAction;
}
/**
* @return string
*/
public function getRenderAction()
{
return $this->renderAction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomTargetSkaffoldActions::class, 'Google_Service_CloudDeploy_CustomTargetSkaffoldActions');
@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class CustomTargetTasks extends \Google\Model
{
protected $deployType = Task::class;
protected $deployDataType = '';
protected $renderType = Task::class;
protected $renderDataType = '';
/**
* Required. The task responsible for deploy operations.
*
* @param Task $deploy
*/
public function setDeploy(Task $deploy)
{
$this->deploy = $deploy;
}
/**
* @return Task
*/
public function getDeploy()
{
return $this->deploy;
}
/**
* Optional. The task responsible for render operations. If not provided then
* Cloud Deploy will perform its default rendering operation.
*
* @param Task $render
*/
public function setRender(Task $render)
{
$this->render = $render;
}
/**
* @return Task
*/
public function getRender()
{
return $this->render;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomTargetTasks::class, 'Google_Service_CloudDeploy_CustomTargetTasks');
@@ -0,0 +1,292 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class CustomTargetType extends \Google\Model
{
/**
* 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.
*
* @var string[]
*/
public $annotations;
/**
* Output only. Time at which the `CustomTargetType` was created.
*
* @var string
*/
public $createTime;
protected $customActionsType = CustomTargetSkaffoldActions::class;
protected $customActionsDataType = '';
/**
* Output only. Resource id of the `CustomTargetType`.
*
* @var string
*/
public $customTargetTypeId;
/**
* Optional. Description of the `CustomTargetType`. Max length is 255
* characters.
*
* @var string
*/
public $description;
/**
* 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.
*
* @var string
*/
public $etag;
/**
* 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.
*
* @var string[]
*/
public $labels;
/**
* Identifier. Name of the `CustomTargetType`. Format is `projects/{project}/l
* ocations/{location}/customTargetTypes/{customTargetType}`. The
* `customTargetType` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* @var string
*/
public $name;
protected $tasksType = CustomTargetTasks::class;
protected $tasksDataType = '';
/**
* Output only. Unique identifier of the `CustomTargetType`.
*
* @var string
*/
public $uid;
/**
* Output only. Most recent time at which the `CustomTargetType` was updated.
*
* @var string
*/
public $updateTime;
/**
* 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.
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Output only. Time at which the `CustomTargetType` was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. Configures render and deploy for the `CustomTargetType` using
* Skaffold custom actions.
*
* @param CustomTargetSkaffoldActions $customActions
*/
public function setCustomActions(CustomTargetSkaffoldActions $customActions)
{
$this->customActions = $customActions;
}
/**
* @return CustomTargetSkaffoldActions
*/
public function getCustomActions()
{
return $this->customActions;
}
/**
* Output only. Resource id of the `CustomTargetType`.
*
* @param string $customTargetTypeId
*/
public function setCustomTargetTypeId($customTargetTypeId)
{
$this->customTargetTypeId = $customTargetTypeId;
}
/**
* @return string
*/
public function getCustomTargetTypeId()
{
return $this->customTargetTypeId;
}
/**
* Optional. Description of the `CustomTargetType`. Max length is 255
* characters.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* 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.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* 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.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. Name of the `CustomTargetType`. Format is `projects/{project}/l
* ocations/{location}/customTargetTypes/{customTargetType}`. The
* `customTargetType` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. Configures render and deploy for the `CustomTargetType` using
* tasks.
*
* @param CustomTargetTasks $tasks
*/
public function setTasks(CustomTargetTasks $tasks)
{
$this->tasks = $tasks;
}
/**
* @return CustomTargetTasks
*/
public function getTasks()
{
return $this->tasks;
}
/**
* Output only. Unique identifier of the `CustomTargetType`.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. Most recent time at which the `CustomTargetType` was updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomTargetType::class, 'Google_Service_CloudDeploy_CustomTargetType');
@@ -0,0 +1,157 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class CustomTargetTypeNotificationEvent extends \Google\Model
{
/**
* Type is unspecified.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* A Pub/Sub notification failed to be sent.
*/
public const TYPE_TYPE_PUBSUB_NOTIFICATION_FAILURE = 'TYPE_PUBSUB_NOTIFICATION_FAILURE';
/**
* Resource state changed.
*/
public const TYPE_TYPE_RESOURCE_STATE_CHANGE = 'TYPE_RESOURCE_STATE_CHANGE';
/**
* A process aborted.
*/
public const TYPE_TYPE_PROCESS_ABORTED = 'TYPE_PROCESS_ABORTED';
/**
* Restriction check failed.
*/
public const TYPE_TYPE_RESTRICTION_VIOLATED = 'TYPE_RESTRICTION_VIOLATED';
/**
* Resource deleted.
*/
public const TYPE_TYPE_RESOURCE_DELETED = 'TYPE_RESOURCE_DELETED';
/**
* Rollout updated.
*/
public const TYPE_TYPE_ROLLOUT_UPDATE = 'TYPE_ROLLOUT_UPDATE';
/**
* Deploy Policy evaluation.
*/
public const TYPE_TYPE_DEPLOY_POLICY_EVALUATION = 'TYPE_DEPLOY_POLICY_EVALUATION';
/**
* Deprecated: This field is never used. Use release_render log type instead.
*
* @deprecated
*/
public const TYPE_TYPE_RENDER_STATUES_CHANGE = 'TYPE_RENDER_STATUES_CHANGE';
/**
* The name of the `CustomTargetType`.
*
* @var string
*/
public $customTargetType;
/**
* Unique identifier of the `CustomTargetType`.
*
* @var string
*/
public $customTargetTypeUid;
/**
* Debug message for when a notification fails to send.
*
* @var string
*/
public $message;
/**
* Type of this notification, e.g. for a Pub/Sub failure.
*
* @var string
*/
public $type;
/**
* The name of the `CustomTargetType`.
*
* @param string $customTargetType
*/
public function setCustomTargetType($customTargetType)
{
$this->customTargetType = $customTargetType;
}
/**
* @return string
*/
public function getCustomTargetType()
{
return $this->customTargetType;
}
/**
* Unique identifier of the `CustomTargetType`.
*
* @param string $customTargetTypeUid
*/
public function setCustomTargetTypeUid($customTargetTypeUid)
{
$this->customTargetTypeUid = $customTargetTypeUid;
}
/**
* @return string
*/
public function getCustomTargetTypeUid()
{
return $this->customTargetTypeUid;
}
/**
* Debug message for when a notification fails to send.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Type of this notification, e.g. for a Pub/Sub failure.
*
* Accepted values: TYPE_UNSPECIFIED, TYPE_PUBSUB_NOTIFICATION_FAILURE,
* TYPE_RESOURCE_STATE_CHANGE, TYPE_PROCESS_ABORTED,
* TYPE_RESTRICTION_VIOLATED, TYPE_RESOURCE_DELETED, TYPE_ROLLOUT_UPDATE,
* TYPE_DEPLOY_POLICY_EVALUATION, TYPE_RENDER_STATUES_CHANGE
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomTargetTypeNotificationEvent::class, 'Google_Service_CloudDeploy_CustomTargetTypeNotificationEvent');
@@ -0,0 +1,100 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class Date extends \Google\Model
{
/**
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
* to specify a year by itself or a year and month where the day isn't
* significant.
*
* @var int
*/
public $day;
/**
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a
* month and day.
*
* @var int
*/
public $month;
/**
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
* year.
*
* @var int
*/
public $year;
/**
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
* to specify a year by itself or a year and month where the day isn't
* significant.
*
* @param int $day
*/
public function setDay($day)
{
$this->day = $day;
}
/**
* @return int
*/
public function getDay()
{
return $this->day;
}
/**
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a
* month and day.
*
* @param int $month
*/
public function setMonth($month)
{
$this->month = $month;
}
/**
* @return int
*/
public function getMonth()
{
return $this->month;
}
/**
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
* year.
*
* @param int $year
*/
public function setYear($year)
{
$this->year = $year;
}
/**
* @return int
*/
public function getYear()
{
return $this->year;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Date::class, 'Google_Service_CloudDeploy_Date');
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class DefaultPool extends \Google\Model
{
/**
* 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.
*
* @var string
*/
public $artifactStorage;
/**
* Optional. Google service account to use for execution. If unspecified, the
* project execution service account (-compute@developer.gserviceaccount.com)
* will be used.
*
* @var string
*/
public $serviceAccount;
/**
* 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.
*
* @param string $artifactStorage
*/
public function setArtifactStorage($artifactStorage)
{
$this->artifactStorage = $artifactStorage;
}
/**
* @return string
*/
public function getArtifactStorage()
{
return $this->artifactStorage;
}
/**
* Optional. Google service account to use for execution. If unspecified, the
* project execution service account (-compute@developer.gserviceaccount.com)
* will be used.
*
* @param string $serviceAccount
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DefaultPool::class, 'Google_Service_CloudDeploy_DefaultPool');
@@ -0,0 +1,289 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class DeliveryPipeline extends \Google\Model
{
/**
* Optional. User annotations. These attributes can only be set and used by
* the user, and not by Cloud Deploy.
*
* @var string[]
*/
public $annotations;
protected $conditionType = PipelineCondition::class;
protected $conditionDataType = '';
/**
* Output only. Time at which the pipeline was created.
*
* @var string
*/
public $createTime;
/**
* Optional. Description of the `DeliveryPipeline`. Max length is 255
* characters.
*
* @var string
*/
public $description;
/**
* 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.
*
* @var string
*/
public $etag;
/**
* 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.
*
* @var string[]
*/
public $labels;
/**
* Identifier. Name of the `DeliveryPipeline`. Format is `projects/{project}/l
* ocations/{location}/deliveryPipelines/{deliveryPipeline}`. The
* `deliveryPipeline` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* @var string
*/
public $name;
protected $serialPipelineType = SerialPipeline::class;
protected $serialPipelineDataType = '';
/**
* Optional. When suspended, no new releases or rollouts can be created, but
* in-progress ones will complete.
*
* @var bool
*/
public $suspended;
/**
* Output only. Unique identifier of the `DeliveryPipeline`.
*
* @var string
*/
public $uid;
/**
* Output only. Most recent time at which the pipeline was updated.
*
* @var string
*/
public $updateTime;
/**
* Optional. User annotations. These attributes can only be set and used by
* the user, and not by Cloud Deploy.
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Output only. Information around the state of the Delivery Pipeline.
*
* @param PipelineCondition $condition
*/
public function setCondition(PipelineCondition $condition)
{
$this->condition = $condition;
}
/**
* @return PipelineCondition
*/
public function getCondition()
{
return $this->condition;
}
/**
* Output only. Time at which the pipeline was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. Description of the `DeliveryPipeline`. Max length is 255
* characters.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* 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.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* 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.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. Name of the `DeliveryPipeline`. Format is `projects/{project}/l
* ocations/{location}/deliveryPipelines/{deliveryPipeline}`. The
* `deliveryPipeline` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. SerialPipeline defines a sequential set of stages for a
* `DeliveryPipeline`.
*
* @param SerialPipeline $serialPipeline
*/
public function setSerialPipeline(SerialPipeline $serialPipeline)
{
$this->serialPipeline = $serialPipeline;
}
/**
* @return SerialPipeline
*/
public function getSerialPipeline()
{
return $this->serialPipeline;
}
/**
* Optional. When suspended, no new releases or rollouts can be created, but
* in-progress ones will complete.
*
* @param bool $suspended
*/
public function setSuspended($suspended)
{
$this->suspended = $suspended;
}
/**
* @return bool
*/
public function getSuspended()
{
return $this->suspended;
}
/**
* Output only. Unique identifier of the `DeliveryPipeline`.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. Most recent time at which the pipeline was updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeliveryPipeline::class, 'Google_Service_CloudDeploy_DeliveryPipeline');
@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class DeliveryPipelineAttribute extends \Google\Model
{
/**
* Optional. ID of the `DeliveryPipeline`. The value of this field could be
* one of the following: * The last segment of a pipeline name * "*", all
* delivery pipelines in a location
*
* @var string
*/
public $id;
/**
* DeliveryPipeline labels.
*
* @var string[]
*/
public $labels;
/**
* Optional. ID of the `DeliveryPipeline`. The value of this field could be
* one of the following: * The last segment of a pipeline name * "*", all
* delivery pipelines in a location
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* DeliveryPipeline labels.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeliveryPipelineAttribute::class, 'Google_Service_CloudDeploy_DeliveryPipelineAttribute');
@@ -0,0 +1,157 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class DeliveryPipelineNotificationEvent extends \Google\Model
{
/**
* Type is unspecified.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* A Pub/Sub notification failed to be sent.
*/
public const TYPE_TYPE_PUBSUB_NOTIFICATION_FAILURE = 'TYPE_PUBSUB_NOTIFICATION_FAILURE';
/**
* Resource state changed.
*/
public const TYPE_TYPE_RESOURCE_STATE_CHANGE = 'TYPE_RESOURCE_STATE_CHANGE';
/**
* A process aborted.
*/
public const TYPE_TYPE_PROCESS_ABORTED = 'TYPE_PROCESS_ABORTED';
/**
* Restriction check failed.
*/
public const TYPE_TYPE_RESTRICTION_VIOLATED = 'TYPE_RESTRICTION_VIOLATED';
/**
* Resource deleted.
*/
public const TYPE_TYPE_RESOURCE_DELETED = 'TYPE_RESOURCE_DELETED';
/**
* Rollout updated.
*/
public const TYPE_TYPE_ROLLOUT_UPDATE = 'TYPE_ROLLOUT_UPDATE';
/**
* Deploy Policy evaluation.
*/
public const TYPE_TYPE_DEPLOY_POLICY_EVALUATION = 'TYPE_DEPLOY_POLICY_EVALUATION';
/**
* Deprecated: This field is never used. Use release_render log type instead.
*
* @deprecated
*/
public const TYPE_TYPE_RENDER_STATUES_CHANGE = 'TYPE_RENDER_STATUES_CHANGE';
/**
* The name of the `Delivery Pipeline`.
*
* @var string
*/
public $deliveryPipeline;
/**
* Debug message for when a notification fails to send.
*
* @var string
*/
public $message;
/**
* Unique identifier of the `DeliveryPipeline`.
*
* @var string
*/
public $pipelineUid;
/**
* Type of this notification, e.g. for a Pub/Sub failure.
*
* @var string
*/
public $type;
/**
* The name of the `Delivery Pipeline`.
*
* @param string $deliveryPipeline
*/
public function setDeliveryPipeline($deliveryPipeline)
{
$this->deliveryPipeline = $deliveryPipeline;
}
/**
* @return string
*/
public function getDeliveryPipeline()
{
return $this->deliveryPipeline;
}
/**
* Debug message for when a notification fails to send.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Unique identifier of the `DeliveryPipeline`.
*
* @param string $pipelineUid
*/
public function setPipelineUid($pipelineUid)
{
$this->pipelineUid = $pipelineUid;
}
/**
* @return string
*/
public function getPipelineUid()
{
return $this->pipelineUid;
}
/**
* Type of this notification, e.g. for a Pub/Sub failure.
*
* Accepted values: TYPE_UNSPECIFIED, TYPE_PUBSUB_NOTIFICATION_FAILURE,
* TYPE_RESOURCE_STATE_CHANGE, TYPE_PROCESS_ABORTED,
* TYPE_RESTRICTION_VIOLATED, TYPE_RESOURCE_DELETED, TYPE_ROLLOUT_UPDATE,
* TYPE_DEPLOY_POLICY_EVALUATION, TYPE_RENDER_STATUES_CHANGE
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeliveryPipelineNotificationEvent::class, 'Google_Service_CloudDeploy_DeliveryPipelineNotificationEvent');
@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class DeployArtifact extends \Google\Collection
{
protected $collection_key = 'manifestPaths';
/**
* Output only. URI of a directory containing the artifacts. All paths are
* relative to this location.
*
* @var string
*/
public $artifactUri;
/**
* Output only. File paths of the manifests applied during the deploy
* operation relative to the URI.
*
* @var string[]
*/
public $manifestPaths;
/**
* Output only. URI of a directory containing the artifacts. All paths are
* relative to this location.
*
* @param string $artifactUri
*/
public function setArtifactUri($artifactUri)
{
$this->artifactUri = $artifactUri;
}
/**
* @return string
*/
public function getArtifactUri()
{
return $this->artifactUri;
}
/**
* Output only. File paths of the manifests applied during the deploy
* operation relative to the URI.
*
* @param string[] $manifestPaths
*/
public function setManifestPaths($manifestPaths)
{
$this->manifestPaths = $manifestPaths;
}
/**
* @return string[]
*/
public function getManifestPaths()
{
return $this->manifestPaths;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeployArtifact::class, 'Google_Service_CloudDeploy_DeployArtifact');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class DeployJob extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeployJob::class, 'Google_Service_CloudDeploy_DeployJob');
@@ -0,0 +1,171 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class DeployJobRun extends \Google\Model
{
/**
* No reason for failure is specified.
*/
public const FAILURE_CAUSE_FAILURE_CAUSE_UNSPECIFIED = 'FAILURE_CAUSE_UNSPECIFIED';
/**
* 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).
*/
public const FAILURE_CAUSE_CLOUD_BUILD_UNAVAILABLE = 'CLOUD_BUILD_UNAVAILABLE';
/**
* The deploy operation did not complete successfully; check Cloud Build logs.
*/
public const FAILURE_CAUSE_EXECUTION_FAILED = 'EXECUTION_FAILED';
/**
* The deploy job run did not complete within the allotted time.
*/
public const FAILURE_CAUSE_DEADLINE_EXCEEDED = 'DEADLINE_EXCEEDED';
/**
* There were missing resources in the runtime environment required for a
* canary deployment. Check the Cloud Build logs for more information.
*/
public const FAILURE_CAUSE_MISSING_RESOURCES_FOR_CANARY = 'MISSING_RESOURCES_FOR_CANARY';
/**
* Cloud Build failed to fulfill Cloud Deploy's request. See failure_message
* for additional details.
*/
public const FAILURE_CAUSE_CLOUD_BUILD_REQUEST_FAILED = 'CLOUD_BUILD_REQUEST_FAILED';
/**
* The deploy operation had a feature configured that is not supported.
*/
public const FAILURE_CAUSE_DEPLOY_FEATURE_NOT_SUPPORTED = 'DEPLOY_FEATURE_NOT_SUPPORTED';
protected $artifactType = DeployArtifact::class;
protected $artifactDataType = '';
/**
* Output only. The resource name of the Cloud Build `Build` object that is
* used to deploy. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
* @var string
*/
public $build;
/**
* Output only. The reason the deploy failed. This will always be unspecified
* while the deploy is in progress or if it succeeded.
*
* @var string
*/
public $failureCause;
/**
* Output only. Additional information about the deploy failure, if available.
*
* @var string
*/
public $failureMessage;
protected $metadataType = DeployJobRunMetadata::class;
protected $metadataDataType = '';
/**
* Output only. The artifact of a deploy job run, if available.
*
* @param DeployArtifact $artifact
*/
public function setArtifact(DeployArtifact $artifact)
{
$this->artifact = $artifact;
}
/**
* @return DeployArtifact
*/
public function getArtifact()
{
return $this->artifact;
}
/**
* Output only. The resource name of the Cloud Build `Build` object that is
* used to deploy. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
* @param string $build
*/
public function setBuild($build)
{
$this->build = $build;
}
/**
* @return string
*/
public function getBuild()
{
return $this->build;
}
/**
* Output only. The reason the deploy failed. This will always be unspecified
* while the deploy is in progress or if it succeeded.
*
* Accepted values: FAILURE_CAUSE_UNSPECIFIED, CLOUD_BUILD_UNAVAILABLE,
* EXECUTION_FAILED, DEADLINE_EXCEEDED, MISSING_RESOURCES_FOR_CANARY,
* CLOUD_BUILD_REQUEST_FAILED, DEPLOY_FEATURE_NOT_SUPPORTED
*
* @param self::FAILURE_CAUSE_* $failureCause
*/
public function setFailureCause($failureCause)
{
$this->failureCause = $failureCause;
}
/**
* @return self::FAILURE_CAUSE_*
*/
public function getFailureCause()
{
return $this->failureCause;
}
/**
* Output only. Additional information about the deploy failure, if available.
*
* @param string $failureMessage
*/
public function setFailureMessage($failureMessage)
{
$this->failureMessage = $failureMessage;
}
/**
* @return string
*/
public function getFailureMessage()
{
return $this->failureMessage;
}
/**
* Output only. Metadata containing information about the deploy job run.
*
* @param DeployJobRunMetadata $metadata
*/
public function setMetadata(DeployJobRunMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return DeployJobRunMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeployJobRun::class, 'Google_Service_CloudDeploy_DeployJobRun');
@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class DeployJobRunMetadata extends \Google\Model
{
protected $cloudRunType = CloudRunMetadata::class;
protected $cloudRunDataType = '';
protected $customType = CustomMetadata::class;
protected $customDataType = '';
protected $customTargetType = CustomTargetDeployMetadata::class;
protected $customTargetDataType = '';
/**
* Output only. The name of the Cloud Run Service that is associated with a
* `DeployJobRun`.
*
* @param CloudRunMetadata $cloudRun
*/
public function setCloudRun(CloudRunMetadata $cloudRun)
{
$this->cloudRun = $cloudRun;
}
/**
* @return CloudRunMetadata
*/
public function getCloudRun()
{
return $this->cloudRun;
}
/**
* Output only. Custom metadata provided by user-defined deploy operation.
*
* @param CustomMetadata $custom
*/
public function setCustom(CustomMetadata $custom)
{
$this->custom = $custom;
}
/**
* @return CustomMetadata
*/
public function getCustom()
{
return $this->custom;
}
/**
* Output only. Custom Target metadata associated with a `DeployJobRun`.
*
* @param CustomTargetDeployMetadata $customTarget
*/
public function setCustomTarget(CustomTargetDeployMetadata $customTarget)
{
$this->customTarget = $customTarget;
}
/**
* @return CustomTargetDeployMetadata
*/
public function getCustomTarget()
{
return $this->customTarget;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeployJobRunMetadata::class, 'Google_Service_CloudDeploy_DeployJobRunMetadata');
@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class DeployParameters extends \Google\Model
{
/**
* 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).
*
* @var string[]
*/
public $matchTargetLabels;
/**
* Required. Values are deploy parameters in key-value pairs.
*
* @var string[]
*/
public $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).
*
* @param string[] $matchTargetLabels
*/
public function setMatchTargetLabels($matchTargetLabels)
{
$this->matchTargetLabels = $matchTargetLabels;
}
/**
* @return string[]
*/
public function getMatchTargetLabels()
{
return $this->matchTargetLabels;
}
/**
* Required. Values are deploy parameters in key-value pairs.
*
* @param string[] $values
*/
public function setValues($values)
{
$this->values = $values;
}
/**
* @return string[]
*/
public function getValues()
{
return $this->values;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeployParameters::class, 'Google_Service_CloudDeploy_DeployParameters');
@@ -0,0 +1,312 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class DeployPolicy extends \Google\Collection
{
protected $collection_key = 'selectors';
/**
* 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.
*
* @var string[]
*/
public $annotations;
/**
* Output only. Time at which the deploy policy was created.
*
* @var string
*/
public $createTime;
/**
* Optional. Description of the `DeployPolicy`. Max length is 255 characters.
*
* @var string
*/
public $description;
/**
* The weak etag of the `DeployPolicy` 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.
*
* @var string
*/
public $etag;
/**
* 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.
*
* @var string[]
*/
public $labels;
/**
* Output only. Name of the `DeployPolicy`. Format is
* `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
* The `deployPolicy` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* @var string
*/
public $name;
protected $rulesType = PolicyRule::class;
protected $rulesDataType = 'array';
protected $selectorsType = DeployPolicyResourceSelector::class;
protected $selectorsDataType = 'array';
/**
* Optional. When suspended, the policy will not prevent actions from
* occurring, even if the action violates the policy.
*
* @var bool
*/
public $suspended;
/**
* Output only. Unique identifier of the `DeployPolicy`.
*
* @var string
*/
public $uid;
/**
* Output only. Most recent time at which the deploy policy was updated.
*
* @var string
*/
public $updateTime;
/**
* 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.
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Output only. Time at which the deploy policy was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. Description of the `DeployPolicy`. Max length is 255 characters.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The weak etag of the `DeployPolicy` 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.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* 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.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. Name of the `DeployPolicy`. Format is
* `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
* The `deployPolicy` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. Rules to apply. At least one rule must be present.
*
* @param PolicyRule[] $rules
*/
public function setRules($rules)
{
$this->rules = $rules;
}
/**
* @return PolicyRule[]
*/
public function getRules()
{
return $this->rules;
}
/**
* Required. Selected resources to which the policy will be applied. At least
* one selector is required. If one selector matches the resource the policy
* applies. For example, if there are two selectors and the action being
* attempted matches one of them, the policy will apply to that action.
*
* @param DeployPolicyResourceSelector[] $selectors
*/
public function setSelectors($selectors)
{
$this->selectors = $selectors;
}
/**
* @return DeployPolicyResourceSelector[]
*/
public function getSelectors()
{
return $this->selectors;
}
/**
* Optional. When suspended, the policy will not prevent actions from
* occurring, even if the action violates the policy.
*
* @param bool $suspended
*/
public function setSuspended($suspended)
{
$this->suspended = $suspended;
}
/**
* @return bool
*/
public function getSuspended()
{
return $this->suspended;
}
/**
* Output only. Unique identifier of the `DeployPolicy`.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. Most recent time at which the deploy policy was updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeployPolicy::class, 'Google_Service_CloudDeploy_DeployPolicy');
@@ -0,0 +1,357 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class DeployPolicyEvaluationEvent extends \Google\Collection
{
/**
* Unspecified.
*/
public const INVOKER_INVOKER_UNSPECIFIED = 'INVOKER_UNSPECIFIED';
/**
* The action is user-driven. For example, creating a rollout manually via a
* gcloud create command.
*/
public const INVOKER_USER = 'USER';
/**
* Automated action by Cloud Deploy.
*/
public const INVOKER_DEPLOY_AUTOMATION = 'DEPLOY_AUTOMATION';
/**
* This should never happen.
*/
public const VERDICT_POLICY_VERDICT_UNSPECIFIED = 'POLICY_VERDICT_UNSPECIFIED';
/**
* Allowed by policy. This enum value is not currently used but may be used in
* the future. Currently logs are only generated when a request is denied by
* policy.
*/
public const VERDICT_ALLOWED_BY_POLICY = 'ALLOWED_BY_POLICY';
/**
* Denied by policy.
*/
public const VERDICT_DENIED_BY_POLICY = 'DENIED_BY_POLICY';
protected $collection_key = 'overrides';
/**
* Whether the request is allowed. Allowed is set as true if: (1) the request
* complies with the policy; or (2) the request doesn't comply with the policy
* but the policy was overridden; or (3) the request doesn't comply with the
* policy but the policy was suspended
*
* @var bool
*/
public $allowed;
/**
* The name of the `Delivery Pipeline`.
*
* @var string
*/
public $deliveryPipeline;
/**
* The name of the `DeployPolicy`.
*
* @var string
*/
public $deployPolicy;
/**
* Unique identifier of the `DeployPolicy`.
*
* @var string
*/
public $deployPolicyUid;
/**
* What invoked the action (e.g. a user or automation).
*
* @var string
*/
public $invoker;
/**
* Debug message for when a deploy policy event occurs.
*
* @var string
*/
public $message;
/**
* Things that could have overridden the policy verdict. Overrides together
* with verdict decide whether the request is allowed.
*
* @var string[]
*/
public $overrides;
/**
* Unique identifier of the `Delivery Pipeline`.
*
* @var string
*/
public $pipelineUid;
/**
* Rule id.
*
* @var string
*/
public $rule;
/**
* Rule type (e.g. Restrict Rollouts).
*
* @var string
*/
public $ruleType;
/**
* The name of the `Target`. This is an optional field, as a `Target` may not
* always be applicable to a policy.
*
* @var string
*/
public $target;
/**
* Unique identifier of the `Target`. This is an optional field, as a `Target`
* may not always be applicable to a policy.
*
* @var string
*/
public $targetUid;
/**
* The policy verdict of the request.
*
* @var string
*/
public $verdict;
/**
* Whether the request is allowed. Allowed is set as true if: (1) the request
* complies with the policy; or (2) the request doesn't comply with the policy
* but the policy was overridden; or (3) the request doesn't comply with the
* policy but the policy was suspended
*
* @param bool $allowed
*/
public function setAllowed($allowed)
{
$this->allowed = $allowed;
}
/**
* @return bool
*/
public function getAllowed()
{
return $this->allowed;
}
/**
* The name of the `Delivery Pipeline`.
*
* @param string $deliveryPipeline
*/
public function setDeliveryPipeline($deliveryPipeline)
{
$this->deliveryPipeline = $deliveryPipeline;
}
/**
* @return string
*/
public function getDeliveryPipeline()
{
return $this->deliveryPipeline;
}
/**
* The name of the `DeployPolicy`.
*
* @param string $deployPolicy
*/
public function setDeployPolicy($deployPolicy)
{
$this->deployPolicy = $deployPolicy;
}
/**
* @return string
*/
public function getDeployPolicy()
{
return $this->deployPolicy;
}
/**
* Unique identifier of the `DeployPolicy`.
*
* @param string $deployPolicyUid
*/
public function setDeployPolicyUid($deployPolicyUid)
{
$this->deployPolicyUid = $deployPolicyUid;
}
/**
* @return string
*/
public function getDeployPolicyUid()
{
return $this->deployPolicyUid;
}
/**
* What invoked the action (e.g. a user or automation).
*
* Accepted values: INVOKER_UNSPECIFIED, USER, DEPLOY_AUTOMATION
*
* @param self::INVOKER_* $invoker
*/
public function setInvoker($invoker)
{
$this->invoker = $invoker;
}
/**
* @return self::INVOKER_*
*/
public function getInvoker()
{
return $this->invoker;
}
/**
* Debug message for when a deploy policy event occurs.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Things that could have overridden the policy verdict. Overrides together
* with verdict decide whether the request is allowed.
*
* @param string[] $overrides
*/
public function setOverrides($overrides)
{
$this->overrides = $overrides;
}
/**
* @return string[]
*/
public function getOverrides()
{
return $this->overrides;
}
/**
* Unique identifier of the `Delivery Pipeline`.
*
* @param string $pipelineUid
*/
public function setPipelineUid($pipelineUid)
{
$this->pipelineUid = $pipelineUid;
}
/**
* @return string
*/
public function getPipelineUid()
{
return $this->pipelineUid;
}
/**
* Rule id.
*
* @param string $rule
*/
public function setRule($rule)
{
$this->rule = $rule;
}
/**
* @return string
*/
public function getRule()
{
return $this->rule;
}
/**
* Rule type (e.g. Restrict Rollouts).
*
* @param string $ruleType
*/
public function setRuleType($ruleType)
{
$this->ruleType = $ruleType;
}
/**
* @return string
*/
public function getRuleType()
{
return $this->ruleType;
}
/**
* The name of the `Target`. This is an optional field, as a `Target` may not
* always be applicable to a policy.
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* Unique identifier of the `Target`. This is an optional field, as a `Target`
* may not always be applicable to a policy.
*
* @param string $targetUid
*/
public function setTargetUid($targetUid)
{
$this->targetUid = $targetUid;
}
/**
* @return string
*/
public function getTargetUid()
{
return $this->targetUid;
}
/**
* The policy verdict of the request.
*
* Accepted values: POLICY_VERDICT_UNSPECIFIED, ALLOWED_BY_POLICY,
* DENIED_BY_POLICY
*
* @param self::VERDICT_* $verdict
*/
public function setVerdict($verdict)
{
$this->verdict = $verdict;
}
/**
* @return self::VERDICT_*
*/
public function getVerdict()
{
return $this->verdict;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeployPolicyEvaluationEvent::class, 'Google_Service_CloudDeploy_DeployPolicyEvaluationEvent');
@@ -0,0 +1,159 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class DeployPolicyNotificationEvent extends \Google\Model
{
/**
* Type is unspecified.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* A Pub/Sub notification failed to be sent.
*/
public const TYPE_TYPE_PUBSUB_NOTIFICATION_FAILURE = 'TYPE_PUBSUB_NOTIFICATION_FAILURE';
/**
* Resource state changed.
*/
public const TYPE_TYPE_RESOURCE_STATE_CHANGE = 'TYPE_RESOURCE_STATE_CHANGE';
/**
* A process aborted.
*/
public const TYPE_TYPE_PROCESS_ABORTED = 'TYPE_PROCESS_ABORTED';
/**
* Restriction check failed.
*/
public const TYPE_TYPE_RESTRICTION_VIOLATED = 'TYPE_RESTRICTION_VIOLATED';
/**
* Resource deleted.
*/
public const TYPE_TYPE_RESOURCE_DELETED = 'TYPE_RESOURCE_DELETED';
/**
* Rollout updated.
*/
public const TYPE_TYPE_ROLLOUT_UPDATE = 'TYPE_ROLLOUT_UPDATE';
/**
* Deploy Policy evaluation.
*/
public const TYPE_TYPE_DEPLOY_POLICY_EVALUATION = 'TYPE_DEPLOY_POLICY_EVALUATION';
/**
* Deprecated: This field is never used. Use release_render log type instead.
*
* @deprecated
*/
public const TYPE_TYPE_RENDER_STATUES_CHANGE = 'TYPE_RENDER_STATUES_CHANGE';
/**
* The name of the `DeployPolicy`.
*
* @var string
*/
public $deployPolicy;
/**
* Unique identifier of the deploy policy.
*
* @var string
*/
public $deployPolicyUid;
/**
* Debug message for when a deploy policy fails to send a pub/sub
* notification.
*
* @var string
*/
public $message;
/**
* Type of this notification, e.g. for a Pub/Sub failure.
*
* @var string
*/
public $type;
/**
* The name of the `DeployPolicy`.
*
* @param string $deployPolicy
*/
public function setDeployPolicy($deployPolicy)
{
$this->deployPolicy = $deployPolicy;
}
/**
* @return string
*/
public function getDeployPolicy()
{
return $this->deployPolicy;
}
/**
* Unique identifier of the deploy policy.
*
* @param string $deployPolicyUid
*/
public function setDeployPolicyUid($deployPolicyUid)
{
$this->deployPolicyUid = $deployPolicyUid;
}
/**
* @return string
*/
public function getDeployPolicyUid()
{
return $this->deployPolicyUid;
}
/**
* Debug message for when a deploy policy fails to send a pub/sub
* notification.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Type of this notification, e.g. for a Pub/Sub failure.
*
* Accepted values: TYPE_UNSPECIFIED, TYPE_PUBSUB_NOTIFICATION_FAILURE,
* TYPE_RESOURCE_STATE_CHANGE, TYPE_PROCESS_ABORTED,
* TYPE_RESTRICTION_VIOLATED, TYPE_RESOURCE_DELETED, TYPE_ROLLOUT_UPDATE,
* TYPE_DEPLOY_POLICY_EVALUATION, TYPE_RENDER_STATUES_CHANGE
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeployPolicyNotificationEvent::class, 'Google_Service_CloudDeploy_DeployPolicyNotificationEvent');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class DeployPolicyResourceSelector extends \Google\Model
{
protected $deliveryPipelineType = DeliveryPipelineAttribute::class;
protected $deliveryPipelineDataType = '';
protected $targetType = TargetAttribute::class;
protected $targetDataType = '';
/**
* Optional. Contains attributes about a delivery pipeline.
*
* @param DeliveryPipelineAttribute $deliveryPipeline
*/
public function setDeliveryPipeline(DeliveryPipelineAttribute $deliveryPipeline)
{
$this->deliveryPipeline = $deliveryPipeline;
}
/**
* @return DeliveryPipelineAttribute
*/
public function getDeliveryPipeline()
{
return $this->deliveryPipeline;
}
/**
* Optional. Contains attributes about a target.
*
* @param TargetAttribute $target
*/
public function setTarget(TargetAttribute $target)
{
$this->target = $target;
}
/**
* @return TargetAttribute
*/
public function getTarget()
{
return $this->target;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeployPolicyResourceSelector::class, 'Google_Service_CloudDeploy_DeployPolicyResourceSelector');
@@ -0,0 +1,117 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class DeploymentJobs extends \Google\Model
{
protected $analysisJobType = Job::class;
protected $analysisJobDataType = '';
protected $deployJobType = Job::class;
protected $deployJobDataType = '';
protected $postdeployJobType = Job::class;
protected $postdeployJobDataType = '';
protected $predeployJobType = Job::class;
protected $predeployJobDataType = '';
protected $verifyJobType = Job::class;
protected $verifyJobDataType = '';
/**
* Output only. The analysis Job. Runs after a verify if there is a verify job
* and the verify job succeeds.
*
* @param Job $analysisJob
*/
public function setAnalysisJob(Job $analysisJob)
{
$this->analysisJob = $analysisJob;
}
/**
* @return Job
*/
public function getAnalysisJob()
{
return $this->analysisJob;
}
/**
* Output only. The deploy Job. This is the deploy job in the phase.
*
* @param Job $deployJob
*/
public function setDeployJob(Job $deployJob)
{
$this->deployJob = $deployJob;
}
/**
* @return Job
*/
public function getDeployJob()
{
return $this->deployJob;
}
/**
* Output only. The postdeploy Job, which is the last job on the phase.
*
* @param Job $postdeployJob
*/
public function setPostdeployJob(Job $postdeployJob)
{
$this->postdeployJob = $postdeployJob;
}
/**
* @return Job
*/
public function getPostdeployJob()
{
return $this->postdeployJob;
}
/**
* Output only. The predeploy Job, which is the first job on the phase.
*
* @param Job $predeployJob
*/
public function setPredeployJob(Job $predeployJob)
{
$this->predeployJob = $predeployJob;
}
/**
* @return Job
*/
public function getPredeployJob()
{
return $this->predeployJob;
}
/**
* Output only. The verify Job. Runs after a deploy if the deploy succeeds.
*
* @param Job $verifyJob
*/
public function setVerifyJob(Job $verifyJob)
{
$this->verifyJob = $verifyJob;
}
/**
* @return Job
*/
public function getVerifyJob()
{
return $this->verifyJob;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeploymentJobs::class, 'Google_Service_CloudDeploy_DeploymentJobs');
@@ -0,0 +1,217 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class ExecutionConfig extends \Google\Collection
{
protected $collection_key = 'usages';
/**
* 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.
*
* @var string
*/
public $artifactStorage;
protected $defaultPoolType = DefaultPool::class;
protected $defaultPoolDataType = '';
/**
* 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.
*
* @var string
*/
public $executionTimeout;
protected $privatePoolType = PrivatePool::class;
protected $privatePoolDataType = '';
/**
* Optional. Google service account to use for execution. If unspecified, the
* project execution service account (-compute@developer.gserviceaccount.com)
* is used.
*
* @var string
*/
public $serviceAccount;
/**
* Required. Usages when this configuration should be applied.
*
* @var string[]
*/
public $usages;
/**
* Optional. If true, additional logging will be enabled when running builds
* in this execution environment.
*
* @var bool
*/
public $verbose;
/**
* 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.
*
* @var string
*/
public $workerPool;
/**
* 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.
*
* @param string $artifactStorage
*/
public function setArtifactStorage($artifactStorage)
{
$this->artifactStorage = $artifactStorage;
}
/**
* @return string
*/
public function getArtifactStorage()
{
return $this->artifactStorage;
}
/**
* Optional. Use default Cloud Build pool.
*
* @param DefaultPool $defaultPool
*/
public function setDefaultPool(DefaultPool $defaultPool)
{
$this->defaultPool = $defaultPool;
}
/**
* @return DefaultPool
*/
public function getDefaultPool()
{
return $this->defaultPool;
}
/**
* 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.
*
* @param string $executionTimeout
*/
public function setExecutionTimeout($executionTimeout)
{
$this->executionTimeout = $executionTimeout;
}
/**
* @return string
*/
public function getExecutionTimeout()
{
return $this->executionTimeout;
}
/**
* Optional. Use private Cloud Build pool.
*
* @param PrivatePool $privatePool
*/
public function setPrivatePool(PrivatePool $privatePool)
{
$this->privatePool = $privatePool;
}
/**
* @return PrivatePool
*/
public function getPrivatePool()
{
return $this->privatePool;
}
/**
* Optional. Google service account to use for execution. If unspecified, the
* project execution service account (-compute@developer.gserviceaccount.com)
* is used.
*
* @param string $serviceAccount
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* Required. Usages when this configuration should be applied.
*
* @param string[] $usages
*/
public function setUsages($usages)
{
$this->usages = $usages;
}
/**
* @return string[]
*/
public function getUsages()
{
return $this->usages;
}
/**
* Optional. If true, additional logging will be enabled when running builds
* in this execution environment.
*
* @param bool $verbose
*/
public function setVerbose($verbose)
{
$this->verbose = $verbose;
}
/**
* @return bool
*/
public function getVerbose()
{
return $this->verbose;
}
/**
* 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.
*
* @param string $workerPool
*/
public function setWorkerPool($workerPool)
{
$this->workerPool = $workerPool;
}
/**
* @return string
*/
public function getWorkerPool()
{
return $this->workerPool;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecutionConfig::class, 'Google_Service_CloudDeploy_ExecutionConfig');
@@ -0,0 +1,122 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class Expr extends \Google\Model
{
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @var string
*/
public $description;
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @var string
*/
public $expression;
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @var string
*/
public $location;
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @var string
*/
public $title;
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @param string $expression
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Expr::class, 'Google_Service_CloudDeploy_Expr');
@@ -0,0 +1,77 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class FailedAlertPolicy extends \Google\Collection
{
protected $collection_key = 'alerts';
/**
* Output only. The name of the alert policy that was found to be firing.
* Format is
* `projects/{project}/locations/{location}/alertPolicies/{alertPolicy}`.
*
* @var string
*/
public $alertPolicy;
/**
* Output only. Open alerts for the alerting policies that matched the alert
* policy check configuration.
*
* @var string[]
*/
public $alerts;
/**
* Output only. The name of the alert policy that was found to be firing.
* Format is
* `projects/{project}/locations/{location}/alertPolicies/{alertPolicy}`.
*
* @param string $alertPolicy
*/
public function setAlertPolicy($alertPolicy)
{
$this->alertPolicy = $alertPolicy;
}
/**
* @return string
*/
public function getAlertPolicy()
{
return $this->alertPolicy;
}
/**
* Output only. Open alerts for the alerting policies that matched the alert
* policy check configuration.
*
* @param string[] $alerts
*/
public function setAlerts($alerts)
{
$this->alerts = $alerts;
}
/**
* @return string[]
*/
public function getAlerts()
{
return $this->alerts;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FailedAlertPolicy::class, 'Google_Service_CloudDeploy_FailedAlertPolicy');
@@ -0,0 +1,194 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class GatewayServiceMesh extends \Google\Model
{
/**
* Required. Name of the Kubernetes Deployment whose traffic is managed by the
* specified HTTPRoute and Service.
*
* @var string
*/
public $deployment;
/**
* Required. Name of the Gateway API HTTPRoute.
*
* @var string
*/
public $httpRoute;
/**
* Optional. The label to use when selecting Pods for the Deployment and
* Service resources. This label must already be present in both resources.
*
* @var string
*/
public $podSelectorLabel;
protected $routeDestinationsType = RouteDestinations::class;
protected $routeDestinationsDataType = '';
/**
* 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.
*
* @var string
*/
public $routeUpdateWaitTime;
/**
* Required. Name of the Kubernetes Service.
*
* @var string
*/
public $service;
/**
* 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.
*
* @var string
*/
public $stableCutbackDuration;
/**
* Required. Name of the Kubernetes Deployment whose traffic is managed by the
* specified HTTPRoute and Service.
*
* @param string $deployment
*/
public function setDeployment($deployment)
{
$this->deployment = $deployment;
}
/**
* @return string
*/
public function getDeployment()
{
return $this->deployment;
}
/**
* Required. Name of the Gateway API HTTPRoute.
*
* @param string $httpRoute
*/
public function setHttpRoute($httpRoute)
{
$this->httpRoute = $httpRoute;
}
/**
* @return string
*/
public function getHttpRoute()
{
return $this->httpRoute;
}
/**
* Optional. The label to use when selecting Pods for the Deployment and
* Service resources. This label must already be present in both resources.
*
* @param string $podSelectorLabel
*/
public function setPodSelectorLabel($podSelectorLabel)
{
$this->podSelectorLabel = $podSelectorLabel;
}
/**
* @return string
*/
public function getPodSelectorLabel()
{
return $this->podSelectorLabel;
}
/**
* Optional. Route destinations allow configuring the Gateway API HTTPRoute to
* be deployed to additional clusters. This option is available for multi-
* cluster service mesh set ups that require the route to exist in the
* clusters that call the service. If unspecified, the HTTPRoute will only be
* deployed to the Target cluster.
*
* @param RouteDestinations $routeDestinations
*/
public function setRouteDestinations(RouteDestinations $routeDestinations)
{
$this->routeDestinations = $routeDestinations;
}
/**
* @return RouteDestinations
*/
public function getRouteDestinations()
{
return $this->routeDestinations;
}
/**
* 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.
*
* @param string $routeUpdateWaitTime
*/
public function setRouteUpdateWaitTime($routeUpdateWaitTime)
{
$this->routeUpdateWaitTime = $routeUpdateWaitTime;
}
/**
* @return string
*/
public function getRouteUpdateWaitTime()
{
return $this->routeUpdateWaitTime;
}
/**
* Required. Name of the Kubernetes Service.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
/**
* 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.
*
* @param string $stableCutbackDuration
*/
public function setStableCutbackDuration($stableCutbackDuration)
{
$this->stableCutbackDuration = $stableCutbackDuration;
}
/**
* @return string
*/
public function getStableCutbackDuration()
{
return $this->stableCutbackDuration;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GatewayServiceMesh::class, 'Google_Service_CloudDeploy_GatewayServiceMesh');
@@ -0,0 +1,136 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class GkeCluster extends \Google\Model
{
/**
* Optional. Information specifying a GKE Cluster. Format is
* `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`.
*
* @var string
*/
public $cluster;
/**
* Optional. If set, the cluster will be accessed using the DNS endpoint. Note
* that both `dns_endpoint` and `internal_ip` cannot be set to true.
*
* @var bool
*/
public $dnsEndpoint;
/**
* 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). Note that `internal_ip` and
* `dns_endpoint` cannot both be set to true.
*
* @var bool
*/
public $internalIp;
/**
* Optional. If set, used to configure a
* [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-
* access-kubeconfig/#proxy) to the Kubernetes server.
*
* @var string
*/
public $proxyUrl;
/**
* Optional. Information specifying a GKE Cluster. Format is
* `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`.
*
* @param string $cluster
*/
public function setCluster($cluster)
{
$this->cluster = $cluster;
}
/**
* @return string
*/
public function getCluster()
{
return $this->cluster;
}
/**
* Optional. If set, the cluster will be accessed using the DNS endpoint. Note
* that both `dns_endpoint` and `internal_ip` cannot be set to true.
*
* @param bool $dnsEndpoint
*/
public function setDnsEndpoint($dnsEndpoint)
{
$this->dnsEndpoint = $dnsEndpoint;
}
/**
* @return bool
*/
public function getDnsEndpoint()
{
return $this->dnsEndpoint;
}
/**
* 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). Note that `internal_ip` and
* `dns_endpoint` cannot both be set to true.
*
* @param bool $internalIp
*/
public function setInternalIp($internalIp)
{
$this->internalIp = $internalIp;
}
/**
* @return bool
*/
public function getInternalIp()
{
return $this->internalIp;
}
/**
* Optional. If set, used to configure a
* [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-
* access-kubeconfig/#proxy) to the Kubernetes server.
*
* @param string $proxyUrl
*/
public function setProxyUrl($proxyUrl)
{
$this->proxyUrl = $proxyUrl;
}
/**
* @return string
*/
public function getProxyUrl()
{
return $this->proxyUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GkeCluster::class, 'Google_Service_CloudDeploy_GkeCluster');
@@ -0,0 +1,46 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class GoogleCloudAnalysis extends \Google\Collection
{
protected $collection_key = 'alertPolicyChecks';
protected $alertPolicyChecksType = AlertPolicyCheck::class;
protected $alertPolicyChecksDataType = 'array';
/**
* Optional. A list of Cloud Monitoring Alert Policy checks to perform as part
* of the analysis.
*
* @param AlertPolicyCheck[] $alertPolicyChecks
*/
public function setAlertPolicyChecks($alertPolicyChecks)
{
$this->alertPolicyChecks = $alertPolicyChecks;
}
/**
* @return AlertPolicyCheck[]
*/
public function getAlertPolicyChecks()
{
return $this->alertPolicyChecks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudAnalysis::class, 'Google_Service_CloudDeploy_GoogleCloudAnalysis');
@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class IgnoreJobRequest extends \Google\Collection
{
protected $collection_key = 'overrideDeployPolicy';
/**
* Required. The job ID for the Job to ignore.
*
* @var string
*/
public $jobId;
/**
* Optional. Deploy policies to override. Format is
* `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
*
* @var string[]
*/
public $overrideDeployPolicy;
/**
* Required. The phase ID the Job to ignore belongs to.
*
* @var string
*/
public $phaseId;
/**
* Required. The job ID for the Job to ignore.
*
* @param string $jobId
*/
public function setJobId($jobId)
{
$this->jobId = $jobId;
}
/**
* @return string
*/
public function getJobId()
{
return $this->jobId;
}
/**
* Optional. Deploy policies to override. Format is
* `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
*
* @param string[] $overrideDeployPolicy
*/
public function setOverrideDeployPolicy($overrideDeployPolicy)
{
$this->overrideDeployPolicy = $overrideDeployPolicy;
}
/**
* @return string[]
*/
public function getOverrideDeployPolicy()
{
return $this->overrideDeployPolicy;
}
/**
* Required. The phase ID the Job to ignore belongs to.
*
* @param string $phaseId
*/
public function setPhaseId($phaseId)
{
$this->phaseId = $phaseId;
}
/**
* @return string
*/
public function getPhaseId()
{
return $this->phaseId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IgnoreJobRequest::class, 'Google_Service_CloudDeploy_IgnoreJobRequest');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class IgnoreJobResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IgnoreJobResponse::class, 'Google_Service_CloudDeploy_IgnoreJobResponse');
+283
View File
@@ -0,0 +1,283 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class Job extends \Google\Model
{
/**
* The Job has an unspecified state.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The Job is waiting for an earlier Phase(s) or Job(s) to complete.
*/
public const STATE_PENDING = 'PENDING';
/**
* The Job is disabled.
*/
public const STATE_DISABLED = 'DISABLED';
/**
* The Job is in progress.
*/
public const STATE_IN_PROGRESS = 'IN_PROGRESS';
/**
* The Job succeeded.
*/
public const STATE_SUCCEEDED = 'SUCCEEDED';
/**
* The Job failed.
*/
public const STATE_FAILED = 'FAILED';
/**
* The Job was aborted.
*/
public const STATE_ABORTED = 'ABORTED';
/**
* The Job was skipped.
*/
public const STATE_SKIPPED = 'SKIPPED';
/**
* The Job was ignored.
*/
public const STATE_IGNORED = 'IGNORED';
protected $advanceChildRolloutJobType = AdvanceChildRolloutJob::class;
protected $advanceChildRolloutJobDataType = '';
protected $analysisJobType = AnalysisJob::class;
protected $analysisJobDataType = '';
protected $createChildRolloutJobType = CreateChildRolloutJob::class;
protected $createChildRolloutJobDataType = '';
protected $deployJobType = DeployJob::class;
protected $deployJobDataType = '';
/**
* Output only. The ID of the Job.
*
* @var string
*/
public $id;
/**
* Output only. The name of the `JobRun` responsible for the most recent
* invocation of this Job.
*
* @var string
*/
public $jobRun;
protected $postdeployJobType = PostdeployJob::class;
protected $postdeployJobDataType = '';
protected $predeployJobType = PredeployJob::class;
protected $predeployJobDataType = '';
/**
* Output only. Additional information on why the Job was skipped, if
* available.
*
* @var string
*/
public $skipMessage;
/**
* Output only. The current state of the Job.
*
* @var string
*/
public $state;
protected $verifyJobType = VerifyJob::class;
protected $verifyJobDataType = '';
/**
* Output only. An advanceChildRollout Job.
*
* @param AdvanceChildRolloutJob $advanceChildRolloutJob
*/
public function setAdvanceChildRolloutJob(AdvanceChildRolloutJob $advanceChildRolloutJob)
{
$this->advanceChildRolloutJob = $advanceChildRolloutJob;
}
/**
* @return AdvanceChildRolloutJob
*/
public function getAdvanceChildRolloutJob()
{
return $this->advanceChildRolloutJob;
}
/**
* Output only. An analysis Job.
*
* @param AnalysisJob $analysisJob
*/
public function setAnalysisJob(AnalysisJob $analysisJob)
{
$this->analysisJob = $analysisJob;
}
/**
* @return AnalysisJob
*/
public function getAnalysisJob()
{
return $this->analysisJob;
}
/**
* Output only. A createChildRollout Job.
*
* @param CreateChildRolloutJob $createChildRolloutJob
*/
public function setCreateChildRolloutJob(CreateChildRolloutJob $createChildRolloutJob)
{
$this->createChildRolloutJob = $createChildRolloutJob;
}
/**
* @return CreateChildRolloutJob
*/
public function getCreateChildRolloutJob()
{
return $this->createChildRolloutJob;
}
/**
* Output only. A deploy Job.
*
* @param DeployJob $deployJob
*/
public function setDeployJob(DeployJob $deployJob)
{
$this->deployJob = $deployJob;
}
/**
* @return DeployJob
*/
public function getDeployJob()
{
return $this->deployJob;
}
/**
* Output only. The ID of the Job.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Output only. The name of the `JobRun` responsible for the most recent
* invocation of this Job.
*
* @param string $jobRun
*/
public function setJobRun($jobRun)
{
$this->jobRun = $jobRun;
}
/**
* @return string
*/
public function getJobRun()
{
return $this->jobRun;
}
/**
* Output only. A postdeploy Job.
*
* @param PostdeployJob $postdeployJob
*/
public function setPostdeployJob(PostdeployJob $postdeployJob)
{
$this->postdeployJob = $postdeployJob;
}
/**
* @return PostdeployJob
*/
public function getPostdeployJob()
{
return $this->postdeployJob;
}
/**
* Output only. A predeploy Job.
*
* @param PredeployJob $predeployJob
*/
public function setPredeployJob(PredeployJob $predeployJob)
{
$this->predeployJob = $predeployJob;
}
/**
* @return PredeployJob
*/
public function getPredeployJob()
{
return $this->predeployJob;
}
/**
* Output only. Additional information on why the Job was skipped, if
* available.
*
* @param string $skipMessage
*/
public function setSkipMessage($skipMessage)
{
$this->skipMessage = $skipMessage;
}
/**
* @return string
*/
public function getSkipMessage()
{
return $this->skipMessage;
}
/**
* Output only. The current state of the Job.
*
* Accepted values: STATE_UNSPECIFIED, PENDING, DISABLED, IN_PROGRESS,
* SUCCEEDED, FAILED, ABORTED, SKIPPED, IGNORED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. A verify Job.
*
* @param VerifyJob $verifyJob
*/
public function setVerifyJob(VerifyJob $verifyJob)
{
$this->verifyJob = $verifyJob;
}
/**
* @return VerifyJob
*/
public function getVerifyJob()
{
return $this->verifyJob;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Job::class, 'Google_Service_CloudDeploy_Job');
@@ -0,0 +1,385 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class JobRun extends \Google\Model
{
/**
* The `JobRun` has an unspecified state.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The `JobRun` is in progress.
*/
public const STATE_IN_PROGRESS = 'IN_PROGRESS';
/**
* The `JobRun` has succeeded.
*/
public const STATE_SUCCEEDED = 'SUCCEEDED';
/**
* The `JobRun` has failed.
*/
public const STATE_FAILED = 'FAILED';
/**
* The `JobRun` is terminating.
*/
public const STATE_TERMINATING = 'TERMINATING';
/**
* The `JobRun` was terminated.
*/
public const STATE_TERMINATED = 'TERMINATED';
protected $advanceChildRolloutJobRunType = AdvanceChildRolloutJobRun::class;
protected $advanceChildRolloutJobRunDataType = '';
protected $analysisJobRunType = AnalysisJobRun::class;
protected $analysisJobRunDataType = '';
protected $createChildRolloutJobRunType = CreateChildRolloutJobRun::class;
protected $createChildRolloutJobRunDataType = '';
/**
* Output only. Time at which the `JobRun` was created.
*
* @var string
*/
public $createTime;
protected $deployJobRunType = DeployJobRun::class;
protected $deployJobRunDataType = '';
/**
* Output only. Time at which the `JobRun` ended.
*
* @var string
*/
public $endTime;
/**
* 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.
*
* @var string
*/
public $etag;
/**
* Output only. ID of the `Rollout` job this `JobRun` corresponds to.
*
* @var string
*/
public $jobId;
/**
* Output only. Name of the `JobRun`. Format is `projects/{project}/locations/
* {location}/deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollout
* s/{rollouts}/jobRuns/{uuid}`.
*
* @var string
*/
public $name;
/**
* Output only. ID of the `Rollout` phase this `JobRun` belongs in.
*
* @var string
*/
public $phaseId;
protected $postdeployJobRunType = PostdeployJobRun::class;
protected $postdeployJobRunDataType = '';
protected $predeployJobRunType = PredeployJobRun::class;
protected $predeployJobRunDataType = '';
/**
* Output only. Time at which the `JobRun` was started.
*
* @var string
*/
public $startTime;
/**
* Output only. The current state of the `JobRun`.
*
* @var string
*/
public $state;
/**
* Output only. Unique identifier of the `JobRun`.
*
* @var string
*/
public $uid;
protected $verifyJobRunType = VerifyJobRun::class;
protected $verifyJobRunDataType = '';
/**
* Output only. Information specific to an advanceChildRollout `JobRun`
*
* @param AdvanceChildRolloutJobRun $advanceChildRolloutJobRun
*/
public function setAdvanceChildRolloutJobRun(AdvanceChildRolloutJobRun $advanceChildRolloutJobRun)
{
$this->advanceChildRolloutJobRun = $advanceChildRolloutJobRun;
}
/**
* @return AdvanceChildRolloutJobRun
*/
public function getAdvanceChildRolloutJobRun()
{
return $this->advanceChildRolloutJobRun;
}
/**
* Output only. Information specific to an analysis `JobRun`.
*
* @param AnalysisJobRun $analysisJobRun
*/
public function setAnalysisJobRun(AnalysisJobRun $analysisJobRun)
{
$this->analysisJobRun = $analysisJobRun;
}
/**
* @return AnalysisJobRun
*/
public function getAnalysisJobRun()
{
return $this->analysisJobRun;
}
/**
* Output only. Information specific to a createChildRollout `JobRun`.
*
* @param CreateChildRolloutJobRun $createChildRolloutJobRun
*/
public function setCreateChildRolloutJobRun(CreateChildRolloutJobRun $createChildRolloutJobRun)
{
$this->createChildRolloutJobRun = $createChildRolloutJobRun;
}
/**
* @return CreateChildRolloutJobRun
*/
public function getCreateChildRolloutJobRun()
{
return $this->createChildRolloutJobRun;
}
/**
* Output only. Time at which the `JobRun` was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. Information specific to a deploy `JobRun`.
*
* @param DeployJobRun $deployJobRun
*/
public function setDeployJobRun(DeployJobRun $deployJobRun)
{
$this->deployJobRun = $deployJobRun;
}
/**
* @return DeployJobRun
*/
public function getDeployJobRun()
{
return $this->deployJobRun;
}
/**
* Output only. Time at which the `JobRun` ended.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* 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.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Output only. ID of the `Rollout` job this `JobRun` corresponds to.
*
* @param string $jobId
*/
public function setJobId($jobId)
{
$this->jobId = $jobId;
}
/**
* @return string
*/
public function getJobId()
{
return $this->jobId;
}
/**
* Output only. Name of the `JobRun`. Format is `projects/{project}/locations/
* {location}/deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollout
* s/{rollouts}/jobRuns/{uuid}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. ID of the `Rollout` phase this `JobRun` belongs in.
*
* @param string $phaseId
*/
public function setPhaseId($phaseId)
{
$this->phaseId = $phaseId;
}
/**
* @return string
*/
public function getPhaseId()
{
return $this->phaseId;
}
/**
* Output only. Information specific to a postdeploy `JobRun`.
*
* @param PostdeployJobRun $postdeployJobRun
*/
public function setPostdeployJobRun(PostdeployJobRun $postdeployJobRun)
{
$this->postdeployJobRun = $postdeployJobRun;
}
/**
* @return PostdeployJobRun
*/
public function getPostdeployJobRun()
{
return $this->postdeployJobRun;
}
/**
* Output only. Information specific to a predeploy `JobRun`.
*
* @param PredeployJobRun $predeployJobRun
*/
public function setPredeployJobRun(PredeployJobRun $predeployJobRun)
{
$this->predeployJobRun = $predeployJobRun;
}
/**
* @return PredeployJobRun
*/
public function getPredeployJobRun()
{
return $this->predeployJobRun;
}
/**
* Output only. Time at which the `JobRun` was started.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* Output only. The current state of the `JobRun`.
*
* Accepted values: STATE_UNSPECIFIED, IN_PROGRESS, SUCCEEDED, FAILED,
* TERMINATING, TERMINATED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Unique identifier of the `JobRun`.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. Information specific to a verify `JobRun`.
*
* @param VerifyJobRun $verifyJobRun
*/
public function setVerifyJobRun(VerifyJobRun $verifyJobRun)
{
$this->verifyJobRun = $verifyJobRun;
}
/**
* @return VerifyJobRun
*/
public function getVerifyJobRun()
{
return $this->verifyJobRun;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(JobRun::class, 'Google_Service_CloudDeploy_JobRun');
@@ -0,0 +1,267 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class JobRunNotificationEvent extends \Google\Model
{
/**
* Type is unspecified.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* A Pub/Sub notification failed to be sent.
*/
public const TYPE_TYPE_PUBSUB_NOTIFICATION_FAILURE = 'TYPE_PUBSUB_NOTIFICATION_FAILURE';
/**
* Resource state changed.
*/
public const TYPE_TYPE_RESOURCE_STATE_CHANGE = 'TYPE_RESOURCE_STATE_CHANGE';
/**
* A process aborted.
*/
public const TYPE_TYPE_PROCESS_ABORTED = 'TYPE_PROCESS_ABORTED';
/**
* Restriction check failed.
*/
public const TYPE_TYPE_RESTRICTION_VIOLATED = 'TYPE_RESTRICTION_VIOLATED';
/**
* Resource deleted.
*/
public const TYPE_TYPE_RESOURCE_DELETED = 'TYPE_RESOURCE_DELETED';
/**
* Rollout updated.
*/
public const TYPE_TYPE_ROLLOUT_UPDATE = 'TYPE_ROLLOUT_UPDATE';
/**
* Deploy Policy evaluation.
*/
public const TYPE_TYPE_DEPLOY_POLICY_EVALUATION = 'TYPE_DEPLOY_POLICY_EVALUATION';
/**
* Deprecated: This field is never used. Use release_render log type instead.
*
* @deprecated
*/
public const TYPE_TYPE_RENDER_STATUES_CHANGE = 'TYPE_RENDER_STATUES_CHANGE';
/**
* The name of the `JobRun`.
*
* @var string
*/
public $jobRun;
/**
* Debug message for when a notification fails to send.
*
* @var string
*/
public $message;
/**
* Unique identifier of the `DeliveryPipeline`.
*
* @var string
*/
public $pipelineUid;
/**
* The name of the `Release`.
*
* @var string
*/
public $release;
/**
* Unique identifier of the `Release`.
*
* @var string
*/
public $releaseUid;
/**
* The name of the `Rollout`.
*
* @var string
*/
public $rollout;
/**
* Unique identifier of the `Rollout`.
*
* @var string
*/
public $rolloutUid;
/**
* ID of the `Target`.
*
* @var string
*/
public $targetId;
/**
* Type of this notification, e.g. for a Pub/Sub failure.
*
* @var string
*/
public $type;
/**
* The name of the `JobRun`.
*
* @param string $jobRun
*/
public function setJobRun($jobRun)
{
$this->jobRun = $jobRun;
}
/**
* @return string
*/
public function getJobRun()
{
return $this->jobRun;
}
/**
* Debug message for when a notification fails to send.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Unique identifier of the `DeliveryPipeline`.
*
* @param string $pipelineUid
*/
public function setPipelineUid($pipelineUid)
{
$this->pipelineUid = $pipelineUid;
}
/**
* @return string
*/
public function getPipelineUid()
{
return $this->pipelineUid;
}
/**
* The name of the `Release`.
*
* @param string $release
*/
public function setRelease($release)
{
$this->release = $release;
}
/**
* @return string
*/
public function getRelease()
{
return $this->release;
}
/**
* Unique identifier of the `Release`.
*
* @param string $releaseUid
*/
public function setReleaseUid($releaseUid)
{
$this->releaseUid = $releaseUid;
}
/**
* @return string
*/
public function getReleaseUid()
{
return $this->releaseUid;
}
/**
* The name of the `Rollout`.
*
* @param string $rollout
*/
public function setRollout($rollout)
{
$this->rollout = $rollout;
}
/**
* @return string
*/
public function getRollout()
{
return $this->rollout;
}
/**
* Unique identifier of the `Rollout`.
*
* @param string $rolloutUid
*/
public function setRolloutUid($rolloutUid)
{
$this->rolloutUid = $rolloutUid;
}
/**
* @return string
*/
public function getRolloutUid()
{
return $this->rolloutUid;
}
/**
* ID of the `Target`.
*
* @param string $targetId
*/
public function setTargetId($targetId)
{
$this->targetId = $targetId;
}
/**
* @return string
*/
public function getTargetId()
{
return $this->targetId;
}
/**
* Type of this notification, e.g. for a Pub/Sub failure.
*
* Accepted values: TYPE_UNSPECIFIED, TYPE_PUBSUB_NOTIFICATION_FAILURE,
* TYPE_RESOURCE_STATE_CHANGE, TYPE_PROCESS_ABORTED,
* TYPE_RESTRICTION_VIOLATED, TYPE_RESOURCE_DELETED, TYPE_ROLLOUT_UPDATE,
* TYPE_DEPLOY_POLICY_EVALUATION, TYPE_RENDER_STATUES_CHANGE
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(JobRunNotificationEvent::class, 'Google_Service_CloudDeploy_JobRunNotificationEvent');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class KubernetesConfig extends \Google\Model
{
protected $gatewayServiceMeshType = GatewayServiceMesh::class;
protected $gatewayServiceMeshDataType = '';
protected $serviceNetworkingType = ServiceNetworking::class;
protected $serviceNetworkingDataType = '';
/**
* Optional. Kubernetes Gateway API service mesh configuration.
*
* @param GatewayServiceMesh $gatewayServiceMesh
*/
public function setGatewayServiceMesh(GatewayServiceMesh $gatewayServiceMesh)
{
$this->gatewayServiceMesh = $gatewayServiceMesh;
}
/**
* @return GatewayServiceMesh
*/
public function getGatewayServiceMesh()
{
return $this->gatewayServiceMesh;
}
/**
* Optional. Kubernetes Service networking configuration.
*
* @param ServiceNetworking $serviceNetworking
*/
public function setServiceNetworking(ServiceNetworking $serviceNetworking)
{
$this->serviceNetworking = $serviceNetworking;
}
/**
* @return ServiceNetworking
*/
public function getServiceNetworking()
{
return $this->serviceNetworking;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(KubernetesConfig::class, 'Google_Service_CloudDeploy_KubernetesConfig');
@@ -0,0 +1,102 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class KubernetesRenderMetadata extends \Google\Model
{
/**
* Output only. Name of the canary version of the Kubernetes Deployment that
* will be applied to the GKE cluster. Only set if a canary deployment
* strategy was configured.
*
* @var string
*/
public $canaryDeployment;
/**
* Output only. Name of the Kubernetes Deployment that will be applied to the
* GKE cluster. Only set if a single Deployment was provided in the rendered
* manifest.
*
* @var string
*/
public $deployment;
/**
* Output only. Namespace the Kubernetes resources will be applied to in the
* GKE cluster. Only set if applying resources to a single namespace.
*
* @var string
*/
public $kubernetesNamespace;
/**
* Output only. Name of the canary version of the Kubernetes Deployment that
* will be applied to the GKE cluster. Only set if a canary deployment
* strategy was configured.
*
* @param string $canaryDeployment
*/
public function setCanaryDeployment($canaryDeployment)
{
$this->canaryDeployment = $canaryDeployment;
}
/**
* @return string
*/
public function getCanaryDeployment()
{
return $this->canaryDeployment;
}
/**
* Output only. Name of the Kubernetes Deployment that will be applied to the
* GKE cluster. Only set if a single Deployment was provided in the rendered
* manifest.
*
* @param string $deployment
*/
public function setDeployment($deployment)
{
$this->deployment = $deployment;
}
/**
* @return string
*/
public function getDeployment()
{
return $this->deployment;
}
/**
* Output only. Namespace the Kubernetes resources will be applied to in the
* GKE cluster. Only set if applying resources to a single namespace.
*
* @param string $kubernetesNamespace
*/
public function setKubernetesNamespace($kubernetesNamespace)
{
$this->kubernetesNamespace = $kubernetesNamespace;
}
/**
* @return string
*/
public function getKubernetesNamespace()
{
return $this->kubernetesNamespace;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(KubernetesRenderMetadata::class, 'Google_Service_CloudDeploy_KubernetesRenderMetadata');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class ListAutomationRunsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $automationRunsType = AutomationRun::class;
protected $automationRunsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The `AutomationRuns` objects.
*
* @param AutomationRun[] $automationRuns
*/
public function setAutomationRuns($automationRuns)
{
$this->automationRuns = $automationRuns;
}
/**
* @return AutomationRun[]
*/
public function getAutomationRuns()
{
return $this->automationRuns;
}
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListAutomationRunsResponse::class, 'Google_Service_CloudDeploy_ListAutomationRunsResponse');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class ListAutomationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $automationsType = Automation::class;
protected $automationsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The `Automation` objects.
*
* @param Automation[] $automations
*/
public function setAutomations($automations)
{
$this->automations = $automations;
}
/**
* @return Automation[]
*/
public function getAutomations()
{
return $this->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.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListAutomationsResponse::class, 'Google_Service_CloudDeploy_ListAutomationsResponse');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class ListCustomTargetTypesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $customTargetTypesType = CustomTargetType::class;
protected $customTargetTypesDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The `CustomTargetType` objects.
*
* @param CustomTargetType[] $customTargetTypes
*/
public function setCustomTargetTypes($customTargetTypes)
{
$this->customTargetTypes = $customTargetTypes;
}
/**
* @return CustomTargetType[]
*/
public function getCustomTargetTypes()
{
return $this->customTargetTypes;
}
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListCustomTargetTypesResponse::class, 'Google_Service_CloudDeploy_ListCustomTargetTypesResponse');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class ListDeliveryPipelinesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $deliveryPipelinesType = DeliveryPipeline::class;
protected $deliveryPipelinesDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The `DeliveryPipeline` objects.
*
* @param DeliveryPipeline[] $deliveryPipelines
*/
public function setDeliveryPipelines($deliveryPipelines)
{
$this->deliveryPipelines = $deliveryPipelines;
}
/**
* @return DeliveryPipeline[]
*/
public function getDeliveryPipelines()
{
return $this->deliveryPipelines;
}
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDeliveryPipelinesResponse::class, 'Google_Service_CloudDeploy_ListDeliveryPipelinesResponse');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class ListDeployPoliciesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $deployPoliciesType = DeployPolicy::class;
protected $deployPoliciesDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The `DeployPolicy` objects.
*
* @param DeployPolicy[] $deployPolicies
*/
public function setDeployPolicies($deployPolicies)
{
$this->deployPolicies = $deployPolicies;
}
/**
* @return DeployPolicy[]
*/
public function getDeployPolicies()
{
return $this->deployPolicies;
}
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDeployPoliciesResponse::class, 'Google_Service_CloudDeploy_ListDeployPoliciesResponse');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class ListJobRunsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $jobRunsType = JobRun::class;
protected $jobRunsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached
*
* @var string[]
*/
public $unreachable;
/**
* The `JobRun` objects.
*
* @param JobRun[] $jobRuns
*/
public function setJobRuns($jobRuns)
{
$this->jobRuns = $jobRuns;
}
/**
* @return JobRun[]
*/
public function getJobRuns()
{
return $this->jobRuns;
}
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListJobRunsResponse::class, 'Google_Service_CloudDeploy_ListJobRunsResponse');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
/**
* A list of locations that matches the specified filter in the request.
*
* @param Location[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLocationsResponse::class, 'Google_Service_CloudDeploy_ListLocationsResponse');
@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of operations that matches the specified filter in the request.
*
* @param Operation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_CloudDeploy_ListOperationsResponse');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class ListReleasesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
protected $releasesType = Release::class;
protected $releasesDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The `Release` objects.
*
* @param Release[] $releases
*/
public function setReleases($releases)
{
$this->releases = $releases;
}
/**
* @return Release[]
*/
public function getReleases()
{
return $this->releases;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListReleasesResponse::class, 'Google_Service_CloudDeploy_ListReleasesResponse');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class ListRolloutsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
protected $rolloutsType = Rollout::class;
protected $rolloutsDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The `Rollout` objects.
*
* @param Rollout[] $rollouts
*/
public function setRollouts($rollouts)
{
$this->rollouts = $rollouts;
}
/**
* @return Rollout[]
*/
public function getRollouts()
{
return $this->rollouts;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListRolloutsResponse::class, 'Google_Service_CloudDeploy_ListRolloutsResponse');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class ListTargetsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
protected $targetsType = Target::class;
protected $targetsDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The `Target` objects.
*
* @param Target[] $targets
*/
public function setTargets($targets)
{
$this->targets = $targets;
}
/**
* @return Target[]
*/
public function getTargets()
{
return $this->targets;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListTargetsResponse::class, 'Google_Service_CloudDeploy_ListTargetsResponse');
@@ -0,0 +1,144 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class Location extends \Google\Model
{
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @var string
*/
public $displayName;
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @var string[]
*/
public $labels;
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @var string
*/
public $locationId;
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @var array[]
*/
public $metadata;
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @var string
*/
public $name;
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @param string $locationId
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Location::class, 'Google_Service_CloudDeploy_Location');
@@ -0,0 +1,82 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class Metadata extends \Google\Model
{
protected $automationType = AutomationRolloutMetadata::class;
protected $automationDataType = '';
protected $cloudRunType = CloudRunMetadata::class;
protected $cloudRunDataType = '';
protected $customType = CustomMetadata::class;
protected $customDataType = '';
/**
* Output only. AutomationRolloutMetadata contains the information about the
* interactions between Automation service and this rollout.
*
* @param AutomationRolloutMetadata $automation
*/
public function setAutomation(AutomationRolloutMetadata $automation)
{
$this->automation = $automation;
}
/**
* @return AutomationRolloutMetadata
*/
public function getAutomation()
{
return $this->automation;
}
/**
* Output only. The name of the Cloud Run Service that is associated with a
* `Rollout`.
*
* @param CloudRunMetadata $cloudRun
*/
public function setCloudRun(CloudRunMetadata $cloudRun)
{
$this->cloudRun = $cloudRun;
}
/**
* @return CloudRunMetadata
*/
public function getCloudRun()
{
return $this->cloudRun;
}
/**
* Output only. Custom metadata provided by user-defined `Rollout` operations.
*
* @param CustomMetadata $custom
*/
public function setCustom(CustomMetadata $custom)
{
$this->custom = $custom;
}
/**
* @return CustomMetadata
*/
public function getCustom()
{
return $this->custom;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Metadata::class, 'Google_Service_CloudDeploy_Metadata');
@@ -0,0 +1,49 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class MultiTarget extends \Google\Collection
{
protected $collection_key = 'targetIds';
/**
* Required. The target_ids of this multiTarget.
*
* @var string[]
*/
public $targetIds;
/**
* Required. The target_ids of this multiTarget.
*
* @param string[] $targetIds
*/
public function setTargetIds($targetIds)
{
$this->targetIds = $targetIds;
}
/**
* @return string[]
*/
public function getTargetIds()
{
return $this->targetIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MultiTarget::class, 'Google_Service_CloudDeploy_MultiTarget');
@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class OneTimeWindow extends \Google\Model
{
protected $endDateType = Date::class;
protected $endDateDataType = '';
protected $endTimeType = TimeOfDay::class;
protected $endTimeDataType = '';
protected $startDateType = Date::class;
protected $startDateDataType = '';
protected $startTimeType = TimeOfDay::class;
protected $startTimeDataType = '';
/**
* Required. End date.
*
* @param Date $endDate
*/
public function setEndDate(Date $endDate)
{
$this->endDate = $endDate;
}
/**
* @return Date
*/
public function getEndDate()
{
return $this->endDate;
}
/**
* Required. End time (exclusive). You may use 24:00 for the end of the day.
*
* @param TimeOfDay $endTime
*/
public function setEndTime(TimeOfDay $endTime)
{
$this->endTime = $endTime;
}
/**
* @return TimeOfDay
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Required. Start date.
*
* @param Date $startDate
*/
public function setStartDate(Date $startDate)
{
$this->startDate = $startDate;
}
/**
* @return Date
*/
public function getStartDate()
{
return $this->startDate;
}
/**
* Required. Start time (inclusive). Use 00:00 for the beginning of the day.
*
* @param TimeOfDay $startTime
*/
public function setStartTime(TimeOfDay $startTime)
{
$this->startTime = $startTime;
}
/**
* @return TimeOfDay
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OneTimeWindow::class, 'Google_Service_CloudDeploy_OneTimeWindow');
@@ -0,0 +1,158 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudDeploy;
class Operation extends \Google\Model
{
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @var array[]
*/
public $metadata;
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @var string
*/
public $name;
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @var array[]
*/
public $response;
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @param array[] $response
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_CloudDeploy_Operation');

Some files were not shown because too many files have changed in this diff Show More