Skip to content

Commit 463d631

Browse files
[Hub Generated] Review request for Microsoft.Security to add version preview/2021-07-01-preview (#15212)
* Adds base for updating Microsoft.Security from version preview/2021-05-01-preview to version 2021-07-01-preview * Updates readme * Updates API version in new specs and examples * Create Multi cloud API * Minor typo fix * Schema change (offering type) * Change array to object in the examples * Rename to Security Connector * Fix files name errors * Remove softwareInventories (auto generated) * Update examples and naming * Update the enum type to string * Adds suppression to readme * Rever the readme.md basic information * Fix SecurityConnetor defenition link * Policy description update * Prettier file * Rename the minitor offering type * Fix typo in the put example * Fix conflict * Add CSPM as custom word * prettier files * Fix lint error - adding 200OK for delete * Update readme.md Add JAVA to swagger-to-sdk * Update the preview tag location * Rename the resource to SecurityConnectors Co-authored-by: Sapir Elmakayes <[email protected]>
1 parent 4272591 commit 463d631

File tree

8 files changed

+622
-2
lines changed

8 files changed

+622
-2
lines changed

custom-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2258,3 +2258,4 @@ XLSM
22582258
DOCM
22592259
multislot
22602260
Tebibytes
2261+
CSPM
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-07-01-preview",
4+
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
5+
"resourceGroupName": "myRg",
6+
"securityConnectorName": "mySecurityConnectorName"
7+
},
8+
"responses": {
9+
"200": {},
10+
"204": {}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-07-01-preview",
4+
"subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5",
5+
"resourceGroupName": "exampleResourceGroup",
6+
"securityConnectorName": "exampleSecurityConnectorName"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorName",
12+
"name": "exampleSecurityConnectorName",
13+
"type": "Microsoft.Security/securityConnectors",
14+
"etag": "etag value",
15+
"location": "Central US",
16+
"tags": {},
17+
"properties": {
18+
"hierarchyId": "exampleHierarchyId",
19+
"multiCloudName": "AWS",
20+
"offerings": [
21+
{
22+
"offeringType": "CSPMMonitorAWS",
23+
"description": "Monitor your resources",
24+
"nativeCloudConnection": {
25+
"policies": [
26+
"s3:ListBucket"
27+
],
28+
"cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor"
29+
}
30+
}
31+
]
32+
}
33+
}
34+
}
35+
}
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-07-01-preview",
4+
"subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5",
5+
"resourceGroupName": "exampleResourceGroup"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorName",
13+
"name": "exampleSecurityConnectorName",
14+
"type": "Microsoft.Security/securityConnectors",
15+
"etag": "etag value",
16+
"location": "Central US",
17+
"tags": {},
18+
"properties": {
19+
"hierarchyId": "exampleHierarchyId",
20+
"multiCloudName": "AWS",
21+
"offerings": [
22+
{
23+
"offeringType": "CSPMMonitorAWS",
24+
"description": "Monitor your resources",
25+
"nativeCloudConnection": {
26+
"policies": [
27+
"s3:ListBucket"
28+
],
29+
"cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor"
30+
}
31+
}
32+
]
33+
}
34+
}
35+
]
36+
}
37+
}
38+
}
39+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-07-01-preview",
4+
"subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorName",
12+
"name": "exampleSecurityConnectorName",
13+
"type": "Microsoft.Security/securityConnectors",
14+
"etag": "etag value",
15+
"location": "Central US",
16+
"tags": {},
17+
"properties": {
18+
"hierarchyId": "exampleHierarchyId",
19+
"multiCloudName": "AWS",
20+
"offerings": [
21+
{
22+
"offeringType": "CSPMMonitorAWS",
23+
"description": "Monitor your resources",
24+
"nativeCloudConnection": {
25+
"policies": [
26+
"s3:ListBucket"
27+
],
28+
"cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor"
29+
}
30+
}
31+
]
32+
}
33+
}
34+
]
35+
}
36+
}
37+
}
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-07-01-preview",
4+
"subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5",
5+
"securityConnectorName": "exampleSecurityConnectorName",
6+
"resourceGroupName": "exampleResourceGroup",
7+
"securityConnector": {
8+
"location": "Central US",
9+
"etag": "etag value (must be supplied for update)",
10+
"tags": {},
11+
"properties": {
12+
"hierarchyId": "exampleHierarchyId",
13+
"multiCloudName": "AWS",
14+
"offerings": [
15+
{
16+
"offeringType": "CSPMMonitorAWS",
17+
"nativeCloudConnection": {
18+
"cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor"
19+
}
20+
}
21+
]
22+
}
23+
}
24+
},
25+
"responses": {
26+
"200": {
27+
"body": {
28+
"id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorName",
29+
"name": "exampleSecurityConnectorName",
30+
"type": "Microsoft.Security/securityConnectors",
31+
"location": "Central US",
32+
"etag": "new etag value",
33+
"tags": {},
34+
"properties": {
35+
"hierarchyId": "exampleHierarchyId",
36+
"multiCloudName": "AWS",
37+
"offerings": [
38+
{
39+
"offeringType": "CSPMMonitorAWS",
40+
"description": "Monitor your resources",
41+
"nativeCloudConnection": {
42+
"policies": [
43+
"s3:ListBucket"
44+
],
45+
"cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor"
46+
}
47+
}
48+
]
49+
}
50+
}
51+
},
52+
"201": {
53+
"body": {
54+
"id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorName",
55+
"name": "exampleSecurityConnectorName",
56+
"type": "Microsoft.Security/securityConnectors",
57+
"location": "Central US",
58+
"etag": "new etag value",
59+
"tags": {},
60+
"properties": {
61+
"hierarchyId": "exampleHierarchyId",
62+
"multiCloudName": "AWS",
63+
"offerings": [
64+
{
65+
"offeringType": "CSPMMonitorAWS",
66+
"description": "Monitor your resources",
67+
"nativeCloudConnection": {
68+
"policies": [
69+
"s3:ListBucket"
70+
],
71+
"cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor"
72+
}
73+
}
74+
]
75+
}
76+
}
77+
}
78+
}
79+
}

0 commit comments

Comments
 (0)