Skip to content

Commit f2679ab

Browse files
jonathan-innisFredericHeem
authored andcommitted
[Microsoft.KubernetesConfiguration] Release Stable Api-Version 2022-03-01 (Azure#17678)
* Adds base for updating Microsoft.KubernetesConfiguration from version preview/2022-01-01-preview to version 2022-03-01 * Updates readme * Updates API version in new specs and examples * Update fluxConfigurations and common file for dynamic rp provider * Update readme for sdk generation * Add kustomization name to object model * Change property names for Flux and add statusUpdatedAt * Add x-ms-identifiers
1 parent 04d68e1 commit f2679ab

30 files changed

+4595
-24
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2022-03-01",
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+
"OperationStatusResult": {
46+
"description": "The current status of an async operation.",
47+
"type": "object",
48+
"required": [
49+
"status"
50+
],
51+
"properties": {
52+
"id": {
53+
"description": "Fully qualified ID for the async operation.",
54+
"type": "string"
55+
},
56+
"name": {
57+
"description": "Name of the async operation.",
58+
"type": "string"
59+
},
60+
"status": {
61+
"description": "Operation status.",
62+
"type": "string"
63+
},
64+
"properties": {
65+
"description": "Additional information, if available.",
66+
"type": "object",
67+
"x-nullable": true,
68+
"additionalProperties": {
69+
"type": "string"
70+
}
71+
},
72+
"error": {
73+
"description": "If present, details of the operation error.",
74+
"type": "object",
75+
"readOnly": true,
76+
"x-nullable": true,
77+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail"
78+
}
79+
}
80+
},
81+
"OperationStatusList": {
82+
"description": "The async operations in progress, in the cluster.",
83+
"type": "object",
84+
"readOnly": true,
85+
"properties": {
86+
"value": {
87+
"type": "array",
88+
"readOnly": true,
89+
"items": {
90+
"$ref": "#/definitions/OperationStatusResult"
91+
},
92+
"description": "List of async operations in progress, in the cluster."
93+
},
94+
"nextLink": {
95+
"type": "string",
96+
"readOnly": true,
97+
"description": "URL to get the next set of Operation Result objects, if any."
98+
}
99+
}
100+
},
101+
"ResourceProviderOperation": {
102+
"description": "Supported operation of this resource provider.",
103+
"type": "object",
104+
"readOnly": true,
105+
"properties": {
106+
"name": {
107+
"description": "Operation name, in format of {provider}/{resource}/{operation}",
108+
"type": "string"
109+
},
110+
"display": {
111+
"description": "Display metadata associated with the operation.",
112+
"type": "object",
113+
"properties": {
114+
"provider": {
115+
"description": "Resource provider: Microsoft KubernetesConfiguration.",
116+
"type": "string"
117+
},
118+
"resource": {
119+
"description": "Resource on which the operation is performed.",
120+
"type": "string"
121+
},
122+
"operation": {
123+
"description": "Type of operation: get, read, delete, etc.",
124+
"type": "string"
125+
},
126+
"description": {
127+
"description": "Description of this operation.",
128+
"type": "string"
129+
}
130+
}
131+
},
132+
"isDataAction": {
133+
"description": "The flag that indicates whether the operation applies to data plane.",
134+
"type": "boolean",
135+
"readOnly": true
136+
},
137+
"origin": {
138+
"description": "Origin of the operation",
139+
"type": "string",
140+
"readOnly": true
141+
}
142+
}
143+
},
144+
"ResourceProviderOperationList": {
145+
"description": "Result of the request to list operations.",
146+
"type": "object",
147+
"readOnly": true,
148+
"properties": {
149+
"value": {
150+
"type": "array",
151+
"items": {
152+
"$ref": "#/definitions/ResourceProviderOperation"
153+
},
154+
"description": "List of operations supported by this resource provider.",
155+
"x-ms-identifiers": [
156+
"name"
157+
]
158+
},
159+
"nextLink": {
160+
"type": "string",
161+
"readOnly": true,
162+
"description": "URL to the next set of results, if any."
163+
}
164+
}
165+
}
166+
},
167+
"parameters": {}
168+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2022-03-01",
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+
"description": "The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.",
43+
"x-ms-parameter-location": "method"
44+
},
45+
"ClusterNameParameter": {
46+
"name": "clusterName",
47+
"in": "path",
48+
"required": true,
49+
"type": "string",
50+
"description": "The name of the kubernetes cluster.",
51+
"x-ms-parameter-location": "method"
52+
}
53+
}
54+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subId1",
4+
"resourceGroupName": "rg1",
5+
"clusterRp": "Microsoft.Kubernetes",
6+
"clusterResourceName": "connectedClusters",
7+
"extensionName": "ClusterMonitor",
8+
"api-version": "2022-03-01",
9+
"clusterName": "clusterName1",
10+
"extension": {
11+
"properties": {
12+
"extensionType": "azuremonitor-containers",
13+
"autoUpgradeMinorVersion": true,
14+
"releaseTrain": "Preview",
15+
"scope": {
16+
"cluster": {
17+
"releaseNamespace": "kube-system"
18+
}
19+
},
20+
"configurationSettings": {
21+
"omsagent.secret.wsid": "a38cef99-5a89-52ed-b6db-22095c23664b",
22+
"omsagent.env.clusterName": "clusterName1"
23+
},
24+
"configurationProtectedSettings": {
25+
"omsagent.secret.key": "secretKeyValue01"
26+
}
27+
}
28+
}
29+
},
30+
"responses": {
31+
"201": {
32+
"headers": {
33+
"Operation-Location": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/ClusterMonitor/operations/{operationId}",
34+
"x-ms-async-operation-timeout": "PT48H",
35+
"Azure-AsyncOperation": "http://management.azure.com/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Kubernetes/ConnectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/ClusterMonitor/operations/operationId?api-version=2022-03-01"
36+
},
37+
"description": "Details of the Kubernetes Extension's current status.",
38+
"body": {
39+
"id": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/ClusterMonitor",
40+
"type": "Microsoft.KubernetesConfiguration/extensions",
41+
"name": "ClusterMonitor",
42+
"systemData": {
43+
"createdBy": "string",
44+
"createdByType": "Application",
45+
"createdAt": "2021-09-08T05:10:57.027Z",
46+
"lastModifiedBy": "string",
47+
"lastModifiedByType": "Application",
48+
"lastModifiedAt": "2021-09-08T05:10:57.027Z"
49+
},
50+
"properties": {
51+
"extensionType": "azuremonitor-containers",
52+
"autoUpgradeMinorVersion": true,
53+
"releaseTrain": "Preview",
54+
"version": "0.1.4",
55+
"scope": {
56+
"cluster": {
57+
"releaseNamespace": "kube-system"
58+
}
59+
},
60+
"configurationSettings": {
61+
"omsagent.secret.wsid": "a38cef99-5a89-52ed-b6db-22095c23664b",
62+
"omsagent.env.clusterName": "clusterName1"
63+
},
64+
"provisioningState": "Creating",
65+
"statuses": []
66+
}
67+
}
68+
},
69+
"200": {
70+
"headers": {
71+
"Operation-Location": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/ClusterMonitor/operations/{operationId}",
72+
"x-ms-async-operation-timeout": "PT48H"
73+
},
74+
"description": "Details of the Kubernetes Extension's current status.",
75+
"body": {
76+
"id": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/ClusterMonitor",
77+
"type": "Microsoft.KubernetesConfiguration/extensions",
78+
"name": "ClusterMonitor",
79+
"systemData": {
80+
"createdBy": "string",
81+
"createdByType": "Application",
82+
"createdAt": "2021-09-08T05:10:57.027Z",
83+
"lastModifiedBy": "string",
84+
"lastModifiedByType": "Application",
85+
"lastModifiedAt": "2021-09-08T05:10:57.027Z"
86+
},
87+
"properties": {
88+
"extensionType": "azuremonitor-containers",
89+
"autoUpgradeMinorVersion": true,
90+
"releaseTrain": "Preview",
91+
"version": "0.1.4",
92+
"scope": {
93+
"cluster": {
94+
"releaseNamespace": "kube-system"
95+
}
96+
},
97+
"configurationSettings": {
98+
"omsagent.secret.wsid": "a38cef99-5a89-52ed-b6db-22095c23664b",
99+
"omsagent.env.clusterName": "clusterName1"
100+
},
101+
"provisioningState": "Creating",
102+
"statuses": []
103+
}
104+
}
105+
}
106+
}
107+
}

0 commit comments

Comments
 (0)