From b110d1d284b240ba426bb71039805609326ee0ff Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Fri, 20 Feb 2026 17:07:41 -0800 Subject: [PATCH] Regenerate workloadmanager client --- src/WorkloadManager.php | 150 +++++ src/WorkloadManager/ActiveDirectory.php | 151 +++++ src/WorkloadManager/Actuation.php | 184 ++++++ src/WorkloadManager/ActuationOutput.php | 312 ++++++++++ src/WorkloadManager/AppDetails.php | 383 +++++++++++++ src/WorkloadManager/Database.php | 236 +++++++- src/WorkloadManager/DatabaseDetails.php | 226 ++++++++ src/WorkloadManager/Deployment.php | 321 +++++++++++ src/WorkloadManager/DeploymentOutput.php | 70 +++ .../ListActuationsResponse.php | 91 +++ .../ListDeploymentsResponse.php | 89 +++ src/WorkloadManager/LocationDetails.php | 296 ++++++++++ src/WorkloadManager/Pacemaker.php | 158 ++++++ .../Resource/ProjectsLocationsDeployments.php | 125 ++++ ...ProjectsLocationsDeploymentsActuations.php | 122 ++++ src/WorkloadManager/SapSystemS4Config.php | 338 +++++++++++ src/WorkloadManager/SqlLocationDetails.php | 249 ++++++++ src/WorkloadManager/SqlServerWorkload.php | 534 ++++++++++++++++++ src/WorkloadManager/TerraformVariable.php | 48 ++ 19 files changed, 4059 insertions(+), 24 deletions(-) create mode 100644 src/WorkloadManager/ActiveDirectory.php create mode 100644 src/WorkloadManager/Actuation.php create mode 100644 src/WorkloadManager/ActuationOutput.php create mode 100644 src/WorkloadManager/AppDetails.php create mode 100644 src/WorkloadManager/DatabaseDetails.php create mode 100644 src/WorkloadManager/Deployment.php create mode 100644 src/WorkloadManager/DeploymentOutput.php create mode 100644 src/WorkloadManager/ListActuationsResponse.php create mode 100644 src/WorkloadManager/ListDeploymentsResponse.php create mode 100644 src/WorkloadManager/LocationDetails.php create mode 100644 src/WorkloadManager/Pacemaker.php create mode 100644 src/WorkloadManager/Resource/ProjectsLocationsDeployments.php create mode 100644 src/WorkloadManager/Resource/ProjectsLocationsDeploymentsActuations.php create mode 100644 src/WorkloadManager/SapSystemS4Config.php create mode 100644 src/WorkloadManager/SqlLocationDetails.php create mode 100644 src/WorkloadManager/SqlServerWorkload.php create mode 100644 src/WorkloadManager/TerraformVariable.php diff --git a/src/WorkloadManager.php b/src/WorkloadManager.php index 122123d621a..93acbef94c9 100644 --- a/src/WorkloadManager.php +++ b/src/WorkloadManager.php @@ -41,6 +41,8 @@ class WorkloadManager extends \Google\Service "https://www.googleapis.com/auth/cloud-platform"; public $projects_locations; + public $projects_locations_deployments; + public $projects_locations_deployments_actuations; public $projects_locations_discoveredprofiles; public $projects_locations_discoveredprofiles_health; public $projects_locations_evaluations; @@ -116,6 +118,154 @@ public function __construct($clientOrConfig = [], $rootUrl = null) ] ] ); + $this->projects_locations_deployments = new WorkloadManager\Resource\ProjectsLocationsDeployments( + $this, + $this->serviceName, + 'deployments', + [ + 'methods' => [ + 'create' => [ + 'path' => 'v1/{+parent}/deployments', + 'httpMethod' => 'POST', + 'parameters' => [ + 'parent' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'deploymentId' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'requestId' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ],'delete' => [ + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'force' => [ + 'location' => 'query', + 'type' => 'boolean', + ], + ], + ],'get' => [ + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'list' => [ + 'path' => 'v1/{+parent}/deployments', + 'httpMethod' => 'GET', + 'parameters' => [ + 'parent' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'filter' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'orderBy' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'pageSize' => [ + 'location' => 'query', + 'type' => 'integer', + ], + 'pageToken' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ], + ] + ] + ); + $this->projects_locations_deployments_actuations = new WorkloadManager\Resource\ProjectsLocationsDeploymentsActuations( + $this, + $this->serviceName, + 'actuations', + [ + 'methods' => [ + 'create' => [ + 'path' => 'v1/{+parent}/actuations', + 'httpMethod' => 'POST', + 'parameters' => [ + 'parent' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'requestId' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ],'delete' => [ + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'get' => [ + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'list' => [ + 'path' => 'v1/{+parent}/actuations', + 'httpMethod' => 'GET', + 'parameters' => [ + 'parent' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'filter' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'orderBy' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'pageSize' => [ + 'location' => 'query', + 'type' => 'integer', + ], + 'pageToken' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ], + ] + ] + ); $this->projects_locations_discoveredprofiles = new WorkloadManager\Resource\ProjectsLocationsDiscoveredprofiles( $this, $this->serviceName, diff --git a/src/WorkloadManager/ActiveDirectory.php b/src/WorkloadManager/ActiveDirectory.php new file mode 100644 index 00000000000..8c50a996caa --- /dev/null +++ b/src/WorkloadManager/ActiveDirectory.php @@ -0,0 +1,151 @@ +dnsAddress = $dnsAddress; + } + /** + * @return string + */ + public function getDnsAddress() + { + return $this->dnsAddress; + } + /** + * Optional. human readable form of a domain such as “google.com”. + * + * @param string $domain + */ + public function setDomain($domain) + { + $this->domain = $domain; + } + /** + * @return string + */ + public function getDomain() + { + return $this->domain; + } + /** + * Optional. domain username + * + * @param string $domainUsername + */ + public function setDomainUsername($domainUsername) + { + $this->domainUsername = $domainUsername; + } + /** + * @return string + */ + public function getDomainUsername() + { + return $this->domainUsername; + } + /** + * Required. secret_manager_secret + * + * @param string $secretManagerSecret + */ + public function setSecretManagerSecret($secretManagerSecret) + { + $this->secretManagerSecret = $secretManagerSecret; + } + /** + * @return string + */ + public function getSecretManagerSecret() + { + return $this->secretManagerSecret; + } + /** + * Required. active directory type + * + * Accepted values: ACTIVE_DIRECTORY_TYPE_UNSPECIFIED, GCP_MANAGED, + * SELF_MANAGED + * + * @param self::TYPE_* $type + */ + public function setType($type) + { + $this->type = $type; + } + /** + * @return self::TYPE_* + */ + public function getType() + { + return $this->type; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ActiveDirectory::class, 'Google_Service_WorkloadManager_ActiveDirectory'); diff --git a/src/WorkloadManager/Actuation.php b/src/WorkloadManager/Actuation.php new file mode 100644 index 00000000000..cb0b9bcee5a --- /dev/null +++ b/src/WorkloadManager/Actuation.php @@ -0,0 +1,184 @@ +actuationOutput = $actuationOutput; + } + /** + * @return ActuationOutput + */ + public function getActuationOutput() + { + return $this->actuationOutput; + } + /** + * Output only. [Output only] Deployment output + * + * @param DeploymentOutput[] $deploymentOutput + */ + public function setDeploymentOutput($deploymentOutput) + { + $this->deploymentOutput = $deploymentOutput; + } + /** + * @return DeploymentOutput[] + */ + public function getDeploymentOutput() + { + return $this->deploymentOutput; + } + /** + * Output only. [Output only] End time stamp + * + * @param string $endTime + */ + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + /** + * @return string + */ + public function getEndTime() + { + return $this->endTime; + } + /** + * The name of actuation resource. The format is projects/{project}/locations/ + * {location}/deployments/{deployment}/actuations/{actuation} + * + * @param string $name + */ + public function setName($name) + { + $this->name = $name; + } + /** + * @return string + */ + public function getName() + { + return $this->name; + } + /** + * Output only. [Output only] Start time stamp + * + * @param string $startTime + */ + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + /** + * @return string + */ + public function getStartTime() + { + return $this->startTime; + } + /** + * Output only. [Output only] Actuation state + * + * Accepted values: STATE_UNSPECIFIED, INFRA_CREATING, SUCCEEDED, FAILED, + * POST_INFRA_CONFIGURING, INFRA_DESTROYING, TIMEOUT + * + * @param self::STATE_* $state + */ + public function setState($state) + { + $this->state = $state; + } + /** + * @return self::STATE_* + */ + public function getState() + { + return $this->state; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Actuation::class, 'Google_Service_WorkloadManager_Actuation'); diff --git a/src/WorkloadManager/ActuationOutput.php b/src/WorkloadManager/ActuationOutput.php new file mode 100644 index 00000000000..0b9e5b62a55 --- /dev/null +++ b/src/WorkloadManager/ActuationOutput.php @@ -0,0 +1,312 @@ +actuateLogs = $actuateLogs; + } + /** + * @return string + */ + public function getActuateLogs() + { + return $this->actuateLogs; + } + /** + * Output only. error message return from ansible. + * + * @param string $ansibleError + */ + public function setAnsibleError($ansibleError) + { + $this->ansibleError = $ansibleError; + } + /** + * @return string + */ + public function getAnsibleError() + { + return $this->ansibleError; + } + /** + * Output only. failed task name return from ansible. + * + * @param string[] $ansibleFailedTask + */ + public function setAnsibleFailedTask($ansibleFailedTask) + { + $this->ansibleFailedTask = $ansibleFailedTask; + } + /** + * @return string[] + */ + public function getAnsibleFailedTask() + { + return $this->ansibleFailedTask; + } + /** + * reference to Blueprint Controller deployment and revision resource + * + * @param string $blueprintId + */ + public function setBlueprintId($blueprintId) + { + $this->blueprintId = $blueprintId; + } + /** + * @return string + */ + public function getBlueprintId() + { + return $this->blueprintId; + } + /** + * Cloud Build instance UUID associated with this revision, without any suffix + * or prefix + * + * @param string $cloudbuildId + */ + public function setCloudbuildId($cloudbuildId) + { + $this->cloudbuildId = $cloudbuildId; + } + /** + * @return string + */ + public function getCloudbuildId() + { + return $this->cloudbuildId; + } + /** + * Output only. Code describing any errors that may have occurred. If not + * specified, there is no error in actuation. + * + * Accepted values: ERROR_CODE_UNSPECIFIED, TERRAFORM_FAILED, + * PERMISSION_DENIED_IN_TERRAFORM, QUOTA_EXCEED_IN_TERRAFORM, ANSIBLE_FAILED, + * CONSTRAINT_VIOLATION_IN_TERRAFORM, RESOURCE_ALREADY_EXISTS_IN_TERRAFORM, + * RESOURCE_UNAVAILABLE_IN_TERRAFORM, PERMISSION_DENIED_IN_ANSIBLE, + * INVALID_SECRET_IN_ANSIBLE, TERRAFORM_DELETION_FAILED, + * RESOURCE_IN_USE_IN_TERRAFORM_DELETION, ANSIBLE_START_FAILED + * + * @param self::ERROR_CODE_* $errorCode + */ + public function setErrorCode($errorCode) + { + $this->errorCode = $errorCode; + } + /** + * @return self::ERROR_CODE_* + */ + public function getErrorCode() + { + return $this->errorCode; + } + /** + * A link to actuation cloud build log. + * + * @param string $errorLogs + */ + public function setErrorLogs($errorLogs) + { + $this->errorLogs = $errorLogs; + } + /** + * @return string + */ + public function getErrorLogs() + { + return $this->errorLogs; + } + /** + * Output only. whether the error message is user facing. If true, the error + * message will be shown in the UI. + * + * @param bool $hasUserFacingErrorMsg + */ + public function setHasUserFacingErrorMsg($hasUserFacingErrorMsg) + { + $this->hasUserFacingErrorMsg = $hasUserFacingErrorMsg; + } + /** + * @return bool + */ + public function getHasUserFacingErrorMsg() + { + return $this->hasUserFacingErrorMsg; + } + /** + * Output only. error message return from terraform. + * + * @param string $terraformError + */ + public function setTerraformError($terraformError) + { + $this->terraformError = $terraformError; + } + /** + * @return string + */ + public function getTerraformError() + { + return $this->terraformError; + } + /** + * reference to terraform template used + * + * @param string $terraformTemplate + */ + public function setTerraformTemplate($terraformTemplate) + { + $this->terraformTemplate = $terraformTemplate; + } + /** + * @return string + */ + public function getTerraformTemplate() + { + return $this->terraformTemplate; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ActuationOutput::class, 'Google_Service_WorkloadManager_ActuationOutput'); diff --git a/src/WorkloadManager/AppDetails.php b/src/WorkloadManager/AppDetails.php new file mode 100644 index 00000000000..f1a045c82ee --- /dev/null +++ b/src/WorkloadManager/AppDetails.php @@ -0,0 +1,383 @@ +appInstanceId = $appInstanceId; + } + /** + * @return string + */ + public function getAppInstanceId() + { + return $this->appInstanceId; + } + /** + * Application service account - let custoemrs bring their own SA for + * application + * + * @param string $appServiceAccount + */ + public function setAppServiceAccount($appServiceAccount) + { + $this->appServiceAccount = $appServiceAccount; + } + /** + * @return string + */ + public function getAppServiceAccount() + { + return $this->appServiceAccount; + } + /** + * Optional. Customized vm names + * + * @param string[] $appVmNames + */ + public function setAppVmNames($appVmNames) + { + $this->appVmNames = $appVmNames; + } + /** + * @return string[] + */ + public function getAppVmNames() + { + return $this->appVmNames; + } + /** + * Required. image for ascs server + * + * @param string $ascsImage + */ + public function setAscsImage($ascsImage) + { + $this->ascsImage = $ascsImage; + } + /** + * @return string + */ + public function getAscsImage() + { + return $this->ascsImage; + } + /** + * Optional. instance id for ascs + * + * @param string $ascsInstanceId + */ + public function setAscsInstanceId($ascsInstanceId) + { + $this->ascsInstanceId = $ascsInstanceId; + } + /** + * @return string + */ + public function getAscsInstanceId() + { + return $this->ascsInstanceId; + } + /** + * Required. ascs_machine_type + * + * @param string $ascsMachineType + */ + public function setAscsMachineType($ascsMachineType) + { + $this->ascsMachineType = $ascsMachineType; + } + /** + * @return string + */ + public function getAscsMachineType() + { + return $this->ascsMachineType; + } + /** + * ASCS service account - let custoemrs bring their own SA for ASCS + * + * @param string $ascsServiceAccount + */ + public function setAscsServiceAccount($ascsServiceAccount) + { + $this->ascsServiceAccount = $ascsServiceAccount; + } + /** + * @return string + */ + public function getAscsServiceAccount() + { + return $this->ascsServiceAccount; + } + /** + * Optional. ASCS vm name + * + * @param string $ascsVm + */ + public function setAscsVm($ascsVm) + { + $this->ascsVm = $ascsVm; + } + /** + * @return string + */ + public function getAscsVm() + { + return $this->ascsVm; + } + /** + * Optional. instance id for ers + * + * @param string $ersInstanceId + */ + public function setErsInstanceId($ersInstanceId) + { + $this->ersInstanceId = $ersInstanceId; + } + /** + * @return string + */ + public function getErsInstanceId() + { + return $this->ersInstanceId; + } + /** + * Optional. ERS vm name + * + * @param string $ersVm + */ + public function setErsVm($ersVm) + { + $this->ersVm = $ersVm; + } + /** + * @return string + */ + public function getErsVm() + { + return $this->ersVm; + } + /** + * Required. image for app server and ascs server + * + * @param string $image + */ + public function setImage($image) + { + $this->image = $image; + } + /** + * @return string + */ + public function getImage() + { + return $this->image; + } + /** + * Required. machine type + * + * @param string $machineType + */ + public function setMachineType($machineType) + { + $this->machineType = $machineType; + } + /** + * @return string + */ + public function getMachineType() + { + return $this->machineType; + } + /** + * Required. secret_manager_secret + * + * @param string $secretManagerSecret + */ + public function setSecretManagerSecret($secretManagerSecret) + { + $this->secretManagerSecret = $secretManagerSecret; + } + /** + * @return string + */ + public function getSecretManagerSecret() + { + return $this->secretManagerSecret; + } + /** + * Optional. Storage location + * + * @param string $sharedStorage + */ + public function setSharedStorage($sharedStorage) + { + $this->sharedStorage = $sharedStorage; + } + /** + * @return string + */ + public function getSharedStorage() + { + return $this->sharedStorage; + } + /** + * Required. The SAP SID is a three-digit server-specific unique + * identification code. + * + * @param string $sid + */ + public function setSid($sid) + { + $this->sid = $sid; + } + /** + * @return string + */ + public function getSid() + { + return $this->sid; + } + /** + * Required. vms_multiplier + * + * @param int $vmsMultiplier + */ + public function setVmsMultiplier($vmsMultiplier) + { + $this->vmsMultiplier = $vmsMultiplier; + } + /** + * @return int + */ + public function getVmsMultiplier() + { + return $this->vmsMultiplier; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AppDetails::class, 'Google_Service_WorkloadManager_AppDetails'); diff --git a/src/WorkloadManager/Database.php b/src/WorkloadManager/Database.php index 83ece9a77ab..871879146a1 100644 --- a/src/WorkloadManager/Database.php +++ b/src/WorkloadManager/Database.php @@ -20,77 +20,265 @@ class Database extends \Google\Model { /** + * Unspecified tenancy model + */ + public const TENANCY_MODEL_TENANCY_MODEL_UNSPECIFIED = 'TENANCY_MODEL_UNSPECIFIED'; + /** + * Shared tenancy model + */ + public const TENANCY_MODEL_SHARED = 'SHARED'; + /** + * Sole Tenant tenancy model + */ + public const TENANCY_MODEL_SOLE_TENANT = 'SOLE_TENANT'; + /** + * Required. disk_type + * + * @var string + */ + public $diskType; + /** + * Optional. only useful for Linux High Availability setup + * + * @var string + */ + public $floatingIpAddress; + /** + * Required. machine type + * + * @var string + */ + public $machineType; + /** + * Optional. the name of a secondary-sole-tenant node/node group + * * @var string */ - public $backupFile; + public $secondarySoleTenantNode; /** + * Optional. the type of a secondary-sole-tenant node/node group e.g. + * compute.googleapis.com/node-name + * * @var string */ - public $backupSchedule; + public $secondarySoleTenantNodeType; /** + * Required. secret_manager_secret + * * @var string */ - public $hostVm; + public $secretManagerSecret; + /** + * Required. whether simultaneous multithreading is enabled or not + * + * @var bool + */ + public $smt; /** + * Optional. the name of a primary sole-tenant node/node group + * * @var string */ - public $name; + public $soleTenantNode; + /** + * Optional. the type of a primary sole-tenant node/node group e.g. + * compute.googleapis.com/node-name + * + * @var string + */ + public $soleTenantNodeType; + /** + * Required. whether to have TempDB on local SSD + * + * @var bool + */ + public $tempdbOnSsd; + /** + * Required. SHARED or SOLE_TENANT + * + * @var string + */ + public $tenancyModel; /** - * @param string + * Required. disk_type + * + * @param string $diskType + */ + public function setDiskType($diskType) + { + $this->diskType = $diskType; + } + /** + * @return string + */ + public function getDiskType() + { + return $this->diskType; + } + /** + * Optional. only useful for Linux High Availability setup + * + * @param string $floatingIpAddress + */ + public function setFloatingIpAddress($floatingIpAddress) + { + $this->floatingIpAddress = $floatingIpAddress; + } + /** + * @return string + */ + public function getFloatingIpAddress() + { + return $this->floatingIpAddress; + } + /** + * Required. machine type + * + * @param string $machineType */ - public function setBackupFile($backupFile) + public function setMachineType($machineType) { - $this->backupFile = $backupFile; + $this->machineType = $machineType; } /** * @return string */ - public function getBackupFile() + public function getMachineType() { - return $this->backupFile; + return $this->machineType; } /** - * @param string + * Optional. the name of a secondary-sole-tenant node/node group + * + * @param string $secondarySoleTenantNode */ - public function setBackupSchedule($backupSchedule) + public function setSecondarySoleTenantNode($secondarySoleTenantNode) { - $this->backupSchedule = $backupSchedule; + $this->secondarySoleTenantNode = $secondarySoleTenantNode; } /** * @return string */ - public function getBackupSchedule() + public function getSecondarySoleTenantNode() { - return $this->backupSchedule; + return $this->secondarySoleTenantNode; } /** - * @param string + * Optional. the type of a secondary-sole-tenant node/node group e.g. + * compute.googleapis.com/node-name + * + * @param string $secondarySoleTenantNodeType */ - public function setHostVm($hostVm) + public function setSecondarySoleTenantNodeType($secondarySoleTenantNodeType) { - $this->hostVm = $hostVm; + $this->secondarySoleTenantNodeType = $secondarySoleTenantNodeType; } /** * @return string */ - public function getHostVm() + public function getSecondarySoleTenantNodeType() { - return $this->hostVm; + return $this->secondarySoleTenantNodeType; } /** - * @param string + * Required. secret_manager_secret + * + * @param string $secretManagerSecret */ - public function setName($name) + public function setSecretManagerSecret($secretManagerSecret) { - $this->name = $name; + $this->secretManagerSecret = $secretManagerSecret; } /** * @return string */ - public function getName() + public function getSecretManagerSecret() + { + return $this->secretManagerSecret; + } + /** + * Required. whether simultaneous multithreading is enabled or not + * + * @param bool $smt + */ + public function setSmt($smt) + { + $this->smt = $smt; + } + /** + * @return bool + */ + public function getSmt() + { + return $this->smt; + } + /** + * Optional. the name of a primary sole-tenant node/node group + * + * @param string $soleTenantNode + */ + public function setSoleTenantNode($soleTenantNode) + { + $this->soleTenantNode = $soleTenantNode; + } + /** + * @return string + */ + public function getSoleTenantNode() + { + return $this->soleTenantNode; + } + /** + * Optional. the type of a primary sole-tenant node/node group e.g. + * compute.googleapis.com/node-name + * + * @param string $soleTenantNodeType + */ + public function setSoleTenantNodeType($soleTenantNodeType) + { + $this->soleTenantNodeType = $soleTenantNodeType; + } + /** + * @return string + */ + public function getSoleTenantNodeType() + { + return $this->soleTenantNodeType; + } + /** + * Required. whether to have TempDB on local SSD + * + * @param bool $tempdbOnSsd + */ + public function setTempdbOnSsd($tempdbOnSsd) + { + $this->tempdbOnSsd = $tempdbOnSsd; + } + /** + * @return bool + */ + public function getTempdbOnSsd() + { + return $this->tempdbOnSsd; + } + /** + * Required. SHARED or SOLE_TENANT + * + * Accepted values: TENANCY_MODEL_UNSPECIFIED, SHARED, SOLE_TENANT + * + * @param self::TENANCY_MODEL_* $tenancyModel + */ + public function setTenancyModel($tenancyModel) + { + $this->tenancyModel = $tenancyModel; + } + /** + * @return self::TENANCY_MODEL_* + */ + public function getTenancyModel() { - return $this->name; + return $this->tenancyModel; } } diff --git a/src/WorkloadManager/DatabaseDetails.php b/src/WorkloadManager/DatabaseDetails.php new file mode 100644 index 00000000000..e2c4ac5d0dd --- /dev/null +++ b/src/WorkloadManager/DatabaseDetails.php @@ -0,0 +1,226 @@ +databaseServiceAccount = $databaseServiceAccount; + } + /** + * @return string + */ + public function getDatabaseServiceAccount() + { + return $this->databaseServiceAccount; + } + /** + * Required. disk_type + * + * @param string $diskType + */ + public function setDiskType($diskType) + { + $this->diskType = $diskType; + } + /** + * @return string + */ + public function getDiskType() + { + return $this->diskType; + } + /** + * Required. image for database server + * + * @param string $image + */ + public function setImage($image) + { + $this->image = $image; + } + /** + * @return string + */ + public function getImage() + { + return $this->image; + } + /** + * Optional. instance id + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->instanceId = $instanceId; + } + /** + * @return string + */ + public function getInstanceId() + { + return $this->instanceId; + } + /** + * Required. machine type + * + * @param string $machineType + */ + public function setMachineType($machineType) + { + $this->machineType = $machineType; + } + /** + * @return string + */ + public function getMachineType() + { + return $this->machineType; + } + /** + * Optional. primary db vm name + * + * @param string $primaryDbVm + */ + public function setPrimaryDbVm($primaryDbVm) + { + $this->primaryDbVm = $primaryDbVm; + } + /** + * @return string + */ + public function getPrimaryDbVm() + { + return $this->primaryDbVm; + } + /** + * Optional. secondary db vm name + * + * @param string $secondaryDbVm + */ + public function setSecondaryDbVm($secondaryDbVm) + { + $this->secondaryDbVm = $secondaryDbVm; + } + /** + * @return string + */ + public function getSecondaryDbVm() + { + return $this->secondaryDbVm; + } + /** + * Required. secret_manager_secret + * + * @param string $secretManagerSecret + */ + public function setSecretManagerSecret($secretManagerSecret) + { + $this->secretManagerSecret = $secretManagerSecret; + } + /** + * @return string + */ + public function getSecretManagerSecret() + { + return $this->secretManagerSecret; + } + /** + * Required. The SID is a three-digit server-specific unique identification + * code. + * + * @param string $sid + */ + public function setSid($sid) + { + $this->sid = $sid; + } + /** + * @return string + */ + public function getSid() + { + return $this->sid; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DatabaseDetails::class, 'Google_Service_WorkloadManager_DatabaseDetails'); diff --git a/src/WorkloadManager/Deployment.php b/src/WorkloadManager/Deployment.php new file mode 100644 index 00000000000..d69338a97af --- /dev/null +++ b/src/WorkloadManager/Deployment.php @@ -0,0 +1,321 @@ +createTime = $createTime; + } + /** + * @return string + */ + public function getCreateTime() + { + return $this->createTime; + } + /** + * Description of the Deployment + * + * @param string $description + */ + public function setDescription($description) + { + $this->description = $description; + } + /** + * @return string + */ + public function getDescription() + { + return $this->description; + } + /** + * The name of deployment resource. The format will be + * 'projects/{project_id}/locations/{location_id}/deployments/{deployment_id}' + * + * @param string $name + */ + public function setName($name) + { + $this->name = $name; + } + /** + * @return string + */ + public function getName() + { + return $this->name; + } + /** + * SAP system workload input + * + * @param SapSystemS4Config $sapSystemS4Config + */ + public function setSapSystemS4Config(SapSystemS4Config $sapSystemS4Config) + { + $this->sapSystemS4Config = $sapSystemS4Config; + } + /** + * @return SapSystemS4Config + */ + public function getSapSystemS4Config() + { + return $this->sapSystemS4Config; + } + /** + * User-specified Service Account (SA) credentials to be used for cloud build + * Format: `projects/{projectID}/serviceAccounts/{serviceAccount}` The default + * Cloud Build SA will be used initially if this field is not set during + * deployment creation + * + * @param string $serviceAccount + */ + public function setServiceAccount($serviceAccount) + { + $this->serviceAccount = $serviceAccount; + } + /** + * @return string + */ + public function getServiceAccount() + { + return $this->serviceAccount; + } + /** + * MS SQL workload input + * + * @param SqlServerWorkload $sqlServerWorkload + */ + public function setSqlServerWorkload(SqlServerWorkload $sqlServerWorkload) + { + $this->sqlServerWorkload = $sqlServerWorkload; + } + /** + * @return SqlServerWorkload + */ + public function getSqlServerWorkload() + { + return $this->sqlServerWorkload; + } + /** + * Output only. Current state of the deployment. + * + * Accepted values: STATE_UNSPECIFIED, CREATING, ACTIVE, UPDATING, DELETING, + * FAILED + * + * @param self::STATE_* $state + */ + public function setState($state) + { + $this->state = $state; + } + /** + * @return self::STATE_* + */ + public function getState() + { + return $this->state; + } + /** + * Optional. terraform_variables represents all the Terraform variables for + * the deployment workload. The key is the name of the Terraform variable, and + * the value is the TerraformVariable. For example: { "project_id": { + * "input_value": { "string_value": "my-project-id" } }, "zone": { + * "input_value": { "string_value": "us-central1-a" } } } + * + * @param TerraformVariable[] $terraformVariables + */ + public function setTerraformVariables($terraformVariables) + { + $this->terraformVariables = $terraformVariables; + } + /** + * @return TerraformVariable[] + */ + public function getTerraformVariables() + { + return $this->terraformVariables; + } + /** + * Output only. [Output only] Update time stamp + * + * @param string $updateTime + */ + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + /** + * @return string + */ + public function getUpdateTime() + { + return $this->updateTime; + } + /** + * Optional. The user-specified Cloud Build worker pool resource in which the + * Cloud Build job will execute. Format: + * `projects/{project}/locations/{location}/workerPools/{workerPoolId}`. If + * this field is unspecified, the default Cloud Build worker pool will be + * used. + * + * @param string $workerPool + */ + public function setWorkerPool($workerPool) + { + $this->workerPool = $workerPool; + } + /** + * @return string + */ + public function getWorkerPool() + { + return $this->workerPool; + } + /** + * Optional. Workload type of the deployment + * + * Accepted values: WORKLOAD_TYPE_UNSPECIFIED, SAP_S4, SQL_SERVER, ORACLE + * + * @param self::WORKLOAD_TYPE_* $workloadType + */ + public function setWorkloadType($workloadType) + { + $this->workloadType = $workloadType; + } + /** + * @return self::WORKLOAD_TYPE_* + */ + public function getWorkloadType() + { + return $this->workloadType; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Deployment::class, 'Google_Service_WorkloadManager_Deployment'); diff --git a/src/WorkloadManager/DeploymentOutput.php b/src/WorkloadManager/DeploymentOutput.php new file mode 100644 index 00000000000..c6ac3e43136 --- /dev/null +++ b/src/WorkloadManager/DeploymentOutput.php @@ -0,0 +1,70 @@ +name = $name; + } + /** + * @return string + */ + public function getName() + { + return $this->name; + } + /** + * type of the resource + * + * @param string $type + */ + 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(DeploymentOutput::class, 'Google_Service_WorkloadManager_DeploymentOutput'); diff --git a/src/WorkloadManager/ListActuationsResponse.php b/src/WorkloadManager/ListActuationsResponse.php new file mode 100644 index 00000000000..26b611ff8e1 --- /dev/null +++ b/src/WorkloadManager/ListActuationsResponse.php @@ -0,0 +1,91 @@ +actuations = $actuations; + } + /** + * @return Actuation[] + */ + public function getActuations() + { + return $this->actuations; + } + /** + * A token, which can be sent as `page_token` to retrieve the next page. If + * this field is omitted, there are no subsequent pages. + * + * @param string $nextPageToken + */ + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + /** + * @return string + */ + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * Unordered list. Locations that could not be reached. + * + * @param string[] $unreachable + */ + public function setUnreachable($unreachable) + { + $this->unreachable = $unreachable; + } + /** + * @return string[] + */ + public function getUnreachable() + { + return $this->unreachable; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ListActuationsResponse::class, 'Google_Service_WorkloadManager_ListActuationsResponse'); diff --git a/src/WorkloadManager/ListDeploymentsResponse.php b/src/WorkloadManager/ListDeploymentsResponse.php new file mode 100644 index 00000000000..65bf727e591 --- /dev/null +++ b/src/WorkloadManager/ListDeploymentsResponse.php @@ -0,0 +1,89 @@ +deployments = $deployments; + } + /** + * @return Deployment[] + */ + public function getDeployments() + { + return $this->deployments; + } + /** + * A token identifying a page of results the server should return. + * + * @param string $nextPageToken + */ + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + /** + * @return string + */ + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * Unordered list. Locations that could not be reached. + * + * @param string[] $unreachable + */ + public function setUnreachable($unreachable) + { + $this->unreachable = $unreachable; + } + /** + * @return string[] + */ + public function getUnreachable() + { + return $this->unreachable; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ListDeploymentsResponse::class, 'Google_Service_WorkloadManager_ListDeploymentsResponse'); diff --git a/src/WorkloadManager/LocationDetails.php b/src/WorkloadManager/LocationDetails.php new file mode 100644 index 00000000000..d0936f18b19 --- /dev/null +++ b/src/WorkloadManager/LocationDetails.php @@ -0,0 +1,296 @@ +createCommsFirewall = $createCommsFirewall; + } + /** + * @return bool + */ + public function getCreateCommsFirewall() + { + return $this->createCommsFirewall; + } + /** + * Optional. network tags + * + * @param string[] $customTags + */ + public function setCustomTags($customTags) + { + $this->customTags = $customTags; + } + /** + * @return string[] + */ + public function getCustomTags() + { + return $this->customTags; + } + /** + * Optional. when user skip DNS configuration from UI, + * deployment_dns_enabled=false otherwise deployment_dns_enabled=true + * + * @param bool $deploymentDnsEnabled + */ + public function setDeploymentDnsEnabled($deploymentDnsEnabled) + { + $this->deploymentDnsEnabled = $deploymentDnsEnabled; + } + /** + * @return bool + */ + public function getDeploymentDnsEnabled() + { + return $this->deploymentDnsEnabled; + } + /** + * Optional. dns zone name + * + * @param string $dnsZone + */ + public function setDnsZone($dnsZone) + { + $this->dnsZone = $dnsZone; + } + /** + * @return string + */ + public function getDnsZone() + { + return $this->dnsZone; + } + /** + * Optional. dns_zone_name_suffix + * + * @param string $dnsZoneNameSuffix + */ + public function setDnsZoneNameSuffix($dnsZoneNameSuffix) + { + $this->dnsZoneNameSuffix = $dnsZoneNameSuffix; + } + /** + * @return string + */ + public function getDnsZoneNameSuffix() + { + return $this->dnsZoneNameSuffix; + } + /** + * @param self::INTERNET_ACCESS_* $internetAccess + */ + public function setInternetAccess($internetAccess) + { + $this->internetAccess = $internetAccess; + } + /** + * @return self::INTERNET_ACCESS_* + */ + public function getInternetAccess() + { + return $this->internetAccess; + } + /** + * Optional. network project + * + * @param string $networkProject + */ + public function setNetworkProject($networkProject) + { + $this->networkProject = $networkProject; + } + /** + * @return string + */ + public function getNetworkProject() + { + return $this->networkProject; + } + /** + * Required. region_name + * + * @param string $regionName + */ + public function setRegionName($regionName) + { + $this->regionName = $regionName; + } + /** + * @return string + */ + public function getRegionName() + { + return $this->regionName; + } + /** + * Required. subnet_name + * + * @param string $subnetName + */ + public function setSubnetName($subnetName) + { + $this->subnetName = $subnetName; + } + /** + * @return string + */ + public function getSubnetName() + { + return $this->subnetName; + } + /** + * Required. vpc_name + * + * @param string $vpcName + */ + public function setVpcName($vpcName) + { + $this->vpcName = $vpcName; + } + /** + * @return string + */ + public function getVpcName() + { + return $this->vpcName; + } + /** + * Required. zone1_name + * + * @param string $zone1Name + */ + public function setZone1Name($zone1Name) + { + $this->zone1Name = $zone1Name; + } + /** + * @return string + */ + public function getZone1Name() + { + return $this->zone1Name; + } + /** + * Optional. zone2_name + * + * @param string $zone2Name + */ + public function setZone2Name($zone2Name) + { + $this->zone2Name = $zone2Name; + } + /** + * @return string + */ + public function getZone2Name() + { + return $this->zone2Name; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(LocationDetails::class, 'Google_Service_WorkloadManager_LocationDetails'); diff --git a/src/WorkloadManager/Pacemaker.php b/src/WorkloadManager/Pacemaker.php new file mode 100644 index 00000000000..19a28c347b7 --- /dev/null +++ b/src/WorkloadManager/Pacemaker.php @@ -0,0 +1,158 @@ +bucketNameNodeCertificates = $bucketNameNodeCertificates; + } + /** + * @return string + */ + public function getBucketNameNodeCertificates() + { + return $this->bucketNameNodeCertificates; + } + /** + * Required. pacemaker cluster name + * + * @param string $pacemakerCluster + */ + public function setPacemakerCluster($pacemakerCluster) + { + $this->pacemakerCluster = $pacemakerCluster; + } + /** + * @return string + */ + public function getPacemakerCluster() + { + return $this->pacemakerCluster; + } + /** + * Required. pacemaker cluster secret name + * + * @param string $pacemakerClusterSecret + */ + public function setPacemakerClusterSecret($pacemakerClusterSecret) + { + $this->pacemakerClusterSecret = $pacemakerClusterSecret; + } + /** + * @return string + */ + public function getPacemakerClusterSecret() + { + return $this->pacemakerClusterSecret; + } + /** + * Required. pacemaker cluster username + * + * @param string $pacemakerClusterUsername + */ + public function setPacemakerClusterUsername($pacemakerClusterUsername) + { + $this->pacemakerClusterUsername = $pacemakerClusterUsername; + } + /** + * @return string + */ + public function getPacemakerClusterUsername() + { + return $this->pacemakerClusterUsername; + } + /** + * Required. sql pacemaker secret name + * + * @param string $sqlPacemakerSecret + */ + public function setSqlPacemakerSecret($sqlPacemakerSecret) + { + $this->sqlPacemakerSecret = $sqlPacemakerSecret; + } + /** + * @return string + */ + public function getSqlPacemakerSecret() + { + return $this->sqlPacemakerSecret; + } + /** + * Required. sql pacemaker username + * + * @param string $sqlPacemakerUsername + */ + public function setSqlPacemakerUsername($sqlPacemakerUsername) + { + $this->sqlPacemakerUsername = $sqlPacemakerUsername; + } + /** + * @return string + */ + public function getSqlPacemakerUsername() + { + return $this->sqlPacemakerUsername; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Pacemaker::class, 'Google_Service_WorkloadManager_Pacemaker'); diff --git a/src/WorkloadManager/Resource/ProjectsLocationsDeployments.php b/src/WorkloadManager/Resource/ProjectsLocationsDeployments.php new file mode 100644 index 00000000000..37e8296a655 --- /dev/null +++ b/src/WorkloadManager/Resource/ProjectsLocationsDeployments.php @@ -0,0 +1,125 @@ + + * $workloadmanagerService = new Google\Service\WorkloadManager(...); + * $deployments = $workloadmanagerService->projects_locations_deployments; + * + */ +class ProjectsLocationsDeployments extends \Google\Service\Resource +{ + /** + * Creates a new Deployment in a given project and location. + * (deployments.create) + * + * @param string $parent Required. The resource prefix of the Deployment using + * the form: `projects/{project_id}/locations/{location_id}` + * @param Deployment $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string deploymentId Required. Id of the deployment + * @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 single Deployment. (deployments.delete) + * + * @param string $name Required. Name of the resource + * @param array $optParams Optional parameters. + * + * @opt_param bool force Optional. If set to true, any actuation will also be + * deleted. Followed the best practice from https://aip.dev/135#cascading-delete + * @return Operation + * @throws \Google\Service\Exception + */ + public function delete($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('delete', [$params], Operation::class); + } + /** + * Gets details of a single Deployment. (deployments.get) + * + * @param string $name Required. Name of the resource. The format will be + * 'projects/{project_id}/locations/{location_id}/deployments/{deployment_id}' + * @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); + } + /** + * Lists Deployments in a given project and location. + * (deployments.listProjectsLocationsDeployments) + * + * @param string $parent Required. The resource prefix of the Deployment using + * the form: `projects/{project_id}/locations/{location_id}` + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. Filter resource follow + * https://google.aip.dev/160 + * @opt_param string orderBy Optional. Field to sort by. See + * https://google.aip.dev/132#ordering for more details. + * @opt_param int pageSize Optional. Requested page size. Server may return + * fewer items than requested. The maximum value is 1000; values above 1000 will + * be coerced to 1000. + * @opt_param string pageToken Optional. A token identifying a page of results + * the server should return. + * @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); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ProjectsLocationsDeployments::class, 'Google_Service_WorkloadManager_Resource_ProjectsLocationsDeployments'); diff --git a/src/WorkloadManager/Resource/ProjectsLocationsDeploymentsActuations.php b/src/WorkloadManager/Resource/ProjectsLocationsDeploymentsActuations.php new file mode 100644 index 00000000000..1137c284dd7 --- /dev/null +++ b/src/WorkloadManager/Resource/ProjectsLocationsDeploymentsActuations.php @@ -0,0 +1,122 @@ + + * $workloadmanagerService = new Google\Service\WorkloadManager(...); + * $actuations = $workloadmanagerService->projects_locations_deployments_actuations; + * + */ +class ProjectsLocationsDeploymentsActuations extends \Google\Service\Resource +{ + /** + * Creates a new actuation for an existing Deployment. (actuations.create) + * + * @param string $parent Required. The resource name of the Actuation location + * using the form: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}' + * @param Actuation $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). + * @return Operation + * @throws \Google\Service\Exception + */ + public function create($parent, Actuation $postBody, $optParams = []) + { + $params = ['parent' => $parent, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('create', [$params], Operation::class); + } + /** + * Deletes a single Actuation (actuations.delete) + * + * @param string $name Required. The name of the book to delete. project/{projec + * t_id}/locations/{location_id}/deployments/{deployment_id}/actuations/{actuati + * on_id} + * @param array $optParams Optional parameters. + * @return Operation + * @throws \Google\Service\Exception + */ + public function delete($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('delete', [$params], Operation::class); + } + /** + * Gets details of a single Actuation. (actuations.get) + * + * @param string $name Required. Name of the resource + * @param array $optParams Optional parameters. + * @return Actuation + * @throws \Google\Service\Exception + */ + public function get($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('get', [$params], Actuation::class); + } + /** + * Lists Actuations in a given project, location and deployment. + * (actuations.listProjectsLocationsDeploymentsActuations) + * + * @param string $parent Required. The resource prefix of the Actuation using + * the form: + * 'projects/{project_id}/locations/{location}/deployments/{deployment}' + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. Filtering results + * @opt_param string orderBy Optional. Field to sort by. See + * https://google.aip.dev/132#ordering for more details. + * @opt_param int pageSize Optional. Requested page size. Server may return + * fewer items than requested. If unspecified, server will pick an appropriate + * default. + * @opt_param string pageToken Optional. A token identifying a page of results + * the server should return. + * @return ListActuationsResponse + * @throws \Google\Service\Exception + */ + public function listProjectsLocationsDeploymentsActuations($parent, $optParams = []) + { + $params = ['parent' => $parent]; + $params = array_merge($params, $optParams); + return $this->call('list', [$params], ListActuationsResponse::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ProjectsLocationsDeploymentsActuations::class, 'Google_Service_WorkloadManager_Resource_ProjectsLocationsDeploymentsActuations'); diff --git a/src/WorkloadManager/SapSystemS4Config.php b/src/WorkloadManager/SapSystemS4Config.php new file mode 100644 index 00000000000..c2eecd9990a --- /dev/null +++ b/src/WorkloadManager/SapSystemS4Config.php @@ -0,0 +1,338 @@ +allowStoppingForUpdate = $allowStoppingForUpdate; + } + /** + * @return bool + */ + public function getAllowStoppingForUpdate() + { + return $this->allowStoppingForUpdate; + } + /** + * Ansible runner service account - let custoemrs bring their own SA for + * Ansible runner + * + * @param string $ansibleRunnerServiceAccount + */ + public function setAnsibleRunnerServiceAccount($ansibleRunnerServiceAccount) + { + $this->ansibleRunnerServiceAccount = $ansibleRunnerServiceAccount; + } + /** + * @return string + */ + public function getAnsibleRunnerServiceAccount() + { + return $this->ansibleRunnerServiceAccount; + } + /** + * instance details + * + * @param AppDetails $app + */ + public function setApp(AppDetails $app) + { + $this->app = $app; + } + /** + * @return AppDetails + */ + public function getApp() + { + return $this->app; + } + /** + * database details + * + * @param DatabaseDetails $database + */ + public function setDatabase(DatabaseDetails $database) + { + $this->database = $database; + } + /** + * @return DatabaseDetails + */ + public function getDatabase() + { + return $this->database; + } + /** + * Required. two model non-HA and HA supported + * + * Accepted values: DEPLOYMENT_MODEL_UNSPECIFIED, DISTRIBUTED, DISTRIBUTED_HA + * + * @param self::DEPLOYMENT_MODEL_* $deploymentModel + */ + public function setDeploymentModel($deploymentModel) + { + $this->deploymentModel = $deploymentModel; + } + /** + * @return self::DEPLOYMENT_MODEL_* + */ + public function getDeploymentModel() + { + return $this->deploymentModel; + } + /** + * Required. deployment environment + * + * Accepted values: ENVIRONMENT_TYPE_UNSPECIFIED, NON_PRODUCTION, PRODUCTION + * + * @param self::ENVIRONMENT_TYPE_* $environmentType + */ + public function setEnvironmentType($environmentType) + { + $this->environmentType = $environmentType; + } + /** + * @return self::ENVIRONMENT_TYPE_* + */ + public function getEnvironmentType() + { + return $this->environmentType; + } + /** + * the project that infrastructure deployed, current only support the same + * project where the deployment resource exist. + * + * @param string $gcpProjectId + */ + public function setGcpProjectId($gcpProjectId) + { + $this->gcpProjectId = $gcpProjectId; + } + /** + * @return string + */ + public function getGcpProjectId() + { + return $this->gcpProjectId; + } + /** + * database details + * + * @param LocationDetails $location + */ + public function setLocation(LocationDetails $location) + { + $this->location = $location; + } + /** + * @return LocationDetails + */ + public function getLocation() + { + return $this->location; + } + /** + * Required. media_bucket_name + * + * @param string $mediaBucketName + */ + public function setMediaBucketName($mediaBucketName) + { + $this->mediaBucketName = $mediaBucketName; + } + /** + * @return string + */ + public function getMediaBucketName() + { + return $this->mediaBucketName; + } + /** + * Optional. sap_boot_disk_image + * + * @param string $sapBootDiskImage + */ + public function setSapBootDiskImage($sapBootDiskImage) + { + $this->sapBootDiskImage = $sapBootDiskImage; + } + /** + * @return string + */ + public function getSapBootDiskImage() + { + return $this->sapBootDiskImage; + } + /** + * Required. support scale up and scale out + * + * Accepted values: SCALE_METHOD_UNSPECIFIED, SCALE_UP, SCALE_OUT + * + * @param self::SCALING_METHOD_* $scalingMethod + */ + public function setScalingMethod($scalingMethod) + { + $this->scalingMethod = $scalingMethod; + } + /** + * @return self::SCALING_METHOD_* + */ + public function getScalingMethod() + { + return $this->scalingMethod; + } + /** + * Required. sap hana version + * + * Accepted values: VERSION_UNSPECIFIED, S4_HANA_2021, S4_HANA_2022, + * S4_HANA_2023 + * + * @param self::VERSION_* $version + */ + public function setVersion($version) + { + $this->version = $version; + } + /** + * @return self::VERSION_* + */ + public function getVersion() + { + return $this->version; + } + /** + * vm_prefix + * + * @param string $vmPrefix + */ + public function setVmPrefix($vmPrefix) + { + $this->vmPrefix = $vmPrefix; + } + /** + * @return string + */ + public function getVmPrefix() + { + return $this->vmPrefix; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SapSystemS4Config::class, 'Google_Service_WorkloadManager_SapSystemS4Config'); diff --git a/src/WorkloadManager/SqlLocationDetails.php b/src/WorkloadManager/SqlLocationDetails.php new file mode 100644 index 00000000000..3e0ee57b20d --- /dev/null +++ b/src/WorkloadManager/SqlLocationDetails.php @@ -0,0 +1,249 @@ +dnsZone = $dnsZone; + } + /** + * @return string + */ + public function getDnsZone() + { + return $this->dnsZone; + } + /** + * Required. the project that infrastructure deployed, currently only supports + * the same project where the deployment resource exists. + * + * @param string $gcpProjectId + */ + public function setGcpProjectId($gcpProjectId) + { + $this->gcpProjectId = $gcpProjectId; + } + /** + * @return string + */ + public function getGcpProjectId() + { + return $this->gcpProjectId; + } + /** + * Required. Internet Access + * + * Accepted values: INTERNET_ACCESS_UNSPECIFIED, ALLOW_EXTERNAL_IP, + * CONFIGURE_NAT + * + * @param self::INTERNET_ACCESS_* $internetAccess + */ + public function setInternetAccess($internetAccess) + { + $this->internetAccess = $internetAccess; + } + /** + * @return self::INTERNET_ACCESS_* + */ + public function getInternetAccess() + { + return $this->internetAccess; + } + /** + * Required. network name + * + * @param string $network + */ + public function setNetwork($network) + { + $this->network = $network; + } + /** + * @return string + */ + public function getNetwork() + { + return $this->network; + } + /** + * Required. primary zone + * + * @param string $primaryZone + */ + public function setPrimaryZone($primaryZone) + { + $this->primaryZone = $primaryZone; + } + /** + * @return string + */ + public function getPrimaryZone() + { + return $this->primaryZone; + } + /** + * Required. region name + * + * @param string $region + */ + public function setRegion($region) + { + $this->region = $region; + } + /** + * @return string + */ + public function getRegion() + { + return $this->region; + } + /** + * Optional. secondary zone can't be same as primary_zone and is only for High + * Availability deployment mode + * + * @param string $secondaryZone + */ + public function setSecondaryZone($secondaryZone) + { + $this->secondaryZone = $secondaryZone; + } + /** + * @return string + */ + public function getSecondaryZone() + { + return $this->secondaryZone; + } + /** + * Required. subnetwork name + * + * @param string $subnetwork + */ + public function setSubnetwork($subnetwork) + { + $this->subnetwork = $subnetwork; + } + /** + * @return string + */ + public function getSubnetwork() + { + return $this->subnetwork; + } + /** + * Optional. teriary zone can't be same as primary_zone and secondary zone, + * and it is only for High Availability deployment mode + * + * @param string $tertiaryZone + */ + public function setTertiaryZone($tertiaryZone) + { + $this->tertiaryZone = $tertiaryZone; + } + /** + * @return string + */ + public function getTertiaryZone() + { + return $this->tertiaryZone; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SqlLocationDetails::class, 'Google_Service_WorkloadManager_SqlLocationDetails'); diff --git a/src/WorkloadManager/SqlServerWorkload.php b/src/WorkloadManager/SqlServerWorkload.php new file mode 100644 index 00000000000..316ab2ae103 --- /dev/null +++ b/src/WorkloadManager/SqlServerWorkload.php @@ -0,0 +1,534 @@ +activeDirectory = $activeDirectory; + } + /** + * @return ActiveDirectory + */ + public function getActiveDirectory() + { + return $this->activeDirectory; + } + /** + * Compute engine service account - let customers bring their own SA for + * Compute engine + * + * @param string $computeEngineServiceAccount + */ + public function setComputeEngineServiceAccount($computeEngineServiceAccount) + { + $this->computeEngineServiceAccount = $computeEngineServiceAccount; + } + /** + * @return string + */ + public function getComputeEngineServiceAccount() + { + return $this->computeEngineServiceAccount; + } + /** + * Required. database details + * + * @param Database $database + */ + public function setDatabase(Database $database) + { + $this->database = $database; + } + /** + * @return Database + */ + public function getDatabase() + { + return $this->database; + } + /** + * Required. HIGH_AVAILABILITY or SINGLE_INSTANCE + * + * Accepted values: DEPLOYMENT_MODEL_UNSPECIFIED, HIGH_AVAILABILITY, + * SINGLE_INSTANCE + * + * @param self::DEPLOYMENT_MODEL_* $deploymentModel + */ + public function setDeploymentModel($deploymentModel) + { + $this->deploymentModel = $deploymentModel; + } + /** + * @return self::DEPLOYMENT_MODEL_* + */ + public function getDeploymentModel() + { + return $this->deploymentModel; + } + /** + * Required. deployment environment + * + * Accepted values: ENVIRONMENT_TYPE_UNSPECIFIED, NON_PRODUCTION, PRODUCTION + * + * @param self::ENVIRONMENT_TYPE_* $environmentType + */ + public function setEnvironmentType($environmentType) + { + $this->environmentType = $environmentType; + } + /** + * @return self::ENVIRONMENT_TYPE_* + */ + public function getEnvironmentType() + { + return $this->environmentType; + } + /** + * Optional. SHARED_DISK or S2D + * + * Accepted values: FCI_TYPE_UNSPECIFIED, SHARED_DISK, S2D + * + * @param self::FCI_TYPE_* $fciType + */ + public function setFciType($fciType) + { + $this->fciType = $fciType; + } + /** + * @return self::FCI_TYPE_* + */ + public function getFciType() + { + return $this->fciType; + } + /** + * Optional. AOAG or FCI, it is only needed for High Availability deployment + * mode + * + * Accepted values: HA_TYPE_UNSPECIFIED, AOAG, FCI + * + * @param self::HA_TYPE_* $haType + */ + public function setHaType($haType) + { + $this->haType = $haType; + } + /** + * @return self::HA_TYPE_* + */ + public function getHaType() + { + return $this->haType; + } + /** + * Required. SQL licensing type + * + * @param bool $isSqlPayg + */ + public function setIsSqlPayg($isSqlPayg) + { + $this->isSqlPayg = $isSqlPayg; + } + /** + * @return bool + */ + public function getIsSqlPayg() + { + return $this->isSqlPayg; + } + /** + * Required. location details + * + * @param SqlLocationDetails $location + */ + public function setLocation(SqlLocationDetails $location) + { + $this->location = $location; + } + /** + * @return SqlLocationDetails + */ + public function getLocation() + { + return $this->location; + } + /** + * Required. name of the media storing SQL server installation files + * + * @param string $mediaBucket + */ + public function setMediaBucket($mediaBucket) + { + $this->mediaBucket = $mediaBucket; + } + /** + * @return string + */ + public function getMediaBucket() + { + return $this->mediaBucket; + } + /** + * Required. type of the operating system the SQL server is going to run on + * top of + * + * Accepted values: OPERATING_SYSTEM_TYPE_UNSPECIFIED, WINDOWS, UBUNTU, + * RED_HAT_ENTERPRISE_LINUX, SUSE + * + * @param self::OPERATING_SYSTEM_TYPE_* $operatingSystemType + */ + public function setOperatingSystemType($operatingSystemType) + { + $this->operatingSystemType = $operatingSystemType; + } + /** + * @return self::OPERATING_SYSTEM_TYPE_* + */ + public function getOperatingSystemType() + { + return $this->operatingSystemType; + } + /** + * Required. the image of the operating system + * + * @param string $osImage + */ + public function setOsImage($osImage) + { + $this->osImage = $osImage; + } + /** + * @return string + */ + public function getOsImage() + { + return $this->osImage; + } + /** + * Optional. OS image type, it's used to create boot disks for VM instances + * When either Windows licensing type or SQL licensing type is BYOL, this + * option is disabled and default to custom image + * + * Accepted values: OS_IMAGE_TYPE_UNSPECIFIED, PUBLIC_IMAGE, CUSTOM_IMAGE + * + * @param self::OS_IMAGE_TYPE_* $osImageType + */ + public function setOsImageType($osImageType) + { + $this->osImageType = $osImageType; + } + /** + * @return self::OS_IMAGE_TYPE_* + */ + public function getOsImageType() + { + return $this->osImageType; + } + /** + * Optional. pacemaker configuration, only applicable for Linux HA deployments + * + * @param Pacemaker $pacemaker + */ + public function setPacemaker(Pacemaker $pacemaker) + { + $this->pacemaker = $pacemaker; + } + /** + * @return Pacemaker + */ + public function getPacemaker() + { + return $this->pacemaker; + } + /** + * Optional. SQL Server Edition type, only applicable when Operating System is + * Linux + * + * Accepted values: SQL_SERVER_EDITION_TYPE_UNSPECIFIED, + * SQL_SERVER_EDITION_TYPE_DEVELOPER, SQL_SERVER_EDITION_TYPE_ENTERPRISE, + * SQL_SERVER_EDITION_TYPE_STANDARD, SQL_SERVER_EDITION_TYPE_WEB + * + * @param self::SQL_SERVER_EDITION_* $sqlServerEdition + */ + public function setSqlServerEdition($sqlServerEdition) + { + $this->sqlServerEdition = $sqlServerEdition; + } + /** + * @return self::SQL_SERVER_EDITION_* + */ + public function getSqlServerEdition() + { + return $this->sqlServerEdition; + } + /** + * Optional. 2017 or 2019 or 2022 + * + * Accepted values: SQL_SERVER_VERSION_TYPE_UNSPECIFIED, + * SQL_SERVER_VERSION_TYPE_2017, SQL_SERVER_VERSION_TYPE_2019, + * SQL_SERVER_VERSION_TYPE_2022 + * + * @param self::SQL_SERVER_VERSION_* $sqlServerVersion + */ + public function setSqlServerVersion($sqlServerVersion) + { + $this->sqlServerVersion = $sqlServerVersion; + } + /** + * @return self::SQL_SERVER_VERSION_* + */ + public function getSqlServerVersion() + { + return $this->sqlServerVersion; + } + /** + * Required. should be unique in the project + * + * @param string $vmPrefix + */ + public function setVmPrefix($vmPrefix) + { + $this->vmPrefix = $vmPrefix; + } + /** + * @return string + */ + public function getVmPrefix() + { + return $this->vmPrefix; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SqlServerWorkload::class, 'Google_Service_WorkloadManager_SqlServerWorkload'); diff --git a/src/WorkloadManager/TerraformVariable.php b/src/WorkloadManager/TerraformVariable.php new file mode 100644 index 00000000000..41cd5d01339 --- /dev/null +++ b/src/WorkloadManager/TerraformVariable.php @@ -0,0 +1,48 @@ +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_WorkloadManager_TerraformVariable');