Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,78 @@
<?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\Config;
class ApplyResults extends \Google\Model
{
/**
* @var string
*/
public $artifacts;
/**
* @var string
*/
public $content;
protected $outputsType = TerraformOutput::class;
protected $outputsDataType = 'map';
/**
* @param string
*/
public function setArtifacts($artifacts)
{
$this->artifacts = $artifacts;
}
/**
* @return string
*/
public function getArtifacts()
{
return $this->artifacts;
}
/**
* @param string
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* @param TerraformOutput[]
*/
public function setOutputs($outputs)
{
$this->outputs = $outputs;
}
/**
* @return TerraformOutput[]
*/
public function getOutputs()
{
return $this->outputs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApplyResults::class, 'Google_Service_Config_ApplyResults');

View File

@@ -0,0 +1,61 @@
<?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\Config;
class AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
/**
* @var string
*/
public $service;
/**
* @param AuditLogConfig[]
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return AuditLogConfig[]
*/
public function getAuditLogConfigs()
{
return $this->auditLogConfigs;
}
/**
* @param string
*/
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_Config_AuditConfig');

View File

@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Config;
class AuditLogConfig extends \Google\Collection
{
protected $collection_key = 'exemptedMembers';
/**
* @var string[]
*/
public $exemptedMembers;
/**
* @var string
*/
public $logType;
/**
* @param string[]
*/
public function setExemptedMembers($exemptedMembers)
{
$this->exemptedMembers = $exemptedMembers;
}
/**
* @return string[]
*/
public function getExemptedMembers()
{
return $this->exemptedMembers;
}
/**
* @param string
*/
public function setLogType($logType)
{
$this->logType = $logType;
}
/**
* @return string
*/
public function getLogType()
{
return $this->logType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditLogConfig::class, 'Google_Service_Config_AuditLogConfig');

View File

@@ -0,0 +1,79 @@
<?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\Config;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* @var string[]
*/
public $members;
/**
* @var string
*/
public $role;
/**
* @param Expr
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* @param string[]
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* @param string
*/
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_Config_Binding');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Config;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_Config_CancelOperationRequest');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Config;
class ConfigEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConfigEmpty::class, 'Google_Service_Config_ConfigEmpty');

View File

