Skip to content

Commit 433f115

Browse files
bavneetsingh16Bavneet Singhmsyyc
authored
Microsoft.KubernetesConfiguration to add preview and stable version 2023-05-01 (#23676)
* copy stable API version from 2022-11-01 to 2023-05-01 and preview API 2022-01-15-preview to 2023-05-01-preview * updating the API version to 2023-05-01 * updating the API version to 2023-05-01-preview * update readme files to fix avocado errors * update readme file to remove operations from the list * fix model validation errors * fix operations issue in lint errors * fix swagger lintdiff errors * fix pattern * add nextLink property * add pattern restriction fix model validation errors * fix the path for common file * fix readme and x-ms-identifiers errors * fix nextLink error * resolve changes suggested in comments * create sdk for preview api version * add support for patch operation * Update readme.python.md --------- Co-authored-by: Bavneet Singh <[email protected]> Co-authored-by: Yuchao Yan <[email protected]>
1 parent bdc89af commit 433f115

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+7096
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2023-05-01-preview",
5+
"title": "Common types and definitions",
6+
"description": "Definitions and parameters common for all resource types of KubernetesConfiguration RP"
7+
},
8+
"security": [
9+
{
10+
"azure_auth": [
11+
"user_impersonation"
12+
]
13+
}
14+
],
15+
"securityDefinitions": {
16+
"azure_auth": {
17+
"type": "oauth2",
18+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
19+
"flow": "implicit",
20+
"description": "Azure Active Directory OAuth2 Flow",
21+
"scopes": {
22+
"user_impersonation": "impersonate your user account"
23+
}
24+
}
25+
},
26+
"paths": {},
27+
"definitions": {
28+
"ProvisioningStateDefinition": {
29+
"type": "string",
30+
"readOnly": true,
31+
"description": "The provisioning state of the resource.",
32+
"enum": [
33+
"Succeeded",
34+
"Failed",
35+
"Canceled",
36+
"Creating",
37+
"Updating",
38+
"Deleting"
39+
],
40+
"x-ms-enum": {
41+
"name": "ProvisioningState",
42+
"modelAsString": true
43+
}
44+
},
45+
"ResourceProviderOperation": {
46+
"description": "Supported operation of this resource provider.",
47+
"type": "object",
48+
"readOnly": true,
49+
"properties": {
50+
"name": {
51+
"description": "Operation name, in format of {provider}/{resource}/{operation}",
52+
"type": "string"
53+
},
54+
"display": {
55+
"description": "Display metadata associated with the operation.",
56+
"type": "object",
57+
"properties": {
58+
"provider": {
59+
"description": "Resource provider: Microsoft KubernetesConfiguration.",
60+
"type": "string"
61+
},
62+
"resource": {
63+
"description": "Resource on which the operation is performed.",
64+
"type": "string"
65+
},
66+
"operation": {
67+
"description": "Type of operation: get, read, delete, etc.",
68+
"type": "string"
69+
},
70+
"description": {
71+
"description": "Description of this operation.",
72+
"type": "string"
73+
}
74+
}
75+
},
76+
"isDataAction": {
77+
"description": "The flag that indicates whether the operation applies to data plane.",
78+
"type": "boolean",
79+
"readOnly": true
80+
},
81+
"origin": {
82+
"description": "Origin of the operation",
83+
"type": "string",
84+
"readOnly": true
85+
}
86+
}
87+
},
88+
"ResourceProviderOperationList": {
89+
"description": "Result of the request to list operations.",
90+
"type": "object",
91+
"readOnly": true,
92+
"properties": {
93+
"value": {
94+
"type": "array",
95+
"items": {
96+
"$ref": "#/definitions/ResourceProviderOperation"
97+
},
98+
"description": "List of operations supported by this resource provider.",
99+
"x-ms-identifiers": [
100+
"name"
101+
]
102+
},
103+
"nextLink": {
104+
"type": "string",
105+
"readOnly": true,
106+
"description": "URL to the next set of results, if any."
107+
}
108+
}
109+
}
110+
},
111+
"parameters": {}
112+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2023-05-01-preview",
5+
"title": "Common types and definitions",
6+
"description": "Definitions and parameters common for all resource types of KubernetesConfiguration RP"
7+
},
8+
"security": [
9+
{
10+
"azure_auth": [
11+
"user_impersonation"
12+
]
13+
}
14+
],
15+
"securityDefinitions": {
16+
"azure_auth": {
17+
"type": "oauth2",
18+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
19+
"flow": "implicit",
20+
"description": "Azure Active Directory OAuth2 Flow",
21+
"scopes": {
22+
"user_impersonation": "impersonate your user account"
23+
}
24+
}
25+
},
26+
"paths": {},
27+
"definitions": {},
28+
"parameters": {
29+
"ClusterRpParameter": {
30+
"name": "clusterRp",
31+
"in": "path",
32+
"required": true,
33+
"type": "string",
34+
"description": "The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.",
35+
"x-ms-parameter-location": "method"
36+
},
37+
"ClusterResourceNameParameter": {
38+
"name": "clusterResourceName",
39+
"in": "path",
40+
"required": true,
41+
"type": "string",
42+
"pattern": "^[a-zA-Z]*$",
43+
"description": "The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters, appliances.",
44+
"x-ms-parameter-location": "method"
45+
},
46+
"ClusterNameParameter": {
47+
"name": "clusterName",
48+
"in": "path",
49+
"required": true,
50+
"type": "string",
51+
"pattern": "^.*",
52+
"description": "The name of the kubernetes cluster.",
53+
"x-ms-parameter-location": "method"
54+
}
55+
}
56+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subId1",
4+
"resourceGroupName": "rg1",
5+
"clusterRp": "Microsoft.Kubernetes",
6+
"clusterResourceName": "connectedClusters",
7+
"clusterName": "my-cluster",
8+
"extensionTypeName": "my-extension-type",
9+
"api-version": "2023-05-01-preview"
10+
},
11+
"responses": {
12+
"200": {
13+
"headers": {},
14+
"description": "Details of the extension type",
15+
"body": {
16+
"id": "aaaa",
17+
"name": "bbbb",
18+
"type": "cccc",
19+
"properties": {
20+
"isSystemExtension": false,
21+
"isManagedIdentityRequired": true,
22+
"description": "My extension type!",
23+
"publisher": "Microsoft",
24+
"planInfo": {
25+
"publisherId": "111111",
26+
"planId": "222222",
27+
"offerId": "3333333"
28+
},
29+
"supportedClusterTypes": [
30+
"connectedClusters"
31+
],
32+
"supportedScopes": {
33+
"defaultScope": "cluster",
34+
"clusterScopeSettings": {
35+
"properties": {
36+
"allowMultipleInstances": true,
37+
"defaultReleaseNamespace": "kube-system"
38+
},
39+
"id": "aaaaaaaaaaaaaaaaaa",
40+
"name": "bbbbbbbbbbbbb",
41+
"type": "ccccccccccccccccccccccccc"
42+
}
43+
}
44+
}
45+
}
46+
}
47+
}
48+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subId1",
4+
"location": "westus2",
5+
"extensionTypeName": "extensionType1",
6+
"api-version": "2023-05-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {},
11+
"description": "Details of the extension type",
12+
"body": {
13+
"id": "aaaa",
14+
"name": "bbbb",
15+
"type": "cccc",
16+
"properties": {
17+
"isSystemExtension": false,
18+
"isManagedIdentityRequired": true,
19+
"description": "My extension type!",
20+
"publisher": "Microsoft",
21+
"planInfo": {
22+
"publisherId": "myPublisherId",
23+
"planId": "myPlanId",
24+
"offerId": "myOfferId"
25+
},
26+
"supportedClusterTypes": [
27+
"connectedClusters"
28+
],
29+
"supportedScopes": {
30+
"defaultScope": "cluster",
31+
"clusterScopeSettings": {
32+
"properties": {
33+
"allowMultipleInstances": true,
34+
"defaultReleaseNamespace": "kube-system"
35+
},
36+
"id": "aaaaaaaaaaaaaaaaaa",
37+
"name": "bbbbbbbbbbbbb",
38+
"type": "ccccccccccccccccccccccccc"
39+
}
40+
}
41+
}
42+
}
43+
}
44+
}
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subId1",
4+
"resourceGroupName": "rg1",
5+
"clusterRp": "Microsoft.Kubernetes",
6+
"clusterResourceName": "connectedClusters",
7+
"clusterName": "my-cluster",
8+
"extensionTypeName": "my-extension-type",
9+
"versionNumber": "v1.3.2",
10+
"api-version": "2023-05-01-preview"
11+
},
12+
"responses": {
13+
"200": {
14+
"headers": {},
15+
"description": "Versions for the Extension Type",
16+
"body": {
17+
"id": "aaaa",
18+
"name": "bbbb",
19+
"type": "cccc",
20+
"properties": {
21+
"version": "1.1.0",
22+
"unsupportedKubernetesVersions": {
23+
"connectedCluster": [
24+
{
25+
"distributions": [
26+
"AKS"
27+
],
28+
"unsupportedVersions": []
29+
},
30+
{
31+
"distributions": [
32+
"GKE"
33+
],
34+
"unsupportedVersions": [
35+
">1.22"
36+
]
37+
}
38+
],
39+
"appliances": [
40+
{
41+
"distributions": [
42+
"AKS"
43+
],
44+
"unsupportedVersions": [
45+
"1.18..1.21"
46+
]
47+
}
48+
],
49+
"provisionedCluster": [
50+
{
51+
"distributions": [
52+
"AKS"
53+
],
54+
"unsupportedVersions": []
55+
}
56+
],
57+
"managedCluster": [
58+
{
59+
"distributions": [
60+
"AKS"
61+
],
62+
"unsupportedVersions": []
63+
}
64+
]
65+
},
66+
"supportedClusterTypes": [
67+
"connectedCluster"
68+
]
69+
}
70+
}
71+
}
72+
}
73+
}

0 commit comments

Comments
 (0)