Skip to content

Commit

Permalink
[Hub Generated] Publish private branch 'oravital-update--dev-security…
Browse files Browse the repository at this point in the history
…-Microsoft.Security-2022-01-01-preview' (#22288)

* Update governance operation result

* Fix Model Validation

* Fix comment

* Fix comment

* More readable docs

* Minor

* Fix description
  • Loading branch information
oravital7 authored Jan 24, 2023
1 parent 42e62be commit 9eb9c45
Show file tree
Hide file tree
Showing 20 changed files with 93 additions and 618 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8"
},
"responses": {
"200": {},
"202": {
"headers": {
"location": "https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/governanceRules/ad9a8e26-29d9-4829-bb30-e597a58cdbb8/operationResults/58b33f4f-c8c7-4b01-99cc-d437db4d40dd?api-version=2022-01-01-preview"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"managementGroupId": "contoso",
"scope": "providers/Microsoft.Management/managementGroups/contoso",
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8"
},
"responses": {
"200": {},
"202": {
"headers": {
"location": "https://management.azure.com/providers/Microsoft.Management/managementGroups/contoso/providers/Microsoft.Security/governanceRules/ad9a8e26-29d9-4829-bb30-e597a58cdbb8/operationResults/58b33f4f-c8c7-4b01-99cc-d437db4d40dd?api-version=2022-01-01-preview"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"resourceGroupName": "gcpResourceGroup",
"securityConnectorName": "gcpconnector",
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
"operationId": "58b33f4f-c8c7-4b01-99cc-d437db4d40dd"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"managementGroupId": "contoso",
"scope": "providers/Microsoft.Management/managementGroups/contoso",
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
"operationId": "58b33f4f-c8c7-4b01-99cc-d437db4d40dd"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"managementGroupId": "contoso",
"scope": "providers/Microsoft.Management/managementGroups/contoso",
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"resourceGroupName": "gcpResourceGroup",
"securityConnectorName": "gcpconnector",
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
"operationId": "58b33f4f-c8c7-4b01-99cc-d437db4d40dd"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"resourceGroupName": "gcpResourceGroup",
"securityConnectorName": "gcpconnector",
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"managementGroupId": "contoso",
"scope": "providers/Microsoft.Management/managementGroups/contoso",
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"resourceGroupName": "gcpResourceGroup",
"securityConnectorName": "gcpconnector"
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23"
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
"ExecuteGovernanceRuleBody": {
"override": false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"managementGroupId": "contoso",
"scope": "providers/Microsoft.Management/managementGroups/contoso",
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
"ExecuteGovernanceRuleBody": {
"override": false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"resourceGroupName": "gcpResourceGroup",
"securityConnectorName": "gcpconnector",
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
"ExecuteGovernanceRuleBody": {
"override": false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
"governanceRule": {
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"managementGroupId": "contoso",
"scope": "providers/Microsoft.Management/managementGroups/contoso",
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
"governanceRule": {
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"resourceGroupName": "gcpResourceGroup",
"securityConnectorName": "gcpconnector",
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector",
"ruleId": "ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
"governanceRule": {
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
"title": "Security Center",
"title": "Microsoft Defender for Cloud",
"description": "API spec for Microsoft.Security (Microsoft Defender for Cloud) resource provider",
"version": "2022-01-01-preview"
},
Expand Down Expand Up @@ -51,7 +51,7 @@
"$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
},
{
"$ref": "../../../common/v1/types.json#/parameters/Scope"
"$ref": "#/parameters/Scope"
},
{
"$ref": "#/parameters/AssessmentName"
Expand Down Expand Up @@ -93,7 +93,7 @@
"$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
},
{
"$ref": "../../../common/v1/types.json#/parameters/Scope"
"$ref": "#/parameters/Scope"
},
{
"$ref": "#/parameters/AssessmentName"
Expand Down Expand Up @@ -133,7 +133,7 @@
"$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
},
{
"$ref": "../../../common/v1/types.json#/parameters/Scope"
"$ref": "#/parameters/Scope"
},
{
"$ref": "#/parameters/AssessmentName"
Expand Down Expand Up @@ -182,7 +182,7 @@
"$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
},
{
"$ref": "../../../common/v1/types.json#/parameters/Scope"
"$ref": "#/parameters/Scope"
},
{
"$ref": "#/parameters/AssessmentName"
Expand Down Expand Up @@ -356,6 +356,14 @@
},
"description": "Governance assignment over a subscription scope",
"x-ms-parameter-location": "method"
},
"Scope": {
"name": "scope",
"in": "path",
"required": true,
"type": "string",
"description": "The scope of the Governance assignments. Valid scopes are: subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'",
"x-ms-parameter-location": "method"
}
}
}
Loading

0 comments on commit 9eb9c45

Please sign in to comment.