forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial swagger spec for Customer Insights service. (Azure#859)
* Initial swagger spec for Customer Insights service. * Remove the 2016-01-01 folder, as we are changing the API version to 2017-01-01 to make all the json properties on wire camel cased.
- Loading branch information
1 parent
5214740
commit 148277e
Showing
57 changed files
with
7,782 additions
and
0 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
arm-customer-insights/2017-01-01/examples/AuthorizationPoliciesCreateOrUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"parameters": { | ||
"hubName": "azSdkTestHub", | ||
"resourceGroupName": "TestHubRG", | ||
"authorizationPolicyName": "testPolicy4222", | ||
"api-version": "2016-01-01", | ||
"subscriptionId": "subid", | ||
"parameters": { | ||
"properties": { | ||
"permissions": ["Read", | ||
"Write", | ||
"Manage"] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups//TestHubRG/providers/Microsoft.CustomerInsights/hubs/azSdkTestHub/AuthorizationPolicies/testPolicy4222", | ||
"name": "testPolicy4222", | ||
"type": "Microsoft.CustomerInsights/hubs/AuthorizationPolicies", | ||
"properties": { | ||
"permissions": ["Read", | ||
"Write", | ||
"Manage"], | ||
"policyName": "testPolicy4222", | ||
"primaryKey": "cHJpbWFyeVRlc3RSZWFk", | ||
"secondaryKey": "c2Vjb25kYXJ5VGVzdFJlYWQ=" | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups//TestHubRG/providers/Microsoft.CustomerInsights/hubs/azSdkTestHub/AuthorizationPolicies/testPolicy4222", | ||
"name": "testPolicy4222", | ||
"type": "Microsoft.CustomerInsights/hubs/AuthorizationPolicies", | ||
"properties": { | ||
"permissions": ["Read", | ||
"Write", | ||
"Manage"], | ||
"policyName": "testPolicy4222", | ||
"primaryKey": "cHJpbWFyeVRlc3RSZWFk", | ||
"secondaryKey": "c2Vjb25kYXJ5VGVzdFJlYWQ=" | ||
} | ||
} | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
arm-customer-insights/2017-01-01/examples/AuthorizationPoliciesGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"parameters": { | ||
"hubName": "azSdkTestHub", | ||
"resourceGroupName": "TestHubRG", | ||
"authorizationPolicyName": "testPolicy4222", | ||
"api-version": "2016-01-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/azSdkTestHub/AuthorizationPolicies/testPolicy4222", | ||
"name": "azSdkTestHub/testPolicy4222", | ||
"properties": { | ||
"permissions": ["Read", | ||
"Write", | ||
"Manage"], | ||
"policyName": "testPolicy4222", | ||
"primaryKey": "cHJpbWFyeVRlc3RSZWFk", | ||
"secondaryKey": "c2Vjb25kYXJ5VGVzdFJlYWQ=" | ||
}, | ||
"type": "Microsoft.CustomerInsights/hubs/AuthorizationPolicies" | ||
} | ||
} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
arm-customer-insights/2017-01-01/examples/AuthorizationPoliciesListByHub.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"parameters": { | ||
"hubName": "azSdkTestHub", | ||
"resourceGroupName": "TestHubRG", | ||
"api-version": "2016-01-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [{ | ||
"id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/azSdkTestHub/AuthorizationPolicies/RootManageSharedAccessKey", | ||
"name": "azSdkTestHub/RootManageSharedAccessKey", | ||
"properties": { | ||
"permissions": ["Read", | ||
"Write", | ||
"Manage"], | ||
"policyName": "RootManageSharedAccessKey", | ||
"primaryKey": "KEvPnaBbDbEdSch27GhFx/D5Smu1bZC8bCmG33fHyi4=", | ||
"secondaryKey": "wvOahlAtWZh9127MVr1yYX2pPgioqFWGEUtp1ADbfcQ=" | ||
}, | ||
"type": "Microsoft.CustomerInsights/hubs/AuthorizationPolicies" | ||
}, | ||
{ | ||
"id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/azSdkTestHub/AuthorizationPolicies/testPolicy1125", | ||
"name": "azSdkTestHub/testPolicy1125", | ||
"properties": { | ||
"permissions": ["Read", | ||
"Write", | ||
"Manage"], | ||
"policyName": "testPolicy1125", | ||
"primaryKey": "3Nk5Yce0eQXHY3S+KDuUPKFS5NkOWLqtzNYEadh1WeI=", | ||
"secondaryKey": "c2Vjb25kYXJ5VGVzdFJlYWQ=" | ||
}, | ||
"type": "Microsoft.CustomerInsights/hubs/AuthorizationPolicies" | ||
}] | ||
} | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
arm-customer-insights/2017-01-01/examples/AuthorizationPoliciesRegeneratePrimaryKey.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"parameters": { | ||
"hubName": "azSdkTestHub", | ||
"resourceGroupName": "TestHubRG", | ||
"authorizationPolicyName": "testPolicy4222", | ||
"api-version": "2016-01-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"permissions": ["Read", | ||
"Write", | ||
"Manage"], | ||
"policyName": "testPolicy4009", | ||
"primaryKey": "UXZMQlt3kbcUc7Mx6WMVsNWj5rTmG6/cg9UrTY9YuoY=", | ||
"secondaryKey": "c2Vjb25kYXJ5VGVzdFJlYWQ=" | ||
} | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
arm-customer-insights/2017-01-01/examples/AuthorizationPoliciesRegenerateSecondaryKey.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"parameters": { | ||
"hubName": "azSdkTestHub", | ||
"resourceGroupName": "TestHubRG", | ||
"authorizationPolicyName": "testPolicy4222", | ||
"api-version": "2016-01-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"permissions": ["Read", | ||
"Write", | ||
"Manage"], | ||
"policyName": "testPolicy4009", | ||
"primaryKey": "UXZMQlt3kbcUc7Mx6WMVsNWj5rTmG6/cg9UrTY9YuoY=", | ||
"secondaryKey": "c2Vjb25kYXJ5VGVzdFJlYWQ=" | ||
} | ||
} | ||
} | ||
} |
159 changes: 159 additions & 0 deletions
159
arm-customer-insights/2017-01-01/examples/ConnectorMappingsCreateOrUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
{ | ||
"parameters": { | ||
"hubName": "sdkTestHub", | ||
"resourceGroupName": "TestHubRG", | ||
"connectorName": "testConnector8858", | ||
"mappingName": "testMapping12491", | ||
"api-version": "2016-01-01", | ||
"subscriptionId": "subid", | ||
"parameters": { | ||
"properties": { | ||
"entityType": "Interaction", | ||
"entityTypeName": "TestInteractionType2967", | ||
"displayName": "testMapping12491", | ||
"description": "Test mapping", | ||
"mappingProperties": { | ||
"folderPath": "http://sample.dne/file", | ||
"fileFilter": "unknown", | ||
"hasHeader": false, | ||
"errorManagement": { | ||
"errorManagementType": "StopImport", | ||
"errorLimit": 10 | ||
}, | ||
"format": { | ||
"formatType": "TextFormat", | ||
"columnDelimiter": "|" | ||
}, | ||
"availability": { | ||
"frequency": "Hour", | ||
"interval": 5 | ||
}, | ||
"structure": [{ | ||
"propertyName": "unknwon1", | ||
"columnName": "unknown1", | ||
"isEncrypted": false | ||
}, | ||
{ | ||
"propertyName": "unknwon2", | ||
"columnName": "unknown2", | ||
"isEncrypted": true | ||
}], | ||
"completeOperation": { | ||
"completionOperationType": "DeleteFile", | ||
"destinationFolder": "fakePath" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/sdkTestHub/connectors/testConnector8858/mappings/testMapping12491", | ||
"name": "sdkTestHub/testConnector8858/testMapping12491", | ||
"properties": { | ||
"connectorMappingName": "testMapping12491", | ||
"connectorName": "testConnector8858", | ||
"connectorType": "AzureBlob", | ||
"dataFormatId": "4619d4e7e8a64c1e9bc34907f9f46505", | ||
"description": "Test mapping", | ||
"displayName": "testMapping12491", | ||
"entityType": "Interaction", | ||
"entityTypeName": "TestInteractionType2967", | ||
"mappingProperties": { | ||
"availability": { | ||
"frequency": "Hour", | ||
"interval": 5 | ||
}, | ||
"completeOperation": { | ||
"completionOperationType": "DeleteFile", | ||
"destinationFolder": "fakePath" | ||
}, | ||
"errorManagement": { | ||
"errorLimit": 10, | ||
"errorManagementType": "StopImport" | ||
}, | ||
"fileFilter": "unknown", | ||
"folderPath": "http://sample.dne/file", | ||
"format": { | ||
"columnDelimiter": "|", | ||
"acceptLanguage": "", | ||
"quoteCharacter": "\\\"", | ||
"quoteEscapeCharacter": "\\\"", | ||
"formatType": "TextFormat", | ||
"arraySeparator": ";" | ||
}, | ||
"hasHeader": false, | ||
"structure": [{ | ||
"columnName": "unknown1", | ||
"isEncrypted": false, | ||
"propertyName": "unknwon1" | ||
}, | ||
{ | ||
"columnName": "unknown2", | ||
"isEncrypted": true, | ||
"propertyName": "unknwon2" | ||
}] | ||
}, | ||
"state": "Created", | ||
"tenantId": "sdktesthub" | ||
}, | ||
"type": "Microsoft.CustomerInsights/hubs/connectors/mappings" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/sdkTestHub/connectors/testConnector8858/mappings/testMapping12491", | ||
"name": "sdkTestHub/testConnector8858/testMapping12491", | ||
"properties": { | ||
"connectorMappingName": "testMapping12491", | ||
"connectorName": "testConnector8858", | ||
"connectorType": "AzureBlob", | ||
"dataFormatId": "4619d4e7e8a64c1e9bc34907f9f46505", | ||
"description": "Test mapping", | ||
"displayName": "testMapping12491", | ||
"entityType": "Interaction", | ||
"entityTypeName": "TestInteractionType2967", | ||
"mappingProperties": { | ||
"availability": { | ||
"frequency": "Hour", | ||
"interval": 5 | ||
}, | ||
"completeOperation": { | ||
"completionOperationType": "DeleteFile", | ||
"destinationFolder": "fakePath" | ||
}, | ||
"errorManagement": { | ||
"errorLimit": 10, | ||
"errorManagementType": "StopImport" | ||
}, | ||
"fileFilter": "unknown", | ||
"folderPath": "http://sample.dne/file", | ||
"format": { | ||
"columnDelimiter": "|", | ||
"acceptLanguage": "", | ||
"quoteCharacter": "\\\"", | ||
"quoteEscapeCharacter": "\\\"", | ||
"formatType": "TextFormat", | ||
"arraySeparator": ";" | ||
}, | ||
"hasHeader": false, | ||
"structure": [{ | ||
"columnName": "unknown1", | ||
"isEncrypted": false, | ||
"propertyName": "unknwon1" | ||
}, | ||
{ | ||
"columnName": "unknown2", | ||
"isEncrypted": true, | ||
"propertyName": "unknwon2" | ||
}] | ||
}, | ||
"state": "Created", | ||
"tenantId": "sdktesthub" | ||
}, | ||
"type": "Microsoft.CustomerInsights/hubs/connectors/mappings" | ||
} | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
arm-customer-insights/2017-01-01/examples/ConnectorMappingsDelete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"parameters": { | ||
"hubName": "sdkTestHub", | ||
"resourceGroupName": "TestHubRG", | ||
"connectorName": "testConnector8858", | ||
"mappingName": "testMapping12491", | ||
"api-version": "2016-01-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
|
||
} | ||
} | ||
} |
Oops, something went wrong.