forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hub Generated] Review request for Microsoft.Security to add version …
…preview/2021-07-01-preview (Azure#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 <saelmaka@microsoft.com>
- Loading branch information
1 parent
4272591
commit 463d631
Showing
8 changed files
with
622 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2258,3 +2258,4 @@ XLSM | |
DOCM | ||
multislot | ||
Tebibytes | ||
CSPM |
12 changes: 12 additions & 0 deletions
12
...eview/2021-07-01-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-07-01-preview", | ||
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", | ||
"resourceGroupName": "myRg", | ||
"securityConnectorName": "mySecurityConnectorName" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...-07-01-preview/examples/SecurityConnectors/GetSecurityConnectorResourceGroup_example.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-07-01-preview", | ||
"subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5", | ||
"resourceGroupName": "exampleResourceGroup", | ||
"securityConnectorName": "exampleSecurityConnectorName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorName", | ||
"name": "exampleSecurityConnectorName", | ||
"type": "Microsoft.Security/securityConnectors", | ||
"etag": "etag value", | ||
"location": "Central US", | ||
"tags": {}, | ||
"properties": { | ||
"hierarchyId": "exampleHierarchyId", | ||
"multiCloudName": "AWS", | ||
"offerings": [ | ||
{ | ||
"offeringType": "CSPMMonitorAWS", | ||
"description": "Monitor your resources", | ||
"nativeCloudConnection": { | ||
"policies": [ | ||
"s3:ListBucket" | ||
], | ||
"cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...07-01-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-07-01-preview", | ||
"subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5", | ||
"resourceGroupName": "exampleResourceGroup" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorName", | ||
"name": "exampleSecurityConnectorName", | ||
"type": "Microsoft.Security/securityConnectors", | ||
"etag": "etag value", | ||
"location": "Central US", | ||
"tags": {}, | ||
"properties": { | ||
"hierarchyId": "exampleHierarchyId", | ||
"multiCloudName": "AWS", | ||
"offerings": [ | ||
{ | ||
"offeringType": "CSPMMonitorAWS", | ||
"description": "Monitor your resources", | ||
"nativeCloudConnection": { | ||
"policies": [ | ||
"s3:ListBucket" | ||
], | ||
"cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...-07-01-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-07-01-preview", | ||
"subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorName", | ||
"name": "exampleSecurityConnectorName", | ||
"type": "Microsoft.Security/securityConnectors", | ||
"etag": "etag value", | ||
"location": "Central US", | ||
"tags": {}, | ||
"properties": { | ||
"hierarchyId": "exampleHierarchyId", | ||
"multiCloudName": "AWS", | ||
"offerings": [ | ||
{ | ||
"offeringType": "CSPMMonitorAWS", | ||
"description": "Monitor your resources", | ||
"nativeCloudConnection": { | ||
"policies": [ | ||
"s3:ListBucket" | ||
], | ||
"cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
79 changes: 79 additions & 0 deletions
79
.../preview/2021-07-01-preview/examples/SecurityConnectors/PutSecurityConnector_example.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-07-01-preview", | ||
"subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5", | ||
"securityConnectorName": "exampleSecurityConnectorName", | ||
"resourceGroupName": "exampleResourceGroup", | ||
"securityConnector": { | ||
"location": "Central US", | ||
"etag": "etag value (must be supplied for update)", | ||
"tags": {}, | ||
"properties": { | ||
"hierarchyId": "exampleHierarchyId", | ||
"multiCloudName": "AWS", | ||
"offerings": [ | ||
{ | ||
"offeringType": "CSPMMonitorAWS", | ||
"nativeCloudConnection": { | ||
"cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorName", | ||
"name": "exampleSecurityConnectorName", | ||
"type": "Microsoft.Security/securityConnectors", | ||
"location": "Central US", | ||
"etag": "new etag value", | ||
"tags": {}, | ||
"properties": { | ||
"hierarchyId": "exampleHierarchyId", | ||
"multiCloudName": "AWS", | ||
"offerings": [ | ||
{ | ||
"offeringType": "CSPMMonitorAWS", | ||
"description": "Monitor your resources", | ||
"nativeCloudConnection": { | ||
"policies": [ | ||
"s3:ListBucket" | ||
], | ||
"cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorName", | ||
"name": "exampleSecurityConnectorName", | ||
"type": "Microsoft.Security/securityConnectors", | ||
"location": "Central US", | ||
"etag": "new etag value", | ||
"tags": {}, | ||
"properties": { | ||
"hierarchyId": "exampleHierarchyId", | ||
"multiCloudName": "AWS", | ||
"offerings": [ | ||
{ | ||
"offeringType": "CSPMMonitorAWS", | ||
"description": "Monitor your resources", | ||
"nativeCloudConnection": { | ||
"policies": [ | ||
"s3:ListBucket" | ||
], | ||
"cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.