gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class APILayerServer extends \Google\Collection
{
protected $collection_key = 'resources';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $osVersion;
protected $resourcesType = CloudResource::class;
protected $resourcesDataType = 'array';
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setOsVersion($osVersion)
{
$this->osVersion = $osVersion;
}
/**
* @return string
*/
public function getOsVersion()
{
return $this->osVersion;
}
/**
* @param CloudResource[]
*/
public function setResources($resources)
{
$this->resources = $resources;
}
/**
* @return CloudResource[]
*/
public function getResources()
{
return $this->resources;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(APILayerServer::class, 'Google_Service_WorkloadManager_APILayerServer');
@@ -0,0 +1,151 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class ActiveDirectory extends \Google\Model
{
/**
* Unspecified active directory type
*/
public const TYPE_ACTIVE_DIRECTORY_TYPE_UNSPECIFIED = 'ACTIVE_DIRECTORY_TYPE_UNSPECIFIED';
/**
* GCP managed active directory type
*/
public const TYPE_GCP_MANAGED = 'GCP_MANAGED';
/**
* Self managed active directory type
*/
public const TYPE_SELF_MANAGED = 'SELF_MANAGED';
/**
* Optional. DNS IP address
*
* @var string
*/
public $dnsAddress;
/**
* Optional. human readable form of a domain such as “google.com”.
*
* @var string
*/
public $domain;
/**
* Optional. domain username
*
* @var string
*/
public $domainUsername;
/**
* Required. secret_manager_secret
*
* @var string
*/
public $secretManagerSecret;
/**
* Required. active directory type
*
* @var string
*/
public $type;
/**
* Optional. DNS IP address
*
* @param string $dnsAddress
*/
public function setDnsAddress($dnsAddress)
{
$this->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');
@@ -0,0 +1,184 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class Actuation extends \Google\Collection
{
/**
* state unspecified
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* creating infrastructure in backend (terraform applying)
*/
public const STATE_INFRA_CREATING = 'INFRA_CREATING';
/**
* success
*/
public const STATE_SUCCEEDED = 'SUCCEEDED';
/**
* failed either in infra creating, post infra configuring or infra destroying
*/
public const STATE_FAILED = 'FAILED';
/**
* configure workload after infrastructure is ready (ansible running)
*/
public const STATE_POST_INFRA_CONFIGURING = 'POST_INFRA_CONFIGURING';
/**
* destroying infrastructure in backend (terraform destroying)
*/
public const STATE_INFRA_DESTROYING = 'INFRA_DESTROYING';
/**
* ansible is timeout due to losing heartbeat in post infra configuring
*/
public const STATE_TIMEOUT = 'TIMEOUT';
protected $collection_key = 'deploymentOutput';
protected $actuationOutputType = ActuationOutput::class;
protected $actuationOutputDataType = '';
protected $deploymentOutputType = DeploymentOutput::class;
protected $deploymentOutputDataType = 'array';
/**
* Output only. [Output only] End time stamp
*
* @var string
*/
public $endTime;
/**
* The name of actuation resource. The format is projects/{project}/locations/
* {location}/deployments/{deployment}/actuations/{actuation}
*
* @var string
*/
public $name;
/**
* Output only. [Output only] Start time stamp
*
* @var string
*/
public $startTime;
/**
* Output only. [Output only] Actuation state
*
* @var string
*/
public $state;
/**
* Output only. [Output only] Actuation output
*
* @param ActuationOutput $actuationOutput
*/
public function setActuationOutput(ActuationOutput $actuationOutput)
{
$this->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');
@@ -0,0 +1,312 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class ActuationOutput extends \Google\Collection
{
/**
* No error code was specified.
*/
public const ERROR_CODE_ERROR_CODE_UNSPECIFIED = 'ERROR_CODE_UNSPECIFIED';
/**
* general terraform failure
*/
public const ERROR_CODE_TERRAFORM_FAILED = 'TERRAFORM_FAILED';
/**
* permission error in terraform
*/
public const ERROR_CODE_PERMISSION_DENIED_IN_TERRAFORM = 'PERMISSION_DENIED_IN_TERRAFORM';
/**
* quota related error in terraform
*/
public const ERROR_CODE_QUOTA_EXCEED_IN_TERRAFORM = 'QUOTA_EXCEED_IN_TERRAFORM';
/**
* general ansible failure
*/
public const ERROR_CODE_ANSIBLE_FAILED = 'ANSIBLE_FAILED';
/**
* constraint related error in terraform
*/
public const ERROR_CODE_CONSTRAINT_VIOLATION_IN_TERRAFORM = 'CONSTRAINT_VIOLATION_IN_TERRAFORM';
/**
* resource already exists error in terraform
*/
public const ERROR_CODE_RESOURCE_ALREADY_EXISTS_IN_TERRAFORM = 'RESOURCE_ALREADY_EXISTS_IN_TERRAFORM';
/**
* resource not found error in terraform
*/
public const ERROR_CODE_RESOURCE_UNAVAILABLE_IN_TERRAFORM = 'RESOURCE_UNAVAILABLE_IN_TERRAFORM';
/**
* permission denied error in ansible
*/
public const ERROR_CODE_PERMISSION_DENIED_IN_ANSIBLE = 'PERMISSION_DENIED_IN_ANSIBLE';
/**
* secret related error in ansible
*/
public const ERROR_CODE_INVALID_SECRET_IN_ANSIBLE = 'INVALID_SECRET_IN_ANSIBLE';
/**
* general terraform failure during deletion
*/
public const ERROR_CODE_TERRAFORM_DELETION_FAILED = 'TERRAFORM_DELETION_FAILED';
/**
* resource in use error in terraform deletion
*/
public const ERROR_CODE_RESOURCE_IN_USE_IN_TERRAFORM_DELETION = 'RESOURCE_IN_USE_IN_TERRAFORM_DELETION';
/**
* start up failure in ansible
*/
public const ERROR_CODE_ANSIBLE_START_FAILED = 'ANSIBLE_START_FAILED';
protected $collection_key = 'ansibleFailedTask';
/**
* A link to gcs file that store build logs
*
* @var string
*/
public $actuateLogs;
/**
* Output only. error message return from ansible.
*
* @var string
*/
public $ansibleError;
/**
* Output only. failed task name return from ansible.
*
* @var string[]
*/
public $ansibleFailedTask;
/**
* reference to Blueprint Controller deployment and revision resource
*
* @var string
*/
public $blueprintId;
/**
* Cloud Build instance UUID associated with this revision, without any suffix
* or prefix
*
* @var string
*/
public $cloudbuildId;
/**
* Output only. Code describing any errors that may have occurred. If not
* specified, there is no error in actuation.
*
* @var string
*/
public $errorCode;
/**
* A link to actuation cloud build log.
*
* @var string
*/
public $errorLogs;
/**
* Output only. whether the error message is user facing. If true, the error
* message will be shown in the UI.
*
* @var bool
*/
public $hasUserFacingErrorMsg;
/**
* Output only. error message return from terraform.
*
* @var string
*/
public $terraformError;
/**
* reference to terraform template used
*
* @var string
*/
public $terraformTemplate;
/**
* A link to gcs file that store build logs
*
* @param string $actuateLogs
*/
public function setActuateLogs($actuateLogs)
{
$this->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');
@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class AgentCommand extends \Google\Model
{
/**
* The name of the agent one-time executable that will be invoked.
*
* @var string
*/
public $command;
/**
* A map of key/value pairs that can be used to specify additional one-time
* executable settings.
*
* @var string[]
*/
public $parameters;
/**
* The name of the agent one-time executable that will be invoked.
*
* @param string $command
*/
public function setCommand($command)
{
$this->command = $command;
}
/**
* @return string
*/
public function getCommand()
{
return $this->command;
}
/**
* A map of key/value pairs that can be used to specify additional one-time
* executable settings.
*
* @param string[] $parameters
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return string[]
*/
public function getParameters()
{
return $this->parameters;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentCommand::class, 'Google_Service_WorkloadManager_AgentCommand');
@@ -0,0 +1,148 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class AgentStates extends \Google\Model
{
/**
* Optional. The available version of the agent in artifact registry.
*
* @var string
*/
public $availableVersion;
protected $hanaMonitoringType = ServiceStates::class;
protected $hanaMonitoringDataType = '';
/**
* Optional. The installed version of the agent on the host.
*
* @var string
*/
public $installedVersion;
/**
* Optional. Whether the agent is fully enabled. If false, the agent is has
* some issues.
*
* @var bool
*/
public $isFullyEnabled;
protected $processMetricsType = ServiceStates::class;
protected $processMetricsDataType = '';
protected $systemDiscoveryType = ServiceStates::class;
protected $systemDiscoveryDataType = '';
/**
* Optional. The available version of the agent in artifact registry.
*
* @param string $availableVersion
*/
public function setAvailableVersion($availableVersion)
{
$this->availableVersion = $availableVersion;
}
/**
* @return string
*/
public function getAvailableVersion()
{
return $this->availableVersion;
}
/**
* Optional. HANA monitoring metrics of the agent.
*
* @param ServiceStates $hanaMonitoring
*/
public function setHanaMonitoring(ServiceStates $hanaMonitoring)
{
$this->hanaMonitoring = $hanaMonitoring;
}
/**
* @return ServiceStates
*/
public function getHanaMonitoring()
{
return $this->hanaMonitoring;
}
/**
* Optional. The installed version of the agent on the host.
*
* @param string $installedVersion
*/
public function setInstalledVersion($installedVersion)
{
$this->installedVersion = $installedVersion;
}
/**
* @return string
*/
public function getInstalledVersion()
{
return $this->installedVersion;
}
/**
* Optional. Whether the agent is fully enabled. If false, the agent is has
* some issues.
*
* @param bool $isFullyEnabled
*/
public function setIsFullyEnabled($isFullyEnabled)
{
$this->isFullyEnabled = $isFullyEnabled;
}
/**
* @return bool
*/
public function getIsFullyEnabled()
{
return $this->isFullyEnabled;
}
/**
* Optional. The Process metrics of the agent.
*
* @param ServiceStates $processMetrics
*/
public function setProcessMetrics(ServiceStates $processMetrics)
{
$this->processMetrics = $processMetrics;
}
/**
* @return ServiceStates
*/
public function getProcessMetrics()
{
return $this->processMetrics;
}
/**
* Optional. The System discovery metrics of the agent.
*
* @param ServiceStates $systemDiscovery
*/
public function setSystemDiscovery(ServiceStates $systemDiscovery)
{
$this->systemDiscovery = $systemDiscovery;
}
/**
* @return ServiceStates
*/
public function getSystemDiscovery()
{
return $this->systemDiscovery;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentStates::class, 'Google_Service_WorkloadManager_AgentStates');
@@ -0,0 +1,377 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class AgentStatus extends \Google\Collection
{
/**
* The state is unspecified and has not been checked yet.
*/
public const CLOUD_API_ACCESS_FULL_SCOPES_GRANTED_UNSPECIFIED_STATE = 'UNSPECIFIED_STATE';
/**
* The state is successful (enabled, granted, fully functional).
*/
public const CLOUD_API_ACCESS_FULL_SCOPES_GRANTED_SUCCESS_STATE = 'SUCCESS_STATE';
/**
* The state is failed (disabled, denied, not fully functional).
*/
public const CLOUD_API_ACCESS_FULL_SCOPES_GRANTED_FAILURE_STATE = 'FAILURE_STATE';
/**
* There was an internal error while checking the state, state is unknown.
*/
public const CLOUD_API_ACCESS_FULL_SCOPES_GRANTED_ERROR_STATE = 'ERROR_STATE';
/**
* The state is unspecified and has not been checked yet.
*/
public const CONFIGURATION_VALID_UNSPECIFIED_STATE = 'UNSPECIFIED_STATE';
/**
* The state is successful (enabled, granted, fully functional).
*/
public const CONFIGURATION_VALID_SUCCESS_STATE = 'SUCCESS_STATE';
/**
* The state is failed (disabled, denied, not fully functional).
*/
public const CONFIGURATION_VALID_FAILURE_STATE = 'FAILURE_STATE';
/**
* There was an internal error while checking the state, state is unknown.
*/
public const CONFIGURATION_VALID_ERROR_STATE = 'ERROR_STATE';
/**
* The state is unspecified and has not been checked yet.
*/
public const SYSTEMD_SERVICE_ENABLED_UNSPECIFIED_STATE = 'UNSPECIFIED_STATE';
/**
* The state is successful (enabled, granted, fully functional).
*/
public const SYSTEMD_SERVICE_ENABLED_SUCCESS_STATE = 'SUCCESS_STATE';
/**
* The state is failed (disabled, denied, not fully functional).
*/
public const SYSTEMD_SERVICE_ENABLED_FAILURE_STATE = 'FAILURE_STATE';
/**
* There was an internal error while checking the state, state is unknown.
*/
public const SYSTEMD_SERVICE_ENABLED_ERROR_STATE = 'ERROR_STATE';
/**
* The state is unspecified and has not been checked yet.
*/
public const SYSTEMD_SERVICE_RUNNING_UNSPECIFIED_STATE = 'UNSPECIFIED_STATE';
/**
* The state is successful (enabled, granted, fully functional).
*/
public const SYSTEMD_SERVICE_RUNNING_SUCCESS_STATE = 'SUCCESS_STATE';
/**
* The state is failed (disabled, denied, not fully functional).
*/
public const SYSTEMD_SERVICE_RUNNING_FAILURE_STATE = 'FAILURE_STATE';
/**
* There was an internal error while checking the state, state is unknown.
*/
public const SYSTEMD_SERVICE_RUNNING_ERROR_STATE = 'ERROR_STATE';
protected $collection_key = 'services';
/**
* Output only. The name of the agent.
*
* @var string
*/
public $agentName;
/**
* Output only. The available version of the agent in artifact registry.
*
* @var string
*/
public $availableVersion;
/**
* Output only. Whether the agent has full access to Cloud APIs.
*
* @var string
*/
public $cloudApiAccessFullScopesGranted;
/**
* Output only. The error message for the agent configuration if invalid.
*
* @var string
*/
public $configurationErrorMessage;
/**
* Output only. The path to the agent configuration file.
*
* @var string
*/
public $configurationFilePath;
/**
* Output only. Whether the agent configuration is valid.
*
* @var string
*/
public $configurationValid;
/**
* Output only. The installed version of the agent on the host.
*
* @var string
*/
public $installedVersion;
/**
* Output only. The URI of the instance. Format: projects//zones//instances/
*
* @var string
*/
public $instanceUri;
protected $kernelVersionType = SapDiscoveryResourceInstancePropertiesKernelVersion::class;
protected $kernelVersionDataType = '';
protected $referencesType = AgentStatusReference::class;
protected $referencesDataType = 'array';
protected $servicesType = AgentStatusServiceStatus::class;
protected $servicesDataType = 'array';
/**
* Output only. Whether the agent service is enabled in systemd.
*
* @var string
*/
public $systemdServiceEnabled;
/**
* Output only. Whether the agent service is running in systemd.
*
* @var string
*/
public $systemdServiceRunning;
/**
* Output only. The name of the agent.
*
* @param string $agentName
*/
public function setAgentName($agentName)
{
$this->agentName = $agentName;
}
/**
* @return string
*/
public function getAgentName()
{
return $this->agentName;
}
/**
* Output only. The available version of the agent in artifact registry.
*
* @param string $availableVersion
*/
public function setAvailableVersion($availableVersion)
{
$this->availableVersion = $availableVersion;
}
/**
* @return string
*/
public function getAvailableVersion()
{
return $this->availableVersion;
}
/**
* Output only. Whether the agent has full access to Cloud APIs.
*
* Accepted values: UNSPECIFIED_STATE, SUCCESS_STATE, FAILURE_STATE,
* ERROR_STATE
*
* @param self::CLOUD_API_ACCESS_FULL_SCOPES_GRANTED_* $cloudApiAccessFullScopesGranted
*/
public function setCloudApiAccessFullScopesGranted($cloudApiAccessFullScopesGranted)
{
$this->cloudApiAccessFullScopesGranted = $cloudApiAccessFullScopesGranted;
}
/**
* @return self::CLOUD_API_ACCESS_FULL_SCOPES_GRANTED_*
*/
public function getCloudApiAccessFullScopesGranted()
{
return $this->cloudApiAccessFullScopesGranted;
}
/**
* Output only. The error message for the agent configuration if invalid.
*
* @param string $configurationErrorMessage
*/
public function setConfigurationErrorMessage($configurationErrorMessage)
{
$this->configurationErrorMessage = $configurationErrorMessage;
}
/**
* @return string
*/
public function getConfigurationErrorMessage()
{
return $this->configurationErrorMessage;
}
/**
* Output only. The path to the agent configuration file.
*
* @param string $configurationFilePath
*/
public function setConfigurationFilePath($configurationFilePath)
{
$this->configurationFilePath = $configurationFilePath;
}
/**
* @return string
*/
public function getConfigurationFilePath()
{
return $this->configurationFilePath;
}
/**
* Output only. Whether the agent configuration is valid.
*
* Accepted values: UNSPECIFIED_STATE, SUCCESS_STATE, FAILURE_STATE,
* ERROR_STATE
*
* @param self::CONFIGURATION_VALID_* $configurationValid
*/
public function setConfigurationValid($configurationValid)
{
$this->configurationValid = $configurationValid;
}
/**
* @return self::CONFIGURATION_VALID_*
*/
public function getConfigurationValid()
{
return $this->configurationValid;
}
/**
* Output only. The installed version of the agent on the host.
*
* @param string $installedVersion
*/
public function setInstalledVersion($installedVersion)
{
$this->installedVersion = $installedVersion;
}
/**
* @return string
*/
public function getInstalledVersion()
{
return $this->installedVersion;
}
/**
* Output only. The URI of the instance. Format: projects//zones//instances/
*
* @param string $instanceUri
*/
public function setInstanceUri($instanceUri)
{
$this->instanceUri = $instanceUri;
}
/**
* @return string
*/
public function getInstanceUri()
{
return $this->instanceUri;
}
/**
* Output only. The kernel version of the system.
*
* @param SapDiscoveryResourceInstancePropertiesKernelVersion $kernelVersion
*/
public function setKernelVersion(SapDiscoveryResourceInstancePropertiesKernelVersion $kernelVersion)
{
$this->kernelVersion = $kernelVersion;
}
/**
* @return SapDiscoveryResourceInstancePropertiesKernelVersion
*/
public function getKernelVersion()
{
return $this->kernelVersion;
}
/**
* Output only. Optional references to public documentation.
*
* @param AgentStatusReference[] $references
*/
public function setReferences($references)
{
$this->references = $references;
}
/**
* @return AgentStatusReference[]
*/
public function getReferences()
{
return $this->references;
}
/**
* Output only. The services (process metrics, host metrics, etc.).
*
* @param AgentStatusServiceStatus[] $services
*/
public function setServices($services)
{
$this->services = $services;
}
/**
* @return AgentStatusServiceStatus[]
*/
public function getServices()
{
return $this->services;
}
/**
* Output only. Whether the agent service is enabled in systemd.
*
* Accepted values: UNSPECIFIED_STATE, SUCCESS_STATE, FAILURE_STATE,
* ERROR_STATE
*
* @param self::SYSTEMD_SERVICE_ENABLED_* $systemdServiceEnabled
*/
public function setSystemdServiceEnabled($systemdServiceEnabled)
{
$this->systemdServiceEnabled = $systemdServiceEnabled;
}
/**
* @return self::SYSTEMD_SERVICE_ENABLED_*
*/
public function getSystemdServiceEnabled()
{
return $this->systemdServiceEnabled;
}
/**
* Output only. Whether the agent service is running in systemd.
*
* Accepted values: UNSPECIFIED_STATE, SUCCESS_STATE, FAILURE_STATE,
* ERROR_STATE
*
* @param self::SYSTEMD_SERVICE_RUNNING_* $systemdServiceRunning
*/
public function setSystemdServiceRunning($systemdServiceRunning)
{
$this->systemdServiceRunning = $systemdServiceRunning;
}
/**
* @return self::SYSTEMD_SERVICE_RUNNING_*
*/
public function getSystemdServiceRunning()
{
return $this->systemdServiceRunning;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentStatus::class, 'Google_Service_WorkloadManager_AgentStatus');
@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class AgentStatusConfigValue extends \Google\Model
{
/**
* Output only. Whether the configuration value is the default value or
* overridden.
*
* @var bool
*/
public $isDefault;
/**
* Output only. The name of the configuration value.
*
* @var string
*/
public $name;
/**
* Output only. The value of the configuration value.
*
* @var string
*/
public $value;
/**
* Output only. Whether the configuration value is the default value or
* overridden.
*
* @param bool $isDefault
*/
public function setIsDefault($isDefault)
{
$this->isDefault = $isDefault;
}
/**
* @return bool
*/
public function getIsDefault()
{
return $this->isDefault;
}
/**
* Output only. The name of the configuration value.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The value of the configuration value.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentStatusConfigValue::class, 'Google_Service_WorkloadManager_AgentStatusConfigValue');
@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class AgentStatusIAMPermission extends \Google\Model
{
/**
* The state is unspecified and has not been checked yet.
*/
public const GRANTED_UNSPECIFIED_STATE = 'UNSPECIFIED_STATE';
/**
* The state is successful (enabled, granted, fully functional).
*/
public const GRANTED_SUCCESS_STATE = 'SUCCESS_STATE';
/**
* The state is failed (disabled, denied, not fully functional).
*/
public const GRANTED_FAILURE_STATE = 'FAILURE_STATE';
/**
* There was an internal error while checking the state, state is unknown.
*/
public const GRANTED_ERROR_STATE = 'ERROR_STATE';
/**
* Output only. Whether the permission is granted.
*
* @var string
*/
public $granted;
/**
* Output only. The name of the permission.
*
* @var string
*/
public $name;
/**
* Output only. Whether the permission is granted.
*
* Accepted values: UNSPECIFIED_STATE, SUCCESS_STATE, FAILURE_STATE,
* ERROR_STATE
*
* @param self::GRANTED_* $granted
*/
public function setGranted($granted)
{
$this->granted = $granted;
}
/**
* @return self::GRANTED_*
*/
public function getGranted()
{
return $this->granted;
}
/**
* Output only. The name of the permission.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentStatusIAMPermission::class, 'Google_Service_WorkloadManager_AgentStatusIAMPermission');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class AgentStatusReference extends \Google\Model
{
/**
* Output only. The name of the reference.
*
* @var string
*/
public $name;
/**
* Output only. The URL of the reference.
*
* @var string
*/
public $url;
/**
* Output only. The name of the reference.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The URL of the reference.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentStatusReference::class, 'Google_Service_WorkloadManager_AgentStatusReference');
@@ -0,0 +1,215 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class AgentStatusServiceStatus extends \Google\Collection
{
/**
* The state is unspecified and has not been checked yet.
*/
public const FULLY_FUNCTIONAL_UNSPECIFIED_STATE = 'UNSPECIFIED_STATE';
/**
* The state is successful (enabled, granted, fully functional).
*/
public const FULLY_FUNCTIONAL_SUCCESS_STATE = 'SUCCESS_STATE';
/**
* The state is failed (disabled, denied, not fully functional).
*/
public const FULLY_FUNCTIONAL_FAILURE_STATE = 'FAILURE_STATE';
/**
* There was an internal error while checking the state, state is unknown.
*/
public const FULLY_FUNCTIONAL_ERROR_STATE = 'ERROR_STATE';
/**
* The state is unspecified and has not been checked yet.
*/
public const STATE_UNSPECIFIED_STATE = 'UNSPECIFIED_STATE';
/**
* The state is successful (enabled, granted, fully functional).
*/
public const STATE_SUCCESS_STATE = 'SUCCESS_STATE';
/**
* The state is failed (disabled, denied, not fully functional).
*/
public const STATE_FAILURE_STATE = 'FAILURE_STATE';
/**
* There was an internal error while checking the state, state is unknown.
*/
public const STATE_ERROR_STATE = 'ERROR_STATE';
protected $collection_key = 'iamPermissions';
protected $configValuesType = AgentStatusConfigValue::class;
protected $configValuesDataType = 'array';
/**
* Output only. The error message for the service if it is not fully
* functional.
*
* @var string
*/
public $errorMessage;
/**
* Output only. Whether the service is fully functional (all checks passed).
*
* @var string
*/
public $fullyFunctional;
protected $iamPermissionsType = AgentStatusIAMPermission::class;
protected $iamPermissionsDataType = 'array';
/**
* Output only. The name of the service.
*
* @var string
*/
public $name;
/**
* Output only. The state of the service (enabled or disabled in the
* configuration).
*
* @var string
*/
public $state;
/**
* Output only. The message to display when the service state is unspecified.
*
* @var string
*/
public $unspecifiedStateMessage;
/**
* Output only. The configuration values for the service.
*
* @param AgentStatusConfigValue[] $configValues
*/
public function setConfigValues($configValues)
{
$this->configValues = $configValues;
}
/**
* @return AgentStatusConfigValue[]
*/
public function getConfigValues()
{
return $this->configValues;
}
/**
* Output only. The error message for the service if it is not fully
* functional.
*
* @param string $errorMessage
*/
public function setErrorMessage($errorMessage)
{
$this->errorMessage = $errorMessage;
}
/**
* @return string
*/
public function getErrorMessage()
{
return $this->errorMessage;
}
/**
* Output only. Whether the service is fully functional (all checks passed).
*
* Accepted values: UNSPECIFIED_STATE, SUCCESS_STATE, FAILURE_STATE,
* ERROR_STATE
*
* @param self::FULLY_FUNCTIONAL_* $fullyFunctional
*/
public function setFullyFunctional($fullyFunctional)
{
$this->fullyFunctional = $fullyFunctional;
}
/**
* @return self::FULLY_FUNCTIONAL_*
*/
public function getFullyFunctional()
{
return $this->fullyFunctional;
}
/**
* Output only. The permissions required for the service.
*
* @param AgentStatusIAMPermission[] $iamPermissions
*/
public function setIamPermissions($iamPermissions)
{
$this->iamPermissions = $iamPermissions;
}
/**
* @return AgentStatusIAMPermission[]
*/
public function getIamPermissions()
{
return $this->iamPermissions;
}
/**
* Output only. The name of the service.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The state of the service (enabled or disabled in the
* configuration).
*
* Accepted values: UNSPECIFIED_STATE, SUCCESS_STATE, FAILURE_STATE,
* ERROR_STATE
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The message to display when the service state is unspecified.
*
* @param string $unspecifiedStateMessage
*/
public function setUnspecifiedStateMessage($unspecifiedStateMessage)
{
$this->unspecifiedStateMessage = $unspecifiedStateMessage;
}
/**
* @return string
*/
public function getUnspecifiedStateMessage()
{
return $this->unspecifiedStateMessage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentStatusServiceStatus::class, 'Google_Service_WorkloadManager_AgentStatusServiceStatus');
@@ -0,0 +1,383 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class AppDetails extends \Google\Collection
{
protected $collection_key = 'appVmNames';
/**
* Optional. instance id for app
*
* @var string
*/
public $appInstanceId;
/**
* Application service account - let custoemrs bring their own SA for
* application
*
* @var string
*/
public $appServiceAccount;
/**
* Optional. Customized vm names
*
* @var string[]
*/
public $appVmNames;
/**
* Required. image for ascs server
*
* @var string
*/
public $ascsImage;
/**
* Optional. instance id for ascs
*
* @var string
*/
public $ascsInstanceId;
/**
* Required. ascs_machine_type
*
* @var string
*/
public $ascsMachineType;
/**
* ASCS service account - let custoemrs bring their own SA for ASCS
*
* @var string
*/
public $ascsServiceAccount;
/**
* Optional. ASCS vm name
*
* @var string
*/
public $ascsVm;
/**
* Optional. instance id for ers
*
* @var string
*/
public $ersInstanceId;
/**
* Optional. ERS vm name
*
* @var string
*/
public $ersVm;
/**
* Required. image for app server and ascs server
*
* @var string
*/
public $image;
/**
* Required. machine type
*
* @var string
*/
public $machineType;
/**
* Required. secret_manager_secret
*
* @var string
*/
public $secretManagerSecret;
/**
* Optional. Storage location
*
* @var string
*/
public $sharedStorage;
/**
* Required. The SAP SID is a three-digit server-specific unique
* identification code.
*
* @var string
*/
public $sid;
/**
* Required. vms_multiplier
*
* @var int
*/
public $vmsMultiplier;
/**
* Optional. instance id for app
*
* @param string $appInstanceId
*/
public function setAppInstanceId($appInstanceId)
{
$this->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');
@@ -0,0 +1,109 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class AssetLocation extends \Google\Collection
{
protected $collection_key = 'parentAsset';
/**
* @var string
*/
public $ccfeRmsPath;
protected $expectedType = IsolationExpectations::class;
protected $expectedDataType = '';
protected $extraParametersType = ExtraParameter::class;
protected $extraParametersDataType = 'array';
protected $locationDataType = LocationData::class;
protected $locationDataDataType = 'array';
protected $parentAssetType = CloudAsset::class;
protected $parentAssetDataType = 'array';
/**
* @param string
*/
public function setCcfeRmsPath($ccfeRmsPath)
{
$this->ccfeRmsPath = $ccfeRmsPath;
}
/**
* @return string
*/
public function getCcfeRmsPath()
{
return $this->ccfeRmsPath;
}
/**
* @param IsolationExpectations
*/
public function setExpected(IsolationExpectations $expected)
{
$this->expected = $expected;
}
/**
* @return IsolationExpectations
*/
public function getExpected()
{
return $this->expected;
}
/**
* @param ExtraParameter[]
*/
public function setExtraParameters($extraParameters)
{
$this->extraParameters = $extraParameters;
}
/**
* @return ExtraParameter[]
*/
public function getExtraParameters()
{
return $this->extraParameters;
}
/**
* @param LocationData[]
*/
public function setLocationData($locationData)
{
$this->locationData = $locationData;
}
/**
* @return LocationData[]
*/
public function getLocationData()
{
return $this->locationData;
}
/**
* @param CloudAsset[]
*/
public function setParentAsset($parentAsset)
{
$this->parentAsset = $parentAsset;
}
/**
* @return CloudAsset[]
*/
public function getParentAsset()
{
return $this->parentAsset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AssetLocation::class, 'Google_Service_WorkloadManager_AssetLocation');
@@ -0,0 +1,99 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class AvailabilityGroup extends \Google\Collection
{
protected $collection_key = 'secondaryServers';
/**
* @var string[]
*/
public $databases;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $primaryServer;
/**
* @var string[]
*/
public $secondaryServers;
/**
* @param string[]
*/
public function setDatabases($databases)
{
$this->databases = $databases;
}
/**
* @return string[]
*/
public function getDatabases()
{
return $this->databases;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPrimaryServer($primaryServer)
{
$this->primaryServer = $primaryServer;
}
/**
* @return string
*/
public function getPrimaryServer()
{
return $this->primaryServer;
}
/**
* @param string[]
*/
public function setSecondaryServers($secondaryServers)
{
$this->secondaryServers = $secondaryServers;
}
/**
* @return string[]
*/
public function getSecondaryServers()
{
return $this->secondaryServers;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AvailabilityGroup::class, 'Google_Service_WorkloadManager_AvailabilityGroup');
@@ -0,0 +1,115 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class BackendServer extends \Google\Collection
{
protected $collection_key = 'resources';
/**
* @var string
*/
public $backupFile;
/**
* @var string
*/
public $backupSchedule;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $osVersion;
protected $resourcesType = CloudResource::class;
protected $resourcesDataType = 'array';
/**
* @param string
*/
public function setBackupFile($backupFile)
{
$this->backupFile = $backupFile;
}
/**
* @return string
*/
public function getBackupFile()
{
return $this->backupFile;
}
/**
* @param string
*/
public function setBackupSchedule($backupSchedule)
{
$this->backupSchedule = $backupSchedule;
}
/**
* @return string
*/
public function getBackupSchedule()
{
return $this->backupSchedule;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setOsVersion($osVersion)
{
$this->osVersion = $osVersion;
}
/**
* @return string
*/
public function getOsVersion()
{
return $this->osVersion;
}
/**
* @param CloudResource[]
*/
public function setResources($resources)
{
$this->resources = $resources;
}
/**
* @return CloudResource[]
*/
public function getResources()
{
return $this->resources;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendServer::class, 'Google_Service_WorkloadManager_BackendServer');
@@ -0,0 +1,85 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class BackupProperties extends \Google\Model
{
/**
* unspecified
*/
public const LATEST_BACKUP_STATUS_BACKUP_STATE_UNSPECIFIED = 'BACKUP_STATE_UNSPECIFIED';
/**
* SUCCESS state
*/
public const LATEST_BACKUP_STATUS_BACKUP_STATE_SUCCESS = 'BACKUP_STATE_SUCCESS';
/**
* FAILURE state
*/
public const LATEST_BACKUP_STATUS_BACKUP_STATE_FAILURE = 'BACKUP_STATE_FAILURE';
/**
* Output only. The state of the latest backup.
*
* @var string
*/
public $latestBackupStatus;
/**
* The time when the latest backup was performed.
*
* @var string
*/
public $latestBackupTime;
/**
* Output only. The state of the latest backup.
*
* Accepted values: BACKUP_STATE_UNSPECIFIED, BACKUP_STATE_SUCCESS,
* BACKUP_STATE_FAILURE
*
* @param self::LATEST_BACKUP_STATUS_* $latestBackupStatus
*/
public function setLatestBackupStatus($latestBackupStatus)
{
$this->latestBackupStatus = $latestBackupStatus;
}
/**
* @return self::LATEST_BACKUP_STATUS_*
*/
public function getLatestBackupStatus()
{
return $this->latestBackupStatus;
}
/**
* The time when the latest backup was performed.
*
* @param string $latestBackupTime
*/
public function setLatestBackupTime($latestBackupTime)
{
$this->latestBackupTime = $latestBackupTime;
}
/**
* @return string
*/
public function getLatestBackupTime()
{
return $this->latestBackupTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupProperties::class, 'Google_Service_WorkloadManager_BackupProperties');
@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class BigQueryDestination extends \Google\Model
{
/**
* 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.
*
* @var string
*/
public $destinationDataset;
/**
* Optional. Determines if a new results table will be created when an
* Execution is created.
*
* @param bool $createNewResultsTable
*/
public function setCreateNewResultsTable($createNewResultsTable)
{
$this->createNewResultsTable = $createNewResultsTable;
}
/**
* @return bool
*/
public function getCreateNewResultsTable()
{
return $this->createNewResultsTable;
}
/**
* Optional. Destination dataset to save evaluation results.
*
* @param string $destinationDataset
*/
public function setDestinationDataset($destinationDataset)
{
$this->destinationDataset = $destinationDataset;
}
/**
* @return string
*/
public function getDestinationDataset()
{
return $this->destinationDataset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BigQueryDestination::class, 'Google_Service_WorkloadManager_BigQueryDestination');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class BlobstoreLocation extends \Google\Collection
{
protected $collection_key = 'policyId';
/**
* @var string[]
*/
public $policyId;
/**
* @param string[]
*/
public function setPolicyId($policyId)
{
$this->policyId = $policyId;
}
/**
* @return string[]
*/
public function getPolicyId()
{
return $this->policyId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BlobstoreLocation::class, 'Google_Service_WorkloadManager_BlobstoreLocation');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_WorkloadManager_CancelOperationRequest');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class CloudAsset extends \Google\Model
{
/**
* @var string
*/
public $assetName;
/**
* @var string
*/
public $assetType;
/**
* @param string
*/
public function setAssetName($assetName)
{
$this->assetName = $assetName;
}
/**
* @return string
*/
public function getAssetName()
{
return $this->assetName;
}
/**
* @param string
*/
public function setAssetType($assetType)
{
$this->assetType = $assetType;
}
/**
* @return string
*/
public function getAssetType()
{
return $this->assetType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudAsset::class, 'Google_Service_WorkloadManager_CloudAsset');
@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class CloudAssetComposition extends \Google\Collection
{
protected $collection_key = 'childAsset';
protected $childAssetType = CloudAsset::class;
protected $childAssetDataType = 'array';
/**
* @param CloudAsset[]
*/
public function setChildAsset($childAsset)
{
$this->childAsset = $childAsset;
}
/**
* @return CloudAsset[]
*/
public function getChildAsset()
{
return $this->childAsset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudAssetComposition::class, 'Google_Service_WorkloadManager_CloudAssetComposition');
@@ -0,0 +1,145 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class CloudResource extends \Google\Model
{
/**
* Unspecified resource kind.
*/
public const KIND_RESOURCE_KIND_UNSPECIFIED = 'RESOURCE_KIND_UNSPECIFIED';
/**
* This is a compute instance.
*/
public const KIND_RESOURCE_KIND_INSTANCE = 'RESOURCE_KIND_INSTANCE';
/**
* This is a compute disk.
*/
public const KIND_RESOURCE_KIND_DISK = 'RESOURCE_KIND_DISK';
/**
* This is a compute address.
*/
public const KIND_RESOURCE_KIND_ADDRESS = 'RESOURCE_KIND_ADDRESS';
/**
* This is a filestore instance.
*/
public const KIND_RESOURCE_KIND_FILESTORE = 'RESOURCE_KIND_FILESTORE';
/**
* This is a compute health check.
*/
public const KIND_RESOURCE_KIND_HEALTH_CHECK = 'RESOURCE_KIND_HEALTH_CHECK';
/**
* This is a compute forwarding rule.
*/
public const KIND_RESOURCE_KIND_FORWARDING_RULE = 'RESOURCE_KIND_FORWARDING_RULE';
/**
* This is a compute backend service.
*/
public const KIND_RESOURCE_KIND_BACKEND_SERVICE = 'RESOURCE_KIND_BACKEND_SERVICE';
/**
* This is a compute subnetwork.
*/
public const KIND_RESOURCE_KIND_SUBNETWORK = 'RESOURCE_KIND_SUBNETWORK';
/**
* This is a compute network.
*/
public const KIND_RESOURCE_KIND_NETWORK = 'RESOURCE_KIND_NETWORK';
/**
* This is a public accessible IP Address.
*/
public const KIND_RESOURCE_KIND_PUBLIC_ADDRESS = 'RESOURCE_KIND_PUBLIC_ADDRESS';
/**
* This is a compute instance group.
*/
public const KIND_RESOURCE_KIND_INSTANCE_GROUP = 'RESOURCE_KIND_INSTANCE_GROUP';
protected $instancePropertiesType = InstanceProperties::class;
protected $instancePropertiesDataType = '';
/**
* Output only.
*
* @var string
*/
public $kind;
/**
* Output only. resource name Example: compute.googleapis.com/projects/wlm-
* obs-dev/zones/us-central1-a/instances/sap-pri
*
* @var string
*/
public $name;
/**
* Output only. All instance properties.
*
* @param InstanceProperties $instanceProperties
*/
public function setInstanceProperties(InstanceProperties $instanceProperties)
{
$this->instanceProperties = $instanceProperties;
}
/**
* @return InstanceProperties
*/
public function getInstanceProperties()
{
return $this->instanceProperties;
}
/**
* Output only.
*
* Accepted values: RESOURCE_KIND_UNSPECIFIED, RESOURCE_KIND_INSTANCE,
* RESOURCE_KIND_DISK, RESOURCE_KIND_ADDRESS, RESOURCE_KIND_FILESTORE,
* RESOURCE_KIND_HEALTH_CHECK, RESOURCE_KIND_FORWARDING_RULE,
* RESOURCE_KIND_BACKEND_SERVICE, RESOURCE_KIND_SUBNETWORK,
* RESOURCE_KIND_NETWORK, RESOURCE_KIND_PUBLIC_ADDRESS,
* RESOURCE_KIND_INSTANCE_GROUP
*
* @param self::KIND_* $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return self::KIND_*
*/
public function getKind()
{
return $this->kind;
}
/**
* Output only. resource name Example: compute.googleapis.com/projects/wlm-
* obs-dev/zones/us-central1-a/instances/sap-pri
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudResource::class, 'Google_Service_WorkloadManager_CloudResource');
@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class Cluster extends \Google\Collection
{
protected $collection_key = 'nodes';
/**
* @var string[]
*/
public $nodes;
/**
* @var string
*/
public $witnessServer;
/**
* @param string[]
*/
public function setNodes($nodes)
{
$this->nodes = $nodes;
}
/**
* @return string[]
*/
public function getNodes()
{
return $this->nodes;
}
/**
* @param string
*/
public function setWitnessServer($witnessServer)
{
$this->witnessServer = $witnessServer;
}
/**
* @return string
*/
public function getWitnessServer()
{
return $this->witnessServer;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Cluster::class, 'Google_Service_WorkloadManager_Cluster');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class Command extends \Google\Model
{
protected $agentCommandType = AgentCommand::class;
protected $agentCommandDataType = '';
protected $shellCommandType = ShellCommand::class;
protected $shellCommandDataType = '';
/**
* AgentCommand specifies a one-time executable program for the agent to run.
*
* @param AgentCommand $agentCommand
*/
public function setAgentCommand(AgentCommand $agentCommand)
{
$this->agentCommand = $agentCommand;
}
/**
* @return AgentCommand
*/
public function getAgentCommand()
{
return $this->agentCommand;
}
/**
* ShellCommand is invoked via the agent's command line executor.
*
* @param ShellCommand $shellCommand
*/
public function setShellCommand(ShellCommand $shellCommand)
{
$this->shellCommand = $shellCommand;
}
/**
* @return ShellCommand
*/
public function getShellCommand()
{
return $this->shellCommand;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Command::class, 'Google_Service_WorkloadManager_Command');
@@ -0,0 +1,171 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class ComponentHealth extends \Google\Collection
{
/**
* Unspecified
*/
public const COMPONENT_HEALTH_TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* required
*/
public const COMPONENT_HEALTH_TYPE_TYPE_REQUIRED = 'TYPE_REQUIRED';
/**
* optional
*/
public const COMPONENT_HEALTH_TYPE_TYPE_OPTIONAL = 'TYPE_OPTIONAL';
/**
* special
*/
public const COMPONENT_HEALTH_TYPE_TYPE_SPECIAL = 'TYPE_SPECIAL';
/**
* Unspecified.
*/
public const STATE_HEALTH_STATE_UNSPECIFIED = 'HEALTH_STATE_UNSPECIFIED';
/**
* Healthy workload.
*/
public const STATE_HEALTHY = 'HEALTHY';
/**
* Unhealthy workload.
*/
public const STATE_UNHEALTHY = 'UNHEALTHY';
/**
* Has critical issues.
*/
public const STATE_CRITICAL = 'CRITICAL';
/**
* Unsupported.
*/
public const STATE_UNSUPPORTED = 'UNSUPPORTED';
protected $collection_key = 'subComponentsHealth';
/**
* The component of a workload.
*
* @var string
*/
public $component;
protected $componentHealthChecksType = HealthCheck::class;
protected $componentHealthChecksDataType = 'array';
/**
* Output only. The type of the component health.
*
* @var string
*/
public $componentHealthType;
/**
* Output only. The health state of the component.
*
* @var string
*/
public $state;
protected $subComponentsHealthType = ComponentHealth::class;
protected $subComponentsHealthDataType = 'array';
/**
* The component of a workload.
*
* @param string $component
*/
public function setComponent($component)
{
$this->component = $component;
}
/**
* @return string
*/
public function getComponent()
{
return $this->component;
}
/**
* The detailed health checks of the component.
*
* @param HealthCheck[] $componentHealthChecks
*/
public function setComponentHealthChecks($componentHealthChecks)
{
$this->componentHealthChecks = $componentHealthChecks;
}
/**
* @return HealthCheck[]
*/
public function getComponentHealthChecks()
{
return $this->componentHealthChecks;
}
/**
* Output only. The type of the component health.
*
* Accepted values: TYPE_UNSPECIFIED, TYPE_REQUIRED, TYPE_OPTIONAL,
* TYPE_SPECIAL
*
* @param self::COMPONENT_HEALTH_TYPE_* $componentHealthType
*/
public function setComponentHealthType($componentHealthType)
{
$this->componentHealthType = $componentHealthType;
}
/**
* @return self::COMPONENT_HEALTH_TYPE_*
*/
public function getComponentHealthType()
{
return $this->componentHealthType;
}
/**
* Output only. The health state of the component.
*
* Accepted values: HEALTH_STATE_UNSPECIFIED, HEALTHY, UNHEALTHY, CRITICAL,
* UNSUPPORTED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Sub component health.
*
* @param ComponentHealth[] $subComponentsHealth
*/
public function setSubComponentsHealth($subComponentsHealth)
{
$this->subComponentsHealth = $subComponentsHealth;
}
/**
* @return ComponentHealth[]
*/
public function getSubComponentsHealth()
{
return $this->subComponentsHealth;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComponentHealth::class, 'Google_Service_WorkloadManager_ComponentHealth');
@@ -0,0 +1,286 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
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 $secondarySoleTenantNode;
/**
* Optional. the type of a secondary-sole-tenant node/node group e.g.
* compute.googleapis.com/node-name
*
* @var string
*/
public $secondarySoleTenantNodeType;
/**
* Required. secret_manager_secret
*
* @var string
*/
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 $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;
/**
* 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 setMachineType($machineType)
{
$this->machineType = $machineType;
}
/**
* @return string
*/
public function getMachineType()
{
return $this->machineType;
}
/**
* Optional. the name of a secondary-sole-tenant node/node group
*
* @param string $secondarySoleTenantNode
*/
public function setSecondarySoleTenantNode($secondarySoleTenantNode)
{
$this->secondarySoleTenantNode = $secondarySoleTenantNode;
}
/**
* @return string
*/
public function getSecondarySoleTenantNode()
{
return $this->secondarySoleTenantNode;
}
/**
* Optional. the type of a secondary-sole-tenant node/node group e.g.
* compute.googleapis.com/node-name
*
* @param string $secondarySoleTenantNodeType
*/
public function setSecondarySoleTenantNodeType($secondarySoleTenantNodeType)
{
$this->secondarySoleTenantNodeType = $secondarySoleTenantNodeType;
}
/**
* @return string
*/
public function getSecondarySoleTenantNodeType()
{
return $this->secondarySoleTenantNodeType;
}
/**
* Required. secret_manager_secret
*
* @param string $secretManagerSecret
*/
public function setSecretManagerSecret($secretManagerSecret)
{
$this->secretManagerSecret = $secretManagerSecret;
}
/**
* @return string
*/
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->tenancyModel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Database::class, 'Google_Service_WorkloadManager_Database');
@@ -0,0 +1,226 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class DatabaseDetails extends \Google\Model
{
/**
* Database service account - let custoemrs bring their own SA for database
*
* @var string
*/
public $databaseServiceAccount;
/**
* Required. disk_type
*
* @var string
*/
public $diskType;
/**
* Required. image for database server
*
* @var string
*/
public $image;
/**
* Optional. instance id
*
* @var string
*/
public $instanceId;
/**
* Required. machine type
*
* @var string
*/
public $machineType;
/**
* Optional. primary db vm name
*
* @var string
*/
public $primaryDbVm;
/**
* Optional. secondary db vm name
*
* @var string
*/
public $secondaryDbVm;
/**
* Required. secret_manager_secret
*
* @var string
*/
public $secretManagerSecret;
/**
* Required. The SID is a three-digit server-specific unique identification
* code.
*
* @var string
*/
public $sid;
/**
* Database service account - let custoemrs bring their own SA for database
*
* @param string $databaseServiceAccount
*/
public function setDatabaseServiceAccount($databaseServiceAccount)
{
$this->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');
@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class DatabaseProperties extends \Google\Model
{
/**
* unspecified
*/
public const DATABASE_TYPE_DATABASE_TYPE_UNSPECIFIED = 'DATABASE_TYPE_UNSPECIFIED';
/**
* SAP HANA
*/
public const DATABASE_TYPE_HANA = 'HANA';
/**
* SAP MAX_DB
*/
public const DATABASE_TYPE_MAX_DB = 'MAX_DB';
/**
* IBM DB2
*/
public const DATABASE_TYPE_DB2 = 'DB2';
/**
* Oracle Database
*/
public const DATABASE_TYPE_ORACLE = 'ORACLE';
/**
* Microsoft SQL Server
*/
public const DATABASE_TYPE_SQLSERVER = 'SQLSERVER';
/**
* SAP Sybase ASE
*/
public const DATABASE_TYPE_ASE = 'ASE';
protected $backupPropertiesType = BackupProperties::class;
protected $backupPropertiesDataType = '';
/**
* Output only. Type of the database. `HANA`, `DB2`, etc.
*
* @var string
*/
public $databaseType;
/**
* Output only. Backup properties.
*
* @param BackupProperties $backupProperties
*/
public function setBackupProperties(BackupProperties $backupProperties)
{
$this->backupProperties = $backupProperties;
}
/**
* @return BackupProperties
*/
public function getBackupProperties()
{
return $this->backupProperties;
}
/**
* Output only. Type of the database. `HANA`, `DB2`, etc.
*
* Accepted values: DATABASE_TYPE_UNSPECIFIED, HANA, MAX_DB, DB2, ORACLE,
* SQLSERVER, ASE
*
* @param self::DATABASE_TYPE_* $databaseType
*/
public function setDatabaseType($databaseType)
{
$this->databaseType = $databaseType;
}
/**
* @return self::DATABASE_TYPE_*
*/
public function getDatabaseType()
{
return $this->databaseType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatabaseProperties::class, 'Google_Service_WorkloadManager_DatabaseProperties');
@@ -0,0 +1,321 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class Deployment extends \Google\Model
{
/**
* The default value. This value is used if the state is omitted.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The deployment is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* The deployment is healthy.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* The deployment is being updated.
*/
public const STATE_UPDATING = 'UPDATING';
/**
* The deployment is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* The deployment has encountered an unexpected error.
*/
public const STATE_FAILED = 'FAILED';
/**
* Unspecified workload type
*/
public const WORKLOAD_TYPE_WORKLOAD_TYPE_UNSPECIFIED = 'WORKLOAD_TYPE_UNSPECIFIED';
/**
* SAP S/4HANA workload type
*/
public const WORKLOAD_TYPE_SAP_S4 = 'SAP_S4';
/**
* SQL Server workload type
*/
public const WORKLOAD_TYPE_SQL_SERVER = 'SQL_SERVER';
/**
* Oracle workload type
*/
public const WORKLOAD_TYPE_ORACLE = 'ORACLE';
/**
* Output only. [Output only] Create time stamp
*
* @var string
*/
public $createTime;
/**
* Description of the Deployment
*
* @var string
*/
public $description;
/**
* The name of deployment resource. The format will be
* 'projects/{project_id}/locations/{location_id}/deployments/{deployment_id}'
*
* @var string
*/
public $name;
protected $sapSystemS4ConfigType = SapSystemS4Config::class;
protected $sapSystemS4ConfigDataType = '';
/**
* 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
*
* @var string
*/
public $serviceAccount;
protected $sqlServerWorkloadType = SqlServerWorkload::class;
protected $sqlServerWorkloadDataType = '';
/**
* Output only. Current state of the deployment.
*
* @var string
*/
public $state;
protected $terraformVariablesType = TerraformVariable::class;
protected $terraformVariablesDataType = 'map';
/**
* Output only. [Output only] Update time stamp
*
* @var string
*/
public $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.
*
* @var string
*/
public $workerPool;
/**
* Optional. Workload type of the deployment
*
* @var string
*/
public $workloadType;
/**
* Output only. [Output only] Create time stamp
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->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');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class DeploymentOutput extends \Google\Model
{
/**
* name of the resource
*
* @var string
*/
public $name;
/**
* type of the resource
*
* @var string
*/
public $type;
/**
* name of the resource
*
* @param string $name
*/
public function setName($name)
{
$this->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');
@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class DirectLocationAssignment extends \Google\Collection
{
protected $collection_key = 'location';
protected $locationType = LocationAssignment::class;
protected $locationDataType = 'array';
/**
* @param LocationAssignment[]
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return LocationAssignment[]
*/
public function getLocation()
{
return $this->location;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DirectLocationAssignment::class, 'Google_Service_WorkloadManager_DirectLocationAssignment');
@@ -0,0 +1,335 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class Evaluation extends \Google\Collection
{
/**
* Not specified.
*/
public const EVALUATION_TYPE_EVALUATION_TYPE_UNSPECIFIED = 'EVALUATION_TYPE_UNSPECIFIED';
/**
* SAP best practices.
*/
public const EVALUATION_TYPE_SAP = 'SAP';
/**
* SQL best practices.
*/
public const EVALUATION_TYPE_SQL_SERVER = 'SQL_SERVER';
/**
* Customized best practices.
*/
public const EVALUATION_TYPE_OTHER = 'OTHER';
protected $collection_key = 'ruleNames';
protected $bigQueryDestinationType = BigQueryDestination::class;
protected $bigQueryDestinationDataType = '';
/**
* Output only. [Output only] Create time stamp.
*
* @var string
*/
public $createTime;
/**
* The Cloud Storage bucket name for custom rules.
*
* @var string
*/
public $customRulesBucket;
/**
* Description of the Evaluation.
*
* @var string
*/
public $description;
/**
* Evaluation type.
*
* @var string
*/
public $evaluationType;
/**
* Optional. Immutable. Customer-managed encryption key name, in the format
* 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.
*
* @var string[]
*/
public $labels;
/**
* Name of resource that has the form `projects/{project_id}/locations/{locati
* on_id}/evaluations/{evaluation_id}`.
*
* @var string
*/
public $name;
protected $resourceFilterType = ResourceFilter::class;
protected $resourceFilterDataType = '';
protected $resourceStatusType = ResourceStatus::class;
protected $resourceStatusDataType = '';
/**
* The names of the rules used for this evaluation.
*
* @var string[]
*/
public $ruleNames;
/**
* 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.
*
* @var string
*/
public $updateTime;
/**
* 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
*/
public function setBigQueryDestination(BigQueryDestination $bigQueryDestination)
{
$this->bigQueryDestination = $bigQueryDestination;
}
/**
* @return BigQueryDestination
*/
public function getBigQueryDestination()
{
return $this->bigQueryDestination;
}
/**
* Output only. [Output only] Create time stamp.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The Cloud Storage bucket name for custom rules.
*
* @param string $customRulesBucket
*/
public function setCustomRulesBucket($customRulesBucket)
{
$this->customRulesBucket = $customRulesBucket;
}
/**
* @return string
*/
public function getCustomRulesBucket()
{
return $this->customRulesBucket;
}
/**
* Description of the Evaluation.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Evaluation type.
*
* Accepted values: EVALUATION_TYPE_UNSPECIFIED, SAP, SQL_SERVER, OTHER
*
* @param self::EVALUATION_TYPE_* $evaluationType
*/
public function setEvaluationType($evaluationType)
{
$this->evaluationType = $evaluationType;
}
/**
* @return self::EVALUATION_TYPE_*
*/
public function getEvaluationType()
{
return $this->evaluationType;
}
/**
* Optional. Immutable. Customer-managed encryption key name, in the format
* projects/locations/keyRings/cryptoKeys. The key will be used for CMEK
* encryption of the evaluation resource.
*
* @param string $kmsKey
*/
public function setKmsKey($kmsKey)
{
$this->kmsKey = $kmsKey;
}
/**
* @return string
*/
public function getKmsKey()
{
return $this->kmsKey;
}
/**
* Labels as key value pairs.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Name of resource that has the form `projects/{project_id}/locations/{locati
* on_id}/evaluations/{evaluation_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Resource filter for an evaluation defining the scope of resources to be
* evaluated.
*
* @param ResourceFilter $resourceFilter
*/
public function setResourceFilter(ResourceFilter $resourceFilter)
{
$this->resourceFilter = $resourceFilter;
}
/**
* @return ResourceFilter
*/
public function getResourceFilter()
{
return $this->resourceFilter;
}
/**
* Output only. [Output only] The current lifecycle state of the evaluation
* resource.
*
* @param ResourceStatus $resourceStatus
*/
public function setResourceStatus(ResourceStatus $resourceStatus)
{
$this->resourceStatus = $resourceStatus;
}
/**
* @return ResourceStatus
*/
public function getResourceStatus()
{
return $this->resourceStatus;
}
/**
* The names of the rules used for this evaluation.
*
* @param string[] $ruleNames
*/
public function setRuleNames($ruleNames)
{
$this->ruleNames = $ruleNames;
}
/**
* @return string[]
*/
public function getRuleNames()
{
return $this->ruleNames;
}
/**
* 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
*/
public function setSchedule($schedule)
{
$this->schedule = $schedule;
}
/**
* @return string
*/
public function getSchedule()
{
return $this->schedule;
}
/**
* 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;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Evaluation::class, 'Google_Service_WorkloadManager_Evaluation');
@@ -0,0 +1,347 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class Execution extends \Google\Collection
{
/**
* The original CG.
*/
public const ENGINE_ENGINE_UNSPECIFIED = 'ENGINE_UNSPECIFIED';
/**
* SlimCG / Scanner.
*/
public const ENGINE_ENGINE_SCANNER = 'ENGINE_SCANNER';
/**
* Evaluation Engine V2.
*/
public const ENGINE_V2 = 'V2';
/**
* Type of execution is unspecified.
*/
public const RUN_TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Type of execution is one time.
*/
public const RUN_TYPE_ONE_TIME = 'ONE_TIME';
/**
* Type of execution is scheduled.
*/
public const RUN_TYPE_SCHEDULED = 'SCHEDULED';
/**
* State of execution is unspecified.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The execution is running in backend service.
*/
public const STATE_RUNNING = 'RUNNING';
/**
* The execution run succeeded.
*/
public const STATE_SUCCEEDED = 'SUCCEEDED';
/**
* The execution run failed.
*/
public const STATE_FAILED = 'FAILED';
protected $collection_key = 'ruleResults';
/**
* Output only. [Output only] End time stamp.
*
* @var string
*/
public $endTime;
/**
* Optional. Engine.
*
* @var string
*/
public $engine;
/**
* Output only. [Output only] Evaluation ID.
*
* @var string
*/
public $evaluationId;
protected $externalDataSourcesType = ExternalDataSources::class;
protected $externalDataSourcesDataType = 'array';
/**
* Output only. [Output only] Inventory time stamp.
*
* @var string
*/
public $inventoryTime;
/**
* 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}.
*
* @var string
*/
public $name;
protected $noticesType = Notice::class;
protected $noticesDataType = 'array';
protected $resultSummaryType = Summary::class;
protected $resultSummaryDataType = '';
protected $ruleResultsType = RuleExecutionResult::class;
protected $ruleResultsDataType = 'array';
/**
* 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.
*
* @var string
*/
public $startTime;
/**
* Output only. [Output only] State.
*
* @var string
*/
public $state;
/**
* 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;
}
/**
* Optional. Engine.
*
* Accepted values: ENGINE_UNSPECIFIED, ENGINE_SCANNER, V2
*
* @param self::ENGINE_* $engine
*/
public function setEngine($engine)
{
$this->engine = $engine;
}
/**
* @return self::ENGINE_*
*/
public function getEngine()
{
return $this->engine;
}
/**
* Output only. [Output only] Evaluation ID.
*
* @param string $evaluationId
*/
public function setEvaluationId($evaluationId)
{
$this->evaluationId = $evaluationId;
}
/**
* @return string
*/
public function getEvaluationId()
{
return $this->evaluationId;
}
/**
* Optional. External data sources.
*
* @param ExternalDataSources[] $externalDataSources
*/
public function setExternalDataSources($externalDataSources)
{
$this->externalDataSources = $externalDataSources;
}
/**
* @return ExternalDataSources[]
*/
public function getExternalDataSources()
{
return $this->externalDataSources;
}
/**
* Output only. [Output only] Inventory time stamp.
*
* @param string $inventoryTime
*/
public function setInventoryTime($inventoryTime)
{
$this->inventoryTime = $inventoryTime;
}
/**
* @return string
*/
public function getInventoryTime()
{
return $this->inventoryTime;
}
/**
* Labels as key value pairs.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The name of execution resource. The format is projects/{project}/locations/
* {location}/evaluations/{evaluation}/executions/{execution}.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Additional information generated by the execution.
*
* @param Notice[] $notices
*/
public function setNotices($notices)
{
$this->notices = $notices;
}
/**
* @return Notice[]
*/
public function getNotices()
{
return $this->notices;
}
/**
* Output only. [Output only] Result summary for the execution.
*
* @param Summary $resultSummary
*/
public function setResultSummary(Summary $resultSummary)
{
$this->resultSummary = $resultSummary;
}
/**
* @return Summary
*/
public function getResultSummary()
{
return $this->resultSummary;
}
/**
* Output only. Execution result summary per rule.
*
* @param RuleExecutionResult[] $ruleResults
*/
public function setRuleResults($ruleResults)
{
$this->ruleResults = $ruleResults;
}
/**
* @return RuleExecutionResult[]
*/
public function getRuleResults()
{
return $this->ruleResults;
}
/**
* 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
*
* @param self::RUN_TYPE_* $runType
*/
public function setRunType($runType)
{
$this->runType = $runType;
}
/**
* @return self::RUN_TYPE_*
*/
public function getRunType()
{
return $this->runType;
}
/**
* 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] State.
*
* Accepted values: STATE_UNSPECIFIED, RUNNING, SUCCEEDED, FAILED
*
* @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(Execution::class, 'Google_Service_WorkloadManager_Execution');
@@ -0,0 +1,205 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class ExecutionResult extends \Google\Collection
{
/**
* Unknown state.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Resource successfully passed the rule.
*/
public const TYPE_TYPE_PASSED = 'TYPE_PASSED';
/**
* Resource violated the rule.
*/
public const TYPE_TYPE_VIOLATED = 'TYPE_VIOLATED';
protected $collection_key = 'commands';
protected $commandsType = Command::class;
protected $commandsDataType = 'array';
/**
* The URL for the documentation of the rule.
*
* @var string
*/
public $documentationUrl;
protected $resourceType = WorkloadmanagerResource::class;
protected $resourceDataType = '';
/**
* The rule that is violated in an evaluation.
*
* @var string
*/
public $rule;
/**
* The severity of violation.
*
* @var string
*/
public $severity;
/**
* Execution result type of the scanned resource.
*
* @var string
*/
public $type;
protected $violationDetailsType = ViolationDetails::class;
protected $violationDetailsDataType = '';
/**
* The violation message of an execution.
*
* @var string
*/
public $violationMessage;
/**
* The commands to remediate the violation.
*
* @param Command[] $commands
*/
public function setCommands($commands)
{
$this->commands = $commands;
}
/**
* @return Command[]
*/
public function getCommands()
{
return $this->commands;
}
/**
* The URL for the documentation of the rule.
*
* @param string $documentationUrl
*/
public function setDocumentationUrl($documentationUrl)
{
$this->documentationUrl = $documentationUrl;
}
/**
* @return string
*/
public function getDocumentationUrl()
{
return $this->documentationUrl;
}
/**
* The resource that violates the rule.
*
* @param WorkloadmanagerResource $resource
*/
public function setResource(WorkloadmanagerResource $resource)
{
$this->resource = $resource;
}
/**
* @return WorkloadmanagerResource
*/
public function getResource()
{
return $this->resource;
}
/**
* The rule that is violated in an evaluation.
*
* @param string $rule
*/
public function setRule($rule)
{
$this->rule = $rule;
}
/**
* @return string
*/
public function getRule()
{
return $this->rule;
}
/**
* The severity of violation.
*
* @param string $severity
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return string
*/
public function getSeverity()
{
return $this->severity;
}
/**
* Execution result type of the scanned resource.
*
* Accepted values: TYPE_UNSPECIFIED, TYPE_PASSED, TYPE_VIOLATED
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* The details of violation in an evaluation result.
*
* @param ViolationDetails $violationDetails
*/
public function setViolationDetails(ViolationDetails $violationDetails)
{
$this->violationDetails = $violationDetails;
}
/**
* @return ViolationDetails
*/
public function getViolationDetails()
{
return $this->violationDetails;
}
/**
* The violation message of an execution.
*
* @param string $violationMessage
*/
public function setViolationMessage($violationMessage)
{
$this->violationMessage = $violationMessage;
}
/**
* @return string
*/
public function getViolationMessage()
{
return $this->violationMessage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecutionResult::class, 'Google_Service_WorkloadManager_ExecutionResult');
@@ -0,0 +1,136 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class ExternalDataSources extends \Google\Model
{
/**
* Unknown type.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* BigQuery table.
*/
public const TYPE_BIG_QUERY_TABLE = 'BIG_QUERY_TABLE';
/**
* Required. The asset type of the external data source. This can be a
* supported Cloud Asset Inventory asset type (see
* https://cloud.google.com/asset-inventory/docs/supported-asset-types) to
* override the default asset type, or it can be a custom type defined by the
* user.
*
* @var string
*/
public $assetType;
/**
* Optional. Name of external data source. The name will be used inside the
* rego/sql to refer the external data.
*
* @var string
*/
public $name;
/**
* 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}.
*
* @var string
*/
public $uri;
/**
* Required. The asset type of the external data source. This can be a
* supported Cloud Asset Inventory asset type (see
* https://cloud.google.com/asset-inventory/docs/supported-asset-types) to
* override the default asset type, or it can be a custom type defined by the
* user.
*
* @param string $assetType
*/
public function setAssetType($assetType)
{
$this->assetType = $assetType;
}
/**
* @return string
*/
public function getAssetType()
{
return $this->assetType;
}
/**
* Optional. Name of external data source. The name will be used inside the
* rego/sql to refer the external data.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. Type of external data source.
*
* Accepted values: TYPE_UNSPECIFIED, BIG_QUERY_TABLE
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* Required. URI of external data source. example of bq table
* {project_ID}.{dataset_ID}.{table_ID}.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExternalDataSources::class, 'Google_Service_WorkloadManager_ExternalDataSources');
@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class ExtraParameter extends \Google\Model
{
protected $regionalMigDistributionPolicyType = RegionalMigDistributionPolicy::class;
protected $regionalMigDistributionPolicyDataType = '';
/**
* @param RegionalMigDistributionPolicy
*/
public function setRegionalMigDistributionPolicy(RegionalMigDistributionPolicy $regionalMigDistributionPolicy)
{
$this->regionalMigDistributionPolicy = $regionalMigDistributionPolicy;
}
/**
* @return RegionalMigDistributionPolicy
*/
public function getRegionalMigDistributionPolicy()
{
return $this->regionalMigDistributionPolicy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExtraParameter::class, 'Google_Service_WorkloadManager_ExtraParameter');
@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class FrontEndServer extends \Google\Collection
{
protected $collection_key = 'resources';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $osVersion;
protected $resourcesType = CloudResource::class;
protected $resourcesDataType = 'array';
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setOsVersion($osVersion)
{
$this->osVersion = $osVersion;
}
/**
* @return string
*/
public function getOsVersion()
{
return $this->osVersion;
}
/**
* @param CloudResource[]
*/
public function setResources($resources)
{
$this->resources = $resources;
}
/**
* @return CloudResource[]
*/
public function getResources()
{
return $this->resources;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FrontEndServer::class, 'Google_Service_WorkloadManager_FrontEndServer');
@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class GceInstanceFilter extends \Google\Collection
{
protected $collection_key = 'serviceAccounts';
/**
* 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;
/**
* 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
*/
public function setServiceAccounts($serviceAccounts)
{
$this->serviceAccounts = $serviceAccounts;
}
/**
* @return string[]
*/
public function getServiceAccounts()
{
return $this->serviceAccounts;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GceInstanceFilter::class, 'Google_Service_WorkloadManager_GceInstanceFilter');
@@ -0,0 +1,159 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class HealthCheck extends \Google\Model
{
/**
* Unspecified
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* passed
*/
public const STATE_PASSED = 'PASSED';
/**
* failed
*/
public const STATE_FAILED = 'FAILED';
/**
* degraded
*/
public const STATE_DEGRADED = 'DEGRADED';
/**
* skipped
*/
public const STATE_SKIPPED = 'SKIPPED';
/**
* unsupported
*/
public const STATE_UNSUPPORTED = 'UNSUPPORTED';
/**
* Output only. The message of the health check.
*
* @var string
*/
public $message;
/**
* Output only. The health check source metric name.
*
* @var string
*/
public $metric;
protected $resourceType = CloudResource::class;
protected $resourceDataType = '';
/**
* Output only. The source of the health check.
*
* @var string
*/
public $source;
/**
* Output only. The state of the health check.
*
* @var string
*/
public $state;
/**
* Output only. The message of the health check.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Output only. The health check source metric name.
*
* @param string $metric
*/
public function setMetric($metric)
{
$this->metric = $metric;
}
/**
* @return string
*/
public function getMetric()
{
return $this->metric;
}
/**
* Output only. The resource the check performs on.
*
* @param CloudResource $resource
*/
public function setResource(CloudResource $resource)
{
$this->resource = $resource;
}
/**
* @return CloudResource
*/
public function getResource()
{
return $this->resource;
}
/**
* Output only. The source of the health check.
*
* @param string $source
*/
public function setSource($source)
{
$this->source = $source;
}
/**
* @return string
*/
public function getSource()
{
return $this->source;
}
/**
* Output only. The state of the health check.
*
* Accepted values: STATE_UNSPECIFIED, PASSED, FAILED, DEGRADED, SKIPPED,
* UNSUPPORTED
*
* @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(HealthCheck::class, 'Google_Service_WorkloadManager_HealthCheck');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class IAMPermission extends \Google\Model
{
/**
* Output only. Whether the permission is granted.
*
* @var bool
*/
public $granted;
/**
* Output only. The name of the permission.
*
* @var string
*/
public $name;
/**
* Output only. Whether the permission is granted.
*
* @param bool $granted
*/
public function setGranted($granted)
{
$this->granted = $granted;
}
/**
* @return bool
*/
public function getGranted()
{
return $this->granted;
}
/**
* Output only. The name of the permission.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IAMPermission::class, 'Google_Service_WorkloadManager_IAMPermission');
@@ -0,0 +1,179 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class Insight extends \Google\Model
{
protected $agentStatusType = AgentStatus::class;
protected $agentStatusDataType = '';
/**
* Optional. The instance id where the insight is generated from
*
* @var string
*/
public $instanceId;
protected $openShiftValidationType = OpenShiftValidation::class;
protected $openShiftValidationDataType = '';
protected $sapDiscoveryType = SapDiscovery::class;
protected $sapDiscoveryDataType = '';
protected $sapValidationType = SapValidation::class;
protected $sapValidationDataType = '';
/**
* Output only. [Output only] Create time stamp
*
* @var string
*/
public $sentTime;
protected $sqlserverValidationType = SqlserverValidation::class;
protected $sqlserverValidationDataType = '';
protected $torsoValidationType = TorsoValidation::class;
protected $torsoValidationDataType = '';
/**
* The insights data for the agent status.
*
* @param AgentStatus $agentStatus
*/
public function setAgentStatus(AgentStatus $agentStatus)
{
$this->agentStatus = $agentStatus;
}
/**
* @return AgentStatus
*/
public function getAgentStatus()
{
return $this->agentStatus;
}
/**
* Optional. The instance id where the insight is generated from
*
* @param string $instanceId
*/
public function setInstanceId($instanceId)
{
$this->instanceId = $instanceId;
}
/**
* @return string
*/
public function getInstanceId()
{
return $this->instanceId;
}
/**
* The insights data for the OpenShift workload validation.
*
* @param OpenShiftValidation $openShiftValidation
*/
public function setOpenShiftValidation(OpenShiftValidation $openShiftValidation)
{
$this->openShiftValidation = $openShiftValidation;
}
/**
* @return OpenShiftValidation
*/
public function getOpenShiftValidation()
{
return $this->openShiftValidation;
}
/**
* The insights data for SAP system discovery. This is a copy of SAP System
* proto and should get updated whenever that one changes.
*
* @param SapDiscovery $sapDiscovery
*/
public function setSapDiscovery(SapDiscovery $sapDiscovery)
{
$this->sapDiscovery = $sapDiscovery;
}
/**
* @return SapDiscovery
*/
public function getSapDiscovery()
{
return $this->sapDiscovery;
}
/**
* The insights data for the SAP workload validation.
*
* @param SapValidation $sapValidation
*/
public function setSapValidation(SapValidation $sapValidation)
{
$this->sapValidation = $sapValidation;
}
/**
* @return SapValidation
*/
public function getSapValidation()
{
return $this->sapValidation;
}
/**
* Output only. [Output only] Create time stamp
*
* @param string $sentTime
*/
public function setSentTime($sentTime)
{
$this->sentTime = $sentTime;
}
/**
* @return string
*/
public function getSentTime()
{
return $this->sentTime;
}
/**
* The insights data for the sqlserver workload validation.
*
* @param SqlserverValidation $sqlserverValidation
*/
public function setSqlserverValidation(SqlserverValidation $sqlserverValidation)
{
$this->sqlserverValidation = $sqlserverValidation;
}
/**
* @return SqlserverValidation
*/
public function getSqlserverValidation()
{
return $this->sqlserverValidation;
}
/**
* The insights data for workload validation of torso workloads.
*
* @param TorsoValidation $torsoValidation
*/
public function setTorsoValidation(TorsoValidation $torsoValidation)
{
$this->torsoValidation = $torsoValidation;
}
/**
* @return TorsoValidation
*/
public function getTorsoValidation()
{
return $this->torsoValidation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Insight::class, 'Google_Service_WorkloadManager_Insight');
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class Instance extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $region;
/**
* @var string
*/
public $status;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* @param string
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Instance::class, 'Google_Service_WorkloadManager_Instance');
@@ -0,0 +1,151 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class InstanceProperties extends \Google\Collection
{
protected $collection_key = 'roles';
/**
* Optional. Instance number.
*
* @var string
*/
public $instanceNumber;
/**
* Optional. Instance machine type.
*
* @var string
*/
public $machineType;
/**
* Optional. Instance roles.
*
* @var string[]
*/
public $roles;
protected $sapInstancePropertiesType = SapInstanceProperties::class;
protected $sapInstancePropertiesDataType = '';
/**
* Optional. Instance status.
*
* @var string
*/
public $status;
protected $upcomingMaintenanceEventType = UpcomingMaintenanceEvent::class;
protected $upcomingMaintenanceEventDataType = '';
/**
* Optional. Instance number.
*
* @param string $instanceNumber
*/
public function setInstanceNumber($instanceNumber)
{
$this->instanceNumber = $instanceNumber;
}
/**
* @return string
*/
public function getInstanceNumber()
{
return $this->instanceNumber;
}
/**
* Optional. Instance machine type.
*
* @param string $machineType
*/
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
/**
* @return string
*/
public function getMachineType()
{
return $this->machineType;
}
/**
* Optional. Instance roles.
*
* @param string[] $roles
*/
public function setRoles($roles)
{
$this->roles = $roles;
}
/**
* @return string[]
*/
public function getRoles()
{
return $this->roles;
}
/**
* Optional. SAP Instance properties.
*
* @param SapInstanceProperties $sapInstanceProperties
*/
public function setSapInstanceProperties(SapInstanceProperties $sapInstanceProperties)
{
$this->sapInstanceProperties = $sapInstanceProperties;
}
/**
* @return SapInstanceProperties
*/
public function getSapInstanceProperties()
{
return $this->sapInstanceProperties;
}
/**
* Optional. Instance status.
*
* @param string $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* Optional. the next maintenance event on VM
*
* @param UpcomingMaintenanceEvent $upcomingMaintenanceEvent
*/
public function setUpcomingMaintenanceEvent(UpcomingMaintenanceEvent $upcomingMaintenanceEvent)
{
$this->upcomingMaintenanceEvent = $upcomingMaintenanceEvent;
}
/**
* @return UpcomingMaintenanceEvent
*/
public function getUpcomingMaintenanceEvent()
{
return $this->upcomingMaintenanceEvent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstanceProperties::class, 'Google_Service_WorkloadManager_InstanceProperties');
@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class InvalidRule extends \Google\Model
{
/**
* display name of the invalid rule
*
* @var string
*/
public $displayName;
/**
* cloud storage destination of the invalid rule
*
* @var string
*/
public $gcsUri;
/**
* name of the invalid rule
*
* @var string
*/
public $name;
/**
* The error message of valdating rule formats.
*
* @var string
*/
public $valiadtionError;
/**
* display name of the invalid rule
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* cloud storage destination of the invalid rule
*
* @param string $gcsUri
*/
public function setGcsUri($gcsUri)
{
$this->gcsUri = $gcsUri;
}
/**
* @return string
*/
public function getGcsUri()
{
return $this->gcsUri;
}
/**
* name of the invalid rule
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The error message of valdating rule formats.
*
* @param string $valiadtionError
*/
public function setValiadtionError($valiadtionError)
{
$this->valiadtionError = $valiadtionError;
}
/**
* @return string
*/
public function getValiadtionError()
{
return $this->valiadtionError;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InvalidRule::class, 'Google_Service_WorkloadManager_InvalidRule');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class InvalidRulesWrapper extends \Google\Collection
{
protected $collection_key = 'invalidRules';
protected $invalidRulesType = InvalidRule::class;
protected $invalidRulesDataType = 'array';
/**
* The invalid rules that failed to be validated.
*
* @param InvalidRule[] $invalidRules
*/
public function setInvalidRules($invalidRules)
{
$this->invalidRules = $invalidRules;
}
/**
* @return InvalidRule[]
*/
public function getInvalidRules()
{
return $this->invalidRules;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InvalidRulesWrapper::class, 'Google_Service_WorkloadManager_InvalidRulesWrapper');
@@ -0,0 +1,168 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class IsolationExpectations extends \Google\Model
{
protected $requirementOverrideType = RequirementOverride::class;
protected $requirementOverrideDataType = '';
/**
* @var string
*/
public $ziOrgPolicy;
/**
* @var string
*/
public $ziRegionPolicy;
/**
* @var string
*/
public $ziRegionState;
/**
* @var string
*/
public $zoneIsolation;
/**
* @var string
*/
public $zoneSeparation;
/**
* @var string
*/
public $zsOrgPolicy;
/**
* @var string
*/
public $zsRegionState;
/**
* @param RequirementOverride
*/
public function setRequirementOverride(RequirementOverride $requirementOverride)
{
$this->requirementOverride = $requirementOverride;
}
/**
* @return RequirementOverride
*/
public function getRequirementOverride()
{
return $this->requirementOverride;
}
/**
* @param string
*/
public function setZiOrgPolicy($ziOrgPolicy)
{
$this->ziOrgPolicy = $ziOrgPolicy;
}
/**
* @return string
*/
public function getZiOrgPolicy()
{
return $this->ziOrgPolicy;
}
/**
* @param string
*/
public function setZiRegionPolicy($ziRegionPolicy)
{
$this->ziRegionPolicy = $ziRegionPolicy;
}
/**
* @return string
*/
public function getZiRegionPolicy()
{
return $this->ziRegionPolicy;
}
/**
* @param string
*/
public function setZiRegionState($ziRegionState)
{
$this->ziRegionState = $ziRegionState;
}
/**
* @return string
*/
public function getZiRegionState()
{
return $this->ziRegionState;
}
/**
* @param string
*/
public function setZoneIsolation($zoneIsolation)
{
$this->zoneIsolation = $zoneIsolation;
}
/**
* @return string
*/
public function getZoneIsolation()
{
return $this->zoneIsolation;
}
/**
* @param string
*/
public function setZoneSeparation($zoneSeparation)
{
$this->zoneSeparation = $zoneSeparation;
}
/**
* @return string
*/
public function getZoneSeparation()
{
return $this->zoneSeparation;
}
/**
* @param string
*/
public function setZsOrgPolicy($zsOrgPolicy)
{
$this->zsOrgPolicy = $zsOrgPolicy;
}
/**
* @return string
*/
public function getZsOrgPolicy()
{
return $this->zsOrgPolicy;
}
/**
* @param string
*/
public function setZsRegionState($zsRegionState)
{
$this->zsRegionState = $zsRegionState;
}
/**
* @return string
*/
public function getZsRegionState()
{
return $this->zsRegionState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IsolationExpectations::class, 'Google_Service_WorkloadManager_IsolationExpectations');
@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class Layer extends \Google\Collection
{
protected $collection_key = 'instances';
/**
* @var string
*/
public $applicationType;
/**
* @var string
*/
public $databaseType;
protected $instancesType = Instance::class;
protected $instancesDataType = 'array';
/**
* @var string
*/
public $sid;
/**
* @param string
*/
public function setApplicationType($applicationType)
{
$this->applicationType = $applicationType;
}
/**
* @return string
*/
public function getApplicationType()
{
return $this->applicationType;
}
/**
* @param string
*/
public function setDatabaseType($databaseType)
{
$this->databaseType = $databaseType;
}
/**
* @return string
*/
public function getDatabaseType()
{
return $this->databaseType;
}
/**
* @param Instance[]
*/
public function setInstances($instances)
{
$this->instances = $instances;
}
/**
* @return Instance[]
*/
public function getInstances()
{
return $this->instances;
}
/**
* @param string
*/
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(Layer::class, 'Google_Service_WorkloadManager_Layer');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class ListActuationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $actuationsType = Actuation::class;
protected $actuationsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* Unordered list. Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of Actuation
*
* @param Actuation[] $actuations
*/
public function setActuations($actuations)
{
$this->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');
@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class ListDeploymentsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $deploymentsType = Deployment::class;
protected $deploymentsDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Unordered list. Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of Deployment
*
* @param Deployment[] $deployments
*/
public function setDeployments($deployments)
{
$this->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');
@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class ListDiscoveredProfilesResponse extends \Google\Collection
{
protected $collection_key = 'workloadProfiles';
/**
* Output only. A token identifying a page of results the server should return
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
protected $workloadProfilesType = WorkloadProfile::class;
protected $workloadProfilesDataType = 'array';
/**
* Output only. 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;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
/**
* Output only. The list of workload profiles
*
* @param WorkloadProfile[] $workloadProfiles
*/
public function setWorkloadProfiles($workloadProfiles)
{
$this->workloadProfiles = $workloadProfiles;
}
/**
* @return WorkloadProfile[]
*/
public function getWorkloadProfiles()
{
return $this->workloadProfiles;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDiscoveredProfilesResponse::class, 'Google_Service_WorkloadManager_ListDiscoveredProfilesResponse');
@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class ListEvaluationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $evaluationsType = Evaluation::class;
protected $evaluationsDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of evaluations.
*
* @param Evaluation[] $evaluations
*/
public function setEvaluations($evaluations)
{
$this->evaluations = $evaluations;
}
/**
* @return Evaluation[]
*/
public function getEvaluations()
{
return $this->evaluations;
}
/**
* 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;
}
/**
* 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(ListEvaluationsResponse::class, 'Google_Service_WorkloadManager_ListEvaluationsResponse');
@@ -0,0 +1,69 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class ListExecutionResultsResponse extends \Google\Collection
{
protected $collection_key = 'executionResults';
protected $executionResultsType = ExecutionResult::class;
protected $executionResultsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* The versions from the specified publisher.
*
* @param ExecutionResult[] $executionResults
*/
public function setExecutionResults($executionResults)
{
$this->executionResults = $executionResults;
}
/**
* @return ExecutionResult[]
*/
public function getExecutionResults()
{
return $this->executionResults;
}
/**
* 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;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListExecutionResultsResponse::class, 'Google_Service_WorkloadManager_ListExecutionResultsResponse');
@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class ListExecutionsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $executionsType = Execution::class;
protected $executionsDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of Execution.
*
* @param Execution[] $executions
*/
public function setExecutions($executions)
{
$this->executions = $executions;
}
/**
* @return Execution[]
*/
public function getExecutions()
{
return $this->executions;
}
/**
* 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;
}
/**
* 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(ListExecutionsResponse::class, 'Google_Service_WorkloadManager_ListExecutionsResponse');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
/**
* A list of locations that matches the specified filter in the request.
*
* @param Location[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLocationsResponse::class, 'Google_Service_WorkloadManager_ListLocationsResponse');
@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of operations that matches the specified filter in the request.
*
* @param Operation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_WorkloadManager_ListOperationsResponse');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class ListRulesResponse extends \Google\Collection
{
protected $collection_key = 'rules';
protected $rulesType = Rule::class;
protected $rulesDataType = 'array';
/**
* All rules in response.
*
* @param Rule[] $rules
*/
public function setRules($rules)
{
$this->rules = $rules;
}
/**
* @return Rule[]
*/
public function getRules()
{
return $this->rules;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListRulesResponse::class, 'Google_Service_WorkloadManager_ListRulesResponse');
@@ -0,0 +1,69 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class ListScannedResourcesResponse extends \Google\Collection
{
protected $collection_key = 'scannedResources';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
protected $scannedResourcesType = ScannedResource::class;
protected $scannedResourcesDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* All scanned resources in response.
*
* @param ScannedResource[] $scannedResources
*/
public function setScannedResources($scannedResources)
{
$this->scannedResources = $scannedResources;
}
/**
* @return ScannedResource[]
*/
public function getScannedResources()
{
return $this->scannedResources;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListScannedResourcesResponse::class, 'Google_Service_WorkloadManager_ListScannedResourcesResponse');
@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class ListWorkloadProfilesResponse extends \Google\Collection
{
protected $collection_key = 'workloadOverviews';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
protected $workloadOverviewsType = WorkloadProfileOverview::class;
protected $workloadOverviewsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string[]
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
/**
* @param WorkloadProfileOverview[]
*/
public function setWorkloadOverviews($workloadOverviews)
{
$this->workloadOverviews = $workloadOverviews;
}
/**
* @return WorkloadProfileOverview[]
*/
public function getWorkloadOverviews()
{
return $this->workloadOverviews;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListWorkloadProfilesResponse::class, 'Google_Service_WorkloadManager_ListWorkloadProfilesResponse');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class LoadBalancerServer extends \Google\Model
{
/**
* @var string
*/
public $ip;
/**
* @var string
*/
public $vm;
/**
* @param string
*/
public function setIp($ip)
{
$this->ip = $ip;
}
/**
* @return string
*/
public function getIp()
{
return $this->ip;
}
/**
* @param string
*/
public function setVm($vm)
{
$this->vm = $vm;
}
/**
* @return string
*/
public function getVm()
{
return $this->vm;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LoadBalancerServer::class, 'Google_Service_WorkloadManager_LoadBalancerServer');
@@ -0,0 +1,144 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class Location extends \Google\Model
{
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @var string
*/
public $displayName;
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @var string[]
*/
public $labels;
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @var string
*/
public $locationId;
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @var array[]
*/
public $metadata;
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @var string
*/
public $name;
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @param string $locationId
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Location::class, 'Google_Service_WorkloadManager_Location');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class LocationAssignment extends \Google\Model
{
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $locationType;
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setLocationType($locationType)
{
$this->locationType = $locationType;
}
/**
* @return string
*/
public function getLocationType()
{
return $this->locationType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationAssignment::class, 'Google_Service_WorkloadManager_LocationAssignment');
@@ -0,0 +1,122 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class LocationData extends \Google\Model
{
protected $blobstoreLocationType = BlobstoreLocation::class;
protected $blobstoreLocationDataType = '';
protected $childAssetLocationType = CloudAssetComposition::class;
protected $childAssetLocationDataType = '';
protected $directLocationType = DirectLocationAssignment::class;
protected $directLocationDataType = '';
protected $gcpProjectProxyType = TenantProjectProxy::class;
protected $gcpProjectProxyDataType = '';
protected $placerLocationType = PlacerLocation::class;
protected $placerLocationDataType = '';
protected $spannerLocationType = SpannerLocation::class;
protected $spannerLocationDataType = '';
/**
* @param BlobstoreLocation
*/
public function setBlobstoreLocation(BlobstoreLocation $blobstoreLocation)
{
$this->blobstoreLocation = $blobstoreLocation;
}
/**
* @return BlobstoreLocation
*/
public function getBlobstoreLocation()
{
return $this->blobstoreLocation;
}
/**
* @param CloudAssetComposition
*/
public function setChildAssetLocation(CloudAssetComposition $childAssetLocation)
{
$this->childAssetLocation = $childAssetLocation;
}
/**
* @return CloudAssetComposition
*/
public function getChildAssetLocation()
{
return $this->childAssetLocation;
}
/**
* @param DirectLocationAssignment
*/
public function setDirectLocation(DirectLocationAssignment $directLocation)
{
$this->directLocation = $directLocation;
}
/**
* @return DirectLocationAssignment
*/
public function getDirectLocation()
{
return $this->directLocation;
}
/**
* @param TenantProjectProxy
*/
public function setGcpProjectProxy(TenantProjectProxy $gcpProjectProxy)
{
$this->gcpProjectProxy = $gcpProjectProxy;
}
/**
* @return TenantProjectProxy
*/
public function getGcpProjectProxy()
{
return $this->gcpProjectProxy;
}
/**
* @param PlacerLocation
*/
public function setPlacerLocation(PlacerLocation $placerLocation)
{
$this->placerLocation = $placerLocation;
}
/**
* @return PlacerLocation
*/
public function getPlacerLocation()
{
return $this->placerLocation;
}
/**
* @param SpannerLocation
*/
public function setSpannerLocation(SpannerLocation $spannerLocation)
{
$this->spannerLocation = $spannerLocation;
}
/**
* @return SpannerLocation
*/
public function getSpannerLocation()
{
return $this->spannerLocation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationData::class, 'Google_Service_WorkloadManager_LocationData');
@@ -0,0 +1,296 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class LocationDetails extends \Google\Collection
{
public const INTERNET_ACCESS_INTERNETACCESS_UNSPECIFIED = 'INTERNETACCESS_UNSPECIFIED';
public const INTERNET_ACCESS_ALLOW_EXTERNAL_IP = 'ALLOW_EXTERNAL_IP';
public const INTERNET_ACCESS_CONFIGURE_NAT = 'CONFIGURE_NAT';
protected $collection_key = 'customTags';
/**
* Optional. create firewall, if true, create firewall for the deployment.
* This field provides an option to not always create firewall for the
* deployment.
*
* @var bool
*/
public $createCommsFirewall;
/**
* Optional. network tags
*
* @var string[]
*/
public $customTags;
/**
* Optional. when user skip DNS configuration from UI,
* deployment_dns_enabled=false otherwise deployment_dns_enabled=true
*
* @var bool
*/
public $deploymentDnsEnabled;
/**
* Optional. dns zone name
*
* @var string
*/
public $dnsZone;
/**
* Optional. dns_zone_name_suffix
*
* @var string
*/
public $dnsZoneNameSuffix;
/**
* @var string
*/
public $internetAccess;
/**
* Optional. network project
*
* @var string
*/
public $networkProject;
/**
* Required. region_name
*
* @var string
*/
public $regionName;
/**
* Required. subnet_name
*
* @var string
*/
public $subnetName;
/**
* Required. vpc_name
*
* @var string
*/
public $vpcName;
/**
* Required. zone1_name
*
* @var string
*/
public $zone1Name;
/**
* Optional. zone2_name
*
* @var string
*/
public $zone2Name;
/**
* Optional. create firewall, if true, create firewall for the deployment.
* This field provides an option to not always create firewall for the
* deployment.
*
* @param bool $createCommsFirewall
*/
public function setCreateCommsFirewall($createCommsFirewall)
{
$this->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');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class Notice extends \Google\Model
{
/**
* Output only. Message of the notice.
*
* @var string
*/
public $message;
/**
* Output only. Message of the notice.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Notice::class, 'Google_Service_WorkloadManager_Notice');
@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class OpenShiftValidation extends \Google\Model
{
/**
* Required. The OpenShift cluster ID (e.g.
* 8371bb05-7cac-4d38-82c0-0f58c4f6f936).
*
* @var string
*/
public $clusterId;
/**
* Required. The validation details of the OpenShift cluster in JSON format.
*
* @var array[]
*/
public $validationDetails;
/**
* Required. The OpenShift cluster ID (e.g.
* 8371bb05-7cac-4d38-82c0-0f58c4f6f936).
*
* @param string $clusterId
*/
public function setClusterId($clusterId)
{
$this->clusterId = $clusterId;
}
/**
* @return string
*/
public function getClusterId()
{
return $this->clusterId;
}
/**
* Required. The validation details of the OpenShift cluster in JSON format.
*
* @param array[] $validationDetails
*/
public function setValidationDetails($validationDetails)
{
$this->validationDetails = $validationDetails;
}
/**
* @return array[]
*/
public function getValidationDetails()
{
return $this->validationDetails;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OpenShiftValidation::class, 'Google_Service_WorkloadManager_OpenShiftValidation');
@@ -0,0 +1,158 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class Operation extends \Google\Model
{
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @var array[]
*/
public $metadata;
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @var string
*/
public $name;
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @var array[]
*/
public $response;
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @param array[] $response
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_WorkloadManager_Operation');
@@ -0,0 +1,186 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class OperationMetadata extends \Google\Model
{
/**
* Output only. API version used to start the operation.
*
* @var string
*/
public $apiVersion;
/**
* Output only. The time the operation was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The time the operation finished running.
*
* @var string
*/
public $endTime;
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have been cancelled successfully have
* Operation.error value with a google.rpc.Status.code of 1, corresponding to
* `Code.CANCELLED`.
*
* @var bool
*/
public $requestedCancellation;
/**
* Output only. Human-readable status of the operation, if any.
*
* @var string
*/
public $statusMessage;
/**
* Output only. Server-defined resource path for the target of the operation.
*
* @var string
*/
public $target;
/**
* Output only. Name of the verb executed by the operation.
*
* @var string
*/
public $verb;
/**
* Output only. API version used to start the operation.
*
* @param string $apiVersion
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* Output only. The time the operation was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The time the operation finished running.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have been cancelled successfully have
* Operation.error value with a google.rpc.Status.code of 1, corresponding to
* `Code.CANCELLED`.
*
* @param bool $requestedCancellation
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
/**
* Output only. Human-readable status of the operation, if any.
*
* @param string $statusMessage
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* Output only. Server-defined resource path for the target of the operation.
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* Output only. Name of the verb executed by the operation.
*
* @param string $verb
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadata::class, 'Google_Service_WorkloadManager_OperationMetadata');
@@ -0,0 +1,158 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class Pacemaker extends \Google\Model
{
/**
* Required. bucket location for node certificates
*
* @var string
*/
public $bucketNameNodeCertificates;
/**
* Required. pacemaker cluster name
*
* @var string
*/
public $pacemakerCluster;
/**
* Required. pacemaker cluster secret name
*
* @var string
*/
public $pacemakerClusterSecret;
/**
* Required. pacemaker cluster username
*
* @var string
*/
public $pacemakerClusterUsername;
/**
* Required. sql pacemaker secret name
*
* @var string
*/
public $sqlPacemakerSecret;
/**
* Required. sql pacemaker username
*
* @var string
*/
public $sqlPacemakerUsername;
/**
* Required. bucket location for node certificates
*
* @param string $bucketNameNodeCertificates
*/
public function setBucketNameNodeCertificates($bucketNameNodeCertificates)
{
$this->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');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class PlacerLocation extends \Google\Model
{
/**
* @var string
*/
public $placerConfig;
/**
* @param string
*/
public function setPlacerConfig($placerConfig)
{
$this->placerConfig = $placerConfig;
}
/**
* @return string
*/
public function getPlacerConfig()
{
return $this->placerConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlacerLocation::class, 'Google_Service_WorkloadManager_PlacerLocation');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class Product extends \Google\Model
{
/**
* Optional. Name of the product.
*
* @var string
*/
public $name;
/**
* Optional. Version of the product.
*
* @var string
*/
public $version;
/**
* Optional. Name of the product.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. Version of the product.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Product::class, 'Google_Service_WorkloadManager_Product');
@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class RegionalMigDistributionPolicy extends \Google\Collection
{
protected $collection_key = 'zones';
/**
* @var int
*/
public $targetShape;
protected $zonesType = ZoneConfiguration::class;
protected $zonesDataType = 'array';
/**
* @param int
*/
public function setTargetShape($targetShape)
{
$this->targetShape = $targetShape;
}
/**
* @return int
*/
public function getTargetShape()
{
return $this->targetShape;
}
/**
* @param ZoneConfiguration[]
*/
public function setZones($zones)
{
$this->zones = $zones;
}
/**
* @return ZoneConfiguration[]
*/
public function getZones()
{
return $this->zones;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RegionalMigDistributionPolicy::class, 'Google_Service_WorkloadManager_RegionalMigDistributionPolicy');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class RequirementOverride extends \Google\Model
{
/**
* @var string
*/
public $ziOverride;
/**
* @var string
*/
public $zsOverride;
/**
* @param string
*/
public function setZiOverride($ziOverride)
{
$this->ziOverride = $ziOverride;
}
/**
* @return string
*/
public function getZiOverride()
{
return $this->ziOverride;
}
/**
* @param string
*/
public function setZsOverride($zsOverride)
{
$this->zsOverride = $zsOverride;
}
/**
* @return string
*/
public function getZsOverride()
{
return $this->zsOverride;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RequirementOverride::class, 'Google_Service_WorkloadManager_RequirementOverride');
@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $workloadmanagerService = new Google\Service\WorkloadManager(...);
* $projects = $workloadmanagerService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_WorkloadManager_Resource_Projects');
@@ -0,0 +1,85 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager\Resource;
use Google\Service\WorkloadManager\ListLocationsResponse;
use Google\Service\WorkloadManager\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $workloadmanagerService = new Google\Service\WorkloadManager(...);
* $locations = $workloadmanagerService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::class);
}
/**
* Lists information about the supported locations for this service. This method
* lists locations based on the resource scope provided in the
* ListLocationsRequest.name field: * **Global locations**: If `name` is empty,
* the method lists the public locations available to all projects. * **Project-
* specific locations**: If `name` follows the format `projects/{project}`, the
* method lists locations visible to that specific project. This includes
* public, private, or other project-specific locations enabled for the project.
* For gRPC and client library implementations, the resource name is passed as
* the `name` field. For direct service calls, the resource name is incorporated
* into the request path based on the specific service implementation and
* version. (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string extraLocationTypes Optional. Do not use this field unless
* explicitly documented otherwise. This is primarily for internal usage.
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
* field in the response. Send that page token to receive the subsequent page.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_WorkloadManager_Resource_ProjectsLocations');
@@ -0,0 +1,125 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager\Resource;
use Google\Service\WorkloadManager\Deployment;
use Google\Service\WorkloadManager\ListDeploymentsResponse;
use Google\Service\WorkloadManager\Operation;
/**
* The "deployments" collection of methods.
* Typical usage is:
* <code>
* $workloadmanagerService = new Google\Service\WorkloadManager(...);
* $deployments = $workloadmanagerService->projects_locations_deployments;
* </code>
*/
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');
@@ -0,0 +1,122 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager\Resource;
use Google\Service\WorkloadManager\Actuation;
use Google\Service\WorkloadManager\ListActuationsResponse;
use Google\Service\WorkloadManager\Operation;
/**
* The "actuations" collection of methods.
* Typical usage is:
* <code>
* $workloadmanagerService = new Google\Service\WorkloadManager(...);
* $actuations = $workloadmanagerService->projects_locations_deployments_actuations;
* </code>
*/
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');
@@ -0,0 +1,73 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager\Resource;
use Google\Service\WorkloadManager\ListDiscoveredProfilesResponse;
use Google\Service\WorkloadManager\WorkloadProfile;
/**
* The "discoveredprofiles" collection of methods.
* Typical usage is:
* <code>
* $workloadmanagerService = new Google\Service\WorkloadManager(...);
* $discoveredprofiles = $workloadmanagerService->projects_locations_discoveredprofiles;
* </code>
*/
class ProjectsLocationsDiscoveredprofiles extends \Google\Service\Resource
{
/**
* Gets details of a discovered workload profile. (discoveredprofiles.get)
*
* @param string $name Required. Name of the resource
* @param array $optParams Optional parameters.
* @return WorkloadProfile
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], WorkloadProfile::class);
}
/**
* List discovered workload profiles
* (discoveredprofiles.listProjectsLocationsDiscoveredprofiles)
*
* @param string $parent Required. Parent value for
* ListDiscoveredProfilesRequest
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results
* @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 ListDiscoveredProfilesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsDiscoveredprofiles($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDiscoveredProfilesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsDiscoveredprofiles::class, 'Google_Service_WorkloadManager_Resource_ProjectsLocationsDiscoveredprofiles');
@@ -0,0 +1,49 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager\Resource;
use Google\Service\WorkloadManager\WorkloadProfileHealth;
/**
* The "health" collection of methods.
* Typical usage is:
* <code>
* $workloadmanagerService = new Google\Service\WorkloadManager(...);
* $health = $workloadmanagerService->projects_locations_discoveredprofiles_health;
* </code>
*/
class ProjectsLocationsDiscoveredprofilesHealth extends \Google\Service\Resource
{
/**
* Get the health of a discovered workload profile. (health.get)
*
* @param string $name Required. The resource name
* @param array $optParams Optional parameters.
* @return WorkloadProfileHealth
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], WorkloadProfileHealth::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsDiscoveredprofilesHealth::class, 'Google_Service_WorkloadManager_Resource_ProjectsLocationsDiscoveredprofilesHealth');
@@ -0,0 +1,49 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager\Resource;
use Google\Service\WorkloadManager\WorkloadProfileHealth;
/**
* The "healthes" collection of methods.
* Typical usage is:
* <code>
* $workloadmanagerService = new Google\Service\WorkloadManager(...);
* $healthes = $workloadmanagerService->projects_locations_discoveredprofiles_healthes;
* </code>
*/
class ProjectsLocationsDiscoveredprofilesHealthes extends \Google\Service\Resource
{
/**
* Get the health of a discovered workload profile. (healthes.get)
*
* @param string $name Required. The resource name
* @param array $optParams Optional parameters.
* @return WorkloadProfileHealth
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], WorkloadProfileHealth::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsDiscoveredprofilesHealthes::class, 'Google_Service_WorkloadManager_Resource_ProjectsLocationsDiscoveredprofilesHealthes');
@@ -0,0 +1,164 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager\Resource;
use Google\Service\WorkloadManager\Evaluation;
use Google\Service\WorkloadManager\ListEvaluationsResponse;
use Google\Service\WorkloadManager\Operation;
/**
* The "evaluations" collection of methods.
* Typical usage is:
* <code>
* $workloadmanagerService = new Google\Service\WorkloadManager(...);
* $evaluations = $workloadmanagerService->projects_locations_evaluations;
* </code>
*/
class ProjectsLocationsEvaluations extends \Google\Service\Resource
{
/**
* Creates a new Evaluation in a given project and location.
* (evaluations.create)
*
* @param string $parent Required. The resource prefix of the evaluation
* 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 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, Evaluation $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single Evaluation. (evaluations.delete)
*
* @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.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes after the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single Evaluation. (evaluations.get)
*
* @param string $name Required. Name of the resource.
* @param array $optParams Optional parameters.
* @return Evaluation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Evaluation::class);
}
/**
* Lists Evaluations in a given project and location.
* (evaluations.listProjectsLocationsEvaluations)
*
* @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 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.
* @return ListEvaluationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsEvaluations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListEvaluationsResponse::class);
}
/**
* Updates the parameters of a single Evaluation. (evaluations.patch)
*
* @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.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten in the Evaluation resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Evaluation $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsEvaluations::class, 'Google_Service_WorkloadManager_Resource_ProjectsLocationsEvaluations');
@@ -0,0 +1,118 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager\Resource;
use Google\Service\WorkloadManager\Execution;
use Google\Service\WorkloadManager\ListExecutionsResponse;
use Google\Service\WorkloadManager\Operation;
use Google\Service\WorkloadManager\RunEvaluationRequest;
/**
* The "executions" collection of methods.
* Typical usage is:
* <code>
* $workloadmanagerService = new Google\Service\WorkloadManager(...);
* $executions = $workloadmanagerService->projects_locations_evaluations_executions;
* </code>
*/
class ProjectsLocationsEvaluationsExecutions extends \Google\Service\Resource
{
/**
* Deletes a single Execution. (executions.delete)
*
* @param string $name Required. Name of the resource.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes after the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single Execution. (executions.get)
*
* @param string $name Required. Name of the resource.
* @param array $optParams Optional parameters.
* @return Execution
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Execution::class);
}
/**
* Lists Executions in a given project and location.
* (executions.listProjectsLocationsEvaluationsExecutions)
*
* @param string $parent Required. The resource prefix of the Execution using
* the form: `projects/{project}/locations/{location}/evaluations/{evaluation}`.
* @param array $optParams Optional parameters.
*
* @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.
* @return ListExecutionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsEvaluationsExecutions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListExecutionsResponse::class);
}
/**
* Creates a new Execution in a given project and location. (executions.run)
*
* @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
* @throws \Google\Service\Exception
*/
public function run($name, RunEvaluationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('run', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsEvaluationsExecutions::class, 'Google_Service_WorkloadManager_Resource_ProjectsLocationsEvaluationsExecutions');
@@ -0,0 +1,57 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager\Resource;
use Google\Service\WorkloadManager\ListExecutionResultsResponse;
/**
* The "results" collection of methods.
* Typical usage is:
* <code>
* $workloadmanagerService = new Google\Service\WorkloadManager(...);
* $results = $workloadmanagerService->projects_locations_evaluations_executions_results;
* </code>
*/
class ProjectsLocationsEvaluationsExecutionsResults extends \Google\Service\Resource
{
/**
* Lists the result of a single evaluation.
* (results.listProjectsLocationsEvaluationsExecutionsResults)
*
* @param string $parent Required. The execution results. Format:
* {parent}/evaluations/executions/results.
* @param array $optParams Optional parameters.
*
* @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
* should return.
* @return ListExecutionResultsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsEvaluationsExecutionsResults($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListExecutionResultsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsEvaluationsExecutionsResults::class, 'Google_Service_WorkloadManager_Resource_ProjectsLocationsEvaluationsExecutionsResults');
@@ -0,0 +1,59 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager\Resource;
use Google\Service\WorkloadManager\ListScannedResourcesResponse;
/**
* The "scannedResources" collection of methods.
* Typical usage is:
* <code>
* $workloadmanagerService = new Google\Service\WorkloadManager(...);
* $scannedResources = $workloadmanagerService->projects_locations_evaluations_executions_scannedResources;
* </code>
*/
class ProjectsLocationsEvaluationsExecutionsScannedResources extends \Google\Service\Resource
{
/**
* List all scanned resources for a single Execution.
* (scannedResources.listProjectsLocationsEvaluationsExecutionsScannedResources)
*
* @param string $parent Required. Parent for ListScannedResourcesRequest.
* @param array $optParams Optional parameters.
*
* @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.
* @return ListScannedResourcesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsEvaluationsExecutionsScannedResources($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListScannedResourcesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsEvaluationsExecutionsScannedResources::class, 'Google_Service_WorkloadManager_Resource_ProjectsLocationsEvaluationsExecutionsScannedResources');
@@ -0,0 +1,83 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager\Resource;
use Google\Service\WorkloadManager\WorkloadmanagerEmpty;
use Google\Service\WorkloadManager\WriteInsightRequest;
use Google\Service\WorkloadManager\WriteInsightResponse;
/**
* The "insights" collection of methods.
* Typical usage is:
* <code>
* $workloadmanagerService = new Google\Service\WorkloadManager(...);
* $insights = $workloadmanagerService->projects_locations_insights;
* </code>
*/
class ProjectsLocationsInsights extends \Google\Service\Resource
{
/**
* Delete the data insights from workload manager data warehouse.
* (insights.delete)
*
* @param string $name Required. The system id of the SAP system resource to
* delete. Formatted as
* projects/{project}/locations/{location}/sapSystems/{sap_system_id}
* @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 WorkloadmanagerEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], WorkloadmanagerEmpty::class);
}
/**
* Write the data insights to workload manager data warehouse.
* (insights.writeInsight)
*
* @param string $location Required. The GCP location. The format is:
* projects/{project}/locations/{location}.
* @param WriteInsightRequest $postBody
* @param array $optParams Optional parameters.
* @return WriteInsightResponse
* @throws \Google\Service\Exception
*/
public function writeInsight($location, WriteInsightRequest $postBody, $optParams = [])
{
$params = ['location' => $location, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('writeInsight', [$params], WriteInsightResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsInsights::class, 'Google_Service_WorkloadManager_Resource_ProjectsLocationsInsights');
@@ -0,0 +1,121 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager\Resource;
use Google\Service\WorkloadManager\CancelOperationRequest;
use Google\Service\WorkloadManager\ListOperationsResponse;
use Google\Service\WorkloadManager\Operation;
use Google\Service\WorkloadManager\WorkloadmanagerEmpty;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $workloadmanagerService = new Google\Service\WorkloadManager(...);
* $operations = $workloadmanagerService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return WorkloadmanagerEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], WorkloadmanagerEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return WorkloadmanagerEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], WorkloadmanagerEmpty::class);
}
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsLocationsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
* reachable are returned as normal, and those that are unreachable are returned
* in the ListOperationsResponse.unreachable field. This can only be `true` when
* reading across collections. For example, when `parent` is set to
* `"projects/example/locations/-"`. This field is not supported by default and
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
* otherwise in service or product specific documentation.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOperations::class, 'Google_Service_WorkloadManager_Resource_ProjectsLocationsOperations');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager\Resource;
use Google\Service\WorkloadManager\ListRulesResponse;
/**
* The "rules" collection of methods.
* Typical usage is:
* <code>
* $workloadmanagerService = new Google\Service\WorkloadManager(...);
* $rules = $workloadmanagerService->projects_locations_rules;
* </code>
*/
class ProjectsLocationsRules extends \Google\Service\Resource
{
/**
* Lists rules in a given project. (rules.listProjectsLocationsRules)
*
* @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.
* @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 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.
* @return ListRulesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRules($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRulesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRules::class, 'Google_Service_WorkloadManager_Resource_ProjectsLocationsRules');
@@ -0,0 +1,64 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager\Resource;
use Google\Service\WorkloadManager\WorkloadmanagerEmpty;
/**
* The "sapSystems" collection of methods.
* Typical usage is:
* <code>
* $workloadmanagerService = new Google\Service\WorkloadManager(...);
* $sapSystems = $workloadmanagerService->projects_locations_sapSystems;
* </code>
*/
class ProjectsLocationsSapSystems extends \Google\Service\Resource
{
/**
* Delete the data insights from workload manager data warehouse.
* (sapSystems.delete)
*
* @param string $name Required. The system id of the SAP system resource to
* delete. Formatted as
* projects/{project}/locations/{location}/sapSystems/{sap_system_id}
* @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 WorkloadmanagerEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], WorkloadmanagerEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsSapSystems::class, 'Google_Service_WorkloadManager_Resource_ProjectsLocationsSapSystems');
@@ -0,0 +1,71 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager\Resource;
use Google\Service\WorkloadManager\ListWorkloadProfilesResponse;
use Google\Service\WorkloadManager\WorkloadProfile;
/**
* The "workloadProfiles" collection of methods.
* Typical usage is:
* <code>
* $workloadmanagerService = new Google\Service\WorkloadManager(...);
* $workloadProfiles = $workloadmanagerService->projects_locations_workloadProfiles;
* </code>
*/
class ProjectsLocationsWorkloadProfiles extends \Google\Service\Resource
{
/**
* Gets details of a single workload. (workloadProfiles.get)
*
* @param string $name Required. Name of the resource
* @param array $optParams Optional parameters.
* @return WorkloadProfile
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], WorkloadProfile::class);
}
/**
* List workloads (workloadProfiles.listProjectsLocationsWorkloadProfiles)
*
* @param string $parent Required. Parent value for ListWorkloadRequest
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results
* @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 ListWorkloadProfilesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsWorkloadProfiles($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListWorkloadProfilesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsWorkloadProfiles::class, 'Google_Service_WorkloadManager_Resource_ProjectsLocationsWorkloadProfiles');
@@ -0,0 +1,123 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class ResourceFilter extends \Google\Collection
{
protected $collection_key = 'scopes';
protected $gceInstanceFilterType = GceInstanceFilter::class;
protected $gceInstanceFilterDataType = '';
/**
* 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 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. Format: * `projects/{project_id}` *
* `folders/{folder_id}` * `organizations/{organization_id}`
*
* @var string[]
*/
public $scopes;
/**
* Filter compute engine resources.
*
* @param GceInstanceFilter $gceInstanceFilter
*/
public function setGceInstanceFilter(GceInstanceFilter $gceInstanceFilter)
{
$this->gceInstanceFilter = $gceInstanceFilter;
}
/**
* @return GceInstanceFilter
*/
public function getGceInstanceFilter()
{
return $this->gceInstanceFilter;
}
/**
* 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
*/
public function setInclusionLabels($inclusionLabels)
{
$this->inclusionLabels = $inclusionLabels;
}
/**
* @return string[]
*/
public function getInclusionLabels()
{
return $this->inclusionLabels;
}
/**
* 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
*/
public function setResourceIdPatterns($resourceIdPatterns)
{
$this->resourceIdPatterns = $resourceIdPatterns;
}
/**
* @return string[]
*/
public function getResourceIdPatterns()
{
return $this->resourceIdPatterns;
}
/**
* The scopes of evaluation resource. Format: * `projects/{project_id}` *
* `folders/{folder_id}` * `organizations/{organization_id}`
*
* @param string[] $scopes
*/
public function setScopes($scopes)
{
$this->scopes = $scopes;
}
/**
* @return string[]
*/
public function getScopes()
{
return $this->scopes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResourceFilter::class, 'Google_Service_WorkloadManager_ResourceFilter');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class ResourceStatus extends \Google\Model
{
/**
* The state has not been populated in this message.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Resource has an active Create operation.
*/
public const STATE_CREATING = 'CREATING';
/**
* Resource has no outstanding operations on it or has active Update
* operations.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* Resource has an active Delete operation.
*/
public const STATE_DELETING = 'DELETING';
/**
* State of the Evaluation resource.
*
* @var string
*/
public $state;
/**
* State of the Evaluation resource.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING
*
* @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(ResourceStatus::class, 'Google_Service_WorkloadManager_ResourceStatus');
@@ -0,0 +1,329 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class Rule extends \Google\Collection
{
/**
* Not specified.
*/
public const RULE_TYPE_RULE_TYPE_UNSPECIFIED = 'RULE_TYPE_UNSPECIFIED';
/**
* Baseline rules.
*/
public const RULE_TYPE_BASELINE = 'BASELINE';
/**
* Custom rules.
*/
public const RULE_TYPE_CUSTOM = 'CUSTOM';
protected $collection_key = 'tags';
/**
* The CAI asset type of the rule is evaluating, for joined asset types, it
* will be the corresponding primary asset types.
*
* @var string
*/
public $assetType;
/**
* Describe rule in plain language.
*
* @var string
*/
public $description;
/**
* The name display in UI.
*
* @var string
*/
public $displayName;
/**
* The message template for rule.
*
* @var string
*/
public $errorMessage;
/**
* Rule name.
*
* @var string
*/
public $name;
/**
* The primary category.
*
* @var string
*/
public $primaryCategory;
/**
* The remediation for the rule.
*
* @var string
*/
public $remediation;
/**
* Output only. The version of the rule.
*
* @var string
*/
public $revisionId;
/**
* The type of the rule.
*
* @var string
*/
public $ruleType;
/**
* The secondary category.
*
* @var string
*/
public $secondaryCategory;
/**
* The severity of the rule.
*
* @var string
*/
public $severity;
/**
* List of user-defined tags.
*
* @var string[]
*/
public $tags;
/**
* The document url for the rule.
*
* @var string
*/
public $uri;
/**
* The CAI asset type of the rule is evaluating, for joined asset types, it
* will be the corresponding primary asset types.
*
* @param string $assetType
*/
public function setAssetType($assetType)
{
$this->assetType = $assetType;
}
/**
* @return string
*/
public function getAssetType()
{
return $this->assetType;
}
/**
* Describe rule in plain language.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The name display in UI.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The message template for rule.
*
* @param string $errorMessage
*/
public function setErrorMessage($errorMessage)
{
$this->errorMessage = $errorMessage;
}
/**
* @return string
*/
public function getErrorMessage()
{
return $this->errorMessage;
}
/**
* Rule name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The primary category.
*
* @param string $primaryCategory
*/
public function setPrimaryCategory($primaryCategory)
{
$this->primaryCategory = $primaryCategory;
}
/**
* @return string
*/
public function getPrimaryCategory()
{
return $this->primaryCategory;
}
/**
* The remediation for the rule.
*
* @param string $remediation
*/
public function setRemediation($remediation)
{
$this->remediation = $remediation;
}
/**
* @return string
*/
public function getRemediation()
{
return $this->remediation;
}
/**
* Output only. The version of the rule.
*
* @param string $revisionId
*/
public function setRevisionId($revisionId)
{
$this->revisionId = $revisionId;
}
/**
* @return string
*/
public function getRevisionId()
{
return $this->revisionId;
}
/**
* The type of the rule.
*
* Accepted values: RULE_TYPE_UNSPECIFIED, BASELINE, CUSTOM
*
* @param self::RULE_TYPE_* $ruleType
*/
public function setRuleType($ruleType)
{
$this->ruleType = $ruleType;
}
/**
* @return self::RULE_TYPE_*
*/
public function getRuleType()
{
return $this->ruleType;
}
/**
* The secondary category.
*
* @param string $secondaryCategory
*/
public function setSecondaryCategory($secondaryCategory)
{
$this->secondaryCategory = $secondaryCategory;
}
/**
* @return string
*/
public function getSecondaryCategory()
{
return $this->secondaryCategory;
}
/**
* The severity of the rule.
*
* @param string $severity
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return string
*/
public function getSeverity()
{
return $this->severity;
}
/**
* List of user-defined tags.
*
* @param string[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
/**
* The document url for the rule.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Rule::class, 'Google_Service_WorkloadManager_Rule');
@@ -0,0 +1,155 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class RuleExecutionResult extends \Google\Model
{
/**
* Unknown state
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Execution completed successfully
*/
public const STATE_STATE_SUCCESS = 'STATE_SUCCESS';
/**
* Execution completed with failures
*/
public const STATE_STATE_FAILURE = 'STATE_FAILURE';
/**
* Execution was not executed
*/
public const STATE_STATE_SKIPPED = 'STATE_SKIPPED';
/**
* Execution message, if any.
*
* @var string
*/
public $message;
/**
* Number of violations.
*
* @var string
*/
public $resultCount;
/**
* Rule name as plain text like `sap-hana-configured`.
*
* @var string
*/
public $rule;
/**
* Number of total scanned resources.
*
* @var string
*/
public $scannedResourceCount;
/**
* Output only. The execution status.
*
* @var string
*/
public $state;
/**
* Execution message, if any.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Number of violations.
*
* @param string $resultCount
*/
public function setResultCount($resultCount)
{
$this->resultCount = $resultCount;
}
/**
* @return string
*/
public function getResultCount()
{
return $this->resultCount;
}
/**
* Rule name as plain text like `sap-hana-configured`.
*
* @param string $rule
*/
public function setRule($rule)
{
$this->rule = $rule;
}
/**
* @return string
*/
public function getRule()
{
return $this->rule;
}
/**
* Number of total scanned resources.
*
* @param string $scannedResourceCount
*/
public function setScannedResourceCount($scannedResourceCount)
{
$this->scannedResourceCount = $scannedResourceCount;
}
/**
* @return string
*/
public function getScannedResourceCount()
{
return $this->scannedResourceCount;
}
/**
* Output only. The execution status.
*
* Accepted values: STATE_UNSPECIFIED, STATE_SUCCESS, STATE_FAILURE,
* STATE_SKIPPED
*
* @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(RuleExecutionResult::class, 'Google_Service_WorkloadManager_RuleExecutionResult');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class RuleOutput extends \Google\Model
{
/**
* Output only. Violation details generated by rule.
*
* @var string[]
*/
public $details;
/**
* Output only. The message generated by rule.
*
* @var string
*/
public $message;
/**
* Output only. Violation details generated by rule.
*
* @param string[] $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return string[]
*/
public function getDetails()
{
return $this->details;
}
/**
* Output only. The message generated by rule.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RuleOutput::class, 'Google_Service_WorkloadManager_RuleOutput');
@@ -0,0 +1,108 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class RunEvaluationRequest extends \Google\Model
{
protected $executionType = Execution::class;
protected $executionDataType = '';
/**
* Required. ID of the execution which will be created.
*
* @var string
*/
public $executionId;
/**
* 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).
*
* @var string
*/
public $requestId;
/**
* Required. The resource being created.
*
* @param Execution $execution
*/
public function setExecution(Execution $execution)
{
$this->execution = $execution;
}
/**
* @return Execution
*/
public function getExecution()
{
return $this->execution;
}
/**
* Required. ID of the execution which will be created.
*
* @param string $executionId
*/
public function setExecutionId($executionId)
{
$this->executionId = $executionId;
}
/**
* @return string
*/
public function getExecutionId()
{
return $this->executionId;
}
/**
* 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).
*
* @param string $requestId
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RunEvaluationRequest::class, 'Google_Service_WorkloadManager_RunEvaluationRequest');
@@ -0,0 +1,146 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class SapComponent extends \Google\Collection
{
/**
* Unspecified topology.
*/
public const TOPOLOGY_TYPE_TOPOLOGY_TYPE_UNSPECIFIED = 'TOPOLOGY_TYPE_UNSPECIFIED';
/**
* A scale-up single node system.
*/
public const TOPOLOGY_TYPE_TOPOLOGY_SCALE_UP = 'TOPOLOGY_SCALE_UP';
/**
* A scale-out multi-node system.
*/
public const TOPOLOGY_TYPE_TOPOLOGY_SCALE_OUT = 'TOPOLOGY_SCALE_OUT';
protected $collection_key = 'resources';
protected $databasePropertiesType = DatabaseProperties::class;
protected $databasePropertiesDataType = '';
/**
* List of host URIs that are part of the HA configuration if present. An
* empty list indicates the component is not configured for HA.
*
* @var string[]
*/
public $haHosts;
protected $resourcesType = CloudResource::class;
protected $resourcesDataType = 'array';
/**
* Output only. sid is the sap component identificator
*
* @var string
*/
public $sid;
/**
* The detected topology of the component.
*
* @var string
*/
public $topologyType;
/**
* Output only. All instance properties.
*
* @param DatabaseProperties $databaseProperties
*/
public function setDatabaseProperties(DatabaseProperties $databaseProperties)
{
$this->databaseProperties = $databaseProperties;
}
/**
* @return DatabaseProperties
*/
public function getDatabaseProperties()
{
return $this->databaseProperties;
}
/**
* List of host URIs that are part of the HA configuration if present. An
* empty list indicates the component is not configured for HA.
*
* @param string[] $haHosts
*/
public function setHaHosts($haHosts)
{
$this->haHosts = $haHosts;
}
/**
* @return string[]
*/
public function getHaHosts()
{
return $this->haHosts;
}
/**
* Output only. resources in the component
*
* @param CloudResource[] $resources
*/
public function setResources($resources)
{
$this->resources = $resources;
}
/**
* @return CloudResource[]
*/
public function getResources()
{
return $this->resources;
}
/**
* Output only. sid is the sap component identificator
*
* @param string $sid
*/
public function setSid($sid)
{
$this->sid = $sid;
}
/**
* @return string
*/
public function getSid()
{
return $this->sid;
}
/**
* The detected topology of the component.
*
* Accepted values: TOPOLOGY_TYPE_UNSPECIFIED, TOPOLOGY_SCALE_UP,
* TOPOLOGY_SCALE_OUT
*
* @param self::TOPOLOGY_TYPE_* $topologyType
*/
public function setTopologyType($topologyType)
{
$this->topologyType = $topologyType;
}
/**
* @return self::TOPOLOGY_TYPE_*
*/
public function getTopologyType()
{
return $this->topologyType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SapComponent::class, 'Google_Service_WorkloadManager_SapComponent');
@@ -0,0 +1,188 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class SapDiscovery extends \Google\Model
{
protected $applicationLayerType = SapDiscoveryComponent::class;
protected $applicationLayerDataType = '';
protected $databaseLayerType = SapDiscoveryComponent::class;
protected $databaseLayerDataType = '';
protected $metadataType = SapDiscoveryMetadata::class;
protected $metadataDataType = '';
/**
* Optional. The GCP project number that this SapSystem belongs to.
*
* @var string
*/
public $projectNumber;
/**
* Output only. A combination of database SID, database instance URI and
* tenant DB name to make a unique identifier per-system.
*
* @var string
*/
public $systemId;
/**
* Required. Unix timestamp this system has been updated last.
*
* @var string
*/
public $updateTime;
/**
* Optional. Whether to use DR reconciliation or not.
*
* @var bool
*/
public $useDrReconciliation;
protected $workloadPropertiesType = SapDiscoveryWorkloadProperties::class;
protected $workloadPropertiesDataType = '';
/**
* Optional. An SAP system may run without an application layer.
*
* @param SapDiscoveryComponent $applicationLayer
*/
public function setApplicationLayer(SapDiscoveryComponent $applicationLayer)
{
$this->applicationLayer = $applicationLayer;
}
/**
* @return SapDiscoveryComponent
*/
public function getApplicationLayer()
{
return $this->applicationLayer;
}
/**
* Required. An SAP System must have a database.
*
* @param SapDiscoveryComponent $databaseLayer
*/
public function setDatabaseLayer(SapDiscoveryComponent $databaseLayer)
{
$this->databaseLayer = $databaseLayer;
}
/**
* @return SapDiscoveryComponent
*/
public function getDatabaseLayer()
{
return $this->databaseLayer;
}
/**
* Optional. The metadata for SAP system discovery data.
*
* @param SapDiscoveryMetadata $metadata
*/
public function setMetadata(SapDiscoveryMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return SapDiscoveryMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Optional. The GCP project number that this SapSystem belongs to.
*
* @param string $projectNumber
*/
public function setProjectNumber($projectNumber)
{
$this->projectNumber = $projectNumber;
}
/**
* @return string
*/
public function getProjectNumber()
{
return $this->projectNumber;
}
/**
* Output only. A combination of database SID, database instance URI and
* tenant DB name to make a unique identifier per-system.
*
* @param string $systemId
*/
public function setSystemId($systemId)
{
$this->systemId = $systemId;
}
/**
* @return string
*/
public function getSystemId()
{
return $this->systemId;
}
/**
* Required. Unix timestamp this system has been updated last.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Optional. Whether to use DR reconciliation or not.
*
* @param bool $useDrReconciliation
*/
public function setUseDrReconciliation($useDrReconciliation)
{
$this->useDrReconciliation = $useDrReconciliation;
}
/**
* @return bool
*/
public function getUseDrReconciliation()
{
return $this->useDrReconciliation;
}
/**
* Optional. The properties of the workload.
*
* @param SapDiscoveryWorkloadProperties $workloadProperties
*/
public function setWorkloadProperties(SapDiscoveryWorkloadProperties $workloadProperties)
{
$this->workloadProperties = $workloadProperties;
}
/**
* @return SapDiscoveryWorkloadProperties
*/
public function getWorkloadProperties()
{
return $this->workloadProperties;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SapDiscovery::class, 'Google_Service_WorkloadManager_SapDiscovery');
@@ -0,0 +1,229 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class SapDiscoveryComponent extends \Google\Collection
{
/**
* Unspecified topology.
*/
public const TOPOLOGY_TYPE_TOPOLOGY_TYPE_UNSPECIFIED = 'TOPOLOGY_TYPE_UNSPECIFIED';
/**
* A scale-up single node system.
*/
public const TOPOLOGY_TYPE_TOPOLOGY_SCALE_UP = 'TOPOLOGY_SCALE_UP';
/**
* A scale-out multi-node system.
*/
public const TOPOLOGY_TYPE_TOPOLOGY_SCALE_OUT = 'TOPOLOGY_SCALE_OUT';
protected $collection_key = 'resources';
protected $applicationPropertiesType = SapDiscoveryComponentApplicationProperties::class;
protected $applicationPropertiesDataType = '';
protected $databasePropertiesType = SapDiscoveryComponentDatabaseProperties::class;
protected $databasePropertiesDataType = '';
/**
* Optional. A list of host URIs that are part of the HA configuration if
* present. An empty list indicates the component is not configured for HA.
*
* @var string[]
*/
public $haHosts;
/**
* Required. Pantheon Project in which the resources reside.
*
* @var string
*/
public $hostProject;
/**
* Optional. The region this component's resources are primarily located in.
*
* @var string
*/
public $region;
protected $replicationSitesType = SapDiscoveryComponentReplicationSite::class;
protected $replicationSitesDataType = 'array';
protected $resourcesType = SapDiscoveryResource::class;
protected $resourcesDataType = 'array';
/**
* Optional. The SAP identifier, used by the SAP software and helps
* differentiate systems for customers.
*
* @var string
*/
public $sid;
/**
* Optional. The detected topology of the component.
*
* @var string
*/
public $topologyType;
/**
* Optional. The component is a SAP application.
*
* @param SapDiscoveryComponentApplicationProperties $applicationProperties
*/
public function setApplicationProperties(SapDiscoveryComponentApplicationProperties $applicationProperties)
{
$this->applicationProperties = $applicationProperties;
}
/**
* @return SapDiscoveryComponentApplicationProperties
*/
public function getApplicationProperties()
{
return $this->applicationProperties;
}
/**
* Optional. The component is a SAP database.
*
* @param SapDiscoveryComponentDatabaseProperties $databaseProperties
*/
public function setDatabaseProperties(SapDiscoveryComponentDatabaseProperties $databaseProperties)
{
$this->databaseProperties = $databaseProperties;
}
/**
* @return SapDiscoveryComponentDatabaseProperties
*/
public function getDatabaseProperties()
{
return $this->databaseProperties;
}
/**
* Optional. A list of host URIs that are part of the HA configuration if
* present. An empty list indicates the component is not configured for HA.
*
* @param string[] $haHosts
*/
public function setHaHosts($haHosts)
{
$this->haHosts = $haHosts;
}
/**
* @return string[]
*/
public function getHaHosts()
{
return $this->haHosts;
}
/**
* Required. Pantheon Project in which the resources reside.
*
* @param string $hostProject
*/
public function setHostProject($hostProject)
{
$this->hostProject = $hostProject;
}
/**
* @return string
*/
public function getHostProject()
{
return $this->hostProject;
}
/**
* Optional. The region this component's resources are primarily located in.
*
* @param string $region
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* Optional. A list of replication sites used in Disaster Recovery (DR)
* configurations.
*
* @param SapDiscoveryComponentReplicationSite[] $replicationSites
*/
public function setReplicationSites($replicationSites)
{
$this->replicationSites = $replicationSites;
}
/**
* @return SapDiscoveryComponentReplicationSite[]
*/
public function getReplicationSites()
{
return $this->replicationSites;
}
/**
* Optional. The resources in a component.
*
* @param SapDiscoveryResource[] $resources
*/
public function setResources($resources)
{
$this->resources = $resources;
}
/**
* @return SapDiscoveryResource[]
*/
public function getResources()
{
return $this->resources;
}
/**
* Optional. The SAP identifier, used by the SAP software and helps
* differentiate systems for customers.
*
* @param string $sid
*/
public function setSid($sid)
{
$this->sid = $sid;
}
/**
* @return string
*/
public function getSid()
{
return $this->sid;
}
/**
* Optional. The detected topology of the component.
*
* Accepted values: TOPOLOGY_TYPE_UNSPECIFIED, TOPOLOGY_SCALE_UP,
* TOPOLOGY_SCALE_OUT
*
* @param self::TOPOLOGY_TYPE_* $topologyType
*/
public function setTopologyType($topologyType)
{
$this->topologyType = $topologyType;
}
/**
* @return self::TOPOLOGY_TYPE_*
*/
public function getTopologyType()
{
return $this->topologyType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SapDiscoveryComponent::class, 'Google_Service_WorkloadManager_SapDiscoveryComponent');
@@ -0,0 +1,228 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class SapDiscoveryComponentApplicationProperties extends \Google\Model
{
/**
* Unspecified application type
*/
public const APPLICATION_TYPE_APPLICATION_TYPE_UNSPECIFIED = 'APPLICATION_TYPE_UNSPECIFIED';
/**
* SAP Netweaver
*/
public const APPLICATION_TYPE_NETWEAVER = 'NETWEAVER';
/**
* SAP Netweaver ABAP
*/
public const APPLICATION_TYPE_NETWEAVER_ABAP = 'NETWEAVER_ABAP';
/**
* SAP Netweaver Java
*/
public const APPLICATION_TYPE_NETWEAVER_JAVA = 'NETWEAVER_JAVA';
/**
* Optional. Deprecated: ApplicationType now tells you whether this is ABAP or
* Java.
*
* @deprecated
* @var bool
*/
public $abap;
/**
* Optional. Instance number of the SAP application instance.
*
* @var string
*/
public $appInstanceNumber;
/**
* Required. Type of the application. Netweaver, etc.
*
* @var string
*/
public $applicationType;
/**
* Optional. Instance number of the ASCS instance.
*
* @var string
*/
public $ascsInstanceNumber;
/**
* Optional. Resource URI of the recognized ASCS host of the application.
*
* @var string
*/
public $ascsUri;
/**
* Optional. Instance number of the ERS instance.
*
* @var string
*/
public $ersInstanceNumber;
/**
* Optional. Kernel version for Netweaver running in the system.
*
* @var string
*/
public $kernelVersion;
/**
* Optional. Resource URI of the recognized shared NFS of the application. May
* be empty if the application server has only a single node.
*
* @var string
*/
public $nfsUri;
/**
* Optional. Deprecated: ApplicationType now tells you whether this is ABAP or
* Java.
*
* @deprecated
* @param bool $abap
*/
public function setAbap($abap)
{
$this->abap = $abap;
}
/**
* @deprecated
* @return bool
*/
public function getAbap()
{
return $this->abap;
}
/**
* Optional. Instance number of the SAP application instance.
*
* @param string $appInstanceNumber
*/
public function setAppInstanceNumber($appInstanceNumber)
{
$this->appInstanceNumber = $appInstanceNumber;
}
/**
* @return string
*/
public function getAppInstanceNumber()
{
return $this->appInstanceNumber;
}
/**
* Required. Type of the application. Netweaver, etc.
*
* Accepted values: APPLICATION_TYPE_UNSPECIFIED, NETWEAVER, NETWEAVER_ABAP,
* NETWEAVER_JAVA
*
* @param self::APPLICATION_TYPE_* $applicationType
*/
public function setApplicationType($applicationType)
{
$this->applicationType = $applicationType;
}
/**
* @return self::APPLICATION_TYPE_*
*/
public function getApplicationType()
{
return $this->applicationType;
}
/**
* Optional. Instance number of the ASCS instance.
*
* @param string $ascsInstanceNumber
*/
public function setAscsInstanceNumber($ascsInstanceNumber)
{
$this->ascsInstanceNumber = $ascsInstanceNumber;
}
/**
* @return string
*/
public function getAscsInstanceNumber()
{
return $this->ascsInstanceNumber;
}
/**
* Optional. Resource URI of the recognized ASCS host of the application.
*
* @param string $ascsUri
*/
public function setAscsUri($ascsUri)
{
$this->ascsUri = $ascsUri;
}
/**
* @return string
*/
public function getAscsUri()
{
return $this->ascsUri;
}
/**
* Optional. Instance number of the ERS instance.
*
* @param string $ersInstanceNumber
*/
public function setErsInstanceNumber($ersInstanceNumber)
{
$this->ersInstanceNumber = $ersInstanceNumber;
}
/**
* @return string
*/
public function getErsInstanceNumber()
{
return $this->ersInstanceNumber;
}
/**
* Optional. Kernel version for Netweaver running in the system.
*
* @param string $kernelVersion
*/
public function setKernelVersion($kernelVersion)
{
$this->kernelVersion = $kernelVersion;
}
/**
* @return string
*/
public function getKernelVersion()
{
return $this->kernelVersion;
}
/**
* Optional. Resource URI of the recognized shared NFS of the application. May
* be empty if the application server has only a single node.
*
* @param string $nfsUri
*/
public function setNfsUri($nfsUri)
{
$this->nfsUri = $nfsUri;
}
/**
* @return string
*/
public function getNfsUri()
{
return $this->nfsUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SapDiscoveryComponentApplicationProperties::class, 'Google_Service_WorkloadManager_SapDiscoveryComponentApplicationProperties');
@@ -0,0 +1,213 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class SapDiscoveryComponentDatabaseProperties extends \Google\Model
{
/**
* Unspecified database type.
*/
public const DATABASE_TYPE_DATABASE_TYPE_UNSPECIFIED = 'DATABASE_TYPE_UNSPECIFIED';
/**
* SAP HANA
*/
public const DATABASE_TYPE_HANA = 'HANA';
/**
* SAP MAX_DB
*/
public const DATABASE_TYPE_MAX_DB = 'MAX_DB';
/**
* IBM DB2
*/
public const DATABASE_TYPE_DB2 = 'DB2';
/**
* Oracle Database
*/
public const DATABASE_TYPE_ORACLE = 'ORACLE';
/**
* Microsoft SQL Server
*/
public const DATABASE_TYPE_SQLSERVER = 'SQLSERVER';
/**
* SAP Sybase ASE
*/
public const DATABASE_TYPE_ASE = 'ASE';
/**
* Optional. SID of the system database.
*
* @var string
*/
public $databaseSid;
/**
* Required. Type of the database. HANA, DB2, etc.
*
* @var string
*/
public $databaseType;
/**
* Optional. The version of the database software running in the system.
*
* @var string
*/
public $databaseVersion;
/**
* Optional. Instance number of the SAP instance.
*
* @var string
*/
public $instanceNumber;
/**
* Optional. Landscape ID from the HANA nameserver.
*
* @var string
*/
public $landscapeId;
/**
* Required. URI of the recognized primary instance of the database.
*
* @var string
*/
public $primaryInstanceUri;
/**
* Optional. URI of the recognized shared NFS of the database. May be empty if
* the database has only a single node.
*
* @var string
*/
public $sharedNfsUri;
/**
* Optional. SID of the system database.
*
* @param string $databaseSid
*/
public function setDatabaseSid($databaseSid)
{
$this->databaseSid = $databaseSid;
}
/**
* @return string
*/
public function getDatabaseSid()
{
return $this->databaseSid;
}
/**
* Required. Type of the database. HANA, DB2, etc.
*
* Accepted values: DATABASE_TYPE_UNSPECIFIED, HANA, MAX_DB, DB2, ORACLE,
* SQLSERVER, ASE
*
* @param self::DATABASE_TYPE_* $databaseType
*/
public function setDatabaseType($databaseType)
{
$this->databaseType = $databaseType;
}
/**
* @return self::DATABASE_TYPE_*
*/
public function getDatabaseType()
{
return $this->databaseType;
}
/**
* Optional. The version of the database software running in the system.
*
* @param string $databaseVersion
*/
public function setDatabaseVersion($databaseVersion)
{
$this->databaseVersion = $databaseVersion;
}
/**
* @return string
*/
public function getDatabaseVersion()
{
return $this->databaseVersion;
}
/**
* Optional. Instance number of the SAP instance.
*
* @param string $instanceNumber
*/
public function setInstanceNumber($instanceNumber)
{
$this->instanceNumber = $instanceNumber;
}
/**
* @return string
*/
public function getInstanceNumber()
{
return $this->instanceNumber;
}
/**
* Optional. Landscape ID from the HANA nameserver.
*
* @param string $landscapeId
*/
public function setLandscapeId($landscapeId)
{
$this->landscapeId = $landscapeId;
}
/**
* @return string
*/
public function getLandscapeId()
{
return $this->landscapeId;
}
/**
* Required. URI of the recognized primary instance of the database.
*
* @param string $primaryInstanceUri
*/
public function setPrimaryInstanceUri($primaryInstanceUri)
{
$this->primaryInstanceUri = $primaryInstanceUri;
}
/**
* @return string
*/
public function getPrimaryInstanceUri()
{
return $this->primaryInstanceUri;
}
/**
* Optional. URI of the recognized shared NFS of the database. May be empty if
* the database has only a single node.
*
* @param string $sharedNfsUri
*/
public function setSharedNfsUri($sharedNfsUri)
{
$this->sharedNfsUri = $sharedNfsUri;
}
/**
* @return string
*/
public function getSharedNfsUri()
{
return $this->sharedNfsUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SapDiscoveryComponentDatabaseProperties::class, 'Google_Service_WorkloadManager_SapDiscoveryComponentDatabaseProperties');
@@ -0,0 +1,66 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WorkloadManager;
class SapDiscoveryComponentReplicationSite extends \Google\Model
{
protected $componentType = SapDiscoveryComponent::class;
protected $componentDataType = '';
/**
* Optional. The name of the source site from which this one replicates.
*
* @var string
*/
public $sourceSite;
/**
* Optional. The system component for the site.
*
* @param SapDiscoveryComponent $component
*/
public function setComponent(SapDiscoveryComponent $component)
{
$this->component = $component;
}
/**
* @return SapDiscoveryComponent
*/
public function getComponent()
{
return $this->component;
}
/**
* Optional. The name of the source site from which this one replicates.
*
* @param string $sourceSite
*/
public function setSourceSite($sourceSite)
{
$this->sourceSite = $sourceSite;
}
/**
* @return string
*/
public function getSourceSite()
{
return $this->sourceSite;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SapDiscoveryComponentReplicationSite::class, 'Google_Service_WorkloadManager_SapDiscoveryComponentReplicationSite');

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