|
7 | 7 | #[OA\Schema( |
8 | 8 | schema: 'RemoteCloudService', |
9 | 9 | type: 'object', |
10 | | - properties: [ |
11 | | - new OA\Property(property: 'id', type: 'integer', example: 1), |
12 | | - new OA\Property(property: 'created', type: 'integer', example: 1), |
13 | | - new OA\Property(property: 'last_edited', type: 'integer', example: 1), |
14 | | - new OA\Property(property: 'class_name', type: 'string', example: 'RemoteCloudService'), |
15 | | - new OA\Property(property: 'name', type: 'string', example: 'Managed OpenStack Cloud Service'), |
16 | | - new OA\Property(property: 'overview', type: 'string', example: 'Remotely managed private OpenStack cloud'), |
17 | | - new OA\Property(property: 'call_2_action_url', type: 'string', example: 'https://example.com/managed-cloud'), |
18 | | - new OA\Property(property: 'slug', type: 'string', example: 'managed-openstack-service'), |
19 | | - new OA\Property(property: 'company_id', type: 'integer', example: 1), |
20 | | - new OA\Property(property: 'type_id', type: 'integer', example: 1, description: 'Marketplace Type ID'), |
21 | | - |
22 | | - new OA\Property(property: 'company', ref: '#/components/schemas/Company'), |
23 | | - |
24 | | - // @TODO: Remove this from the correspodent serializer, as there is no serializer for MarketPlaceType or create serializer for it |
25 | | - // new OA\Property(property: 'type', ref: '#/components/schemas/MarketPlaceType'), |
26 | | - new OA\Property(property: 'reviews', type: 'array', items: new OA\Items(ref: '#/components/schemas/MarketPlaceReview')), |
27 | | - new OA\Property(property: 'supported_regions', type: 'array', items: new OA\Items(ref: '#/components/schemas/RegionalSupport')), |
28 | | - |
29 | | - new OA\Property(property: 'is_compatible_with_storage', type: 'boolean', example: true), |
30 | | - new OA\Property(property: 'is_compatible_with_compute', type: 'boolean', example: true), |
31 | | - new OA\Property(property: 'is_compatible_with_federated_identity', type: 'boolean', example: true), |
32 | | - new OA\Property(property: 'is_compatible_with_platform', type: 'boolean', example: true), |
33 | | - new OA\Property(property: 'is_openstack_powered', type: 'boolean', example: true), |
34 | | - new OA\Property(property: 'is_openstack_tested', type: 'boolean', example: true), |
35 | | - new OA\Property(property: 'openstack_tested_info', type: 'string', example: 'Tested with OpenStack Bobcat'), |
36 | | - |
37 | | - new OA\Property(property: 'capabilities', type: 'array', items: new OA\Items(ref: '#/components/schemas/OpenStackImplementationApiCoverage'), description: 'Only present if requested via relations'), |
38 | | - new OA\Property(property: 'guests', type: 'array', items: new OA\Items(ref: '#/components/schemas/GuestOSType'), description: 'Only present if requested via relations'), |
39 | | - new OA\Property(property: 'hypervisors', type: 'array', items: new OA\Items(ref: '#/components/schemas/HyperVisorType'), description: 'Only present if requested via relations'), |
40 | | - |
41 | | - new OA\Property(property: 'hardware_spec', type: 'string', example: 'High-performance servers with SSD storage'), |
42 | | - new OA\Property(property: 'pricing_models', type: 'string', example: 'Monthly subscription, Pay-as-you-use'), |
43 | | - new OA\Property(property: 'published_sla', type: 'string', example: '99.9% uptime guarantee'), |
44 | | - new OA\Property(property: 'is_vendor_managed_upgrades', type: 'boolean', example: true), |
45 | | - |
| 10 | + allOf: [ |
| 11 | + new OA\Schema(ref: '#/components/schemas/OpenStackImplementation'), |
| 12 | + new OA\Schema( |
| 13 | + type: 'object', |
| 14 | + properties: [ |
| 15 | + new OA\Property(property: 'hardware_spec', type: 'string', example: 'High-performance servers with SSD storage'), |
| 16 | + new OA\Property(property: 'pricing_models', type: 'string', example: 'Monthly subscription, Pay-as-you-use'), |
| 17 | + new OA\Property(property: 'published_sla', type: 'string', example: '99.9% uptime guarantee'), |
| 18 | + new OA\Property(property: 'is_vendor_managed_upgrades', type: 'boolean', example: true), |
| 19 | + ] |
| 20 | + ) |
46 | 21 | ] |
47 | 22 | )] |
48 | 23 | class RemoteCloudServiceSchema |
|
0 commit comments