diff --git a/components/schemas/infrastructure/providers/models/ProviderServerModel.yml b/components/schemas/infrastructure/providers/models/ProviderServerModel.yml index ffa27dfa..5db90def 100644 --- a/components/schemas/infrastructure/providers/models/ProviderServerModel.yml +++ b/components/schemas/infrastructure/providers/models/ProviderServerModel.yml @@ -20,6 +20,13 @@ properties: description: type: string description: A description of the server. + drivers: + description: A list of drivers supported by the server. + type: + - "array" + - "null" + items: + type: string specs: $ref: ProviderServerModelSpec.yml provider: diff --git a/components/schemas/infrastructure/providers/models/ProviderServerModelProviderSpec.yml b/components/schemas/infrastructure/providers/models/ProviderServerModelProviderSpec.yml index 5a62de81..1224e6dc 100644 --- a/components/schemas/infrastructure/providers/models/ProviderServerModelProviderSpec.yml +++ b/components/schemas/infrastructure/providers/models/ProviderServerModelProviderSpec.yml @@ -2,7 +2,7 @@ title: ProviderServerModelProviderSpec type: object description: Higher level information about a providers server. required: - - identifier + - vendor - category - model - locations @@ -10,9 +10,6 @@ properties: vendor: type: string description: The infrastructure vendor for the provider. - identifier: - type: string - description: A provider identifier. integration_id: anyOf: - $ref: "../../../ID.yml" @@ -23,6 +20,14 @@ properties: class: type: string description: A class for the server. + parent_model_id: + description: >- + Set when this model is a variant of another model. Variants share the + same server object as their parent and are excluded from the default + models list; fetch them by parent when a variant group is expanded. + anyOf: + - $ref: "../../../ID.yml" + - type: "null" model: type: string description: The model of the server. diff --git a/ial/components/schemas/provider/model/ServerModelProvider.yml b/ial/components/schemas/provider/model/ServerModelProvider.yml index f498852f..2233c162 100644 --- a/ial/components/schemas/provider/model/ServerModelProvider.yml +++ b/ial/components/schemas/provider/model/ServerModelProvider.yml @@ -2,13 +2,9 @@ title: "ServerModelProvider" type: object description: "Identifies the provider details, including the category, class, model ID, parent model ID, available locations, availability zones, and stock for a server, plan, or model." required: - - name - category - model_id properties: - name: - type: string - description: The name of the server model. category: type: string description: "The category of the server model." @@ -24,7 +20,7 @@ properties: type: - "string" - "null" - description: "The ID of the parent server model, if this model is derived from another." + description: "The ID of the parent server model, if this model is derived from another. Variants share the same server object as their parent and are excluded from the default models list; fetch them by parent when a variant group is expanded. Null for standalone and parent models." locations: type: - "array"