1 | <?php declare (strict_types=1); |
||
17 | class OpenStack |
||
18 | { |
||
19 | /** @var Builder */ |
||
20 | private $builder; |
||
21 | |||
22 | /** |
||
23 | * @param array $options User-defined options |
||
24 | * |
||
25 | * $options['username'] = (string) Your OpenStack username [REQUIRED] |
||
26 | * ['password'] = (string) Your OpenStack password [REQUIRED] |
||
27 | * ['tenantId'] = (string) Your tenant ID [REQUIRED if tenantName omitted] |
||
28 | 7 | * ['tenantName'] = (string) Your tenant name [REQUIRED if tenantId omitted] |
|
29 | * ['authUrl'] = (string) The Keystone URL [REQUIRED] |
||
30 | 7 | * ['debug'] = (bool) Whether to enable HTTP logging [OPTIONAL] |
|
31 | 7 | */ |
|
32 | public function __construct(array $options = [], Builder $builder = null) |
||
40 | 1 | ||
41 | /** |
||
42 | 1 | * @param array $options |
|
43 | 1 | * |
|
44 | * @return Service |
||
45 | */ |
||
46 | private function getDefaultIdentityService(array $options): Service |
||
57 | |||
58 | /** |
||
59 | * Creates a new Compute v2 service. |
||
60 | * |
||
61 | * @param array $options Options that will be used in configuring the service. |
||
62 | * |
||
63 | * @return \OpenStack\Compute\v2\Service |
||
64 | */ |
||
65 | public function computeV2(array $options = []): \OpenStack\Compute\v2\Service |
||
70 | |||
71 | /** |
||
72 | * Creates a new Networking v2 service. |
||
73 | * |
||
74 | * @param array $options Options that will be used in configuring the service. |
||
75 | * |
||
76 | * @return \OpenStack\Networking\v2\Service |
||
77 | */ |
||
78 | public function networkingV2(array $options = []): \OpenStack\Networking\v2\Service |
||
83 | |||
84 | /** |
||
85 | * Creates a new Identity v2 service. |
||
86 | * |
||
87 | * @param array $options Options that will be used in configuring the service. |
||
88 | * |
||
89 | * @return \OpenStack\Identity\v2\Service |
||
90 | */ |
||
91 | public function identityV2(array $options = []): \OpenStack\Identity\v2\Service |
||
96 | |||
97 | /** |
||
98 | * Creates a new Identity v3 service. |
||
99 | * |
||
100 | * @param array $options Options that will be used in configuring the service. |
||
101 | * |
||
102 | * @return \OpenStack\Identity\v3\Service |
||
103 | */ |
||
104 | public function identityV3(array $options = []): \OpenStack\Identity\v3\Service |
||
109 | |||
110 | /** |
||
111 | * Creates a new Object Store v1 service. |
||
112 | * |
||
113 | * @param array $options Options that will be used in configuring the service. |
||
114 | * |
||
115 | * @return \OpenStack\ObjectStore\v1\Service |
||
116 | */ |
||
117 | public function objectStoreV1(array $options = []): \OpenStack\ObjectStore\v1\Service |
||
122 | |||
123 | /** |
||
124 | * Creates a new Block Storage v2 service. |
||
125 | * |
||
126 | * @param array $options Options that will be used in configuring the service. |
||
127 | * |
||
128 | * @return \OpenStack\BlockStorage\v2\Service |
||
129 | */ |
||
130 | public function blockStorageV2(array $options = []): \OpenStack\BlockStorage\v2\Service |
||
135 | |||
136 | /** |
||
137 | * Creates a new Images v2 service. |
||
138 | * |
||
139 | * @param array $options Options that will be used in configuring the service. |
||
140 | * |
||
141 | * @return \OpenStack\Images\v2\Service |
||
142 | */ |
||
143 | public function imagesV2(array $options = []): \OpenStack\Images\v2\Service |
||
148 | } |
||
149 |