Test vendor Hapus V2

This commit is contained in:
Ariyutta
2026-09-19 16:20:12 +07:00
parent 03df3096eb
commit fabda9eaa4
10000 changed files with 0 additions and 1179138 deletions
@@ -1,118 +0,0 @@
<?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 PromoteReleaseOperation extends \Google\Model
{
/**
* Output only. The starting phase of the rollout created by this operation.
*
* @var string
*/
public $phase;
/**
* Output only. The name of the rollout that initiates the `AutomationRun`.
*
* @var string
*/
public $rollout;
/**
* Output only. The ID of the target that represents the promotion stage to
* which the release will be promoted. The value of this field is the last
* segment of a target name.
*
* @var string
*/
public $targetId;
/**
* Output only. How long the operation will be paused.
*
* @var string
*/
public $wait;
/**
* Output only. The starting phase of the rollout created by this operation.
*
* @param string $phase
*/
public function setPhase($phase)
{
$this->phase = $phase;
}
/**
* @return string
*/
public function getPhase()
{
return $this->phase;
}
/**
* 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 ID of the target that represents the promotion stage to
* which the release will be promoted. The value of this field is the last
* segment of a target name.
*
* @param string $targetId
*/
public function setTargetId($targetId)
{
$this->targetId = $targetId;
}
/**
* @return string
*/
public function getTargetId()
{
return $this->targetId;
}
/**
* 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(PromoteReleaseOperation::class, 'Google_Service_CloudDeploy_PromoteReleaseOperation');
@@ -1,148 +0,0 @@
<?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 PromoteReleaseRule extends \Google\Model
{
protected $conditionType = AutomationRuleCondition::class;
protected $conditionDataType = '';
/**
* Optional. The starting phase of the rollout created by this operation.
* Default to the first phase.
*
* @var string
*/
public $destinationPhase;
/**
* Optional. The ID of the stage in the pipeline to which this `Release` is
* deploying. If unspecified, default it to the next stage in the promotion
* flow. The value of this field could be one of the following: * The last
* segment of a target name * "@next", the next target in the promotion
* sequence
*
* @var string
*/
public $destinationTargetId;
/**
* 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. How long the release need to be paused until being promoted to
* the next target.
*
* @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;
}
/**
* Optional. The starting phase of the rollout created by this operation.
* Default to the first phase.
*
* @param string $destinationPhase
*/
public function setDestinationPhase($destinationPhase)
{
$this->destinationPhase = $destinationPhase;
}
/**
* @return string
*/
public function getDestinationPhase()
{
return $this->destinationPhase;
}
/**
* Optional. The ID of the stage in the pipeline to which this `Release` is
* deploying. If unspecified, default it to the next stage in the promotion
* flow. The value of this field could be one of the following: * The last
* segment of a target name * "@next", the next target in the promotion
* sequence
*
* @param string $destinationTargetId
*/
public function setDestinationTargetId($destinationTargetId)
{
$this->destinationTargetId = $destinationTargetId;
}
/**
* @return string
*/
public function getDestinationTargetId()
{
return $this->destinationTargetId;
}
/**
* 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. How long the release need to be paused until being promoted to
* the next target.
*
* @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(PromoteReleaseRule::class, 'Google_Service_CloudDeploy_PromoteReleaseRule');
@@ -1,561 +0,0 @@
<?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 Release extends \Google\Collection
{
/**
* The render state is unspecified.
*/
public const RENDER_STATE_RENDER_STATE_UNSPECIFIED = 'RENDER_STATE_UNSPECIFIED';
/**
* All rendering operations have completed successfully.
*/
public const RENDER_STATE_SUCCEEDED = 'SUCCEEDED';
/**
* All rendering operations have completed, and one or more have failed.
*/
public const RENDER_STATE_FAILED = 'FAILED';
/**
* Rendering has started and is not complete.
*/
public const RENDER_STATE_IN_PROGRESS = 'IN_PROGRESS';
protected $collection_key = 'targetSnapshots';
/**
* Output only. Indicates whether this is an abandoned release.
*
* @var bool
*/
public $abandoned;
/**
* 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;
protected $buildArtifactsType = BuildArtifact::class;
protected $buildArtifactsDataType = 'array';
protected $conditionType = ReleaseCondition::class;
protected $conditionDataType = '';
/**
* Output only. Time at which the `Release` was created.
*
* @var string
*/
public $createTime;
protected $customTargetTypeSnapshotsType = CustomTargetType::class;
protected $customTargetTypeSnapshotsDataType = 'array';
protected $deliveryPipelineSnapshotType = DeliveryPipeline::class;
protected $deliveryPipelineSnapshotDataType = '';
/**
* Optional. The deploy parameters to use for all targets in this release.
*
* @var string[]
*/
public $deployParameters;
/**
* Optional. Description of the `Release`. 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 `Release`. Format is `projects/{project}/locations/
* {location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`. The
* `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* @var string
*/
public $name;
/**
* Output only. Time at which the render completed.
*
* @var string
*/
public $renderEndTime;
/**
* Output only. Time at which the render began.
*
* @var string
*/
public $renderStartTime;
/**
* Output only. Current state of the render operation.
*
* @var string
*/
public $renderState;
/**
* Optional. Filepath of the Skaffold config inside of the config URI.
*
* @var string
*/
public $skaffoldConfigPath;
/**
* Optional. Cloud Storage URI of tar.gz archive containing Skaffold
* configuration.
*
* @var string
*/
public $skaffoldConfigUri;
/**
* Optional. The Skaffold version to use when operating on this release, such
* as "1.20.0". Not all versions are valid; Cloud Deploy supports a specific
* set of versions. If unset, the most recent supported Skaffold version will
* be used.
*
* @var string
*/
public $skaffoldVersion;
protected $targetArtifactsType = TargetArtifact::class;
protected $targetArtifactsDataType = 'map';
protected $targetRendersType = TargetRender::class;
protected $targetRendersDataType = 'map';
protected $targetSnapshotsType = Target::class;
protected $targetSnapshotsDataType = 'array';
protected $toolVersionsType = ToolVersions::class;
protected $toolVersionsDataType = '';
/**
* Output only. Unique identifier of the `Release`.
*
* @var string
*/
public $uid;
/**
* Output only. Indicates whether this is an abandoned release.
*
* @param bool $abandoned
*/
public function setAbandoned($abandoned)
{
$this->abandoned = $abandoned;
}
/**
* @return bool
*/
public function getAbandoned()
{
return $this->abandoned;
}
/**
* 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;
}
/**
* Optional. List of artifacts to pass through to Skaffold command.
*
* @param BuildArtifact[] $buildArtifacts
*/
public function setBuildArtifacts($buildArtifacts)
{
$this->buildArtifacts = $buildArtifacts;
}
/**
* @return BuildArtifact[]
*/
public function getBuildArtifacts()
{
return $this->buildArtifacts;
}
/**
* Output only. Information around the state of the Release.
*
* @param ReleaseCondition $condition
*/
public function setCondition(ReleaseCondition $condition)
{
$this->condition = $condition;
}
/**
* @return ReleaseCondition
*/
public function getCondition()
{
return $this->condition;
}
/**
* Output only. Time at which the `Release` was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
* @param CustomTargetType[] $customTargetTypeSnapshots
*/
public function setCustomTargetTypeSnapshots($customTargetTypeSnapshots)
{
$this->customTargetTypeSnapshots = $customTargetTypeSnapshots;
}
/**
* @return CustomTargetType[]
*/
public function getCustomTargetTypeSnapshots()
{
return $this->customTargetTypeSnapshots;
}
/**
* Output only. Snapshot of the parent pipeline taken at release creation
* time.
*
* @param DeliveryPipeline $deliveryPipelineSnapshot
*/
public function setDeliveryPipelineSnapshot(DeliveryPipeline $deliveryPipelineSnapshot)
{
$this->deliveryPipelineSnapshot = $deliveryPipelineSnapshot;
}
/**
* @return DeliveryPipeline
*/
public function getDeliveryPipelineSnapshot()
{
return $this->deliveryPipelineSnapshot;
}
/**
* Optional. The deploy parameters to use for all targets in this release.
*
* @param string[] $deployParameters
*/
public function setDeployParameters($deployParameters)
{
$this->deployParameters = $deployParameters;
}
/**
* @return string[]
*/
public function getDeployParameters()
{
return $this->deployParameters;
}
/**
* Optional. Description of the `Release`. 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 `Release`. Format is `projects/{project}/locations/
* {location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`. The
* `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Time at which the render completed.
*
* @param string $renderEndTime
*/
public function setRenderEndTime($renderEndTime)
{
$this->renderEndTime = $renderEndTime;
}
/**
* @return string
*/
public function getRenderEndTime()
{
return $this->renderEndTime;
}
/**
* Output only. Time at which the render began.
*
* @param string $renderStartTime
*/
public function setRenderStartTime($renderStartTime)
{
$this->renderStartTime = $renderStartTime;
}
/**
* @return string
*/
public function getRenderStartTime()
{
return $this->renderStartTime;
}
/**
* Output only. Current state of the render operation.
*
* Accepted values: RENDER_STATE_UNSPECIFIED, SUCCEEDED, FAILED, IN_PROGRESS
*
* @param self::RENDER_STATE_* $renderState
*/
public function setRenderState($renderState)
{
$this->renderState = $renderState;
}
/**
* @return self::RENDER_STATE_*
*/
public function getRenderState()
{
return $this->renderState;
}
/**
* Optional. Filepath of the Skaffold config inside of the config URI.
*
* @param string $skaffoldConfigPath
*/
public function setSkaffoldConfigPath($skaffoldConfigPath)
{
$this->skaffoldConfigPath = $skaffoldConfigPath;
}
/**
* @return string
*/
public function getSkaffoldConfigPath()
{
return $this->skaffoldConfigPath;
}
/**
* Optional. Cloud Storage URI of tar.gz archive containing Skaffold
* configuration.
*
* @param string $skaffoldConfigUri
*/
public function setSkaffoldConfigUri($skaffoldConfigUri)
{
$this->skaffoldConfigUri = $skaffoldConfigUri;
}
/**
* @return string
*/
public function getSkaffoldConfigUri()
{
return $this->skaffoldConfigUri;
}
/**
* Optional. The Skaffold version to use when operating on this release, such
* as "1.20.0". Not all versions are valid; Cloud Deploy supports a specific
* set of versions. If unset, the most recent supported Skaffold version will
* be used.
*
* @param string $skaffoldVersion
*/
public function setSkaffoldVersion($skaffoldVersion)
{
$this->skaffoldVersion = $skaffoldVersion;
}
/**
* @return string
*/
public function getSkaffoldVersion()
{
return $this->skaffoldVersion;
}
/**
* Output only. Map from target ID to the target artifacts created during the
* render operation.
*
* @param TargetArtifact[] $targetArtifacts
*/
public function setTargetArtifacts($targetArtifacts)
{
$this->targetArtifacts = $targetArtifacts;
}
/**
* @return TargetArtifact[]
*/
public function getTargetArtifacts()
{
return $this->targetArtifacts;
}
/**
* Output only. Map from target ID to details of the render operation for that
* target.
*
* @param TargetRender[] $targetRenders
*/
public function setTargetRenders($targetRenders)
{
$this->targetRenders = $targetRenders;
}
/**
* @return TargetRender[]
*/
public function getTargetRenders()
{
return $this->targetRenders;
}
/**
* Output only. Snapshot of the targets taken at release creation time.
*
* @param Target[] $targetSnapshots
*/
public function setTargetSnapshots($targetSnapshots)
{
$this->targetSnapshots = $targetSnapshots;
}
/**
* @return Target[]
*/
public function getTargetSnapshots()
{
return $this->targetSnapshots;
}
/**
* Optional. The tool versions to use for this release and all subsequent
* operations involving this release. If unset, tool versions are frozen when
* the release is created.
*
* @param ToolVersions $toolVersions
*/
public function setToolVersions(ToolVersions $toolVersions)
{
$this->toolVersions = $toolVersions;
}
/**
* @return ToolVersions
*/
public function getToolVersions()
{
return $this->toolVersions;
}
/**
* Output only. Unique identifier of the `Release`.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Release::class, 'Google_Service_CloudDeploy_Release');
@@ -1,175 +0,0 @@
<?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 ReleaseCondition extends \Google\Model
{
protected $dockerVersionSupportedConditionType = ToolVersionSupportedCondition::class;
protected $dockerVersionSupportedConditionDataType = '';
protected $helmVersionSupportedConditionType = ToolVersionSupportedCondition::class;
protected $helmVersionSupportedConditionDataType = '';
protected $kptVersionSupportedConditionType = ToolVersionSupportedCondition::class;
protected $kptVersionSupportedConditionDataType = '';
protected $kubectlVersionSupportedConditionType = ToolVersionSupportedCondition::class;
protected $kubectlVersionSupportedConditionDataType = '';
protected $kustomizeVersionSupportedConditionType = ToolVersionSupportedCondition::class;
protected $kustomizeVersionSupportedConditionDataType = '';
protected $releaseReadyConditionType = ReleaseReadyCondition::class;
protected $releaseReadyConditionDataType = '';
protected $skaffoldSupportedConditionType = SkaffoldSupportedCondition::class;
protected $skaffoldSupportedConditionDataType = '';
protected $skaffoldVersionSupportedConditionType = ToolVersionSupportedCondition::class;
protected $skaffoldVersionSupportedConditionDataType = '';
/**
* Output only. Details around the support state of the release's Docker
* version.
*
* @param ToolVersionSupportedCondition $dockerVersionSupportedCondition
*/
public function setDockerVersionSupportedCondition(ToolVersionSupportedCondition $dockerVersionSupportedCondition)
{
$this->dockerVersionSupportedCondition = $dockerVersionSupportedCondition;
}
/**
* @return ToolVersionSupportedCondition
*/
public function getDockerVersionSupportedCondition()
{
return $this->dockerVersionSupportedCondition;
}
/**
* Output only. Details around the support state of the release's Helm
* version.
*
* @param ToolVersionSupportedCondition $helmVersionSupportedCondition
*/
public function setHelmVersionSupportedCondition(ToolVersionSupportedCondition $helmVersionSupportedCondition)
{
$this->helmVersionSupportedCondition = $helmVersionSupportedCondition;
}
/**
* @return ToolVersionSupportedCondition
*/
public function getHelmVersionSupportedCondition()
{
return $this->helmVersionSupportedCondition;
}
/**
* Output only. Details around the support state of the release's kpt version.
*
* @param ToolVersionSupportedCondition $kptVersionSupportedCondition
*/
public function setKptVersionSupportedCondition(ToolVersionSupportedCondition $kptVersionSupportedCondition)
{
$this->kptVersionSupportedCondition = $kptVersionSupportedCondition;
}
/**
* @return ToolVersionSupportedCondition
*/
public function getKptVersionSupportedCondition()
{
return $this->kptVersionSupportedCondition;
}
/**
* Output only. Details around the support state of the release's Kubectl
* version.
*
* @param ToolVersionSupportedCondition $kubectlVersionSupportedCondition
*/
public function setKubectlVersionSupportedCondition(ToolVersionSupportedCondition $kubectlVersionSupportedCondition)
{
$this->kubectlVersionSupportedCondition = $kubectlVersionSupportedCondition;
}
/**
* @return ToolVersionSupportedCondition
*/
public function getKubectlVersionSupportedCondition()
{
return $this->kubectlVersionSupportedCondition;
}
/**
* Output only. Details around the support state of the release's Kustomize
* version.
*
* @param ToolVersionSupportedCondition $kustomizeVersionSupportedCondition
*/
public function setKustomizeVersionSupportedCondition(ToolVersionSupportedCondition $kustomizeVersionSupportedCondition)
{
$this->kustomizeVersionSupportedCondition = $kustomizeVersionSupportedCondition;
}
/**
* @return ToolVersionSupportedCondition
*/
public function getKustomizeVersionSupportedCondition()
{
return $this->kustomizeVersionSupportedCondition;
}
/**
* Details around the Releases's overall status.
*
* @param ReleaseReadyCondition $releaseReadyCondition
*/
public function setReleaseReadyCondition(ReleaseReadyCondition $releaseReadyCondition)
{
$this->releaseReadyCondition = $releaseReadyCondition;
}
/**
* @return ReleaseReadyCondition
*/
public function getReleaseReadyCondition()
{
return $this->releaseReadyCondition;
}
/**
* Details around the support state of the release's Skaffold version.
*
* @param SkaffoldSupportedCondition $skaffoldSupportedCondition
*/
public function setSkaffoldSupportedCondition(SkaffoldSupportedCondition $skaffoldSupportedCondition)
{
$this->skaffoldSupportedCondition = $skaffoldSupportedCondition;
}
/**
* @return SkaffoldSupportedCondition
*/
public function getSkaffoldSupportedCondition()
{
return $this->skaffoldSupportedCondition;
}
/**
* Output only. Details around the support state of the release's Skaffold
* version.
*
* @param ToolVersionSupportedCondition $skaffoldVersionSupportedCondition
*/
public function setSkaffoldVersionSupportedCondition(ToolVersionSupportedCondition $skaffoldVersionSupportedCondition)
{
$this->skaffoldVersionSupportedCondition = $skaffoldVersionSupportedCondition;
}
/**
* @return ToolVersionSupportedCondition
*/
public function getSkaffoldVersionSupportedCondition()
{
return $this->skaffoldVersionSupportedCondition;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReleaseCondition::class, 'Google_Service_CloudDeploy_ReleaseCondition');
@@ -1,179 +0,0 @@
<?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 ReleaseNotificationEvent 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';
/**
* 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;
/**
* Type of this notification, e.g. for a Pub/Sub failure.
*
* @var string
*/
public $type;
/**
* 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;
}
/**
* 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(ReleaseNotificationEvent::class, 'Google_Service_CloudDeploy_ReleaseNotificationEvent');
@@ -1,54 +0,0 @@
<?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 ReleaseReadyCondition extends \Google\Model
{
/**
* True if the Release is in a valid state. Otherwise at least one condition
* in `ReleaseCondition` is in an invalid state. Iterate over those conditions
* and see which condition(s) has status = false to find out what is wrong
* with the Release.
*
* @var bool
*/
public $status;
/**
* True if the Release is in a valid state. Otherwise at least one condition
* in `ReleaseCondition` is in an invalid state. Iterate over those conditions
* and see which condition(s) has status = false to find out what is wrong
* with the Release.
*
* @param bool $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return bool
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReleaseReadyCondition::class, 'Google_Service_CloudDeploy_ReleaseReadyCondition');
@@ -1,203 +0,0 @@
<?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 ReleaseRenderEvent extends \Google\Model
{
/**
* The render state is unspecified.
*/
public const RELEASE_RENDER_STATE_RENDER_STATE_UNSPECIFIED = 'RENDER_STATE_UNSPECIFIED';
/**
* All rendering operations have completed successfully.
*/
public const RELEASE_RENDER_STATE_SUCCEEDED = 'SUCCEEDED';
/**
* All rendering operations have completed, and one or more have failed.
*/
public const RELEASE_RENDER_STATE_FAILED = 'FAILED';
/**
* Rendering has started and is not complete.
*/
public const RELEASE_RENDER_STATE_IN_PROGRESS = 'IN_PROGRESS';
/**
* 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';
/**
* Debug message for when a render transition occurs. Provides further details
* as rendering progresses through render states.
*
* @var string
*/
public $message;
/**
* Unique identifier of the `DeliveryPipeline`.
*
* @var string
*/
public $pipelineUid;
/**
* The name of the release. release_uid is not in this log message because we
* write some of these log messages at release creation time, before we've
* generated the uid.
*
* @var string
*/
public $release;
/**
* The state of the release render.
*
* @var string
*/
public $releaseRenderState;
/**
* Type of this notification, e.g. for a release render state change event.
*
* @var string
*/
public $type;
/**
* Debug message for when a render transition occurs. Provides further details
* as rendering progresses through render states.
*
* @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. release_uid is not in this log message because we
* write some of these log messages at release creation time, before we've
* generated the uid.
*
* @param string $release
*/
public function setRelease($release)
{
$this->release = $release;
}
/**
* @return string
*/
public function getRelease()
{
return $this->release;
}
/**
* The state of the release render.
*
* Accepted values: RENDER_STATE_UNSPECIFIED, SUCCEEDED, FAILED, IN_PROGRESS
*
* @param self::RELEASE_RENDER_STATE_* $releaseRenderState
*/
public function setReleaseRenderState($releaseRenderState)
{
$this->releaseRenderState = $releaseRenderState;
}
/**
* @return self::RELEASE_RENDER_STATE_*
*/
public function getReleaseRenderState()
{
return $this->releaseRenderState;
}
/**
* Type of this notification, e.g. for a release render state change event.
*
* 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(ReleaseRenderEvent::class, 'Google_Service_CloudDeploy_ReleaseRenderEvent');
@@ -1,81 +0,0 @@
<?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 RenderMetadata extends \Google\Model
{
protected $cloudRunType = CloudRunRenderMetadata::class;
protected $cloudRunDataType = '';
protected $customType = CustomMetadata::class;
protected $customDataType = '';
protected $kubernetesType = KubernetesRenderMetadata::class;
protected $kubernetesDataType = '';
/**
* Output only. Metadata associated with rendering for Cloud Run.
*
* @param CloudRunRenderMetadata $cloudRun
*/
public function setCloudRun(CloudRunRenderMetadata $cloudRun)
{
$this->cloudRun = $cloudRun;
}
/**
* @return CloudRunRenderMetadata
*/
public function getCloudRun()
{
return $this->cloudRun;
}
/**
* Output only. Custom metadata provided by user-defined render operation.
*
* @param CustomMetadata $custom
*/
public function setCustom(CustomMetadata $custom)
{
$this->custom = $custom;
}
/**
* @return CustomMetadata
*/
public function getCustom()
{
return $this->custom;
}
/**
* Output only. Metadata associated with rendering for a Kubernetes cluster
* (GKE or GKE Enterprise target).
*
* @param KubernetesRenderMetadata $kubernetes
*/
public function setKubernetes(KubernetesRenderMetadata $kubernetes)
{
$this->kubernetes = $kubernetes;
}
/**
* @return KubernetesRenderMetadata
*/
public function getKubernetes()
{
return $this->kubernetes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RenderMetadata::class, 'Google_Service_CloudDeploy_RenderMetadata');
@@ -1,58 +0,0 @@
<?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 RepairMode extends \Google\Model
{
protected $retryType = Retry::class;
protected $retryDataType = '';
protected $rollbackType = Rollback::class;
protected $rollbackDataType = '';
/**
* @param Retry
*/
public function setRetry(Retry $retry)
{
$this->retry = $retry;
}
/**
* @return Retry
*/
public function getRetry()
{
return $this->retry;
}
/**
* @param Rollback
*/
public function setRollback(Rollback $rollback)
{
$this->rollback = $rollback;
}
/**
* @return Rollback
*/
public function getRollback()
{
return $this->rollback;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RepairMode::class, 'Google_Service_CloudDeploy_RepairMode');
@@ -1,62 +0,0 @@
<?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 RepairPhase extends \Google\Model
{
protected $retryType = RetryPhase::class;
protected $retryDataType = '';
protected $rollbackType = RollbackAttempt::class;
protected $rollbackDataType = '';
/**
* Output only. Records of the retry attempts for retry repair mode.
*
* @param RetryPhase $retry
*/
public function setRetry(RetryPhase $retry)
{
$this->retry = $retry;
}
/**
* @return RetryPhase
*/
public function getRetry()
{
return $this->retry;
}
/**
* Output only. Rollback attempt for rollback repair mode .
*
* @param RollbackAttempt $rollback
*/
public function setRollback(RollbackAttempt $rollback)
{
$this->rollback = $rollback;
}
/**
* @return RollbackAttempt
*/
public function getRollback()
{
return $this->rollback;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RepairPhase::class, 'Google_Service_CloudDeploy_RepairPhase');
@@ -1,62 +0,0 @@
<?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 RepairPhaseConfig extends \Google\Model
{
protected $retryType = Retry::class;
protected $retryDataType = '';
protected $rollbackType = Rollback::class;
protected $rollbackDataType = '';
/**
* Optional. Retries a failed job.
*
* @param Retry $retry
*/
public function setRetry(Retry $retry)
{
$this->retry = $retry;
}
/**
* @return Retry
*/
public function getRetry()
{
return $this->retry;
}
/**
* Optional. Rolls back a `Rollout`.
*
* @param Rollback $rollback
*/
public function setRollback(Rollback $rollback)
{
$this->rollback = $rollback;
}
/**
* @return Rollback
*/
public function getRollback()
{
return $this->rollback;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RepairPhaseConfig::class, 'Google_Service_CloudDeploy_RepairPhaseConfig');
@@ -1,136 +0,0 @@
<?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 RepairRolloutOperation extends \Google\Collection
{
protected $collection_key = 'repairPhases';
/**
* Output only. The index of the current repair action in the repair sequence.
*
* @var string
*/
public $currentRepairPhaseIndex;
/**
* Output only. The job ID for the Job to repair.
*
* @var string
*/
public $jobId;
/**
* Output only. The phase ID of the phase that includes the job being
* repaired.
*
* @var string
*/
public $phaseId;
protected $repairPhasesType = RepairPhase::class;
protected $repairPhasesDataType = 'array';
/**
* Output only. The name of the rollout that initiates the `AutomationRun`.
*
* @var string
*/
public $rollout;
/**
* Output only. The index of the current repair action in the repair sequence.
*
* @param string $currentRepairPhaseIndex
*/
public function setCurrentRepairPhaseIndex($currentRepairPhaseIndex)
{
$this->currentRepairPhaseIndex = $currentRepairPhaseIndex;
}
/**
* @return string
*/
public function getCurrentRepairPhaseIndex()
{
return $this->currentRepairPhaseIndex;
}
/**
* Output only. The job ID for the Job to repair.
*
* @param string $jobId
*/
public function setJobId($jobId)
{
$this->jobId = $jobId;
}
/**
* @return string
*/
public function getJobId()
{
return $this->jobId;
}
/**
* Output only. The phase ID of the phase that includes the job being
* repaired.
*
* @param string $phaseId
*/
public function setPhaseId($phaseId)
{
$this->phaseId = $phaseId;
}
/**
* @return string
*/
public function getPhaseId()
{
return $this->phaseId;
}
/**
* Output only. Records of the repair attempts. Each repair phase may have
* multiple retry attempts or single rollback attempt.
*
* @param RepairPhase[] $repairPhases
*/
public function setRepairPhases($repairPhases)
{
$this->repairPhases = $repairPhases;
}
/**
* @return RepairPhase[]
*/
public function getRepairPhases()
{
return $this->repairPhases;
}
/**
* 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;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RepairRolloutOperation::class, 'Google_Service_CloudDeploy_RepairRolloutOperation');
@@ -1,155 +0,0 @@
<?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 RepairRolloutRule extends \Google\Collection
{
protected $collection_key = 'repairPhases';
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. Jobs to repair. Proceeds only after job name matched any one in
* the list, or for all jobs if unspecified or empty. The phase that includes
* the job must match the phase ID specified in `source_phase`. This value
* must consist of lower-case letters, numbers, and hyphens, start with a
* letter and end with a letter or a number, and have a max length of 63
* characters. In other words, it must match the following regex:
* `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
*
* @var string[]
*/
public $jobs;
/**
* Optional. Phases within which jobs are subject to automatic repair actions
* on failure. Proceeds only after phase name matched any one in the list, or
* for all phases if unspecified. This value must consist of lower-case
* letters, numbers, and hyphens, start with a letter and end with a letter or
* a number, and have a max length of 63 characters. In other words, it must
* match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
*
* @var string[]
*/
public $phases;
protected $repairPhasesType = RepairPhaseConfig::class;
protected $repairPhasesDataType = 'array';
/**
* 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. Jobs to repair. Proceeds only after job name matched any one in
* the list, or for all jobs if unspecified or empty. The phase that includes
* the job must match the phase ID specified in `source_phase`. This value
* must consist of lower-case letters, numbers, and hyphens, start with a
* letter and end with a letter or a number, and have a max length of 63
* characters. In other words, it must match the following regex:
* `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
*
* @param string[] $jobs
*/
public function setJobs($jobs)
{
$this->jobs = $jobs;
}
/**
* @return string[]
*/
public function getJobs()
{
return $this->jobs;
}
/**
* Optional. Phases within which jobs are subject to automatic repair actions
* on failure. Proceeds only after phase name matched any one in the list, or
* for all phases if unspecified. This value must consist of lower-case
* letters, numbers, and hyphens, start with a letter and end with a letter or
* a number, and have a max length of 63 characters. In other words, it must
* match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
*
* @param string[] $phases
*/
public function setPhases($phases)
{
$this->phases = $phases;
}
/**
* @return string[]
*/
public function getPhases()
{
return $this->phases;
}
/**
* Required. Defines the types of automatic repair phases for failed jobs.
*
* @param RepairPhaseConfig[] $repairPhases
*/
public function setRepairPhases($repairPhases)
{
$this->repairPhases = $repairPhases;
}
/**
* @return RepairPhaseConfig[]
*/
public function getRepairPhases()
{
return $this->repairPhases;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RepairRolloutRule::class, 'Google_Service_CloudDeploy_RepairRolloutRule');
@@ -1,33 +0,0 @@
<?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\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $clouddeployService = new Google\Service\CloudDeploy(...);
* $projects = $clouddeployService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_CloudDeploy_Resource_Projects');
@@ -1,100 +0,0 @@
<?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\Resource;
use Google\Service\CloudDeploy\Config;
use Google\Service\CloudDeploy\ListLocationsResponse;
use Google\Service\CloudDeploy\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $clouddeployService = new Google\Service\CloudDeploy(...);
* $locations = $clouddeployService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::class);
}
/**
* Gets the configuration for a location. (locations.getConfig)
*
* @param string $name Required. Name of requested configuration.
* @param array $optParams Optional parameters.
* @return Config
* @throws \Google\Service\Exception
*/
public function getConfig($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getConfig', [$params], Config::class);
}
/**
* Lists information about the supported locations for this service. This method
* lists locations based on the resource scope provided in the
* ListLocationsRequest.name field: * **Global locations**: If `name` is empty,
* the method lists the public locations available to all projects. * **Project-
* specific locations**: If `name` follows the format `projects/{project}`, the
* method lists locations visible to that specific project. This includes
* public, private, or other project-specific locations enabled for the project.
* For gRPC and client library implementations, the resource name is passed as
* the `name` field. For direct service calls, the resource name is incorporated
* into the request path based on the specific service implementation and
* version. (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string extraLocationTypes Optional. Do not use this field unless
* explicitly documented otherwise. This is primarily for internal usage.
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
* field in the response. Send that page token to receive the subsequent page.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_CloudDeploy_Resource_ProjectsLocations');
@@ -1,246 +0,0 @@
<?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\Resource;
use Google\Service\CloudDeploy\CustomTargetType;
use Google\Service\CloudDeploy\ListCustomTargetTypesResponse;
use Google\Service\CloudDeploy\Operation;
use Google\Service\CloudDeploy\Policy;
use Google\Service\CloudDeploy\SetIamPolicyRequest;
/**
* The "customTargetTypes" collection of methods.
* Typical usage is:
* <code>
* $clouddeployService = new Google\Service\CloudDeploy(...);
* $customTargetTypes = $clouddeployService->projects_locations_customTargetTypes;
* </code>
*/
class ProjectsLocationsCustomTargetTypes extends \Google\Service\Resource
{
/**
* Creates a new CustomTargetType in a given project and location.
* (customTargetTypes.create)
*
* @param string $parent Required. The parent collection in which the
* `CustomTargetType` must be created. The format is
* `projects/{project_id}/locations/{location_name}`.
* @param CustomTargetType $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string customTargetTypeId Required. ID of the `CustomTargetType`.
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that for at least 60 minutes after the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set to true, the request is
* validated and the user is provided with an expected result, but no actual
* change is made.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, CustomTargetType $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single CustomTargetType. (customTargetTypes.delete)
*
* @param string $name Required. The name of the `CustomTargetType` to delete.
* Format must be `projects/{project_id}/locations/{location_name}/customTargetT
* ypes/{custom_target_type}`.
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, then deleting an
* already deleted or non-existing `CustomTargetType` will succeed.
* @opt_param string etag Optional. This checksum is computed by the server
* based on the value of other fields, and may be sent on update and delete
* requests to ensure the client has an up-to-date value before proceeding.
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that for at least 60 minutes after the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set to true, the request is
* validated but no actual change is made.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single CustomTargetType. (customTargetTypes.get)
*
* @param string $name Required. Name of the `CustomTargetType`. Format must be
* `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_ta
* rget_type}`.
* @param array $optParams Optional parameters.
* @return CustomTargetType
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], CustomTargetType::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (customTargetTypes.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists CustomTargetTypes in a given project and location.
* (customTargetTypes.listProjectsLocationsCustomTargetTypes)
*
* @param string $parent Required. The parent that owns this collection of
* custom target types. Format must be
* `projects/{project_id}/locations/{location_name}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter custom target types to be returned.
* See https://google.aip.dev/160 for more details.
* @opt_param string orderBy Optional. Field to sort by. See
* https://google.aip.dev/132#ordering for more details.
* @opt_param int pageSize Optional. The maximum number of `CustomTargetType`
* objects to return. The service may return fewer than this value. If
* unspecified, at most 50 `CustomTargetType` objects will be returned. The
* maximum value is 1000; values above 1000 will be set to 1000.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListCustomTargetTypes` call. Provide this to retrieve the subsequent page.
* When paginating, all other provided parameters match the call that provided
* the page token.
* @return ListCustomTargetTypesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsCustomTargetTypes($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListCustomTargetTypesResponse::class);
}
/**
* Updates a single CustomTargetType. (customTargetTypes.patch)
*
* @param string $name Identifier. Name of the `CustomTargetType`. Format is `pr
* ojects/{project}/locations/{location}/customTargetTypes/{customTargetType}`.
* The `customTargetType` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
* @param CustomTargetType $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, updating a
* `CustomTargetType` that does not exist will result in the creation of a new
* `CustomTargetType`.
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that for at least 60 minutes after the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten by the update in the `CustomTargetType` resource.
* The fields specified in the update_mask are relative to the resource, not the
* full request. A field will be overwritten if it's in the mask. If the user
* doesn't provide a mask then all fields are overwritten.
* @opt_param bool validateOnly Optional. If set to true, the request is
* validated and the user is provided with an expected result, but no actual
* change is made.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, CustomTargetType $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (customTargetTypes.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsCustomTargetTypes::class, 'Google_Service_CloudDeploy_Resource_ProjectsLocationsCustomTargetTypes');
@@ -1,294 +0,0 @@
<?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\Resource;
use Google\Service\CloudDeploy\DeliveryPipeline;
use Google\Service\CloudDeploy\ListDeliveryPipelinesResponse;
use Google\Service\CloudDeploy\Operation;
use Google\Service\CloudDeploy\Policy;
use Google\Service\CloudDeploy\RollbackTargetRequest;
use Google\Service\CloudDeploy\RollbackTargetResponse;
use Google\Service\CloudDeploy\SetIamPolicyRequest;
use Google\Service\CloudDeploy\TestIamPermissionsRequest;
use Google\Service\CloudDeploy\TestIamPermissionsResponse;
/**
* The "deliveryPipelines" collection of methods.
* Typical usage is:
* <code>
* $clouddeployService = new Google\Service\CloudDeploy(...);
* $deliveryPipelines = $clouddeployService->projects_locations_deliveryPipelines;
* </code>
*/
class ProjectsLocationsDeliveryPipelines extends \Google\Service\Resource
{
/**
* Creates a new DeliveryPipeline in a given project and location.
* (deliveryPipelines.create)
*
* @param string $parent Required. The parent collection in which the
* `DeliveryPipeline` must be created. The format is
* `projects/{project_id}/locations/{location_name}`.
* @param DeliveryPipeline $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string deliveryPipelineId Required. ID of the `DeliveryPipeline`.
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that for at least 60 minutes after the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set to true, the request is
* validated and the user is provided with an expected result, but no actual
* change is made.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, DeliveryPipeline $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single DeliveryPipeline. (deliveryPipelines.delete)
*
* @param string $name Required. The name of the `DeliveryPipeline` to delete.
* The format is `projects/{project_id}/locations/{location_name}/deliveryPipeli
* nes/{pipeline_name}`.
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, then deleting an
* already deleted or non-existing `DeliveryPipeline` will succeed.
* @opt_param string etag Optional. This checksum is computed by the server
* based on the value of other fields, and may be sent on update and delete
* requests to ensure the client has an up-to-date value before proceeding.
* @opt_param bool force Optional. If set to true, all child resources under
* this pipeline will also be deleted. Otherwise, the request will only work if
* the pipeline has no child resources.
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that for at least 60 minutes after the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set, validate the request and
* preview the review, but do not actually post it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single DeliveryPipeline. (deliveryPipelines.get)
*
* @param string $name Required. Name of the `DeliveryPipeline`. Format must be
* `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_
* name}`.
* @param array $optParams Optional parameters.
* @return DeliveryPipeline
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DeliveryPipeline::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (deliveryPipelines.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists DeliveryPipelines in a given project and location.
* (deliveryPipelines.listProjectsLocationsDeliveryPipelines)
*
* @param string $parent Required. The parent, which owns this collection of
* pipelines. Format must be `projects/{project_id}/locations/{location_name}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter pipelines to be returned. See
* https://google.aip.dev/160 for more details.
* @opt_param string orderBy Field to sort by. See
* https://google.aip.dev/132#ordering for more details.
* @opt_param int pageSize The maximum number of pipelines to return. The
* service may return fewer than this value. If unspecified, at most 50
* pipelines will be returned. The maximum value is 1000; values above 1000 will
* be set to 1000.
* @opt_param string pageToken A page token, received from a previous
* `ListDeliveryPipelines` call. Provide this to retrieve the subsequent page.
* When paginating, all other provided parameters match the call that provided
* the page token.
* @return ListDeliveryPipelinesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsDeliveryPipelines($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDeliveryPipelinesResponse::class);
}
/**
* Updates the parameters of a single DeliveryPipeline.
* (deliveryPipelines.patch)
*
* @param string $name Identifier. Name of the `DeliveryPipeline`. Format is `pr
* ojects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}`.
* The `deliveryPipeline` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
* @param DeliveryPipeline $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, updating a
* `DeliveryPipeline` that does not exist will result in the creation of a new
* `DeliveryPipeline`.
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that for at least 60 minutes after the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten by the update in the `DeliveryPipeline` resource.
* The fields specified in the update_mask are relative to the resource, not the
* full request. A field will be overwritten if it's in the mask. If the user
* doesn't provide a mask then all fields are overwritten.
* @opt_param bool validateOnly Optional. If set to true, the request is
* validated and the user is provided with an expected result, but no actual
* change is made.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, DeliveryPipeline $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Creates a `Rollout` to roll back the specified target.
* (deliveryPipelines.rollbackTarget)
*
* @param string $name Required. The `DeliveryPipeline` for which the rollback
* `Rollout` must be created. The format is `projects/{project_id}/locations/{lo
* cation_name}/deliveryPipelines/{pipeline_name}`.
* @param RollbackTargetRequest $postBody
* @param array $optParams Optional parameters.
* @return RollbackTargetResponse
* @throws \Google\Service\Exception
*/
public function rollbackTarget($name, RollbackTargetRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('rollbackTarget', [$params], RollbackTargetResponse::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (deliveryPipelines.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (deliveryPipelines.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsDeliveryPipelines::class, 'Google_Service_CloudDeploy_Resource_ProjectsLocationsDeliveryPipelines');
@@ -1,103 +0,0 @@
<?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\Resource;
use Google\Service\CloudDeploy\AutomationRun;
use Google\Service\CloudDeploy\CancelAutomationRunRequest;
use Google\Service\CloudDeploy\CancelAutomationRunResponse;
use Google\Service\CloudDeploy\ListAutomationRunsResponse;
/**
* The "automationRuns" collection of methods.
* Typical usage is:
* <code>
* $clouddeployService = new Google\Service\CloudDeploy(...);
* $automationRuns = $clouddeployService->projects_locations_deliveryPipelines_automationRuns;
* </code>
*/
class ProjectsLocationsDeliveryPipelinesAutomationRuns extends \Google\Service\Resource
{
/**
* Cancels an AutomationRun. The `state` of the `AutomationRun` after cancelling
* is `CANCELLED`. `CancelAutomationRun` can be called on AutomationRun in the
* state `IN_PROGRESS` and `PENDING`; AutomationRun in a different state returns
* an `FAILED_PRECONDITION` error. (automationRuns.cancel)
*
* @param string $name Required. Name of the `AutomationRun`. Format is `project
* s/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automa
* tionRuns/{automation_run}`.
* @param CancelAutomationRunRequest $postBody
* @param array $optParams Optional parameters.
* @return CancelAutomationRunResponse
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelAutomationRunRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], CancelAutomationRunResponse::class);
}
/**
* Gets details of a single AutomationRun. (automationRuns.get)
*
* @param string $name Required. Name of the `AutomationRun`. Format must be `pr
* ojects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/a
* utomationRuns/{automation_run}`.
* @param array $optParams Optional parameters.
* @return AutomationRun
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AutomationRun::class);
}
/**
* Lists AutomationRuns in a given project and location.
* (automationRuns.listProjectsLocationsDeliveryPipelinesAutomationRuns)
*
* @param string $parent Required. The parent `Delivery Pipeline`, which owns
* this collection of automationRuns. Format must be `projects/{project}/locatio
* ns/{location}/deliveryPipelines/{delivery_pipeline}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter automationRuns to be returned. All fields can
* be used in the filter.
* @opt_param string orderBy Field to sort by.
* @opt_param int pageSize The maximum number of automationRuns to return. The
* service may return fewer than this value. If unspecified, at most 50
* automationRuns will be returned. The maximum value is 1000; values above 1000
* will be set to 1000.
* @opt_param string pageToken A page token, received from a previous
* `ListAutomationRuns` call. Provide this to retrieve the subsequent page. When
* paginating, all other provided parameters match the call that provided the
* page token.
* @return ListAutomationRunsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsDeliveryPipelinesAutomationRuns($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAutomationRunsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsDeliveryPipelinesAutomationRuns::class, 'Google_Service_CloudDeploy_Resource_ProjectsLocationsDeliveryPipelinesAutomationRuns');
@@ -1,192 +0,0 @@
<?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\Resource;
use Google\Service\CloudDeploy\Automation;
use Google\Service\CloudDeploy\ListAutomationsResponse;
use Google\Service\CloudDeploy\Operation;
/**
* The "automations" collection of methods.
* Typical usage is:
* <code>
* $clouddeployService = new Google\Service\CloudDeploy(...);
* $automations = $clouddeployService->projects_locations_deliveryPipelines_automations;
* </code>
*/
class ProjectsLocationsDeliveryPipelinesAutomations extends \Google\Service\Resource
{
/**
* Creates a new Automation in a given project and location.
* (automations.create)
*
* @param string $parent Required. The parent collection in which the
* `Automation` must be created. The format is `projects/{project_id}/locations/
* {location_name}/deliveryPipelines/{pipeline_name}`.
* @param Automation $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string automationId Required. ID of the `Automation`.
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that for at least 60 minutes after the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set to true, the request is
* validated and the user is provided with an expected result, but no actual
* change is made.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Automation $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single Automation resource. (automations.delete)
*
* @param string $name Required. The name of the `Automation` to delete. The
* format is `projects/{project_id}/locations/{location_name}/deliveryPipelines/
* {pipeline_name}/automations/{automation_name}`.
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, then deleting an
* already deleted or non-existing `Automation` will succeed.
* @opt_param string etag Optional. The weak etag of the request. This checksum
* is computed by the server based on the value of other fields, and may be sent
* on update and delete requests to ensure the client has an up-to-date value
* before proceeding.
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that for at least 60 minutes after the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set, validate the request and
* verify whether the resource exists, but do not actually post it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single Automation. (automations.get)
*
* @param string $name Required. Name of the `Automation`. Format must be `proje
* cts/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/
* automations/{automation_name}`.
* @param array $optParams Optional parameters.
* @return Automation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Automation::class);
}
/**
* Lists Automations in a given project and location.
* (automations.listProjectsLocationsDeliveryPipelinesAutomations)
*
* @param string $parent Required. The parent `Delivery Pipeline`, which owns
* this collection of automations. Format must be `projects/{project_id}/locatio
* ns/{location_name}/deliveryPipelines/{pipeline_name}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter automations to be returned. All fields can be
* used in the filter.
* @opt_param string orderBy Field to sort by.
* @opt_param int pageSize The maximum number of automations to return. The
* service may return fewer than this value. If unspecified, at most 50
* automations will be returned. The maximum value is 1000; values above 1000
* will be set to 1000.
* @opt_param string pageToken A page token, received from a previous
* `ListAutomations` call. Provide this to retrieve the subsequent page. When
* paginating, all other provided parameters match the call that provided the
* page token.
* @return ListAutomationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsDeliveryPipelinesAutomations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAutomationsResponse::class);
}
/**
* Updates the parameters of a single Automation resource. (automations.patch)
*
* @param string $name Output only. Name of the `Automation`. Format is `project
* s/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automa
* tions/{automation}`.
* @param Automation $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, updating a
* `Automation` that does not exist will result in the creation of a new
* `Automation`.
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that for at least 60 minutes after the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten by the update in the `Automation` resource. The
* fields specified in the update_mask are relative to the resource, not the
* full request. A field will be overwritten if it's in the mask. If the user
* doesn't provide a mask then all fields are overwritten.
* @opt_param bool validateOnly Optional. If set to true, the request is
* validated and the user is provided with an expected result, but no actual
* change is made.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Automation $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsDeliveryPipelinesAutomations::class, 'Google_Service_CloudDeploy_Resource_ProjectsLocationsDeliveryPipelinesAutomations');
@@ -1,137 +0,0 @@
<?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\Resource;
use Google\Service\CloudDeploy\AbandonReleaseRequest;
use Google\Service\CloudDeploy\AbandonReleaseResponse;
use Google\Service\CloudDeploy\ListReleasesResponse;
use Google\Service\CloudDeploy\Operation;
use Google\Service\CloudDeploy\Release;
/**
* The "releases" collection of methods.
* Typical usage is:
* <code>
* $clouddeployService = new Google\Service\CloudDeploy(...);
* $releases = $clouddeployService->projects_locations_deliveryPipelines_releases;
* </code>
*/
class ProjectsLocationsDeliveryPipelinesReleases extends \Google\Service\Resource
{
/**
* Abandons a Release in the Delivery Pipeline. (releases.abandon)
*
* @param string $name Required. Name of the Release. Format is `projects/{proje
* ct}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{relea
* se}`.
* @param AbandonReleaseRequest $postBody
* @param array $optParams Optional parameters.
* @return AbandonReleaseResponse
* @throws \Google\Service\Exception
*/
public function abandon($name, AbandonReleaseRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('abandon', [$params], AbandonReleaseResponse::class);
}
/**
* Creates a new Release in a given project and location. (releases.create)
*
* @param string $parent Required. The parent collection in which the `Release`
* is created. The format is `projects/{project_id}/locations/{location_name}/de
* liveryPipelines/{pipeline_name}`.
* @param Release $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string overrideDeployPolicy Optional. Deploy policies to override.
* Format is
* `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
* @opt_param string releaseId Required. ID of the `Release`.
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that for at least 60 minutes after the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set to true, the request is
* validated and the user is provided with an expected result, but no actual
* change is made.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Release $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Gets details of a single Release. (releases.get)
*
* @param string $name Required. Name of the `Release`. Format must be `projects
* /{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/rel
* eases/{release_name}`.
* @param array $optParams Optional parameters.
* @return Release
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Release::class);
}
/**
* Lists Releases in a given project and location.
* (releases.listProjectsLocationsDeliveryPipelinesReleases)
*
* @param string $parent Required. The `DeliveryPipeline` which owns this
* collection of `Release` objects.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter releases to be returned. See
* https://google.aip.dev/160 for more details.
* @opt_param string orderBy Optional. Field to sort by. See
* https://google.aip.dev/132#ordering for more details.
* @opt_param int pageSize Optional. The maximum number of `Release` objects to
* return. The service may return fewer than this value. If unspecified, at most
* 50 `Release` objects will be returned. The maximum value is 1000; values
* above 1000 will be set to 1000.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListReleases` call. Provide this to retrieve the subsequent page. When
* paginating, all other provided parameters match the call that provided the
* page token.
* @return ListReleasesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsDeliveryPipelinesReleases($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListReleasesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsDeliveryPipelinesReleases::class, 'Google_Service_CloudDeploy_Resource_ProjectsLocationsDeliveryPipelinesReleases');
@@ -1,215 +0,0 @@
<?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\Resource;
use Google\Service\CloudDeploy\AdvanceRolloutRequest;
use Google\Service\CloudDeploy\AdvanceRolloutResponse;
use Google\Service\CloudDeploy\ApproveRolloutRequest;
use Google\Service\CloudDeploy\ApproveRolloutResponse;
use Google\Service\CloudDeploy\CancelRolloutRequest;
use Google\Service\CloudDeploy\CancelRolloutResponse;
use Google\Service\CloudDeploy\IgnoreJobRequest;
use Google\Service\CloudDeploy\IgnoreJobResponse;
use Google\Service\CloudDeploy\ListRolloutsResponse;
use Google\Service\CloudDeploy\Operation;
use Google\Service\CloudDeploy\RetryJobRequest;
use Google\Service\CloudDeploy\RetryJobResponse;
use Google\Service\CloudDeploy\Rollout;
/**
* The "rollouts" collection of methods.
* Typical usage is:
* <code>
* $clouddeployService = new Google\Service\CloudDeploy(...);
* $rollouts = $clouddeployService->projects_locations_deliveryPipelines_releases_rollouts;
* </code>
*/
class ProjectsLocationsDeliveryPipelinesReleasesRollouts extends \Google\Service\Resource
{
/**
* Advances a Rollout in a given project and location. (rollouts.advance)
*
* @param string $name Required. Name of the Rollout. Format is `projects/{proje
* ct}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{relea
* se}/rollouts/{rollout}`.
* @param AdvanceRolloutRequest $postBody
* @param array $optParams Optional parameters.
* @return AdvanceRolloutResponse
* @throws \Google\Service\Exception
*/
public function advance($name, AdvanceRolloutRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('advance', [$params], AdvanceRolloutResponse::class);
}
/**
* Approves a Rollout. (rollouts.approve)
*
* @param string $name Required. Name of the Rollout. Format is `projects/{proje
* ct}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{relea
* se}/rollouts/{rollout}`.
* @param ApproveRolloutRequest $postBody
* @param array $optParams Optional parameters.
* @return ApproveRolloutResponse
* @throws \Google\Service\Exception
*/
public function approve($name, ApproveRolloutRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('approve', [$params], ApproveRolloutResponse::class);
}
/**
* Cancels a Rollout in a given project and location. (rollouts.cancel)
*
* @param string $name Required. Name of the Rollout. Format is `projects/{proje
* ct}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{relea
* se}/rollouts/{rollout}`.
* @param CancelRolloutRequest $postBody
* @param array $optParams Optional parameters.
* @return CancelRolloutResponse
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelRolloutRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], CancelRolloutResponse::class);
}
/**
* Creates a new Rollout in a given project and location. (rollouts.create)
*
* @param string $parent Required. The parent collection in which the `Rollout`
* must be created. The format is `projects/{project_id}/locations/{location_nam
* e}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.
* @param Rollout $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string overrideDeployPolicy Optional. Deploy policies to override.
* Format is
* `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that for at least 60 minutes after the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string rolloutId Required. ID of the `Rollout`.
* @opt_param string startingPhaseId Optional. The starting phase ID for the
* `Rollout`. If empty the `Rollout` will start at the first phase.
* @opt_param bool validateOnly Optional. If set to true, the request is
* validated and the user is provided with an expected result, but no actual
* change is made.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Rollout $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Gets details of a single Rollout. (rollouts.get)
*
* @param string $name Required. Name of the `Rollout`. Format must be `projects
* /{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/rel
* eases/{release_name}/rollouts/{rollout_name}`.
* @param array $optParams Optional parameters.
* @return Rollout
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Rollout::class);
}
/**
* Ignores the specified Job in a Rollout. (rollouts.ignoreJob)
*
* @param string $rollout Required. Name of the Rollout. Format is `projects/{pr
* oject}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{re
* lease}/rollouts/{rollout}`.
* @param IgnoreJobRequest $postBody
* @param array $optParams Optional parameters.
* @return IgnoreJobResponse
* @throws \Google\Service\Exception
*/
public function ignoreJob($rollout, IgnoreJobRequest $postBody, $optParams = [])
{
$params = ['rollout' => $rollout, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('ignoreJob', [$params], IgnoreJobResponse::class);
}
/**
* Lists Rollouts in a given project and location.
* (rollouts.listProjectsLocationsDeliveryPipelinesReleasesRollouts)
*
* @param string $parent Required. The `Release` which owns this collection of
* `Rollout` objects.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter rollouts to be returned. See
* https://google.aip.dev/160 for more details.
* @opt_param string orderBy Optional. Field to sort by. See
* https://google.aip.dev/132#ordering for more details.
* @opt_param int pageSize Optional. The maximum number of `Rollout` objects to
* return. The service may return fewer than this value. If unspecified, at most
* 50 `Rollout` objects will be returned. The maximum value is 1000; values
* above 1000 will be set to 1000.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListRollouts` call. Provide this to retrieve the subsequent page. When
* paginating, all other provided parameters match the call that provided the
* page token.
* @return ListRolloutsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsDeliveryPipelinesReleasesRollouts($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRolloutsResponse::class);
}
/**
* Retries the specified Job in a Rollout. (rollouts.retryJob)
*
* @param string $rollout Required. Name of the Rollout. Format is `projects/{pr
* oject}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{re
* lease}/rollouts/{rollout}`.
* @param RetryJobRequest $postBody
* @param array $optParams Optional parameters.
* @return RetryJobResponse
* @throws \Google\Service\Exception
*/
public function retryJob($rollout, RetryJobRequest $postBody, $optParams = [])
{
$params = ['rollout' => $rollout, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('retryJob', [$params], RetryJobResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsDeliveryPipelinesReleasesRollouts::class, 'Google_Service_CloudDeploy_Resource_ProjectsLocationsDeliveryPipelinesReleasesRollouts');
@@ -1,100 +0,0 @@
<?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\Resource;
use Google\Service\CloudDeploy\JobRun;
use Google\Service\CloudDeploy\ListJobRunsResponse;
use Google\Service\CloudDeploy\TerminateJobRunRequest;
use Google\Service\CloudDeploy\TerminateJobRunResponse;
/**
* The "jobRuns" collection of methods.
* Typical usage is:
* <code>
* $clouddeployService = new Google\Service\CloudDeploy(...);
* $jobRuns = $clouddeployService->projects_locations_deliveryPipelines_releases_rollouts_jobRuns;
* </code>
*/
class ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRuns extends \Google\Service\Resource
{
/**
* Gets details of a single JobRun. (jobRuns.get)
*
* @param string $name Required. Name of the `JobRun`. Format must be `projects/
* {project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/rele
* ases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}`.
* @param array $optParams Optional parameters.
* @return JobRun
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], JobRun::class);
}
/**
* Lists JobRuns in a given project and location.
* (jobRuns.listProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRuns)
*
* @param string $parent Required. The `Rollout` which owns this collection of
* `JobRun` objects.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter results to be returned. See
* https://google.aip.dev/160 for more details.
* @opt_param string orderBy Optional. Field to sort by. See
* https://google.aip.dev/132#ordering for more details.
* @opt_param int pageSize Optional. The maximum number of `JobRun` objects to
* return. The service may return fewer than this value. If unspecified, at most
* 50 `JobRun` objects will be returned. The maximum value is 1000; values above
* 1000 will be set to 1000.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListJobRuns` call. Provide this to retrieve the subsequent page. When
* paginating, all other provided parameters match the call that provided the
* page token.
* @return ListJobRunsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRuns($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListJobRunsResponse::class);
}
/**
* Terminates a Job Run in a given project and location. (jobRuns.terminate)
*
* @param string $name Required. Name of the `JobRun`. Format must be `projects/
* {project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/
* {release}/rollouts/{rollout}/jobRuns/{jobRun}`.
* @param TerminateJobRunRequest $postBody
* @param array $optParams Optional parameters.
* @return TerminateJobRunResponse
* @throws \Google\Service\Exception
*/
public function terminate($name, TerminateJobRunRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('terminate', [$params], TerminateJobRunResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRuns::class, 'Google_Service_CloudDeploy_Resource_ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRuns');
@@ -1,246 +0,0 @@
<?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\Resource;
use Google\Service\CloudDeploy\DeployPolicy;
use Google\Service\CloudDeploy\ListDeployPoliciesResponse;
use Google\Service\CloudDeploy\Operation;
use Google\Service\CloudDeploy\Policy;
use Google\Service\CloudDeploy\SetIamPolicyRequest;
/**
* The "deployPolicies" collection of methods.
* Typical usage is:
* <code>
* $clouddeployService = new Google\Service\CloudDeploy(...);
* $deployPolicies = $clouddeployService->projects_locations_deployPolicies;
* </code>
*/
class ProjectsLocationsDeployPolicies extends \Google\Service\Resource
{
/**
* Creates a new DeployPolicy in a given project and location.
* (deployPolicies.create)
*
* @param string $parent Required. The parent collection in which the
* `DeployPolicy` must be created. The format is
* `projects/{project_id}/locations/{location_name}`.
* @param DeployPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string deployPolicyId Required. ID of the `DeployPolicy`.
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that for at least 60 minutes after the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set to true, the request is
* validated and the user is provided with an expected result, but no actual
* change is made.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, DeployPolicy $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single DeployPolicy. (deployPolicies.delete)
*
* @param string $name Required. The name of the `DeployPolicy` to delete. The
* format is `projects/{project_id}/locations/{location_name}/deployPolicies/{de
* ploy_policy_name}`.
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, then deleting an
* already deleted or non-existing `DeployPolicy` will succeed.
* @opt_param string etag Optional. This checksum is computed by the server
* based on the value of other fields, and may be sent on update and delete
* requests to ensure the client has an up-to-date value before proceeding.
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that for at least 60 minutes after the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set, validate the request and
* preview the review, but do not actually post it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single DeployPolicy. (deployPolicies.get)
*
* @param string $name Required. Name of the `DeployPolicy`. Format must be `pro
* jects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_na
* me}`.
* @param array $optParams Optional parameters.
* @return DeployPolicy
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DeployPolicy::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (deployPolicies.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists DeployPolicies in a given project and location.
* (deployPolicies.listProjectsLocationsDeployPolicies)
*
* @param string $parent Required. The parent, which owns this collection of
* deploy policies. Format must be
* `projects/{project_id}/locations/{location_name}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter deploy policies to be returned. See
* https://google.aip.dev/160 for more details. All fields can be used in the
* filter.
* @opt_param string orderBy Field to sort by. See
* https://google.aip.dev/132#ordering for more details.
* @opt_param int pageSize The maximum number of deploy policies to return. The
* service may return fewer than this value. If unspecified, at most 50 deploy
* policies will be returned. The maximum value is 1000; values above 1000 will
* be set to 1000.
* @opt_param string pageToken A page token, received from a previous
* `ListDeployPolicies` call. Provide this to retrieve the subsequent page. When
* paginating, all other provided parameters match the call that provided the
* page token.
* @return ListDeployPoliciesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsDeployPolicies($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDeployPoliciesResponse::class);
}
/**
* Updates the parameters of a single DeployPolicy. (deployPolicies.patch)
*
* @param string $name 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 DeployPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, updating a
* `DeployPolicy` that does not exist will result in the creation of a new
* `DeployPolicy`.
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that for at least 60 minutes after the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten by the update in the `DeployPolicy` resource. The
* fields specified in the update_mask are relative to the resource, not the
* full request. A field will be overwritten if it's in the mask. If the user
* doesn't provide a mask then all fields are overwritten.
* @opt_param bool validateOnly Optional. If set to true, the request is
* validated and the user is provided with an expected result, but no actual
* change is made.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, DeployPolicy $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (deployPolicies.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsDeployPolicies::class, 'Google_Service_CloudDeploy_Resource_ProjectsLocationsDeployPolicies');
@@ -1,121 +0,0 @@
<?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\Resource;
use Google\Service\CloudDeploy\CancelOperationRequest;
use Google\Service\CloudDeploy\ClouddeployEmpty;
use Google\Service\CloudDeploy\ListOperationsResponse;
use Google\Service\CloudDeploy\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $clouddeployService = new Google\Service\CloudDeploy(...);
* $operations = $clouddeployService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return ClouddeployEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], ClouddeployEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return ClouddeployEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ClouddeployEmpty::class);
}
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsLocationsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
* reachable are returned as normal, and those that are unreachable are returned
* in the ListOperationsResponse.unreachable field. This can only be `true` when
* reading across collections. For example, when `parent` is set to
* `"projects/example/locations/-"`. This field is not supported by default and
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
* otherwise in service or product specific documentation.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOperations::class, 'Google_Service_CloudDeploy_Resource_ProjectsLocationsOperations');
@@ -1,264 +0,0 @@
<?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\Resource;
use Google\Service\CloudDeploy\ListTargetsResponse;
use Google\Service\CloudDeploy\Operation;
use Google\Service\CloudDeploy\Policy;
use Google\Service\CloudDeploy\SetIamPolicyRequest;
use Google\Service\CloudDeploy\Target;
use Google\Service\CloudDeploy\TestIamPermissionsRequest;
use Google\Service\CloudDeploy\TestIamPermissionsResponse;
/**
* The "targets" collection of methods.
* Typical usage is:
* <code>
* $clouddeployService = new Google\Service\CloudDeploy(...);
* $targets = $clouddeployService->projects_locations_targets;
* </code>
*/
class ProjectsLocationsTargets extends \Google\Service\Resource
{
/**
* Creates a new Target in a given project and location. (targets.create)
*
* @param string $parent Required. The parent collection in which the `Target`
* must be created. The format is
* `projects/{project_id}/locations/{location_name}`.
* @param Target $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that for at least 60 minutes after the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string targetId Required. ID of the `Target`.
* @opt_param bool validateOnly Optional. If set to true, the request is
* validated and the user is provided with an expected result, but no actual
* change is made.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Target $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single Target. (targets.delete)
*
* @param string $name Required. The name of the `Target` to delete. The format
* is `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, then deleting an
* already deleted or non-existing `Target` will succeed.
* @opt_param string etag Optional. This checksum is computed by the server
* based on the value of other fields, and may be sent on update and delete
* requests to ensure the client has an up-to-date value before proceeding.
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that for at least 60 minutes after the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly Optional. If set, validate the request and
* preview the review, but do not actually post it.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single Target. (targets.get)
*
* @param string $name Required. Name of the `Target`. Format must be
* `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
* @param array $optParams Optional parameters.
* @return Target
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Target::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (targets.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists Targets in a given project and location.
* (targets.listProjectsLocationsTargets)
*
* @param string $parent Required. The parent, which owns this collection of
* targets. Format must be `projects/{project_id}/locations/{location_name}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter targets to be returned. See
* https://google.aip.dev/160 for more details.
* @opt_param string orderBy Optional. Field to sort by. See
* https://google.aip.dev/132#ordering for more details.
* @opt_param int pageSize Optional. The maximum number of `Target` objects to
* return. The service may return fewer than this value. If unspecified, at most
* 50 `Target` objects will be returned. The maximum value is 1000; values above
* 1000 will be set to 1000.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListTargets` call. Provide this to retrieve the subsequent page. When
* paginating, all other provided parameters match the call that provided the
* page token.
* @return ListTargetsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsTargets($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTargetsResponse::class);
}
/**
* Updates the parameters of a single Target. (targets.patch)
*
* @param string $name Identifier. Name of the `Target`. Format is
* `projects/{project}/locations/{location}/targets/{target}`. The `target`
* component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
* @param Target $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, updating a `Target`
* that does not exist will result in the creation of a new `Target`.
* @opt_param string requestId Optional. A request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server knows to ignore the request if it has already been completed. The
* server guarantees that for at least 60 minutes after the first request. For
* example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten by the update in the `Target` resource. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it's in the mask. If the user doesn't
* provide a mask then all fields are overwritten.
* @opt_param bool validateOnly Optional. If set to true, the request is
* validated and the user is provided with an expected result, but no actual
* change is made.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Target $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (targets.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning. (targets.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsTargets::class, 'Google_Service_CloudDeploy_Resource_ProjectsLocationsTargets');
@@ -1,113 +0,0 @@
<?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 Retry extends \Google\Model
{
/**
* No WaitMode is specified.
*/
public const BACKOFF_MODE_BACKOFF_MODE_UNSPECIFIED = 'BACKOFF_MODE_UNSPECIFIED';
/**
* Increases the wait time linearly.
*/
public const BACKOFF_MODE_BACKOFF_MODE_LINEAR = 'BACKOFF_MODE_LINEAR';
/**
* Increases the wait time exponentially.
*/
public const BACKOFF_MODE_BACKOFF_MODE_EXPONENTIAL = 'BACKOFF_MODE_EXPONENTIAL';
/**
* Required. Total number of retries. Retry is skipped if set to 0; The
* minimum value is 1, and the maximum value is 10.
*
* @var string
*/
public $attempts;
/**
* Optional. The pattern of how wait time will be increased. Default is
* linear. Backoff mode will be ignored if `wait` is 0.
*
* @var string
*/
public $backoffMode;
/**
* Optional. How long to wait for the first retry. Default is 0, and the
* maximum value is 14d.
*
* @var string
*/
public $wait;
/**
* Required. Total number of retries. Retry is skipped if set to 0; The
* minimum value is 1, and the maximum value is 10.
*
* @param string $attempts
*/
public function setAttempts($attempts)
{
$this->attempts = $attempts;
}
/**
* @return string
*/
public function getAttempts()
{
return $this->attempts;
}
/**
* Optional. The pattern of how wait time will be increased. Default is
* linear. Backoff mode will be ignored if `wait` is 0.
*
* Accepted values: BACKOFF_MODE_UNSPECIFIED, BACKOFF_MODE_LINEAR,
* BACKOFF_MODE_EXPONENTIAL
*
* @param self::BACKOFF_MODE_* $backoffMode
*/
public function setBackoffMode($backoffMode)
{
$this->backoffMode = $backoffMode;
}
/**
* @return self::BACKOFF_MODE_*
*/
public function getBackoffMode()
{
return $this->backoffMode;
}
/**
* Optional. How long to wait for the first retry. Default is 0, and the
* maximum value is 14d.
*
* @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(Retry::class, 'Google_Service_CloudDeploy_Retry');
@@ -1,146 +0,0 @@
<?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 RetryAttempt extends \Google\Model
{
/**
* The `repair` has an unspecified state.
*/
public const STATE_REPAIR_STATE_UNSPECIFIED = 'REPAIR_STATE_UNSPECIFIED';
/**
* The `repair` action has succeeded.
*/
public const STATE_REPAIR_STATE_SUCCEEDED = 'REPAIR_STATE_SUCCEEDED';
/**
* The `repair` action was cancelled.
*/
public const STATE_REPAIR_STATE_CANCELLED = 'REPAIR_STATE_CANCELLED';
/**
* The `repair` action has failed.
*/
public const STATE_REPAIR_STATE_FAILED = 'REPAIR_STATE_FAILED';
/**
* The `repair` action is in progress.
*/
public const STATE_REPAIR_STATE_IN_PROGRESS = 'REPAIR_STATE_IN_PROGRESS';
/**
* The `repair` action is pending.
*/
public const STATE_REPAIR_STATE_PENDING = 'REPAIR_STATE_PENDING';
/**
* The `repair` action was aborted.
*/
public const STATE_REPAIR_STATE_ABORTED = 'REPAIR_STATE_ABORTED';
/**
* Output only. The index of this retry attempt.
*
* @var string
*/
public $attempt;
/**
* Output only. Valid state of this retry action.
*
* @var string
*/
public $state;
/**
* Output only. Description of the state of the Retry.
*
* @var string
*/
public $stateDesc;
/**
* Output only. How long the operation will be paused.
*
* @var string
*/
public $wait;
/**
* Output only. The index of this retry attempt.
*
* @param string $attempt
*/
public function setAttempt($attempt)
{
$this->attempt = $attempt;
}
/**
* @return string
*/
public function getAttempt()
{
return $this->attempt;
}
/**
* Output only. Valid state of this retry action.
*
* Accepted values: REPAIR_STATE_UNSPECIFIED, REPAIR_STATE_SUCCEEDED,
* REPAIR_STATE_CANCELLED, REPAIR_STATE_FAILED, REPAIR_STATE_IN_PROGRESS,
* REPAIR_STATE_PENDING, REPAIR_STATE_ABORTED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Description of the state of the Retry.
*
* @param string $stateDesc
*/
public function setStateDesc($stateDesc)
{
$this->stateDesc = $stateDesc;
}
/**
* @return string
*/
public function getStateDesc()
{
return $this->stateDesc;
}
/**
* 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(RetryAttempt::class, 'Google_Service_CloudDeploy_RetryAttempt');
@@ -1,95 +0,0 @@
<?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 RetryJobRequest extends \Google\Collection
{
protected $collection_key = 'overrideDeployPolicy';
/**
* Required. The job ID for the Job to retry.
*
* @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 retry belongs to.
*
* @var string
*/
public $phaseId;
/**
* Required. The job ID for the Job to retry.
*
* @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 retry 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(RetryJobRequest::class, 'Google_Service_CloudDeploy_RetryJobRequest');
@@ -1,25 +0,0 @@
<?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 RetryJobResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RetryJobResponse::class, 'Google_Service_CloudDeploy_RetryJobResponse');
@@ -1,106 +0,0 @@
<?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 RetryPhase extends \Google\Collection
{
/**
* No WaitMode is specified.
*/
public const BACKOFF_MODE_BACKOFF_MODE_UNSPECIFIED = 'BACKOFF_MODE_UNSPECIFIED';
/**
* Increases the wait time linearly.
*/
public const BACKOFF_MODE_BACKOFF_MODE_LINEAR = 'BACKOFF_MODE_LINEAR';
/**
* Increases the wait time exponentially.
*/
public const BACKOFF_MODE_BACKOFF_MODE_EXPONENTIAL = 'BACKOFF_MODE_EXPONENTIAL';
protected $collection_key = 'attempts';
protected $attemptsType = RetryAttempt::class;
protected $attemptsDataType = 'array';
/**
* Output only. The pattern of how the wait time of the retry attempt is
* calculated.
*
* @var string
*/
public $backoffMode;
/**
* Output only. The number of attempts that have been made.
*
* @var string
*/
public $totalAttempts;
/**
* Output only. Detail of a retry action.
*
* @param RetryAttempt[] $attempts
*/
public function setAttempts($attempts)
{
$this->attempts = $attempts;
}
/**
* @return RetryAttempt[]
*/
public function getAttempts()
{
return $this->attempts;
}
/**
* Output only. The pattern of how the wait time of the retry attempt is
* calculated.
*
* Accepted values: BACKOFF_MODE_UNSPECIFIED, BACKOFF_MODE_LINEAR,
* BACKOFF_MODE_EXPONENTIAL
*
* @param self::BACKOFF_MODE_* $backoffMode
*/
public function setBackoffMode($backoffMode)
{
$this->backoffMode = $backoffMode;
}
/**
* @return self::BACKOFF_MODE_*
*/
public function getBackoffMode()
{
return $this->backoffMode;
}
/**
* Output only. The number of attempts that have been made.
*
* @param string $totalAttempts
*/
public function setTotalAttempts($totalAttempts)
{
$this->totalAttempts = $totalAttempts;
}
/**
* @return string
*/
public function getTotalAttempts()
{
return $this->totalAttempts;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RetryPhase::class, 'Google_Service_CloudDeploy_RetryPhase');
@@ -1,74 +0,0 @@
<?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 Rollback extends \Google\Model
{
/**
* Optional. The starting phase ID for the `Rollout`. If unspecified, the
* `Rollout` will start in the stable phase.
*
* @var string
*/
public $destinationPhase;
/**
* Optional. If pending rollout exists on the target, the rollback operation
* will be aborted.
*
* @var bool
*/
public $disableRollbackIfRolloutPending;
/**
* Optional. The starting phase ID for the `Rollout`. If unspecified, the
* `Rollout` will start in the stable phase.
*
* @param string $destinationPhase
*/
public function setDestinationPhase($destinationPhase)
{
$this->destinationPhase = $destinationPhase;
}
/**
* @return string
*/
public function getDestinationPhase()
{
return $this->destinationPhase;
}
/**
* Optional. If pending rollout exists on the target, the rollback operation
* will be aborted.
*
* @param bool $disableRollbackIfRolloutPending
*/
public function setDisableRollbackIfRolloutPending($disableRollbackIfRolloutPending)
{
$this->disableRollbackIfRolloutPending = $disableRollbackIfRolloutPending;
}
/**
* @return bool
*/
public function getDisableRollbackIfRolloutPending()
{
return $this->disableRollbackIfRolloutPending;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Rollback::class, 'Google_Service_CloudDeploy_Rollback');
@@ -1,168 +0,0 @@
<?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 RollbackAttempt extends \Google\Model
{
/**
* The `repair` has an unspecified state.
*/
public const STATE_REPAIR_STATE_UNSPECIFIED = 'REPAIR_STATE_UNSPECIFIED';
/**
* The `repair` action has succeeded.
*/
public const STATE_REPAIR_STATE_SUCCEEDED = 'REPAIR_STATE_SUCCEEDED';
/**
* The `repair` action was cancelled.
*/
public const STATE_REPAIR_STATE_CANCELLED = 'REPAIR_STATE_CANCELLED';
/**
* The `repair` action has failed.
*/
public const STATE_REPAIR_STATE_FAILED = 'REPAIR_STATE_FAILED';
/**
* The `repair` action is in progress.
*/
public const STATE_REPAIR_STATE_IN_PROGRESS = 'REPAIR_STATE_IN_PROGRESS';
/**
* The `repair` action is pending.
*/
public const STATE_REPAIR_STATE_PENDING = 'REPAIR_STATE_PENDING';
/**
* The `repair` action was aborted.
*/
public const STATE_REPAIR_STATE_ABORTED = 'REPAIR_STATE_ABORTED';
/**
* Output only. The phase to which the rollout will be rolled back to.
*
* @var string
*/
public $destinationPhase;
/**
* Output only. If active rollout exists on the target, abort this rollback.
*
* @var bool
*/
public $disableRollbackIfRolloutPending;
/**
* Output only. ID of the rollback `Rollout` to create.
*
* @var string
*/
public $rolloutId;
/**
* Output only. Valid state of this rollback action.
*
* @var string
*/
public $state;
/**
* Output only. Description of the state of the Rollback.
*
* @var string
*/
public $stateDesc;
/**
* Output only. The phase to which the rollout will be rolled back to.
*
* @param string $destinationPhase
*/
public function setDestinationPhase($destinationPhase)
{
$this->destinationPhase = $destinationPhase;
}
/**
* @return string
*/
public function getDestinationPhase()
{
return $this->destinationPhase;
}
/**
* Output only. If active rollout exists on the target, abort this rollback.
*
* @param bool $disableRollbackIfRolloutPending
*/
public function setDisableRollbackIfRolloutPending($disableRollbackIfRolloutPending)
{
$this->disableRollbackIfRolloutPending = $disableRollbackIfRolloutPending;
}
/**
* @return bool
*/
public function getDisableRollbackIfRolloutPending()
{
return $this->disableRollbackIfRolloutPending;
}
/**
* Output only. ID of the rollback `Rollout` to create.
*
* @param string $rolloutId
*/
public function setRolloutId($rolloutId)
{
$this->rolloutId = $rolloutId;
}
/**
* @return string
*/
public function getRolloutId()
{
return $this->rolloutId;
}
/**
* Output only. Valid state of this rollback action.
*
* Accepted values: REPAIR_STATE_UNSPECIFIED, REPAIR_STATE_SUCCEEDED,
* REPAIR_STATE_CANCELLED, REPAIR_STATE_FAILED, REPAIR_STATE_IN_PROGRESS,
* REPAIR_STATE_PENDING, REPAIR_STATE_ABORTED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Description of the state of the Rollback.
*
* @param string $stateDesc
*/
public function setStateDesc($stateDesc)
{
$this->stateDesc = $stateDesc;
}
/**
* @return string
*/
public function getStateDesc()
{
return $this->stateDesc;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RollbackAttempt::class, 'Google_Service_CloudDeploy_RollbackAttempt');
@@ -1,68 +0,0 @@
<?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 RollbackTargetConfig extends \Google\Model
{
protected $rolloutType = Rollout::class;
protected $rolloutDataType = '';
/**
* Optional. The starting phase ID for the `Rollout`. If unspecified, the
* `Rollout` will start in the stable phase.
*
* @var string
*/
public $startingPhaseId;
/**
* Optional. The rollback `Rollout` to create.
*
* @param Rollout $rollout
*/
public function setRollout(Rollout $rollout)
{
$this->rollout = $rollout;
}
/**
* @return Rollout
*/
public function getRollout()
{
return $this->rollout;
}
/**
* Optional. The starting phase ID for the `Rollout`. If unspecified, the
* `Rollout` will start in the stable phase.
*
* @param string $startingPhaseId
*/
public function setStartingPhaseId($startingPhaseId)
{
$this->startingPhaseId = $startingPhaseId;
}
/**
* @return string
*/
public function getStartingPhaseId()
{
return $this->startingPhaseId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RollbackTargetConfig::class, 'Google_Service_CloudDeploy_RollbackTargetConfig');
@@ -1,187 +0,0 @@
<?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 RollbackTargetRequest extends \Google\Collection
{
protected $collection_key = 'overrideDeployPolicy';
/**
* Optional. Deploy policies to override. Format is
* `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`.
*
* @var string[]
*/
public $overrideDeployPolicy;
/**
* Optional. ID of the `Release` to roll back to. If this isn't specified, the
* previous successful `Rollout` to the specified target will be used to
* determine the `Release`.
*
* @var string
*/
public $releaseId;
protected $rollbackConfigType = RollbackTargetConfig::class;
protected $rollbackConfigDataType = '';
/**
* Required. ID of the rollback `Rollout` to create.
*
* @var string
*/
public $rolloutId;
/**
* Optional. If provided, this must be the latest `Rollout` that is on the
* `Target`.
*
* @var string
*/
public $rolloutToRollBack;
/**
* Required. ID of the `Target` that is being rolled back.
*
* @var string
*/
public $targetId;
/**
* Optional. If set to true, the request is validated and the user is provided
* with a `RollbackTargetResponse`.
*
* @var bool
*/
public $validateOnly;
/**
* Optional. Deploy policies to override. Format is
* `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`.
*
* @param string[] $overrideDeployPolicy
*/
public function setOverrideDeployPolicy($overrideDeployPolicy)
{
$this->overrideDeployPolicy = $overrideDeployPolicy;
}
/**
* @return string[]
*/
public function getOverrideDeployPolicy()
{
return $this->overrideDeployPolicy;
}
/**
* Optional. ID of the `Release` to roll back to. If this isn't specified, the
* previous successful `Rollout` to the specified target will be used to
* determine the `Release`.
*
* @param string $releaseId
*/
public function setReleaseId($releaseId)
{
$this->releaseId = $releaseId;
}
/**
* @return string
*/
public function getReleaseId()
{
return $this->releaseId;
}
/**
* Optional. Configs for the rollback `Rollout`.
*
* @param RollbackTargetConfig $rollbackConfig
*/
public function setRollbackConfig(RollbackTargetConfig $rollbackConfig)
{
$this->rollbackConfig = $rollbackConfig;
}
/**
* @return RollbackTargetConfig
*/
public function getRollbackConfig()
{
return $this->rollbackConfig;
}
/**
* Required. ID of the rollback `Rollout` to create.
*
* @param string $rolloutId
*/
public function setRolloutId($rolloutId)
{
$this->rolloutId = $rolloutId;
}
/**
* @return string
*/
public function getRolloutId()
{
return $this->rolloutId;
}
/**
* Optional. If provided, this must be the latest `Rollout` that is on the
* `Target`.
*
* @param string $rolloutToRollBack
*/
public function setRolloutToRollBack($rolloutToRollBack)
{
$this->rolloutToRollBack = $rolloutToRollBack;
}
/**
* @return string
*/
public function getRolloutToRollBack()
{
return $this->rolloutToRollBack;
}
/**
* Required. ID of the `Target` that is being rolled back.
*
* @param string $targetId
*/
public function setTargetId($targetId)
{
$this->targetId = $targetId;
}
/**
* @return string
*/
public function getTargetId()
{
return $this->targetId;
}
/**
* Optional. If set to true, the request is validated and the user is provided
* with a `RollbackTargetResponse`.
*
* @param bool $validateOnly
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RollbackTargetRequest::class, 'Google_Service_CloudDeploy_RollbackTargetRequest');
@@ -1,44 +0,0 @@
<?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 RollbackTargetResponse extends \Google\Model
{
protected $rollbackConfigType = RollbackTargetConfig::class;
protected $rollbackConfigDataType = '';
/**
* The config of the rollback `Rollout` created or will be created.
*
* @param RollbackTargetConfig $rollbackConfig
*/
public function setRollbackConfig(RollbackTargetConfig $rollbackConfig)
{
$this->rollbackConfig = $rollbackConfig;
}
/**
* @return RollbackTargetConfig
*/
public function getRollbackConfig()
{
return $this->rollbackConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RollbackTargetResponse::class, 'Google_Service_CloudDeploy_RollbackTargetResponse');
@@ -1,688 +0,0 @@
<?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 Rollout extends \Google\Collection
{
/**
* The `Rollout` has an unspecified approval state.
*/
public const APPROVAL_STATE_APPROVAL_STATE_UNSPECIFIED = 'APPROVAL_STATE_UNSPECIFIED';
/**
* The `Rollout` requires approval.
*/
public const APPROVAL_STATE_NEEDS_APPROVAL = 'NEEDS_APPROVAL';
/**
* The `Rollout` does not require approval.
*/
public const APPROVAL_STATE_DOES_NOT_NEED_APPROVAL = 'DOES_NOT_NEED_APPROVAL';
/**
* The `Rollout` has been approved.
*/
public const APPROVAL_STATE_APPROVED = 'APPROVED';
/**
* The `Rollout` has been rejected.
*/
public const APPROVAL_STATE_REJECTED = 'REJECTED';
/**
* No reason for failure is specified.
*/
public const DEPLOY_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 DEPLOY_FAILURE_CAUSE_CLOUD_BUILD_UNAVAILABLE = 'CLOUD_BUILD_UNAVAILABLE';
/**
* The deploy operation did not complete successfully; check Cloud Build logs.
*/
public const DEPLOY_FAILURE_CAUSE_EXECUTION_FAILED = 'EXECUTION_FAILED';
/**
* Deployment did not complete within the allotted time.
*/
public const DEPLOY_FAILURE_CAUSE_DEADLINE_EXCEEDED = 'DEADLINE_EXCEEDED';
/**
* Release is in a failed state.
*/
public const DEPLOY_FAILURE_CAUSE_RELEASE_FAILED = 'RELEASE_FAILED';
/**
* Release is abandoned.
*/
public const DEPLOY_FAILURE_CAUSE_RELEASE_ABANDONED = 'RELEASE_ABANDONED';
/**
* No Skaffold verify configuration was found.
*/
public const DEPLOY_FAILURE_CAUSE_VERIFICATION_CONFIG_NOT_FOUND = 'VERIFICATION_CONFIG_NOT_FOUND';
/**
* Cloud Build failed to fulfill Cloud Deploy's request. See failure_message
* for additional details.
*/
public const DEPLOY_FAILURE_CAUSE_CLOUD_BUILD_REQUEST_FAILED = 'CLOUD_BUILD_REQUEST_FAILED';
/**
* A Rollout operation had a feature configured that is not supported.
*/
public const DEPLOY_FAILURE_CAUSE_OPERATION_FEATURE_NOT_SUPPORTED = 'OPERATION_FEATURE_NOT_SUPPORTED';
/**
* The `Rollout` has an unspecified state.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The `Rollout` has completed successfully.
*/
public const STATE_SUCCEEDED = 'SUCCEEDED';
/**
* The `Rollout` has failed.
*/
public const STATE_FAILED = 'FAILED';
/**
* The `Rollout` is being deployed.
*/
public const STATE_IN_PROGRESS = 'IN_PROGRESS';
/**
* The `Rollout` needs approval.
*/
public const STATE_PENDING_APPROVAL = 'PENDING_APPROVAL';
/**
* An approver rejected the `Rollout`.
*/
public const STATE_APPROVAL_REJECTED = 'APPROVAL_REJECTED';
/**
* The `Rollout` is waiting for an earlier Rollout(s) to complete on this
* `Target`.
*/
public const STATE_PENDING = 'PENDING';
/**
* The `Rollout` is waiting for the `Release` to be fully rendered.
*/
public const STATE_PENDING_RELEASE = 'PENDING_RELEASE';
/**
* The `Rollout` is in the process of being cancelled.
*/
public const STATE_CANCELLING = 'CANCELLING';
/**
* The `Rollout` has been cancelled.
*/
public const STATE_CANCELLED = 'CANCELLED';
/**
* The `Rollout` is halted.
*/
public const STATE_HALTED = 'HALTED';
protected $collection_key = 'rolledBackByRollouts';
/**
* Output only. The AutomationRun actively repairing the rollout.
*
* @var string
*/
public $activeRepairAutomationRun;
/**
* 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. Approval state of the `Rollout`.
*
* @var string
*/
public $approvalState;
/**
* Output only. Time at which the `Rollout` was approved.
*
* @var string
*/
public $approveTime;
/**
* Output only. Name of the `ControllerRollout`. Format is `projects/{project}
* /locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{releas
* e}/rollouts/{rollout}`.
*
* @var string
*/
public $controllerRollout;
/**
* Output only. Time at which the `Rollout` was created.
*
* @var string
*/
public $createTime;
/**
* Output only. Time at which the `Rollout` finished deploying.
*
* @var string
*/
public $deployEndTime;
/**
* Output only. The reason this rollout failed. This will always be
* unspecified while the rollout is in progress.
*
* @var string
*/
public $deployFailureCause;
/**
* Output only. Time at which the `Rollout` started deploying.
*
* @var string
*/
public $deployStartTime;
/**
* Output only. The resource name of the Cloud Build `Build` object that is
* used to deploy the Rollout. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
* @var string
*/
public $deployingBuild;
/**
* Optional. Description of the `Rollout` for user purposes. Max length is 255
* characters.
*
* @var string
*/
public $description;
/**
* Output only. Time at which the `Rollout` was enqueued.
*
* @var string
*/
public $enqueueTime;
/**
* 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. Additional information about the rollout failure, if
* available.
*
* @var string
*/
public $failureReason;
/**
* 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;
protected $metadataType = Metadata::class;
protected $metadataDataType = '';
/**
* Identifier. Name of the `Rollout`. Format is `projects/{project}/locations/
* {location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts
* /{rollout}`. The `rollout` component must match
* `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* @var string
*/
public $name;
protected $phasesType = Phase::class;
protected $phasesDataType = 'array';
/**
* Output only. Name of the `Rollout` that is rolled back by this `Rollout`.
* Empty if this `Rollout` wasn't created as a rollback.
*
* @var string
*/
public $rollbackOfRollout;
/**
* Output only. Names of `Rollouts` that rolled back this `Rollout`.
*
* @var string[]
*/
public $rolledBackByRollouts;
/**
* Output only. Current state of the `Rollout`.
*
* @var string
*/
public $state;
/**
* Required. The ID of Target to which this `Rollout` is deploying.
*
* @var string
*/
public $targetId;
/**
* Output only. Unique identifier of the `Rollout`.
*
* @var string
*/
public $uid;
/**
* Output only. The AutomationRun actively repairing the rollout.
*
* @param string $activeRepairAutomationRun
*/
public function setActiveRepairAutomationRun($activeRepairAutomationRun)
{
$this->activeRepairAutomationRun = $activeRepairAutomationRun;
}
/**
* @return string
*/
public function getActiveRepairAutomationRun()
{
return $this->activeRepairAutomationRun;
}
/**
* 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. Approval state of the `Rollout`.
*
* Accepted values: APPROVAL_STATE_UNSPECIFIED, NEEDS_APPROVAL,
* DOES_NOT_NEED_APPROVAL, APPROVED, REJECTED
*
* @param self::APPROVAL_STATE_* $approvalState
*/
public function setApprovalState($approvalState)
{
$this->approvalState = $approvalState;
}
/**
* @return self::APPROVAL_STATE_*
*/
public function getApprovalState()
{
return $this->approvalState;
}
/**
* Output only. Time at which the `Rollout` was approved.
*
* @param string $approveTime
*/
public function setApproveTime($approveTime)
{
$this->approveTime = $approveTime;
}
/**
* @return string
*/
public function getApproveTime()
{
return $this->approveTime;
}
/**
* Output only. Name of the `ControllerRollout`. Format is `projects/{project}
* /locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{releas
* e}/rollouts/{rollout}`.
*
* @param string $controllerRollout
*/
public function setControllerRollout($controllerRollout)
{
$this->controllerRollout = $controllerRollout;
}
/**
* @return string
*/
public function getControllerRollout()
{
return $this->controllerRollout;
}
/**
* Output only. Time at which the `Rollout` was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. Time at which the `Rollout` finished deploying.
*
* @param string $deployEndTime
*/
public function setDeployEndTime($deployEndTime)
{
$this->deployEndTime = $deployEndTime;
}
/**
* @return string
*/
public function getDeployEndTime()
{
return $this->deployEndTime;
}
/**
* Output only. The reason this rollout failed. This will always be
* unspecified while the rollout is in progress.
*
* Accepted values: FAILURE_CAUSE_UNSPECIFIED, CLOUD_BUILD_UNAVAILABLE,
* EXECUTION_FAILED, DEADLINE_EXCEEDED, RELEASE_FAILED, RELEASE_ABANDONED,
* VERIFICATION_CONFIG_NOT_FOUND, CLOUD_BUILD_REQUEST_FAILED,
* OPERATION_FEATURE_NOT_SUPPORTED
*
* @param self::DEPLOY_FAILURE_CAUSE_* $deployFailureCause
*/
public function setDeployFailureCause($deployFailureCause)
{
$this->deployFailureCause = $deployFailureCause;
}
/**
* @return self::DEPLOY_FAILURE_CAUSE_*
*/
public function getDeployFailureCause()
{
return $this->deployFailureCause;
}
/**
* Output only. Time at which the `Rollout` started deploying.
*
* @param string $deployStartTime
*/
public function setDeployStartTime($deployStartTime)
{
$this->deployStartTime = $deployStartTime;
}
/**
* @return string
*/
public function getDeployStartTime()
{
return $this->deployStartTime;
}
/**
* Output only. The resource name of the Cloud Build `Build` object that is
* used to deploy the Rollout. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
* @param string $deployingBuild
*/
public function setDeployingBuild($deployingBuild)
{
$this->deployingBuild = $deployingBuild;
}
/**
* @return string
*/
public function getDeployingBuild()
{
return $this->deployingBuild;
}
/**
* Optional. Description of the `Rollout` for user purposes. Max length is 255
* characters.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. Time at which the `Rollout` was enqueued.
*
* @param string $enqueueTime
*/
public function setEnqueueTime($enqueueTime)
{
$this->enqueueTime = $enqueueTime;
}
/**
* @return string
*/
public function getEnqueueTime()
{
return $this->enqueueTime;
}
/**
* 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. Additional information about the rollout failure, if
* available.
*
* @param string $failureReason
*/
public function setFailureReason($failureReason)
{
$this->failureReason = $failureReason;
}
/**
* @return string
*/
public function getFailureReason()
{
return $this->failureReason;
}
/**
* 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. Metadata contains information about the rollout.
*
* @param Metadata $metadata
*/
public function setMetadata(Metadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return Metadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Identifier. Name of the `Rollout`. Format is `projects/{project}/locations/
* {location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts
* /{rollout}`. The `rollout` component must match
* `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The phases that represent the workflows of this `Rollout`.
*
* @param Phase[] $phases
*/
public function setPhases($phases)
{
$this->phases = $phases;
}
/**
* @return Phase[]
*/
public function getPhases()
{
return $this->phases;
}
/**
* Output only. Name of the `Rollout` that is rolled back by this `Rollout`.
* Empty if this `Rollout` wasn't created as a rollback.
*
* @param string $rollbackOfRollout
*/
public function setRollbackOfRollout($rollbackOfRollout)
{
$this->rollbackOfRollout = $rollbackOfRollout;
}
/**
* @return string
*/
public function getRollbackOfRollout()
{
return $this->rollbackOfRollout;
}
/**
* Output only. Names of `Rollouts` that rolled back this `Rollout`.
*
* @param string[] $rolledBackByRollouts
*/
public function setRolledBackByRollouts($rolledBackByRollouts)
{
$this->rolledBackByRollouts = $rolledBackByRollouts;
}
/**
* @return string[]
*/
public function getRolledBackByRollouts()
{
return $this->rolledBackByRollouts;
}
/**
* Output only. Current state of the `Rollout`.
*
* Accepted values: STATE_UNSPECIFIED, SUCCEEDED, FAILED, IN_PROGRESS,
* PENDING_APPROVAL, APPROVAL_REJECTED, PENDING, PENDING_RELEASE, CANCELLING,
* CANCELLED, HALTED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Required. The ID of Target to which this `Rollout` is deploying.
*
* @param string $targetId
*/
public function setTargetId($targetId)
{
$this->targetId = $targetId;
}
/**
* @return string
*/
public function getTargetId()
{
return $this->targetId;
}
/**
* Output only. Unique identifier of the `Rollout`.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Rollout::class, 'Google_Service_CloudDeploy_Rollout');
@@ -1,245 +0,0 @@
<?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 RolloutNotificationEvent 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';
/**
* 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` that the rollout is deployed to.
*
* @var string
*/
public $targetId;
/**
* Type of this notification, e.g. for a Pub/Sub failure.
*
* @var string
*/
public $type;
/**
* 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` that the rollout is deployed to.
*
* @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(RolloutNotificationEvent::class, 'Google_Service_CloudDeploy_RolloutNotificationEvent');
@@ -1,117 +0,0 @@
<?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 RolloutRestriction extends \Google\Collection
{
protected $collection_key = 'invokers';
/**
* Optional. Rollout actions to be restricted as part of the policy. If left
* empty, all actions will be restricted.
*
* @var string[]
*/
public $actions;
/**
* Required. Restriction rule ID. Required and must be unique within a
* DeployPolicy. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.
*
* @var string
*/
public $id;
/**
* Optional. What invoked the action. If left empty, all invoker types will be
* restricted.
*
* @var string[]
*/
public $invokers;
protected $timeWindowsType = TimeWindows::class;
protected $timeWindowsDataType = '';
/**
* Optional. Rollout actions to be restricted as part of the policy. If left
* empty, all actions will be restricted.
*
* @param string[] $actions
*/
public function setActions($actions)
{
$this->actions = $actions;
}
/**
* @return string[]
*/
public function getActions()
{
return $this->actions;
}
/**
* Required. Restriction rule ID. Required and must be unique within a
* DeployPolicy. 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. What invoked the action. If left empty, all invoker types will be
* restricted.
*
* @param string[] $invokers
*/
public function setInvokers($invokers)
{
$this->invokers = $invokers;
}
/**
* @return string[]
*/
public function getInvokers()
{
return $this->invokers;
}
/**
* Required. Time window within which actions are restricted.
*
* @param TimeWindows $timeWindows
*/
public function setTimeWindows(TimeWindows $timeWindows)
{
$this->timeWindows = $timeWindows;
}
/**
* @return TimeWindows
*/
public function getTimeWindows()
{
return $this->timeWindows;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RolloutRestriction::class, 'Google_Service_CloudDeploy_RolloutRestriction');
@@ -1,310 +0,0 @@
<?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 RolloutUpdateEvent extends \Google\Model
{
/**
* Rollout update type unspecified.
*/
public const ROLLOUT_UPDATE_TYPE_ROLLOUT_UPDATE_TYPE_UNSPECIFIED = 'ROLLOUT_UPDATE_TYPE_UNSPECIFIED';
/**
* Rollout state updated to pending (release has succeeded, waiting on the
* rollout to start).
*/
public const ROLLOUT_UPDATE_TYPE_PENDING = 'PENDING';
/**
* Rollout state updated to pending release.
*/
public const ROLLOUT_UPDATE_TYPE_PENDING_RELEASE = 'PENDING_RELEASE';
/**
* Rollout state updated to in progress.
*/
public const ROLLOUT_UPDATE_TYPE_IN_PROGRESS = 'IN_PROGRESS';
/**
* Rollout state updated to cancelling.
*/
public const ROLLOUT_UPDATE_TYPE_CANCELLING = 'CANCELLING';
/**
* Rollout state updated to cancelled.
*/
public const ROLLOUT_UPDATE_TYPE_CANCELLED = 'CANCELLED';
/**
* Rollout state updated to halted.
*/
public const ROLLOUT_UPDATE_TYPE_HALTED = 'HALTED';
/**
* Rollout state updated to succeeded.
*/
public const ROLLOUT_UPDATE_TYPE_SUCCEEDED = 'SUCCEEDED';
/**
* Rollout state updated to failed.
*/
public const ROLLOUT_UPDATE_TYPE_FAILED = 'FAILED';
/**
* Rollout requires approval.
*/
public const ROLLOUT_UPDATE_TYPE_APPROVAL_REQUIRED = 'APPROVAL_REQUIRED';
/**
* Rollout has been approved.
*/
public const ROLLOUT_UPDATE_TYPE_APPROVED = 'APPROVED';
/**
* Rollout has been rejected.
*/
public const ROLLOUT_UPDATE_TYPE_REJECTED = 'REJECTED';
/**
* Rollout requires advance to the next phase.
*/
public const ROLLOUT_UPDATE_TYPE_ADVANCE_REQUIRED = 'ADVANCE_REQUIRED';
/**
* Rollout has been advanced.
*/
public const ROLLOUT_UPDATE_TYPE_ADVANCED = 'ADVANCED';
/**
* 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';
/**
* Debug message for when a rollout update event occurs.
*
* @var string
*/
public $message;
/**
* Unique identifier of the pipeline.
*
* @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. rollout_uid is not in this log message because we
* write some of these log messages at rollout creation time, before we've
* generated the uid.
*
* @var string
*/
public $rollout;
/**
* The type of the rollout update.
*
* @var string
*/
public $rolloutUpdateType;
/**
* ID of the target.
*
* @var string
*/
public $targetId;
/**
* Type of this notification, e.g. for a rollout update event.
*
* @var string
*/
public $type;
/**
* Debug message for when a rollout update event occurs.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Unique identifier of the pipeline.
*
* @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. rollout_uid is not in this log message because we
* write some of these log messages at rollout creation time, before we've
* generated the uid.
*
* @param string $rollout
*/
public function setRollout($rollout)
{
$this->rollout = $rollout;
}
/**
* @return string
*/
public function getRollout()
{
return $this->rollout;
}
/**
* The type of the rollout update.
*
* Accepted values: ROLLOUT_UPDATE_TYPE_UNSPECIFIED, PENDING, PENDING_RELEASE,
* IN_PROGRESS, CANCELLING, CANCELLED, HALTED, SUCCEEDED, FAILED,
* APPROVAL_REQUIRED, APPROVED, REJECTED, ADVANCE_REQUIRED, ADVANCED
*
* @param self::ROLLOUT_UPDATE_TYPE_* $rolloutUpdateType
*/
public function setRolloutUpdateType($rolloutUpdateType)
{
$this->rolloutUpdateType = $rolloutUpdateType;
}
/**
* @return self::ROLLOUT_UPDATE_TYPE_*
*/
public function getRolloutUpdateType()
{
return $this->rolloutUpdateType;
}
/**
* 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 rollout update event.
*
* 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(RolloutUpdateEvent::class, 'Google_Service_CloudDeploy_RolloutUpdateEvent');
@@ -1,83 +0,0 @@
<?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 RouteDestinations extends \Google\Collection
{
protected $collection_key = 'destinationIds';
/**
* Required. The clusters where the Gateway API HTTPRoute resource will be
* deployed to. Valid entries include the associated entities IDs configured
* in the Target resource and "@self" to include the Target cluster.
*
* @var string[]
*/
public $destinationIds;
/**
* Optional. Whether to propagate the Kubernetes Service to the route
* destination clusters. The Service will always be deployed to the Target
* cluster even if the HTTPRoute is not. This option may be used to facilitate
* successful DNS lookup in the route destination clusters. Can only be set to
* true if destinations are specified.
*
* @var bool
*/
public $propagateService;
/**
* Required. The clusters where the Gateway API HTTPRoute resource will be
* deployed to. Valid entries include the associated entities IDs configured
* in the Target resource and "@self" to include the Target cluster.
*
* @param string[] $destinationIds
*/
public function setDestinationIds($destinationIds)
{
$this->destinationIds = $destinationIds;
}
/**
* @return string[]
*/
public function getDestinationIds()
{
return $this->destinationIds;
}
/**
* Optional. Whether to propagate the Kubernetes Service to the route
* destination clusters. The Service will always be deployed to the Target
* cluster even if the HTTPRoute is not. This option may be used to facilitate
* successful DNS lookup in the route destination clusters. Can only be set to
* true if destinations are specified.
*
* @param bool $propagateService
*/
public function setPropagateService($propagateService)
{
$this->propagateService = $propagateService;
}
/**
* @return bool
*/
public function getPropagateService()
{
return $this->propagateService;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RouteDestinations::class, 'Google_Service_CloudDeploy_RouteDestinations');
@@ -1,62 +0,0 @@
<?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 RuntimeConfig extends \Google\Model
{
protected $cloudRunType = CloudRunConfig::class;
protected $cloudRunDataType = '';
protected $kubernetesType = KubernetesConfig::class;
protected $kubernetesDataType = '';
/**
* Optional. Cloud Run runtime configuration.
*
* @param CloudRunConfig $cloudRun
*/
public function setCloudRun(CloudRunConfig $cloudRun)
{
$this->cloudRun = $cloudRun;
}
/**
* @return CloudRunConfig
*/
public function getCloudRun()
{
return $this->cloudRun;
}
/**
* Optional. Kubernetes runtime configuration.
*
* @param KubernetesConfig $kubernetes
*/
public function setKubernetes(KubernetesConfig $kubernetes)
{
$this->kubernetes = $kubernetes;
}
/**
* @return KubernetesConfig
*/
public function getKubernetes()
{
return $this->kubernetes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RuntimeConfig::class, 'Google_Service_CloudDeploy_RuntimeConfig');
@@ -1,46 +0,0 @@
<?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 SerialPipeline extends \Google\Collection
{
protected $collection_key = 'stages';
protected $stagesType = Stage::class;
protected $stagesDataType = 'array';
/**
* Optional. Each stage specifies configuration for a `Target`. The ordering
* of this list defines the promotion flow.
*
* @param Stage[] $stages
*/
public function setStages($stages)
{
$this->stages = $stages;
}
/**
* @return Stage[]
*/
public function getStages()
{
return $this->stages;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SerialPipeline::class, 'Google_Service_CloudDeploy_SerialPipeline');
@@ -1,124 +0,0 @@
<?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 ServiceNetworking extends \Google\Model
{
/**
* Required. Name of the Kubernetes Deployment whose traffic is managed by the
* specified Service.
*
* @var string
*/
public $deployment;
/**
* Optional. Whether to disable Pod overprovisioning. If Pod overprovisioning
* is disabled then Cloud Deploy will limit the number of total Pods used for
* the deployment strategy to the number of Pods the Deployment has on the
* cluster.
*
* @var bool
*/
public $disablePodOverprovisioning;
/**
* Optional. The label to use when selecting Pods for the Deployment resource.
* This label must already be present in the Deployment.
*
* @var string
*/
public $podSelectorLabel;
/**
* Required. Name of the Kubernetes Service.
*
* @var string
*/
public $service;
/**
* Required. Name of the Kubernetes Deployment whose traffic is managed by the
* specified Service.
*
* @param string $deployment
*/
public function setDeployment($deployment)
{
$this->deployment = $deployment;
}
/**
* @return string
*/
public function getDeployment()
{
return $this->deployment;
}
/**
* Optional. Whether to disable Pod overprovisioning. If Pod overprovisioning
* is disabled then Cloud Deploy will limit the number of total Pods used for
* the deployment strategy to the number of Pods the Deployment has on the
* cluster.
*
* @param bool $disablePodOverprovisioning
*/
public function setDisablePodOverprovisioning($disablePodOverprovisioning)
{
$this->disablePodOverprovisioning = $disablePodOverprovisioning;
}
/**
* @return bool
*/
public function getDisablePodOverprovisioning()
{
return $this->disablePodOverprovisioning;
}
/**
* Optional. The label to use when selecting Pods for the Deployment resource.
* This label must already be present in the Deployment.
*
* @param string $podSelectorLabel
*/
public function setPodSelectorLabel($podSelectorLabel)
{
$this->podSelectorLabel = $podSelectorLabel;
}
/**
* @return string
*/
public function getPodSelectorLabel()
{
return $this->podSelectorLabel;
}
/**
* Required. Name of the Kubernetes Service.
*
* @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(ServiceNetworking::class, 'Google_Service_CloudDeploy_ServiceNetworking');
@@ -1,72 +0,0 @@
<?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 SetIamPolicyRequest extends \Google\Model
{
protected $policyType = Policy::class;
protected $policyDataType = '';
/**
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used: `paths: "bindings, etag"`
*
* @var string
*/
public $updateMask;
/**
* REQUIRED: The complete policy to be applied to the `resource`. The size of
* the policy is limited to a few 10s of KB. An empty policy is a valid policy
* but certain Google Cloud services (such as Projects) might reject them.
*
* @param Policy $policy
*/
public function setPolicy(Policy $policy)
{
$this->policy = $policy;
}
/**
* @return Policy
*/
public function getPolicy()
{
return $this->policy;
}
/**
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used: `paths: "bindings, etag"`
*
* @param string $updateMask
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SetIamPolicyRequest::class, 'Google_Service_CloudDeploy_SetIamPolicyRequest');
@@ -1,96 +0,0 @@
<?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 SkaffoldGCBRepoSource extends \Google\Model
{
/**
* Optional. Relative path from the repository root to the Skaffold Config
* file.
*
* @var string
*/
public $path;
/**
* Optional. Branch or tag to use when cloning the repository.
*
* @var string
*/
public $ref;
/**
* Required. Name of the Cloud Build V2 Repository. Format is projects/{projec
* t}/locations/{location}/connections/{connection}/repositories/{repository}.
*
* @var string
*/
public $repository;
/**
* Optional. Relative path from the repository root to the Skaffold Config
* file.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* Optional. Branch or tag to use when cloning the repository.
*
* @param string $ref
*/
public function setRef($ref)
{
$this->ref = $ref;
}
/**
* @return string
*/
public function getRef()
{
return $this->ref;
}
/**
* Required. Name of the Cloud Build V2 Repository. Format is projects/{projec
* t}/locations/{location}/connections/{connection}/repositories/{repository}.
*
* @param string $repository
*/
public function setRepository($repository)
{
$this->repository = $repository;
}
/**
* @return string
*/
public function getRepository()
{
return $this->repository;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SkaffoldGCBRepoSource::class, 'Google_Service_CloudDeploy_SkaffoldGCBRepoSource');
@@ -1,74 +0,0 @@
<?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 SkaffoldGCSSource extends \Google\Model
{
/**
* Optional. Relative path from the source to the Skaffold file.
*
* @var string
*/
public $path;
/**
* Required. Cloud Storage source paths to copy recursively. For example,
* providing "gs://my-bucket/dir/configs" will result in Skaffold copying all
* files within the "dir/configs" directory in the bucket "my-bucket".
*
* @var string
*/
public $source;
/**
* Optional. Relative path from the source to the Skaffold file.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* Required. Cloud Storage source paths to copy recursively. For example,
* providing "gs://my-bucket/dir/configs" will result in Skaffold copying all
* files within the "dir/configs" directory in the bucket "my-bucket".
*
* @param string $source
*/
public function setSource($source)
{
$this->source = $source;
}
/**
* @return string
*/
public function getSource()
{
return $this->source;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SkaffoldGCSSource::class, 'Google_Service_CloudDeploy_SkaffoldGCSSource');
@@ -1,92 +0,0 @@
<?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 SkaffoldGitSource extends \Google\Model
{
/**
* Optional. Relative path from the repository root to the Skaffold file.
*
* @var string
*/
public $path;
/**
* Optional. Git branch or tag to use when cloning the repository.
*
* @var string
*/
public $ref;
/**
* Required. Git repository the package should be cloned from.
*
* @var string
*/
public $repo;
/**
* Optional. Relative path from the repository root to the Skaffold file.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* Optional. Git branch or tag to use when cloning the repository.
*
* @param string $ref
*/
public function setRef($ref)
{
$this->ref = $ref;
}
/**
* @return string
*/
public function getRef()
{
return $this->ref;
}
/**
* Required. Git repository the package should be cloned from.
*
* @param string $repo
*/
public function setRepo($repo)
{
$this->repo = $repo;
}
/**
* @return string
*/
public function getRepo()
{
return $this->repo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SkaffoldGitSource::class, 'Google_Service_CloudDeploy_SkaffoldGitSource');
@@ -1,103 +0,0 @@
<?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 SkaffoldModules extends \Google\Collection
{
protected $collection_key = 'configs';
/**
* Optional. The Skaffold Config modules to use from the specified source.
*
* @var string[]
*/
public $configs;
protected $gitType = SkaffoldGitSource::class;
protected $gitDataType = '';
protected $googleCloudBuildRepoType = SkaffoldGCBRepoSource::class;
protected $googleCloudBuildRepoDataType = '';
protected $googleCloudStorageType = SkaffoldGCSSource::class;
protected $googleCloudStorageDataType = '';
/**
* Optional. The Skaffold Config modules to use from the specified source.
*
* @param string[] $configs
*/
public function setConfigs($configs)
{
$this->configs = $configs;
}
/**
* @return string[]
*/
public function getConfigs()
{
return $this->configs;
}
/**
* Optional. Remote git repository containing the Skaffold Config modules.
*
* @param SkaffoldGitSource $git
*/
public function setGit(SkaffoldGitSource $git)
{
$this->git = $git;
}
/**
* @return SkaffoldGitSource
*/
public function getGit()
{
return $this->git;
}
/**
* Optional. Cloud Build V2 repository containing the Skaffold Config modules.
*
* @param SkaffoldGCBRepoSource $googleCloudBuildRepo
*/
public function setGoogleCloudBuildRepo(SkaffoldGCBRepoSource $googleCloudBuildRepo)
{
$this->googleCloudBuildRepo = $googleCloudBuildRepo;
}
/**
* @return SkaffoldGCBRepoSource
*/
public function getGoogleCloudBuildRepo()
{
return $this->googleCloudBuildRepo;
}
/**
* Optional. Cloud Storage bucket containing the Skaffold Config modules.
*
* @param SkaffoldGCSSource $googleCloudStorage
*/
public function setGoogleCloudStorage(SkaffoldGCSSource $googleCloudStorage)
{
$this->googleCloudStorage = $googleCloudStorage;
}
/**
* @return SkaffoldGCSSource
*/
public function getGoogleCloudStorage()
{
return $this->googleCloudStorage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SkaffoldModules::class, 'Google_Service_CloudDeploy_SkaffoldModules');
@@ -1,138 +0,0 @@
<?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 SkaffoldSupportedCondition extends \Google\Model
{
/**
* Default value. This value is unused.
*/
public const SKAFFOLD_SUPPORT_STATE_SKAFFOLD_SUPPORT_STATE_UNSPECIFIED = 'SKAFFOLD_SUPPORT_STATE_UNSPECIFIED';
/**
* This Skaffold version is currently supported.
*/
public const SKAFFOLD_SUPPORT_STATE_SKAFFOLD_SUPPORT_STATE_SUPPORTED = 'SKAFFOLD_SUPPORT_STATE_SUPPORTED';
/**
* This Skaffold version is in maintenance mode.
*/
public const SKAFFOLD_SUPPORT_STATE_SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE = 'SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE';
/**
* This Skaffold version is no longer supported.
*/
public const SKAFFOLD_SUPPORT_STATE_SKAFFOLD_SUPPORT_STATE_UNSUPPORTED = 'SKAFFOLD_SUPPORT_STATE_UNSUPPORTED';
/**
* The time at which this release's version of Skaffold will enter maintenance
* mode.
*
* @var string
*/
public $maintenanceModeTime;
/**
* The Skaffold support state for this release's version of Skaffold.
*
* @var string
*/
public $skaffoldSupportState;
/**
* True if the version of Skaffold used by this release is supported.
*
* @var bool
*/
public $status;
/**
* The time at which this release's version of Skaffold will no longer be
* supported.
*
* @var string
*/
public $supportExpirationTime;
/**
* The time at which this release's version of Skaffold will enter maintenance
* mode.
*
* @param string $maintenanceModeTime
*/
public function setMaintenanceModeTime($maintenanceModeTime)
{
$this->maintenanceModeTime = $maintenanceModeTime;
}
/**
* @return string
*/
public function getMaintenanceModeTime()
{
return $this->maintenanceModeTime;
}
/**
* The Skaffold support state for this release's version of Skaffold.
*
* Accepted values: SKAFFOLD_SUPPORT_STATE_UNSPECIFIED,
* SKAFFOLD_SUPPORT_STATE_SUPPORTED, SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE,
* SKAFFOLD_SUPPORT_STATE_UNSUPPORTED
*
* @param self::SKAFFOLD_SUPPORT_STATE_* $skaffoldSupportState
*/
public function setSkaffoldSupportState($skaffoldSupportState)
{
$this->skaffoldSupportState = $skaffoldSupportState;
}
/**
* @return self::SKAFFOLD_SUPPORT_STATE_*
*/
public function getSkaffoldSupportState()
{
return $this->skaffoldSupportState;
}
/**
* True if the version of Skaffold used by this release is supported.
*
* @param bool $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return bool
*/
public function getStatus()
{
return $this->status;
}
/**
* The time at which this release's version of Skaffold will no longer be
* supported.
*
* @param string $supportExpirationTime
*/
public function setSupportExpirationTime($supportExpirationTime)
{
$this->supportExpirationTime = $supportExpirationTime;
}
/**
* @return string
*/
public function getSupportExpirationTime()
{
return $this->supportExpirationTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SkaffoldSupportedCondition::class, 'Google_Service_CloudDeploy_SkaffoldSupportedCondition');
@@ -1,110 +0,0 @@
<?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 SkaffoldVersion extends \Google\Model
{
/**
* The time at which this version of Skaffold will enter maintenance mode.
*
* @var string
*/
public $maintenanceModeTime;
protected $supportEndDateType = Date::class;
protected $supportEndDateDataType = '';
/**
* The time at which this version of Skaffold will no longer be supported.
*
* @var string
*/
public $supportExpirationTime;
/**
* Release version number. For example, "1.20.3".
*
* @var string
*/
public $version;
/**
* The time at which this version of Skaffold will enter maintenance mode.
*
* @param string $maintenanceModeTime
*/
public function setMaintenanceModeTime($maintenanceModeTime)
{
$this->maintenanceModeTime = $maintenanceModeTime;
}
/**
* @return string
*/
public function getMaintenanceModeTime()
{
return $this->maintenanceModeTime;
}
/**
* Date when this version is expected to no longer be supported.
*
* @param Date $supportEndDate
*/
public function setSupportEndDate(Date $supportEndDate)
{
$this->supportEndDate = $supportEndDate;
}
/**
* @return Date
*/
public function getSupportEndDate()
{
return $this->supportEndDate;
}
/**
* The time at which this version of Skaffold will no longer be supported.
*
* @param string $supportExpirationTime
*/
public function setSupportExpirationTime($supportExpirationTime)
{
$this->supportExpirationTime = $supportExpirationTime;
}
/**
* @return string
*/
public function getSupportExpirationTime()
{
return $this->supportExpirationTime;
}
/**
* Release version number. For example, "1.20.3".
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SkaffoldVersion::class, 'Google_Service_CloudDeploy_SkaffoldVersion');
@@ -1,119 +0,0 @@
<?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 Stage extends \Google\Collection
{
protected $collection_key = 'profiles';
protected $deployParametersType = DeployParameters::class;
protected $deployParametersDataType = 'array';
/**
* Optional. Skaffold profiles to use when rendering the manifest for this
* stage's `Target`.
*
* @var string[]
*/
public $profiles;
protected $strategyType = Strategy::class;
protected $strategyDataType = '';
/**
* Optional. The target_id to which this stage points. This field refers
* exclusively to the last segment of a target name. For example, this field
* would just be `my-target` (rather than
* `projects/project/locations/location/targets/my-target`). The location of
* the `Target` is inferred to be the same as the location of the
* `DeliveryPipeline` that contains this `Stage`.
*
* @var string
*/
public $targetId;
/**
* Optional. The deploy parameters to use for the target in this stage.
*
* @param DeployParameters[] $deployParameters
*/
public function setDeployParameters($deployParameters)
{
$this->deployParameters = $deployParameters;
}
/**
* @return DeployParameters[]
*/
public function getDeployParameters()
{
return $this->deployParameters;
}
/**
* Optional. Skaffold profiles to use when rendering the manifest for this
* stage's `Target`.
*
* @param string[] $profiles
*/
public function setProfiles($profiles)
{
$this->profiles = $profiles;
}
/**
* @return string[]
*/
public function getProfiles()
{
return $this->profiles;
}
/**
* Optional. The strategy to use for a `Rollout` to this stage.
*
* @param Strategy $strategy
*/
public function setStrategy(Strategy $strategy)
{
$this->strategy = $strategy;
}
/**
* @return Strategy
*/
public function getStrategy()
{
return $this->strategy;
}
/**
* Optional. The target_id to which this stage points. This field refers
* exclusively to the last segment of a target name. For example, this field
* would just be `my-target` (rather than
* `projects/project/locations/location/targets/my-target`). The location of
* the `Target` is inferred to be the same as the location of the
* `DeliveryPipeline` that contains this `Stage`.
*
* @param string $targetId
*/
public function setTargetId($targetId)
{
$this->targetId = $targetId;
}
/**
* @return string
*/
public function getTargetId()
{
return $this->targetId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Stage::class, 'Google_Service_CloudDeploy_Stage');
@@ -1,124 +0,0 @@
<?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 Standard extends \Google\Model
{
protected $analysisType = Analysis::class;
protected $analysisDataType = '';
protected $postdeployType = Postdeploy::class;
protected $postdeployDataType = '';
protected $predeployType = Predeploy::class;
protected $predeployDataType = '';
/**
* Optional. Whether to verify a deployment via `skaffold verify`.
*
* @var bool
*/
public $verify;
protected $verifyConfigType = Verify::class;
protected $verifyConfigDataType = '';
/**
* Optional. Configuration for the analysis job. If this is not configured,
* the analysis job will not be present.
*
* @param Analysis $analysis
*/
public function setAnalysis(Analysis $analysis)
{
$this->analysis = $analysis;
}
/**
* @return Analysis
*/
public function getAnalysis()
{
return $this->analysis;
}
/**
* Optional. Configuration for the postdeploy job. If this is not configured,
* the postdeploy job will not be present.
*
* @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. If this is not configured,
* the predeploy job will not be present.
*
* @param Predeploy $predeploy
*/
public function setPredeploy(Predeploy $predeploy)
{
$this->predeploy = $predeploy;
}
/**
* @return Predeploy
*/
public function getPredeploy()
{
return $this->predeploy;
}
/**
* Optional. Whether to verify a 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(Standard::class, 'Google_Service_CloudDeploy_Standard');
@@ -1,99 +0,0 @@
<?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 Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @var int
*/
public $code;
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @var array[]
*/
public $details;
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @var string
*/
public $message;
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @param int $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @param array[] $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_CloudDeploy_Status');
@@ -1,64 +0,0 @@
<?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 Strategy extends \Google\Model
{
protected $canaryType = Canary::class;
protected $canaryDataType = '';
protected $standardType = Standard::class;
protected $standardDataType = '';
/**
* Optional. Canary deployment strategy provides progressive percentage based
* deployments to a Target.
*
* @param Canary $canary
*/
public function setCanary(Canary $canary)
{
$this->canary = $canary;
}
/**
* @return Canary
*/
public function getCanary()
{
return $this->canary;
}
/**
* Optional. Standard deployment strategy executes a single deploy and allows
* verifying the deployment.
*
* @param Standard $standard
*/
public function setStandard(Standard $standard)
{
$this->standard = $standard;
}
/**
* @return Standard
*/
public function getStandard()
{
return $this->standard;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Strategy::class, 'Google_Service_CloudDeploy_Strategy');
@@ -1,435 +0,0 @@
<?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 Target extends \Google\Collection
{
protected $collection_key = 'executionConfigs';
/**
* 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;
protected $anthosClusterType = AnthosCluster::class;
protected $anthosClusterDataType = '';
protected $associatedEntitiesType = AssociatedEntities::class;
protected $associatedEntitiesDataType = 'map';
/**
* Output only. Time at which the `Target` was created.
*
* @var string
*/
public $createTime;
protected $customTargetType = CustomTarget::class;
protected $customTargetDataType = '';
/**
* Optional. The deploy parameters to use for this target.
*
* @var string[]
*/
public $deployParameters;
/**
* Optional. Description of the `Target`. 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;
protected $executionConfigsType = ExecutionConfig::class;
protected $executionConfigsDataType = 'array';
protected $gkeType = GkeCluster::class;
protected $gkeDataType = '';
/**
* 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;
protected $multiTargetType = MultiTarget::class;
protected $multiTargetDataType = '';
/**
* Identifier. Name of the `Target`. Format is
* `projects/{project}/locations/{location}/targets/{target}`. The `target`
* component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* @var string
*/
public $name;
/**
* Optional. Whether or not the `Target` requires approval.
*
* @var bool
*/
public $requireApproval;
protected $runType = CloudRunLocation::class;
protected $runDataType = '';
/**
* Output only. Resource id of the `Target`.
*
* @var string
*/
public $targetId;
/**
* Output only. Unique identifier of the `Target`.
*
* @var string
*/
public $uid;
/**
* Output only. Most recent time at which the `Target` 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;
}
/**
* Optional. Information specifying an Anthos Cluster.
*
* @param AnthosCluster $anthosCluster
*/
public function setAnthosCluster(AnthosCluster $anthosCluster)
{
$this->anthosCluster = $anthosCluster;
}
/**
* @return AnthosCluster
*/
public function getAnthosCluster()
{
return $this->anthosCluster;
}
/**
* Optional. Map of entity IDs to their associated entities. Associated
* entities allows specifying places other than the deployment target for
* specific features. For example, the Gateway API canary can be configured to
* deploy the HTTPRoute to a different cluster(s) than the deployment cluster
* using associated entities. An entity ID 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 AssociatedEntities[] $associatedEntities
*/
public function setAssociatedEntities($associatedEntities)
{
$this->associatedEntities = $associatedEntities;
}
/**
* @return AssociatedEntities[]
*/
public function getAssociatedEntities()
{
return $this->associatedEntities;
}
/**
* Output only. Time at which the `Target` was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. Information specifying a Custom Target.
*
* @param CustomTarget $customTarget
*/
public function setCustomTarget(CustomTarget $customTarget)
{
$this->customTarget = $customTarget;
}
/**
* @return CustomTarget
*/
public function getCustomTarget()
{
return $this->customTarget;
}
/**
* Optional. The deploy parameters to use for this target.
*
* @param string[] $deployParameters
*/
public function setDeployParameters($deployParameters)
{
$this->deployParameters = $deployParameters;
}
/**
* @return string[]
*/
public function getDeployParameters()
{
return $this->deployParameters;
}
/**
* Optional. Description of the `Target`. 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. Configurations for all execution that relates to this `Target`.
* Each `ExecutionEnvironmentUsage` value may only be used in a single
* configuration; using the same value multiple times is an error. When one or
* more configurations are specified, they must include the `RENDER` and
* `DEPLOY` `ExecutionEnvironmentUsage` values. When no configurations are
* specified, execution will use the default specified in `DefaultPool`.
*
* @param ExecutionConfig[] $executionConfigs
*/
public function setExecutionConfigs($executionConfigs)
{
$this->executionConfigs = $executionConfigs;
}
/**
* @return ExecutionConfig[]
*/
public function getExecutionConfigs()
{
return $this->executionConfigs;
}
/**
* Optional. Information specifying a GKE Cluster.
*
* @param GkeCluster $gke
*/
public function setGke(GkeCluster $gke)
{
$this->gke = $gke;
}
/**
* @return GkeCluster
*/
public function getGke()
{
return $this->gke;
}
/**
* 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;
}
/**
* Optional. Information specifying a multiTarget.
*
* @param MultiTarget $multiTarget
*/
public function setMultiTarget(MultiTarget $multiTarget)
{
$this->multiTarget = $multiTarget;
}
/**
* @return MultiTarget
*/
public function getMultiTarget()
{
return $this->multiTarget;
}
/**
* Identifier. Name of the `Target`. Format is
* `projects/{project}/locations/{location}/targets/{target}`. The `target`
* component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. Whether or not the `Target` requires approval.
*
* @param bool $requireApproval
*/
public function setRequireApproval($requireApproval)
{
$this->requireApproval = $requireApproval;
}
/**
* @return bool
*/
public function getRequireApproval()
{
return $this->requireApproval;
}
/**
* Optional. Information specifying a Cloud Run deployment target.
*
* @param CloudRunLocation $run
*/
public function setRun(CloudRunLocation $run)
{
$this->run = $run;
}
/**
* @return CloudRunLocation
*/
public function getRun()
{
return $this->run;
}
/**
* Output only. Resource id of the `Target`.
*
* @param string $targetId
*/
public function setTargetId($targetId)
{
$this->targetId = $targetId;
}
/**
* @return string
*/
public function getTargetId()
{
return $this->targetId;
}
/**
* Output only. Unique identifier of the `Target`.
*
* @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 `Target` 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(Target::class, 'Google_Service_CloudDeploy_Target');
@@ -1,118 +0,0 @@
<?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 TargetArtifact extends \Google\Model
{
/**
* Output only. URI of a directory containing the artifacts. This contains
* deployment configuration used by Skaffold during a rollout, and all paths
* are relative to this location.
*
* @var string
*/
public $artifactUri;
/**
* Output only. File path of the rendered manifest relative to the URI for the
* stable phase.
*
* @var string
*/
public $manifestPath;
protected $phaseArtifactsType = PhaseArtifact::class;
protected $phaseArtifactsDataType = 'map';
/**
* Output only. File path of the resolved Skaffold configuration for the
* stable phase, relative to the URI.
*
* @var string
*/
public $skaffoldConfigPath;
/**
* Output only. URI of a directory containing the artifacts. This contains
* deployment configuration used by Skaffold during a rollout, and all paths
* are relative to this location.
*
* @param string $artifactUri
*/
public function setArtifactUri($artifactUri)
{
$this->artifactUri = $artifactUri;
}
/**
* @return string
*/
public function getArtifactUri()
{
return $this->artifactUri;
}
/**
* Output only. File path of the rendered manifest relative to the URI for the
* stable phase.
*
* @param string $manifestPath
*/
public function setManifestPath($manifestPath)
{
$this->manifestPath = $manifestPath;
}
/**
* @return string
*/
public function getManifestPath()
{
return $this->manifestPath;
}
/**
* Output only. Map from the phase ID to the phase artifacts for the `Target`.
*
* @param PhaseArtifact[] $phaseArtifacts
*/
public function setPhaseArtifacts($phaseArtifacts)
{
$this->phaseArtifacts = $phaseArtifacts;
}
/**
* @return PhaseArtifact[]
*/
public function getPhaseArtifacts()
{
return $this->phaseArtifacts;
}
/**
* Output only. File path of the resolved Skaffold configuration for the
* stable phase, relative to the URI.
*
* @param string $skaffoldConfigPath
*/
public function setSkaffoldConfigPath($skaffoldConfigPath)
{
$this->skaffoldConfigPath = $skaffoldConfigPath;
}
/**
* @return string
*/
public function getSkaffoldConfigPath()
{
return $this->skaffoldConfigPath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TargetArtifact::class, 'Google_Service_CloudDeploy_TargetArtifact');
@@ -1,74 +0,0 @@
<?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 TargetAttribute extends \Google\Model
{
/**
* Optional. ID of the `Target`. The value of this field could be one of the
* following: * The last segment of a target name * "*", all targets in a
* location
*
* @var string
*/
public $id;
/**
* Target labels.
*
* @var string[]
*/
public $labels;
/**
* Optional. ID of the `Target`. The value of this field could be one of the
* following: * The last segment of a target name * "*", all targets in a
* location
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Target 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(TargetAttribute::class, 'Google_Service_CloudDeploy_TargetAttribute');
@@ -1,135 +0,0 @@
<?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 TargetNotificationEvent 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';
/**
* Debug message for when a notification fails to send.
*
* @var string
*/
public $message;
/**
* The name of the `Target`.
*
* @var string
*/
public $target;
/**
* Type of this notification, e.g. for a Pub/Sub failure.
*
* @var string
*/
public $type;
/**
* 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;
}
/**
* The name of the `Target`.
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* 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(TargetNotificationEvent::class, 'Google_Service_CloudDeploy_TargetNotificationEvent');
@@ -1,202 +0,0 @@
<?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 TargetRender 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 render operation did not complete successfully; check Cloud Build logs.
*/
public const FAILURE_CAUSE_EXECUTION_FAILED = 'EXECUTION_FAILED';
/**
* 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 render operation did not complete successfully because the verification
* stanza required for verify was not found on the Skaffold configuration.
*/
public const FAILURE_CAUSE_VERIFICATION_CONFIG_NOT_FOUND = 'VERIFICATION_CONFIG_NOT_FOUND';
/**
* The render operation did not complete successfully because the custom
* action(s) required for Rollout jobs were not found in the Skaffold
* configuration. See failure_message for additional details.
*/
public const FAILURE_CAUSE_CUSTOM_ACTION_NOT_FOUND = 'CUSTOM_ACTION_NOT_FOUND';
/**
* Release failed during rendering because the release configuration is not
* supported with the specified deployment strategy.
*/
public const FAILURE_CAUSE_DEPLOYMENT_STRATEGY_NOT_SUPPORTED = 'DEPLOYMENT_STRATEGY_NOT_SUPPORTED';
/**
* The render operation had a feature configured that is not supported.
*/
public const FAILURE_CAUSE_RENDER_FEATURE_NOT_SUPPORTED = 'RENDER_FEATURE_NOT_SUPPORTED';
/**
* The render operation state is unspecified.
*/
public const RENDERING_STATE_TARGET_RENDER_STATE_UNSPECIFIED = 'TARGET_RENDER_STATE_UNSPECIFIED';
/**
* The render operation has completed successfully.
*/
public const RENDERING_STATE_SUCCEEDED = 'SUCCEEDED';
/**
* The render operation has failed.
*/
public const RENDERING_STATE_FAILED = 'FAILED';
/**
* The render operation is in progress.
*/
public const RENDERING_STATE_IN_PROGRESS = 'IN_PROGRESS';
/**
* Output only. Reason this render failed. This will always be unspecified
* while the render in progress.
*
* @var string
*/
public $failureCause;
/**
* Output only. Additional information about the render failure, if available.
*
* @var string
*/
public $failureMessage;
protected $metadataType = RenderMetadata::class;
protected $metadataDataType = '';
/**
* Output only. The resource name of the Cloud Build `Build` object that is
* used to render the manifest for this target. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
* @var string
*/
public $renderingBuild;
/**
* Output only. Current state of the render operation for this Target.
*
* @var string
*/
public $renderingState;
/**
* Output only. Reason this render failed. This will always be unspecified
* while the render in progress.
*
* Accepted values: FAILURE_CAUSE_UNSPECIFIED, CLOUD_BUILD_UNAVAILABLE,
* EXECUTION_FAILED, CLOUD_BUILD_REQUEST_FAILED,
* VERIFICATION_CONFIG_NOT_FOUND, CUSTOM_ACTION_NOT_FOUND,
* DEPLOYMENT_STRATEGY_NOT_SUPPORTED, RENDER_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 render failure, if available.
*
* @param string $failureMessage
*/
public function setFailureMessage($failureMessage)
{
$this->failureMessage = $failureMessage;
}
/**
* @return string
*/
public function getFailureMessage()
{
return $this->failureMessage;
}
/**
* Output only. Metadata related to the `Release` render for this Target.
*
* @param RenderMetadata $metadata
*/
public function setMetadata(RenderMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return RenderMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Output only. The resource name of the Cloud Build `Build` object that is
* used to render the manifest for this target. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
* @param string $renderingBuild
*/
public function setRenderingBuild($renderingBuild)
{
$this->renderingBuild = $renderingBuild;
}
/**
* @return string
*/
public function getRenderingBuild()
{
return $this->renderingBuild;
}
/**
* Output only. Current state of the render operation for this Target.
*
* Accepted values: TARGET_RENDER_STATE_UNSPECIFIED, SUCCEEDED, FAILED,
* IN_PROGRESS
*
* @param self::RENDERING_STATE_* $renderingState
*/
public function setRenderingState($renderingState)
{
$this->renderingState = $renderingState;
}
/**
* @return self::RENDERING_STATE_*
*/
public function getRenderingState()
{
return $this->renderingState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TargetRender::class, 'Google_Service_CloudDeploy_TargetRender');
@@ -1,70 +0,0 @@
<?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 Targets extends \Google\Model
{
/**
* Optional. The destination target ID.
*
* @var string
*/
public $destinationTargetId;
/**
* Optional. The source target ID.
*
* @var string
*/
public $sourceTargetId;
/**
* Optional. The destination target ID.
*
* @param string $destinationTargetId
*/
public function setDestinationTargetId($destinationTargetId)
{
$this->destinationTargetId = $destinationTargetId;
}
/**
* @return string
*/
public function getDestinationTargetId()
{
return $this->destinationTargetId;
}
/**
* Optional. The source target ID.
*
* @param string $sourceTargetId
*/
public function setSourceTargetId($sourceTargetId)
{
$this->sourceTargetId = $sourceTargetId;
}
/**
* @return string
*/
public function getSourceTargetId()
{
return $this->sourceTargetId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Targets::class, 'Google_Service_CloudDeploy_Targets');
@@ -1,95 +0,0 @@
<?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 TargetsPresentCondition extends \Google\Collection
{
protected $collection_key = 'missingTargets';
/**
* The list of Target names that do not exist. For example,
* `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
*
* @var string[]
*/
public $missingTargets;
/**
* True if there aren't any missing Targets.
*
* @var bool
*/
public $status;
/**
* Last time the condition was updated.
*
* @var string
*/
public $updateTime;
/**
* The list of Target names that do not exist. For example,
* `projects/{project_id}/locations/{location_name}/targets/{target_name}`.
*
* @param string[] $missingTargets
*/
public function setMissingTargets($missingTargets)
{
$this->missingTargets = $missingTargets;
}
/**
* @return string[]
*/
public function getMissingTargets()
{
return $this->missingTargets;
}
/**
* True if there aren't any missing Targets.
*
* @param bool $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return bool
*/
public function getStatus()
{
return $this->status;
}
/**
* Last time the condition 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(TargetsPresentCondition::class, 'Google_Service_CloudDeploy_TargetsPresentCondition');
@@ -1,74 +0,0 @@
<?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 TargetsTypeCondition extends \Google\Model
{
/**
* Human readable error message.
*
* @var string
*/
public $errorDetails;
/**
* True if the targets are all a comparable type. For example this is true if
* all targets are GKE clusters. This is false if some targets are Cloud Run
* targets and others are GKE clusters.
*
* @var bool
*/
public $status;
/**
* Human readable error message.
*
* @param string $errorDetails
*/
public function setErrorDetails($errorDetails)
{
$this->errorDetails = $errorDetails;
}
/**
* @return string
*/
public function getErrorDetails()
{
return $this->errorDetails;
}
/**
* True if the targets are all a comparable type. For example this is true if
* all targets are GKE clusters. This is false if some targets are Cloud Run
* targets and others are GKE clusters.
*
* @param bool $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return bool
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TargetsTypeCondition::class, 'Google_Service_CloudDeploy_TargetsTypeCondition');
@@ -1,45 +0,0 @@
<?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 Task extends \Google\Model
{
protected $containerType = ContainerTask::class;
protected $containerDataType = '';
/**
* Optional. This task is represented by a container that is executed in the
* Cloud Build execution environment.
*
* @param ContainerTask $container
*/
public function setContainer(ContainerTask $container)
{
$this->container = $container;
}
/**
* @return ContainerTask
*/
public function getContainer()
{
return $this->container;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Task::class, 'Google_Service_CloudDeploy_Task');
@@ -1,51 +0,0 @@
<?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 TerminateJobRunRequest 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(TerminateJobRunRequest::class, 'Google_Service_CloudDeploy_TerminateJobRunRequest');
@@ -1,25 +0,0 @@
<?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 TerminateJobRunResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TerminateJobRunResponse::class, 'Google_Service_CloudDeploy_TerminateJobRunResponse');
@@ -1,55 +0,0 @@
<?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 TestIamPermissionsRequest extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* The set of permissions to check for the `resource`. Permissions with
* wildcards (such as `*` or `storage.*`) are not allowed. For more
* information see [IAM
* Overview](https://cloud.google.com/iam/docs/overview#permissions).
*
* @var string[]
*/
public $permissions;
/**
* The set of permissions to check for the `resource`. Permissions with
* wildcards (such as `*` or `storage.*`) are not allowed. For more
* information see [IAM
* Overview](https://cloud.google.com/iam/docs/overview#permissions).
*
* @param string[] $permissions
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return string[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestIamPermissionsRequest::class, 'Google_Service_CloudDeploy_TestIamPermissionsRequest');
@@ -1,51 +0,0 @@
<?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 TestIamPermissionsResponse extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* A subset of `TestPermissionsRequest.permissions` that the caller is
* allowed.
*
* @var string[]
*/
public $permissions;
/**
* A subset of `TestPermissionsRequest.permissions` that the caller is
* allowed.
*
* @param string[] $permissions
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return string[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestIamPermissionsResponse::class, 'Google_Service_CloudDeploy_TestIamPermissionsResponse');
@@ -1,126 +0,0 @@
<?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 TimeOfDay extends \Google\Model
{
/**
* Hours of a day in 24 hour format. Must be greater than or equal to 0 and
* typically must be less than or equal to 23. An API may choose to allow the
* value "24:00:00" for scenarios like business closing time.
*
* @var int
*/
public $hours;
/**
* Minutes of an hour. Must be greater than or equal to 0 and less than or
* equal to 59.
*
* @var int
*/
public $minutes;
/**
* Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
* and less than or equal to 999,999,999.
*
* @var int
*/
public $nanos;
/**
* Seconds of a minute. Must be greater than or equal to 0 and typically must
* be less than or equal to 59. An API may allow the value 60 if it allows
* leap-seconds.
*
* @var int
*/
public $seconds;
/**
* Hours of a day in 24 hour format. Must be greater than or equal to 0 and
* typically must be less than or equal to 23. An API may choose to allow the
* value "24:00:00" for scenarios like business closing time.
*
* @param int $hours
*/
public function setHours($hours)
{
$this->hours = $hours;
}
/**
* @return int
*/
public function getHours()
{
return $this->hours;
}
/**
* Minutes of an hour. Must be greater than or equal to 0 and less than or
* equal to 59.
*
* @param int $minutes
*/
public function setMinutes($minutes)
{
$this->minutes = $minutes;
}
/**
* @return int
*/
public function getMinutes()
{
return $this->minutes;
}
/**
* Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
* and less than or equal to 999,999,999.
*
* @param int $nanos
*/
public function setNanos($nanos)
{
$this->nanos = $nanos;
}
/**
* @return int
*/
public function getNanos()
{
return $this->nanos;
}
/**
* Seconds of a minute. Must be greater than or equal to 0 and typically must
* be less than or equal to 59. An API may allow the value 60 if it allows
* leap-seconds.
*
* @param int $seconds
*/
public function setSeconds($seconds)
{
$this->seconds = $seconds;
}
/**
* @return int
*/
public function getSeconds()
{
return $this->seconds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TimeOfDay::class, 'Google_Service_CloudDeploy_TimeOfDay');
@@ -1,87 +0,0 @@
<?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 TimeWindows extends \Google\Collection
{
protected $collection_key = 'weeklyWindows';
protected $oneTimeWindowsType = OneTimeWindow::class;
protected $oneTimeWindowsDataType = 'array';
/**
* Required. The time zone in IANA format [IANA Time Zone
* Database](https://www.iana.org/time-zones) (e.g. America/New_York).
*
* @var string
*/
public $timeZone;
protected $weeklyWindowsType = WeeklyWindow::class;
protected $weeklyWindowsDataType = 'array';
/**
* Optional. One-time windows within which actions are restricted.
*
* @param OneTimeWindow[] $oneTimeWindows
*/
public function setOneTimeWindows($oneTimeWindows)
{
$this->oneTimeWindows = $oneTimeWindows;
}
/**
* @return OneTimeWindow[]
*/
public function getOneTimeWindows()
{
return $this->oneTimeWindows;
}
/**
* Required. The time zone in IANA format [IANA Time Zone
* Database](https://www.iana.org/time-zones) (e.g. America/New_York).
*
* @param string $timeZone
*/
public function setTimeZone($timeZone)
{
$this->timeZone = $timeZone;
}
/**
* @return string
*/
public function getTimeZone()
{
return $this->timeZone;
}
/**
* Optional. Recurring weekly windows within which actions are restricted.
*
* @param WeeklyWindow[] $weeklyWindows
*/
public function setWeeklyWindows($weeklyWindows)
{
$this->weeklyWindows = $weeklyWindows;
}
/**
* @return WeeklyWindow[]
*/
public function getWeeklyWindows()
{
return $this->weeklyWindows;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TimeWindows::class, 'Google_Service_CloudDeploy_TimeWindows');
@@ -1,67 +0,0 @@
<?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 TimedPromoteReleaseCondition extends \Google\Collection
{
protected $collection_key = 'targetsList';
/**
* Output only. When the next scheduled promotion(s) will occur.
*
* @var string
*/
public $nextPromotionTime;
protected $targetsListType = Targets::class;
protected $targetsListDataType = 'array';
/**
* Output only. When the next scheduled promotion(s) will occur.
*
* @param string $nextPromotionTime
*/
public function setNextPromotionTime($nextPromotionTime)
{
$this->nextPromotionTime = $nextPromotionTime;
}
/**
* @return string
*/
public function getNextPromotionTime()
{
return $this->nextPromotionTime;
}
/**
* Output only. A list of targets involved in the upcoming timed promotion(s).
*
* @param Targets[] $targetsList
*/
public function setTargetsList($targetsList)
{
$this->targetsList = $targetsList;
}
/**
* @return Targets[]
*/
public function getTargetsList()
{
return $this->targetsList;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TimedPromoteReleaseCondition::class, 'Google_Service_CloudDeploy_TimedPromoteReleaseCondition');
@@ -1,96 +0,0 @@
<?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 TimedPromoteReleaseOperation extends \Google\Model
{
/**
* Output only. The starting phase of the rollout created by this operation.
*
* @var string
*/
public $phase;
/**
* Output only. The name of the release to be promoted.
*
* @var string
*/
public $release;
/**
* Output only. The ID of the target that represents the promotion stage to
* which the release will be promoted. The value of this field is the last
* segment of a target name.
*
* @var string
*/
public $targetId;
/**
* Output only. The starting phase of the rollout created by this operation.
*
* @param string $phase
*/
public function setPhase($phase)
{
$this->phase = $phase;
}
/**
* @return string
*/
public function getPhase()
{
return $this->phase;
}
/**
* Output only. The name of the release to be promoted.
*
* @param string $release
*/
public function setRelease($release)
{
$this->release = $release;
}
/**
* @return string
*/
public function getRelease()
{
return $this->release;
}
/**
* Output only. The ID of the target that represents the promotion stage to
* which the release will be promoted. The value of this field is the last
* segment of a target name.
*
* @param string $targetId
*/
public function setTargetId($targetId)
{
$this->targetId = $targetId;
}
/**
* @return string
*/
public function getTargetId()
{
return $this->targetId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TimedPromoteReleaseOperation::class, 'Google_Service_CloudDeploy_TimedPromoteReleaseOperation');
@@ -1,172 +0,0 @@
<?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 TimedPromoteReleaseRule extends \Google\Model
{
protected $conditionType = AutomationRuleCondition::class;
protected $conditionDataType = '';
/**
* Optional. The starting phase of the rollout created by this rule. Default
* to the first phase.
*
* @var string
*/
public $destinationPhase;
/**
* Optional. The ID of the stage in the pipeline to which this `Release` is
* deploying. If unspecified, default it to the next stage in the promotion
* flow. The value of this field could be one of the following: * The last
* segment of a target name * "@next", the next target in the promotion
* sequence
*
* @var string
*/
public $destinationTargetId;
/**
* 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;
/**
* Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at
* 9am.
*
* @var string
*/
public $schedule;
/**
* Required. The time zone in IANA format [IANA Time Zone
* Database](https://www.iana.org/time-zones) (e.g. America/New_York).
*
* @var string
*/
public $timeZone;
/**
* 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;
}
/**
* Optional. The starting phase of the rollout created by this rule. Default
* to the first phase.
*
* @param string $destinationPhase
*/
public function setDestinationPhase($destinationPhase)
{
$this->destinationPhase = $destinationPhase;
}
/**
* @return string
*/
public function getDestinationPhase()
{
return $this->destinationPhase;
}
/**
* Optional. The ID of the stage in the pipeline to which this `Release` is
* deploying. If unspecified, default it to the next stage in the promotion
* flow. The value of this field could be one of the following: * The last
* segment of a target name * "@next", the next target in the promotion
* sequence
*
* @param string $destinationTargetId
*/
public function setDestinationTargetId($destinationTargetId)
{
$this->destinationTargetId = $destinationTargetId;
}
/**
* @return string
*/
public function getDestinationTargetId()
{
return $this->destinationTargetId;
}
/**
* 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;
}
/**
* Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at
* 9am.
*
* @param string $schedule
*/
public function setSchedule($schedule)
{
$this->schedule = $schedule;
}
/**
* @return string
*/
public function getSchedule()
{
return $this->schedule;
}
/**
* Required. The time zone in IANA format [IANA Time Zone
* Database](https://www.iana.org/time-zones) (e.g. America/New_York).
*
* @param string $timeZone
*/
public function setTimeZone($timeZone)
{
$this->timeZone = $timeZone;
}
/**
* @return string
*/
public function getTimeZone()
{
return $this->timeZone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TimedPromoteReleaseRule::class, 'Google_Service_CloudDeploy_TimedPromoteReleaseRule');
@@ -1,139 +0,0 @@
<?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 ToolVersionSupportedCondition extends \Google\Model
{
/**
* Default value. This value is unused.
*/
public const TOOL_VERSION_SUPPORT_STATE_TOOL_VERSION_SUPPORT_STATE_UNSPECIFIED = 'TOOL_VERSION_SUPPORT_STATE_UNSPECIFIED';
/**
* This tool version is currently supported.
*/
public const TOOL_VERSION_SUPPORT_STATE_TOOL_VERSION_SUPPORT_STATE_SUPPORTED = 'TOOL_VERSION_SUPPORT_STATE_SUPPORTED';
/**
* This tool version is in maintenance mode.
*/
public const TOOL_VERSION_SUPPORT_STATE_TOOL_VERSION_SUPPORT_STATE_MAINTENANCE_MODE = 'TOOL_VERSION_SUPPORT_STATE_MAINTENANCE_MODE';
/**
* This tool version is no longer supported.
*/
public const TOOL_VERSION_SUPPORT_STATE_TOOL_VERSION_SUPPORT_STATE_UNSUPPORTED = 'TOOL_VERSION_SUPPORT_STATE_UNSUPPORTED';
/**
* Output only. The time at which this release's version of the tool will
* enter maintenance mode.
*
* @var string
*/
public $maintenanceModeTime;
/**
* Output only. True if the version of Tool used by this release is supported.
*
* @var bool
*/
public $status;
/**
* Output only. The time at which this release's version of the tool will no
* longer be supported.
*
* @var string
*/
public $supportExpirationTime;
/**
* Output only. The tool support state for this release's version of the tool.
*
* @var string
*/
public $toolVersionSupportState;
/**
* Output only. The time at which this release's version of the tool will
* enter maintenance mode.
*
* @param string $maintenanceModeTime
*/
public function setMaintenanceModeTime($maintenanceModeTime)
{
$this->maintenanceModeTime = $maintenanceModeTime;
}
/**
* @return string
*/
public function getMaintenanceModeTime()
{
return $this->maintenanceModeTime;
}
/**
* Output only. True if the version of Tool used by this release is supported.
*
* @param bool $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return bool
*/
public function getStatus()
{
return $this->status;
}
/**
* Output only. The time at which this release's version of the tool will no
* longer be supported.
*
* @param string $supportExpirationTime
*/
public function setSupportExpirationTime($supportExpirationTime)
{
$this->supportExpirationTime = $supportExpirationTime;
}
/**
* @return string
*/
public function getSupportExpirationTime()
{
return $this->supportExpirationTime;
}
/**
* Output only. The tool support state for this release's version of the tool.
*
* Accepted values: TOOL_VERSION_SUPPORT_STATE_UNSPECIFIED,
* TOOL_VERSION_SUPPORT_STATE_SUPPORTED,
* TOOL_VERSION_SUPPORT_STATE_MAINTENANCE_MODE,
* TOOL_VERSION_SUPPORT_STATE_UNSUPPORTED
*
* @param self::TOOL_VERSION_SUPPORT_STATE_* $toolVersionSupportState
*/
public function setToolVersionSupportState($toolVersionSupportState)
{
$this->toolVersionSupportState = $toolVersionSupportState;
}
/**
* @return self::TOOL_VERSION_SUPPORT_STATE_*
*/
public function getToolVersionSupportState()
{
return $this->toolVersionSupportState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ToolVersionSupportedCondition::class, 'Google_Service_CloudDeploy_ToolVersionSupportedCondition');
@@ -1,158 +0,0 @@
<?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 ToolVersions extends \Google\Model
{
/**
* Optional. The Docker version to use for Cloud Deploy operations.
*
* @var string
*/
public $docker;
/**
* Optional. The Helm version to use for Cloud Deploy operations.
*
* @var string
*/
public $helm;
/**
* Optional. The kpt version to use for Cloud Deploy operations.
*
* @var string
*/
public $kpt;
/**
* Optional. The Kubectl version to use for Cloud Deploy operations.
*
* @var string
*/
public $kubectl;
/**
* Optional. The Kustomize version to use for Cloud Deploy operations.
*
* @var string
*/
public $kustomize;
/**
* Optional. The Skaffold version to use for Cloud Deploy operations.
*
* @var string
*/
public $skaffold;
/**
* Optional. The Docker version to use for Cloud Deploy operations.
*
* @param string $docker
*/
public function setDocker($docker)
{
$this->docker = $docker;
}
/**
* @return string
*/
public function getDocker()
{
return $this->docker;
}
/**
* Optional. The Helm version to use for Cloud Deploy operations.
*
* @param string $helm
*/
public function setHelm($helm)
{
$this->helm = $helm;
}
/**
* @return string
*/
public function getHelm()
{
return $this->helm;
}
/**
* Optional. The kpt version to use for Cloud Deploy operations.
*
* @param string $kpt
*/
public function setKpt($kpt)
{
$this->kpt = $kpt;
}
/**
* @return string
*/
public function getKpt()
{
return $this->kpt;
}
/**
* Optional. The Kubectl version to use for Cloud Deploy operations.
*
* @param string $kubectl
*/
public function setKubectl($kubectl)
{
$this->kubectl = $kubectl;
}
/**
* @return string
*/
public function getKubectl()
{
return $this->kubectl;
}
/**
* Optional. The Kustomize version to use for Cloud Deploy operations.
*
* @param string $kustomize
*/
public function setKustomize($kustomize)
{
$this->kustomize = $kustomize;
}
/**
* @return string
*/
public function getKustomize()
{
return $this->kustomize;
}
/**
* Optional. The Skaffold version to use for Cloud Deploy operations.
*
* @param string $skaffold
*/
public function setSkaffold($skaffold)
{
$this->skaffold = $skaffold;
}
/**
* @return string
*/
public function getSkaffold()
{
return $this->skaffold;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ToolVersions::class, 'Google_Service_CloudDeploy_ToolVersions');
@@ -1,46 +0,0 @@
<?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 Verify extends \Google\Collection
{
protected $collection_key = 'tasks';
protected $tasksType = Task::class;
protected $tasksDataType = 'array';
/**
* Optional. The tasks that will run as a part of the verify job. The tasks
* are executed sequentially in the order specified.
*
* @param Task[] $tasks
*/
public function setTasks($tasks)
{
$this->tasks = $tasks;
}
/**
* @return Task[]
*/
public function getTasks()
{
return $this->tasks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Verify::class, 'Google_Service_CloudDeploy_Verify');
@@ -1,45 +0,0 @@
<?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 VerifyJob extends \Google\Collection
{
protected $collection_key = 'tasks';
protected $tasksType = Task::class;
protected $tasksDataType = 'array';
/**
* Output only. The tasks that are executed as part of the verify Job.
*
* @param Task[] $tasks
*/
public function setTasks($tasks)
{
$this->tasks = $tasks;
}
/**
* @return Task[]
*/
public function getTasks()
{
return $this->tasks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VerifyJob::class, 'Google_Service_CloudDeploy_VerifyJob');
@@ -1,196 +0,0 @@
<?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 VerifyJobRun 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 verify operation did not complete successfully; check Cloud Build logs.
*/
public const FAILURE_CAUSE_EXECUTION_FAILED = 'EXECUTION_FAILED';
/**
* The verify job run did not complete within the allotted time.
*/
public const FAILURE_CAUSE_DEADLINE_EXCEEDED = 'DEADLINE_EXCEEDED';
/**
* No Skaffold verify configuration was found.
*/
public const FAILURE_CAUSE_VERIFICATION_CONFIG_NOT_FOUND = 'VERIFICATION_CONFIG_NOT_FOUND';
/**
* 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. URI of a directory containing the verify artifacts. This
* contains the Skaffold event log.
*
* @var string
*/
public $artifactUri;
/**
* Output only. The resource name of the Cloud Build `Build` object that is
* used to verify. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
* @var string
*/
public $build;
/**
* Output only. File path of the Skaffold event log relative to the artifact
* URI.
*
* @var string
*/
public $eventLogPath;
/**
* Output only. The reason the verify failed. This will always be unspecified
* while the verify is in progress or if it succeeded.
*
* @var string
*/
public $failureCause;
/**
* Output only. Additional information about the verify failure, if available.
*
* @var string
*/
public $failureMessage;
protected $metadataType = VerifyJobRunMetadata::class;
protected $metadataDataType = '';
/**
* Output only. URI of a directory containing the verify artifacts. This
* contains the Skaffold event log.
*
* @param string $artifactUri
*/
public function setArtifactUri($artifactUri)
{
$this->artifactUri = $artifactUri;
}
/**
* @return string
*/
public function getArtifactUri()
{
return $this->artifactUri;
}
/**
* Output only. The resource name of the Cloud Build `Build` object that is
* used to verify. 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. File path of the Skaffold event log relative to the artifact
* URI.
*
* @param string $eventLogPath
*/
public function setEventLogPath($eventLogPath)
{
$this->eventLogPath = $eventLogPath;
}
/**
* @return string
*/
public function getEventLogPath()
{
return $this->eventLogPath;
}
/**
* Output only. The reason the verify failed. This will always be unspecified
* while the verify is in progress or if it succeeded.
*
* Accepted values: FAILURE_CAUSE_UNSPECIFIED, CLOUD_BUILD_UNAVAILABLE,
* EXECUTION_FAILED, DEADLINE_EXCEEDED, VERIFICATION_CONFIG_NOT_FOUND,
* 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 verify 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 verify `JobRun`.
*
* @param VerifyJobRunMetadata $metadata
*/
public function setMetadata(VerifyJobRunMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return VerifyJobRunMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VerifyJobRun::class, 'Google_Service_CloudDeploy_VerifyJobRun');
@@ -1,44 +0,0 @@
<?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 VerifyJobRunMetadata extends \Google\Model
{
protected $customType = CustomMetadata::class;
protected $customDataType = '';
/**
* Output only. Custom metadata provided by user-defined verify operation.
*
* @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(VerifyJobRunMetadata::class, 'Google_Service_CloudDeploy_VerifyJobRunMetadata');
@@ -1,91 +0,0 @@
<?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 WeeklyWindow extends \Google\Collection
{
protected $collection_key = 'daysOfWeek';
/**
* Optional. Days of week. If left empty, all days of the week will be
* included.
*
* @var string[]
*/
public $daysOfWeek;
protected $endTimeType = TimeOfDay::class;
protected $endTimeDataType = '';
protected $startTimeType = TimeOfDay::class;
protected $startTimeDataType = '';
/**
* Optional. Days of week. If left empty, all days of the week will be
* included.
*
* @param string[] $daysOfWeek
*/
public function setDaysOfWeek($daysOfWeek)
{
$this->daysOfWeek = $daysOfWeek;
}
/**
* @return string[]
*/
public function getDaysOfWeek()
{
return $this->daysOfWeek;
}
/**
* Optional. End time (exclusive). Use 24:00 to indicate midnight. If you
* specify end_time you must also specify start_time. If left empty, this will
* block for the entire day for the days specified in days_of_week.
*
* @param TimeOfDay $endTime
*/
public function setEndTime(TimeOfDay $endTime)
{
$this->endTime = $endTime;
}
/**
* @return TimeOfDay
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Optional. Start time (inclusive). Use 00:00 for the beginning of the day.
* If you specify start_time you must also specify end_time. If left empty,
* this will block for the entire day for the days specified in days_of_week.
*
* @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(WeeklyWindow::class, 'Google_Service_CloudDeploy_WeeklyWindow');
-462
View File
@@ -1,462 +0,0 @@
<?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;
use Google\Client;
/**
* Service definition for CloudDomains (v1).
*
* <p>
* Enables management and configuration of domain names.</p>
*
* <p>
* For more information about this service, see the API
* <a href="https://cloud.google.com/domains/" target="_blank">Documentation</a>
* </p>
*
* @author Google, Inc.
*/
class CloudDomains extends \Google\Service
{
/** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
const CLOUD_PLATFORM =
"https://www.googleapis.com/auth/cloud-platform";
public $projects_locations;
public $projects_locations_operations;
public $projects_locations_registrations;
public $rootUrlTemplate;
/**
* Constructs the internal representation of the CloudDomains service.
*
* @param Client|array $clientOrConfig The client used to deliver requests, or a
* config array to pass to a new Client instance.
* @param string $rootUrl The root URL used for requests to the service.
*/
public function __construct($clientOrConfig = [], $rootUrl = null)
{
parent::__construct($clientOrConfig);
$this->rootUrl = $rootUrl ?: 'https://domains.googleapis.com/';
$this->rootUrlTemplate = $rootUrl ?: 'https://domains.UNIVERSE_DOMAIN/';
$this->servicePath = '';
$this->batchPath = 'batch';
$this->version = 'v1';
$this->serviceName = 'domains';
$this->projects_locations = new CloudDomains\Resource\ProjectsLocations(
$this,
$this->serviceName,
'locations',
[
'methods' => [
'get' => [
'path' => 'v1/{+name}',
'httpMethod' => 'GET',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'list' => [
'path' => 'v1/{+name}/locations',
'httpMethod' => 'GET',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'extraLocationTypes' => [
'location' => 'query',
'type' => 'string',
'repeated' => true,
],
'filter' => [
'location' => 'query',
'type' => 'string',
],
'pageSize' => [
'location' => 'query',
'type' => 'integer',
],
'pageToken' => [
'location' => 'query',
'type' => 'string',
],
],
],
]
]
);
$this->projects_locations_operations = new CloudDomains\Resource\ProjectsLocationsOperations(
$this,
$this->serviceName,
'operations',
[
'methods' => [
'get' => [
'path' => 'v1/{+name}',
'httpMethod' => 'GET',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'list' => [
'path' => 'v1/{+name}/operations',
'httpMethod' => 'GET',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'filter' => [
'location' => 'query',
'type' => 'string',
],
'pageSize' => [
'location' => 'query',
'type' => 'integer',
],
'pageToken' => [
'location' => 'query',
'type' => 'string',
],
'returnPartialSuccess' => [
'location' => 'query',
'type' => 'boolean',
],
],
],
]
]
);
$this->projects_locations_registrations = new CloudDomains\Resource\ProjectsLocationsRegistrations(
$this,
$this->serviceName,
'registrations',
[
'methods' => [
'configureContactSettings' => [
'path' => 'v1/{+registration}:configureContactSettings',
'httpMethod' => 'POST',
'parameters' => [
'registration' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'configureDnsSettings' => [
'path' => 'v1/{+registration}:configureDnsSettings',
'httpMethod' => 'POST',
'parameters' => [
'registration' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'configureManagementSettings' => [
'path' => 'v1/{+registration}:configureManagementSettings',
'httpMethod' => 'POST',
'parameters' => [
'registration' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'delete' => [
'path' => 'v1/{+name}',
'httpMethod' => 'DELETE',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'export' => [
'path' => 'v1/{+name}:export',
'httpMethod' => 'POST',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'get' => [
'path' => 'v1/{+name}',
'httpMethod' => 'GET',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'getIamPolicy' => [
'path' => 'v1/{+resource}:getIamPolicy',
'httpMethod' => 'GET',
'parameters' => [
'resource' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'options.requestedPolicyVersion' => [
'location' => 'query',
'type' => 'integer',
],
],
],'import' => [
'path' => 'v1/{+parent}/registrations:import',
'httpMethod' => 'POST',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'initiatePushTransfer' => [
'path' => 'v1/{+registration}:initiatePushTransfer',
'httpMethod' => 'POST',
'parameters' => [
'registration' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'list' => [
'path' => 'v1/{+parent}/registrations',
'httpMethod' => 'GET',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'filter' => [
'location' => 'query',
'type' => 'string',
],
'pageSize' => [
'location' => 'query',
'type' => 'integer',
],
'pageToken' => [
'location' => 'query',
'type' => 'string',
],
],
],'patch' => [
'path' => 'v1/{+name}',
'httpMethod' => 'PATCH',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'updateMask' => [
'location' => 'query',
'type' => 'string',
],
'validateOnly' => [
'location' => 'query',
'type' => 'boolean',
],
],
],'register' => [
'path' => 'v1/{+parent}/registrations:register',
'httpMethod' => 'POST',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'renewDomain' => [
'path' => 'v1/{+registration}:renewDomain',
'httpMethod' => 'POST',
'parameters' => [
'registration' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'resetAuthorizationCode' => [
'path' => 'v1/{+registration}:resetAuthorizationCode',
'httpMethod' => 'POST',
'parameters' => [
'registration' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'retrieveAuthorizationCode' => [
'path' => 'v1/{+registration}:retrieveAuthorizationCode',
'httpMethod' => 'GET',
'parameters' => [
'registration' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'retrieveGoogleDomainsDnsRecords' => [
'path' => 'v1/{+registration}:retrieveGoogleDomainsDnsRecords',
'httpMethod' => 'GET',
'parameters' => [
'registration' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'pageSize' => [
'location' => 'query',
'type' => 'integer',
],
'pageToken' => [
'location' => 'query',
'type' => 'string',
],
],
],'retrieveGoogleDomainsForwardingConfig' => [
'path' => 'v1/{+registration}:retrieveGoogleDomainsForwardingConfig',
'httpMethod' => 'GET',
'parameters' => [
'registration' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'retrieveImportableDomains' => [
'path' => 'v1/{+location}/registrations:retrieveImportableDomains',
'httpMethod' => 'GET',
'parameters' => [
'location' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'pageSize' => [
'location' => 'query',
'type' => 'integer',
],
'pageToken' => [
'location' => 'query',
'type' => 'string',
],
],
],'retrieveRegisterParameters' => [
'path' => 'v1/{+location}/registrations:retrieveRegisterParameters',
'httpMethod' => 'GET',
'parameters' => [
'location' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'domainName' => [
'location' => 'query',
'type' => 'string',
],
],
],'retrieveTransferParameters' => [
'path' => 'v1/{+location}/registrations:retrieveTransferParameters',
'httpMethod' => 'GET',
'parameters' => [
'location' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'domainName' => [
'location' => 'query',
'type' => 'string',
],
],
],'searchDomains' => [
'path' => 'v1/{+location}/registrations:searchDomains',
'httpMethod' => 'GET',
'parameters' => [
'location' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'query' => [
'location' => 'query',
'type' => 'string',
],
],
],'setIamPolicy' => [
'path' => 'v1/{+resource}:setIamPolicy',
'httpMethod' => 'POST',
'parameters' => [
'resource' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'testIamPermissions' => [
'path' => 'v1/{+resource}:testIamPermissions',
'httpMethod' => 'POST',
'parameters' => [
'resource' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'transfer' => [
'path' => 'v1/{+parent}/registrations:transfer',
'httpMethod' => 'POST',
'parameters' => [
'parent' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],
]
]
);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudDomains::class, 'Google_Service_CloudDomains');
@@ -1,71 +0,0 @@
<?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\CloudDomains;
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_CloudDomains_AuditConfig');
@@ -1,91 +0,0 @@
<?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\CloudDomains;
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_CloudDomains_AuditLogConfig');
@@ -1,50 +0,0 @@
<?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\CloudDomains;
class AuthorizationCode extends \Google\Model
{
/**
* The Authorization Code in ASCII. It can be used to transfer the domain to
* or from another registrar.
*
* @var string
*/
public $code;
/**
* The Authorization Code in ASCII. It can be used to transfer the domain to
* or from another registrar.
*
* @param string $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthorizationCode::class, 'Google_Service_CloudDomains_AuthorizationCode');
@@ -1,216 +0,0 @@
<?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\CloudDomains;
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_CloudDomains_Binding');
@@ -1,117 +0,0 @@
<?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\CloudDomains;
class ConfigureContactSettingsRequest extends \Google\Collection
{
protected $collection_key = 'contactNotices';
/**
* The list of contact notices that the caller acknowledges. The notices
* needed here depend on the values specified in `contact_settings`.
*
* @var string[]
*/
public $contactNotices;
protected $contactSettingsType = ContactSettings::class;
protected $contactSettingsDataType = '';
/**
* Required. The field mask describing which fields to update as a comma-
* separated list. For example, if only the registrant contact is being
* updated, the `update_mask` is `"registrant_contact"`.
*
* @var string
*/
public $updateMask;
/**
* Validate the request without actually updating the contact settings.
*
* @var bool
*/
public $validateOnly;
/**
* The list of contact notices that the caller acknowledges. The notices
* needed here depend on the values specified in `contact_settings`.
*
* @param string[] $contactNotices
*/
public function setContactNotices($contactNotices)
{
$this->contactNotices = $contactNotices;
}
/**
* @return string[]
*/
public function getContactNotices()
{
return $this->contactNotices;
}
/**
* Fields of the `ContactSettings` to update.
*
* @param ContactSettings $contactSettings
*/
public function setContactSettings(ContactSettings $contactSettings)
{
$this->contactSettings = $contactSettings;
}
/**
* @return ContactSettings
*/
public function getContactSettings()
{
return $this->contactSettings;
}
/**
* Required. The field mask describing which fields to update as a comma-
* separated list. For example, if only the registrant contact is being
* updated, the `update_mask` is `"registrant_contact"`.
*
* @param string $updateMask
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
/**
* Validate the request without actually updating the contact settings.
*
* @param bool $validateOnly
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConfigureContactSettingsRequest::class, 'Google_Service_CloudDomains_ConfigureContactSettingsRequest');
@@ -1,100 +0,0 @@
<?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\CloudDomains;
class ConfigureDnsSettingsRequest extends \Google\Model
{
protected $dnsSettingsType = DnsSettings::class;
protected $dnsSettingsDataType = '';
/**
* Required. The field mask describing which fields to update as a comma-
* separated list. For example, if only the name servers are being updated for
* an existing Custom DNS configuration, the `update_mask` is
* `"custom_dns.name_servers"`. When changing the DNS provider from one type
* to another, pass the new provider's field name as part of the field mask.
* For example, when changing from a Google Domains DNS configuration to a
* Custom DNS configuration, the `update_mask` is `"custom_dns"`. //
*
* @var string
*/
public $updateMask;
/**
* Validate the request without actually updating the DNS settings.
*
* @var bool
*/
public $validateOnly;
/**
* Fields of the `DnsSettings` to update.
*
* @param DnsSettings $dnsSettings
*/
public function setDnsSettings(DnsSettings $dnsSettings)
{
$this->dnsSettings = $dnsSettings;
}
/**
* @return DnsSettings
*/
public function getDnsSettings()
{
return $this->dnsSettings;
}
/**
* Required. The field mask describing which fields to update as a comma-
* separated list. For example, if only the name servers are being updated for
* an existing Custom DNS configuration, the `update_mask` is
* `"custom_dns.name_servers"`. When changing the DNS provider from one type
* to another, pass the new provider's field name as part of the field mask.
* For example, when changing from a Google Domains DNS configuration to a
* Custom DNS configuration, the `update_mask` is `"custom_dns"`. //
*
* @param string $updateMask
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
/**
* Validate the request without actually updating the DNS settings.
*
* @param bool $validateOnly
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConfigureDnsSettingsRequest::class, 'Google_Service_CloudDomains_ConfigureDnsSettingsRequest');
@@ -1,94 +0,0 @@
<?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\CloudDomains;
class ConfigureManagementSettingsRequest extends \Google\Model
{
protected $managementSettingsType = ManagementSettings::class;
protected $managementSettingsDataType = '';
/**
* Required. The field mask describing which fields to update as a comma-
* separated list. For example, if only the transfer lock is being updated,
* the `update_mask` is `"transfer_lock_state"`.
*
* @var string
*/
public $updateMask;
/**
* Optional. If set, validates the request without actually updating the
* management settings.
*
* @var bool
*/
public $validateOnly;
/**
* Fields of the `ManagementSettings` to update.
*
* @param ManagementSettings $managementSettings
*/
public function setManagementSettings(ManagementSettings $managementSettings)
{
$this->managementSettings = $managementSettings;
}
/**
* @return ManagementSettings
*/
public function getManagementSettings()
{
return $this->managementSettings;
}
/**
* Required. The field mask describing which fields to update as a comma-
* separated list. For example, if only the transfer lock is being updated,
* the `update_mask` is `"transfer_lock_state"`.
*
* @param string $updateMask
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
/**
* Optional. If set, validates the request without actually updating the
* management settings.
*
* @param bool $validateOnly
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConfigureManagementSettingsRequest::class, 'Google_Service_CloudDomains_ConfigureManagementSettingsRequest');
@@ -1,114 +0,0 @@
<?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\CloudDomains;
class Contact extends \Google\Model
{
/**
* Required. Email address of the contact.
*
* @var string
*/
public $email;
/**
* Fax number of the contact in international format. For example,
* `"+1-800-555-0123"`.
*
* @var string
*/
public $faxNumber;
/**
* Required. Phone number of the contact in international format. For example,
* `"+1-800-555-0123"`.
*
* @var string
*/
public $phoneNumber;
protected $postalAddressType = PostalAddress::class;
protected $postalAddressDataType = '';
/**
* Required. Email address of the contact.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Fax number of the contact in international format. For example,
* `"+1-800-555-0123"`.
*
* @param string $faxNumber
*/
public function setFaxNumber($faxNumber)
{
$this->faxNumber = $faxNumber;
}
/**
* @return string
*/
public function getFaxNumber()
{
return $this->faxNumber;
}
/**
* Required. Phone number of the contact in international format. For example,
* `"+1-800-555-0123"`.
*
* @param string $phoneNumber
*/
public function setPhoneNumber($phoneNumber)
{
$this->phoneNumber = $phoneNumber;
}
/**
* @return string
*/
public function getPhoneNumber()
{
return $this->phoneNumber;
}
/**
* Required. Postal address of the contact.
*
* @param PostalAddress $postalAddress
*/
public function setPostalAddress(PostalAddress $postalAddress)
{
$this->postalAddress = $postalAddress;
}
/**
* @return PostalAddress
*/
public function getPostalAddress()
{
return $this->postalAddress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Contact::class, 'Google_Service_CloudDomains_Contact');
@@ -1,142 +0,0 @@
<?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\CloudDomains;
class ContactSettings extends \Google\Model
{
/**
* The contact privacy settings are undefined.
*/
public const PRIVACY_CONTACT_PRIVACY_UNSPECIFIED = 'CONTACT_PRIVACY_UNSPECIFIED';
/**
* All the data from `ContactSettings` is publicly available. When setting
* this option, you must also provide a `PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT`
* in the `contact_notices` field of the request.
*/
public const PRIVACY_PUBLIC_CONTACT_DATA = 'PUBLIC_CONTACT_DATA';
/**
* Deprecated: For more information, see [Cloud Domains feature
* deprecation](https://cloud.google.com/domains/docs/deprecations/feature-
* deprecations). None of the data from `ContactSettings` is publicly
* available. Instead, proxy contact data is published for your domain. Email
* sent to the proxy email address is forwarded to the registrant's email
* address. Cloud Domains provides this privacy proxy service at no additional
* cost.
*
* @deprecated
*/
public const PRIVACY_PRIVATE_CONTACT_DATA = 'PRIVATE_CONTACT_DATA';
/**
* The organization name (if provided) and limited non-identifying data from
* `ContactSettings` is available to the public (e.g. country and state). The
* remaining data is marked as `REDACTED FOR PRIVACY` in the WHOIS database.
* The actual information redacted depends on the domain. For details, see
* [the registration privacy
* article](https://support.google.com/domains/answer/3251242).
*/
public const PRIVACY_REDACTED_CONTACT_DATA = 'REDACTED_CONTACT_DATA';
protected $adminContactType = Contact::class;
protected $adminContactDataType = '';
/**
* Required. Privacy setting for the contacts associated with the
* `Registration`.
*
* @var string
*/
public $privacy;
protected $registrantContactType = Contact::class;
protected $registrantContactDataType = '';
protected $technicalContactType = Contact::class;
protected $technicalContactDataType = '';
/**
* Required. The administrative contact for the `Registration`.
*
* @param Contact $adminContact
*/
public function setAdminContact(Contact $adminContact)
{
$this->adminContact = $adminContact;
}
/**
* @return Contact
*/
public function getAdminContact()
{
return $this->adminContact;
}
/**
* Required. Privacy setting for the contacts associated with the
* `Registration`.
*
* Accepted values: CONTACT_PRIVACY_UNSPECIFIED, PUBLIC_CONTACT_DATA,
* PRIVATE_CONTACT_DATA, REDACTED_CONTACT_DATA
*
* @param self::PRIVACY_* $privacy
*/
public function setPrivacy($privacy)
{
$this->privacy = $privacy;
}
/**
* @return self::PRIVACY_*
*/
public function getPrivacy()
{
return $this->privacy;
}
/**
* Required. The registrant contact for the `Registration`. *Caution: Anyone
* with access to this email address, phone number, and/or postal address can
* take control of the domain.* *Warning: For new `Registration`s, the
* registrant receives an email confirmation that they must complete within 15
* days to avoid domain suspension.*
*
* @param Contact $registrantContact
*/
public function setRegistrantContact(Contact $registrantContact)
{
$this->registrantContact = $registrantContact;
}
/**
* @return Contact
*/
public function getRegistrantContact()
{
return $this->registrantContact;
}
/**
* Required. The technical contact for the `Registration`.
*
* @param Contact $technicalContact
*/
public function setTechnicalContact(Contact $technicalContact)
{
$this->technicalContact = $technicalContact;
}
/**
* @return Contact
*/
public function getTechnicalContact()
{
return $this->technicalContact;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContactSettings::class, 'Google_Service_CloudDomains_ContactSettings');
@@ -1,73 +0,0 @@
<?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\CloudDomains;
class CustomDns extends \Google\Collection
{
protected $collection_key = 'nameServers';
protected $dsRecordsType = DsRecord::class;
protected $dsRecordsDataType = 'array';
/**
* Required. A list of name servers that store the DNS zone for this domain.
* Each name server is a domain name, with Unicode domain names expressed in
* Punycode format.
*
* @var string[]
*/
public $nameServers;
/**
* The list of DS records for this domain, which are used to enable DNSSEC.
* The domain's DNS provider can provide the values to set here. If this field
* is empty, DNSSEC is disabled.
*
* @param DsRecord[] $dsRecords
*/
public function setDsRecords($dsRecords)
{
$this->dsRecords = $dsRecords;
}
/**
* @return DsRecord[]
*/
public function getDsRecords()
{
return $this->dsRecords;
}
/**
* Required. A list of name servers that store the DNS zone for this domain.
* Each name server is a domain name, with Unicode domain names expressed in
* Punycode format.
*
* @param string[] $nameServers
*/
public function setNameServers($nameServers)
{
$this->nameServers = $nameServers;
}
/**
* @return string[]
*/
public function getNameServers()
{
return $this->nameServers;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomDns::class, 'Google_Service_CloudDomains_CustomDns');
@@ -1,124 +0,0 @@
<?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\CloudDomains;
class DnsSettings extends \Google\Collection
{
protected $collection_key = 'glueRecords';
protected $customDnsType = CustomDns::class;
protected $customDnsDataType = '';
protected $glueRecordsType = GlueRecord::class;
protected $glueRecordsDataType = 'array';
protected $googleDomainsDnsType = GoogleDomainsDns::class;
protected $googleDomainsDnsDataType = '';
/**
* Output only. Indicates if this `Registration` has configured one of the
* following deprecated Google Domains DNS features: * Domain forwarding (HTTP
* `301` and `302` response status codes), * Email forwarding. See
* https://cloud.google.com/domains/docs/deprecations/feature-deprecations for
* more details. If any of these features is enabled call the
* `RetrieveGoogleDomainsForwardingConfig` method to get details about the
* feature's configuration. A forwarding configuration might not work
* correctly if required DNS records are not present in the domain's
* authoritative DNS Zone.
*
* @var bool
*/
public $googleDomainsRedirectsDataAvailable;
/**
* An arbitrary DNS provider identified by its name servers.
*
* @param CustomDns $customDns
*/
public function setCustomDns(CustomDns $customDns)
{
$this->customDns = $customDns;
}
/**
* @return CustomDns
*/
public function getCustomDns()
{
return $this->customDns;
}
/**
* The list of glue records for this `Registration`. Commonly empty.
*
* @param GlueRecord[] $glueRecords
*/
public function setGlueRecords($glueRecords)
{
$this->glueRecords = $glueRecords;
}
/**
* @return GlueRecord[]
*/
public function getGlueRecords()
{
return $this->glueRecords;
}
/**
* Deprecated: For more information, see [Cloud Domains feature
* deprecation](https://cloud.google.com/domains/docs/deprecations/feature-
* deprecations). The free DNS zone provided by [Google
* Domains](https://domains.google/).
*
* @deprecated
* @param GoogleDomainsDns $googleDomainsDns
*/
public function setGoogleDomainsDns(GoogleDomainsDns $googleDomainsDns)
{
$this->googleDomainsDns = $googleDomainsDns;
}
/**
* @deprecated
* @return GoogleDomainsDns
*/
public function getGoogleDomainsDns()
{
return $this->googleDomainsDns;
}
/**
* Output only. Indicates if this `Registration` has configured one of the
* following deprecated Google Domains DNS features: * Domain forwarding (HTTP
* `301` and `302` response status codes), * Email forwarding. See
* https://cloud.google.com/domains/docs/deprecations/feature-deprecations for
* more details. If any of these features is enabled call the
* `RetrieveGoogleDomainsForwardingConfig` method to get details about the
* feature's configuration. A forwarding configuration might not work
* correctly if required DNS records are not present in the domain's
* authoritative DNS Zone.
*
* @param bool $googleDomainsRedirectsDataAvailable
*/
public function setGoogleDomainsRedirectsDataAvailable($googleDomainsRedirectsDataAvailable)
{
$this->googleDomainsRedirectsDataAvailable = $googleDomainsRedirectsDataAvailable;
}
/**
* @return bool
*/
public function getGoogleDomainsRedirectsDataAvailable()
{
return $this->googleDomainsRedirectsDataAvailable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DnsSettings::class, 'Google_Service_CloudDomains_DnsSettings');
@@ -1,122 +0,0 @@
<?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\CloudDomains;
class Domain extends \Google\Model
{
/**
* The assessment is undefined.
*/
public const RESOURCE_STATE_RESOURCE_STATE_UNSPECIFIED = 'RESOURCE_STATE_UNSPECIFIED';
/**
* A `Registration` resource can be created for this domain by calling
* `ImportDomain`.
*/
public const RESOURCE_STATE_IMPORTABLE = 'IMPORTABLE';
/**
* A `Registration` resource cannot be created for this domain because it is
* not supported by Cloud Domains; for example, the top-level domain is not
* supported or the registry charges non-standard pricing for yearly renewals.
*/
public const RESOURCE_STATE_UNSUPPORTED = 'UNSUPPORTED';
/**
* A `Registration` resource cannot be created for this domain because it is
* suspended and needs to be resolved with Google Domains.
*/
public const RESOURCE_STATE_SUSPENDED = 'SUSPENDED';
/**
* A `Registration` resource cannot be created for this domain because it is
* expired and needs to be renewed with Google Domains.
*/
public const RESOURCE_STATE_EXPIRED = 'EXPIRED';
/**
* A `Registration` resource cannot be created for this domain because it is
* deleted, but it may be possible to restore it with Google Domains.
*/
public const RESOURCE_STATE_DELETED = 'DELETED';
/**
* The domain name. Unicode domain names are expressed in Punycode format.
*
* @var string
*/
public $domainName;
/**
* The state of this domain as a `Registration` resource.
*
* @var string
*/
public $resourceState;
protected $yearlyPriceType = Money::class;
protected $yearlyPriceDataType = '';
/**
* The domain name. Unicode domain names are expressed in Punycode format.
*
* @param string $domainName
*/
public function setDomainName($domainName)
{
$this->domainName = $domainName;
}
/**
* @return string
*/
public function getDomainName()
{
return $this->domainName;
}
/**
* The state of this domain as a `Registration` resource.
*
* Accepted values: RESOURCE_STATE_UNSPECIFIED, IMPORTABLE, UNSUPPORTED,
* SUSPENDED, EXPIRED, DELETED
*
* @param self::RESOURCE_STATE_* $resourceState
*/
public function setResourceState($resourceState)
{
$this->resourceState = $resourceState;
}
/**
* @return self::RESOURCE_STATE_*
*/
public function getResourceState()
{
return $this->resourceState;
}
/**
* Price to renew the domain for one year. Only set when `resource_state` is
* `IMPORTABLE`.
*
* @param Money $yearlyPrice
*/
public function setYearlyPrice(Money $yearlyPrice)
{
$this->yearlyPrice = $yearlyPrice;
}
/**
* @return Money
*/
public function getYearlyPrice()
{
return $this->yearlyPrice;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Domain::class, 'Google_Service_CloudDomains_Domain');
@@ -1,182 +0,0 @@
<?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\CloudDomains;
class DomainForwarding extends \Google\Model
{
/**
* Redirect Type is unspecified.
*/
public const REDIRECT_TYPE_REDIRECT_TYPE_UNSPECIFIED = 'REDIRECT_TYPE_UNSPECIFIED';
/**
* 301 redirect. Allows to propagate changes to the forwarding address
* quickly.
*/
public const REDIRECT_TYPE_TEMPORARY = 'TEMPORARY';
/**
* 302 redirect. Allows browsers to cache the forwarding address. This may
* help the address resolve more quickly. Changes may take longer to propagate
*/
public const REDIRECT_TYPE_PERMANENT = 'PERMANENT';
/**
* If true, forwards the path after the domain name to the same path at the
* new address.
*
* @var bool
*/
public $pathForwarding;
/**
* The PEM-encoded certificate chain.
*
* @var string
*/
public $pemCertificate;
/**
* The redirect type.
*
* @var string
*/
public $redirectType;
/**
* If true, the forwarding works also over HTTPS.
*
* @var bool
*/
public $sslEnabled;
/**
* The subdomain of the registered domain that is being forwarded. E.g.
* `www.example.com`, `example.com` (i.e. the registered domain itself) or
* `*.example.com` (i.e. all subdomains).
*
* @var string
*/
public $subdomain;
/**
* The target of the domain forwarding, i.e. the path to redirect the
* `subdomain` to.
*
* @var string
*/
public $targetUri;
/**
* If true, forwards the path after the domain name to the same path at the
* new address.
*
* @param bool $pathForwarding
*/
public function setPathForwarding($pathForwarding)
{
$this->pathForwarding = $pathForwarding;
}
/**
* @return bool
*/
public function getPathForwarding()
{
return $this->pathForwarding;
}
/**
* The PEM-encoded certificate chain.
*
* @param string $pemCertificate
*/
public function setPemCertificate($pemCertificate)
{
$this->pemCertificate = $pemCertificate;
}
/**
* @return string
*/
public function getPemCertificate()
{
return $this->pemCertificate;
}
/**
* The redirect type.
*
* Accepted values: REDIRECT_TYPE_UNSPECIFIED, TEMPORARY, PERMANENT
*
* @param self::REDIRECT_TYPE_* $redirectType
*/
public function setRedirectType($redirectType)
{
$this->redirectType = $redirectType;
}
/**
* @return self::REDIRECT_TYPE_*
*/
public function getRedirectType()
{
return $this->redirectType;
}
/**
* If true, the forwarding works also over HTTPS.
*
* @param bool $sslEnabled
*/
public function setSslEnabled($sslEnabled)
{
$this->sslEnabled = $sslEnabled;
}
/**
* @return bool
*/
public function getSslEnabled()
{
return $this->sslEnabled;
}
/**
* The subdomain of the registered domain that is being forwarded. E.g.
* `www.example.com`, `example.com` (i.e. the registered domain itself) or
* `*.example.com` (i.e. all subdomains).
*
* @param string $subdomain
*/
public function setSubdomain($subdomain)
{
$this->subdomain = $subdomain;
}
/**
* @return string
*/
public function getSubdomain()
{
return $this->subdomain;
}
/**
* The target of the domain forwarding, i.e. the path to redirect the
* `subdomain` to.
*
* @param string $targetUri
*/
public function setTargetUri($targetUri)
{
$this->targetUri = $targetUri;
}
/**
* @return string
*/
public function getTargetUri()
{
return $this->targetUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DomainForwarding::class, 'Google_Service_CloudDomains_DomainForwarding');
@@ -1,213 +0,0 @@
<?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\CloudDomains;
class DsRecord extends \Google\Model
{
/**
* The algorithm is unspecified.
*/
public const ALGORITHM_ALGORITHM_UNSPECIFIED = 'ALGORITHM_UNSPECIFIED';
/**
* RSA/MD5. Cannot be used for new deployments.
*/
public const ALGORITHM_RSAMD5 = 'RSAMD5';
/**
* Diffie-Hellman. Cannot be used for new deployments.
*/
public const ALGORITHM_DH = 'DH';
/**
* DSA/SHA1. Not recommended for new deployments.
*/
public const ALGORITHM_DSA = 'DSA';
/**
* ECC. Not recommended for new deployments.
*/
public const ALGORITHM_ECC = 'ECC';
/**
* RSA/SHA-1. Not recommended for new deployments.
*/
public const ALGORITHM_RSASHA1 = 'RSASHA1';
/**
* DSA-NSEC3-SHA1. Not recommended for new deployments.
*/
public const ALGORITHM_DSANSEC3SHA1 = 'DSANSEC3SHA1';
/**
* RSA/SHA1-NSEC3-SHA1. Not recommended for new deployments.
*/
public const ALGORITHM_RSASHA1NSEC3SHA1 = 'RSASHA1NSEC3SHA1';
/**
* RSA/SHA-256.
*/
public const ALGORITHM_RSASHA256 = 'RSASHA256';
/**
* RSA/SHA-512.
*/
public const ALGORITHM_RSASHA512 = 'RSASHA512';
/**
* GOST R 34.10-2001.
*/
public const ALGORITHM_ECCGOST = 'ECCGOST';
/**
* ECDSA Curve P-256 with SHA-256.
*/
public const ALGORITHM_ECDSAP256SHA256 = 'ECDSAP256SHA256';
/**
* ECDSA Curve P-384 with SHA-384.
*/
public const ALGORITHM_ECDSAP384SHA384 = 'ECDSAP384SHA384';
/**
* Ed25519.
*/
public const ALGORITHM_ED25519 = 'ED25519';
/**
* Ed448.
*/
public const ALGORITHM_ED448 = 'ED448';
/**
* Reserved for Indirect Keys. Cannot be used for new deployments.
*/
public const ALGORITHM_INDIRECT = 'INDIRECT';
/**
* Private algorithm. Cannot be used for new deployments.
*/
public const ALGORITHM_PRIVATEDNS = 'PRIVATEDNS';
/**
* Private algorithm OID. Cannot be used for new deployments.
*/
public const ALGORITHM_PRIVATEOID = 'PRIVATEOID';
/**
* The DigestType is unspecified.
*/
public const DIGEST_TYPE_DIGEST_TYPE_UNSPECIFIED = 'DIGEST_TYPE_UNSPECIFIED';
/**
* SHA-1. Not recommended for new deployments.
*/
public const DIGEST_TYPE_SHA1 = 'SHA1';
/**
* SHA-256.
*/
public const DIGEST_TYPE_SHA256 = 'SHA256';
/**
* GOST R 34.11-94.
*/
public const DIGEST_TYPE_GOST3411 = 'GOST3411';
/**
* SHA-384.
*/
public const DIGEST_TYPE_SHA384 = 'SHA384';
/**
* The algorithm used to generate the referenced DNSKEY.
*
* @var string
*/
public $algorithm;
/**
* The digest generated from the referenced DNSKEY.
*
* @var string
*/
public $digest;
/**
* The hash function used to generate the digest of the referenced DNSKEY.
*
* @var string
*/
public $digestType;
/**
* The key tag of the record. Must be set in range 0 -- 65535.
*
* @var int
*/
public $keyTag;
/**
* The algorithm used to generate the referenced DNSKEY.
*
* Accepted values: ALGORITHM_UNSPECIFIED, RSAMD5, DH, DSA, ECC, RSASHA1,
* DSANSEC3SHA1, RSASHA1NSEC3SHA1, RSASHA256, RSASHA512, ECCGOST,
* ECDSAP256SHA256, ECDSAP384SHA384, ED25519, ED448, INDIRECT, PRIVATEDNS,
* PRIVATEOID
*
* @param self::ALGORITHM_* $algorithm
*/
public function setAlgorithm($algorithm)
{
$this->algorithm = $algorithm;
}
/**
* @return self::ALGORITHM_*
*/
public function getAlgorithm()
{
return $this->algorithm;
}
/**
* The digest generated from the referenced DNSKEY.
*
* @param string $digest
*/
public function setDigest($digest)
{
$this->digest = $digest;
}
/**
* @return string
*/
public function getDigest()
{
return $this->digest;
}
/**
* The hash function used to generate the digest of the referenced DNSKEY.
*
* Accepted values: DIGEST_TYPE_UNSPECIFIED, SHA1, SHA256, GOST3411, SHA384
*
* @param self::DIGEST_TYPE_* $digestType
*/
public function setDigestType($digestType)
{
$this->digestType = $digestType;
}
/**
* @return self::DIGEST_TYPE_*
*/
public function getDigestType()
{
return $this->digestType;
}
/**
* The key tag of the record. Must be set in range 0 -- 65535.
*
* @param int $keyTag
*/
public function setKeyTag($keyTag)
{
$this->keyTag = $keyTag;
}
/**
* @return int
*/
public function getKeyTag()
{
return $this->keyTag;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DsRecord::class, 'Google_Service_CloudDomains_DsRecord');
@@ -1,74 +0,0 @@
<?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\CloudDomains;
class EmailForwarding extends \Google\Model
{
/**
* An alias recipient email that forwards emails to the
* `target_email_address`. For example, `admin@example.com` or `*@example.com`
* (wildcard alias forwards all the emails under the registered domain).
*
* @var string
*/
public $alias;
/**
* Target email that receives emails sent to the `alias`.
*
* @var string
*/
public $targetEmailAddress;
/**
* An alias recipient email that forwards emails to the
* `target_email_address`. For example, `admin@example.com` or `*@example.com`
* (wildcard alias forwards all the emails under the registered domain).
*
* @param string $alias
*/
public function setAlias($alias)
{
$this->alias = $alias;
}
/**
* @return string
*/
public function getAlias()
{
return $this->alias;
}
/**
* Target email that receives emails sent to the `alias`.
*
* @param string $targetEmailAddress
*/
public function setTargetEmailAddress($targetEmailAddress)
{
$this->targetEmailAddress = $targetEmailAddress;
}
/**
* @return string
*/
public function getTargetEmailAddress()
{
return $this->targetEmailAddress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EmailForwarding::class, 'Google_Service_CloudDomains_EmailForwarding');
@@ -1,25 +0,0 @@
<?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\CloudDomains;
class ExportRegistrationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExportRegistrationRequest::class, 'Google_Service_CloudDomains_ExportRegistrationRequest');
@@ -1,122 +0,0 @@
<?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\CloudDomains;
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_CloudDomains_Expr');
@@ -1,80 +0,0 @@
<?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\CloudDomains;
class GeoPolicy extends \Google\Collection
{
protected $collection_key = 'item';
/**
* Without fencing, if health check fails for all configured items in the
* current geo bucket, we failover to the next nearest geo bucket. With
* fencing, if health checking is enabled, as long as some targets in the
* current geo bucket are healthy, we return only the healthy targets.
* However, if all targets are unhealthy, we don't failover to the next
* nearest bucket; instead, we return all the items in the current bucket even
* when all targets are unhealthy.
*
* @var bool
*/
public $enableFencing;
protected $itemType = GeoPolicyItem::class;
protected $itemDataType = 'array';
/**
* Without fencing, if health check fails for all configured items in the
* current geo bucket, we failover to the next nearest geo bucket. With
* fencing, if health checking is enabled, as long as some targets in the
* current geo bucket are healthy, we return only the healthy targets.
* However, if all targets are unhealthy, we don't failover to the next
* nearest bucket; instead, we return all the items in the current bucket even
* when all targets are unhealthy.
*
* @param bool $enableFencing
*/
public function setEnableFencing($enableFencing)
{
$this->enableFencing = $enableFencing;
}
/**
* @return bool
*/
public function getEnableFencing()
{
return $this->enableFencing;
}
/**
* The primary geo routing configuration. If there are multiple items with the
* same location, an error is returned instead.
*
* @param GeoPolicyItem[] $item
*/
public function setItem($item)
{
$this->item = $item;
}
/**
* @return GeoPolicyItem[]
*/
public function getItem()
{
return $this->item;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GeoPolicy::class, 'Google_Service_CloudDomains_GeoPolicy');
@@ -1,117 +0,0 @@
<?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\CloudDomains;
class GeoPolicyItem extends \Google\Collection
{
protected $collection_key = 'signatureRrdata';
protected $healthCheckedTargetsType = HealthCheckTargets::class;
protected $healthCheckedTargetsDataType = '';
/**
* The geo-location granularity is a GCP region. This location string should
* correspond to a GCP region. e.g. "us-east1", "southamerica-east1", "asia-
* east1", etc.
*
* @var string
*/
public $location;
/**
* @var string[]
*/
public $rrdata;
/**
* DNSSEC generated signatures for all the `rrdata` within this item. When
* using health-checked targets for DNSSEC-enabled zones, you can only use at
* most one health-checked IP address per item.
*
* @var string[]
*/
public $signatureRrdata;
/**
* For A and AAAA types only. Endpoints to return in the query result only if
* they are healthy. These can be specified along with `rrdata` within this
* item.
*
* @param HealthCheckTargets $healthCheckedTargets
*/
public function setHealthCheckedTargets(HealthCheckTargets $healthCheckedTargets)
{
$this->healthCheckedTargets = $healthCheckedTargets;
}
/**
* @return HealthCheckTargets
*/
public function getHealthCheckedTargets()
{
return $this->healthCheckedTargets;
}
/**
* The geo-location granularity is a GCP region. This location string should
* correspond to a GCP region. e.g. "us-east1", "southamerica-east1", "asia-
* east1", etc.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string[] $rrdata
*/
public function setRrdata($rrdata)
{
$this->rrdata = $rrdata;
}
/**
* @return string[]
*/
public function getRrdata()
{
return $this->rrdata;
}
/**
* DNSSEC generated signatures for all the `rrdata` within this item. When
* using health-checked targets for DNSSEC-enabled zones, you can only use at
* most one health-checked IP address per item.
*
* @param string[] $signatureRrdata
*/
public function setSignatureRrdata($signatureRrdata)
{
$this->signatureRrdata = $signatureRrdata;
}
/**
* @return string[]
*/
public function getSignatureRrdata()
{
return $this->signatureRrdata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GeoPolicyItem::class, 'Google_Service_CloudDomains_GeoPolicyItem');
@@ -1,101 +0,0 @@
<?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\CloudDomains;
class GlueRecord extends \Google\Collection
{
protected $collection_key = 'ipv6Addresses';
/**
* Required. Domain name of the host in Punycode format.
*
* @var string
*/
public $hostName;
/**
* List of IPv4 addresses corresponding to this host in the standard decimal
* format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
* `ipv6_address` must be set.
*
* @var string[]
*/
public $ipv4Addresses;
/**
* List of IPv6 addresses corresponding to this host in the standard
* hexadecimal format (e.g. `2001:db8::`). At least one of `ipv4_address` and
* `ipv6_address` must be set.
*
* @var string[]
*/
public $ipv6Addresses;
/**
* Required. Domain name of the host in Punycode format.
*
* @param string $hostName
*/
public function setHostName($hostName)
{
$this->hostName = $hostName;
}
/**
* @return string
*/
public function getHostName()
{
return $this->hostName;
}
/**
* List of IPv4 addresses corresponding to this host in the standard decimal
* format (e.g. `198.51.100.1`). At least one of `ipv4_address` and
* `ipv6_address` must be set.
*
* @param string[] $ipv4Addresses
*/
public function setIpv4Addresses($ipv4Addresses)
{
$this->ipv4Addresses = $ipv4Addresses;
}
/**
* @return string[]
*/
public function getIpv4Addresses()
{
return $this->ipv4Addresses;
}
/**
* List of IPv6 addresses corresponding to this host in the standard
* hexadecimal format (e.g. `2001:db8::`). At least one of `ipv4_address` and
* `ipv6_address` must be set.
*
* @param string[] $ipv6Addresses
*/
public function setIpv6Addresses($ipv6Addresses)
{
$this->ipv6Addresses = $ipv6Addresses;
}
/**
* @return string[]
*/
public function getIpv6Addresses()
{
return $this->ipv6Addresses;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GlueRecord::class, 'Google_Service_CloudDomains_GlueRecord');

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