Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.Security to add version …
Browse files Browse the repository at this point in the history
…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 <saelmaka@microsoft.com>
  • Loading branch information
SapirElmakayes and SapirElmakayes committed Jul 22, 2021
1 parent 4272591 commit 463d631
Show file tree
Hide file tree
Showing 8 changed files with 622 additions and 2 deletions.
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2258,3 +2258,4 @@ XLSM
DOCM
multislot
Tebibytes
CSPM
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": {}
}
}
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"
}
}
]
}
}
}
}
}
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"
}
}
]
}
}
]
}
}
}
}
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"
}
}
]
}
}
]
}
}
}
}
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"
}
}
]
}
}
}
}
}
Loading

0 comments on commit 463d631

Please sign in to comment.