Skip to content

Commit fd20d89

Browse files
Merge pull request Azure#6 from nikkomiu/bugfix/properties-and-required
Properties and Required Flag
2 parents 8d68228 + 3d36583 commit fd20d89

1 file changed

Lines changed: 99 additions & 90 deletions

File tree

  • specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/preview/2023-05-01-preview

specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/preview/2023-05-01-preview/extensionTypes.json

Lines changed: 99 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@
420420
"200": {
421421
"description": "OK",
422422
"schema": {
423-
"$ref": "#/definitions/ExtensionTypeGet"
423+
"$ref": "#/definitions/ExtensionType"
424424
}
425425
},
426426
"default": {
@@ -577,70 +577,72 @@
577577
"type": "object",
578578
"properties": {
579579
"properties": {
580-
"isSystemExtension": {
581-
"type": "boolean",
582-
"description": "Is this Extension Type a system extension."
583-
},
584-
"isManagedIdentityRequired": {
585-
"type": "boolean",
586-
"description": "Should an identity for this cluster resource be created"
587-
},
588-
"description": {
589-
"type": "string",
590-
"description": "Description of the extension type"
591-
},
592-
"publisher": {
593-
"type": "string",
594-
"description": "Name of the publisher for the Extension Type"
595-
},
596-
"planInfo": {
597-
"description": "Plan information only for the Marketplace Extension Type.",
598-
"type": "object",
599-
"required": false,
600-
"properties": {
601-
"publisherId": {
602-
"type": "string",
603-
"description": "Publisher ID of the Marketplace Extension Type."
604-
},
605-
"planId": {
606-
"type": "string",
607-
"description": "Plan ID of the Marketplace Extension Type."
608-
},
609-
"offerId": {
610-
"type": "string",
611-
"description": "Offer or Product ID of the Marketplace Extension Type."
580+
"type": "object",
581+
"properties": {
582+
"isSystemExtension": {
583+
"type": "boolean",
584+
"description": "Is this Extension Type a system extension."
585+
},
586+
"isManagedIdentityRequired": {
587+
"type": "boolean",
588+
"description": "Should an identity for this cluster resource be created"
589+
},
590+
"description": {
591+
"type": "string",
592+
"description": "Description of the extension type"
593+
},
594+
"publisher": {
595+
"type": "string",
596+
"description": "Name of the publisher for the Extension Type"
597+
},
598+
"planInfo": {
599+
"description": "Plan information only for the Marketplace Extension Type.",
600+
"type": "object",
601+
"properties": {
602+
"publisherId": {
603+
"type": "string",
604+
"description": "Publisher ID of the Marketplace Extension Type."
605+
},
606+
"planId": {
607+
"type": "string",
608+
"description": "Plan ID of the Marketplace Extension Type."
609+
},
610+
"offerId": {
611+
"type": "string",
612+
"description": "Offer or Product ID of the Marketplace Extension Type."
613+
}
612614
}
613-
}
614-
},
615-
"supportedClusterTypes": {
616-
"description": "Cluster Types supported for this Extension Type.",
617-
"type": "array",
618-
"items": {
619-
"type": "string"
620-
}
621-
},
622-
"supportedScopes": {
623-
"description": "Supported Kubernetes Scopes for this Extension Type.",
624-
"type": "object",
625-
"properties": {
626-
"defaultScope": {
627-
"description": "The default scope of the extension type. This scope will be used if the user does not provide a scope while creating an extension.",
615+
},
616+
"supportedClusterTypes": {
617+
"description": "Cluster Types supported for this Extension Type.",
618+
"type": "array",
619+
"items": {
628620
"type": "string"
629-
},
630-
"clusterScopeSettings": {
631-
"type": "object",
632-
"properties": {
621+
}
622+
},
623+
"supportedScopes": {
624+
"description": "Supported Kubernetes Scopes for this Extension Type.",
625+
"type": "object",
626+
"properties": {
627+
"defaultScope": {
628+
"description": "The default scope of the extension type. This scope will be used if the user does not provide a scope while creating an extension.",
629+
"type": "string"
630+
},
631+
"clusterScopeSettings": {
632+
"type": "object",
633633
"properties": {
634-
"type": "object"
635-
},
636-
"id": {
637-
"type": "string"
638-
},
639-
"name": {
640-
"type": "string"
641-
},
642-
"type": {
643-
"type": "string"
634+
"properties": {
635+
"type": "object"
636+
},
637+
"id": {
638+
"type": "string"
639+
},
640+
"name": {
641+
"type": "string"
642+
},
643+
"type": {
644+
"type": "string"
645+
}
644646
}
645647
}
646648
}
@@ -659,34 +661,37 @@
659661
"type": "object",
660662
"properties": {
661663
"properties": {
662-
"version": {
663-
"type": "string",
664-
"description": "The version number for the extension type"
665-
},
666-
"unsupportedKubernetesVersions": {
667-
"description": "The list of supported Kubernetes cluster versions for this extension type",
668-
"type": "object",
669-
"properties": {
670-
"connectedCluster": {
671-
"$ref": "#/definitions/ExtensionTypeVersionUnsupportedKubernetesMatrix"
672-
},
673-
"appliances": {
674-
"$ref": "#/definitions/ExtensionTypeVersionUnsupportedKubernetesMatrix"
675-
},
676-
"provisionedCluster": {
677-
"$ref": "#/definitions/ExtensionTypeVersionUnsupportedKubernetesMatrix"
678-
},
679-
"managedCluster": {
680-
"$ref": "#/definitions/ExtensionTypeVersionUnsupportedKubernetesMatrix"
664+
"type": "object",
665+
"properties": {
666+
"version": {
667+
"type": "string",
668+
"description": "The version number for the extension type"
669+
},
670+
"unsupportedKubernetesVersions": {
671+
"description": "The list of supported Kubernetes cluster versions for this extension type",
672+
"type": "object",
673+
"properties": {
674+
"connectedCluster": {
675+
"$ref": "#/definitions/ExtensionTypeVersionUnsupportedKubernetesMatrix"
676+
},
677+
"appliances": {
678+
"$ref": "#/definitions/ExtensionTypeVersionUnsupportedKubernetesMatrix"
679+
},
680+
"provisionedCluster": {
681+
"$ref": "#/definitions/ExtensionTypeVersionUnsupportedKubernetesMatrix"
682+
},
683+
"managedCluster": {
684+
"$ref": "#/definitions/ExtensionTypeVersionUnsupportedKubernetesMatrix"
685+
}
686+
}
687+
},
688+
"supportedClusterTypes": {
689+
"type": "array",
690+
"description": "A list of supported cluster types for this version of the Extension Type",
691+
"items": {
692+
"description": "The indivual cluster type that is supported by this extension",
693+
"type": "string"
681694
}
682-
}
683-
},
684-
"supportedClusterTypes": {
685-
"type": "array",
686-
"description": "A list of supported cluster types for this version of the Extension Type",
687-
"items": {
688-
"description": "The indivual cluster type that is supported by this extension",
689-
"type": "string"
690695
}
691696
}
692697
}
@@ -746,7 +751,11 @@
746751
},
747752
"unsupportedVersions": {
748753
"type": "array",
749-
"description": "The list of Kubernetes Versions not supported by the list of Kubernetes Cluster Distribution names in this object"
754+
"description": "The list of Kubernetes Versions not supported by the list of Kubernetes Cluster Distribution names in this object",
755+
"items": {
756+
"type": "string",
757+
"description": "A Kubernetes Version not supported by the list of Kubernetes Cluster Distribution names"
758+
}
750759
}
751760
}
752761
}

0 commit comments

Comments
 (0)