Skip to content

Commit a1bd157

Browse files
SDKAutosikasiremsyyc
committed
CodeGen from PR 15956 in Azure/azure-rest-api-specs
New GA version changes - 2021-10-01 (#15956) * New GA api-version changes- 2021-01-01 * readme changes * readme changes * add systemdata definition * system data ref fix * system data ref fix * fix * fix * fix * remove empty patch section * revert patch section * lint fix * lint fix * lintfix * readme changes * Update readme.md * remove property bag from cc update example * Fixing listClusterUserCreds examples * hide creds * example file naming changes and clientProxy flag correction Co-authored-by: Siri Teja Reddy Kasireddy <[email protected]> Co-authored-by: msyyc <[email protected]>
1 parent 233b441 commit a1bd157

File tree

2 files changed

+149
-0
lines changed

2 files changed

+149
-0
lines changed
Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2021-10-01/Microsoft.Kubernetes.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "Microsoft.Kubernetes",
5+
"description": "Microsoft Kubernetes Resource Types",
6+
"resourceDefinitions": {
7+
"connectedClusters": {
8+
"type": "object",
9+
"properties": {
10+
"apiVersion": {
11+
"type": "string",
12+
"enum": [
13+
"2021-10-01"
14+
]
15+
},
16+
"identity": {
17+
"oneOf": [
18+
{
19+
"$ref": "#/definitions/ConnectedClusterIdentity"
20+
},
21+
{
22+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
23+
}
24+
],
25+
"description": "Identity for the connected cluster."
26+
},
27+
"location": {
28+
"type": "string",
29+
"description": "The geo-location where the resource lives"
30+
},
31+
"name": {
32+
"type": "string",
33+
"description": "The name of the Kubernetes cluster on which get is called."
34+
},
35+
"properties": {
36+
"oneOf": [
37+
{
38+
"$ref": "#/definitions/ConnectedClusterProperties"
39+
},
40+
{
41+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
42+
}
43+
],
44+
"description": "Properties of the connected cluster."
45+
},
46+
"tags": {
47+
"oneOf": [
48+
{
49+
"type": "object",
50+
"additionalProperties": {
51+
"type": "string"
52+
},
53+
"properties": {}
54+
},
55+
{
56+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
57+
}
58+
],
59+
"description": "Resource tags."
60+
},
61+
"type": {
62+
"type": "string",
63+
"enum": [
64+
"Microsoft.Kubernetes/connectedClusters"
65+
]
66+
}
67+
},
68+
"required": [
69+
"apiVersion",
70+
"identity",
71+
"location",
72+
"name",
73+
"properties",
74+
"type"
75+
],
76+
"description": "Microsoft.Kubernetes/connectedClusters"
77+
}
78+
},
79+
"definitions": {
80+
"ConnectedClusterIdentity": {
81+
"type": "object",
82+
"properties": {
83+
"type": {
84+
"oneOf": [
85+
{
86+
"type": "string",
87+
"enum": [
88+
"None",
89+
"SystemAssigned"
90+
]
91+
},
92+
{
93+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
94+
}
95+
],
96+
"description": "The type of identity used for the connected cluster. The type 'SystemAssigned, includes a system created identity. The type 'None' means no identity is assigned to the connected cluster."
97+
}
98+
},
99+
"required": [
100+
"type"
101+
],
102+
"description": "Identity for the connected cluster."
103+
},
104+
"ConnectedClusterProperties": {
105+
"type": "object",
106+
"properties": {
107+
"agentPublicKeyCertificate": {
108+
"type": "string",
109+
"description": "Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure."
110+
},
111+
"distribution": {
112+
"type": "string",
113+
"description": "The Kubernetes distribution running on this connected cluster."
114+
},
115+
"infrastructure": {
116+
"type": "string",
117+
"description": "The infrastructure on which the Kubernetes cluster represented by this connected cluster is running on."
118+
},
119+
"provisioningState": {
120+
"oneOf": [
121+
{
122+
"type": "string",
123+
"enum": [
124+
"Succeeded",
125+
"Failed",
126+
"Canceled",
127+
"Provisioning",
128+
"Updating",
129+
"Deleting",
130+
"Accepted"
131+
]
132+
},
133+
{
134+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
135+
}
136+
],
137+
"description": "Provisioning state of the connected cluster resource."
138+
}
139+
},
140+
"required": [
141+
"agentPublicKeyCertificate"
142+
],
143+
"description": "Properties of the connected cluster."
144+
}
145+
}
146+
}

schemas/common/autogeneratedResources.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6715,6 +6715,9 @@
67156715
{
67166716
"$ref": "https://schema.management.azure.com/schemas/2021-04-01-preview/Microsoft.Kubernetes.json#/resourceDefinitions/connectedClusters"
67176717
},
6718+
{
6719+
"$ref": "https://schema.management.azure.com/schemas/2021-10-01/Microsoft.Kubernetes.json#/resourceDefinitions/connectedClusters"
6720+
},
67186721
{
67196722
"$ref": "https://schema.management.azure.com/schemas/2018-10-15/Microsoft.LabServices.json#/resourceDefinitions/labaccounts"
67206723
},

0 commit comments

Comments
 (0)