Skip to content

Commit 4466c02

Browse files
authored
[Hub Generated] Review request for Microsoft.HardwareSecurityModules to add version preview/2023-12-10-preview (#26326)
* Adds base for updating Microsoft.HardwareSecurityModules from version preview/2022-08-31-preview to version 2023-12-10-preview * Updates readme * Updates API version in new specs and examples * LintDiff validation error updates * semantic validator error * LintDiff error * Avocado and lintdiff validations * test commit * undo last changes * Added restore and status msg properties * LintDiff * remove hardware log from properties - will not be supported in this version * Swagger SemanticValidation error fix * Add Identity to Patch operation body - LintDiff validation error. * updated readme file * updates with team's feedback on model changes * fix backup properties level in patch parameters * SemanticValidation error * error * adding new api to go md * readme tag fix * readme fix * Referencing v3 instead of v5 to check if it solves skd-for-go issue * types version * types * undo change * added lenient-model-deduplication: true to go readme * Backup and restore final updates * Updading examples with new properties * updated v3 to v5 * Update backupProperties and examples * typo * update examples * update restoreProperty parameters name
1 parent 30d711a commit 4466c02

14 files changed

+1723
-9
lines changed

specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/cloudhsm.json

Lines changed: 980 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "rgcloudhsm",
5+
"cloudHsmClusterName": "chsm1",
6+
"api-version": "2023-12-10-preview",
7+
"peConnectionName": "sample-pec",
8+
"properties": {
9+
"properties": {
10+
"privateLinkServiceConnectionState": {
11+
"status": "Approved",
12+
"description": "My name is Joe and I'm approving this."
13+
}
14+
}
15+
}
16+
},
17+
"responses": {
18+
"200": {
19+
"body": {
20+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgcloudhsm/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/chsm1/privateEndpointConnections/sample-pec",
21+
"name": "sample-pec",
22+
"type": "Microsoft.HardwareSecurityModules/cloudHsmClusters/privateEndpointConnections",
23+
"systemData": {
24+
"createdBy": "User1",
25+
"createdByType": "User",
26+
"createdAt": "2020-01-01T12:00:00.0000000Z",
27+
"lastModifiedBy": "User2",
28+
"lastModifiedByType": "User",
29+
"lastModifiedAt": "2020-01-01T12:00:00.0000000Z"
30+
},
31+
"properties": {
32+
"provisioningState": "Succeeded",
33+
"privateEndpoint": {
34+
"id": "/subscriptions/00000000-0000-0000-1234-000000000000/resourceGroups/rgcloudhsm/providers/Microsoft.Network/privateEndpoints/sample-pec"
35+
},
36+
"privateLinkServiceConnectionState": {
37+
"status": "Approved",
38+
"description": "My name is Joe and I'm approving this.",
39+
"actionsRequired": "None"
40+
}
41+
}
42+
}
43+
}
44+
}
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "rgcloudhsm",
5+
"cloudHsmClusterName": "chsm1",
6+
"api-version": "2023-12-10-preview",
7+
"peConnectionName": "sample-pec"
8+
},
9+
"responses": {
10+
"200": {},
11+
"202": {
12+
"headers": {
13+
"location": "https://some.endpoint.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgcloudhsm/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/chsm1/privateEndpointConnections/sample-pec?operationid=25334578"
14+
}
15+
},
16+
"204": {}
17+
}
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "rgcloudhsm",
5+
"cloudHsmClusterName": "chsm1",
6+
"api-version": "2023-12-10-preview",
7+
"peConnectionName": "sample-pec"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgcloudhsm/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/chsm1/privateEndpointConnections/sample-pec",
13+
"name": "sample-pec",
14+
"type": "Microsoft.HardwareSecurityModules/cloudHsmClusters/privateEndpointConnections",
15+
"systemData": {
16+
"createdBy": "User1",
17+
"createdByType": "User",
18+
"createdAt": "2020-01-01T12:00:00.0000000Z",
19+
"lastModifiedBy": "User2",
20+
"lastModifiedByType": "User",
21+
"lastModifiedAt": "2020-01-01T12:00:00.0000000Z"
22+
},
23+
"properties": {
24+
"provisioningState": "Succeeded",
25+
"privateEndpoint": {
26+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-group/providers/Microsoft.Network/privateEndpoints/sample-pec"
27+
},
28+
"privateLinkServiceConnectionState": {
29+
"status": "Approved",
30+
"description": "This was automatically approved by [email protected]",
31+
"actionsRequired": "None"
32+
}
33+
}
34+
}
35+
}
36+
}
37+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "rgcloudhsm",
5+
"cloudHsmClusterName": "chsm1",
6+
"api-version": "2023-12-10-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgcloudhsm/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/chsm1/privateEndpointConnections/sample-pec1",
14+
"name": "chsm1",
15+
"type": "Microsoft.HardwareSecurityModules/cloudHsmClusters/privateEndpointConnections",
16+
"systemData": {
17+
"createdBy": "User1",
18+
"createdByType": "User",
19+
"createdAt": "2020-01-01T12:00:00.0000000Z",
20+
"lastModifiedBy": "User2",
21+
"lastModifiedByType": "User",
22+
"lastModifiedAt": "2020-01-01T12:00:00.0000000Z"
23+
},
24+
"properties": {
25+
"provisioningState": "Succeeded",
26+
"privateEndpoint": {
27+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgcloudhsm/providers/Microsoft.Network/privateEndpoints/sample-pec1"
28+
},
29+
"privateLinkServiceConnectionState": {
30+
"status": "Approved",
31+
"description": "This was automatically approved by [email protected]",
32+
"actionsRequired": "None"
33+
}
34+
}
35+
},
36+
{
37+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgcloudhsm/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/chsm2/privateEndpointConnections/sample-pec2",
38+
"name": "chsm2",
39+
"type": "Microsoft.HardwareSecurityModules/cloudHsmClusters/privateEndpointConnections",
40+
"systemData": {
41+
"createdBy": "User1",
42+
"createdByType": "User",
43+
"createdAt": "2020-01-01T12:00:00.0000000Z",
44+
"lastModifiedBy": "User2",
45+
"lastModifiedByType": "User",
46+
"lastModifiedAt": "2020-01-01T12:00:00.0000000Z"
47+
},
48+
"properties": {
49+
"provisioningState": "Succeeded",
50+
"privateEndpoint": {
51+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgcloudhsm/providers/Microsoft.Network/privateEndpoints/sample-pec2"
52+
},
53+
"privateLinkServiceConnectionState": {
54+
"status": "Approved",
55+
"description": "This was automatically approved by [email protected]",
56+
"actionsRequired": "None"
57+
}
58+
}
59+
}
60+
]
61+
}
62+
}
63+
}
64+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "rgcloudhsm",
5+
"cloudHsmClusterName": "chsm1",
6+
"api-version": "2023-12-10-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgcloudhsm/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/chsm1/privateLinkResources/sample-pls",
14+
"name": "sample-pls",
15+
"type": "Microsoft.HardwareSecurityModules/cloudHsmClusters/privateLinkResources",
16+
"properties": {
17+
"groupId": "cloudHsm",
18+
"requiredMembers": [
19+
"hsm1",
20+
"hsm2",
21+
"hsm3"
22+
],
23+
"requiredZoneNames": [
24+
"privatelink.cloudhsm.azure-int.net"
25+
]
26+
}
27+
}
28+
]
29+
}
30+
}
31+
}
32+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "rgcloudhsm",
5+
"cloudHsmClusterName": "chsm1",
6+
"api-version": "2023-12-10-preview",
7+
"body": {
8+
"location": "eastus2",
9+
"sku": {
10+
"family": "B",
11+
"name": "Standard_B1"
12+
},
13+
"tags": {
14+
"Dept": "hsm",
15+
"Environment": "dogfood"
16+
},
17+
"properties": {
18+
"securityDomain": {
19+
"fipsState": 2
20+
},
21+
"publicNetworkAccess": "Disabled",
22+
"backupProperties": {
23+
"azureStorageResourceUri": "testStorageResourceUri"
24+
}
25+
},
26+
"identity": {
27+
"type": "UserAssigned",
28+
"userAssignedIdentities": {
29+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity-1": {}
30+
}
31+
}
32+
}
33+
},
34+
"responses": {
35+
"200": {
36+
"body": {
37+
"name": "chsm1",
38+
"location": "eastus2",
39+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgcloudhsm/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/chsm1",
40+
"sku": {
41+
"family": "B",
42+
"name": "Standard_B1"
43+
},
44+
"tags": {
45+
"Dept": "hsm",
46+
"Environment": "dogfood"
47+
},
48+
"type": "Microsoft.HardwareSecurityModules/cloudHsmClusters",
49+
"systemData": {
50+
"createdBy": "CHsmUser1",
51+
"createdByType": "User",
52+
"createdAt": "2022-09-12T12:00:00.0000000Z",
53+
"lastModifiedBy": "CHsmUser2",
54+
"lastModifiedByType": "User",
55+
"lastModifiedAt": "2022-09-12T12:00:00.0000000Z"
56+
},
57+
"properties": {
58+
"provisioningState": "Succeeded",
59+
"autoGeneratedDomainNameLabelScope": "TenantReuse",
60+
"securityDomain": {
61+
"fipsState": 2,
62+
"activationStatus": "null"
63+
},
64+
"hsms": null,
65+
"publicNetworkAccess": "Disabled",
66+
"privateEndpointConnections": null,
67+
"backupProperties": {
68+
"azureStorageResourceUri": "testStorageResourceUri",
69+
"lastBackupDateTime": "2023-11-09T12:00:00.0000000Z",
70+
"lastBackupStatus": "Status Of last backup"
71+
},
72+
"statusMessage": "This is a status message"
73+
},
74+
"identity": {
75+
"type": "UserAssigned",
76+
"userAssignedIdentities": {
77+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity-1": {
78+
"principalId": "00000000-0000-0000-0000-000000000000",
79+
"clientId": "00000000-0000-0000-0000-000000000000"
80+
}
81+
}
82+
}
83+
}
84+
},
85+
"201": {
86+
"body": {
87+
"name": "chsm1",
88+
"location": "eastus2",
89+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgcloudhsm/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/chsm1",
90+
"sku": {
91+
"family": "B",
92+
"name": "Standard_B1"
93+
},
94+
"tags": {
95+
"Dept": "hsm",
96+
"Environment": "dogfood"
97+
},
98+
"type": "Microsoft.HardwareSecurityModules/cloudHsmClusters",
99+
"systemData": {
100+
"createdBy": "CHsmUser1",
101+
"createdByType": "User",
102+
"createdAt": "2022-09-12T12:00:00.0000000Z",
103+
"lastModifiedBy": "CHsmUser2",
104+
"lastModifiedByType": "User",
105+
"lastModifiedAt": "2022-09-12T12:00:00.0000000Z"
106+
},
107+
"properties": {
108+
"provisioningState": "Succeeded",
109+
"autoGeneratedDomainNameLabelScope": "TenantReuse",
110+
"securityDomain": {
111+
"fipsState": 2,
112+
"activationStatus": "null"
113+
},
114+
"hsms": null,
115+
"publicNetworkAccess": "Disabled",
116+
"privateEndpointConnections": null,
117+
"backupProperties": {
118+
"azureStorageResourceUri": "testStorageResourceUri",
119+
"lastBackupDateTime": "2023-11-09T12:00:00.0000000Z",
120+
"lastBackupStatus": "Status Of last backup"
121+
}
122+
},
123+
"identity": {
124+
"type": "UserAssigned",
125+
"userAssignedIdentities": {
126+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity-1": {
127+
"principalId": "00000000-0000-0000-0000-000000000000",
128+
"clientId": "00000000-0000-0000-0000-000000000000"
129+
}
130+
}
131+
}
132+
}
133+
}
134+
}
135+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "rgcloudhsm",
5+
"cloudHsmClusterName": "chsm1",
6+
"api-version": "2023-12-10-preview"
7+
},
8+
"responses": {
9+
"200": {},
10+
"202": {
11+
"headers": {
12+
"location": "https://some.endpoint.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgcloudhsm/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/chsm1?api-version=2022-03-31&operation=abJjb2RkIjoiAGVsZXRlTWFuYWdlZEhzbUFzeW5jYm9"
13+
}
14+
},
15+
"204": {}
16+
}
17+
}

0 commit comments

Comments
 (0)