Skip to content

Commit

Permalink
CodeGen from PR 15593 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Dev kubernetesconfiguration microsoft.kubernetes configuration 2021 09 01 (#15593)

* Add blockchain to latest profile

* Add additional types

* Adds base for updating Microsoft.KubernetesConfiguration from version common/2021-05-01-preview to version 2021-09-01

* Updates readme

* Updates API version in new specs and examples

* Extension GA - apiversion 2021-09-01

* Move definitions.json to the correct folder

* Add Patch example

* Prettier fix

* Patch response fix

* Avocado fixes

* Additional fixes

* Fixes for Model and Semantic validations

* Additional fixes

* Fix patch example

* Prettier fix for definitions.json

* Readme.md spacing fix

* Add AKSIdentity object

* Prettier and Lint Diff fixes

* Change Patch response to 202, per review

* Update Patch response body to adhere to API guidance

* Added Suppression for Patch 202 response

* Fix linter issues

* Fix linter issues

* Fix Linter and Model validation errors

* Fix ModelValidation and Prettier issues

* Move suppression to the GA version

* Move suppression to global

* Move suppression back to the GA version

* Update suppression

* Fix errors from SDK generation

* Prettier fix

* Remove definitions.json and move the defs. into extensions.json

* Remove azure-validator

Co-authored-by: Mark Cowlishaw <[email protected]>
Co-authored-by: nanthi <nanthi@NANTHI01>
  • Loading branch information
3 people committed Sep 18, 2021
1 parent 379a774 commit cf6b2c4
Showing 1 changed file with 387 additions and 0 deletions.
387 changes: 387 additions & 0 deletions schemas/2021-09-01/Microsoft.KubernetesConfiguration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,387 @@
{
"id": "https://schema.management.azure.com/schemas/2021-09-01/Microsoft.KubernetesConfiguration.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.KubernetesConfiguration",
"description": "Microsoft KubernetesConfiguration Resource Types",
"resourceDefinitions": {},
"extension_resourceDefinitions": {
"extensions": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2021-09-01"
]
},
"identity": {
"oneOf": [
{
"$ref": "#/definitions/Identity"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Identity for the resource."
},
"name": {
"type": "string",
"description": "Name of the Extension."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/ExtensionProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Properties of an Extension resource"
},
"systemData": {
"oneOf": [
{
"$ref": "#/definitions/SystemData"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Metadata pertaining to creation and last modification of the resource."
},
"type": {
"type": "string",
"enum": [
"Microsoft.KubernetesConfiguration/extensions"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.KubernetesConfiguration/extensions"
}
},
"definitions": {
"ErrorDetail": {
"type": "object",
"properties": {},
"description": "The error detail."
},
"ExtensionProperties": {
"type": "object",
"properties": {
"aksAssignedIdentity": {
"oneOf": [
{
"$ref": "#/definitions/ExtensionPropertiesAksAssignedIdentity"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Identity of the Extension resource in an AKS cluster"
},
"autoUpgradeMinorVersion": {
"oneOf": [
{
"type": "boolean",
"default": true
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Flag to note if this extension participates in auto upgrade of minor version, or not."
},
"configurationProtectedSettings": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Configuration settings that are sensitive, as name-value pairs for configuring this extension."
},
"configurationSettings": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Configuration settings, as name-value pairs for configuring this extension."
},
"errorInfo": {
"oneOf": [
{
"$ref": "#/definitions/ErrorDetail"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The error detail."
},
"extensionType": {
"type": "string",
"description": "Type of the Extension, of which this resource is an instance of. It must be one of the Extension Types registered with Microsoft.KubernetesConfiguration by the Extension publisher."
},
"provisioningState": {
"oneOf": [
{
"type": "string",
"enum": [
"Succeeded",
"Failed",
"Canceled",
"Creating",
"Updating",
"Deleting"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"releaseTrain": {
"type": "string",
"default": "Stable",
"description": "ReleaseTrain this extension participates in for auto-upgrade (e.g. Stable, Preview, etc.) - only if autoUpgradeMinorVersion is 'true'."
},
"scope": {
"oneOf": [
{
"$ref": "#/definitions/Scope"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Scope of the extension. It can be either Cluster or Namespace; but not both."
},
"statuses": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/ExtensionStatus"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Status from this extension."
},
"version": {
"type": "string",
"description": "Version of the extension for this extension, if it is 'pinned' to a specific version. autoUpgradeMinorVersion must be 'false'."
}
},
"description": "Properties of an Extension resource"
},
"ExtensionPropertiesAksAssignedIdentity": {
"type": "object",
"properties": {
"type": {
"oneOf": [
{
"type": "string",
"enum": [
"SystemAssigned"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The identity type."
}
},
"description": "Identity of the Extension resource in an AKS cluster"
},
"ExtensionStatus": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "Status code provided by the Extension"
},
"displayStatus": {
"type": "string",
"description": "Short description of status of the extension."
},
"level": {
"oneOf": [
{
"type": "string",
"enum": [
"Error",
"Warning",
"Information"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Level of the status."
},
"message": {
"type": "string",
"description": "Detailed message of the status from the Extension."
},
"time": {
"type": "string",
"description": "DateLiteral (per ISO8601) noting the time of installation status."
}
},
"description": "Status from the extension."
},
"Identity": {
"type": "object",
"properties": {
"type": {
"oneOf": [
{
"type": "string",
"enum": [
"SystemAssigned"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The identity type."
}
},
"description": "Identity for the resource."
},
"Scope": {
"type": "object",
"properties": {
"cluster": {
"oneOf": [
{
"$ref": "#/definitions/ScopeCluster"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Specifies that the scope of the extension is Cluster"
},
"namespace": {
"oneOf": [
{
"$ref": "#/definitions/ScopeNamespace"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Specifies that the scope of the extension is Namespace"
}
},
"description": "Scope of the extension. It can be either Cluster or Namespace; but not both."
},
"ScopeCluster": {
"type": "object",
"properties": {
"releaseNamespace": {
"type": "string",
"description": "Namespace where the extension Release must be placed, for a Cluster scoped extension. If this namespace does not exist, it will be created"
}
},
"description": "Specifies that the scope of the extension is Cluster"
},
"ScopeNamespace": {
"type": "object",
"properties": {
"targetNamespace": {
"type": "string",
"description": "Namespace where the extension will be created for an Namespace scoped extension. If this namespace does not exist, it will be created"
}
},
"description": "Specifies that the scope of the extension is Namespace"
},
"SystemData": {
"type": "object",
"properties": {
"createdAt": {
"type": "string",
"format": "date-time",
"description": "The timestamp of resource creation (UTC)."
},
"createdBy": {
"type": "string",
"description": "The identity that created the resource."
},
"createdByType": {
"oneOf": [
{
"type": "string",
"enum": [
"User",
"Application",
"ManagedIdentity",
"Key"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The type of identity that created the resource."
},
"lastModifiedAt": {
"type": "string",
"format": "date-time",
"description": "The timestamp of resource last modification (UTC)"
},
"lastModifiedBy": {
"type": "string",
"description": "The identity that last modified the resource."
},
"lastModifiedByType": {
"oneOf": [
{
"type": "string",
"enum": [
"User",
"Application",
"ManagedIdentity",
"Key"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The type of identity that last modified the resource."
}
},
"description": "Metadata pertaining to creation and last modification of the resource."
}
}
}

0 comments on commit cf6b2c4

Please sign in to comment.