Skip to content

Commit

Permalink
Purview Account data-plane Swagger (#15216)
Browse files Browse the repository at this point in the history
* Bootstrap Purview Account data-plane Swagger

* Update most recent swagger

* Fix spelling and examples that got dropped

* Update readme

* Fix swagger validation errors
  • Loading branch information
annoakes authored Jul 21, 2021
1 parent f255389 commit 7a4a643
Show file tree
Hide file tree
Showing 22 changed files with 3,512 additions and 0 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"parameters": {
"api-version": "2018-12-01-preview"
},
"responses": {
"200": {
"headers": {
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
"X-Content-Type-Options": "nosniff",
"x-ms-ratelimit-remaining-tenant-reads": "14999",
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
},
"body": {
"location": "West US 2",
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.ProjectBabylon/accounts/account1",
"name": "account1",
"type": "Microsoft.ProjectBabylon/accounts",
"sku": {
"name": "Standard",
"capacity": 4
},
"systemData": {
"createdBy": "client-name",
"createdByType": "User",
"createdAt": "2019-11-22T18:39:58.6929344Z",
"lastModifiedBy": "client-name",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-03-16T23:24:34.3430059Z"
},
"properties": {
"friendlyName": "friendly-account1",
"createdBy": "client-name",
"createdByObjectId": "client-objectId",
"createdAt": "2019-11-22T18:39:58.6929344Z",
"provisioningState": "Succeeded",
"endpoints": {
"catalog": "https://account1.catalog.babylon.azure-test.com",
"scan": "https://account1.scan.babylon.azure-test.com",
"guardian": "https://account1.guardian.babylon.azure-test.com"
},
"privateEndpointConnections": [
{
"properties": {
"provisioningState": "Succeeded",
"privateEndpoint": {
"id": "/subscriptions/baca8a88-4527-4c35-a13e-b2775ce0d7fc/resourceGroups/nrpResourceGroupName/providers/Microsoft.Network/privateEndpoints/peName"
},
"privateLinkServiceConnectionState": {
"status": "Pending",
"description": "Please approve my connection, thanks.",
"actionsRequired": "None"
}
},
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.ProjectBabylon/accounts/account1/privateEndpointConnections/peName-8536c337-7b36-4d67-a7ce-081655baf59e",
"name": "peName-8536c337-7b36-4d67-a7ce-081655baf59e",
"type": "Microsoft.ProjectBabylon/accounts/privateEndpointConnections"
}
],
"managedResources": {
"resourceGroup": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl",
"storageAccount": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.Storage/storageAccounts/scanwestustzaagzr",
"eventHubNamespace": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.EventHub/namespaces/atlas-westusdddnbtp"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"api-version": "2018-12-01-preview"
},
"responses": {
"200": {
"headers": {
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
"X-Content-Type-Options": "nosniff",
"x-ms-ratelimit-remaining-tenant-reads": "14999",
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
},
"body": {
"atlasKafkaPrimaryEndpoint": "Endpoint=sb://fake_objectId.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=ASDASasdfmasdf123412341234=",
"atlasKafkaSecondaryEndpoint": "Endpoint=sb://fake_objectId.servicebus.windows.net/;SharedAccessKeyName=AlternateSharedAccessKey;SharedAccessKey=BSDASasdfmasdf123412341234="
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parameters": {
"api-version": "2018-12-01-preview",
"keyOptions": {
"keyType": "PrimaryKey"
}
},
"responses": {
"200": {
"headers": {
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
"X-Content-Type-Options": "nosniff",
"x-ms-ratelimit-remaining-tenant-reads": "14999",
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
},
"body": {
"atlasKafkaPrimaryEndpoint": "Endpoint=sb://fake_objectId.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=ASDASasdfmasdf123412341234=",
"atlasKafkaSecondaryEndpoint": "Endpoint=sb://fake_objectId.servicebus.windows.net/;SharedAccessKeyName=AlternateSharedAccessKey;SharedAccessKey=BSDASasdfmasdf123412341234="
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"parameters": {
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "SampleResourceGroup",
"accountName": "account1",
"api-version": "2018-12-01-preview",
"accountUpdateParameters": {
"friendlyName": "friendly-account1"
}
},
"responses": {
"200": {
"headers": {
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
"X-Content-Type-Options": "nosniff",
"x-ms-ratelimit-remaining-tenant-reads": "14999",
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
},
"body": {
"location": "West US 2",
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.ProjectBabylon/accounts/account1",
"name": "account1",
"type": "Microsoft.ProjectBabylon/accounts",
"sku": {
"name": "Standard",
"capacity": 4
},
"systemData": {
"createdBy": "client-name",
"createdByType": "User",
"createdAt": "2019-11-22T18:39:58.6929344Z",
"lastModifiedBy": "client-name",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-03-16T23:24:34.3430059Z"
},
"properties": {
"friendlyName": "friendly-account1",
"createdBy": "client-name",
"createdByObjectId": "client-objectId",
"createdAt": "2019-11-22T18:39:58.6929344Z",
"provisioningState": "Succeeded",
"endpoints": {
"catalog": "https://account2.catalog.babylon.azure-test.com",
"scan": "https://account2.scan.babylon.azure-test.com",
"guardian": "https://account1.guardian.babylon.azure-test.com"
},
"managedResources": {
"resourceGroup": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl",
"storageAccount": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.Storage/storageAccounts/scanwestustzaagzr",
"eventHubNamespace": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.EventHub/namespaces/atlas-westusdddnbtp"
}
},
"tags": {
"tag": "tag value."
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"parameters": {
"businessRuleName": "myBusinessRule",
"api-version": "2019-11-01-preview",
"businessRule": {
"name": "myBusinessRule",
"ruleJson": "rule1",
"businessRuleMetadata": {
"friendlyName": "myBusinessRuleFriendlyName",
"ruleStatus": "Enabled",
"description": "A sample business rule",
"rank": 1
}
}
},
"responses": {
"200": {
"headers": {
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
"X-Content-Type-Options": "nosniff",
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
},
"body": {
"name": "myBusinessRule",
"ruleJson": "rule1",
"businessRuleMetadata": {
"catalogId": "d5496da4-9c52-402f-b067-83cc9ddea885",
"friendlyName": "myBusinessRuleFriendlyName",
"ruleStatus": "Enabled",
"expirationTimestamp": "2022-11-22T18:39:58.6929344Z",
"createTimestamp": "2019-11-22T18:39:58.6929344Z",
"lastModifiedTimestamp": "2019-11-22T18:39:58.6929344Z",
"description": "A sample business rule",
"rank": 1,
"version": 1,
"createdBy": "client-name",
"modifiedBy": "modifier-name"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"businessRuleName": "myBusinessRule",
"api-version": "2019-11-01-preview"
},
"responses": {
"200": {
"headers": {
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
"X-Content-Type-Options": "nosniff",
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
}
},
"204": {
"headers": {
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
"X-Content-Type-Options": "nosniff",
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"businessRuleName": "myBusinessRule",
"api-version": "2019-11-01-preview"
},
"responses": {
"200": {
"headers": {
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
"X-Content-Type-Options": "nosniff",
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
},
"body": {
"name": "myBusinessRule",
"ruleJson": "rule1",
"businessRuleMetadata": {
"catalogId": "d5496da4-9c52-402f-b067-83cc9ddea885",
"friendlyName": "myBusinessRuleFriendlyName",
"ruleStatus": "Disabled",
"expirationTimestamp": "2022-11-22T18:39:58.6929344Z",
"createTimestamp": "2019-11-22T18:39:58.6929344Z",
"lastModifiedTimestamp": "2019-11-22T18:39:58.6929344Z",
"description": "A sample business rule",
"rank": 1,
"version": 1,
"createdBy": "client-name",
"modifiedBy": "modifier-name"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"businessRuleName": "myBusinessRule",
"api-version": "2019-11-01-preview"
},
"responses": {
"200": {
"headers": {
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
"X-Content-Type-Options": "nosniff",
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
},
"body": {
"name": "myBusinessRule",
"ruleJson": "rule1",
"businessRuleMetadata": {
"catalogId": "d5496da4-9c52-402f-b067-83cc9ddea885",
"friendlyName": "myBusinessRuleFriendlyName",
"ruleStatus": "Enabled",
"expirationTimestamp": "2022-11-22T18:39:58.6929344Z",
"createTimestamp": "2019-11-22T18:39:58.6929344Z",
"lastModifiedTimestamp": "2019-11-22T18:39:58.6929344Z",
"description": "A sample business rule",
"rank": 1,
"version": 1,
"createdBy": "client-name",
"modifiedBy": "modifier-name"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"businessRuleName": "myBusinessRule",
"api-version": "2019-11-01-preview"
},
"responses": {
"200": {
"headers": {
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
"X-Content-Type-Options": "nosniff",
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
},
"body": {
"name": "myBusinessRule",
"ruleJson": "rule1",
"businessRuleMetadata": {
"catalogId": "d5496da4-9c52-402f-b067-83cc9ddea885",
"friendlyName": "myBusinessRuleFriendlyName",
"ruleStatus": "Enabled",
"expirationTimestamp": "2022-11-22T18:39:58.6929344Z",
"createTimestamp": "2019-11-22T18:39:58.6929344Z",
"lastModifiedTimestamp": "2019-11-22T18:39:58.6929344Z",
"description": "A sample business rule",
"rank": 1,
"version": 1,
"createdBy": "client-name",
"modifiedBy": "modifier-name"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"api-version": "2019-11-01-preview"
},
"responses": {
"200": {
"headers": {
"Date": "Wed, 13 Sep 2017 18:04:32 GMT",
"x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888",
"X-Content-Type-Options": "nosniff",
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
},
"body": {
"value": [
{
"name": "myBusinessRule",
"ruleJson": "rule1",
"businessRuleMetadata": {
"catalogId": "d5496da4-9c52-402f-b067-83cc9ddea885",
"friendlyName": "myBusinessRuleFriendlyName",
"ruleStatus": "Enabled",
"expirationTimestamp": "2022-11-22T18:39:58.6929344Z",
"createTimestamp": "2019-11-22T18:39:58.6929344Z",
"lastModifiedTimestamp": "2019-11-22T18:39:58.6929344Z",
"description": "A sample business rule",
"rank": 1,
"version": 1,
"createdBy": "client-name",
"modifiedBy": "modifier-name"
}
}
]
}
}
}
}
Loading

0 comments on commit 7a4a643

Please sign in to comment.