Skip to content

Commit c8acd3c

Browse files
author
SDKAuto
committed
CodeGen from PR 17297 in Azure/azure-rest-api-specs
[Hub Generated] Public private branch 'dev-hsm-2018-10-31-preview-SKUChangesOnly' (#17297) * Add more SKU enums * Fix avocado and spellcheck errors * PHSM: Swagger: Copy the current private preview files\folders to a new folder: 2021-11-30. * Add managementNetworkProfile to properties. Introduce API version 2021-11-30. * Fix avocado errors * Fix LintDiff error to add SystemData to the resource. * Add VNET outboundnetworkdependencies GET. * Addressed the review comments * Added x-ms-identifiers as a newly introduced rule in LintDiff was complaining
1 parent d9d6894 commit c8acd3c

File tree

3 files changed

+294
-3
lines changed

3 files changed

+294
-3
lines changed

schemas/2018-10-31-preview/Microsoft.HardwareSecurityModules.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
{
4949
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
5050
}
51-
]
51+
],
52+
"description": "SKU of the dedicated HSM"
5253
},
5354
"tags": {
5455
"oneOf": [
@@ -175,7 +176,13 @@
175176
{
176177
"type": "string",
177178
"enum": [
178-
"SafeNet Luna Network HSM A790"
179+
"SafeNet Luna Network HSM A790",
180+
"payShield10K_LMK1_CPS60",
181+
"payShield10K_LMK1_CPS250",
182+
"payShield10K_LMK1_CPS2500",
183+
"payShield10K_LMK2_CPS60",
184+
"payShield10K_LMK2_CPS250",
185+
"payShield10K_LMK2_CPS2500"
179186
]
180187
},
181188
{
@@ -184,7 +191,8 @@
184191
],
185192
"description": "SKU of the dedicated HSM."
186193
}
187-
}
194+
},
195+
"description": "SKU of the dedicated HSM"
188196
}
189197
}
190198
}
Lines changed: 280 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,280 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2021-11-30/Microsoft.HardwareSecurityModules.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "Microsoft.HardwareSecurityModules",
5+
"description": "Microsoft HardwareSecurityModules Resource Types",
6+
"resourceDefinitions": {
7+
"dedicatedHSMs": {
8+
"type": "object",
9+
"properties": {
10+
"apiVersion": {
11+
"type": "string",
12+
"enum": [
13+
"2021-11-30"
14+
]
15+
},
16+
"location": {
17+
"type": "string",
18+
"description": "The supported Azure location where the dedicated HSM should be created."
19+
},
20+
"name": {
21+
"oneOf": [
22+
{
23+
"type": "string",
24+
"pattern": "^[a-zA-Z0-9-]{3,24}$"
25+
},
26+
{
27+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
28+
}
29+
],
30+
"description": "Name of the dedicated Hsm"
31+
},
32+
"properties": {
33+
"oneOf": [
34+
{
35+
"$ref": "#/definitions/DedicatedHsmProperties"
36+
},
37+
{
38+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
39+
}
40+
],
41+
"description": "Properties of the dedicated hsm"
42+
},
43+
"sku": {
44+
"oneOf": [
45+
{
46+
"$ref": "#/definitions/Sku"
47+
},
48+
{
49+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
50+
}
51+
],
52+
"description": "SKU of the dedicated HSM"
53+
},
54+
"systemData": {
55+
"oneOf": [
56+
{
57+
"$ref": "#/definitions/SystemData"
58+
},
59+
{
60+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
61+
}
62+
],
63+
"description": "Metadata pertaining to creation and last modification of dedicated hsm resource."
64+
},
65+
"tags": {
66+
"oneOf": [
67+
{
68+
"type": "object",
69+
"additionalProperties": {
70+
"type": "string"
71+
},
72+
"properties": {}
73+
},
74+
{
75+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
76+
}
77+
],
78+
"description": "Resource tags"
79+
},
80+
"type": {
81+
"type": "string",
82+
"enum": [
83+
"Microsoft.HardwareSecurityModules/dedicatedHSMs"
84+
]
85+
},
86+
"zones": {
87+
"oneOf": [
88+
{
89+
"type": "array",
90+
"items": {
91+
"type": "string"
92+
}
93+
},
94+
{
95+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
96+
}
97+
],
98+
"description": "The Dedicated Hsm zones."
99+
}
100+
},
101+
"required": [
102+
"apiVersion",
103+
"location",
104+
"name",
105+
"properties",
106+
"type"
107+
],
108+
"description": "Microsoft.HardwareSecurityModules/dedicatedHSMs"
109+
}
110+
},
111+
"definitions": {
112+
"ApiEntityReference": {
113+
"type": "object",
114+
"properties": {
115+
"id": {
116+
"type": "string",
117+
"description": "The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/..."
118+
}
119+
},
120+
"description": "The API entity reference."
121+
},
122+
"DedicatedHsmProperties": {
123+
"type": "object",
124+
"properties": {
125+
"managementNetworkProfile": {
126+
"oneOf": [
127+
{
128+
"$ref": "#/definitions/NetworkProfile"
129+
},
130+
{
131+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
132+
}
133+
],
134+
"description": "The network profile definition."
135+
},
136+
"networkProfile": {
137+
"oneOf": [
138+
{
139+
"$ref": "#/definitions/NetworkProfile"
140+
},
141+
{
142+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
143+
}
144+
],
145+
"description": "The network profile definition."
146+
},
147+
"stampId": {
148+
"type": "string",
149+
"description": "This field will be used when RP does not support Availability zones."
150+
}
151+
},
152+
"description": "Properties of the dedicated hsm"
153+
},
154+
"NetworkInterface": {
155+
"type": "object",
156+
"properties": {
157+
"privateIpAddress": {
158+
"type": "string",
159+
"description": "Private Ip address of the interface"
160+
}
161+
},
162+
"description": "The network interface definition."
163+
},
164+
"NetworkProfile": {
165+
"type": "object",
166+
"properties": {
167+
"networkInterfaces": {
168+
"oneOf": [
169+
{
170+
"type": "array",
171+
"items": {
172+
"$ref": "#/definitions/NetworkInterface"
173+
}
174+
},
175+
{
176+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
177+
}
178+
],
179+
"description": "Specifies the list of resource Ids for the network interfaces associated with the dedicated HSM."
180+
},
181+
"subnet": {
182+
"oneOf": [
183+
{
184+
"$ref": "#/definitions/ApiEntityReference"
185+
},
186+
{
187+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
188+
}
189+
],
190+
"description": "The API entity reference."
191+
}
192+
},
193+
"description": "The network profile definition."
194+
},
195+
"Sku": {
196+
"type": "object",
197+
"properties": {
198+
"name": {
199+
"oneOf": [
200+
{
201+
"type": "string",
202+
"enum": [
203+
"SafeNet Luna Network HSM A790",
204+
"payShield10K_LMK1_CPS60",
205+
"payShield10K_LMK1_CPS250",
206+
"payShield10K_LMK1_CPS2500",
207+
"payShield10K_LMK2_CPS60",
208+
"payShield10K_LMK2_CPS250",
209+
"payShield10K_LMK2_CPS2500"
210+
]
211+
},
212+
{
213+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
214+
}
215+
],
216+
"description": "SKU of the dedicated HSM."
217+
}
218+
},
219+
"description": "SKU of the dedicated HSM"
220+
},
221+
"SystemData": {
222+
"type": "object",
223+
"properties": {
224+
"createdAt": {
225+
"type": "string",
226+
"format": "date-time",
227+
"description": "The timestamp of dedicated hsm resource creation (UTC)."
228+
},
229+
"createdBy": {
230+
"type": "string",
231+
"description": "The identity that created dedicated hsm resource."
232+
},
233+
"createdByType": {
234+
"oneOf": [
235+
{
236+
"type": "string",
237+
"enum": [
238+
"User",
239+
"Application",
240+
"ManagedIdentity",
241+
"Key"
242+
]
243+
},
244+
{
245+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
246+
}
247+
],
248+
"description": "The type of identity that created dedicated hsm resource."
249+
},
250+
"lastModifiedAt": {
251+
"type": "string",
252+
"format": "date-time",
253+
"description": "The timestamp of dedicated hsm resource last modification (UTC)."
254+
},
255+
"lastModifiedBy": {
256+
"type": "string",
257+
"description": "The identity that last modified dedicated hsm resource."
258+
},
259+
"lastModifiedByType": {
260+
"oneOf": [
261+
{
262+
"type": "string",
263+
"enum": [
264+
"User",
265+
"Application",
266+
"ManagedIdentity",
267+
"Key"
268+
]
269+
},
270+
{
271+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
272+
}
273+
],
274+
"description": "The type of identity that last modified dedicated hsm resource."
275+
}
276+
},
277+
"description": "Metadata pertaining to creation and last modification of dedicated hsm resource."
278+
}
279+
}
280+
}

schemas/common/autogeneratedResources.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8296,6 +8296,9 @@
82968296
{
82978297
"$ref": "https://schema.management.azure.com/schemas/2018-10-31-preview/Microsoft.HardwareSecurityModules.json#/resourceDefinitions/dedicatedHSMs"
82988298
},
8299+
{
8300+
"$ref": "https://schema.management.azure.com/schemas/2021-11-30/Microsoft.HardwareSecurityModules.json#/resourceDefinitions/dedicatedHSMs"
8301+
},
82998302
{
83008303
"$ref": "https://schema.management.azure.com/schemas/2015-03-01-preview/Microsoft.HDInsight.json#/resourceDefinitions/clusters"
83018304
},

0 commit comments

Comments
 (0)