|
| 1 | +<?php |
| 2 | + |
| 3 | +namespace App\Swagger\schemas; |
| 4 | + |
| 5 | +use OpenApi\Attributes as OA; |
| 6 | + |
| 7 | +#[OA\Schema( |
| 8 | + schema: 'OpenStackImplementation', |
| 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: 'name', type: 'string'), |
| 15 | + new OA\Property(property: 'url', type: 'string'), |
| 16 | + new OA\Property(property: 'url_segment', type: 'string'), |
| 17 | + new OA\Property(property: 'city', type: 'string'), |
| 18 | + new OA\Property(property: 'state', type: 'string'), |
| 19 | + new OA\Property(property: 'country', type: 'string'), |
| 20 | + new OA\Property(property: 'description', type: 'string'), |
| 21 | + new OA\Property(property: 'industry', type: 'string'), |
| 22 | + new OA\Property(property: 'contributions', type: 'string'), |
| 23 | + new OA\Property(property: 'member_level', type: 'string'), |
| 24 | + new OA\Property(property: 'overview', type: 'string'), |
| 25 | + new OA\Property(property: 'products', type: 'string'), |
| 26 | + new OA\Property(property: 'commitment', type: 'string'), |
| 27 | + new OA\Property(property: 'commitment_author', type: 'string'), |
| 28 | + new OA\Property(property: 'logo', type: 'string'), |
| 29 | + new OA\Property(property: 'big_logo', type: 'string'), |
| 30 | + new OA\Property(property: 'color', type: 'string'), |
| 31 | + new OA\Property(property: 'display_on_site', type: 'boolean'), |
| 32 | + new OA\Property(property: 'featured', type: 'boolean'), |
| 33 | + new OA\Property(property: 'contact_email', type: 'string'), |
| 34 | + new OA\Property(property: 'admin_email', type: 'string'), |
| 35 | + new OA\Property(property: 'sponsorships', type: 'array', items: new OA\Items(oneOf: [new OA\Schema(type: 'integer'), new OA\Schema(ref: '#/components/schemas/SummitSponsorship'),]), description: "SummitSponsorship, IDs when used as relationship, object when included in expand"), |
| 36 | + new OA\Property(property: 'project_sponsorships', type: 'array', items: new OA\Items(oneOf: [new OA\Schema(type: 'integer'), new OA\Schema(ref: '#/components/schemas/ProjectSponsorshipType'),]), description: "ProjectSponsorshipType supported by the distribution, IDs when used as relationship, object when included in expand"), |
| 37 | + new OA\Property(property: 'supported_regions', type: 'array', items: new OA\Items(oneOf: [new OA\Schema(type: 'integer'), new OA\Schema(ref: '#/components/schemas/RegionalSupport'),]), description: "RegionalSupport, only available on expand"), |
| 38 | + new OA\Property(property: 'is_compatible_with_storage', type: 'boolean', description: "RegionalSupport, only available on expand", ), |
| 39 | + new OA\Property(property: 'is_compatible_with_compute', type: 'boolean', description: "RegionalSupport, only available on expand", ), |
| 40 | + new OA\Property(property: 'is_compatible_with_federated_identity', type: 'boolean', description: "RegionalSupport, only available on expand", ), |
| 41 | + new OA\Property(property: 'is_compatible_with_platform', type: 'boolean', description: "RegionalSupport, only available on expand", ), |
| 42 | + new OA\Property(property: 'is_openstack_powered', type: 'boolean', description: "RegionalSupport, only available on expand", ), |
| 43 | + new OA\Property(property: 'is_openstack_tested', type: 'boolean', description: "RegionalSupport, only available on expand", ), |
| 44 | + new OA\Property(property: 'openstack_tested_info', type: 'string', description: "RegionalSupport, only available on expand", ), |
| 45 | + new OA\Property(property: 'capabilities', type: 'array', items: new OA\Items(ref: '#/components/schemas/OpenStackImplementationApiCoverage'), description: "OpenStackImplementationApiCoverage, only available on relations", ), |
| 46 | + new OA\Property(property: 'guests', type: 'array', items: new OA\Items(ref: '#/components/schemas/GuestOSType'), description: "GuestOSType, only available on relations", ), |
| 47 | + new OA\Property(property: 'hypervisors', type: 'array', items: new OA\Items(ref: '#/components/schemas/HyperVisorType'), description: "HyperVisorType, only available on relations", ), |
| 48 | + ] |
| 49 | +)] |
| 50 | +class OpenStackImplementationSchema |
| 51 | +{ |
| 52 | +} |
0 commit comments