diff --git a/src/Networking/v2/Extensions/Layer3/Api.php b/src/Networking/v2/Extensions/Layer3/Api.php index 07cbb4c4..faab09ac 100644 --- a/src/Networking/v2/Extensions/Layer3/Api.php +++ b/src/Networking/v2/Extensions/Layer3/Api.php @@ -6,6 +6,7 @@ /** * @deprecated Use Networking\v2\Api instead + * * @internal */ class Api extends AbstractApi diff --git a/src/Networking/v2/Extensions/Layer3/ApiTrait.php b/src/Networking/v2/Extensions/Layer3/ApiTrait.php index 15925680..5d7c757a 100644 --- a/src/Networking/v2/Extensions/Layer3/ApiTrait.php +++ b/src/Networking/v2/Extensions/Layer3/ApiTrait.php @@ -6,7 +6,8 @@ /** * @property \OpenStack\Networking\v2\Params $params - * @property string $pathPrefix + * @property string $pathPrefix + * * @internal */ trait ApiTrait @@ -15,7 +16,7 @@ public function postFloatingIps(): array { return [ 'method' => 'POST', - 'path' => $this->pathPrefix . '/floatingips', + 'path' => $this->pathPrefix.'/floatingips', 'jsonKey' => 'floatingip', 'params' => [ 'tenantId' => $this->params->tenantIdJson(), @@ -31,7 +32,7 @@ public function getFloatingIps(): array { return [ 'method' => 'GET', - 'path' => $this->pathPrefix . '/floatingips', + 'path' => $this->pathPrefix.'/floatingips', 'params' => [ 'tenantId' => $this->params->queryTenantId(), ], @@ -42,7 +43,7 @@ public function putFloatingIp(): array { return [ 'method' => 'PUT', - 'path' => $this->pathPrefix . '/floatingips/{id}', + 'path' => $this->pathPrefix.'/floatingips/{id}', 'jsonKey' => 'floatingip', 'params' => [ 'id' => $this->params->idPath(), @@ -58,7 +59,7 @@ public function getFloatingIp(): array { return [ 'method' => 'GET', - 'path' => $this->pathPrefix . '/floatingips/{id}', + 'path' => $this->pathPrefix.'/floatingips/{id}', 'params' => [ 'id' => $this->params->idPath(), 'portId' => $this->params->portIdJson(), @@ -70,7 +71,7 @@ public function deleteFloatingIp(): array { return [ 'method' => 'DELETE', - 'path' => $this->pathPrefix . '/floatingips/{id}', + 'path' => $this->pathPrefix.'/floatingips/{id}', 'params' => [ 'id' => $this->params->idPath(), ], @@ -81,7 +82,7 @@ public function postRouters(): array { return [ 'method' => 'POST', - 'path' => $this->pathPrefix . '/routers', + 'path' => $this->pathPrefix.'/routers', 'jsonKey' => 'router', 'params' => [ 'name' => $this->params->nameJson(), @@ -98,7 +99,7 @@ public function getRouters(): array { return [ 'method' => 'GET', - 'path' => $this->pathPrefix . '/routers', + 'path' => $this->pathPrefix.'/routers', 'params' => [ 'name' => $this->params->queryName(), 'tenantId' => $this->params->queryTenantId(), @@ -110,7 +111,7 @@ public function putRouter(): array { return [ 'method' => 'PUT', - 'path' => $this->pathPrefix . '/routers/{id}', + 'path' => $this->pathPrefix.'/routers/{id}', 'jsonKey' => 'router', 'params' => [ 'id' => $this->params->idPath(), @@ -125,7 +126,7 @@ public function getRouter(): array { return [ 'method' => 'GET', - 'path' => $this->pathPrefix . '/routers/{id}', + 'path' => $this->pathPrefix.'/routers/{id}', 'params' => [ 'id' => $this->params->idPath(), ], @@ -136,7 +137,7 @@ public function deleteRouter(): array { return [ 'method' => 'DELETE', - 'path' => $this->pathPrefix . '/routers/{id}', + 'path' => $this->pathPrefix.'/routers/{id}', 'params' => [ 'id' => $this->params->idPath(), ], @@ -147,7 +148,7 @@ public function putAddInterface(): array { return [ 'method' => 'PUT', - 'path' => $this->pathPrefix . '/routers/{id}/add_router_interface', + 'path' => $this->pathPrefix.'/routers/{id}/add_router_interface', 'params' => [ 'id' => $this->params->idPath(), 'subnetId' => $this->params->subnetId(), @@ -160,7 +161,7 @@ public function putRemoveInterface(): array { return [ 'method' => 'PUT', - 'path' => $this->pathPrefix . '/routers/{id}/remove_router_interface', + 'path' => $this->pathPrefix.'/routers/{id}/remove_router_interface', 'params' => [ 'id' => $this->params->idPath(), 'subnetId' => $this->params->subnetId(), @@ -168,4 +169,4 @@ public function putRemoveInterface(): array ], ]; } -} \ No newline at end of file +} diff --git a/src/Networking/v2/Extensions/Layer3/Params.php b/src/Networking/v2/Extensions/Layer3/Params.php index b8920eda..a679180b 100644 --- a/src/Networking/v2/Extensions/Layer3/Params.php +++ b/src/Networking/v2/Extensions/Layer3/Params.php @@ -4,6 +4,7 @@ /** * @deprecated Use Networking\v2\Params instead + * * @internal */ class Params extends \OpenStack\Networking\v2\Params diff --git a/src/Networking/v2/Extensions/Layer3/ParamsTrait.php b/src/Networking/v2/Extensions/Layer3/ParamsTrait.php index 414a2176..c201a82e 100644 --- a/src/Networking/v2/Extensions/Layer3/ParamsTrait.php +++ b/src/Networking/v2/Extensions/Layer3/ParamsTrait.php @@ -109,4 +109,4 @@ public function haJson(): array 'description' => 'If true, indicates a highly-available router.', ]; } -} \ No newline at end of file +} diff --git a/src/Networking/v2/Extensions/Layer3/Service.php b/src/Networking/v2/Extensions/Layer3/Service.php index ea9b71b0..6d545809 100644 --- a/src/Networking/v2/Extensions/Layer3/Service.php +++ b/src/Networking/v2/Extensions/Layer3/Service.php @@ -8,6 +8,7 @@ /** * @property Api $api + * * @deprecated Use Networking\v2\Service instead */ class Service extends AbstractService diff --git a/src/Networking/v2/Extensions/Layer3/ServiceTrait.php b/src/Networking/v2/Extensions/Layer3/ServiceTrait.php index 309b083c..cb104a18 100644 --- a/src/Networking/v2/Extensions/Layer3/ServiceTrait.php +++ b/src/Networking/v2/Extensions/Layer3/ServiceTrait.php @@ -7,7 +7,8 @@ /** * @property \OpenStack\Networking\v2\Api $api - * @internal Please use the Networking\v2\Service instead of this one. + * + * @internal please use the Networking\v2\Service instead of this one */ trait ServiceTrait { @@ -56,4 +57,4 @@ public function listRouters(array $options = []): \Generator { return $this->router()->enumerate($this->api->getRouters(), $options); } -} \ No newline at end of file +} diff --git a/src/Networking/v2/Extensions/SecurityGroups/Api.php b/src/Networking/v2/Extensions/SecurityGroups/Api.php index fd18089a..9f2597f9 100644 --- a/src/Networking/v2/Extensions/SecurityGroups/Api.php +++ b/src/Networking/v2/Extensions/SecurityGroups/Api.php @@ -6,6 +6,7 @@ /** * @deprecated Use Networking\v2\Api instead + * * @internal */ class Api extends AbstractApi diff --git a/src/Networking/v2/Extensions/SecurityGroups/ApiTrait.php b/src/Networking/v2/Extensions/SecurityGroups/ApiTrait.php index cc0890cb..38b982fd 100644 --- a/src/Networking/v2/Extensions/SecurityGroups/ApiTrait.php +++ b/src/Networking/v2/Extensions/SecurityGroups/ApiTrait.php @@ -4,7 +4,8 @@ /** * @property \OpenStack\Networking\v2\Params $params - * @property string $pathPrefix + * @property string $pathPrefix + * * @internal */ trait ApiTrait @@ -12,14 +13,12 @@ trait ApiTrait /** * Returns information about GET security-groups/{security_group_id} HTTP * operation. - * - * @return array */ public function getSecurityGroups(): array { return [ 'method' => 'GET', - 'path' => $this->pathPrefix . '/security-groups', + 'path' => $this->pathPrefix.'/security-groups', 'params' => [ 'tenantId' => $this->params->queryTenantId(), 'name' => $this->params->filterName(), @@ -29,14 +28,12 @@ public function getSecurityGroups(): array /** * Returns information about POST security-groups HTTP operation. - * - * @return array */ public function postSecurityGroups(): array { return [ 'method' => 'POST', - 'path' => $this->pathPrefix . '/security-groups', + 'path' => $this->pathPrefix.'/security-groups', 'jsonKey' => 'security_group', 'params' => [ 'description' => $this->params->descriptionJson(), @@ -47,14 +44,12 @@ public function postSecurityGroups(): array /** * Returns information about PUT security-groups HTTP operation. - * - * @return array */ public function putSecurityGroups(): array { return [ 'method' => 'PUT', - 'path' => $this->pathPrefix . '/security-groups/{id}', + 'path' => $this->pathPrefix.'/security-groups/{id}', 'jsonKey' => 'security_group', 'params' => [ 'id' => $this->params->idPath(), @@ -67,14 +62,12 @@ public function putSecurityGroups(): array /** * Returns information about GET security-groups/{security_group_id} HTTP * operation. - * - * @return array */ public function getSecurityGroup(): array { return [ 'method' => 'GET', - 'path' => $this->pathPrefix . '/security-groups/{id}', + 'path' => $this->pathPrefix.'/security-groups/{id}', 'params' => [ 'id' => $this->params->idPath(), ], @@ -84,14 +77,12 @@ public function getSecurityGroup(): array /** * Returns information about DELETE security-groups/{security_group_id} HTTP * operation. - * - * @return array */ public function deleteSecurityGroup(): array { return [ 'method' => 'DELETE', - 'path' => $this->pathPrefix . '/security-groups/{id}', + 'path' => $this->pathPrefix.'/security-groups/{id}', 'params' => [ 'id' => $this->params->idPath(), ], @@ -100,28 +91,24 @@ public function deleteSecurityGroup(): array /** * Returns information about GET security-group-rules HTTP operation. - * - * @return array */ public function getSecurityRules(): array { return [ 'method' => 'GET', - 'path' => $this->pathPrefix . '/security-group-rules', + 'path' => $this->pathPrefix.'/security-group-rules', 'params' => [], ]; } /** * Returns information about POST security-group-rules HTTP operation. - * - * @return array */ public function postSecurityRules(): array { return [ 'method' => 'POST', - 'path' => $this->pathPrefix . '/security-group-rules', + 'path' => $this->pathPrefix.'/security-group-rules', 'jsonKey' => 'security_group_rule', 'params' => [ 'direction' => $this->params->directionJson(), @@ -140,14 +127,12 @@ public function postSecurityRules(): array /** * Returns information about DELETE * security-group-rules/{rules-security-groups-id} HTTP operation. - * - * @return array */ public function deleteSecurityRule(): array { return [ 'method' => 'DELETE', - 'path' => $this->pathPrefix . '/security-group-rules/{id}', + 'path' => $this->pathPrefix.'/security-group-rules/{id}', 'params' => [ 'id' => $this->params->idPath(), ], @@ -157,17 +142,15 @@ public function deleteSecurityRule(): array /** * Returns information about GET * security-group-rules/{rules-security-groups-id} HTTP operation. - * - * @return array */ public function getSecurityRule(): array { return [ 'method' => 'GET', - 'path' => $this->pathPrefix . '/security-group-rules/{id}', + 'path' => $this->pathPrefix.'/security-group-rules/{id}', 'params' => [ 'id' => $this->params->idPath(), ], ]; } -} \ No newline at end of file +} diff --git a/src/Networking/v2/Extensions/SecurityGroups/Params.php b/src/Networking/v2/Extensions/SecurityGroups/Params.php index 3610888b..c6a740fe 100644 --- a/src/Networking/v2/Extensions/SecurityGroups/Params.php +++ b/src/Networking/v2/Extensions/SecurityGroups/Params.php @@ -4,6 +4,7 @@ /** * @deprecated Use Networking\v2\Params instead + * * @internal */ class Params extends \OpenStack\Networking\v2\Params diff --git a/src/Networking/v2/Extensions/SecurityGroups/ParamsTrait.php b/src/Networking/v2/Extensions/SecurityGroups/ParamsTrait.php index 5ebe7bb3..c7ce4e28 100644 --- a/src/Networking/v2/Extensions/SecurityGroups/ParamsTrait.php +++ b/src/Networking/v2/Extensions/SecurityGroups/ParamsTrait.php @@ -92,4 +92,4 @@ public function filterName(): array 'location' => self::QUERY, ]; } -} \ No newline at end of file +} diff --git a/src/Networking/v2/Extensions/SecurityGroups/Service.php b/src/Networking/v2/Extensions/SecurityGroups/Service.php index aa21c0b0..4a1b70b6 100644 --- a/src/Networking/v2/Extensions/SecurityGroups/Service.php +++ b/src/Networking/v2/Extensions/SecurityGroups/Service.php @@ -8,7 +8,9 @@ /** * @property Api $api + * * @deprecated Use Networking\v2\Service instead + * * @internal */ class Service extends AbstractService diff --git a/src/Networking/v2/Extensions/SecurityGroups/ServiceTrait.php b/src/Networking/v2/Extensions/SecurityGroups/ServiceTrait.php index 0a75b1a7..1c04f810 100644 --- a/src/Networking/v2/Extensions/SecurityGroups/ServiceTrait.php +++ b/src/Networking/v2/Extensions/SecurityGroups/ServiceTrait.php @@ -7,7 +7,8 @@ /** * @property \OpenStack\Networking\v2\Api $api - * @internal Please use the Networking\v2\Service instead of this one. + * + * @internal please use the Networking\v2\Service instead of this one */ trait ServiceTrait { @@ -56,4 +57,4 @@ public function getSecurityGroupRule(string $id): SecurityGroupRule { return $this->securityGroupRule(['id' => $id]); } -} \ No newline at end of file +} diff --git a/src/OpenStack.php b/src/OpenStack.php index 38b2bd86..05ba65ac 100644 --- a/src/OpenStack.php +++ b/src/OpenStack.php @@ -99,6 +99,7 @@ public function networkingV2(array $options = []): Networking\v2\Service * Creates a new Networking v2 Layer 3 service. * * @param array $options options that will be used in configuring the service + * * @deprecated Use networkingV2 instead */ public function networkingV2ExtLayer3(array $options = []): Networking\v2\Extensions\Layer3\Service @@ -112,6 +113,7 @@ public function networkingV2ExtLayer3(array $options = []): Networking\v2\Extens * Creates a new Networking v2 Layer 3 service. * * @param array $options options that will be used in configuring the service + * * @deprecated Use networkingV2 instead */ public function networkingV2ExtSecGroups(array $options = []): Networking\v2\Extensions\SecurityGroups\Service