From 276867876f06b83600b7b1d715abc548b79b8ec8 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sat, 21 Mar 2026 18:13:02 -0700 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/AgentCommand.php | 12 +- src/WorkloadManager/AppDetails.php | 383 +++++++++++++ src/WorkloadManager/BigQueryDestination.php | 10 +- src/WorkloadManager/Database.php | 236 +++++++- src/WorkloadManager/DatabaseDetails.php | 226 ++++++++ src/WorkloadManager/Deployment.php | 321 +++++++++++ src/WorkloadManager/DeploymentOutput.php | 70 +++ src/WorkloadManager/Evaluation.php | 103 ++-- src/WorkloadManager/Execution.php | 68 +-- src/WorkloadManager/ExecutionResult.php | 10 +- src/WorkloadManager/ExternalDataSources.php | 16 +- src/WorkloadManager/GceInstanceFilter.php | 6 +- .../ListActuationsResponse.php | 91 +++ .../ListDeploymentsResponse.php | 89 +++ .../ListEvaluationsResponse.php | 2 +- .../ListExecutionsResponse.php | 2 +- src/WorkloadManager/ListRulesResponse.php | 20 +- .../ListScannedResourcesResponse.php | 2 +- src/WorkloadManager/LocationDetails.php | 296 ++++++++++ src/WorkloadManager/Notice.php | 4 +- src/WorkloadManager/Pacemaker.php | 158 ++++++ .../Resource/ProjectsLocationsDeployments.php | 125 ++++ ...ProjectsLocationsDeploymentsActuations.php | 122 ++++ .../Resource/ProjectsLocationsEvaluations.php | 18 +- ...ProjectsLocationsEvaluationsExecutions.php | 13 +- ...sLocationsEvaluationsExecutionsResults.php | 4 +- ...sEvaluationsExecutionsScannedResources.php | 6 +- .../Resource/ProjectsLocationsRules.php | 5 +- src/WorkloadManager/ResourceFilter.php | 26 +- src/WorkloadManager/ResourceStatus.php | 32 +- src/WorkloadManager/Rule.php | 48 +- src/WorkloadManager/RuleExecutionResult.php | 26 +- src/WorkloadManager/RunEvaluationRequest.php | 8 +- src/WorkloadManager/SapSystemS4Config.php | 338 +++++++++++ src/WorkloadManager/ScannedResource.php | 8 +- src/WorkloadManager/ShellCommand.php | 8 +- src/WorkloadManager/SqlLocationDetails.php | 249 ++++++++ src/WorkloadManager/SqlServerWorkload.php | 534 ++++++++++++++++++ src/WorkloadManager/Summary.php | 12 +- src/WorkloadManager/TerraformVariable.php | 48 ++ 44 files changed, 4268 insertions(+), 284 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/AgentCommand.php b/src/WorkloadManager/AgentCommand.php index ee8f6c9763e..61af57dce06 100644 --- a/src/WorkloadManager/AgentCommand.php +++ b/src/WorkloadManager/AgentCommand.php @@ -20,21 +20,21 @@ class AgentCommand extends \Google\Model { /** - * command is the name of the agent one-time executable that will be invoked. + * The name of the agent one-time executable that will be invoked. * * @var string */ public $command; /** - * parameters is a map of key/value pairs that can be used to specify - * additional one-time executable settings. + * A map of key/value pairs that can be used to specify additional one-time + * executable settings. * * @var string[] */ public $parameters; /** - * command is the name of the agent one-time executable that will be invoked. + * The name of the agent one-time executable that will be invoked. * * @param string $command */ @@ -50,8 +50,8 @@ public function getCommand() return $this->command; } /** - * parameters is a map of key/value pairs that can be used to specify - * additional one-time executable settings. + * A map of key/value pairs that can be used to specify additional one-time + * executable settings. * * @param string[] $parameters */ 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/BigQueryDestination.php b/src/WorkloadManager/BigQueryDestination.php index 537b4a4bc96..4d165831596 100644 --- a/src/WorkloadManager/BigQueryDestination.php +++ b/src/WorkloadManager/BigQueryDestination.php @@ -20,20 +20,22 @@ class BigQueryDestination extends \Google\Model { /** - * Optional. determine if results will be saved in a new table + * Optional. Determines if a new results table will be created when an + * Execution is created. * * @var bool */ public $createNewResultsTable; /** - * Optional. destination dataset to save evaluation results + * Optional. Destination dataset to save evaluation results. * * @var string */ public $destinationDataset; /** - * Optional. determine if results will be saved in a new table + * Optional. Determines if a new results table will be created when an + * Execution is created. * * @param bool $createNewResultsTable */ @@ -49,7 +51,7 @@ public function getCreateNewResultsTable() return $this->createNewResultsTable; } /** - * Optional. destination dataset to save evaluation results + * Optional. Destination dataset to save evaluation results. * * @param string $destinationDataset */ 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/Evaluation.php b/src/WorkloadManager/Evaluation.php index 52f0c259aa6..0b7c53ec26b 100644 --- a/src/WorkloadManager/Evaluation.php +++ b/src/WorkloadManager/Evaluation.php @@ -20,32 +20,26 @@ class Evaluation extends \Google\Collection { /** - * Not specified + * Not specified. */ public const EVALUATION_TYPE_EVALUATION_TYPE_UNSPECIFIED = 'EVALUATION_TYPE_UNSPECIFIED'; /** - * SAP best practices + * SAP best practices. */ public const EVALUATION_TYPE_SAP = 'SAP'; /** - * SQL best practices + * SQL best practices. */ public const EVALUATION_TYPE_SQL_SERVER = 'SQL_SERVER'; /** - * Customized best practices + * Customized best practices. */ public const EVALUATION_TYPE_OTHER = 'OTHER'; - /** - * SCC IaC (Infra as Code) best practices. - * - * @deprecated - */ - public const EVALUATION_TYPE_SCC_IAC = 'SCC_IAC'; - protected $collection_key = 'ruleVersions'; + protected $collection_key = 'ruleNames'; protected $bigQueryDestinationType = BigQueryDestination::class; protected $bigQueryDestinationDataType = ''; /** - * Output only. [Output only] Create time stamp + * Output only. [Output only] Create time stamp. * * @var string */ @@ -57,33 +51,34 @@ class Evaluation extends \Google\Collection */ public $customRulesBucket; /** - * Description of the Evaluation + * Description of the Evaluation. * * @var string */ public $description; /** - * Evaluation type + * Evaluation type. * * @var string */ public $evaluationType; /** * Optional. Immutable. Customer-managed encryption key name, in the format - * projects/locations/keyRings/cryptoKeys. + * projects/locations/keyRings/cryptoKeys. The key will be used for CMEK + * encryption of the evaluation resource. * * @var string */ public $kmsKey; /** - * Labels as key value pairs + * Labels as key value pairs. * * @var string[] */ public $labels; /** - * name of resource names have the form - * 'projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}' + * Name of resource that has the form `projects/{project_id}/locations/{locati + * on_id}/evaluations/{evaluation_id}`. * * @var string */ @@ -93,34 +88,31 @@ class Evaluation extends \Google\Collection protected $resourceStatusType = ResourceStatus::class; protected $resourceStatusDataType = ''; /** - * the name of the rule + * The names of the rules used for this evaluation. * * @var string[] */ public $ruleNames; /** - * Output only. [Output only] The updated rule ids if exist. - * - * @var string[] - */ - public $ruleVersions; - /** - * crontab format schedule for scheduled evaluation, currently only support - * the following schedule: "0 1 * * *", "0 6 * * *", "0 12 * * *", "0 0 1 * - * *", "0 0 7 * *", + * Crontab format schedule for scheduled evaluation, currently only supports + * the following fixed schedules: * `0 1 * * *` # Hourly * `0 6 * * *` # Every + * 6 hours * `0 12 * * *` # Every 12 hours * `0 0 1 * *` # Daily * `0 0 7 * *` + * # Weekly * `0 0 14 * *` # Every 14 days * `0 0 1 1 *` # Monthly * * @var string */ public $schedule; /** - * Output only. [Output only] Update time stamp + * Output only. [Output only] Update time stamp. * * @var string */ public $updateTime; /** - * Optional. BigQuery destination + * Optional. The BigQuery destination for detailed evaluation results. If this + * field is specified, the results of each evaluation execution are exported + * to BigQuery. * * @param BigQueryDestination $bigQueryDestination */ @@ -136,7 +128,7 @@ public function getBigQueryDestination() return $this->bigQueryDestination; } /** - * Output only. [Output only] Create time stamp + * Output only. [Output only] Create time stamp. * * @param string $createTime */ @@ -168,7 +160,7 @@ public function getCustomRulesBucket() return $this->customRulesBucket; } /** - * Description of the Evaluation + * Description of the Evaluation. * * @param string $description */ @@ -184,10 +176,9 @@ public function getDescription() return $this->description; } /** - * Evaluation type + * Evaluation type. * - * Accepted values: EVALUATION_TYPE_UNSPECIFIED, SAP, SQL_SERVER, OTHER, - * SCC_IAC + * Accepted values: EVALUATION_TYPE_UNSPECIFIED, SAP, SQL_SERVER, OTHER * * @param self::EVALUATION_TYPE_* $evaluationType */ @@ -204,7 +195,8 @@ public function getEvaluationType() } /** * Optional. Immutable. Customer-managed encryption key name, in the format - * projects/locations/keyRings/cryptoKeys. + * projects/locations/keyRings/cryptoKeys. The key will be used for CMEK + * encryption of the evaluation resource. * * @param string $kmsKey */ @@ -220,7 +212,7 @@ public function getKmsKey() return $this->kmsKey; } /** - * Labels as key value pairs + * Labels as key value pairs. * * @param string[] $labels */ @@ -236,8 +228,8 @@ public function getLabels() return $this->labels; } /** - * name of resource names have the form - * 'projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}' + * Name of resource that has the form `projects/{project_id}/locations/{locati + * on_id}/evaluations/{evaluation_id}`. * * @param string $name */ @@ -253,7 +245,8 @@ public function getName() return $this->name; } /** - * annotations as key value pairs + * Resource filter for an evaluation defining the scope of resources to be + * evaluated. * * @param ResourceFilter $resourceFilter */ @@ -269,7 +262,8 @@ public function getResourceFilter() return $this->resourceFilter; } /** - * Output only. [Output only] The updated rule ids if exist. + * Output only. [Output only] The current lifecycle state of the evaluation + * resource. * * @param ResourceStatus $resourceStatus */ @@ -285,7 +279,7 @@ public function getResourceStatus() return $this->resourceStatus; } /** - * the name of the rule + * The names of the rules used for this evaluation. * * @param string[] $ruleNames */ @@ -301,25 +295,10 @@ public function getRuleNames() return $this->ruleNames; } /** - * Output only. [Output only] The updated rule ids if exist. - * - * @param string[] $ruleVersions - */ - public function setRuleVersions($ruleVersions) - { - $this->ruleVersions = $ruleVersions; - } - /** - * @return string[] - */ - public function getRuleVersions() - { - return $this->ruleVersions; - } - /** - * crontab format schedule for scheduled evaluation, currently only support - * the following schedule: "0 1 * * *", "0 6 * * *", "0 12 * * *", "0 0 1 * - * *", "0 0 7 * *", + * Crontab format schedule for scheduled evaluation, currently only supports + * the following fixed schedules: * `0 1 * * *` # Hourly * `0 6 * * *` # Every + * 6 hours * `0 12 * * *` # Every 12 hours * `0 0 1 * *` # Daily * `0 0 7 * *` + * # Weekly * `0 0 14 * *` # Every 14 days * `0 0 1 1 *` # Monthly * * @param string $schedule */ @@ -335,7 +314,7 @@ public function getSchedule() return $this->schedule; } /** - * Output only. [Output only] Update time stamp + * Output only. [Output only] Update time stamp. * * @param string $updateTime */ diff --git a/src/WorkloadManager/Execution.php b/src/WorkloadManager/Execution.php index ef5ce117203..dd82fdade13 100644 --- a/src/WorkloadManager/Execution.php +++ b/src/WorkloadManager/Execution.php @@ -20,60 +20,60 @@ class Execution extends \Google\Collection { /** - * The original CG + * The original CG. */ public const ENGINE_ENGINE_UNSPECIFIED = 'ENGINE_UNSPECIFIED'; /** - * SlimCG / Scanner + * SlimCG / Scanner. */ public const ENGINE_ENGINE_SCANNER = 'ENGINE_SCANNER'; /** - * Evaluation Engine V2 + * Evaluation Engine V2. */ public const ENGINE_V2 = 'V2'; /** - * type of execution is unspecified + * Type of execution is unspecified. */ public const RUN_TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED'; /** - * type of execution is one time + * Type of execution is one time. */ public const RUN_TYPE_ONE_TIME = 'ONE_TIME'; /** - * type of execution is scheduled + * Type of execution is scheduled. */ public const RUN_TYPE_SCHEDULED = 'SCHEDULED'; /** - * state of execution is unspecified + * State of execution is unspecified. */ public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED'; /** - * the execution is running in backend service + * The execution is running in backend service. */ public const STATE_RUNNING = 'RUNNING'; /** - * the execution run success + * The execution run succeeded. */ public const STATE_SUCCEEDED = 'SUCCEEDED'; /** - * the execution run failed + * The execution run failed. */ public const STATE_FAILED = 'FAILED'; protected $collection_key = 'ruleResults'; /** - * Output only. [Output only] End time stamp + * Output only. [Output only] End time stamp. * * @var string */ public $endTime; /** - * Optional. Engine + * Optional. Engine. * * @var string */ public $engine; /** - * Output only. [Output only] Evaluation ID + * Output only. [Output only] Evaluation ID. * * @var string */ @@ -81,20 +81,20 @@ class Execution extends \Google\Collection protected $externalDataSourcesType = ExternalDataSources::class; protected $externalDataSourcesDataType = 'array'; /** - * Output only. [Output only] Inventory time stamp + * Output only. [Output only] Inventory time stamp. * * @var string */ public $inventoryTime; /** - * Labels as key value pairs + * Labels as key value pairs. * * @var string[] */ public $labels; /** * The name of execution resource. The format is projects/{project}/locations/ - * {location}/evaluations/{evaluation}/executions/{execution} + * {location}/evaluations/{evaluation}/executions/{execution}. * * @var string */ @@ -106,27 +106,27 @@ class Execution extends \Google\Collection protected $ruleResultsType = RuleExecutionResult::class; protected $ruleResultsDataType = 'array'; /** - * type represent whether the execution executed directly by user or scheduled - * according evaluation.schedule field. + * Type which represents whether the execution executed directly by user or + * scheduled according to the `Evaluation.schedule` field. * * @var string */ public $runType; /** - * Output only. [Output only] Start time stamp + * Output only. [Output only] Start time stamp. * * @var string */ public $startTime; /** - * Output only. [Output only] State + * Output only. [Output only] State. * * @var string */ public $state; /** - * Output only. [Output only] End time stamp + * Output only. [Output only] End time stamp. * * @param string $endTime */ @@ -142,7 +142,7 @@ public function getEndTime() return $this->endTime; } /** - * Optional. Engine + * Optional. Engine. * * Accepted values: ENGINE_UNSPECIFIED, ENGINE_SCANNER, V2 * @@ -160,7 +160,7 @@ public function getEngine() return $this->engine; } /** - * Output only. [Output only] Evaluation ID + * Output only. [Output only] Evaluation ID. * * @param string $evaluationId */ @@ -176,7 +176,7 @@ public function getEvaluationId() return $this->evaluationId; } /** - * Optional. External data sources + * Optional. External data sources. * * @param ExternalDataSources[] $externalDataSources */ @@ -192,7 +192,7 @@ public function getExternalDataSources() return $this->externalDataSources; } /** - * Output only. [Output only] Inventory time stamp + * Output only. [Output only] Inventory time stamp. * * @param string $inventoryTime */ @@ -208,7 +208,7 @@ public function getInventoryTime() return $this->inventoryTime; } /** - * Labels as key value pairs + * Labels as key value pairs. * * @param string[] $labels */ @@ -225,7 +225,7 @@ public function getLabels() } /** * The name of execution resource. The format is projects/{project}/locations/ - * {location}/evaluations/{evaluation}/executions/{execution} + * {location}/evaluations/{evaluation}/executions/{execution}. * * @param string $name */ @@ -241,7 +241,7 @@ public function getName() return $this->name; } /** - * Output only. Additional information generated by the execution + * Output only. Additional information generated by the execution. * * @param Notice[] $notices */ @@ -257,7 +257,7 @@ public function getNotices() return $this->notices; } /** - * Output only. [Output only] Result summary for the execution + * Output only. [Output only] Result summary for the execution. * * @param Summary $resultSummary */ @@ -273,7 +273,7 @@ public function getResultSummary() return $this->resultSummary; } /** - * Output only. execution result summary per rule + * Output only. Execution result summary per rule. * * @param RuleExecutionResult[] $ruleResults */ @@ -289,8 +289,8 @@ public function getRuleResults() return $this->ruleResults; } /** - * type represent whether the execution executed directly by user or scheduled - * according evaluation.schedule field. + * Type which represents whether the execution executed directly by user or + * scheduled according to the `Evaluation.schedule` field. * * Accepted values: TYPE_UNSPECIFIED, ONE_TIME, SCHEDULED * @@ -308,7 +308,7 @@ public function getRunType() return $this->runType; } /** - * Output only. [Output only] Start time stamp + * Output only. [Output only] Start time stamp. * * @param string $startTime */ @@ -324,7 +324,7 @@ public function getStartTime() return $this->startTime; } /** - * Output only. [Output only] State + * Output only. [Output only] State. * * Accepted values: STATE_UNSPECIFIED, RUNNING, SUCCEEDED, FAILED * diff --git a/src/WorkloadManager/ExecutionResult.php b/src/WorkloadManager/ExecutionResult.php index 58b9deb5b2e..b64c505e44c 100644 --- a/src/WorkloadManager/ExecutionResult.php +++ b/src/WorkloadManager/ExecutionResult.php @@ -20,15 +20,15 @@ class ExecutionResult extends \Google\Collection { /** - * Unknown state + * Unknown state. */ public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED'; /** - * resource successfully passed the rule + * Resource successfully passed the rule. */ public const TYPE_TYPE_PASSED = 'TYPE_PASSED'; /** - * resource violated the rule + * Resource violated the rule. */ public const TYPE_TYPE_VIOLATED = 'TYPE_VIOLATED'; protected $collection_key = 'commands'; @@ -55,7 +55,7 @@ class ExecutionResult extends \Google\Collection */ public $severity; /** - * Execution result type of the scanned resource + * Execution result type of the scanned resource. * * @var string */ @@ -150,7 +150,7 @@ public function getSeverity() return $this->severity; } /** - * Execution result type of the scanned resource + * Execution result type of the scanned resource. * * Accepted values: TYPE_UNSPECIFIED, TYPE_PASSED, TYPE_VIOLATED * diff --git a/src/WorkloadManager/ExternalDataSources.php b/src/WorkloadManager/ExternalDataSources.php index c86fdde9b5b..fe099e6a238 100644 --- a/src/WorkloadManager/ExternalDataSources.php +++ b/src/WorkloadManager/ExternalDataSources.php @@ -20,11 +20,11 @@ class ExternalDataSources extends \Google\Model { /** - * Unknown type + * Unknown type. */ public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED'; /** - * BigQuery table + * BigQuery table. */ public const TYPE_BIG_QUERY_TABLE = 'BIG_QUERY_TABLE'; /** @@ -39,20 +39,20 @@ class ExternalDataSources extends \Google\Model public $assetType; /** * Optional. Name of external data source. The name will be used inside the - * rego/sql to refer the external data + * rego/sql to refer the external data. * * @var string */ public $name; /** - * Required. Type of external data source + * Required. Type of external data source. * * @var string */ public $type; /** * Required. URI of external data source. example of bq table - * {project_ID}.{dataset_ID}.{table_ID} + * {project_ID}.{dataset_ID}.{table_ID}. * * @var string */ @@ -80,7 +80,7 @@ public function getAssetType() } /** * Optional. Name of external data source. The name will be used inside the - * rego/sql to refer the external data + * rego/sql to refer the external data. * * @param string $name */ @@ -96,7 +96,7 @@ public function getName() return $this->name; } /** - * Required. Type of external data source + * Required. Type of external data source. * * Accepted values: TYPE_UNSPECIFIED, BIG_QUERY_TABLE * @@ -115,7 +115,7 @@ public function getType() } /** * Required. URI of external data source. example of bq table - * {project_ID}.{dataset_ID}.{table_ID} + * {project_ID}.{dataset_ID}.{table_ID}. * * @param string $uri */ diff --git a/src/WorkloadManager/GceInstanceFilter.php b/src/WorkloadManager/GceInstanceFilter.php index 33fea8d6791..a6f2ece29f9 100644 --- a/src/WorkloadManager/GceInstanceFilter.php +++ b/src/WorkloadManager/GceInstanceFilter.php @@ -21,14 +21,16 @@ class GceInstanceFilter extends \Google\Collection { protected $collection_key = 'serviceAccounts'; /** - * Service account of compute engine + * If non-empty, only Compute Engine instances associated with at least one of + * the provided service accounts will be included in the evaluation. * * @var string[] */ public $serviceAccounts; /** - * Service account of compute engine + * If non-empty, only Compute Engine instances associated with at least one of + * the provided service accounts will be included in the evaluation. * * @param string[] $serviceAccounts */ 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/ListEvaluationsResponse.php b/src/WorkloadManager/ListEvaluationsResponse.php index 35f24709bef..ae02a1c1506 100644 --- a/src/WorkloadManager/ListEvaluationsResponse.php +++ b/src/WorkloadManager/ListEvaluationsResponse.php @@ -36,7 +36,7 @@ class ListEvaluationsResponse extends \Google\Collection public $unreachable; /** - * The list of Evaluation + * The list of evaluations. * * @param Evaluation[] $evaluations */ diff --git a/src/WorkloadManager/ListExecutionsResponse.php b/src/WorkloadManager/ListExecutionsResponse.php index f24aea20c69..d482e1f7ab5 100644 --- a/src/WorkloadManager/ListExecutionsResponse.php +++ b/src/WorkloadManager/ListExecutionsResponse.php @@ -36,7 +36,7 @@ class ListExecutionsResponse extends \Google\Collection public $unreachable; /** - * The list of Execution + * The list of Execution. * * @param Execution[] $executions */ diff --git a/src/WorkloadManager/ListRulesResponse.php b/src/WorkloadManager/ListRulesResponse.php index cb9e9d358e4..993dd0160f1 100644 --- a/src/WorkloadManager/ListRulesResponse.php +++ b/src/WorkloadManager/ListRulesResponse.php @@ -20,29 +20,11 @@ class ListRulesResponse extends \Google\Collection { protected $collection_key = 'rules'; - protected $invalidRulesWrapperType = InvalidRulesWrapper::class; - protected $invalidRulesWrapperDataType = ''; protected $rulesType = Rule::class; protected $rulesDataType = 'array'; /** - * A wrapper of the invalid rules that failed to be validated. - * - * @param InvalidRulesWrapper $invalidRulesWrapper - */ - public function setInvalidRulesWrapper(InvalidRulesWrapper $invalidRulesWrapper) - { - $this->invalidRulesWrapper = $invalidRulesWrapper; - } - /** - * @return InvalidRulesWrapper - */ - public function getInvalidRulesWrapper() - { - return $this->invalidRulesWrapper; - } - /** - * all rules in response + * All rules in response. * * @param Rule[] $rules */ diff --git a/src/WorkloadManager/ListScannedResourcesResponse.php b/src/WorkloadManager/ListScannedResourcesResponse.php index 8abb7ed5031..97a75fa4525 100644 --- a/src/WorkloadManager/ListScannedResourcesResponse.php +++ b/src/WorkloadManager/ListScannedResourcesResponse.php @@ -48,7 +48,7 @@ public function getNextPageToken() return $this->nextPageToken; } /** - * All scanned resources in response + * All scanned resources in response. * * @param ScannedResource[] $scannedResources */ 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/Notice.php b/src/WorkloadManager/Notice.php index a7bde6050e7..294744bafab 100644 --- a/src/WorkloadManager/Notice.php +++ b/src/WorkloadManager/Notice.php @@ -20,14 +20,14 @@ class Notice extends \Google\Model { /** - * Output only. Message of the notice + * Output only. Message of the notice. * * @var string */ public $message; /** - * Output only. Message of the notice + * Output only. Message of the notice. * * @param string $message */ 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/Resource/ProjectsLocationsEvaluations.php b/src/WorkloadManager/Resource/ProjectsLocationsEvaluations.php index c136b998f73..09c292117ee 100644 --- a/src/WorkloadManager/Resource/ProjectsLocationsEvaluations.php +++ b/src/WorkloadManager/Resource/ProjectsLocationsEvaluations.php @@ -36,11 +36,11 @@ class ProjectsLocationsEvaluations extends \Google\Service\Resource * (evaluations.create) * * @param string $parent Required. The resource prefix of the evaluation - * location using the form: `projects/{project_id}/locations/{location_id}` + * location using the form: `projects/{project_id}/locations/{location_id}`. * @param Evaluation $postBody * @param array $optParams Optional parameters. * - * @opt_param string evaluationId Required. Id of the requesting object + * @opt_param string evaluationId Required. Id of the requesting object. * @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. @@ -64,11 +64,11 @@ public function create($parent, Evaluation $postBody, $optParams = []) /** * Deletes a single Evaluation. (evaluations.delete) * - * @param string $name Required. Name of the resource + * @param string $name Required. Name of the resource. * @param array $optParams Optional parameters. * * @opt_param bool force Optional. Followed the best practice from - * https://aip.dev/135#cascading-delete + * https://aip.dev/135#cascading-delete. * @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. @@ -92,7 +92,7 @@ public function delete($name, $optParams = []) /** * Gets details of a single Evaluation. (evaluations.get) * - * @param string $name Required. Name of the resource + * @param string $name Required. Name of the resource. * @param array $optParams Optional parameters. * @return Evaluation * @throws \Google\Service\Exception @@ -107,12 +107,12 @@ public function get($name, $optParams = []) * Lists Evaluations in a given project and location. * (evaluations.listProjectsLocationsEvaluations) * - * @param string $parent Required. Parent value for ListEvaluationsRequest + * @param string $parent Required. Parent value for ListEvaluationsRequest. * @param array $optParams Optional parameters. * * @opt_param string filter Filter to be applied when listing the evaluation * results. - * @opt_param string orderBy Hint for how to order the results + * @opt_param string orderBy Hint for how to order the results. * @opt_param int pageSize Requested page size. Server may return fewer items * than requested. If unspecified, server will pick an appropriate default. * @opt_param string pageToken A token identifying a page of results the server @@ -129,8 +129,8 @@ public function listProjectsLocationsEvaluations($parent, $optParams = []) /** * Updates the parameters of a single Evaluation. (evaluations.patch) * - * @param string $name name of resource names have the form - * 'projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}' + * @param string $name Name of resource that has the form + * `projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}`. * @param Evaluation $postBody * @param array $optParams Optional parameters. * diff --git a/src/WorkloadManager/Resource/ProjectsLocationsEvaluationsExecutions.php b/src/WorkloadManager/Resource/ProjectsLocationsEvaluationsExecutions.php index 6a2f50510af..c48a3a42528 100644 --- a/src/WorkloadManager/Resource/ProjectsLocationsEvaluationsExecutions.php +++ b/src/WorkloadManager/Resource/ProjectsLocationsEvaluationsExecutions.php @@ -35,7 +35,7 @@ class ProjectsLocationsEvaluationsExecutions extends \Google\Service\Resource /** * Deletes a single Execution. (executions.delete) * - * @param string $name Required. Name of the resource + * @param string $name Required. Name of the resource. * @param array $optParams Optional parameters. * * @opt_param string requestId Optional. An optional request ID to identify @@ -61,7 +61,7 @@ public function delete($name, $optParams = []) /** * Gets details of a single Execution. (executions.get) * - * @param string $name Required. Name of the resource + * @param string $name Required. Name of the resource. * @param array $optParams Optional parameters. * @return Execution * @throws \Google\Service\Exception @@ -77,10 +77,10 @@ public function get($name, $optParams = []) * (executions.listProjectsLocationsEvaluationsExecutions) * * @param string $parent Required. The resource prefix of the Execution using - * the form: 'projects/{project}/locations/{location}/evaluations/{evaluation}' + * the form: `projects/{project}/locations/{location}/evaluations/{evaluation}`. * @param array $optParams Optional parameters. * - * @opt_param string filter Filtering results + * @opt_param string filter Filtering results. * @opt_param string orderBy Field to sort by. See * https://google.aip.dev/132#ordering for more details. * @opt_param int pageSize Requested page size. Server may return fewer items @@ -99,9 +99,8 @@ public function listProjectsLocationsEvaluationsExecutions($parent, $optParams = /** * Creates a new Execution in a given project and location. (executions.run) * - * @param string $name Required. The resource name of the Execution using the - * form: 'projects/{project}/locations/{location}/evaluations/{evaluation}/execu - * tions/{execution}' + * @param string $name Required. The resource name of the Evaluation using the + * form: `projects/{project}/locations/{location}/evaluations/{evaluation}`. * @param RunEvaluationRequest $postBody * @param array $optParams Optional parameters. * @return Operation diff --git a/src/WorkloadManager/Resource/ProjectsLocationsEvaluationsExecutionsResults.php b/src/WorkloadManager/Resource/ProjectsLocationsEvaluationsExecutionsResults.php index 04c36538866..1af03d5c63f 100644 --- a/src/WorkloadManager/Resource/ProjectsLocationsEvaluationsExecutionsResults.php +++ b/src/WorkloadManager/Resource/ProjectsLocationsEvaluationsExecutionsResults.php @@ -34,10 +34,10 @@ class ProjectsLocationsEvaluationsExecutionsResults extends \Google\Service\Reso * (results.listProjectsLocationsEvaluationsExecutionsResults) * * @param string $parent Required. The execution results. Format: - * {parent}/evaluations/executions/results + * {parent}/evaluations/executions/results. * @param array $optParams Optional parameters. * - * @opt_param string filter Filtering results + * @opt_param string filter Filtering results. * @opt_param int pageSize Requested page size. Server may return fewer items * than requested. If unspecified, server will pick an appropriate default. * @opt_param string pageToken A token identifying a page of results the server diff --git a/src/WorkloadManager/Resource/ProjectsLocationsEvaluationsExecutionsScannedResources.php b/src/WorkloadManager/Resource/ProjectsLocationsEvaluationsExecutionsScannedResources.php index cd10f538c12..572e79438dc 100644 --- a/src/WorkloadManager/Resource/ProjectsLocationsEvaluationsExecutionsScannedResources.php +++ b/src/WorkloadManager/Resource/ProjectsLocationsEvaluationsExecutionsScannedResources.php @@ -33,17 +33,17 @@ class ProjectsLocationsEvaluationsExecutionsScannedResources extends \Google\Ser * List all scanned resources for a single Execution. * (scannedResources.listProjectsLocationsEvaluationsExecutionsScannedResources) * - * @param string $parent Required. parent for ListScannedResourcesRequest + * @param string $parent Required. Parent for ListScannedResourcesRequest. * @param array $optParams Optional parameters. * - * @opt_param string filter Filtering results + * @opt_param string filter Filtering results. * @opt_param string orderBy Field to sort by. See * https://google.aip.dev/132#ordering for more details. * @opt_param int pageSize Requested page size. Server may return fewer items * than requested. If unspecified, server will pick an appropriate default. * @opt_param string pageToken A token identifying a page of results the server * should return. - * @opt_param string rule rule name + * @opt_param string rule Rule name. * @return ListScannedResourcesResponse * @throws \Google\Service\Exception */ diff --git a/src/WorkloadManager/Resource/ProjectsLocationsRules.php b/src/WorkloadManager/Resource/ProjectsLocationsRules.php index dd11c09124d..b7117072aa3 100644 --- a/src/WorkloadManager/Resource/ProjectsLocationsRules.php +++ b/src/WorkloadManager/Resource/ProjectsLocationsRules.php @@ -34,14 +34,15 @@ class ProjectsLocationsRules extends \Google\Service\Resource * * @param string $parent Required. The [project] on which to execute the * request. The format is: projects/{project_id}/locations/{location} Currently, - * the pre-defined rules are global available to all projects and all regions + * the pre-defined rules are global available to all projects and all regions. * @param array $optParams Optional parameters. * * @opt_param string customRulesBucket The Cloud Storage bucket name for custom * rules. * @opt_param string evaluationType Optional. The evaluation type of the rules * will be applied to. The Cloud Storage bucket name for custom rules. - * @opt_param string filter Filter based on primary_category, secondary_category + * @opt_param string filter Filter based on primary_category, + * secondary_category. * @opt_param int pageSize Requested page size. Server may return fewer items * than requested. If unspecified, server will pick an appropriate default. * @opt_param string pageToken A token identifying a page of results the server diff --git a/src/WorkloadManager/ResourceFilter.php b/src/WorkloadManager/ResourceFilter.php index d410ec7eb25..984c4ad6111 100644 --- a/src/WorkloadManager/ResourceFilter.php +++ b/src/WorkloadManager/ResourceFilter.php @@ -23,26 +23,32 @@ class ResourceFilter extends \Google\Collection protected $gceInstanceFilterType = GceInstanceFilter::class; protected $gceInstanceFilterDataType = ''; /** - * The label used for filter resource + * Labels to filter resources by. Each key-value pair in the map must exist on + * the resource for it to be included (e.g. VM instance labels). For example, + * specifying `{ "env": "prod", "database": "nosql" }` will only include + * resources that have labels `env=prod` and `database=nosql`. * * @var string[] */ public $inclusionLabels; /** - * The id pattern for filter resource + * The pattern to filter resources by their id For example, a pattern of + * ".*prod-cluster.*" will match all resources that contain "prod-cluster" in + * their ID. * * @var string[] */ public $resourceIdPatterns; /** - * The scopes of evaluation resource + * The scopes of evaluation resource. Format: * `projects/{project_id}` * + * `folders/{folder_id}` * `organizations/{organization_id}` * * @var string[] */ public $scopes; /** - * Filter compute engine resource + * Filter compute engine resources. * * @param GceInstanceFilter $gceInstanceFilter */ @@ -58,7 +64,10 @@ public function getGceInstanceFilter() return $this->gceInstanceFilter; } /** - * The label used for filter resource + * Labels to filter resources by. Each key-value pair in the map must exist on + * the resource for it to be included (e.g. VM instance labels). For example, + * specifying `{ "env": "prod", "database": "nosql" }` will only include + * resources that have labels `env=prod` and `database=nosql`. * * @param string[] $inclusionLabels */ @@ -74,7 +83,9 @@ public function getInclusionLabels() return $this->inclusionLabels; } /** - * The id pattern for filter resource + * The pattern to filter resources by their id For example, a pattern of + * ".*prod-cluster.*" will match all resources that contain "prod-cluster" in + * their ID. * * @param string[] $resourceIdPatterns */ @@ -90,7 +101,8 @@ public function getResourceIdPatterns() return $this->resourceIdPatterns; } /** - * The scopes of evaluation resource + * The scopes of evaluation resource. Format: * `projects/{project_id}` * + * `folders/{folder_id}` * `organizations/{organization_id}` * * @param string[] $scopes */ diff --git a/src/WorkloadManager/ResourceStatus.php b/src/WorkloadManager/ResourceStatus.php index fb6103c89ba..def5d500303 100644 --- a/src/WorkloadManager/ResourceStatus.php +++ b/src/WorkloadManager/ResourceStatus.php @@ -17,7 +17,7 @@ namespace Google\Service\WorkloadManager; -class ResourceStatus extends \Google\Collection +class ResourceStatus extends \Google\Model { /** * The state has not been populated in this message. @@ -36,41 +36,15 @@ class ResourceStatus extends \Google\Collection * Resource has an active Delete operation. */ public const STATE_DELETING = 'DELETING'; - protected $collection_key = 'rulesNewerVersions'; /** - * Historical: Used before 2023-05-22 the new version of rule id if exists - * - * @deprecated - * @var string[] - */ - public $rulesNewerVersions; - /** - * State of the resource + * State of the Evaluation resource. * * @var string */ public $state; /** - * Historical: Used before 2023-05-22 the new version of rule id if exists - * - * @deprecated - * @param string[] $rulesNewerVersions - */ - public function setRulesNewerVersions($rulesNewerVersions) - { - $this->rulesNewerVersions = $rulesNewerVersions; - } - /** - * @deprecated - * @return string[] - */ - public function getRulesNewerVersions() - { - return $this->rulesNewerVersions; - } - /** - * State of the resource + * State of the Evaluation resource. * * Accepted values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING * diff --git a/src/WorkloadManager/Rule.php b/src/WorkloadManager/Rule.php index 3ccc8e5a368..264029fc118 100644 --- a/src/WorkloadManager/Rule.php +++ b/src/WorkloadManager/Rule.php @@ -24,11 +24,11 @@ class Rule extends \Google\Collection */ public const RULE_TYPE_RULE_TYPE_UNSPECIFIED = 'RULE_TYPE_UNSPECIFIED'; /** - * Baseline rules + * Baseline rules. */ public const RULE_TYPE_BASELINE = 'BASELINE'; /** - * Custom rules + * Custom rules. */ public const RULE_TYPE_CUSTOM = 'CUSTOM'; protected $collection_key = 'tags'; @@ -40,43 +40,43 @@ class Rule extends \Google\Collection */ public $assetType; /** - * descrite rule in plain language + * Describe rule in plain language. * * @var string */ public $description; /** - * the name display in UI + * The name display in UI. * * @var string */ public $displayName; /** - * the message template for rule + * The message template for rule. * * @var string */ public $errorMessage; /** - * rule name + * Rule name. * * @var string */ public $name; /** - * the primary category + * The primary category. * * @var string */ public $primaryCategory; /** - * the remediation for the rule + * The remediation for the rule. * * @var string */ public $remediation; /** - * Output only. the version of the rule + * Output only. The version of the rule. * * @var string */ @@ -88,25 +88,25 @@ class Rule extends \Google\Collection */ public $ruleType; /** - * the secondary category + * The secondary category. * * @var string */ public $secondaryCategory; /** - * the severity of the rule + * The severity of the rule. * * @var string */ public $severity; /** - * List of user-defined tags + * List of user-defined tags. * * @var string[] */ public $tags; /** - * the docuement url for the rule + * The document url for the rule. * * @var string */ @@ -130,7 +130,7 @@ public function getAssetType() return $this->assetType; } /** - * descrite rule in plain language + * Describe rule in plain language. * * @param string $description */ @@ -146,7 +146,7 @@ public function getDescription() return $this->description; } /** - * the name display in UI + * The name display in UI. * * @param string $displayName */ @@ -162,7 +162,7 @@ public function getDisplayName() return $this->displayName; } /** - * the message template for rule + * The message template for rule. * * @param string $errorMessage */ @@ -178,7 +178,7 @@ public function getErrorMessage() return $this->errorMessage; } /** - * rule name + * Rule name. * * @param string $name */ @@ -194,7 +194,7 @@ public function getName() return $this->name; } /** - * the primary category + * The primary category. * * @param string $primaryCategory */ @@ -210,7 +210,7 @@ public function getPrimaryCategory() return $this->primaryCategory; } /** - * the remediation for the rule + * The remediation for the rule. * * @param string $remediation */ @@ -226,7 +226,7 @@ public function getRemediation() return $this->remediation; } /** - * Output only. the version of the rule + * Output only. The version of the rule. * * @param string $revisionId */ @@ -260,7 +260,7 @@ public function getRuleType() return $this->ruleType; } /** - * the secondary category + * The secondary category. * * @param string $secondaryCategory */ @@ -276,7 +276,7 @@ public function getSecondaryCategory() return $this->secondaryCategory; } /** - * the severity of the rule + * The severity of the rule. * * @param string $severity */ @@ -292,7 +292,7 @@ public function getSeverity() return $this->severity; } /** - * List of user-defined tags + * List of user-defined tags. * * @param string[] $tags */ @@ -308,7 +308,7 @@ public function getTags() return $this->tags; } /** - * the docuement url for the rule + * The document url for the rule. * * @param string $uri */ diff --git a/src/WorkloadManager/RuleExecutionResult.php b/src/WorkloadManager/RuleExecutionResult.php index e911becad45..e4e4722274d 100644 --- a/src/WorkloadManager/RuleExecutionResult.php +++ b/src/WorkloadManager/RuleExecutionResult.php @@ -24,50 +24,50 @@ class RuleExecutionResult extends \Google\Model */ public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED'; /** - * execution completed successfully + * Execution completed successfully */ public const STATE_STATE_SUCCESS = 'STATE_SUCCESS'; /** - * execution completed with failures + * Execution completed with failures */ public const STATE_STATE_FAILURE = 'STATE_FAILURE'; /** - * execution was not executed + * Execution was not executed */ public const STATE_STATE_SKIPPED = 'STATE_SKIPPED'; /** - * Execution message, if any + * Execution message, if any. * * @var string */ public $message; /** - * Number of violations + * Number of violations. * * @var string */ public $resultCount; /** - * rule name + * Rule name as plain text like `sap-hana-configured`. * * @var string */ public $rule; /** - * Number of total scanned resources + * Number of total scanned resources. * * @var string */ public $scannedResourceCount; /** - * Output only. The execution status + * Output only. The execution status. * * @var string */ public $state; /** - * Execution message, if any + * Execution message, if any. * * @param string $message */ @@ -83,7 +83,7 @@ public function getMessage() return $this->message; } /** - * Number of violations + * Number of violations. * * @param string $resultCount */ @@ -99,7 +99,7 @@ public function getResultCount() return $this->resultCount; } /** - * rule name + * Rule name as plain text like `sap-hana-configured`. * * @param string $rule */ @@ -115,7 +115,7 @@ public function getRule() return $this->rule; } /** - * Number of total scanned resources + * Number of total scanned resources. * * @param string $scannedResourceCount */ @@ -131,7 +131,7 @@ public function getScannedResourceCount() return $this->scannedResourceCount; } /** - * Output only. The execution status + * Output only. The execution status. * * Accepted values: STATE_UNSPECIFIED, STATE_SUCCESS, STATE_FAILURE, * STATE_SKIPPED diff --git a/src/WorkloadManager/RunEvaluationRequest.php b/src/WorkloadManager/RunEvaluationRequest.php index f9811d693c1..ff530d8a2a4 100644 --- a/src/WorkloadManager/RunEvaluationRequest.php +++ b/src/WorkloadManager/RunEvaluationRequest.php @@ -22,8 +22,7 @@ class RunEvaluationRequest extends \Google\Model protected $executionType = Execution::class; protected $executionDataType = ''; /** - * Required. Id of the requesting object If auto-generating Id server-side, - * remove this field and execution_id from the method_signature of Create RPC + * Required. ID of the execution which will be created. * * @var string */ @@ -46,7 +45,7 @@ class RunEvaluationRequest extends \Google\Model public $requestId; /** - * Required. The resource being created + * Required. The resource being created. * * @param Execution $execution */ @@ -62,8 +61,7 @@ public function getExecution() return $this->execution; } /** - * Required. Id of the requesting object If auto-generating Id server-side, - * remove this field and execution_id from the method_signature of Create RPC + * Required. ID of the execution which will be created. * * @param string $executionId */ 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/ScannedResource.php b/src/WorkloadManager/ScannedResource.php index f448869532d..6304aabc5ad 100644 --- a/src/WorkloadManager/ScannedResource.php +++ b/src/WorkloadManager/ScannedResource.php @@ -20,20 +20,20 @@ class ScannedResource extends \Google\Model { /** - * resource name + * Resource name. * * @var string */ public $resource; /** - * resource type + * Resource type. * * @var string */ public $type; /** - * resource name + * Resource name. * * @param string $resource */ @@ -49,7 +49,7 @@ public function getResource() return $this->resource; } /** - * resource type + * Resource type. * * @param string $type */ diff --git a/src/WorkloadManager/ShellCommand.php b/src/WorkloadManager/ShellCommand.php index c9c9e5d641a..f7e3bef277d 100644 --- a/src/WorkloadManager/ShellCommand.php +++ b/src/WorkloadManager/ShellCommand.php @@ -20,13 +20,13 @@ class ShellCommand extends \Google\Model { /** - * args is a string of arguments to be passed to the command. + * Arguments to be passed to the command. * * @var string */ public $args; /** - * command is the name of the command to be executed. + * The name of the command to be executed. * * @var string */ @@ -39,7 +39,7 @@ class ShellCommand extends \Google\Model public $timeoutSeconds; /** - * args is a string of arguments to be passed to the command. + * Arguments to be passed to the command. * * @param string $args */ @@ -55,7 +55,7 @@ public function getArgs() return $this->args; } /** - * command is the name of the command to be executed. + * The name of the command to be executed. * * @param string $command */ 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/Summary.php b/src/WorkloadManager/Summary.php index 98d6a4be7d2..4d0f95ba0f5 100644 --- a/src/WorkloadManager/Summary.php +++ b/src/WorkloadManager/Summary.php @@ -20,26 +20,26 @@ class Summary extends \Google\Model { /** - * Output only. Number of failures + * Output only. Number of failures. * * @var string */ public $failures; /** - * Output only. Number of new failures compared to the previous execution + * Output only. Number of new failures compared to the previous execution. * * @var string */ public $newFailures; /** - * Output only. Number of new fixes compared to the previous execution + * Output only. Number of new fixes compared to the previous execution. * * @var string */ public $newFixes; /** - * Output only. Number of failures + * Output only. Number of failures. * * @param string $failures */ @@ -55,7 +55,7 @@ public function getFailures() return $this->failures; } /** - * Output only. Number of new failures compared to the previous execution + * Output only. Number of new failures compared to the previous execution. * * @param string $newFailures */ @@ -71,7 +71,7 @@ public function getNewFailures() return $this->newFailures; } /** - * Output only. Number of new fixes compared to the previous execution + * Output only. Number of new fixes compared to the previous execution. * * @param string $newFixes */ 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');