Skip to content

Commit 0fb47c3

Browse files
ShantingLiuJenny Liu
andauthored
[Safeguards][2025-07-01] Add 2025-07-01 to DeploymentSafeguards API (#36498)
* Add 2025-07-01 to DeploymentSafeguards api * Run prettier * run npx tsv specification/containerservice/DeploymentSafeguards.Management * prettier * run npx tsv specification/containerservice/DeploymentSafeguards.Management * update READMEs * Update README --------- Co-authored-by: Jenny Liu <[email protected]>
1 parent b8fbdcc commit 0fb47c3

File tree

14 files changed

+898
-1
lines changed

14 files changed

+898
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"operationId": "DeploymentSafeguards_Create",
3+
"title": "Creates a DeploymentSafeguards resource with a long running operation.",
4+
"parameters": {
5+
"api-version": "2025-07-01",
6+
"resourceUri": "subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1",
7+
"resource": {
8+
"properties": {
9+
"level": "Warn",
10+
"podSecurityStandardsLevel": "Baseline"
11+
}
12+
}
13+
},
14+
"responses": {
15+
"201": {
16+
"headers": {
17+
"ETag": "23ujdflewrj3=",
18+
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-02-01",
19+
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01"
20+
},
21+
"body": {
22+
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/providers/Microsoft.ContainerService/deploymentSafeguards/default",
23+
"name": "default",
24+
"type": "Microsoft.ContainerService/deploymentSafeguards",
25+
"systemData": {
26+
"createdBy": "someUser",
27+
"createdByType": "User",
28+
"createdAt": "2022-03-23T05:40:40.657Z",
29+
"lastModifiedBy": "someOtherUser",
30+
"lastModifiedByType": "User",
31+
"lastModifiedAt": "2022-03-23T05:40:40.657Z"
32+
},
33+
"eTag": "23ujdflewrj3=",
34+
"properties": {
35+
"level": "Warn",
36+
"systemExcludedNamespaces": [
37+
"kube-system",
38+
"gatekeeper-system"
39+
],
40+
"podSecurityStandardsLevel": "Baseline",
41+
"provisioningState": "Succeeded"
42+
}
43+
}
44+
},
45+
"200": {
46+
"headers": {
47+
"ETag": "23ujdflewrj3=",
48+
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-02-01",
49+
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01"
50+
},
51+
"body": {
52+
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/providers/Microsoft.ContainerService/deploymentSafeguards/default",
53+
"name": "default",
54+
"type": "Microsoft.ContainerService/deploymentSafeguards",
55+
"systemData": {
56+
"createdBy": "someUser",
57+
"createdByType": "User",
58+
"createdAt": "2022-03-23T05:40:40.657Z",
59+
"lastModifiedBy": "someOtherUser",
60+
"lastModifiedByType": "User",
61+
"lastModifiedAt": "2022-03-23T05:40:40.657Z"
62+
},
63+
"eTag": "23ujdflewrj3=",
64+
"properties": {
65+
"level": "Warn",
66+
"systemExcludedNamespaces": [
67+
"kube-system",
68+
"gatekeeper-system"
69+
],
70+
"podSecurityStandardsLevel": "Baseline",
71+
"provisioningState": "Succeeded"
72+
}
73+
}
74+
}
75+
}
76+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"operationId": "DeploymentSafeguards_Delete",
3+
"title": "Deletes a DeploymentSafeguard resource asynchronously with a long running operation.",
4+
"parameters": {
5+
"api-version": "2025-07-01",
6+
"resourceUri": "subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1"
7+
},
8+
"responses": {
9+
"202": {
10+
"headers": {
11+
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-02-01",
12+
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01"
13+
}
14+
},
15+
"204": {}
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"operationId": "DeploymentSafeguards_Get",
3+
"title": "Gets a DeploymentSafeguard resource.",
4+
"parameters": {
5+
"api-version": "2025-07-01",
6+
"resourceUri": "subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {
11+
"ETag": "kd30rkdfo49="
12+
},
13+
"body": {
14+
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/providers/Microsoft.ContainerService/deploymentSafeguards/default",
15+
"name": "default",
16+
"type": "Microsoft.ContainerService/deploymentSafeguards",
17+
"systemData": {
18+
"createdBy": "someUser",
19+
"createdByType": "User",
20+
"createdAt": "2022-03-23T05:40:40.657Z",
21+
"lastModifiedBy": "someOtherUser",
22+
"lastModifiedByType": "User",
23+
"lastModifiedAt": "2022-03-23T05:40:40.657Z"
24+
},
25+
"eTag": "23ujdflewrj3=",
26+
"properties": {
27+
"level": "Warn",
28+
"systemExcludedNamespaces": [
29+
"kube-system",
30+
"gatekeeper-system"
31+
],
32+
"podSecurityStandardsLevel": "Baseline",
33+
"provisioningState": "Succeeded"
34+
}
35+
}
36+
}
37+
}
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"operationId": "DeploymentSafeguards_List",
3+
"title": "Lists DeploymentSafeguards by parent resource.",
4+
"parameters": {
5+
"api-version": "2025-07-01",
6+
"resourceUri": "subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {
11+
"ETag": "kd30rkdfo49="
12+
},
13+
"body": {
14+
"value": [
15+
{
16+
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/providers/Microsoft.ContainerService/deploymentSafeguards/default",
17+
"name": "default",
18+
"type": "Microsoft.ContainerService/deploymentSafeguards",
19+
"systemData": {
20+
"createdBy": "someUser",
21+
"createdByType": "User",
22+
"createdAt": "2022-03-23T05:40:40.657Z",
23+
"lastModifiedBy": "someOtherUser",
24+
"lastModifiedByType": "User",
25+
"lastModifiedAt": "2022-03-23T05:40:40.657Z"
26+
},
27+
"eTag": "23ujdflewrj3=",
28+
"properties": {
29+
"level": "Warn",
30+
"systemExcludedNamespaces": [
31+
"kube-system",
32+
"gatekeeper-system"
33+
],
34+
"podSecurityStandardsLevel": "Baseline",
35+
"provisioningState": "Succeeded"
36+
}
37+
}
38+
]
39+
}
40+
}
41+
}
42+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"operationId": "Operations_List",
3+
"title": "List the operations for the provider.",
4+
"parameters": {
5+
"api-version": "2025-07-01"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"display": {
13+
"description": "Gets the status of an asynchronous operation",
14+
"operation": "Get Operation",
15+
"provider": "Microsoft Container Service",
16+
"resource": "Operation"
17+
},
18+
"name": "Microsoft.ContainerService/locations/operations/read",
19+
"origin": "user,system"
20+
}
21+
]
22+
}
23+
}
24+
}
25+
}

