Skip to content

Commit

Permalink
Initial swagger spec for Customer Insights service. (Azure#859)
Browse files Browse the repository at this point in the history
* 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
tjlvtao authored and vishrutshah committed Jan 28, 2017
1 parent 5214740 commit 148277e
Show file tree
Hide file tree
Showing 57 changed files with 7,782 additions and 0 deletions.
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="
}
}
}
}
}
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"
}
}
}
}
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"
}]
}
}
}
}
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="
}
}
}
}
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="
}
}
}
}
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"
}
}
}
}
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": {

}
}
}
Loading

0 comments on commit 148277e

Please sign in to comment.