diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index e69eb743..16270278 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -6,4 +6,4 @@ Provide a summary of your changes. - [ ] The version constant is updated in `Client.php` - [ ] The changelog is updated (when applicable) -- [ ] The supported Cluster API version is updated in the README (when applicable) +- [ ] The supported Core API version is updated in the README (when applicable) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cff4f3c4..213180af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,9 @@ -name: Cluster API +name: Core API on: [ push, pull_request ] jobs: - cluster-api-tests: + core-api-tests: runs-on: ubuntu-latest strategy: matrix: diff --git a/CHANGELOG.md b/CHANGELOG.md index 8863c560..70cefada 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). Please note this changelog affects -this package and not the cluster API. See the changelog of the [cluster API](https://cluster-api.cyberfusion.nl/redoc#section/Changelog) +this package and not the core API. See the changelog of the [core API](https://core-api.cyberfusion.io/redoc#section/Changelog) for detailed information. ## [1.113.1] @@ -93,7 +93,7 @@ for detailed information. ### Changed - Change the minimum values of backup interval properties of the cluster. -- Update to [API version 1.227.0](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.227-2024-02-10). +- Update to [API version 1.227.0](https://core-api.cyberfusion.io/redoc#section/Changelog/1.227-2024-02-10). ### Fixed @@ -124,7 +124,7 @@ for detailed information. ### Changed -- Update to [API version 1.214.0](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.214-2023-11-29). +- Update to [API version 1.214.0](https://core-api.cyberfusion.io/redoc#section/Changelog/1.214-2023-11-29). ## [1.104.2] @@ -142,7 +142,7 @@ for detailed information. ### Changed -- Update to Cluster API version 1.208. +- Update to Core API version 1.208. ## [1.103.9] @@ -226,7 +226,7 @@ for detailed information. ### Added -- Add missing endpoints to cluster API entry point. +- Add missing endpoints to core API entry point. ## [1.102.1] @@ -256,7 +256,7 @@ for detailed information. ### Changed - Clusters: Change `customer_id` validation. -- Update to [API version 1.198.2](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.198.2-2023-09-20). +- Update to [API version 1.198.2](https://core-api.cyberfusion.io/redoc#section/Changelog/1.198.2-2023-09-20). ### Removed @@ -290,7 +290,7 @@ for detailed information. ### Changed -- Update to [API version 1.187.1](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.187.1-2023-08-02). +- Update to [API version 1.187.1](https://core-api.cyberfusion.io/redoc#section/Changelog/1.187.1-2023-08-02). ## [1.100.1] @@ -312,7 +312,7 @@ for detailed information. - Allow underscores in the name of a custom config snippet instead of a dash. - Allow `null` as password for UNIX users to limit to SSH key login only. -- Update to [API version 1.185.3](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.185.3-2023-07-21). +- Update to [API version 1.185.3](https://core-api.cyberfusion.io/redoc#section/Changelog/1.185.3-2023-07-21). ## [1.99.0] @@ -324,7 +324,7 @@ for detailed information. ### Changed - Update mailaccount validation. -- Update to [API version 1.183](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.183-2023-07-15). +- Update to [API version 1.183](https://core-api.cyberfusion.io/redoc#section/Changelog/1.183-2023-07-15). ## [1.98.0] @@ -524,7 +524,7 @@ for detailed information. ### Changed -- Update to [API version 1.155](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.155-2022-11-17). +- Update to [API version 1.155](https://core-api.cyberfusion.io/redoc#section/Changelog/1.155-2022-11-17). - Certificates: make certificate + CA chain + private key required and non-nullable. - Certificates: remove `isLetsEncrypt`. - Certificates: remove `statusMessage`. @@ -657,7 +657,7 @@ for detailed information. ### Changed -- Update to [API version 1.143](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.143-2022-10-19). +- Update to [API version 1.143](https://core-api.cyberfusion.io/redoc#section/Changelog/1.143-2022-10-19). - Add max length to `CmsInstallation` (`database_user_password` + `admin_password`) and `CmsConfigurationConstant` (`value`) - Remove min length validation from strings. @@ -778,28 +778,28 @@ for detailed information. - Use `DatabaseUserGrantPrivilegeName` enum for database user grant privilege names. - Make new `SELECT` database user grant privilege name available. -- Update to [API version 1.127](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.127-2022-06-06). +- Update to [API version 1.127](https://core-api.cyberfusion.io/redoc#section/Changelog/1.127-2022-06-06). ## [1.56.0] ### Changed - Update database and database user name regex. -- Update to [API version 1.126.1](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.126.1-2022-06-02). +- Update to [API version 1.126.1](https://core-api.cyberfusion.io/redoc#section/Changelog/1.126.1-2022-06-02). ## [1.55.0] ### Changed - Add support for Borg SSH key for clusters. -- Update to [API version 1.125](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.125-2022-05-27). +- Update to [API version 1.125](https://core-api.cyberfusion.io/redoc#section/Changelog/1.125-2022-05-27). ## [1.54.0] ### Changed - Change validation of `startup_file` of `PassengerApp` to end with `.js`. -- Update to [API version 1.124.1](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.124.1-2022-05-21). +- Update to [API version 1.124.1](https://core-api.cyberfusion.io/redoc#section/Changelog/1.124.1-2022-05-21). ## [1.53.0] @@ -829,7 +829,7 @@ for detailed information. ### Changed - Fix capitalisation of Enum values of `PassengerAppTypeEnum` and `PassengerEnvironmentEnum`. -- Update to [API version 1.119](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.119-2022-04-26). +- Update to [API version 1.119](https://core-api.cyberfusion.io/redoc#section/Changelog/1.119-2022-04-26). ## [1.49.3] @@ -857,7 +857,7 @@ for detailed information. ### Changed -- Update to [API version 1.118.3](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.118-2022-04-20). +- Update to [API version 1.118.3](https://core-api.cyberfusion.io/redoc#section/Changelog/1.118-2022-04-20). ## [1.48.1] @@ -874,7 +874,7 @@ for detailed information. ### Changed -- Update to [API version 1.117](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.117-2022-03-10). +- Update to [API version 1.117](https://core-api.cyberfusion.io/redoc#section/Changelog/1.117-2022-03-10). - A commit will now return a task collection. ## [1.47.1] @@ -891,7 +891,7 @@ for detailed information. ### Changed -- Update to [API version 1.116](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.116-2022-03-06). +- Update to [API version 1.116](https://core-api.cyberfusion.io/redoc#section/Changelog/1.116-2022-03-06). ### Fixed @@ -907,7 +907,7 @@ for detailed information. ### Changed -- Update to [API version 1.115](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.115-2022-03-04). +- Update to [API version 1.115](https://core-api.cyberfusion.io/redoc#section/Changelog/1.115-2022-03-04). - Renamed `from_timestamp_date` parameter to `timestamp`. This does not affect the usage of the package. ## [1.45.0] @@ -967,7 +967,7 @@ for detailed information. ### Changed -- Update to [API version 1.106.2](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.106.2-2022-01-24). +- Update to [API version 1.106.2](https://core-api.cyberfusion.io/redoc#section/Changelog/1.106.2-2022-01-24). - Update regex for mail account and mail alias local part ## [1.39.0] @@ -981,7 +981,7 @@ for detailed information. ### Changed -- Update to [API version 1.106](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.106-2022-01-21). +- Update to [API version 1.106](https://core-api.cyberfusion.io/redoc#section/Changelog/1.106-2022-01-21). - Moved the sort and limit constants to their own enums. ## [1.38.2] @@ -1005,7 +1005,7 @@ for detailed information. ### Changed -- Update to [API version 1.105.0](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.105-2021-12-28). +- Update to [API version 1.105.0](https://core-api.cyberfusion.io/redoc#section/Changelog/1.105-2021-12-28). ### Removed @@ -1019,13 +1019,13 @@ for detailed information. ### Changed -- Update to [API version 1.104.1](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.104.1-2021-12-20). +- Update to [API version 1.104.1](https://core-api.cyberfusion.io/redoc#section/Changelog/1.104.1-2021-12-20). ## [1.36.0] ### Changed -- Update to [API version 1.103](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.103-2021-12-16). +- Update to [API version 1.103](https://core-api.cyberfusion.io/redoc#section/Changelog/1.103-2021-12-16). ### Fixed @@ -1043,7 +1043,7 @@ for detailed information. ### Changed -- Update to [API version 1.102](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.102-2021-12-15). +- Update to [API version 1.102](https://core-api.cyberfusion.io/redoc#section/Changelog/1.102-2021-12-15). ## [1.34.0] @@ -1054,7 +1054,7 @@ for detailed information. ### Changed -- Update to [API version 1.101](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.101-2021-12-14). +- Update to [API version 1.101](https://core-api.cyberfusion.io/redoc#section/Changelog/1.101-2021-12-14). - Issue templates to assign the correct user instead of the organisation. Also made the bug report a bit easier to use. ### Fixed @@ -1076,7 +1076,7 @@ for detailed information. ## Changed -- Update to [API version 1.97](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.97-2021-12-02). +- Update to [API version 1.97](https://core-api.cyberfusion.io/redoc#section/Changelog/1.97-2021-12-02). - Always send the hashed password for the Database User but be able to set the hashed password with `setHashedPassword` or plain text password with `setPassword`. Thanks to @mbardelmeijer. - Setting the Database Engine of the Database User after setting the password will result in a `ModelException` as the @@ -1125,10 +1125,10 @@ for detailed information. ### Changed - Restored the ability to track cluster deployments when installing a CMS and still returns the CMS object (required - because the cluster API no longer returns the CMS object). -- The FPM pool restart endpoint no longer returns the FPM pool object (as the cluster API no longer returns the FPM pool + because the core API no longer returns the CMS object). +- The FPM pool restart endpoint no longer returns the FPM pool object (as the core API no longer returns the FPM pool object). -- Update to [API version 1.88](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.88-2021-11-09). +- Update to [API version 1.88](https://core-api.cyberfusion.io/redoc#section/Changelog/1.88-2021-11-09). - The `ListFilter` can now be initialized for models which enables checks for available fields to filter or sort on. ### Fixed @@ -1153,7 +1153,7 @@ for detailed information. - Add `disableAsync` to the `UnixUsers` endpoint. Thanks to @WilliamDEdwards. - Add `unit name` property to the FPM pool. Thanks to @WilliamDEdwards. -- Add version based user agent, i.e. `cyberfusion-cluster-api-client/1.29`. Thanks to @WilliamDEdwards. +- Add version based user agent, i.e. `cyberfusion-core-api-client/1.29`. Thanks to @WilliamDEdwards. ### Changed @@ -1163,7 +1163,7 @@ for detailed information. - Add positive integer validation to `max_children`, `max_requests`, `process_idle_timeout` and `cpu_limit` of FPM pools. - Add positive integer validation to `quota` of Mail accounts. -- Update to [API version 1.77](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.77-2021-09-30) +- Update to [API version 1.77](https://core-api.cyberfusion.io/redoc#section/Changelog/1.77-2021-09-30) ## [1.28.0] @@ -1177,7 +1177,7 @@ for detailed information. - The `from_timestamp_date` parameter is now required for Borg Repository Usages, Database Usages, Mail Account Usages and Unix User Usages. -- Update to [API version 1.65](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.65-2021-09-02) +- Update to [API version 1.65](https://core-api.cyberfusion.io/redoc#section/Changelog/1.65-2021-09-02) ## [1.26.0] @@ -1227,7 +1227,7 @@ for detailed information. ### Changed - Change the email address to be optional for crons. -- Update to [API version 1.56](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.56-2021-07-13) +- Update to [API version 1.56](https://core-api.cyberfusion.io/redoc#section/Changelog/1.56-2021-07-13) ## [1.23.1] @@ -1240,7 +1240,7 @@ for detailed information. ### Changed - Requesting a Let's Encrypt certificate not longer requires a cluster deployment. -- Update to [API version 1.48](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.48-2021-06-17) +- Update to [API version 1.48](https://core-api.cyberfusion.io/redoc#section/Changelog/1.48-2021-06-17) ### Fixed @@ -1256,7 +1256,7 @@ for detailed information. ### Changed - Change regex validation to allow capticals for the `table_name` of a database user grant. -- Update to [API version 1.47](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.47-2021-06-04) +- Update to [API version 1.47](https://core-api.cyberfusion.io/redoc#section/Changelog/1.47-2021-06-04) ## [1.21.2] @@ -1323,7 +1323,7 @@ for detailed information. ### Changed -- Update to [API version 1.35.1](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.35.1-2021-04-28) +- Update to [API version 1.35.1](https://core-api.cyberfusion.io/redoc#section/Changelog/1.35.1-2021-04-28) ## [1.16.0] @@ -1333,7 +1333,7 @@ for detailed information. ### Changed -- Update to [API version 1.34](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.34-2021-04-23) +- Update to [API version 1.34](https://core-api.cyberfusion.io/redoc#section/Changelog/1.34-2021-04-23) ### Removed @@ -1366,13 +1366,13 @@ for detailed information. ### Changed -- Update to [API version 1.32](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.32-2021-04-10) +- Update to [API version 1.32](https://core-api.cyberfusion.io/redoc#section/Changelog/1.32-2021-04-10) ## [1.13.0] ### Changed -- Update to [API version 1.29.1](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.29.1-2021-04-07) +- Update to [API version 1.29.1](https://core-api.cyberfusion.io/redoc#section/Changelog/1.29.1-2021-04-07) ## [1.12.0] @@ -1389,7 +1389,7 @@ for detailed information. ### Changed -- Update to [API version 1.28](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.28-2021-03-29) +- Update to [API version 1.28](https://core-api.cyberfusion.io/redoc#section/Changelog/1.28-2021-03-29) - Change to getters and setters for the properties to allow validation of the properties. To prevent breaking implementations, property access is still available but the use of the getters and setters is recommended. @@ -1403,7 +1403,7 @@ for detailed information. ### Changed -- Update to [API version 1.22](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.22-2021-03-23) +- Update to [API version 1.22](https://core-api.cyberfusion.io/redoc#section/Changelog/1.22-2021-03-23) ## [1.9.0] @@ -1414,7 +1414,7 @@ for detailed information. ### Changed -- Update to [API version 1.21](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.21-2021-03-18) +- Update to [API version 1.21](https://core-api.cyberfusion.io/redoc#section/Changelog/1.21-2021-03-18) ## [1.8.1] @@ -1432,17 +1432,17 @@ for detailed information. ### Changed -- Update to [API version 1.19](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.19-2021-03-12) +- Update to [API version 1.19](https://core-api.cyberfusion.io/redoc#section/Changelog/1.19-2021-03-12) ## [1.7.0] ### Added -- Add commands endpoint which were added in [API version 1.16](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.16-2021-03-05). +- Add commands endpoint which were added in [API version 1.16](https://core-api.cyberfusion.io/redoc#section/Changelog/1.16-2021-03-05). ### Changed -- Update to [API version 1.17](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.17-2021-03-08) +- Update to [API version 1.17](https://core-api.cyberfusion.io/redoc#section/Changelog/1.17-2021-03-08) ## [1.6.2] @@ -1469,7 +1469,7 @@ for detailed information. ### Changed -- Update to [API version 1.12](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.12-2021-02-23) +- Update to [API version 1.12](https://core-api.cyberfusion.io/redoc#section/Changelog/1.12-2021-02-23) ### Removed @@ -1495,13 +1495,13 @@ for detailed information. ### Changed -- Update to [API version 1.9](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.9-2021-02-01). +- Update to [API version 1.9](https://core-api.cyberfusion.io/redoc#section/Changelog/1.9-2021-02-01). ## [1.3.0] ### Changed -- Update to [API version 1.7](https://cluster-api.cyberfusion.nl/redoc#section/Changelog/1.7-2021-01-27). +- Update to [API version 1.7](https://core-api.cyberfusion.io/redoc#section/Changelog/1.7-2021-01-27). ## [1.2.0] @@ -1523,4 +1523,4 @@ for detailed information. ### Added -- Add the initial cluster API implementation. +- Add the initial core API implementation. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b5ce9c44..caff7d36 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,13 +2,13 @@ Contributions are **welcome** and you will be credited as a contributor. -The goal of this package is to enable developers to easily use the Cluster API of Cyberfusion. To make sure this +The goal of this package is to enable developers to easily use the Core API of Cyberfusion. To make sure this package is focused on that goal, there are some guidelines defined. Please read this contribution guide **before** creating an issue or pull request. ## We are all humans -This project is an open-source package and targets the users of the Cyberfusion Cluster API. This package isn't +This project is an open-source package and targets the users of the Cyberfusion Core API. This package isn't maintained by Cyberfusion, but is built and maintained in the maintainer's (and contributor's) spare time. Please be considerate towards everyone who's involved with the package, when raising issues or creating pull requests. @@ -60,6 +60,6 @@ There are some requirements set by the maintainer, which are listed below. - Please apply the [PSR-12 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-12-coding-style-guide.md). - Keep track of changes and document them in the [CHANGELOG.md](CHANGELOG.md). -- Update the [readme.md](README.md) when the Cluster API version is updated. +- Update the [readme.md](README.md) when the Core API version is updated. - Add tests when possible. - Please create one pull request per feature/bug. diff --git a/README.md b/README.md index 3d7b39eb..1fcb2735 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ -# Cyberfusion Cluster API client +# Cyberfusion Core API client -Client for the [Cyberfusion Cluster API](https://cluster-api.cyberfusion.nl/). +Client for the [Cyberfusion Core API](https://core-api.cyberfusion.io/). This client was built for and tested on the **1.230.1** version of the API. ## Support This client is officially supported by Cyberfusion. If you have any questions, open an issue on GitHub or email -support@cyberfusion.nl. +support@cyberfusion.io. The client was created by @dvdheiden. @@ -21,18 +21,18 @@ This client can be used in any PHP project and with any framework. Install the client with Composer: -`composer require cyberfusion/cluster-api-client` +`composer require cyberfusion/core-api-client` ## Usage -Refer to the [API documentation](https://cluster-api.cyberfusion.nl/) for information about API requests. +Refer to the [API documentation](https://core-api.cyberfusion.io/) for information about API requests. ### Getting started ```php -use Cyberfusion\ClusterApi\Client; -use Cyberfusion\ClusterApi\Configuration; -use Cyberfusion\ClusterApi\ClusterApi; +use Cyberfusion\CoreApi\Client; +use Cyberfusion\CoreApi\Configuration; +use Cyberfusion\CoreApi\CoreApi; // Create the configuration with your username/password $configuration = Configuration::withCredentials('username', 'password'); @@ -41,7 +41,7 @@ $configuration = Configuration::withCredentials('username', 'password'); $client = new Client($configuration); // Initialize the API -$api = new ClusterApi($client); +$api = new CoreApi($client); // Perform the request $result = $api->virtualHosts()->list(); @@ -88,10 +88,10 @@ A `ListFilter` can be initialized for a model, so it automatically validates if the model. ```php -use Cyberfusion\ClusterApi\Enums\Sort; -use Cyberfusion\ClusterApi\Models\VirtualHost; -use Cyberfusion\ClusterApi\Support\FilterEntry; -use Cyberfusion\ClusterApi\Support\SortEntry; +use Cyberfusion\CoreApi\Enums\Sort; +use Cyberfusion\CoreApi\Models\VirtualHost; +use Cyberfusion\CoreApi\Support\FilterEntry; +use Cyberfusion\CoreApi\Support\SortEntry; $listFilter = VirtualHost::listFilter() ->filter(new FilterEntry('server_software_name', 'Apache')) @@ -178,10 +178,10 @@ The access token is valid for 30 minutes, so there's no need to store it. To sto #### Manually authenticate ```php -use Cyberfusion\ClusterApi\Client; -use Cyberfusion\ClusterApi\ClusterApi; -use Cyberfusion\ClusterApi\Configuration; -use Cyberfusion\ClusterApi\Models\Login; +use Cyberfusion\CoreApi\Client; +use Cyberfusion\CoreApi\CoreApi; +use Cyberfusion\CoreApi\Configuration; +use Cyberfusion\CoreApi\Models\Login; // Initialize the configuration without any credentials or access token $configuration = new Configuration(); @@ -190,7 +190,7 @@ $configuration = new Configuration(); $client = new Client($configuration, true); // Initialize the API -$api = new ClusterApi($client); +$api = new CoreApi($client); // Create the request $login = (new Login()) @@ -214,9 +214,9 @@ Some properties should contain certain values. These values can be found in the ### Exceptions -In case of errors, the client throws an exception which extends `ClusterApiException`. +In case of errors, the client throws an exception which extends `CoreApiException`. -All exceptions have a code. These can be found in the `ClusterApiException` class. +All exceptions have a code. These can be found in the `CoreApiException` class. ### Laravel diff --git a/composer.json b/composer.json index f9acaaa9..f4ef97aa 100644 --- a/composer.json +++ b/composer.json @@ -1,12 +1,12 @@ { - "name": "cyberfusion/cluster-api-client", - "description": "Client for Cyberfusion Cluster API", + "name": "cyberfusion/core-api-client", + "description": "Client for Cyberfusion Core API", "keywords": [ "cyberfusion", "cluster", "api" ], - "homepage": "https://github.com/CyberfusionIO/cyberfusion-cluster-api-client", + "homepage": "https://github.com/CyberfusionIO/cyberfusion-core-api-client", "license": "MIT", "require": { "php": "^8.0", @@ -25,12 +25,12 @@ }, "autoload": { "psr-4": { - "Cyberfusion\\ClusterApi\\": "src" + "Cyberfusion\\CoreApi\\": "src" } }, "autoload-dev": { "psr-4": { - "Cyberfusion\\ClusterApi\\Tests\\": "tests" + "Cyberfusion\\CoreApi\\Tests\\": "tests" } }, "scripts": { diff --git a/src/Client.php b/src/Client.php index ed6c8c40..914e5660 100644 --- a/src/Client.php +++ b/src/Client.php @@ -1,14 +1,14 @@ assertSame('https://cluster-api.cyberfusion.nl/api/v1/', $configuration->getUrl()); + $this->assertSame('https://core-api.cyberfusion.io/api/v1/', $configuration->getUrl()); $configuration->setUrl('foo://bar'); diff --git a/tests/RequestTest.php b/tests/RequestTest.php index 3d55358e..fdb99bf2 100644 --- a/tests/RequestTest.php +++ b/tests/RequestTest.php @@ -1,8 +1,8 @@