Skip to content

Commit

Permalink
CodeGen from PR 13562 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge be2d31986eed64ec39252990ce0721297756fe1f into 2db34d9bfb885d51439dfdb7409aedd7547c8caf
  • Loading branch information
SDKAuto committed Apr 5, 2021
1 parent 2d61c58 commit a51c14e
Show file tree
Hide file tree
Showing 4 changed files with 288 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,4 @@
"description": "Properties to create a Source Control Configuration resource"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,4 @@
"description": "Top level metadata https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources"
}
}
}
}
2 changes: 1 addition & 1 deletion schemas/2021-03-01/Microsoft.KubernetesConfiguration.json
Original file line number Diff line number Diff line change
Expand Up @@ -223,4 +223,4 @@
"description": "Metadata pertaining to creation and last modification of the resource."
}
}
}
}
285 changes: 285 additions & 0 deletions schemas/2021-05-01-preview/Microsoft.KubernetesConfiguration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,285 @@
{
"id": "https://schema.management.azure.com/schemas/2021-05-01-preview/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-05-01-preview"
]
},
"name": {
"type": "string",
"description": "Name of an instance of the Extension."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/ExtensionInstanceProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Properties of an Extension Instance resource"
},
"systemData": {
"oneOf": [
{
"$ref": "#/definitions/SystemData"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Top level metadata https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources"
},
"type": {
"type": "string",
"enum": [
"Microsoft.KubernetesConfiguration/extensions"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.KubernetesConfiguration/extensions"
}
},
"definitions": {
"ConfigurationIdentity": {
"type": "object",
"properties": {
"type": {
"oneOf": [
{
"type": "string",
"enum": [
"SystemAssigned",
"None"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The type of identity used for the configuration. Type 'SystemAssigned' will use an implicitly created identity. Type 'None' will not use Managed Identity for the configuration."
}
},
"description": "Identity for the managed cluster."
},
"ExtensionInstanceProperties": {
"type": "object",
"properties": {
"autoUpgradeMinorVersion": {
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Flag to note if this instance 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 instance of the extension."
},
"configurationSettings": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Name-value pairs for configuring the extensionInstance"
},
"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."
},
"identity": {
"oneOf": [
{
"$ref": "#/definitions/ConfigurationIdentity"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Identity for the managed cluster."
},
"installState": {
"oneOf": [
{
"type": "string",
"enum": [
"Pending",
"Installed",
"Failed"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Status of installation of this instance of the extension."
},
"releaseTrain": {
"type": "string",
"default": "Stable",
"description": "ReleaseTrain this extension instance 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 extensionInstance. 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 instance of the extension."
},
"version": {
"type": "string",
"description": "Version of the extension for this extension instance, if it is 'pinned' to a specific version. autoUpgradeMinorVersion must be 'false'."
}
},
"description": "Properties of an Extension Instance resource"
},
"ExtensionStatus": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "Status code provided by the Extension"
},
"displayStatus": {
"type": "string",
"description": "Short description of status of this instance 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 instance."
},
"time": {
"type": "string",
"description": "DateLiteral (per ISO8601) noting the time of installation status."
}
},
"description": "Status from this instance of the extension."
},
"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 extensionInstance 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 extensionInstance is Namespace"
}
},
"description": "Scope of the extensionInstance. 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 extensionInstance. If this namespace does not exist, it will be created"
}
},
"description": "Specifies that the scope of the extensionInstance is Cluster"
},
"ScopeNamespace": {
"type": "object",
"properties": {
"targetNamespace": {
"type": "string",
"description": "Namespace where the extensionInstance will be created for an Namespace scoped extensionInstance. If this namespace does not exist, it will be created"
}
},
"description": "Specifies that the scope of the extensionInstance is Namespace"
},
"SystemData": {
"type": "object",
"properties": {},
"description": "Top level metadata https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources"
}
}
}

0 comments on commit a51c14e

Please sign in to comment.