From 6539cdb5f890ea65f21bb891b7db71bbb1c0fd52 Mon Sep 17 00:00:00 2001 From: prashmo Date: Mon, 3 Oct 2022 12:15:15 -0700 Subject: [PATCH 1/2] Publish Microsoft.SecurityDevOps namespace. --- .../AzureDevOpsConnectorCreateOrUpdate.json | 59 + .../examples/AzureDevOpsConnectorDelete.json | 17 + .../examples/AzureDevOpsConnectorGet.json | 23 + ...ureDevOpsConnectorListByResourceGroup.json | 36 + ...zureDevOpsConnectorListBySubscription.json | 35 + .../AzureDevOpsConnectorStatsGet.json | 28 + .../examples/AzureDevOpsConnectorUpdate.json | 46 + .../AzureDevOpsOrgCreateOrUpdate.json | 40 + .../examples/AzureDevOpsOrgGet.json | 22 + .../examples/AzureDevOpsOrgList.json | 31 + .../examples/AzureDevOpsOrgUpdate.json | 29 + .../AzureDevOpsProjectCreateOrUpdate.json | 41 + .../examples/AzureDevOpsProjectGet.json | 23 + .../examples/AzureDevOpsProjectList.json | 32 + .../examples/AzureDevOpsProjectUpdate.json | 30 + .../AzureDevOpsRepoCreateOrUpdate.json | 89 + .../examples/AzureDevOpsRepoGet.json | 23 + .../examples/AzureDevOpsRepoList.json | 33 + .../AzureDevOpsRepoListByConnector.json | 31 + .../examples/AzureDevOpsRepoUpdate.json | 27 + .../GitHubConnectorCreateOrUpdate.json | 44 + .../examples/GitHubConnectorDelete.json | 17 + .../examples/GitHubConnectorGet.json | 23 + .../GitHubConnectorListByResourceGroup.json | 36 + .../GitHubConnectorListBySubscription.json | 35 + .../examples/GitHubConnectorStatsGet.json | 26 + .../examples/GitHubConnectorUpdate.json | 46 + .../examples/GitHubOwnerCreateOrUpdate.json | 38 + .../examples/GitHubOwnerGet.json | 23 + .../examples/GitHubOwnerList.json | 33 + .../examples/GitHubOwnerUpdate.json | 26 + .../examples/GitHubRepoCreateOrUpdate.json | 43 + .../examples/GitHubRepoGet.json | 25 + .../examples/GitHubRepoList.json | 36 + .../examples/GitHubRepoListByConnector.json | 33 + .../examples/GitHubRepoUpdate.json | 29 + .../examples/OperationsList.json | 44 + .../2022-09-01-preview/securitydevops.json | 2692 +++++++++++++++++ .../resource-manager/readme.az.md | 28 + .../resource-manager/readme.cli.md | 1 + .../resource-manager/readme.csharp.md | 15 + .../resource-manager/readme.go.md | 11 + .../securitydevops/resource-manager/readme.md | 95 + .../resource-manager/readme.python.md | 23 + .../resource-manager/readme.typescript.md | 14 + 45 files changed, 4131 insertions(+) create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorCreateOrUpdate.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorDelete.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorGet.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorListByResourceGroup.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorListBySubscription.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorStatsGet.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorUpdate.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsOrgCreateOrUpdate.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsOrgGet.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsOrgList.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsOrgUpdate.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsProjectCreateOrUpdate.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsProjectGet.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsProjectList.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsProjectUpdate.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsRepoCreateOrUpdate.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsRepoGet.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsRepoList.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsRepoListByConnector.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsRepoUpdate.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorCreateOrUpdate.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorDelete.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorGet.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorListByResourceGroup.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorListBySubscription.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorStatsGet.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorUpdate.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubOwnerCreateOrUpdate.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubOwnerGet.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubOwnerList.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubOwnerUpdate.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubRepoCreateOrUpdate.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubRepoGet.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubRepoList.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubRepoListByConnector.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubRepoUpdate.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/OperationsList.json create mode 100644 specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/securitydevops.json create mode 100644 specification/securitydevops/resource-manager/readme.az.md create mode 100644 specification/securitydevops/resource-manager/readme.cli.md create mode 100644 specification/securitydevops/resource-manager/readme.csharp.md create mode 100644 specification/securitydevops/resource-manager/readme.go.md create mode 100644 specification/securitydevops/resource-manager/readme.md create mode 100644 specification/securitydevops/resource-manager/readme.python.md create mode 100644 specification/securitydevops/resource-manager/readme.typescript.md diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorCreateOrUpdate.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorCreateOrUpdate.json new file mode 100644 index 000000000000..4cee5b4394cc --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorCreateOrUpdate.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "azureDevOpsConnectorName": "testconnector", + "api-version": "2022-09-01-preview", + "azureDevOpsConnector": { + "location": "West US", + "properties": { + "authorization": { + "code": "00000000000000000000" + }, + "orgs": [ + { + "name": "testOrg", + "projects": [ + { + "name": "testProject", + "repos": [ + "testRepo" + ] + } + ] + } + ] + } + } + }, + "responses": { + "201": { + "headers": { + "Azure-AsyncOperation": "https://api-prod.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/locations/WESTUS/operationStatuses/7e430d08-0ed2-4566-bcdc-3508e79f51cd*0000000000000000000000000000000000000000000000000000000000000000?api-version=2022-09-01-preview" + }, + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector", + "name": "testconnector", + "type": "microsoft.securitydevops/azureDevOpsConnectors", + "location": "West US", + "tags": {}, + "properties": { + "provisioningState": "Created" + } + } + }, + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector", + "name": "testconnector", + "type": "microsoft.securitydevops/azureDevOpsConnectors", + "location": "West US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorDelete.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorDelete.json new file mode 100644 index 000000000000..a9d42c0a844d --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorDelete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "azureDevOpsConnectorName": "testconnector", + "api-version": "2022-09-01-preview" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://api-prod.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/locations/WESTUS/operationStatuses/7e430d08-0ed2-4566-bcdc-3508e79f51cd*0000000000000000000000000000000000000000000000000000000000000000?api-version=2022-09-01-preview" + } + }, + "204": {}, + "200": {} + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorGet.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorGet.json new file mode 100644 index 000000000000..32936d059612 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorGet.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "azureDevOpsConnectorName": "testconnector", + "api-version": "2022-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector", + "name": "testconnector", + "type": "microsoft.securitydevops/azureDevOpsConnectors", + "location": "West US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorListByResourceGroup.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorListByResourceGroup.json new file mode 100644 index 000000000000..12a1e7bf0d47 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorListByResourceGroup.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "api-version": "2022-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector", + "name": "testconnector1", + "type": "microsoft.securitydevops/azureDevOpsConnectors", + "location": "West US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector", + "name": "testconnector2", + "type": "microsoft.securitydevops/azureDevOpsConnectors", + "location": "West US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorListBySubscription.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorListBySubscription.json new file mode 100644 index 000000000000..3a51f4dd24eb --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorListBySubscription.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "api-version": "2022-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors", + "name": "testconnector1", + "type": "microsoft.securitydevops/azureDevOpsConnectors", + "location": "West US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors", + "name": "testconnector2", + "type": "microsoft.securitydevops/azureDevOpsConnectors", + "location": "West US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorStatsGet.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorStatsGet.json new file mode 100644 index 000000000000..ebba8981d183 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorStatsGet.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "azureDevOpsConnectorName": "testconnector", + "api-version": "2022-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors", + "name": "testconnector", + "type": "microsoft.securitydevops/azureDevOpsConnectors", + "properties": { + "orgsCount": 5, + "projectsCount": 10, + "reposCount": 100, + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorUpdate.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorUpdate.json new file mode 100644 index 000000000000..5fc88106ff1b --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsConnectorUpdate.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "azureDevOpsConnectorName": "testconnector", + "api-version": "2022-09-01-preview", + "azureDevOpsConnector": { + "location": "West US", + "tags": { + "env": "dev", + "client": "dev-client" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors", + "name": "testconnector1", + "type": "microsoft.securitydevops/azureDevOpsConnectors", + "location": "West US", + "properties": { + "provisioningState": "Succeeded" + }, + "tags": { + "Environment": "Dev" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://api-prod.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/locations/WESTUS/operationStatuses/7e430d08-0ed2-4566-bcdc-3508e79f51cd*0000000000000000000000000000000000000000000000000000000000000000?api-version=2022-09-01-preview" + }, + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector", + "name": "testconnector", + "type": "microsoft.securitydevops/azureDevOpsConnectors", + "location": "West US", + "tags": {}, + "properties": { + "provisioningState": "Accepted" + } + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsOrgCreateOrUpdate.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsOrgCreateOrUpdate.json new file mode 100644 index 000000000000..6dfce3c65da6 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsOrgCreateOrUpdate.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "azureDevOpsConnectorName": "testconnector", + "azureDevOpsOrgName": "myOrg", + "api-version": "2022-09-01-preview", + "azureDevOpsOrg": { + "properties": { + "autoDiscovery": "Disabled" + } + } + }, + "responses": { + "201": { + "headers": { + "Azure-AsyncOperation": "https://api-prod.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/locations/WESTUS/operationStatuses/7e430d08-0ed2-4566-bcdc-3508e79f51cd*0000000000000000000000000000000000000000000000000000000000000000?api-version=2022-09-01-preview" + }, + "body": { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg", + "name": "myOrg", + "type": "Microsoft.SecurityDevOps/azureDevOpsConnectos/orgs", + "properties": { + "provisioningState": "Created" + } + } + }, + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg", + "name": "myOrg", + "type": "Microsoft.SecurityDevOps/azureDevOpsConnectos/orgs", + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsOrgGet.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsOrgGet.json new file mode 100644 index 000000000000..ef00460b452e --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsOrgGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "azureDevOpsConnectorName": "testconnector", + "azureDevOpsOrgName": "myOrg", + "api-version": "2022-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg", + "type": "Microsoft.SecurityDevOps/azureDevOpsConnectos/orgs", + "properties": { + "autoDiscovery": "Disabled", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsOrgList.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsOrgList.json new file mode 100644 index 000000000000..2d0be99d3780 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsOrgList.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "azureDevOpsConnectorName": "testconnector", + "api-version": "2022-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg1", + "type": "microsoft.securitydevops/azureDevOpsConnectors/orgs", + "properties": { + "autoDiscovery": "Disabled" + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg2", + "type": "microsoft.securitydevops/azureDevOpsConnectors/orgs", + "properties": { + "autoDiscovery": "Disabled" + } + } + ] + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsOrgUpdate.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsOrgUpdate.json new file mode 100644 index 000000000000..d73f1965eb59 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsOrgUpdate.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "azureDevOpsConnectorName": "testconnector", + "azureDevOpsOrgName": "myOrg", + "api-version": "2022-09-01-preview", + "azureDevOpsOrg": { + "properties": { + "autoDiscovery": "Disabled" + } + } + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://api-prod.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/locations/WESTUS/operationStatuses/7e430d08-0ed2-4566-bcdc-3508e79f51cd*0000000000000000000000000000000000000000000000000000000000000000?api-version=2022-09-01-preview" + }, + "body": { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg", + "name": "myOrg", + "type": "Microsoft.SecurityDevOps/azureDevOpsConnectos/orgs", + "properties": { + "provisioningState": "Accepted" + } + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsProjectCreateOrUpdate.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsProjectCreateOrUpdate.json new file mode 100644 index 000000000000..c6282e786328 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsProjectCreateOrUpdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "azureDevOpsConnectorName": "testconnector", + "azureDevOpsOrgName": "myOrg", + "azureDevOpsProjectName": "myProject", + "api-version": "2022-09-01-preview", + "azureDevOpsProject": { + "properties": { + "autoDiscovery": "Disabled" + } + } + }, + "responses": { + "201": { + "headers": { + "Azure-AsyncOperation": "https://api-prod.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/locations/WESTUS/operationStatuses/7e430d08-0ed2-4566-bcdc-3508e79f51cd*0000000000000000000000000000000000000000000000000000000000000000?api-version=2022-09-01-preview" + }, + "body": { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg/projects/myProject", + "name": "myProject", + "type": "Microsoft.SecurityDevOps/azureDevOpsConnectos/orgs/projects", + "properties": { + "provisioningState": "Created" + } + } + }, + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg/projects/myProject", + "name": "myProject", + "type": "Microsoft.SecurityDevOps/azureDevOpsConnectos/orgs/projects", + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsProjectGet.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsProjectGet.json new file mode 100644 index 000000000000..ee3812fb5f14 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsProjectGet.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "azureDevOpsConnectorName": "testconnector", + "azureDevOpsOrgName": "myOrg", + "azureDevOpsProjectName": "myProject", + "api-version": "2022-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg/projects/myProject", + "type": "Microsoft.SecurityDevOps/azureDevOpsConnectos/orgs/projects", + "properties": { + "autoDiscovery": "Disabled", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsProjectList.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsProjectList.json new file mode 100644 index 000000000000..d00cc58fed77 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsProjectList.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "azureDevOpsConnectorName": "testconnector", + "azureDevOpsOrgName": "myOrg", + "api-version": "2022-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg/projects/myProject", + "type": "microsoft.securitydevops/azureDevOpsConnectors/orgs/projects", + "properties": { + "autoDiscovery": "Disabled" + } + }, + { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg/projects/myProjectNew", + "type": "microsoft.securitydevops/azureDevOpsConnectors/orgs/projects", + "properties": { + "autoDiscovery": "Disabled" + } + } + ] + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsProjectUpdate.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsProjectUpdate.json new file mode 100644 index 000000000000..433f2fc0ae43 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsProjectUpdate.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "azureDevOpsConnectorName": "testconnector", + "azureDevOpsOrgName": "myOrg", + "azureDevOpsProjectName": "myProject", + "api-version": "2022-09-01-preview", + "azureDevOpsProject": { + "properties": { + "autoDiscovery": "Disabled" + } + } + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://api-prod.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/locations/WESTUS/operationStatuses/7e430d08-0ed2-4566-bcdc-3508e79f51cd*0000000000000000000000000000000000000000000000000000000000000000?api-version=2022-09-01-preview" + }, + "body": { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg/projects/myProject", + "name": "myProject", + "type": "Microsoft.SecurityDevOps/azureDevOpsConnectos/orgs/projects", + "properties": { + "provisioningState": "Accepted" + } + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsRepoCreateOrUpdate.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsRepoCreateOrUpdate.json new file mode 100644 index 000000000000..10be217c4e51 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsRepoCreateOrUpdate.json @@ -0,0 +1,89 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "azureDevOpsConnectorName": "testconnector", + "azureDevOpsOrgName": "myOrg", + "azureDevOpsProjectName": "myProject", + "azureDevOpsRepoName": "myRepo", + "api-version": "2022-09-01-preview", + "azureDevOpsRepo": { + "properties": { + "actionableRemediation": { + "state": "Enabled", + "categories": [ + "Secrets" + ], + "severityLevels": [ + "High" + ], + "branchConfiguration": { + "names": [ + "main" + ] + } + }, + "repoId": "00000000-0000-0000-0000-000000000000", + "repoUrl": "https://dev.azure.com/myOrg/myProject/_git/myRepo" + } + } + }, + "responses": { + "201": { + "headers": { + "Azure-AsyncOperation": "https://api-prod.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/locations/WESTUS/operationStatuses/7e430d08-0ed2-4566-bcdc-3508e79f51cd*0000000000000000000000000000000000000000000000000000000000000000?api-version=2022-09-01-preview" + }, + "body": { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg/projects/myProject/repos/myRepo", + "name": "myRepo", + "type": "Microsoft.SecurityDevOps/azureDevOpsConnectos/orgs/projects/repos", + "properties": { + "actionableRemediation": { + "state": "Enabled", + "categories": [ + "Secrets" + ], + "severityLevels": [ + "High" + ], + "branchConfiguration": { + "names": [ + "main" + ] + } + }, + "repoId": "00000000-0000-0000-0000-000000000000", + "repoUrl": "https://dev.azure.com/myOrg/myProject/_git/myRepo", + "provisioningState": "Created" + } + } + }, + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg/projects/myProject/repos/myRepo", + "name": "myRepo", + "type": "Microsoft.SecurityDevOps/azureDevOpsConnectos/orgs/projects/repos", + "properties": { + "actionableRemediation": { + "state": "Enabled", + "categories": [ + "Secrets" + ], + "severityLevels": [ + "High" + ], + "branchConfiguration": { + "names": [ + "main" + ] + } + }, + "repoId": "00000000-0000-0000-0000-000000000000", + "repoUrl": "https://dev.azure.com/myOrg/myProject/_git/myRepo", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsRepoGet.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsRepoGet.json new file mode 100644 index 000000000000..a2f507854510 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsRepoGet.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "azureDevOpsConnectorName": "testconnector", + "azureDevOpsOrgName": "myOrg", + "azureDevOpsProjectName": "myProject", + "azureDevOpsRepoName": "myRepo", + "api-version": "2022-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg/projects/myProject/repos/myRepo", + "type": "Microsoft.SecurityDevOps/azureDevOpsConnectos/orgs/projects/repos", + "properties": { + "repoUrl": "https://dev.azure.com/myOrg/myProject/myRepo" + } + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsRepoList.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsRepoList.json new file mode 100644 index 000000000000..a12b78a63502 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsRepoList.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "azureDevOpsConnectorName": "testconnector", + "azureDevOpsOrgName": "myOrg", + "azureDevOpsProjectName": "myProject", + "api-version": "2022-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg1/projects/myProject/repos/myRepo", + "type": "microsoft.securitydevops/azureDevOpsConnectors/githubrepo", + "properties": { + "repoUrl": "https://dev.azure.com/myOrg/myProject/myRepo" + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg2/projects/myProject/repos/myRepo", + "type": "microsoft.securitydevops/azureDevOpsConnectors/githubrepo", + "properties": { + "repoUrl": "https://dev.azure.com/myOrg2/myProject/myRepo" + } + } + ] + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsRepoListByConnector.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsRepoListByConnector.json new file mode 100644 index 000000000000..dfcf99ebd6be --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsRepoListByConnector.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "azureDevOpsConnectorName": "testconnector", + "api-version": "2022-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg1/projects/myProject/repos/myRepo", + "type": "microsoft.securitydevops/azureDevOpsConnectors/githubrepo", + "properties": { + "repoUrl": "https://dev.azure.com/myOrg/myProject/myRepo" + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg2/projects/myProject/repos/myRepo", + "type": "microsoft.securitydevops/azureDevOpsConnectors/githubrepo", + "properties": { + "repoUrl": "https://dev.azure.com/myOrg2/myProject/myRepo" + } + } + ] + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsRepoUpdate.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsRepoUpdate.json new file mode 100644 index 000000000000..051261191e29 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/AzureDevOpsRepoUpdate.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "azureDevOpsConnectorName": "testconnector", + "azureDevOpsOrgName": "myOrg", + "azureDevOpsProjectName": "myProject", + "azureDevOpsRepoName": "myRepo", + "api-version": "2022-09-01-preview", + "azureDevOpsRepo": {} + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://api-prod.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/locations/WESTUS/operationStatuses/7e430d08-0ed2-4566-bcdc-3508e79f51cd*0000000000000000000000000000000000000000000000000000000000000000?api-version=2022-09-01-preview" + }, + "body": { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector/orgs/myOrg/projects/myProject/repos/myRepo", + "name": "myRepo", + "type": "Microsoft.SecurityDevOps/azureDevOpsConnectos/orgs/projects/repos", + "properties": { + "provisioningState": "Accepted" + } + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorCreateOrUpdate.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorCreateOrUpdate.json new file mode 100644 index 000000000000..b56fba61636b --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorCreateOrUpdate.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "gitHubConnectorName": "testconnector", + "api-version": "2022-09-01-preview", + "gitHubConnector": { + "location": "West US", + "properties": { + "code": "00000000000000000000" + } + } + }, + "responses": { + "201": { + "headers": { + "Azure-AsyncOperation": "https://api-prod.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/locations/WESTUS/operationStatuses/7e430d08-0ed2-4566-bcdc-3508e79f51cd*0000000000000000000000000000000000000000000000000000000000000000?api-version=2022-09-01-preview" + }, + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/gitHubConnectors/testconnector", + "name": "testconnector", + "type": "microsoft.securitydevops/githubconnectors", + "location": "West US", + "tags": {}, + "properties": { + "provisioningState": "Accepted" + } + } + }, + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/gitHubConnectors/testconnector", + "name": "testconnector", + "type": "microsoft.securitydevops/githubconnectors", + "location": "West US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorDelete.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorDelete.json new file mode 100644 index 000000000000..f8cb6461b949 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorDelete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "gitHubConnectorName": "testconnector", + "api-version": "2022-09-01-preview" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://api-prod.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/locations/WESTUS/operationStatuses/7e430d08-0ed2-4566-bcdc-3508e79f51cd*0000000000000000000000000000000000000000000000000000000000000000?api-version=2022-09-01-preview" + } + }, + "204": {}, + "200": {} + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorGet.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorGet.json new file mode 100644 index 000000000000..9c4cbcf802b6 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorGet.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "gitHubConnectorName": "testconnector", + "api-version": "2022-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/gitHubConnectors/testconnector", + "name": "testconnector", + "type": "microsoft.securitydevops/githubconnectors", + "location": "West US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorListByResourceGroup.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorListByResourceGroup.json new file mode 100644 index 000000000000..721240fcc893 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorListByResourceGroup.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "api-version": "2022-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/gitHubConnectors/testconnector", + "name": "testconnector1", + "type": "microsoft.securitydevops/githubconnectors", + "location": "West US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/gitHubConnectors/testconnector", + "name": "testconnector2", + "type": "microsoft.securitydevops/githubconnectors", + "location": "West US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorListBySubscription.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorListBySubscription.json new file mode 100644 index 000000000000..38bca2e49104 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorListBySubscription.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "api-version": "2022-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/gitHubConnectors", + "name": "testconnector1", + "type": "microsoft.securitydevops/githubconnectors", + "location": "West US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/gitHubConnectors", + "name": "testconnector2", + "type": "microsoft.securitydevops/githubconnectors", + "location": "West US", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorStatsGet.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorStatsGet.json new file mode 100644 index 000000000000..eb8cd1fa99f8 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorStatsGet.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "gitHubConnectorName": "testconnector", + "api-version": "2022-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/gitHubConnectors", + "name": "testconnector1", + "type": "microsoft.securitydevops/githubconnectors", + "properties": { + "reposCount": 100, + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorUpdate.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorUpdate.json new file mode 100644 index 000000000000..5c39b325abf3 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubConnectorUpdate.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "gitHubConnectorName": "testconnector", + "api-version": "2022-09-01-preview", + "gitHubConnector": { + "location": "West US", + "tags": { + "env": "dev", + "client": "dev-client" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/gitHubConnectors", + "name": "testconnector1", + "type": "microsoft.securitydevops/githubconnectors", + "location": "West US", + "properties": { + "provisioningState": "Succeeded" + }, + "tags": { + "Environment": "Dev" + } + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://api-prod.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/locations/WESTUS/operationStatuses/7e430d08-0ed2-4566-bcdc-3508e79f51cd*0000000000000000000000000000000000000000000000000000000000000000?api-version=2022-09-01-preview" + }, + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/gitHubConnectors/testconnector", + "name": "testconnector", + "type": "microsoft.securitydevops/githubconnectors", + "location": "West US", + "tags": {}, + "properties": { + "provisioningState": "Accepted" + } + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubOwnerCreateOrUpdate.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubOwnerCreateOrUpdate.json new file mode 100644 index 000000000000..510666216a21 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubOwnerCreateOrUpdate.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "gitHubConnectorName": "testconnector", + "gitHubOwnerName": "Azure", + "api-version": "2022-09-01-preview", + "gitHubOwner": {} + }, + "responses": { + "201": { + "headers": { + "Azure-AsyncOperation": "https://api-prod.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/locations/WESTUS/operationStatuses/7e430d08-0ed2-4566-bcdc-3508e79f51cd*0000000000000000000000000000000000000000000000000000000000000000?api-version=2022-09-01-preview" + }, + "body": { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/gitHubConnectors/testconnector/owners/Azure", + "name": "Azure", + "type": "Microsoft.SecurityDevOps/owners", + "properties": { + "ownerUrl": "https://github.com/Azure", + "provisioningState": "Created" + } + } + }, + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/gitHubConnectors/testconnector/owners/Azure", + "name": "Azure", + "type": "Microsoft.SecurityDevOps/owners", + "properties": { + "ownerUrl": "https://github.com/Azure", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubOwnerGet.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubOwnerGet.json new file mode 100644 index 000000000000..9b5cf0e85ba7 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubOwnerGet.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "gitHubConnectorName": "testconnector", + "gitHubOwnerName": "Azure", + "api-version": "2022-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/gitHubConnectors/testconnector/owners/Azure", + "name": "Azure", + "type": "Microsoft.SecurityDevOps/owners/repos", + "properties": { + "ownerUrl": "https://github.com/Azure", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubOwnerList.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubOwnerList.json new file mode 100644 index 000000000000..64430cc91c2a --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubOwnerList.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "gitHubConnectorName": "testconnector", + "api-version": "2022-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/gitHubConnectors/testconnector/owners/Azure", + "name": "Azure", + "type": "microsoft.securitydevops/githubconnectors/owners", + "properties": { + "ownerUrl": "https://github.com/Azure" + } + }, + { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/gitHubConnectors/testconnector/owners/Azure-Samples", + "name": "Azure-Samples", + "type": "microsoft.securitydevops/githubconnectors/owners", + "properties": { + "ownerUrl": "https://github.com/Azure-Samples" + } + } + ] + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubOwnerUpdate.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubOwnerUpdate.json new file mode 100644 index 000000000000..2fab06454d49 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubOwnerUpdate.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "gitHubConnectorName": "testconnector", + "gitHubOwnerName": "Azure", + "api-version": "2022-09-01-preview", + "gitHubOwner": {} + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://api-prod.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/locations/WESTUS/operationStatuses/7e430d08-0ed2-4566-bcdc-3508e79f51cd*0000000000000000000000000000000000000000000000000000000000000000?api-version=2022-09-01-preview" + }, + "body": { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/gitHubConnectors/testconnector/owners/Azure", + "name": "Azure", + "type": "Microsoft.SecurityDevOps/owners", + "properties": { + "ownerUrl": "https://github.com/Azure", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubRepoCreateOrUpdate.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubRepoCreateOrUpdate.json new file mode 100644 index 000000000000..18680c0c168b --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubRepoCreateOrUpdate.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "gitHubConnectorName": "testconnector", + "gitHubOwnerName": "Azure", + "gitHubRepoName": "azure-rest-api-specs", + "api-version": "2022-09-01-preview", + "gitHubRepo": {} + }, + "responses": { + "201": { + "headers": { + "Azure-AsyncOperation": "https://api-prod.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/locations/WESTUS/operationStatuses/7e430d08-0ed2-4566-bcdc-3508e79f51cd*0000000000000000000000000000000000000000000000000000000000000000?api-version=2022-09-01-preview" + }, + "body": { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/gitHubConnectors/testconnector/owners/myOrg/repos/azure-rest-api-specs", + "name": "azure-rest-api-specs", + "type": "Microsoft.SecurityDevOps/owners/repos", + "properties": { + "accountId": 6844498, + "repoUrl": "https://github.com/Azure/azure-rest-api-specs", + "ownerName": "Azure", + "provisioningState": "Created" + } + } + }, + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/gitHubConnectors/testconnector/owners/myOrg/repos/azure-rest-api-specs", + "name": "azure-rest-api-specs", + "type": "Microsoft.SecurityDevOps/owners/repos", + "properties": { + "accountId": 6844498, + "repoUrl": "https://github.com/Azure/azure-rest-api-specs", + "ownerName": "Azure", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubRepoGet.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubRepoGet.json new file mode 100644 index 000000000000..fe0e6a24f674 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubRepoGet.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "gitHubConnectorName": "testconnector", + "gitHubOwnerName": "Azure", + "gitHubRepoName": "39093389", + "api-version": "2022-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/gitHubConnectors/testconnector/owners/Azure/repos/azure-rest-api-specs", + "name": "azure-rest-api-specs", + "type": "Microsoft.SecurityDevOps/owners/repos", + "properties": { + "accountId": 6844498, + "repoUrl": "https://github.com/Azure/azure-rest-api-specs", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubRepoList.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubRepoList.json new file mode 100644 index 000000000000..ca6cb29404b3 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubRepoList.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "gitHubConnectorName": "testconnector", + "gitHubOwnerName": "Azure", + "api-version": "2022-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/gitHubConnectors/testconnector/owners/Azure/repos/azure-rest-api-specs", + "name": "azure-rest-api-specs", + "type": "microsoft.securitydevops/githubconnectors/owners/repos", + "properties": { + "accountId": 6844498, + "repoUrl": "https://github.com/Azure/azure-rest-api-specs" + } + }, + { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/gitHubConnectors/testconnector/owners/Azure/repos/another-repo", + "name": "azure-rest-api-specs", + "type": "microsoft.securitydevops/githubconnectors/owners/repos", + "properties": { + "accountId": 6844499, + "repoUrl": "https://github.com/Azure/another-repo" + } + } + ] + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubRepoListByConnector.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubRepoListByConnector.json new file mode 100644 index 000000000000..76adf0589d14 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubRepoListByConnector.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "gitHubConnectorName": "testconnector", + "api-version": "2022-09-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/gitHubConnectors/testconnector/owners/Azure/repos/azure-rest-api-specs", + "type": "microsoft.securitydevops/githubconnectors/owners/repos", + "properties": { + "accountId": 6844498, + "repoUrl": "https://github.com/Azure/azure-rest-api-specs" + } + }, + { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/gitHubConnectors/testconnector/owners/Azure-Samples/repos/another-repo", + "type": "microsoft.securitydevops/githubconnectors/owners/repos", + "properties": { + "accountId": 6844499, + "repoUrl": "https://github.com/Azure-Samples/another-repo" + } + } + ] + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubRepoUpdate.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubRepoUpdate.json new file mode 100644 index 000000000000..a95f6cbeacf3 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/GitHubRepoUpdate.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "westusrg", + "gitHubConnectorName": "testconnector", + "gitHubOwnerName": "Azure", + "gitHubRepoName": "azure-rest-api-specs", + "api-version": "2022-09-01-preview", + "gitHubRepo": {} + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://api-prod.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityDevOps/locations/WESTUS/operationStatuses/7e430d08-0ed2-4566-bcdc-3508e79f51cd*0000000000000000000000000000000000000000000000000000000000000000?api-version=2022-09-01-preview" + }, + "body": { + "id": "/subscriptions/e7032cc6-7422-4ddd-9022-bfbf23b05332/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/gitHubConnectors/testconnector/owners/Azure/repos/azure-rest-api-specs", + "name": "azure-rest-api-specs", + "type": "Microsoft.SecurityDevOps/owners/repos", + "properties": { + "accountId": 6844498, + "ownerName": "Azure", + "repoUrl": "https://github.com/Azure/azure-rest-api-specs", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/OperationsList.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/OperationsList.json new file mode 100644 index 000000000000..36f0fef0ce79 --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/examples/OperationsList.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2022-09-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.SecurityDevOps/gitHubConnectors/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.SecurityDevOps", + "resource": "gitHubConnectors", + "operation": "Get/List gitHubConnector resources", + "description": "Read gitHubConnector" + } + }, + { + "name": "Microsoft.SecurityDevOps/gitHubConnectors/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.SecurityDevOps", + "resource": "gitHubConnectors", + "operation": "Create/Update gitHubConnector resources", + "description": "Write gitHubConnector" + } + }, + { + "name": "Microsoft.SecurityDevOps/gitHubConnectors/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.SecurityDevOps", + "resource": "gitHubConnectors", + "operation": "Delete gitHubConnector resources", + "description": "Delete gitHubConnector" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/securitydevops.json b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/securitydevops.json new file mode 100644 index 000000000000..bf5bd315e38b --- /dev/null +++ b/specification/securitydevops/resource-manager/Microsoft.SecurityDevOps/preview/2022-09-01-preview/securitydevops.json @@ -0,0 +1,2692 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.SecurityDevOps", + "description": "REST APIs for Defender for DevOps", + "version": "2022-09-01-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors": { + "get": { + "tags": [ + "default" + ], + "operationId": "AzureDevOpsConnector_ListByResourceGroup", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AzureDevOpsConnectorListResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "AzureDevOpsConnector_ListByResourceGroup": { + "$ref": "./examples/AzureDevOpsConnectorListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/{azureDevOpsConnectorName}": { + "get": { + "tags": [ + "default" + ], + "summary": "Returns a monitored AzureDevOps Connector resource for a given ID.", + "operationId": "AzureDevOpsConnector_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureDevOpsConnectorName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AzureDevOpsConnector" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "AzureDevOpsConnector_Get": { + "$ref": "./examples/AzureDevOpsConnectorGet.json" + } + } + }, + "put": { + "tags": [ + "default" + ], + "summary": "Creates or updates an Azure DevOps Connector.", + "operationId": "AzureDevOpsConnector_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureDevOpsConnectorName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "azureDevOpsConnector", + "description": "Connector resource payload.", + "required": true, + "schema": { + "$ref": "#/definitions/AzureDevOpsConnector" + } + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/AzureDevOpsConnector" + } + }, + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AzureDevOpsConnector" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "AzureDevOpsConnector_CreateOrUpdate": { + "$ref": "./examples/AzureDevOpsConnectorCreateOrUpdate.json" + } + } + }, + "patch": { + "tags": [ + "default" + ], + "summary": "Update monitored AzureDevOps Connector details.", + "operationId": "AzureDevOpsConnector_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureDevOpsConnectorName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "azureDevOpsConnector", + "description": "Connector resource payload.", + "schema": { + "$ref": "#/definitions/AzureDevOpsConnector" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AzureDevOpsConnector" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/AzureDevOpsConnector" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "AzureDevOpsConnector_Update": { + "$ref": "./examples/AzureDevOpsConnectorUpdate.json" + } + } + }, + "delete": { + "tags": [ + "default" + ], + "summary": "Delete monitored AzureDevOps Connector details.", + "operationId": "AzureDevOpsConnector_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureDevOpsConnectorName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + }, + "200": { + "description": "Success" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "AzureDevOpsConnector_Delete": { + "$ref": "./examples/AzureDevOpsConnectorDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/{azureDevOpsConnectorName}/repos": { + "get": { + "tags": [ + "default" + ], + "operationId": "AzureDevOpsRepo_ListByConnector", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureDevOpsConnectorName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AzureDevOpsRepoListResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "AzureDevOpsRepo_ListByConnector": { + "$ref": "./examples/AzureDevOpsRepoListByConnector.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/{azureDevOpsConnectorName}/stats": { + "get": { + "tags": [ + "default" + ], + "summary": "Returns the summary of the AzureDevOps Connector Stats.", + "operationId": "AzureDevOpsConnectorStats_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureDevOpsConnectorName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AzureDevOpsConnectorStatsListResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "AzureDevOpsConnectorStats_Get": { + "$ref": "./examples/AzureDevOpsConnectorStatsGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/{azureDevOpsConnectorName}/orgs": { + "get": { + "tags": [ + "default" + ], + "operationId": "AzureDevOpsOrg_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureDevOpsConnectorName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AzureDevOpsOrgListResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "AzureDevOpsOrg_List": { + "$ref": "./examples/AzureDevOpsOrgList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/{azureDevOpsConnectorName}/orgs/{azureDevOpsOrgName}": { + "get": { + "tags": [ + "default" + ], + "summary": "Returns a monitored AzureDevOps Org resource for a given ID.", + "operationId": "AzureDevOpsOrg_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureDevOpsConnectorName" + }, + { + "$ref": "#/parameters/AzureDevOpsOrgName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AzureDevOpsOrg" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "AzureDevOpsOrg_Get": { + "$ref": "./examples/AzureDevOpsOrgGet.json" + } + } + }, + "put": { + "tags": [ + "default" + ], + "summary": "Creates or updates an Azure DevOps Org.", + "operationId": "AzureDevOpsOrg_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureDevOpsConnectorName" + }, + { + "$ref": "#/parameters/AzureDevOpsOrgName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "azureDevOpsOrg", + "description": "Azure DevOps Org resource payload.", + "required": true, + "schema": { + "$ref": "#/definitions/AzureDevOpsOrg" + } + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/AzureDevOpsOrg" + } + }, + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AzureDevOpsOrg" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "AzureDevOpsOrg_CreateOrUpdate": { + "$ref": "./examples/AzureDevOpsOrgCreateOrUpdate.json" + } + } + }, + "patch": { + "tags": [ + "default" + ], + "summary": "Update monitored AzureDevOps Org details.", + "operationId": "AzureDevOpsOrg_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureDevOpsConnectorName" + }, + { + "$ref": "#/parameters/AzureDevOpsOrgName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "azureDevOpsOrg", + "description": "Azure DevOps Org resource payload.", + "schema": { + "$ref": "#/definitions/AzureDevOpsOrg" + } + } + ], + "responses": { + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/AzureDevOpsOrg" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "AzureDevOpsOrg_Update": { + "$ref": "./examples/AzureDevOpsOrgUpdate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/{azureDevOpsConnectorName}/orgs/{azureDevOpsOrgName}/projects": { + "get": { + "tags": [ + "default" + ], + "operationId": "AzureDevOpsProject_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureDevOpsConnectorName" + }, + { + "$ref": "#/parameters/AzureDevOpsOrgName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AzureDevOpsProjectListResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "AzureDevOpsProject_List": { + "$ref": "./examples/AzureDevOpsProjectList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/{azureDevOpsConnectorName}/orgs/{azureDevOpsOrgName}/projects/{azureDevOpsProjectName}": { + "get": { + "tags": [ + "default" + ], + "summary": "Returns a monitored AzureDevOps Project resource for a given ID.", + "operationId": "AzureDevOpsProject_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureDevOpsConnectorName" + }, + { + "$ref": "#/parameters/AzureDevOpsOrgName" + }, + { + "$ref": "#/parameters/AzureDevOpsProjectName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AzureDevOpsProject" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "AzureDevOpsProject_Get": { + "$ref": "./examples/AzureDevOpsProjectGet.json" + } + } + }, + "put": { + "tags": [ + "default" + ], + "summary": "Creates or updates an Azure DevOps Project.", + "operationId": "AzureDevOpsProject_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureDevOpsConnectorName" + }, + { + "$ref": "#/parameters/AzureDevOpsOrgName" + }, + { + "$ref": "#/parameters/AzureDevOpsProjectName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "azureDevOpsProject", + "description": "Azure DevOps Org resource payload.", + "required": true, + "schema": { + "$ref": "#/definitions/AzureDevOpsProject" + } + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/AzureDevOpsProject" + } + }, + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AzureDevOpsProject" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "AzureDevOpsProject_CreateOrUpdate": { + "$ref": "./examples/AzureDevOpsProjectCreateOrUpdate.json" + } + } + }, + "patch": { + "tags": [ + "default" + ], + "summary": "Update monitored AzureDevOps Project details.", + "operationId": "AzureDevOpsProject_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureDevOpsConnectorName" + }, + { + "$ref": "#/parameters/AzureDevOpsOrgName" + }, + { + "$ref": "#/parameters/AzureDevOpsProjectName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "azureDevOpsProject", + "description": "Azure DevOps Org resource payload.", + "schema": { + "$ref": "#/definitions/AzureDevOpsProject" + } + } + ], + "responses": { + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/AzureDevOpsProject" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "AzureDevOpsProject_Update": { + "$ref": "./examples/AzureDevOpsProjectUpdate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/{azureDevOpsConnectorName}/orgs/{azureDevOpsOrgName}/projects/{azureDevOpsProjectName}/repos": { + "get": { + "tags": [ + "default" + ], + "operationId": "AzureDevOpsRepo_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureDevOpsConnectorName" + }, + { + "$ref": "#/parameters/AzureDevOpsOrgName" + }, + { + "$ref": "#/parameters/AzureDevOpsProjectName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AzureDevOpsRepoListResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "AzureDevOpsRepo_List": { + "$ref": "./examples/AzureDevOpsRepoList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/{azureDevOpsConnectorName}/orgs/{azureDevOpsOrgName}/projects/{azureDevOpsProjectName}/repos/{azureDevOpsRepoName}": { + "get": { + "tags": [ + "default" + ], + "summary": "Returns a monitored AzureDevOps Project resource for a given ID.", + "operationId": "AzureDevOpsRepo_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureDevOpsConnectorName" + }, + { + "$ref": "#/parameters/AzureDevOpsOrgName" + }, + { + "$ref": "#/parameters/AzureDevOpsProjectName" + }, + { + "$ref": "#/parameters/AzureDevOpsRepoName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AzureDevOpsRepo" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "AzureDevOpsRepo_Get": { + "$ref": "./examples/AzureDevOpsRepoGet.json" + } + } + }, + "put": { + "tags": [ + "default" + ], + "summary": "Updates an Azure DevOps Repo.", + "operationId": "AzureDevOpsRepo_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureDevOpsConnectorName" + }, + { + "$ref": "#/parameters/AzureDevOpsOrgName" + }, + { + "$ref": "#/parameters/AzureDevOpsProjectName" + }, + { + "$ref": "#/parameters/AzureDevOpsRepoName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "azureDevOpsRepo", + "description": "Azure DevOps Repo resource payload.", + "required": true, + "schema": { + "$ref": "#/definitions/AzureDevOpsRepo" + } + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/AzureDevOpsRepo" + } + }, + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AzureDevOpsRepo" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "AzureDevOpsRepo_CreateOrUpdate": { + "$ref": "./examples/AzureDevOpsRepoCreateOrUpdate.json" + } + } + }, + "patch": { + "tags": [ + "default" + ], + "summary": "Update monitored AzureDevOps Project details.", + "operationId": "AzureDevOpsRepo_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureDevOpsConnectorName" + }, + { + "$ref": "#/parameters/AzureDevOpsOrgName" + }, + { + "$ref": "#/parameters/AzureDevOpsProjectName" + }, + { + "$ref": "#/parameters/AzureDevOpsRepoName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "azureDevOpsRepo", + "description": "Azure DevOps Org resource payload.", + "schema": { + "$ref": "#/definitions/AzureDevOpsRepo" + } + } + ], + "responses": { + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/AzureDevOpsRepo" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "AzureDevOpsRepo_Update": { + "$ref": "./examples/AzureDevOpsRepoUpdate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityDevOps/gitHubConnectors": { + "get": { + "tags": [ + "default" + ], + "operationId": "GitHubConnector_ListByResourceGroup", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GitHubConnectorListResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GitHubConnector_ListByResourceGroup": { + "$ref": "./examples/GitHubConnectorListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityDevOps/gitHubConnectors/{gitHubConnectorName}": { + "get": { + "tags": [ + "default" + ], + "summary": "Returns a monitored GitHub Connector resource for a given ID.", + "operationId": "GitHubConnector_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/GitHubConnectorName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GitHubConnector" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GitHubConnector_Get": { + "$ref": "./examples/GitHubConnectorGet.json" + } + } + }, + "put": { + "tags": [ + "default" + ], + "summary": "Create or update a monitored GitHub Connector resource.", + "operationId": "GitHubConnector_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/GitHubConnectorName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "gitHubConnector", + "description": "Connector resource payload.", + "required": true, + "schema": { + "$ref": "#/definitions/GitHubConnector" + } + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/GitHubConnector" + } + }, + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GitHubConnector" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "GitHubConnector_CreateOrUpdate": { + "$ref": "./examples/GitHubConnectorCreateOrUpdate.json" + } + } + }, + "patch": { + "tags": [ + "default" + ], + "summary": "Update monitored GitHub Connector details.", + "operationId": "GitHubConnector_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/GitHubConnectorName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "gitHubConnector", + "description": "Connector resource payload.", + "schema": { + "$ref": "#/definitions/GitHubConnector" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GitHubConnector" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/GitHubConnector" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "GitHubConnector_Update": { + "$ref": "./examples/GitHubConnectorUpdate.json" + } + } + }, + "delete": { + "tags": [ + "default" + ], + "summary": "Delete monitored GitHub Connector details.", + "operationId": "GitHubConnector_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/GitHubConnectorName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + }, + "200": { + "description": "Success" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "GitHubConnector_Delete": { + "$ref": "./examples/GitHubConnectorDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityDevOps/gitHubConnectors/{gitHubConnectorName}/repos": { + "get": { + "tags": [ + "default" + ], + "summary": "Returns a list of monitored GitHub repositories.", + "operationId": "GitHubRepo_ListByConnector", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/GitHubConnectorName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GitHubRepoListResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GitHubRepo_ListByConnector": { + "$ref": "./examples/GitHubRepoListByConnector.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityDevOps/gitHubConnectors/{gitHubConnectorName}/stats": { + "get": { + "tags": [ + "default" + ], + "summary": "Returns the summary of the GitHub Connector Stats.", + "operationId": "GitHubConnectorStats_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/GitHubConnectorName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GitHubConnectorStatsListResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GitHubConnectorStats_Get": { + "$ref": "./examples/GitHubConnectorStatsGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityDevOps/gitHubConnectors/{gitHubConnectorName}/owners": { + "get": { + "tags": [ + "default" + ], + "summary": "Returns a list of monitored GitHub owners.", + "operationId": "GitHubOwner_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/GitHubConnectorName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GitHubOwnerListResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GitHubOwner_List": { + "$ref": "./examples/GitHubOwnerList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityDevOps/gitHubConnectors/{gitHubConnectorName}/owners/{gitHubOwnerName}": { + "get": { + "tags": [ + "default" + ], + "summary": "Returns a monitored GitHub repository.", + "operationId": "GitHubOwner_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/GitHubConnectorName" + }, + { + "$ref": "#/parameters/GitHubOwnerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GitHubOwner" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GitHubOwner_Get": { + "$ref": "./examples/GitHubOwnerGet.json" + } + } + }, + "put": { + "tags": [ + "default" + ], + "summary": "Create or update a monitored GitHub owner.", + "operationId": "GitHubOwner_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/GitHubConnectorName" + }, + { + "$ref": "#/parameters/GitHubOwnerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "gitHubOwner", + "description": "Github owner.", + "required": true, + "schema": { + "$ref": "#/definitions/GitHubOwner" + } + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/GitHubOwner" + } + }, + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GitHubOwner" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "GitHubOwner_CreateOrUpdate": { + "$ref": "./examples/GitHubOwnerCreateOrUpdate.json" + } + } + }, + "patch": { + "tags": [ + "default" + ], + "summary": "Patch a monitored GitHub repository.", + "operationId": "GitHubOwner_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/GitHubConnectorName" + }, + { + "$ref": "#/parameters/GitHubOwnerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "gitHubOwner", + "description": "Github owner.", + "schema": { + "$ref": "#/definitions/GitHubOwner" + } + } + ], + "responses": { + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/GitHubOwner" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "GitHubOwner_Update": { + "$ref": "./examples/GitHubOwnerUpdate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityDevOps/gitHubConnectors/{gitHubConnectorName}/owners/{gitHubOwnerName}/repos": { + "get": { + "tags": [ + "default" + ], + "summary": "Returns a list of monitored GitHub repositories.", + "operationId": "GitHubRepo_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/GitHubConnectorName" + }, + { + "$ref": "#/parameters/GitHubOwnerName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GitHubRepoListResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GitHubRepo_List": { + "$ref": "./examples/GitHubRepoList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityDevOps/gitHubConnectors/{gitHubConnectorName}/owners/{gitHubOwnerName}/repos/{gitHubRepoName}": { + "get": { + "tags": [ + "default" + ], + "summary": "Returns a monitored GitHub repository.", + "operationId": "GitHubRepo_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/GitHubConnectorName" + }, + { + "$ref": "#/parameters/GitHubOwnerName" + }, + { + "$ref": "#/parameters/GitHubRepoName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GitHubRepo" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GitHubRepo_Get": { + "$ref": "./examples/GitHubRepoGet.json" + } + } + }, + "put": { + "tags": [ + "default" + ], + "summary": "Create or update a monitored GitHub repository.", + "operationId": "GitHubRepo_CreateOrUpdate", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/GitHubConnectorName" + }, + { + "$ref": "#/parameters/GitHubOwnerName" + }, + { + "$ref": "#/parameters/GitHubRepoName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "gitHubRepo", + "description": "Github repo.", + "required": true, + "schema": { + "$ref": "#/definitions/GitHubRepo" + } + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/GitHubRepo" + } + }, + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GitHubRepo" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "GitHubRepo_CreateOrUpdate": { + "$ref": "./examples/GitHubRepoCreateOrUpdate.json" + } + } + }, + "patch": { + "tags": [ + "default" + ], + "summary": "Patch a monitored GitHub repository.", + "operationId": "GitHubRepo_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/GitHubConnectorName" + }, + { + "$ref": "#/parameters/GitHubOwnerName" + }, + { + "$ref": "#/parameters/GitHubRepoName" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "gitHubRepo", + "description": "Github repo.", + "schema": { + "$ref": "#/definitions/GitHubRepo" + } + } + ], + "responses": { + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/GitHubRepo" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "GitHubRepo_Update": { + "$ref": "./examples/GitHubRepoUpdate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.SecurityDevOps/gitHubConnectors": { + "get": { + "tags": [ + "default" + ], + "summary": "Returns a list of monitored GitHub Connectors.", + "operationId": "GitHubConnector_ListBySubscription", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GitHubConnectorListResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GitHubConnector_ListBySubscription": { + "$ref": "./examples/GitHubConnectorListBySubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors": { + "get": { + "tags": [ + "default" + ], + "summary": "Returns a list of monitored AzureDevOps Connectors.", + "operationId": "AzureDevOpsConnector_ListBySubscription", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AzureDevOpsConnectorListResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "AzureDevOpsConnector_ListBySubscription": { + "$ref": "./examples/AzureDevOpsConnectorListBySubscription.json" + } + } + } + }, + "/providers/Microsoft.SecurityDevOps/operations": { + "get": { + "description": "Returns list of operations supported by the Microsoft.SecurityDevOps provider.", + "operationId": "Operations_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Operation details.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/OperationsList.json" + } + } + } + } + }, + "definitions": { + "ActionableRemediation": { + "type": "object", + "properties": { + "state": { + "$ref": "#/definitions/ActionableRemediationState" + }, + "severityLevels": { + "type": "array", + "items": { + "type": "string" + }, + "x-ms-identifiers": [] + }, + "categories": { + "type": "array", + "items": { + "$ref": "#/definitions/RuleCategory" + }, + "x-ms-identifiers": [] + }, + "branchConfiguration": { + "$ref": "#/definitions/TargetBranchConfiguration" + } + } + }, + "ActionableRemediationState": { + "enum": [ + "None", + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "ActionableRemediationState", + "modelAsString": true, + "modelAsExtensible": true + } + }, + "AuthorizationInfo": { + "type": "object", + "properties": { + "code": { + "description": "Gets or sets one-time OAuth code to exchange for refresh and access tokens.", + "type": "string", + "example": "00000000000000000000.", + "x-ms-secret": true + } + } + }, + "AutoDiscovery": { + "enum": [ + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "AutoDiscovery", + "modelAsString": true, + "modelAsExtensible": true + } + }, + "AzureDevOpsConnector": { + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/AzureDevOpsConnectorProperties" + } + } + }, + "AzureDevOpsConnectorListResponse": { + "type": "object", + "properties": { + "value": { + "description": "Gets or sets list of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/AzureDevOpsConnector" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "description": "Gets or sets next link to scroll over the results.", + "type": "string" + } + } + }, + "AzureDevOpsConnectorProperties": { + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "authorization": { + "$ref": "#/definitions/AuthorizationInfo" + }, + "orgs": { + "description": "Gets or sets org onboarding information.", + "type": "array", + "items": { + "$ref": "#/definitions/AzureDevOpsOrgMetadata" + }, + "x-ms-identifiers": [] + } + } + }, + "AzureDevOpsConnectorStats": { + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/AzureDevOpsConnectorStatsProperties" + } + } + }, + "AzureDevOpsConnectorStatsListResponse": { + "type": "object", + "properties": { + "value": { + "description": "Gets or sets list of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/AzureDevOpsConnectorStats" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "description": "Gets or sets next link to scroll over the results.", + "type": "string" + } + } + }, + "AzureDevOpsConnectorStatsProperties": { + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "orgsCount": { + "format": "int64", + "description": "Gets or sets orgs count.", + "type": "integer" + }, + "projectsCount": { + "format": "int64", + "description": "Gets or sets projects count.", + "type": "integer" + }, + "reposCount": { + "format": "int64", + "description": "Gets or sets repos count.", + "type": "integer" + } + } + }, + "AzureDevOpsOrg": { + "description": "Azure DevOps Org Proxy Resource.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/AzureDevOpsOrgProperties" + } + } + }, + "AzureDevOpsOrgListResponse": { + "type": "object", + "properties": { + "value": { + "description": "Gets or sets list of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/AzureDevOpsOrg" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "description": "Gets or sets next link to scroll over the results.", + "type": "string" + } + } + }, + "AzureDevOpsOrgMetadata": { + "description": "Org onboarding info.", + "type": "object", + "properties": { + "name": { + "description": "Gets or sets name of the AzureDevOps Org.", + "type": "string" + }, + "autoDiscovery": { + "$ref": "#/definitions/AutoDiscovery" + }, + "projects": { + "type": "array", + "items": { + "$ref": "#/definitions/AzureDevOpsProjectMetadata" + }, + "x-ms-identifiers": [] + } + } + }, + "AzureDevOpsOrgProperties": { + "description": "AzureDevOps Org properties.", + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "autoDiscovery": { + "$ref": "#/definitions/AutoDiscovery" + } + } + }, + "AzureDevOpsProject": { + "description": "Azure DevOps Project Proxy Resource.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/AzureDevOpsProjectProperties" + } + } + }, + "AzureDevOpsProjectListResponse": { + "type": "object", + "properties": { + "value": { + "description": "Gets or sets list of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/AzureDevOpsProject" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "description": "Gets or sets next link to scroll over the results.", + "type": "string" + } + } + }, + "AzureDevOpsProjectMetadata": { + "description": "Project onboarding info.", + "type": "object", + "properties": { + "name": { + "description": "Gets or sets name of the AzureDevOps Project.", + "type": "string" + }, + "autoDiscovery": { + "$ref": "#/definitions/AutoDiscovery" + }, + "repos": { + "description": "Gets or sets repositories.", + "type": "array", + "items": { + "type": "string" + }, + "x-ms-identifiers": [] + } + } + }, + "AzureDevOpsProjectProperties": { + "description": "AzureDevOps Project properties.", + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "projectId": { + "description": "Gets or sets AzureDevOps Project Id.", + "type": "string" + }, + "orgName": { + "description": "Gets or sets AzureDevOps Org Name.", + "type": "string" + }, + "autoDiscovery": { + "$ref": "#/definitions/AutoDiscovery" + } + } + }, + "AzureDevOpsRepo": { + "description": "Azure DevOps Repo Proxy Resource.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/AzureDevOpsRepoProperties" + } + } + }, + "AzureDevOpsRepoListResponse": { + "type": "object", + "properties": { + "value": { + "description": "Gets or sets list of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/AzureDevOpsRepo" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "description": "Gets or sets next link to scroll over the results.", + "type": "string" + } + } + }, + "AzureDevOpsRepoProperties": { + "description": "AzureDevOps Repo properties.", + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "repoId": { + "description": "Gets or sets Azure DevOps repo id.", + "type": "string" + }, + "repoUrl": { + "description": "Gets or sets AzureDevOps repo url.", + "type": "string" + }, + "orgName": { + "description": "Gets or sets AzureDevOps Org Name.", + "type": "string" + }, + "projectName": { + "description": "Gets or sets AzureDevOps Project Name.", + "type": "string" + }, + "visibility": { + "description": "Gets or sets AzureDevOps repo visibility, whether it is public or private etc.", + "type": "string" + }, + "actionableRemediation": { + "$ref": "#/definitions/ActionableRemediation" + } + } + }, + "GitHubConnector": { + "description": "Represents an ARM resource for /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.SecurityDevOps/gitHubConnectors.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/GitHubConnectorProperties" + } + } + }, + "GitHubConnectorListResponse": { + "type": "object", + "properties": { + "value": { + "description": "Gets or sets list of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/GitHubConnector" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "description": "Gets or sets next link to scroll over the results.", + "type": "string" + } + } + }, + "GitHubConnectorProperties": { + "description": "Properties of the ARM resource for /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.SecurityDevOps/gitHubConnectors.", + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "code": { + "description": "Gets or sets one-time OAuth code to exchange for refresh and access tokens.", + "type": "string", + "example": "00000000000000000000.", + "x-ms-secret": true + } + } + }, + "GitHubConnectorStats": { + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/GitHubConnectorStatsProperties" + } + } + }, + "GitHubConnectorStatsListResponse": { + "type": "object", + "properties": { + "value": { + "description": "Gets or sets list of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/GitHubConnectorStats" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "description": "Gets or sets next link to scroll over the results.", + "type": "string" + } + } + }, + "GitHubConnectorStatsProperties": { + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "ownersCount": { + "format": "int64", + "description": "Gets or sets owners count.", + "type": "integer" + }, + "reposCount": { + "format": "int64", + "description": "Gets or sets repos count.", + "type": "integer" + } + } + }, + "GitHubOwner": { + "description": "GitHub repo owner Proxy Resource.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/GitHubOwnerProperties" + } + } + }, + "GitHubOwnerListResponse": { + "type": "object", + "properties": { + "value": { + "description": "Gets or sets list of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/GitHubOwner" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "description": "Gets or sets next link to scroll over the results.", + "type": "string" + } + } + }, + "GitHubOwnerProperties": { + "description": "GitHub Repo Owner properties.", + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "ownerUrl": { + "description": "Gets or sets gitHub owner url.", + "type": "string" + } + } + }, + "GitHubRepo": { + "description": "GitHub repo Proxy Resource.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/GitHubRepoProperties" + } + } + }, + "GitHubRepoListResponse": { + "type": "object", + "properties": { + "value": { + "description": "Gets or sets list of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/GitHubRepo" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "description": "Gets or sets next link to scroll over the results.", + "type": "string" + } + } + }, + "GitHubRepoProperties": { + "description": "GitHub Repo properties.", + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "accountId": { + "format": "int64", + "description": "Gets or sets gitHub repo account id.", + "type": "integer" + }, + "repoUrl": { + "description": "Gets or sets gitHub repo url.", + "type": "string" + }, + "ownerName": { + "description": "Gets or sets GitHub Owner Name.", + "type": "string" + } + } + }, + "GitHubReposProperties": { + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "accountId": { + "format": "int64", + "description": "Gets or sets gitHub repo account id.", + "type": "integer" + }, + "repoName": { + "description": "Gets or sets gitHub repo name.", + "type": "string" + }, + "repoUrl": { + "description": "Gets or sets gitHub repo url.", + "type": "string" + } + } + }, + "ProvisioningState": { + "enum": [ + "Succeeded", + "Failed", + "Canceled" + ], + "type": "string", + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true, + "modelAsExtensible": true + } + }, + "RuleCategory": { + "enum": [ + "Code", + "Artifacts", + "Dependencies", + "Secrets", + "IaC", + "Containers" + ], + "type": "string", + "x-ms-enum": { + "name": "RuleCategory", + "modelAsString": true, + "modelAsExtensible": true + } + }, + "TargetBranchConfiguration": { + "description": "Branch onboarding info.", + "type": "object", + "properties": { + "names": { + "description": "Gets or sets branches that should have annotations.\r\n\r\nFor Ignite, we will be supporting a single default branch configuration in the UX.", + "type": "array", + "items": { + "type": "string" + }, + "x-ms-identifiers": [] + } + } + } + }, + "parameters": { + "AzureDevOpsConnectorName": { + "in": "path", + "name": "azureDevOpsConnectorName", + "description": "Name of the AzureDevOps Connector.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "AzureDevOpsOrgName": { + "in": "path", + "name": "azureDevOpsOrgName", + "description": "Name of the AzureDevOps Org.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "AzureDevOpsProjectName": { + "in": "path", + "name": "azureDevOpsProjectName", + "description": "Name of the AzureDevOps Project.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "AzureDevOpsRepoName": { + "in": "path", + "name": "azureDevOpsRepoName", + "description": "Name of the AzureDevOps Repo.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "GitHubConnectorName": { + "in": "path", + "name": "gitHubConnectorName", + "description": "Name of the GitHub Connector.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "GitHubOwnerName": { + "in": "path", + "name": "gitHubOwnerName", + "description": "Name of the GitHub Owner.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "GitHubRepoName": { + "in": "path", + "name": "gitHubRepoName", + "description": "Name of the GitHub Repo.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "Impersonate your user account" + }, + "description": "Azure Active Directory OAuth2 Flow" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/securitydevops/resource-manager/readme.az.md b/specification/securitydevops/resource-manager/readme.az.md new file mode 100644 index 000000000000..e8ddb9da292c --- /dev/null +++ b/specification/securitydevops/resource-manager/readme.az.md @@ -0,0 +1,28 @@ +## AZ + +These settings apply only when `--az` is specified on the command line. + +For new Resource Provider. It is highly recommended to onboard Azure CLI extensions. There's no differences in terms of customer usage. + +``` yaml $(az) && $(target-mode) != 'core' +az: + extensions: securitydevops + namespace: azure.mgmt.securitydevops + package-name: azure-mgmt-securitydevops +az-output-folder: $(azure-cli-extension-folder)/src/securitydevops +python-sdk-output-folder: "$(az-output-folder)/azext_securitydevops/vendored_sdks/securitydevops" +# add additional configuration here specific for Azure CLI +# refer to the faq.md for more details +``` + + + +This is for command modules that already in azure cli main repo. +``` yaml $(az) && $(target-mode) == 'core' +az: + extensions: securitydevops + namespace: azure.mgmt.securitydevops + package-name: azure-mgmt-securitydevops +az-output-folder: $(azure-cli-folder)/src/azure-cli/azure/cli/command_modules/securitydevops +python-sdk-output-folder: "$(az-output-folder)/vendored_sdks/securitydevops" +``` \ No newline at end of file diff --git a/specification/securitydevops/resource-manager/readme.cli.md b/specification/securitydevops/resource-manager/readme.cli.md new file mode 100644 index 000000000000..c6cf6ad37ea4 --- /dev/null +++ b/specification/securitydevops/resource-manager/readme.cli.md @@ -0,0 +1 @@ +## CLI Common Settings for all the command line tools \ No newline at end of file diff --git a/specification/securitydevops/resource-manager/readme.csharp.md b/specification/securitydevops/resource-manager/readme.csharp.md new file mode 100644 index 000000000000..eefc08006882 --- /dev/null +++ b/specification/securitydevops/resource-manager/readme.csharp.md @@ -0,0 +1,15 @@ +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +```yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 1 + clear-output-folder: true + client-side-validation: false + namespace: Microsoft.SecurityDevOps + output-folder: $(csharp-sdks-folder)/securitydevops/management/Microsoft.SecurityDevOps/GeneratedProtocol +``` diff --git a/specification/securitydevops/resource-manager/readme.go.md b/specification/securitydevops/resource-manager/readme.go.md new file mode 100644 index 000000000000..c4f2243e2c9d --- /dev/null +++ b/specification/securitydevops/resource-manager/readme.go.md @@ -0,0 +1,11 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +```yaml $(go) && $(track2) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +module-name: sdk/resourcemanager/securitydevops/armsecuritydevops +module: github.com/Azure/azure-sdk-for-go/$(module-name) +output-folder: $(go-sdk-folder)/$(module-name) +``` diff --git a/specification/securitydevops/resource-manager/readme.md b/specification/securitydevops/resource-manager/readme.md new file mode 100644 index 000000000000..2abd73357a46 --- /dev/null +++ b/specification/securitydevops/resource-manager/readme.md @@ -0,0 +1,95 @@ +# securitydevops + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for securitydevops. + +## Getting Started + +To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: + +> `autorest readme.md` + +To see additional help and options, run: + +> `autorest --help` + +For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. + +--- + +## Configuration + +### Basic Information + +These are the global settings for the securitydevops. + +``` yaml +openapi-type: arm +openapi-subtype: rpaas +tag: package-2022-09-01-preview +``` + +### Tag: package-2022-09-01-preview + +These settings apply only when `--tag=package-2022-09-01-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2022-09-01-preview' +input-file: + - Microsoft.SecurityDevOps/preview/2022-09-01-preview/securitydevops.json +``` + +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +``` yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python-track2 + - repo: azure-sdk-for-java + - repo: azure-sdk-for-go-track2 + - repo: azure-sdk-for-js + - repo: azure-resource-manager-schemas + - repo: azure-cli-extensions +``` + +## Az + +See configuration in [readme.az.md](./readme.az.md) + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Python + +See configuration in [readme.python.md](./readme.python.md) + +## TypeScript + +See configuration in [readme.typescript.md](./readme.typescript.md) + +## CSharp + +See configuration in [readme.csharp.md](./readme.csharp.md) + +## Suppression + +``` yaml +directive: + - suppress: TrackedResourceListByImmediateParent + where: $.definitions + from: securitydevops.json + reason: We do not have tracked resource + - suppress: EnumInsteadOfBoolean + where: $.definitions.Operation.properties.isDataAction + from: types.json + reason: This is not related to my code and is part of common code + - suppress: EnumInsteadOfBoolean + where: $.definitions.Operation.properties.isDataAction + from: types.json + reason: 'Not my code, it is a part of common code' +``` diff --git a/specification/securitydevops/resource-manager/readme.python.md b/specification/securitydevops/resource-manager/readme.python.md new file mode 100644 index 000000000000..66affe770b2d --- /dev/null +++ b/specification/securitydevops/resource-manager/readme.python.md @@ -0,0 +1,23 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(track2) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +package-name: azure-mgmt-securitydevops +no-namespace-folders: true +package-version: 1.0.0b1 +clear-output-folder: true +``` + +``` yaml $(python-mode) == 'update' && $(track2) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/securitydevops/azure-mgmt-securitydevops/azure/mgmt/securitydevops +``` + +``` yaml $(python-mode) == 'create' && $(track2) +basic-setup-py: true +output-folder: $(python-sdks-folder)/securitydevops/azure-mgmt-securitydevops +``` diff --git a/specification/securitydevops/resource-manager/readme.typescript.md b/specification/securitydevops/resource-manager/readme.typescript.md new file mode 100644 index 000000000000..d9a64b4327f7 --- /dev/null +++ b/specification/securitydevops/resource-manager/readme.typescript.md @@ -0,0 +1,14 @@ +## TypeScript + +These settings apply only when `--typescript` is specified on the command line. +Please also specify `--typescript-sdks-folder=`. + +``` yaml $(typescript) +typescript: + azure-arm: true + package-name: "@azure/arm-securitydevops" + output-folder: "$(typescript-sdks-folder)/sdk/securitydevops/arm-securitydevops" + payload-flattening-threshold: 1 + clear-output-folder: true + generate-metadata: true +``` From 456df74a07b3d4a15a7661e34a6539c7bb33377f Mon Sep 17 00:00:00 2001 From: prashmo Date: Thu, 6 Oct 2022 00:21:19 -0700 Subject: [PATCH 2/2] add suppression for spell check --- custom-words.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/custom-words.txt b/custom-words.txt index 6ba0e9d0882e..e1be4cdf01d1 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -1524,6 +1524,7 @@ Optmem organisation originpath Orignal +orgs osdisk osdiskforlinuxsimple osdiskforwindowssimple