|
| 1 | +<?php |
| 2 | + |
| 3 | +namespace App\Swagger\schemas; |
| 4 | + |
| 5 | +use OpenApi\Attributes as OA; |
| 6 | + |
| 7 | + |
| 8 | +#[OA\Schema( |
| 9 | + schema: 'CloudService', |
| 10 | + type: 'object', |
| 11 | + properties: [ |
| 12 | + new OA\Property(property: 'id', type: 'integer', example: 1), |
| 13 | + new OA\Property(property: 'created', type: 'integer', example: 1), |
| 14 | + new OA\Property(property: 'last_edited', type: 'integer', example: 1), |
| 15 | + new OA\Property(property: 'class_name', type: 'string', example: 'PublicCloudService'), |
| 16 | + new OA\Property(property: 'name', type: 'string', example: 'AWS OpenStack Compatible Service'), |
| 17 | + new OA\Property(property: 'overview', type: 'string', example: 'Public cloud service with OpenStack compatibility'), |
| 18 | + new OA\Property(property: 'call_2_action_url', type: 'string', example: 'https://example.com/public-cloud'), |
| 19 | + new OA\Property(property: 'slug', type: 'string', example: 'aws-openstack-service'), |
| 20 | + new OA\Property(property: 'company_id', type: 'integer', example: 1), |
| 21 | + new OA\Property(property: 'type_id', type: 'integer', example: 1), |
| 22 | + new OA\Property(property: 'is_compatible_with_storage', type: 'boolean', example: true), |
| 23 | + new OA\Property(property: 'is_compatible_with_compute', type: 'boolean', example: true), |
| 24 | + new OA\Property(property: 'is_compatible_with_federated_identity', type: 'boolean', example: true), |
| 25 | + new OA\Property(property: 'is_compatible_with_platform', type: 'boolean', example: true), |
| 26 | + new OA\Property(property: 'is_openstack_powered', type: 'boolean', example: false), |
| 27 | + new OA\Property(property: 'is_openstack_tested', type: 'boolean', example: true), |
| 28 | + new OA\Property(property: 'openstack_tested_info', type: 'string', example: 'Compatible with OpenStack APIs'), |
| 29 | + new OA\Property(property: 'company', ref: '#/components/schemas/Company'), |
| 30 | + new OA\Property(property: 'type', ref: '#/components/schemas/SponsorshipType'), |
| 31 | + new OA\Property(property: 'reviews', type: 'array', items: new OA\Items(ref: '#/components/schemas/MarketPlaceReview')), |
| 32 | + new OA\Property(property: 'capabilities', type: 'array', items: new OA\Items(ref: '#/components/schemas/OpenStackImplementationApiCoverage')), |
| 33 | + new OA\Property(property: 'guests', type: 'array', items: new OA\Items(ref: '#/components/schemas/HyperVisorType')), |
| 34 | + new OA\Property(property: 'hypervisors', type: 'array', items: new OA\Items(ref: '#/components/schemas/GuestOSType')), |
| 35 | + new OA\Property(property: 'supported_regions', type: 'array', items: new OA\Items(ref: '#/components/schemas/RegionalSupport')), |
| 36 | + ] |
| 37 | +)] |
| 38 | +class CloudServiceSchema |
| 39 | +{ |
| 40 | +} |
0 commit comments