Skip to content

Commit 905e424

Browse files
author
msftbot[bot]
authored
[ReleasePR hybridkubernetes] Introduce new api version 2022-10-01-preview for Microsoft.Kubernetes (#2582)
Create to sync Azure/azure-rest-api-specs#20852 [ReCreate this PR](https://github.com/azure-resource-manager-schemas/compare/main...azure-sdk:sdkAuto/hybridkubernetes?expand=1)
2 parents b7d4133 + 812dba6 commit 905e424

File tree

2 files changed

+188
-0
lines changed

2 files changed

+188
-0
lines changed
Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2022-10-01-preview/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+
"2022-10-01-preview"
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+
"azureHybridBenefit": {
112+
"oneOf": [
113+
{
114+
"type": "string",
115+
"enum": [
116+
"True",
117+
"False",
118+
"NotApplicable"
119+
]
120+
},
121+
{
122+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
123+
}
124+
],
125+
"description": "Indicates whether Azure Hybrid Benefit is opted in."
126+
},
127+
"distribution": {
128+
"type": "string",
129+
"description": "The Kubernetes distribution running on this connected cluster."
130+
},
131+
"distributionVersion": {
132+
"type": "string",
133+
"description": "The Kubernetes distribution version on this connected cluster."
134+
},
135+
"infrastructure": {
136+
"type": "string",
137+
"description": "The infrastructure on which the Kubernetes cluster represented by this connected cluster is running on."
138+
},
139+
"privateLinkScopeResourceId": {
140+
"type": "string",
141+
"description": "The resource id of the private link scope this connected cluster is assigned to, if any."
142+
},
143+
"privateLinkState": {
144+
"oneOf": [
145+
{
146+
"type": "string",
147+
"enum": [
148+
"Enabled",
149+
"Disabled"
150+
]
151+
},
152+
{
153+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
154+
}
155+
],
156+
"description": "Property which describes the state of private link on a connected cluster resource."
157+
},
158+
"provisioningState": {
159+
"oneOf": [
160+
{
161+
"type": "string",
162+
"enum": [
163+
"Succeeded",
164+
"Failed",
165+
"Canceled",
166+
"Provisioning",
167+
"Updating",
168+
"Deleting",
169+
"Accepted"
170+
]
171+
},
172+
{
173+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
174+
}
175+
],
176+
"description": "Provisioning state of the connected cluster resource."
177+
}
178+
},
179+
"required": [
180+
"agentPublicKeyCertificate"
181+
],
182+
"description": "Properties of the connected cluster."
183+
}
184+
}
185+
}

schemas/common/autogeneratedResources.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11632,6 +11632,9 @@
1163211632
{
1163311633
"$ref": "https://schema.management.azure.com/schemas/2022-05-01-preview/Microsoft.Kubernetes.json#/resourceDefinitions/connectedClusters"
1163411634
},
11635+
{
11636+
"$ref": "https://schema.management.azure.com/schemas/2022-10-01-preview/Microsoft.Kubernetes.json#/resourceDefinitions/connectedClusters"
11637+
},
1163511638
{
1163611639
"$ref": "https://schema.management.azure.com/schemas/2022-04-02-preview/Microsoft.KubernetesConfiguration.json#/resourceDefinitions/privateLinkScopes"
1163711640
},

0 commit comments

Comments
 (0)