specification/containerservice/DeploymentSafeguards.Management/main.tsp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,11 @@ enum Versions {
3838
@useDependency(Azure.Core.Versions.v1_0_Preview_2)
3939
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v6)
4040
v2025_05_02_preview: "2025-05-02-preview",
41+
42+
/** 2025-07-01 version */
43+
@doc("Deployment Safeguards api version 2025-07-01")
44+
@useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1)
45+
@useDependency(Azure.Core.Versions.v1_0_Preview_2)
46+
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v6)
47+
v2025_07_01: "2025-07-01",
4148
}

specification/containerservice/resource-manager/Microsoft.ContainerService/deploymentsafeguards/readme.java.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ batch:
2121
- tag: package-2025-04-02-preview
2222
- tag: package-2025-04-01
2323
- tag: package-2025-05-02-preview
24+
- tag: package-2025-07-01
2425
```
2526
2627
### Tag: package-2025-04-02-preview and java
@@ -61,3 +62,16 @@ java:
6162
regenerate-manager: true
6263
generate-interface: true
6364
```
65+
66+
### Tag: package-2025-07-01 and java
67+
68+
These settings apply only when `--tag=package-2025-07-01` is specified on the command line.
69+
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-sdk-for-java clone>`.
70+
71+
``` yaml $(tag) == 'package-2025-07-01' && $(java) && $(multiapi)
72+
java:
73+
namespace: com.microsoft.azure.management.containerservicesafeguards.v2025_07_01
74+
output-folder: $(azure-libraries-for-java-folder)/sdk/containerservicesafeguards/mgmt-v2025_07_01
75+
regenerate-manager: true
76+
generate-interface: true
77+
```

specification/containerservice/resource-manager/Microsoft.ContainerService/deploymentsafeguards/readme.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ These are the global settings for the ContainerServices API.
2828

2929
``` yaml
3030
openapi-type: arm
31-
tag: package-2025-04-01
31+
tag: package-2025-07-01
3232
```
3333
3434
### Tag: package-2025-04-01
@@ -58,6 +58,15 @@ input-file:
5858
- preview/2025-05-02-preview/deploymentsafeguards.json
5959
```
6060

61+
### Tag: package-2025-07-01
62+
63+
These settings apply only when `--tag=package-2025-07-01` is specified on the command line.
64+
65+
```yaml $(tag) == 'package-2025-07-01'
66+
input-file:
67+
- stable/2025-07-01/deploymentsafeguards.json
68+
```
69+
6170
# Code Generation
6271

6372
## Swagger to SDK

0 commit comments

Comments
 (0)