Skip to content

Commit 7fb7722

Browse files
author
msftbot[bot]
authored
[ReleasePR hybridkubernetes] Introduce new preview api-version 2022-05-01-preview for Microsoft.Kubernetes (#2383)
Create to sync Azure/azure-rest-api-specs#19184 [ReCreate this PR](https://github.com/azure-resource-manager-schemas/compare/main...azure-sdk:sdkAuto/hybridkubernetes?expand=1)
2 parents f3fbc22 + a53139d commit 7fb7722

File tree

2 files changed

+168
-0
lines changed

2 files changed

+168
-0
lines changed
Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2022-05-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-05-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+
"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+
"privateLinkScopeResourceId": {
120+
"type": "string",
121+
"description": "The resource id of the private link scope this connected cluster is assigned to, if any."
122+
},
123+
"privateLinkState": {
124+
"oneOf": [
125+
{
126+
"type": "string",
127+
"enum": [
128+
"Enabled",
129+
"Disabled"
130+
]
131+
},
132+
{
133+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
134+
}
135+
],
136+
"description": "Property which describes the state of private link on a connected cluster resource."
137+
},
138+
"provisioningState": {
139+
"oneOf": [
140+
{
141+
"type": "string",
142+
"enum": [
143+
"Succeeded",
144+
"Failed",
145+
"Canceled",
146+
"Provisioning",
147+
"Updating",
148+
"Deleting",
149+
"Accepted"
150+
]
151+
},
152+
{
153+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
154+
}
155+
],
156+
"description": "Provisioning state of the connected cluster resource."
157+
}
158+
},
159+
"required": [
160+
"agentPublicKeyCertificate"
161+
],
162+
"description": "Properties of the connected cluster."
163+
}
164+
}
165+
}

schemas/common/autogeneratedResources.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10354,6 +10354,9 @@
1035410354
{
1035510355
"$ref": "https://schema.management.azure.com/schemas/2021-10-01/Microsoft.Kubernetes.json#/resourceDefinitions/connectedClusters"
1035610356
},
10357+
{
10358+
"$ref": "https://schema.management.azure.com/schemas/2022-05-01-preview/Microsoft.Kubernetes.json#/resourceDefinitions/connectedClusters"
10359+
},
1035710360
{
1035810361
"$ref": "https://schema.management.azure.com/schemas/2022-04-02-preview/Microsoft.KubernetesConfiguration.json#/resourceDefinitions/privateLinkScopes"
1035910362
},

0 commit comments

Comments
 (0)