diff --git a/src/WorkloadManager.php b/src/WorkloadManager.php index cc2aebeb90..39d8c05fb7 100644 --- a/src/WorkloadManager.php +++ b/src/WorkloadManager.php @@ -48,6 +48,7 @@ class WorkloadManager extends \Google\Service public $projects_locations_insights; public $projects_locations_operations; public $projects_locations_rules; + public $projects_locations_workloadProfiles; /** * Constructs the internal representation of the WorkloadManager service. @@ -131,6 +132,20 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'type' => 'string', ], ], + ],'delete' => [ + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'requestId' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], ],'get' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'GET', @@ -177,7 +192,21 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'executions', [ 'methods' => [ - 'get' => [ + 'delete' => [ + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'requestId' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ],'get' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => [ @@ -417,6 +446,48 @@ public function __construct($clientOrConfig = [], $rootUrl = null) ] ] ); + $this->projects_locations_workloadProfiles = new WorkloadManager\Resource\ProjectsLocationsWorkloadProfiles( + $this, + $this->serviceName, + 'workloadProfiles', + [ + 'methods' => [ + 'get' => [ + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'list' => [ + 'path' => 'v1/{+parent}/workloadProfiles', + 'httpMethod' => 'GET', + 'parameters' => [ + 'parent' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'filter' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'pageSize' => [ + 'location' => 'query', + 'type' => 'integer', + ], + 'pageToken' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ], + ] + ] + ); } } diff --git a/src/WorkloadManager/APILayerServer.php b/src/WorkloadManager/APILayerServer.php new file mode 100644 index 0000000000..6a8dbdbdc1 --- /dev/null +++ b/src/WorkloadManager/APILayerServer.php @@ -0,0 +1,79 @@ +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'); diff --git a/src/WorkloadManager/AvailabilityGroup.php b/src/WorkloadManager/AvailabilityGroup.php new file mode 100644 index 0000000000..734c3adbc6 --- /dev/null +++ b/src/WorkloadManager/AvailabilityGroup.php @@ -0,0 +1,99 @@ +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'); diff --git a/src/WorkloadManager/BackendServer.php b/src/WorkloadManager/BackendServer.php new file mode 100644 index 0000000000..cfdf8f5f90 --- /dev/null +++ b/src/WorkloadManager/BackendServer.php @@ -0,0 +1,115 @@ +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'); diff --git a/src/WorkloadManager/CloudResource.php b/src/WorkloadManager/CloudResource.php new file mode 100644 index 0000000000..484ae4578b --- /dev/null +++ b/src/WorkloadManager/CloudResource.php @@ -0,0 +1,62 @@ +kind = $kind; + } + /** + * @return string + */ + public function getKind() + { + return $this->kind; + } + /** + * @param string + */ + public function setName($name) + { + $this->name = $name; + } + /** + * @return string + */ + public function getName() + { + return $this->name; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CloudResource::class, 'Google_Service_WorkloadManager_CloudResource'); diff --git a/src/WorkloadManager/Cluster.php b/src/WorkloadManager/Cluster.php new file mode 100644 index 0000000000..52ae5b911e --- /dev/null +++ b/src/WorkloadManager/Cluster.php @@ -0,0 +1,63 @@ +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'); diff --git a/src/WorkloadManager/Database.php b/src/WorkloadManager/Database.php new file mode 100644 index 0000000000..83ece9a77a --- /dev/null +++ b/src/WorkloadManager/Database.php @@ -0,0 +1,98 @@ +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 setHostVm($hostVm) + { + $this->hostVm = $hostVm; + } + /** + * @return string + */ + public function getHostVm() + { + return $this->hostVm; + } + /** + * @param string + */ + public function setName($name) + { + $this->name = $name; + } + /** + * @return string + */ + public function getName() + { + return $this->name; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Database::class, 'Google_Service_WorkloadManager_Database'); diff --git a/src/WorkloadManager/FrontEndServer.php b/src/WorkloadManager/FrontEndServer.php new file mode 100644 index 0000000000..f9bd93f32a --- /dev/null +++ b/src/WorkloadManager/FrontEndServer.php @@ -0,0 +1,79 @@ +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'); diff --git a/src/WorkloadManager/Instance.php b/src/WorkloadManager/Instance.php new file mode 100644 index 0000000000..a687a30a25 --- /dev/null +++ b/src/WorkloadManager/Instance.php @@ -0,0 +1,80 @@ +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'); diff --git a/src/WorkloadManager/Layer.php b/src/WorkloadManager/Layer.php new file mode 100644 index 0000000000..a5471cb0c5 --- /dev/null +++ b/src/WorkloadManager/Layer.php @@ -0,0 +1,97 @@ +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'); diff --git a/src/WorkloadManager/ListWorkloadProfilesResponse.php b/src/WorkloadManager/ListWorkloadProfilesResponse.php new file mode 100644 index 0000000000..3896c1714b --- /dev/null +++ b/src/WorkloadManager/ListWorkloadProfilesResponse.php @@ -0,0 +1,79 @@ +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'); diff --git a/src/WorkloadManager/LoadBalancerServer.php b/src/WorkloadManager/LoadBalancerServer.php new file mode 100644 index 0000000000..9bfd88dbbb --- /dev/null +++ b/src/WorkloadManager/LoadBalancerServer.php @@ -0,0 +1,62 @@ +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'); diff --git a/src/WorkloadManager/Resource/ProjectsLocationsEvaluations.php b/src/WorkloadManager/Resource/ProjectsLocationsEvaluations.php index de0bad3f52..6279e86858 100644 --- a/src/WorkloadManager/Resource/ProjectsLocationsEvaluations.php +++ b/src/WorkloadManager/Resource/ProjectsLocationsEvaluations.php @@ -61,6 +61,32 @@ public function create($parent, Evaluation $postBody, $optParams = []) $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 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) * diff --git a/src/WorkloadManager/Resource/ProjectsLocationsEvaluationsExecutions.php b/src/WorkloadManager/Resource/ProjectsLocationsEvaluationsExecutions.php index c4131a8c52..6a2f50510a 100644 --- a/src/WorkloadManager/Resource/ProjectsLocationsEvaluationsExecutions.php +++ b/src/WorkloadManager/Resource/ProjectsLocationsEvaluationsExecutions.php @@ -32,6 +32,32 @@ */ 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) * diff --git a/src/WorkloadManager/Resource/ProjectsLocationsWorkloadProfiles.php b/src/WorkloadManager/Resource/ProjectsLocationsWorkloadProfiles.php new file mode 100644 index 0000000000..484f15dbcd --- /dev/null +++ b/src/WorkloadManager/Resource/ProjectsLocationsWorkloadProfiles.php @@ -0,0 +1,71 @@ + + * $workloadmanagerService = new Google\Service\WorkloadManager(...); + * $workloadProfiles = $workloadmanagerService->projects_locations_workloadProfiles; + * + */ +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'); diff --git a/src/WorkloadManager/SapComponent.php b/src/WorkloadManager/SapComponent.php new file mode 100644 index 0000000000..e2fbff24e0 --- /dev/null +++ b/src/WorkloadManager/SapComponent.php @@ -0,0 +1,61 @@ +resources = $resources; + } + /** + * @return CloudResource[] + */ + public function getResources() + { + return $this->resources; + } + /** + * @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(SapComponent::class, 'Google_Service_WorkloadManager_SapComponent'); diff --git a/src/WorkloadManager/SapDiscovery.php b/src/WorkloadManager/SapDiscovery.php index 1ee3962819..9227ec0c6d 100644 --- a/src/WorkloadManager/SapDiscovery.php +++ b/src/WorkloadManager/SapDiscovery.php @@ -37,6 +37,8 @@ class SapDiscovery extends \Google\Model * @var string */ public $updateTime; + protected $workloadPropertiesType = SapDiscoveryWorkloadProperties::class; + protected $workloadPropertiesDataType = ''; /** * @param SapDiscoveryComponent @@ -122,6 +124,20 @@ public function getUpdateTime() { return $this->updateTime; } + /** + * @param SapDiscoveryWorkloadProperties + */ + 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. diff --git a/src/WorkloadManager/SapDiscoveryWorkloadProperties.php b/src/WorkloadManager/SapDiscoveryWorkloadProperties.php new file mode 100644 index 0000000000..0fd36c0acf --- /dev/null +++ b/src/WorkloadManager/SapDiscoveryWorkloadProperties.php @@ -0,0 +1,59 @@ +productVersions = $productVersions; + } + /** + * @return SapDiscoveryWorkloadPropertiesProductVersion[] + */ + public function getProductVersions() + { + return $this->productVersions; + } + /** + * @param SapDiscoveryWorkloadPropertiesSoftwareComponentProperties[] + */ + public function setSoftwareComponentVersions($softwareComponentVersions) + { + $this->softwareComponentVersions = $softwareComponentVersions; + } + /** + * @return SapDiscoveryWorkloadPropertiesSoftwareComponentProperties[] + */ + public function getSoftwareComponentVersions() + { + return $this->softwareComponentVersions; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SapDiscoveryWorkloadProperties::class, 'Google_Service_WorkloadManager_SapDiscoveryWorkloadProperties'); diff --git a/src/WorkloadManager/SapDiscoveryWorkloadPropertiesProductVersion.php b/src/WorkloadManager/SapDiscoveryWorkloadPropertiesProductVersion.php new file mode 100644 index 0000000000..705729e57a --- /dev/null +++ b/src/WorkloadManager/SapDiscoveryWorkloadPropertiesProductVersion.php @@ -0,0 +1,62 @@ +name = $name; + } + /** + * @return string + */ + public function getName() + { + return $this->name; + } + /** + * @param string + */ + 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(SapDiscoveryWorkloadPropertiesProductVersion::class, 'Google_Service_WorkloadManager_SapDiscoveryWorkloadPropertiesProductVersion'); diff --git a/src/WorkloadManager/SapDiscoveryWorkloadPropertiesSoftwareComponentProperties.php b/src/WorkloadManager/SapDiscoveryWorkloadPropertiesSoftwareComponentProperties.php new file mode 100644 index 0000000000..c92fb37de1 --- /dev/null +++ b/src/WorkloadManager/SapDiscoveryWorkloadPropertiesSoftwareComponentProperties.php @@ -0,0 +1,98 @@ +extVersion = $extVersion; + } + /** + * @return string + */ + public function getExtVersion() + { + return $this->extVersion; + } + /** + * @param string + */ + public function setName($name) + { + $this->name = $name; + } + /** + * @return string + */ + public function getName() + { + return $this->name; + } + /** + * @param string + */ + public function setType($type) + { + $this->type = $type; + } + /** + * @return string + */ + public function getType() + { + return $this->type; + } + /** + * @param string + */ + 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(SapDiscoveryWorkloadPropertiesSoftwareComponentProperties::class, 'Google_Service_WorkloadManager_SapDiscoveryWorkloadPropertiesSoftwareComponentProperties'); diff --git a/src/WorkloadManager/SapWorkload.php b/src/WorkloadManager/SapWorkload.php new file mode 100644 index 0000000000..f94ff1be86 --- /dev/null +++ b/src/WorkloadManager/SapWorkload.php @@ -0,0 +1,76 @@ +application = $application; + } + /** + * @return SapComponent + */ + public function getApplication() + { + return $this->application; + } + /** + * @param SapComponent + */ + public function setDatabase(SapComponent $database) + { + $this->database = $database; + } + /** + * @return SapComponent + */ + public function getDatabase() + { + return $this->database; + } + /** + * @param string[] + */ + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + /** + * @return string[] + */ + public function getMetadata() + { + return $this->metadata; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SapWorkload::class, 'Google_Service_WorkloadManager_SapWorkload'); diff --git a/src/WorkloadManager/SapWorkloadOverview.php b/src/WorkloadManager/SapWorkloadOverview.php new file mode 100644 index 0000000000..432e6ba9ab --- /dev/null +++ b/src/WorkloadManager/SapWorkloadOverview.php @@ -0,0 +1,80 @@ +appSid = $appSid; + } + /** + * @return string + */ + public function getAppSid() + { + return $this->appSid; + } + /** + * @param string + */ + public function setDbSid($dbSid) + { + $this->dbSid = $dbSid; + } + /** + * @return string + */ + public function getDbSid() + { + return $this->dbSid; + } + /** + * @param string + */ + public function setSapSystemId($sapSystemId) + { + $this->sapSystemId = $sapSystemId; + } + /** + * @return string + */ + public function getSapSystemId() + { + return $this->sapSystemId; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SapWorkloadOverview::class, 'Google_Service_WorkloadManager_SapWorkloadOverview'); diff --git a/src/WorkloadManager/SqlserverWorkload.php b/src/WorkloadManager/SqlserverWorkload.php new file mode 100644 index 0000000000..39283cdabc --- /dev/null +++ b/src/WorkloadManager/SqlserverWorkload.php @@ -0,0 +1,91 @@ +ags = $ags; + } + /** + * @return AvailabilityGroup[] + */ + public function getAgs() + { + return $this->ags; + } + /** + * @param Cluster + */ + public function setCluster(Cluster $cluster) + { + $this->cluster = $cluster; + } + /** + * @return Cluster + */ + public function getCluster() + { + return $this->cluster; + } + /** + * @param Database[] + */ + public function setDatabases($databases) + { + $this->databases = $databases; + } + /** + * @return Database[] + */ + public function getDatabases() + { + return $this->databases; + } + /** + * @param LoadBalancerServer + */ + public function setLoadBalancerServer(LoadBalancerServer $loadBalancerServer) + { + $this->loadBalancerServer = $loadBalancerServer; + } + /** + * @return LoadBalancerServer + */ + public function getLoadBalancerServer() + { + return $this->loadBalancerServer; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SqlserverWorkload::class, 'Google_Service_WorkloadManager_SqlserverWorkload'); diff --git a/src/WorkloadManager/SqlserverWorkloadOverview.php b/src/WorkloadManager/SqlserverWorkloadOverview.php new file mode 100644 index 0000000000..86c49573c5 --- /dev/null +++ b/src/WorkloadManager/SqlserverWorkloadOverview.php @@ -0,0 +1,63 @@ +availabilityGroup = $availabilityGroup; + } + /** + * @return string[] + */ + public function getAvailabilityGroup() + { + return $this->availabilityGroup; + } + /** + * @param string + */ + public function setSqlserverSystemId($sqlserverSystemId) + { + $this->sqlserverSystemId = $sqlserverSystemId; + } + /** + * @return string + */ + public function getSqlserverSystemId() + { + return $this->sqlserverSystemId; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SqlserverWorkloadOverview::class, 'Google_Service_WorkloadManager_SqlserverWorkloadOverview'); diff --git a/src/WorkloadManager/ThreeTierWorkload.php b/src/WorkloadManager/ThreeTierWorkload.php new file mode 100644 index 0000000000..8b600066e6 --- /dev/null +++ b/src/WorkloadManager/ThreeTierWorkload.php @@ -0,0 +1,92 @@ +apiLayer = $apiLayer; + } + /** + * @return APILayerServer + */ + public function getApiLayer() + { + return $this->apiLayer; + } + /** + * @param BackendServer + */ + public function setBackend(BackendServer $backend) + { + $this->backend = $backend; + } + /** + * @return BackendServer + */ + public function getBackend() + { + return $this->backend; + } + /** + * @param string + */ + public function setEndpoint($endpoint) + { + $this->endpoint = $endpoint; + } + /** + * @return string + */ + public function getEndpoint() + { + return $this->endpoint; + } + /** + * @param FrontEndServer + */ + public function setFrontend(FrontEndServer $frontend) + { + $this->frontend = $frontend; + } + /** + * @return FrontEndServer + */ + public function getFrontend() + { + return $this->frontend; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ThreeTierWorkload::class, 'Google_Service_WorkloadManager_ThreeTierWorkload'); diff --git a/src/WorkloadManager/ThreeTierWorkloadOverview.php b/src/WorkloadManager/ThreeTierWorkloadOverview.php new file mode 100644 index 0000000000..dd7e1dfe00 --- /dev/null +++ b/src/WorkloadManager/ThreeTierWorkloadOverview.php @@ -0,0 +1,44 @@ +threeTierSystemId = $threeTierSystemId; + } + /** + * @return string + */ + public function getThreeTierSystemId() + { + return $this->threeTierSystemId; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ThreeTierWorkloadOverview::class, 'Google_Service_WorkloadManager_ThreeTierWorkloadOverview'); diff --git a/src/WorkloadManager/WorkloadProfile.php b/src/WorkloadManager/WorkloadProfile.php new file mode 100644 index 0000000000..01217249cb --- /dev/null +++ b/src/WorkloadManager/WorkloadProfile.php @@ -0,0 +1,212 @@ +application = $application; + } + /** + * @return Layer + */ + public function getApplication() + { + return $this->application; + } + /** + * @param Layer + */ + public function setAscs(Layer $ascs) + { + $this->ascs = $ascs; + } + /** + * @return Layer + */ + public function getAscs() + { + return $this->ascs; + } + /** + * @param Layer + */ + public function setDatabase(Layer $database) + { + $this->database = $database; + } + /** + * @return Layer + */ + public function getDatabase() + { + return $this->database; + } + /** + * @param string[] + */ + public function setLabels($labels) + { + $this->labels = $labels; + } + /** + * @return string[] + */ + public function getLabels() + { + return $this->labels; + } + /** + * @param string + */ + public function setName($name) + { + $this->name = $name; + } + /** + * @return string + */ + public function getName() + { + return $this->name; + } + /** + * @param string + */ + public function setRefreshedTime($refreshedTime) + { + $this->refreshedTime = $refreshedTime; + } + /** + * @return string + */ + public function getRefreshedTime() + { + return $this->refreshedTime; + } + /** + * @param SapWorkload + */ + public function setSapWorkload(SapWorkload $sapWorkload) + { + $this->sapWorkload = $sapWorkload; + } + /** + * @return SapWorkload + */ + public function getSapWorkload() + { + return $this->sapWorkload; + } + /** + * @param SqlserverWorkload + */ + public function setSqlserverWorkload(SqlserverWorkload $sqlserverWorkload) + { + $this->sqlserverWorkload = $sqlserverWorkload; + } + /** + * @return SqlserverWorkload + */ + public function getSqlserverWorkload() + { + return $this->sqlserverWorkload; + } + /** + * @param string + */ + public function setState($state) + { + $this->state = $state; + } + /** + * @return string + */ + public function getState() + { + return $this->state; + } + /** + * @param ThreeTierWorkload + */ + public function setThreeTierWorkload(ThreeTierWorkload $threeTierWorkload) + { + $this->threeTierWorkload = $threeTierWorkload; + } + /** + * @return ThreeTierWorkload + */ + public function getThreeTierWorkload() + { + return $this->threeTierWorkload; + } + /** + * @param string + */ + public function setWorkloadType($workloadType) + { + $this->workloadType = $workloadType; + } + /** + * @return string + */ + public function getWorkloadType() + { + return $this->workloadType; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(WorkloadProfile::class, 'Google_Service_WorkloadManager_WorkloadProfile'); diff --git a/src/WorkloadManager/WorkloadProfileOverview.php b/src/WorkloadManager/WorkloadProfileOverview.php new file mode 100644 index 0000000000..095bc87c13 --- /dev/null +++ b/src/WorkloadManager/WorkloadProfileOverview.php @@ -0,0 +1,74 @@ +sapWorkloadOverview = $sapWorkloadOverview; + } + /** + * @return SapWorkloadOverview + */ + public function getSapWorkloadOverview() + { + return $this->sapWorkloadOverview; + } + /** + * @param SqlserverWorkloadOverview + */ + public function setSqlserverWorkloadOverview(SqlserverWorkloadOverview $sqlserverWorkloadOverview) + { + $this->sqlserverWorkloadOverview = $sqlserverWorkloadOverview; + } + /** + * @return SqlserverWorkloadOverview + */ + public function getSqlserverWorkloadOverview() + { + return $this->sqlserverWorkloadOverview; + } + /** + * @param ThreeTierWorkloadOverview + */ + public function setThreeTierWorkloadOverview(ThreeTierWorkloadOverview $threeTierWorkloadOverview) + { + $this->threeTierWorkloadOverview = $threeTierWorkloadOverview; + } + /** + * @return ThreeTierWorkloadOverview + */ + public function getThreeTierWorkloadOverview() + { + return $this->threeTierWorkloadOverview; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(WorkloadProfileOverview::class, 'Google_Service_WorkloadManager_WorkloadProfileOverview');