@@ -0,0 +1,112 @@
<?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\Config;
class ConfigResource extends \Google\Model
{
protected $caiAssetsType = ResourceCAIInfo::class;
protected $caiAssetsDataType = 'map';
/**
* @var string
*/
public $intent;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $state;
protected $terraformInfoType = ResourceTerraformInfo::class;
protected $terraformInfoDataType = '';
/**
* @param ResourceCAIInfo[]
*/
public function setCaiAssets($caiAssets)
{
$this->caiAssets = $caiAssets;
}
/**
* @return ResourceCAIInfo[]
*/
public function getCaiAssets()
{
return $this->caiAssets;
}
/**
* @param string
*/
public function setIntent($intent)
{
$this->intent = $intent;
}
/**
* @return string
*/
public function getIntent()
{
return $this->intent;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param ResourceTerraformInfo
*/
public function setTerraformInfo(ResourceTerraformInfo $terraformInfo)
{
$this->terraformInfo = $terraformInfo;
}
/**
* @return ResourceTerraformInfo
*/
public function getTerraformInfo()
{
return $this->terraformInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConfigResource::class, 'Google_Service_Config_ConfigResource');

View File

@@ -0,0 +1,44 @@
<?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\Config;
class DeleteStatefileRequest extends \Google\Model
{
/**
* @var string
*/
public $lockId;
/**
* @param string
*/
public function setLockId($lockId)
{
$this->lockId = $lockId;
}
/**
* @return string
*/
public function getLockId()
{
return $this->lockId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeleteStatefileRequest::class, 'Google_Service_Config_DeleteStatefileRequest');

View File

@@ -0,0 +1,435 @@
<?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\Config;
class Deployment extends \Google\Collection
{
protected $collection_key = 'tfErrors';
/**
* @var string[]
*/
public $annotations;
/**
* @var string
*/
public $artifactsGcsBucket;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $deleteBuild;
/**
* @var string
*/
public $deleteLogs;
protected $deleteResultsType = ApplyResults::class;
protected $deleteResultsDataType = '';
/**
* @var string
*/
public $errorCode;
/**
* @var string
*/
public $errorLogs;
/**
* @var bool
*/
public $importExistingResources;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $latestRevision;
/**
* @var string
*/
public $lockState;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $quotaValidation;
/**
* @var string
*/
public $serviceAccount;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $stateDetail;
protected $terraformBlueprintType = TerraformBlueprint::class;
protected $terraformBlueprintDataType = '';
protected $tfErrorsType = TerraformError::class;
protected $tfErrorsDataType = 'array';
/**
* @var string
*/
public $tfVersion;
/**
* @var string
*/
public $tfVersionConstraint;
/**
* @var string
*/
public $updateTime;
/**
* @var string
*/
public $workerPool;
/**
* @param string[]
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param string
*/
public function setArtifactsGcsBucket($artifactsGcsBucket)
{
$this->artifactsGcsBucket = $artifactsGcsBucket;
}
/**
* @return string
*/
public function getArtifactsGcsBucket()
{
return $this->artifactsGcsBucket;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDeleteBuild($deleteBuild)
{
$this->deleteBuild = $deleteBuild;
}
/**
* @return string
*/
public function getDeleteBuild()
{
return $this->deleteBuild;
}
/**
* @param string
*/
public function setDeleteLogs($deleteLogs)
{
$this->deleteLogs = $deleteLogs;
}
/**
* @return string
*/
public function getDeleteLogs()
{
return $this->deleteLogs;
}
/**
* @param ApplyResults
*/
public function setDeleteResults(ApplyResults $deleteResults)
{
$this->deleteResults = $deleteResults;
}
/**
* @return ApplyResults
*/
public function getDeleteResults()
{
return $this->deleteResults;
}
/**
* @param string
*/
public function setErrorCode($errorCode)
{
$this->errorCode = $errorCode;
}
/**
* @return string
*/
public function getErrorCode()
{
return $this->errorCode;
}
/**
* @param string
*/
public function setErrorLogs($errorLogs)
{
$this->errorLogs = $errorLogs;
}
/**
* @return string
*/
public function getErrorLogs()
{
return $this->errorLogs;
}
/**
* @param bool
*/
public function setImportExistingResources($importExistingResources)
{
$this->importExistingResources = $importExistingResources;
}
/**
* @return bool
*/
public function getImportExistingResources()
{
return $this->importExistingResources;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setLatestRevision($latestRevision)
{
$this->latestRevision = $latestRevision;
}
/**
* @return string
*/
public function getLatestRevision()
{
return $this->latestRevision;
}
/**
* @param string
*/
public function setLockState($lockState)
{
$this->lockState = $lockState;
}
/**
* @return string
*/
public function getLockState()
{
return $this->lockState;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setQuotaValidation($quotaValidation)
{
$this->quotaValidation = $quotaValidation;
}
/**
* @return string
*/
public function getQuotaValidation()
{
return $this->quotaValidation;
}
/**
* @param string
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setStateDetail($stateDetail)
{
$this->stateDetail = $stateDetail;
}
/**
* @return string
*/
public function getStateDetail()
{
return $this->stateDetail;
}
/**
* @param TerraformBlueprint
*/
public function setTerraformBlueprint(TerraformBlueprint $terraformBlueprint)
{
$this->terraformBlueprint = $terraformBlueprint;
}
/**
* @return TerraformBlueprint
*/
public function getTerraformBlueprint()
{
return $this->terraformBlueprint;
}
/**
* @param TerraformError[]
*/
public function setTfErrors($tfErrors)
{
$this->tfErrors = $tfErrors;
}
/**
* @return TerraformError[]
*/
public function getTfErrors()
{
return $this->tfErrors;
}
/**
* @param string
*/
public function setTfVersion($tfVersion)
{
$this->tfVersion = $tfVersion;
}
/**
* @return string
*/
public function getTfVersion()
{
return $this->tfVersion;
}
/**
* @param string
*/
public function setTfVersionConstraint($tfVersionConstraint)
{
$this->tfVersionConstraint = $tfVersionConstraint;
}
/**
* @return string
*/
public function getTfVersionConstraint()
{
return $this->tfVersionConstraint;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param string
*/
public function setWorkerPool($workerPool)
{
$this->workerPool = $workerPool;
}
/**
* @return string
*/
public function getWorkerPool()
{
return $this->workerPool;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Deployment::class, 'Google_Service_Config_Deployment');

View File

@@ -0,0 +1,96 @@
<?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\Config;
class DeploymentOperationMetadata extends \Google\Model
{
protected $applyResultsType = ApplyResults::class;
protected $applyResultsDataType = '';
/**
* @var string
*/
public $build;
/**
* @var string
*/
public $logs;
/**
* @var string
*/
public $step;
/**
* @param ApplyResults
*/
public function setApplyResults(ApplyResults $applyResults)
{
$this->applyResults = $applyResults;
}
/**
* @return ApplyResults
*/
public function getApplyResults()
{
return $this->applyResults;
}
/**
* @param string
*/
public function setBuild($build)
{
$this->build = $build;
}
/**
* @return string
*/
public function getBuild()
{
return $this->build;
}
/**
* @param string
*/
public function setLogs($logs)
{
$this->logs = $logs;
}
/**
* @return string
*/
public function getLogs()
{
return $this->logs;
}
/**
* @param string
*/
public function setStep($step)
{
$this->step = $step;
}
/**
* @return string
*/
public function getStep()
{
return $this->step;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeploymentOperationMetadata::class, 'Google_Service_Config_DeploymentOperationMetadata');

View File

@@ -0,0 +1,44 @@
<?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\Config;
class ExportDeploymentStatefileRequest extends \Google\Model
{
/**
* @var bool
*/
public $draft;
/**
* @param bool
*/
public function setDraft($draft)
{
$this->draft = $draft;
}
/**
* @return bool
*/
public function getDraft()
{
return $this->draft;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExportDeploymentStatefileRequest::class, 'Google_Service_Config_ExportDeploymentStatefileRequest');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Config;
class ExportPreviewResultRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExportPreviewResultRequest::class, 'Google_Service_Config_ExportPreviewResultRequest');

View File

@@ -0,0 +1,42 @@
<?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\Config;
class ExportPreviewResultResponse extends \Google\Model
{
protected $resultType = PreviewResult::class;
protected $resultDataType = '';
/**
* @param PreviewResult
*/
public function setResult(PreviewResult $result)
{
$this->result = $result;
}
/**
* @return PreviewResult
*/
public function getResult()
{
return $this->result;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExportPreviewResultResponse::class, 'Google_Service_Config_ExportPreviewResultResponse');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Config;
class ExportRevisionStatefileRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExportRevisionStatefileRequest::class, 'Google_Service_Config_ExportRevisionStatefileRequest');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Config;
class Expr extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $expression;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
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_Config_Expr');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Config;
class GitSource extends \Google\Model
{
/**
* @var string
*/
public $directory;
/**
* @var string
*/
public $ref;
/**
* @var string
*/
public $repo;
/**
* @param string
*/
public function setDirectory($directory)
{
$this->directory = $directory;
}
/**
* @return string
*/
public function getDirectory()
{
return $this->directory;
}
/**
* @param string
*/
public function setRef($ref)
{
$this->ref = $ref;
}
/**
* @return string
*/
public function getRef()
{
return $this->ref;
}
/**
* @param string
*/
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(GitSource::class, 'Google_Service_Config_GitSource');

View File

@@ -0,0 +1,44 @@
<?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\Config;
class ImportStatefileRequest extends \Google\Model
{
/**
* @var string
*/
public $lockId;
/**
* @param string
*/
public function setLockId($lockId)
{
$this->lockId = $lockId;
}
/**
* @return string
*/
public function getLockId()
{
return $this->lockId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportStatefileRequest::class, 'Google_Service_Config_ImportStatefileRequest');

View File

@@ -0,0 +1,79 @@
<?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\Config;
class ListDeploymentsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $deploymentsType = Deployment::class;
protected $deploymentsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
/**
* @param Deployment[]
*/
public function setDeployments($deployments)
{
$this->deployments = $deployments;
}
/**
* @return Deployment[]
*/
public function getDeployments()
{
return $this->deployments;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string[]
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDeploymentsResponse::class, 'Google_Service_Config_ListDeploymentsResponse');

View File

@@ -0,0 +1,61 @@
<?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\Config;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Location[]
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLocationsResponse::class, 'Google_Service_Config_ListLocationsResponse');

View File

@@ -0,0 +1,61 @@
<?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\Config;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'operations';
/**
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Operation[]
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_Config_ListOperationsResponse');

View File

@@ -0,0 +1,79 @@
<?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\Config;
class ListPreviewsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $previewsType = Preview::class;
protected $previewsDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Preview[]
*/
public function setPreviews($previews)
{
$this->previews = $previews;
}
/**
* @return Preview[]
*/
public function getPreviews()
{
return $this->previews;
}
/**
* @param string[]
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPreviewsResponse::class, 'Google_Service_Config_ListPreviewsResponse');

View File

@@ -0,0 +1,79 @@
<?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\Config;
class ListResourcesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $resourcesType = ConfigResource::class;
protected $resourcesDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param ConfigResource[]
*/
public function setResources($resources)
{
$this->resources = $resources;
}
/**
* @return ConfigResource[]
*/
public function getResources()
{
return $this->resources;
}
/**
* @param string[]
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListResourcesResponse::class, 'Google_Service_Config_ListResourcesResponse');

View File

@@ -0,0 +1,79 @@
<?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\Config;
class ListRevisionsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $revisionsType = Revision::class;
protected $revisionsDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Revision[]
*/
public function setRevisions($revisions)
{
$this->revisions = $revisions;
}
/**
* @return Revision[]
*/
public function getRevisions()
{
return $this->revisions;
}
/**
* @param string[]
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListRevisionsResponse::class, 'Google_Service_Config_ListRevisionsResponse');

View File

@@ -0,0 +1,79 @@
<?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\Config;
class ListTerraformVersionsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $terraformVersionsType = TerraformVersion::class;
protected $terraformVersionsDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param TerraformVersion[]
*/
public function setTerraformVersions($terraformVersions)
{
$this->terraformVersions = $terraformVersions;
}
/**
* @return TerraformVersion[]
*/
public function getTerraformVersions()
{
return $this->terraformVersions;
}
/**
* @param string[]
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListTerraformVersionsResponse::class, 'Google_Service_Config_ListTerraformVersionsResponse');

View File

@@ -0,0 +1,116 @@
<?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\Config;
class Location extends \Google\Model
{
/**
* @var string
*/
public $displayName;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $locationId;
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Location::class, 'Google_Service_Config_Location');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Config;
class LockDeploymentRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LockDeploymentRequest::class, 'Google_Service_Config_LockDeploymentRequest');

View File

@@ -0,0 +1,134 @@
<?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\Config;
class LockInfo extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $info;
/**
* @var string
*/
public $lockId;
/**
* @var string
*/
public $operation;
/**
* @var string
*/
public $version;
/**
* @var string
*/
public $who;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setInfo($info)
{
$this->info = $info;
}
/**
* @return string
*/
public function getInfo()
{
return $this->info;
}
/**
* @param string
*/
public function setLockId($lockId)
{
$this->lockId = $lockId;
}
/**
* @return string
*/
public function getLockId()
{
return $this->lockId;
}
/**
* @param string
*/
public function setOperation($operation)
{
$this->operation = $operation;
}
/**
* @return string
*/
public function getOperation()
{
return $this->operation;
}
/**
* @param string
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
/**
* @param string
*/
public function setWho($who)
{
$this->who = $who;
}
/**
* @return string
*/
public function getWho()
{
return $this->who;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LockInfo::class, 'Google_Service_Config_LockInfo');

View File

@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Config;
class Operation extends \Google\Model
{
/**
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var array[]
*/
public $response;
/**
* @param bool
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* @param Status
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param array[]
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_Config_Operation');

View File

@@ -0,0 +1,184 @@
<?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\Config;
class OperationMetadata extends \Google\Model
{
/**
* @var string
*/
public $apiVersion;
/**
* @var string
*/
public $createTime;
protected $deploymentMetadataType = DeploymentOperationMetadata::class;
protected $deploymentMetadataDataType = '';
/**
* @var string
*/
public $endTime;
protected $previewMetadataType = PreviewOperationMetadata::class;
protected $previewMetadataDataType = '';
/**
* @var bool
*/
public $requestedCancellation;
/**
* @var string
*/
public $statusMessage;
/**
* @var string
*/
public $target;
/**
* @var string
*/
public $verb;
/**
* @param string
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param DeploymentOperationMetadata
*/
public function setDeploymentMetadata(DeploymentOperationMetadata $deploymentMetadata)
{
$this->deploymentMetadata = $deploymentMetadata;
}
/**
* @return DeploymentOperationMetadata
*/
public function getDeploymentMetadata()
{
return $this->deploymentMetadata;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param PreviewOperationMetadata
*/
public function setPreviewMetadata(PreviewOperationMetadata $previewMetadata)
{
$this->previewMetadata = $previewMetadata;
}
/**
* @return PreviewOperationMetadata
*/
public function getPreviewMetadata()
{
return $this->previewMetadata;
}
/**
* @param bool
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
/**
* @param string
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* @param string
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* @param string
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadata::class, 'Google_Service_Config_OperationMetadata');

View File

@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Config;
class Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $auditConfigsType = AuditConfig::class;
protected $auditConfigsDataType = 'array';
protected $bindingsType = Binding::class;
protected $bindingsDataType = 'array';
/**
* @var string
*/
public $etag;
/**
* @var int
*/
public $version;
/**
* @param AuditConfig[]
*/
public function setAuditConfigs($auditConfigs)
{
$this->auditConfigs = $auditConfigs;
}
/**
* @return AuditConfig[]
*/
public function getAuditConfigs()
{
return $this->auditConfigs;
}
/**
* @param Binding[]
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return Binding[]
*/
public function getBindings()
{
return $this->bindings;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param int
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return int
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policy::class, 'Google_Service_Config_Policy');

View File

@@ -0,0 +1,379 @@
<?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\Config;
class Preview extends \Google\Collection
{
protected $collection_key = 'tfErrors';
/**
* @var string[]
*/
public $annotations;
/**
* @var string
*/
public $artifactsGcsBucket;
/**
* @var string
*/
public $build;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $deployment;
/**
* @var string
*/
public $errorCode;
/**
* @var string
*/
public $errorLogs;
protected $errorStatusType = Status::class;
protected $errorStatusDataType = '';
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $logs;
/**
* @var string
*/
public $name;
protected $previewArtifactsType = PreviewArtifacts::class;
protected $previewArtifactsDataType = '';
/**
* @var string
*/
public $previewMode;
/**
* @var string
*/
public $serviceAccount;
/**
* @var string
*/
public $state;
protected $terraformBlueprintType = TerraformBlueprint::class;
protected $terraformBlueprintDataType = '';
protected $tfErrorsType = TerraformError::class;
protected $tfErrorsDataType = 'array';
/**
* @var string
*/
public $tfVersion;
/**
* @var string
*/
public $tfVersionConstraint;
/**
* @var string
*/
public $workerPool;
/**
* @param string[]
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param string
*/
public function setArtifactsGcsBucket($artifactsGcsBucket)
{
$this->artifactsGcsBucket = $artifactsGcsBucket;
}
/**
* @return string
*/
public function getArtifactsGcsBucket()
{
return $this->artifactsGcsBucket;
}
/**
* @param string
*/
public function setBuild($build)
{
$this->build = $build;
}
/**
* @return string
*/
public function getBuild()
{
return $this->build;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDeployment($deployment)
{
$this->deployment = $deployment;
}
/**
* @return string
*/
public function getDeployment()
{
return $this->deployment;
}
/**
* @param string
*/
public function setErrorCode($errorCode)
{
$this->errorCode = $errorCode;
}
/**
* @return string
*/
public function getErrorCode()
{
return $this->errorCode;
}
/**
* @param string
*/
public function setErrorLogs($errorLogs)
{
$this->errorLogs = $errorLogs;
}
/**
* @return string
*/
public function getErrorLogs()
{
return $this->errorLogs;
}
/**
* @param Status
*/
public function setErrorStatus(Status $errorStatus)
{
$this->errorStatus = $errorStatus;
}
/**
* @return Status
*/
public function getErrorStatus()
{
return $this->errorStatus;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setLogs($logs)
{
$this->logs = $logs;
}
/**
* @return string
*/
public function getLogs()
{
return $this->logs;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param PreviewArtifacts
*/
public function setPreviewArtifacts(PreviewArtifacts $previewArtifacts)
{
$this->previewArtifacts = $previewArtifacts;
}
/**
* @return PreviewArtifacts
*/
public function getPreviewArtifacts()
{
return $this->previewArtifacts;
}
/**
* @param string
*/
public function setPreviewMode($previewMode)
{
$this->previewMode = $previewMode;
}
/**
* @return string
*/
public function getPreviewMode()
{
return $this->previewMode;
}
/**
* @param string
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param TerraformBlueprint
*/
public function setTerraformBlueprint(TerraformBlueprint $terraformBlueprint)
{
$this->terraformBlueprint = $terraformBlueprint;
}
/**
* @return TerraformBlueprint
*/
public function getTerraformBlueprint()
{
return $this->terraformBlueprint;
}
/**
* @param TerraformError[]
*/
public function setTfErrors($tfErrors)
{
$this->tfErrors = $tfErrors;
}
/**
* @return TerraformError[]
*/
public function getTfErrors()
{
return $this->tfErrors;
}
/**
* @param string
*/
public function setTfVersion($tfVersion)
{
$this->tfVersion = $tfVersion;
}
/**
* @return string
*/
public function getTfVersion()
{
return $this->tfVersion;
}
/**
* @param string
*/
public function setTfVersionConstraint($tfVersionConstraint)
{
$this->tfVersionConstraint = $tfVersionConstraint;
}
/**
* @return string
*/
public function getTfVersionConstraint()
{
return $this->tfVersionConstraint;
}
/**
* @param string
*/
public function setWorkerPool($workerPool)
{
$this->workerPool = $workerPool;
}
/**
* @return string
*/
public function getWorkerPool()
{
return $this->workerPool;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Preview::class, 'Google_Service_Config_Preview');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Config;
class PreviewArtifacts extends \Google\Model
{
/**
* @var string
*/
public $artifacts;
/**
* @var string
*/
public $content;
/**
* @param string
*/
public function setArtifacts($artifacts)
{
$this->artifacts = $artifacts;
}
/**
* @return string
*/
public function getArtifacts()
{
return $this->artifacts;
}
/**
* @param string
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PreviewArtifacts::class, 'Google_Service_Config_PreviewArtifacts');

View File

@@ -0,0 +1,96 @@
<?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\Config;
class PreviewOperationMetadata extends \Google\Model
{
/**
* @var string
*/
public $build;
/**
* @var string
*/
public $logs;
protected $previewArtifactsType = PreviewArtifacts::class;
protected $previewArtifactsDataType = '';
/**
* @var string
*/
public $step;
/**
* @param string
*/
public function setBuild($build)
{
$this->build = $build;
}
/**
* @return string
*/
public function getBuild()
{
return $this->build;
}
/**
* @param string
*/
public function setLogs($logs)
{
$this->logs = $logs;
}
/**
* @return string
*/
public function getLogs()
{
return $this->logs;
}
/**
* @param PreviewArtifacts
*/
public function setPreviewArtifacts(PreviewArtifacts $previewArtifacts)
{
$this->previewArtifacts = $previewArtifacts;
}
/**
* @return PreviewArtifacts
*/
public function getPreviewArtifacts()
{
return $this->previewArtifacts;
}
/**
* @param string
*/
public function setStep($step)
{
$this->step = $step;
}
/**
* @return string
*/
public function getStep()
{
return $this->step;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PreviewOperationMetadata::class, 'Google_Service_Config_PreviewOperationMetadata');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Config;
class PreviewResult extends \Google\Model
{
/**
* @var string
*/
public $binarySignedUri;
/**
* @var string
*/
public $jsonSignedUri;
/**
* @param string
*/
public function setBinarySignedUri($binarySignedUri)
{
$this->binarySignedUri = $binarySignedUri;
}
/**
* @return string
*/
public function getBinarySignedUri()
{
return $this->binarySignedUri;
}
/**
* @param string
*/
public function setJsonSignedUri($jsonSignedUri)
{
$this->jsonSignedUri = $jsonSignedUri;
}
/**
* @return string
*/
public function getJsonSignedUri()
{
return $this->jsonSignedUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PreviewResult::class, 'Google_Service_Config_PreviewResult');

View File

@@ -0,0 +1,33 @@
<?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\Config\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $configService = new Google\Service\Config(...);
* $projects = $configService->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_Config_Resource_Projects');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Config\Resource;
use Google\Service\Config\ListLocationsResponse;
use Google\Service\Config\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $configService = new Google\Service\Config(...);
* $locations = $configService->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);
}
/**
* Lists information about the supported locations for this service.
* (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @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_Config_Resource_ProjectsLocations');

View File

@@ -0,0 +1,369 @@
<?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\Config\Resource;
use Google\Service\Config\ConfigEmpty;
use Google\Service\Config\DeleteStatefileRequest;
use Google\Service\Config\Deployment;
use Google\Service\Config\ExportDeploymentStatefileRequest;
use Google\Service\Config\ImportStatefileRequest;
use Google\Service\Config\ListDeploymentsResponse;
use Google\Service\Config\LockDeploymentRequest;
use Google\Service\Config\LockInfo;
use Google\Service\Config\Operation;
use Google\Service\Config\Policy;
use Google\Service\Config\SetIamPolicyRequest;
use Google\Service\Config\Statefile;
use Google\Service\Config\TestIamPermissionsRequest;
use Google\Service\Config\TestIamPermissionsResponse;
use Google\Service\Config\UnlockDeploymentRequest;
/**
* The "deployments" collection of methods.
* Typical usage is:
* <code>
* $configService = new Google\Service\Config(...);
* $deployments = $configService->projects_locations_deployments;
* </code>
*/
class ProjectsLocationsDeployments extends \Google\Service\Resource
{
/**
* Creates a Deployment. (deployments.create)
*
* @param string $parent Required. The parent in whose context the Deployment is
* created. The parent value is in the format:
* 'projects/{project_id}/locations/{location}'.
* @param Deployment $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string deploymentId Required. The Deployment ID.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since 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).
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Deployment $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a Deployment. (deployments.delete)
*
* @param string $name Required. The name of the Deployment in the format:
* 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
* @param array $optParams Optional parameters.
*
* @opt_param string deletePolicy Optional. Policy on how resources actuated by
* the deployment should be deleted. If unspecified, the default behavior is to
* delete the underlying resources.
* @opt_param bool force Optional. If set to true, any revisions for this
* deployment will also be deleted. (Otherwise, the request will only work if
* the deployment has no revisions.)
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee 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).
* @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);
}
/**
* Deletes Terraform state file in a given deployment. (deployments.deleteState)
*
* @param string $name Required. The name of the deployment in the format:
* 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
* @param DeleteStatefileRequest $postBody
* @param array $optParams Optional parameters.
* @return ConfigEmpty
* @throws \Google\Service\Exception
*/
public function deleteState($name, DeleteStatefileRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('deleteState', [$params], ConfigEmpty::class);
}
/**
* Exports the lock info on a locked deployment. (deployments.exportLock)
*
* @param string $name Required. The name of the deployment in the format:
* 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
* @param array $optParams Optional parameters.
* @return LockInfo
* @throws \Google\Service\Exception
*/
public function exportLock($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('exportLock', [$params], LockInfo::class);
}
/**
* Exports Terraform state file from a given deployment.
* (deployments.exportState)
*
* @param string $parent Required. The parent in whose context the statefile is
* listed. The parent value is in the format:
* 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
* @param ExportDeploymentStatefileRequest $postBody
* @param array $optParams Optional parameters.
* @return Statefile
* @throws \Google\Service\Exception
*/
public function exportState($parent, ExportDeploymentStatefileRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('exportState', [$params], Statefile::class);
}
/**
* Gets details about a Deployment. (deployments.get)
*
* @param string $name Required. The name of the deployment. Format:
* 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
* @param array $optParams Optional parameters.
* @return Deployment
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Deployment::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (deployments.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);
}
/**
* Imports Terraform state file in a given deployment. The state file does not
* take effect until the Deployment has been unlocked. (deployments.importState)
*
* @param string $parent Required. The parent in whose context the statefile is
* listed. The parent value is in the format:
* 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
* @param ImportStatefileRequest $postBody
* @param array $optParams Optional parameters.
* @return Statefile
* @throws \Google\Service\Exception
*/
public function importState($parent, ImportStatefileRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('importState', [$params], Statefile::class);
}
/**
* Lists Deployments in a given project and location.
* (deployments.listProjectsLocationsDeployments)
*
* @param string $parent Required. The parent in whose context the Deployments
* are listed. The parent value is in the format:
* 'projects/{project_id}/locations/{location}'.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Lists the Deployments that match the filter
* expression. A filter expression filters the resources listed in the response.
* The expression must be of the form '{field} {operator} {value}' where
* operators: '<', '>', '<=', '>=', '!=', '=', ':' are supported (colon ':'
* represents a HAS operator which is roughly synonymous with equality). {field}
* can refer to a proto or JSON field, or a synthetic field. Field names can be
* camelCase or snake_case. Examples: - Filter by name: name =
* "projects/foo/locations/us-central1/deployments/bar - Filter by labels: -
* Resources that have a key called 'foo' labels.foo:* - Resources that have a
* key called 'foo' whose value is 'bar' labels.foo = bar - Filter by state: -
* Deployments in CREATING state. state=CREATING
* @opt_param string orderBy Field to use to sort the list.
* @opt_param int pageSize When requesting a page of resources, 'page_size'
* specifies number of resources to return. If unspecified, at most 500 will be
* returned. The maximum value is 1000.
* @opt_param string pageToken Token returned by previous call to
* 'ListDeployments' which specifies the position in the list from where to
* continue listing the resources.
* @return ListDeploymentsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsDeployments($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDeploymentsResponse::class);
}
/**
* Locks a deployment. (deployments.lock)
*
* @param string $name Required. The name of the deployment in the format:
* 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
* @param LockDeploymentRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function lock($name, LockDeploymentRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('lock', [$params], Operation::class);
}
/**
* Updates a Deployment. (deployments.patch)
*
* @param string $name Resource name of the deployment. Format:
* `projects/{project}/locations/{location}/deployments/{deployment}`
* @param Deployment $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since 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 Optional. Field mask used to specify the fields
* to be overwritten in the Deployment resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Deployment $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. (deployments.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.
* (deployments.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);
}
/**
* Unlocks a locked deployment. (deployments.unlock)
*
* @param string $name Required. The name of the deployment in the format:
* 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
* @param UnlockDeploymentRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function unlock($name, UnlockDeploymentRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('unlock', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsDeployments::class, 'Google_Service_Config_Resource_ProjectsLocationsDeployments');

View File

@@ -0,0 +1,107 @@
<?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\Config\Resource;
use Google\Service\Config\ExportRevisionStatefileRequest;
use Google\Service\Config\ListRevisionsResponse;
use Google\Service\Config\Revision;
use Google\Service\Config\Statefile;
/**
* The "revisions" collection of methods.
* Typical usage is:
* <code>
* $configService = new Google\Service\Config(...);
* $revisions = $configService->projects_locations_deployments_revisions;
* </code>
*/
class ProjectsLocationsDeploymentsRevisions extends \Google\Service\Resource
{
/**
* Exports Terraform state file from a given revision. (revisions.exportState)
*
* @param string $parent Required. The parent in whose context the statefile is
* listed. The parent value is in the format: 'projects/{project_id}/locations/{
* location}/deployments/{deployment}/revisions/{revision}'.
* @param ExportRevisionStatefileRequest $postBody
* @param array $optParams Optional parameters.
* @return Statefile
* @throws \Google\Service\Exception
*/
public function exportState($parent, ExportRevisionStatefileRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('exportState', [$params], Statefile::class);
}
/**
* Gets details about a Revision. (revisions.get)
*
* @param string $name Required. The name of the Revision in the format: 'projec
* ts/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revi
* sion}'.
* @param array $optParams Optional parameters.
* @return Revision
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Revision::class);
}
/**
* Lists Revisions of a deployment.
* (revisions.listProjectsLocationsDeploymentsRevisions)
*
* @param string $parent Required. The parent in whose context the Revisions are
* listed. The parent value is in the format:
* 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Lists the Revisions that match the filter
* expression. A filter expression filters the resources listed in the response.
* The expression must be of the form '{field} {operator} {value}' where
* operators: '<', '>', '<=', '>=', '!=', '=', ':' are supported (colon ':'
* represents a HAS operator which is roughly synonymous with equality). {field}
* can refer to a proto or JSON field, or a synthetic field. Field names can be
* camelCase or snake_case. Examples: - Filter by name: name =
* "projects/foo/locations/us-central1/deployments/dep/revisions/bar - Filter by
* labels: - Resources that have a key called 'foo' labels.foo:* - Resources
* that have a key called 'foo' whose value is 'bar' labels.foo = bar - Filter
* by state: - Revisions in CREATING state. state=CREATING
* @opt_param string orderBy Field to use to sort the list.
* @opt_param int pageSize When requesting a page of resources, `page_size`
* specifies number of resources to return. If unspecified, at most 500 will be
* returned. The maximum value is 1000.
* @opt_param string pageToken Token returned by previous call to
* 'ListRevisions' which specifies the position in the list from where to
* continue listing the resources.
* @return ListRevisionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsDeploymentsRevisions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRevisionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsDeploymentsRevisions::class, 'Google_Service_Config_Resource_ProjectsLocationsDeploymentsRevisions');

View File

@@ -0,0 +1,86 @@
<?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\Config\Resource;
use Google\Service\Config\ConfigResource;
use Google\Service\Config\ListResourcesResponse;
/**
* The "resources" collection of methods.
* Typical usage is:
* <code>
* $configService = new Google\Service\Config(...);
* $resources = $configService->projects_locations_deployments_revisions_resources;
* </code>
*/
class ProjectsLocationsDeploymentsRevisionsResources extends \Google\Service\Resource
{
/**
* Gets details about a Resource deployed by Infra Manager. (resources.get)
*
* @param string $name Required. The name of the Resource in the format: 'projec
* ts/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revi
* sion}/resource/{resource}'.
* @param array $optParams Optional parameters.
* @return ConfigResource
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ConfigResource::class);
}
/**
* Lists Resources in a given revision.
* (resources.listProjectsLocationsDeploymentsRevisionsResources)
*
* @param string $parent Required. The parent in whose context the Resources are
* listed. The parent value is in the format: 'projects/{project_id}/locations/{
* location}/deployments/{deployment}/revisions/{revision}'.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Lists the Resources that match the filter
* expression. A filter expression filters the resources listed in the response.
* The expression must be of the form '{field} {operator} {value}' where
* operators: '<', '>', '<=', '>=', '!=', '=', ':' are supported (colon ':'
* represents a HAS operator which is roughly synonymous with equality). {field}
* can refer to a proto or JSON field, or a synthetic field. Field names can be
* camelCase or snake_case. Examples: - Filter by name: name =
* "projects/foo/locations/us-
* central1/deployments/dep/revisions/bar/resources/baz
* @opt_param string orderBy Field to use to sort the list.
* @opt_param int pageSize When requesting a page of resources, 'page_size'
* specifies number of resources to return. If unspecified, at most 500 will be
* returned. The maximum value is 1000.
* @opt_param string pageToken Token returned by previous call to
* 'ListResources' which specifies the position in the list from where to
* continue listing the resources.
* @return ListResourcesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsDeploymentsRevisionsResources($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListResourcesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsDeploymentsRevisionsResources::class, 'Google_Service_Config_Resource_ProjectsLocationsDeploymentsRevisionsResources');

View File

@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Config\Resource;
use Google\Service\Config\CancelOperationRequest;
use Google\Service\Config\ConfigEmpty;
use Google\Service\Config\ListOperationsResponse;
use Google\Service\Config\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $configService = new Google\Service\Config(...);
* $operations = $configService->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 ConfigEmpty
* @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], ConfigEmpty::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 ConfigEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ConfigEmpty::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.
* @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_Config_Resource_ProjectsLocationsOperations');

View File

@@ -0,0 +1,164 @@
<?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\Config\Resource;
use Google\Service\Config\ExportPreviewResultRequest;
use Google\Service\Config\ExportPreviewResultResponse;
use Google\Service\Config\ListPreviewsResponse;
use Google\Service\Config\Operation;
use Google\Service\Config\Preview;
/**
* The "previews" collection of methods.
* Typical usage is:
* <code>
* $configService = new Google\Service\Config(...);
* $previews = $configService->projects_locations_previews;
* </code>
*/
class ProjectsLocationsPreviews extends \Google\Service\Resource
{
/**
* Creates a Preview. (previews.create)
*
* @param string $parent Required. The parent in whose context the Preview is
* created. The parent value is in the format:
* 'projects/{project_id}/locations/{location}'.
* @param Preview $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string previewId Optional. The preview ID.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since 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).
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Preview $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a Preview. (previews.delete)
*
* @param string $name Required. The name of the Preview in the format:
* 'projects/{project_id}/locations/{location}/previews/{preview}'.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee 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).
* @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);
}
/**
* Export Preview results. (previews.export)
*
* @param string $parent Required. The preview whose results should be exported.
* The preview value is in the format:
* 'projects/{project_id}/locations/{location}/previews/{preview}'.
* @param ExportPreviewResultRequest $postBody
* @param array $optParams Optional parameters.
* @return ExportPreviewResultResponse
* @throws \Google\Service\Exception
*/
public function export($parent, ExportPreviewResultRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('export', [$params], ExportPreviewResultResponse::class);
}
/**
* Gets details about a Preview. (previews.get)
*
* @param string $name Required. The name of the preview. Format:
* 'projects/{project_id}/locations/{location}/previews/{preview}'.
* @param array $optParams Optional parameters.
* @return Preview
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Preview::class);
}
/**
* Lists Previews in a given project and location.
* (previews.listProjectsLocationsPreviews)
*
* @param string $parent Required. The parent in whose context the Previews are
* listed. The parent value is in the format:
* 'projects/{project_id}/locations/{location}'.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Lists the Deployments that match the
* filter expression. A filter expression filters the resources listed in the
* response. The expression must be of the form '{field} {operator} {value}'
* where operators: '<', '>', '<=', '>=', '!=', '=', ':' are supported (colon
* ':' represents a HAS operator which is roughly synonymous with equality).
* {field} can refer to a proto or JSON field, or a synthetic field. Field names
* can be camelCase or snake_case. Examples: - Filter by name: name =
* "projects/foo/locations/us-central1/deployments/bar - Filter by labels: -
* Resources that have a key called 'foo' labels.foo:* - Resources that have a
* key called 'foo' whose value is 'bar' labels.foo = bar - Filter by state: -
* Deployments in CREATING state. state=CREATING
* @opt_param string orderBy Optional. Field to use to sort the list.
* @opt_param int pageSize Optional. When requesting a page of resources,
* 'page_size' specifies number of resources to return. If unspecified, at most
* 500 will be returned. The maximum value is 1000.
* @opt_param string pageToken Optional. Token returned by previous call to
* 'ListDeployments' which specifies the position in the list from where to
* continue listing the resources.
* @return ListPreviewsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsPreviews($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPreviewsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsPreviews::class, 'Google_Service_Config_Resource_ProjectsLocationsPreviews');

View File

@@ -0,0 +1,83 @@
<?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\Config\Resource;
use Google\Service\Config\ListTerraformVersionsResponse;
use Google\Service\Config\TerraformVersion;
/**
* The "terraformVersions" collection of methods.
* Typical usage is:
* <code>
* $configService = new Google\Service\Config(...);
* $terraformVersions = $configService->projects_locations_terraformVersions;
* </code>
*/
class ProjectsLocationsTerraformVersions extends \Google\Service\Resource
{
/**
* Gets details about a TerraformVersion. (terraformVersions.get)
*
* @param string $name Required. The name of the TerraformVersion. Format: 'proj
* ects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'
* @param array $optParams Optional parameters.
* @return TerraformVersion
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], TerraformVersion::class);
}
/**
* Lists TerraformVersions in a given project and location.
* (terraformVersions.listProjectsLocationsTerraformVersions)
*
* @param string $parent Required. The parent in whose context the
* TerraformVersions are listed. The parent value is in the format:
* 'projects/{project_id}/locations/{location}'.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Lists the TerraformVersions that match the
* filter expression. A filter expression filters the resources listed in the
* response. The expression must be of the form '{field} {operator} {value}'
* where operators: '<', '>', '<=', '>=', '!=', '=', ':' are supported (colon
* ':' represents a HAS operator which is roughly synonymous with equality).
* {field} can refer to a proto or JSON field, or a synthetic field. Field names
* can be camelCase or snake_case.
* @opt_param string orderBy Optional. Field to use to sort the list.
* @opt_param int pageSize Optional. When requesting a page of resources,
* 'page_size' specifies number of resources to return. If unspecified, at most
* 500 will be returned. The maximum value is 1000.
* @opt_param string pageToken Optional. Token returned by previous call to
* 'ListTerraformVersions' which specifies the position in the list from where
* to continue listing the resources.
* @return ListTerraformVersionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsTerraformVersions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTerraformVersionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsTerraformVersions::class, 'Google_Service_Config_Resource_ProjectsLocationsTerraformVersions');

View File

@@ -0,0 +1,44 @@
<?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\Config;
class ResourceCAIInfo extends \Google\Model
{
/**
* @var string
*/
public $fullResourceName;
/**
* @param string
*/
public function setFullResourceName($fullResourceName)
{
$this->fullResourceName = $fullResourceName;
}
/**
* @return string
*/
public function getFullResourceName()
{
return $this->fullResourceName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResourceCAIInfo::class, 'Google_Service_Config_ResourceCAIInfo');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Config;
class ResourceTerraformInfo extends \Google\Model
{
/**
* @var string
*/
public $address;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setAddress($address)
{
$this->address = $address;
}
/**
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResourceTerraformInfo::class, 'Google_Service_Config_ResourceTerraformInfo');

View File

@@ -0,0 +1,381 @@
<?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\Config;
class Revision extends \Google\Collection
{
protected $collection_key = 'tfErrors';
/**
* @var string
*/
public $action;
protected $applyResultsType = ApplyResults::class;
protected $applyResultsDataType = '';
/**
* @var string
*/
public $build;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $errorCode;
/**
* @var string
*/
public $errorLogs;
/**
* @var bool
*/
public $importExistingResources;
/**
* @var string
*/
public $logs;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $quotaValidation;
/**
* @var string
*/
public $quotaValidationResults;
/**
* @var string
*/
public $serviceAccount;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $stateDetail;
protected $terraformBlueprintType = TerraformBlueprint::class;
protected $terraformBlueprintDataType = '';
protected $tfErrorsType = TerraformError::class;
protected $tfErrorsDataType = 'array';
/**
* @var string
*/
public $tfVersion;
/**
* @var string
*/
public $tfVersionConstraint;
/**
* @var string
*/
public $updateTime;
/**
* @var string
*/
public $workerPool;
/**
* @param string
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return string
*/
public function getAction()
{
return $this->action;
}
/**
* @param ApplyResults
*/
public function setApplyResults(ApplyResults $applyResults)
{
$this->applyResults = $applyResults;
}
/**
* @return ApplyResults
*/
public function getApplyResults()
{
return $this->applyResults;
}
/**
* @param string
*/
public function setBuild($build)
{
$this->build = $build;
}
/**
* @return string
*/
public function getBuild()
{
return $this->build;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setErrorCode($errorCode)
{
$this->errorCode = $errorCode;
}
/**
* @return string
*/
public function getErrorCode()
{
return $this->errorCode;
}
/**
* @param string
*/
public function setErrorLogs($errorLogs)
{
$this->errorLogs = $errorLogs;
}
/**
* @return string
*/
public function getErrorLogs()
{
return $this->errorLogs;
}
/**
* @param bool
*/
public function setImportExistingResources($importExistingResources)
{
$this->importExistingResources = $importExistingResources;
}
/**
* @return bool
*/
public function getImportExistingResources()
{
return $this->importExistingResources;
}
/**
* @param string
*/
public function setLogs($logs)
{
$this->logs = $logs;
}
/**
* @return string
*/
public function getLogs()
{
return $this->logs;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setQuotaValidation($quotaValidation)
{
$this->quotaValidation = $quotaValidation;
}
/**
* @return string
*/
public function getQuotaValidation()
{
return $this->quotaValidation;
}
/**
* @param string
*/
public function setQuotaValidationResults($quotaValidationResults)
{
$this->quotaValidationResults = $quotaValidationResults;
}
/**
* @return string
*/
public function getQuotaValidationResults()
{
return $this->quotaValidationResults;
}
/**
* @param string
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setStateDetail($stateDetail)
{
$this->stateDetail = $stateDetail;
}
/**
* @return string
*/
public function getStateDetail()
{
return $this->stateDetail;
}
/**
* @param TerraformBlueprint
*/
public function setTerraformBlueprint(TerraformBlueprint $terraformBlueprint)
{
$this->terraformBlueprint = $terraformBlueprint;
}
/**
* @return TerraformBlueprint
*/
public function getTerraformBlueprint()
{
return $this->terraformBlueprint;
}
/**
* @param TerraformError[]
*/
public function setTfErrors($tfErrors)
{
$this->tfErrors = $tfErrors;
}
/**
* @return TerraformError[]
*/
public function getTfErrors()
{
return $this->tfErrors;
}
/**
* @param string
*/
public function setTfVersion($tfVersion)
{
$this->tfVersion = $tfVersion;
}
/**
* @return string
*/
public function getTfVersion()
{
return $this->tfVersion;
}
/**
* @param string
*/
public function setTfVersionConstraint($tfVersionConstraint)
{
$this->tfVersionConstraint = $tfVersionConstraint;
}
/**
* @return string
*/
public function getTfVersionConstraint()
{
return $this->tfVersionConstraint;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param string
*/
public function setWorkerPool($workerPool)
{
$this->workerPool = $workerPool;
}
/**
* @return string
*/
public function getWorkerPool()
{
return $this->workerPool;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Revision::class, 'Google_Service_Config_Revision');

View File

@@ -0,0 +1,60 @@
<?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\Config;
class SetIamPolicyRequest extends \Google\Model
{
protected $policyType = Policy::class;
protected $policyDataType = '';
/**
* @var string
*/
public $updateMask;
/**
* @param Policy
*/
public function setPolicy(Policy $policy)
{
$this->policy = $policy;
}
/**
* @return Policy
*/
public function getPolicy()
{
return $this->policy;
}
/**
* @param string
*/
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_Config_SetIamPolicyRequest');

View File

@@ -0,0 +1,44 @@
<?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\Config;
class Statefile extends \Google\Model
{
/**
* @var string
*/
public $signedUri;
/**
* @param string
*/
public function setSignedUri($signedUri)
{
$this->signedUri = $signedUri;
}
/**
* @return string
*/
public function getSignedUri()
{
return $this->signedUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Statefile::class, 'Google_Service_Config_Statefile');

View File

@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Config;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* @var int
*/
public $code;
/**
* @var array[]
*/
public $details;
/**
* @var string
*/
public $message;
/**
* @param int
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
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_Config_Status');

View File

@@ -0,0 +1,76 @@
<?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\Config;
class TerraformBlueprint extends \Google\Model
{
/**
* @var string
*/
public $gcsSource;
protected $gitSourceType = GitSource::class;
protected $gitSourceDataType = '';
protected $inputValuesType = TerraformVariable::class;
protected $inputValuesDataType = 'map';
/**
* @param string
*/
public function setGcsSource($gcsSource)
{
$this->gcsSource = $gcsSource;
}
/**
* @return string
*/
public function getGcsSource()
{
return $this->gcsSource;
}
/**
* @param GitSource
*/
public function setGitSource(GitSource $gitSource)
{
$this->gitSource = $gitSource;
}
/**
* @return GitSource
*/
public function getGitSource()
{
return $this->gitSource;
}
/**
* @param TerraformVariable[]
*/
public function setInputValues($inputValues)
{
$this->inputValues = $inputValues;
}
/**
* @return TerraformVariable[]
*/
public function getInputValues()
{
return $this->inputValues;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TerraformBlueprint::class, 'Google_Service_Config_TerraformBlueprint');

View File

@@ -0,0 +1,96 @@
<?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\Config;
class TerraformError extends \Google\Model
{
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* @var string
*/
public $errorDescription;
/**
* @var int
*/
public $httpResponseCode;
/**
* @var string
*/
public $resourceAddress;
/**
* @param Status
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* @param string
*/
public function setErrorDescription($errorDescription)
{
$this->errorDescription = $errorDescription;
}
/**
* @return string
*/
public function getErrorDescription()
{
return $this->errorDescription;
}
/**
* @param int
*/
public function setHttpResponseCode($httpResponseCode)
{
$this->httpResponseCode = $httpResponseCode;
}
/**
* @return int
*/
public function getHttpResponseCode()
{
return $this->httpResponseCode;
}
/**
* @param string
*/
public function setResourceAddress($resourceAddress)
{
$this->resourceAddress = $resourceAddress;
}
/**
* @return string
*/
public function getResourceAddress()
{
return $this->resourceAddress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TerraformError::class, 'Google_Service_Config_TerraformError');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Config;
class TerraformOutput extends \Google\Model
{
/**
* @var bool
*/
public $sensitive;
/**
* @var array
*/
public $value;
/**
* @param bool
*/
public function setSensitive($sensitive)
{
$this->sensitive = $sensitive;
}
/**
* @return bool
*/
public function getSensitive()
{
return $this->sensitive;
}
/**
* @param array
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return array
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TerraformOutput::class, 'Google_Service_Config_TerraformOutput');

View File

@@ -0,0 +1,44 @@
<?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\Config;
class TerraformVariable extends \Google\Model
{
/**
* @var array
*/
public $inputValue;
/**
* @param array
*/
public function setInputValue($inputValue)
{
$this->inputValue = $inputValue;
}
/**
* @return array
*/
public function getInputValue()
{
return $this->inputValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TerraformVariable::class, 'Google_Service_Config_TerraformVariable');

View File

@@ -0,0 +1,116 @@
<?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\Config;
class TerraformVersion extends \Google\Model
{
/**
* @var string
*/
public $deprecateTime;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $obsoleteTime;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $supportTime;
/**
* @param string
*/
public function setDeprecateTime($deprecateTime)
{
$this->deprecateTime = $deprecateTime;
}
/**
* @return string
*/
public function getDeprecateTime()
{
return $this->deprecateTime;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setObsoleteTime($obsoleteTime)
{
$this->obsoleteTime = $obsoleteTime;
}
/**
* @return string
*/
public function getObsoleteTime()
{
return $this->obsoleteTime;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setSupportTime($supportTime)
{
$this->supportTime = $supportTime;
}
/**
* @return string
*/
public function getSupportTime()
{
return $this->supportTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TerraformVersion::class, 'Google_Service_Config_TerraformVersion');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Config;
class TestIamPermissionsRequest extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* @var string[]
*/
public $permissions;
/**
* @param string[]
*/
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_Config_TestIamPermissionsRequest');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Config;
class TestIamPermissionsResponse extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* @var string[]
*/
public $permissions;
/**
* @param string[]
*/
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_Config_TestIamPermissionsResponse');

View File

@@ -0,0 +1,44 @@
<?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\Config;
class UnlockDeploymentRequest extends \Google\Model
{
/**
* @var string
*/
public $lockId;
/**
* @param string
*/
public function setLockId($lockId)
{
$this->lockId = $lockId;
}
/**
* @return string
*/
public function getLockId()
{
return $this->lockId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UnlockDeploymentRequest::class, 'Google_Service_Config_UnlockDeploymentRequest');