Skip to content

Commit

Permalink
[KubernetesConfiguration] Release 2022-01-01-preview with Bucket Supp…
Browse files Browse the repository at this point in the history
…ort (#16684)

* Adds base for updating Microsoft.KubernetesConfiguration from version preview/2021-11-01-preview to version 2022-01-01-preview

* Updates readme

* Updates API version in new specs and examples

* Add additional bucket properties to new api version

* Update extension type examples

* Update the SDKs with the new packages
  • Loading branch information
jonathan-innis authored Nov 18, 2021
1 parent 017671a commit a136560
Show file tree
Hide file tree
Showing 35 changed files with 5,123 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
{
"swagger": "2.0",
"info": {
"version": "2022-01-01-preview",
"title": "Common types and definitions",
"description": "Definitions and parameters common for all resource types of KubernetesConfiguration RP"
},
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {},
"definitions": {
"ProvisioningStateDefinition": {
"type": "string",
"readOnly": true,
"description": "The provisioning state of the resource.",
"enum": [
"Succeeded",
"Failed",
"Canceled",
"Creating",
"Updating",
"Deleting"
],
"x-ms-enum": {
"name": "ProvisioningState",
"modelAsString": true
}
},
"OperationStatusResult": {
"description": "The current status of an async operation.",
"type": "object",
"required": [
"status"
],
"properties": {
"id": {
"description": "Fully qualified ID for the async operation.",
"type": "string"
},
"name": {
"description": "Name of the async operation.",
"type": "string"
},
"status": {
"description": "Operation status.",
"type": "string"
},
"properties": {
"description": "Additional information, if available.",
"type": "object",
"x-nullable": true,
"additionalProperties": {
"type": "string"
}
},
"error": {
"description": "If present, details of the operation error.",
"type": "object",
"readOnly": true,
"x-nullable": true,
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail"
}
}
},
"OperationStatusList": {
"description": "The async operations in progress, in the cluster.",
"type": "object",
"readOnly": true,
"properties": {
"value": {
"type": "array",
"readOnly": true,
"items": {
"$ref": "#/definitions/OperationStatusResult"
},
"description": "List of async operations in progress, in the cluster."
},
"nextLink": {
"type": "string",
"readOnly": true,
"description": "URL to get the next set of Operation Result objects, if any."
}
}
},
"ResourceProviderOperation": {
"description": "Supported operation of this resource provider.",
"type": "object",
"readOnly": true,
"properties": {
"name": {
"description": "Operation name, in format of {provider}/{resource}/{operation}",
"type": "string"
},
"display": {
"description": "Display metadata associated with the operation.",
"type": "object",
"properties": {
"provider": {
"description": "Resource provider: Microsoft KubernetesConfiguration.",
"type": "string"
},
"resource": {
"description": "Resource on which the operation is performed.",
"type": "string"
},
"operation": {
"description": "Type of operation: get, read, delete, etc.",
"type": "string"
},
"description": {
"description": "Description of this operation.",
"type": "string"
}
}
},
"isDataAction": {
"description": "The flag that indicates whether the operation applies to data plane.",
"type": "boolean",
"readOnly": true
},
"origin": {
"description": "Origin of the operation",
"type": "string",
"readOnly": true
}
}
},
"ResourceProviderOperationList": {
"description": "Result of the request to list operations.",
"type": "object",
"readOnly": true,
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/ResourceProviderOperation"
},
"description": "List of operations supported by this resource provider."
},
"nextLink": {
"type": "string",
"readOnly": true,
"description": "URL to the next set of results, if any."
}
}
}
},
"parameters": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"swagger": "2.0",
"info": {
"version": "2022-01-01-preview",
"title": "Common types and definitions",
"description": "Definitions and parameters common for all resource types of KubernetesConfiguration RP"
},
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {},
"definitions": {},
"parameters": {
"ClusterRpParameter": {
"name": "clusterRp",
"in": "path",
"required": true,
"type": "string",
"enum": [
"Microsoft.ContainerService",
"Microsoft.Kubernetes"
],
"description": "The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters).",
"x-ms-parameter-location": "method"
},
"ClusterResourceNameParameter": {
"name": "clusterResourceName",
"in": "path",
"required": true,
"type": "string",
"enum": [
"managedClusters",
"connectedClusters"
],
"description": "The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).",
"x-ms-parameter-location": "method"
},
"ClusterNameParameter": {
"name": "clusterName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the kubernetes cluster.",
"x-ms-parameter-location": "method"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"parameters": {
"subscriptionId": "subId1",
"resourceGroupName": "rg1",
"clusterRp": "Microsoft.ContainerService",
"clusterResourceName": "managedClusters",
"clusterName": "clusterName1",
"api-version": "2022-01-01-preview",
"extensionTypeName": "microsoft.example"
},
"responses": {
"200": {
"body": {
"properties": {
"releaseTrains": [
"stable",
"preview",
"pilot"
],
"clusterTypes": "connectedClusters",
"supportedScopes": {
"defaultScope": "cluster",
"clusterScopeSettings": {
"properties": {
"allowMultipleInstances": true,
"defaultReleaseNamespace": "kube-system"
},
"id": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.ContainerService/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensionTypes/microsoft.example",
"name": "microsoft.example",
"type": "Microsoft.KubernetesConfiguration/extensionTypes"
}
}
},
"systemData": {
"createdBy": "string",
"createdByType": "Application",
"createdAt": "2020-09-08T05:10:57.027Z",
"lastModifiedBy": "string",
"lastModifiedByType": "Application",
"lastModifiedAt": "2020-09-08T05:10:57.027Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"parameters": {
"subscriptionId": "subId1",
"resourceGroupName": "rg1",
"clusterRp": "Microsoft.ContainerService",
"clusterResourceName": "managedClusters",
"clusterName": "clusterName1",
"api-version": "2022-01-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"releaseTrains": [
"stable",
"preview",
"pilot"
],
"clusterTypes": "connectedClusters",
"supportedScopes": {
"defaultScope": "cluster",
"clusterScopeSettings": {
"properties": {
"allowMultipleInstances": true,
"defaultReleaseNamespace": "kube-system"
},
"id": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.ContainerService/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensionTypes/microsoft.example",
"name": "microsoft.example",
"type": "Microsoft.KubernetesConfiguration/extensionTypes"
}
}
},
"systemData": {
"createdBy": "string",
"createdByType": "Application",
"createdAt": "2020-09-08T05:10:57.027Z",
"lastModifiedBy": "string",
"lastModifiedByType": "Application",
"lastModifiedAt": "2020-09-08T05:10:57.027Z"
}
}
],
"nextLink": null
}
}
}
}
Loading

0 comments on commit a136560

Please sign in to comment.