diff --git a/arm-customer-insights/2017-01-01/examples/InteractionsCreateOrUpdate.json b/arm-customer-insights/2017-01-01/examples/InteractionsCreateOrUpdate.json index aa4b51c848bb..160b21a30088 100644 --- a/arm-customer-insights/2017-01-01/examples/InteractionsCreateOrUpdate.json +++ b/arm-customer-insights/2017-01-01/examples/InteractionsCreateOrUpdate.json @@ -22,7 +22,8 @@ }], "smallImage": "\\\\Images\\\\smallImage", "mediumImage": "\\\\Images\\\\MediumImage", - "largeImage": "\\\\Images\\\\LargeImage" + "largeImage": "\\\\Images\\\\LargeImage", + "isActivity": false } } }, @@ -66,7 +67,8 @@ "typeName": "TestInteractionType6358", "largeImage": "\\\\Images\\\\LargeImage", "mediumImage": "\\\\Images\\\\MediumImage", - "smallImage": "\\\\Images\\\\smallImage" + "smallImage": "\\\\Images\\\\smallImage", + "isActivity": false }, "type": "Microsoft.CustomerInsights/hubs/interactions" } diff --git a/arm-customer-insights/2017-01-01/examples/InteractionsGet.json b/arm-customer-insights/2017-01-01/examples/InteractionsGet.json index 833ffcb9eba1..0aac643643d4 100644 --- a/arm-customer-insights/2017-01-01/examples/InteractionsGet.json +++ b/arm-customer-insights/2017-01-01/examples/InteractionsGet.json @@ -26,7 +26,8 @@ "isLocalizedString": false, "isName": false, "isRequired": true, - "propertyId": "id1" + "propertyId": "id1", + "dataSourcePrecedenceRules": [] }, { "fieldName": "profile1", @@ -38,7 +39,19 @@ "isLocalizedString": false, "isName": false, "isRequired": true, - "propertyId": "id1" + "propertyId": "id1", + "dataSourcePrecedenceRules": [ + { + "dataSource": { + "dataSourceReferenceId": "70", + "dataSourceType": "Connector", + "name": "crm2", + "status": "Active", + "id": 1 + }, + "precedence": 50 + } + ] }], "instancesCount": 0, "provisioningState": "Provisioning", @@ -46,7 +59,27 @@ "typeName": "TestInteractionType6358", "largeImage": "\\\\Images\\\\LargeImage", "mediumImage": "\\\\Images\\\\MediumImage", - "smallImage": "\\\\Images\\\\smallImage" + "smallImage": "\\\\Images\\\\smallImage", + "defaultDataSource": { + "dataSourceReferenceId": "70", + "dataSourceType": "Connector", + "name": "crm2", + "status": "Active", + "id": 1 + }, + "dataSourcePrecedenceRules": [ + { + "dataSource": { + "dataSourceReferenceId": "70", + "dataSourceType": "Connector", + "name": "crm2", + "status": "Active", + "id": 1 + }, + "precedence": 50 + } + ], + "isActivity": true }, "type": "Microsoft.CustomerInsights/hubs/interactions" } diff --git a/arm-customer-insights/2017-01-01/examples/InteractionsListByHub.json b/arm-customer-insights/2017-01-01/examples/InteractionsListByHub.json index 097ae7a526a9..ebb489a5b2dd 100644 --- a/arm-customer-insights/2017-01-01/examples/InteractionsListByHub.json +++ b/arm-customer-insights/2017-01-01/examples/InteractionsListByHub.json @@ -26,7 +26,8 @@ "isLocalizedString": false, "isName": false, "isRequired": true, - "propertyId": "id1" + "propertyId": "id1", + "dataSourcePrecedenceRules": [] }, { "fieldName": "profile1", @@ -38,7 +39,19 @@ "isLocalizedString": false, "isName": false, "isRequired": true, - "propertyId": "id1" + "propertyId": "id1", + "dataSourcePrecedenceRules": [ + { + "dataSource": { + "dataSourceReferenceId": "70", + "dataSourceType": "Connector", + "name": "crm2", + "status": "Active", + "id": 1 + }, + "precedence": 50 + } + ] }], "instancesCount": 0, "provisioningState": "Provisioning", @@ -46,7 +59,27 @@ "typeName": "TestInteractionType6358", "largeImage": "\\\\Images\\\\LargeImage", "mediumImage": "\\\\Images\\\\MediumImage", - "smallImage": "\\\\Images\\\\smallImage" + "smallImage": "\\\\Images\\\\smallImage", + "defaultDataSource": { + "dataSourceReferenceId": "70", + "dataSourceType": "Connector", + "name": "crm2", + "status": "Active", + "id": 1 + }, + "dataSourcePrecedenceRules": [ + { + "dataSource": { + "dataSourceReferenceId": "70", + "dataSourceType": "Connector", + "name": "crm2", + "status": "Active", + "id": 1 + }, + "precedence": 50 + } + ], + "isActivity": true }, "type": "Microsoft.CustomerInsights/hubs/interactions" }] diff --git a/arm-customer-insights/2017-01-01/swagger/customer-insights.json b/arm-customer-insights/2017-01-01/swagger/customer-insights.json index 5c1a117ad3a2..d73707b52f65 100644 --- a/arm-customer-insights/2017-01-01/swagger/customer-insights.json +++ b/arm-customer-insights/2017-01-01/swagger/customer-insights.json @@ -3433,6 +3433,14 @@ "isAvailableInGraph": { "type": "boolean", "description": "Whether property is available in graph or not." + }, + "dataSourcePrecedenceRules": { + "type": "array", + "items": { + "$ref": "#/definitions/DataSourcePrecedence" + }, + "readOnly": true, + "description": "This is specific to interactions modeled as activities. Data sources are used to determine where data is stored and also in precedence rules." } }, "description": "Property definition." @@ -4226,9 +4234,6 @@ "description": "Resource tags." } }, - "required": [ - "location" - ], "x-ms-azure-resource": true, "description": "Common properties of Azure resource." }, @@ -4765,17 +4770,17 @@ "type": "string", "description": "The primary participant property name for an interaction ,This is used to logically represent the agent of the interaction, Specify the participant name here from ParticipantName." }, - "dataSources": { + "dataSourcePrecedenceRules": { "type": "array", "items": { - "$ref": "#/definitions/DataSource" + "$ref": "#/definitions/DataSourcePrecedence" }, "readOnly": true, "description": "This is specific to interactions modeled as activities. Data sources are used to determine where data is stored and also in precedence rules." }, - "defaultDataSourceId": { - "type": "string", - "readOnly": true, + "defaultDataSource": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DataSource", "description": "Default data source is specifically used in cases where data source is not specified in an instance." }, "isActivity": { @@ -4786,10 +4791,15 @@ }, "DataSource": { "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "The data source name" + }, "dataSourceType": { "type": "string", "enum": [ - "ConnectorMapping", + "Connector", "LinkInteraction", "SystemDefault" ], @@ -4800,24 +4810,46 @@ "readOnly": true, "description": "The data source type." }, - "id": { + "status": { "type": "string", + "enum": [ + "None", + "Active", + "Deleted" + ], + "x-ms-enum": { + "name": "Status", + "modelAsString": true + }, "readOnly": true, - "description": "The data source ID." + "description": "The data source status." }, - "linkId": { - "type": "string", + "id": { + "type": "integer", "readOnly": true, - "description": "The Link ID if the data source type is LinkInteraction." + "description": "The data source ID." }, - "connectorMappingId": { + "dataSourceReferenceId": { "type": "string", "readOnly": true, - "description": "The Connector Mapping ID if the data source type is ConnectorMapping." + "description": "The data source reference id." } }, "description": "Data Source is a way for us to know the source of instances. A single type can have data coming in from multiple places. In activities we use this to determine precedence rules." }, + "DataSourcePrecedence": { + "properties": { + "dataSource": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DataSource" + }, + "precedence": { + "type": "integer", + "description": "the precedence value." + } + }, + "description": "The data source precedence is a way to know the precedence of each data source." + }, "StrongId": { "required": [ "keyPropertyNames", diff --git a/arm-customer-insights/2017-04-26/examples/AuthorizationPoliciesCreateOrUpdate.json b/arm-customer-insights/2017-04-26/examples/AuthorizationPoliciesCreateOrUpdate.json new file mode 100644 index 000000000000..14d860ac082b --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/AuthorizationPoliciesCreateOrUpdate.json @@ -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=" + } + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/AuthorizationPoliciesGet.json b/arm-customer-insights/2017-04-26/examples/AuthorizationPoliciesGet.json new file mode 100644 index 000000000000..2cfbc82731a6 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/AuthorizationPoliciesGet.json @@ -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" + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/AuthorizationPoliciesListByHub.json b/arm-customer-insights/2017-04-26/examples/AuthorizationPoliciesListByHub.json new file mode 100644 index 000000000000..c0af0c058ab2 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/AuthorizationPoliciesListByHub.json @@ -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" + }] + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/AuthorizationPoliciesRegeneratePrimaryKey.json b/arm-customer-insights/2017-04-26/examples/AuthorizationPoliciesRegeneratePrimaryKey.json new file mode 100644 index 000000000000..4fd4b5c2c94e --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/AuthorizationPoliciesRegeneratePrimaryKey.json @@ -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=" + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/AuthorizationPoliciesRegenerateSecondaryKey.json b/arm-customer-insights/2017-04-26/examples/AuthorizationPoliciesRegenerateSecondaryKey.json new file mode 100644 index 000000000000..4fd4b5c2c94e --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/AuthorizationPoliciesRegenerateSecondaryKey.json @@ -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=" + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/ConnectorMappingsCreateOrUpdate.json b/arm-customer-insights/2017-04-26/examples/ConnectorMappingsCreateOrUpdate.json new file mode 100644 index 000000000000..a618ef8e989b --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/ConnectorMappingsCreateOrUpdate.json @@ -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" + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/ConnectorMappingsDelete.json b/arm-customer-insights/2017-04-26/examples/ConnectorMappingsDelete.json new file mode 100644 index 000000000000..0d7f1846761c --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/ConnectorMappingsDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "connectorName": "testConnector8858", + "mappingName": "testMapping12491", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/ConnectorMappingsGet.json b/arm-customer-insights/2017-04-26/examples/ConnectorMappingsGet.json new file mode 100644 index 000000000000..3bda377203e7 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/ConnectorMappingsGet.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "connectorName": "testConnector8858", + "mappingName": "testMapping12491", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "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" + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/ConnectorMappingsListByConnector.json b/arm-customer-insights/2017-04-26/examples/ConnectorMappingsListByConnector.json new file mode 100644 index 000000000000..5259745619e4 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/ConnectorMappingsListByConnector.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "connectorName": "testConnector8858", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [{ + "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" + }] + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/ConnectorsCreateOrUpdate.json b/arm-customer-insights/2017-04-26/examples/ConnectorsCreateOrUpdate.json new file mode 100644 index 000000000000..20c3288aa55f --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/ConnectorsCreateOrUpdate.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "connectorName": "testConnector", + "api-version": "2016-01-01", + "subscriptionId": "subid", + "parameters": { + "properties": { + "connectorType": "AzureBlob", + "displayName": "testConnector", + "description": "Test connector", + "connectorProperties": { + "connectionKeyVaultUrl": { + "organizationId": "XXX", + "organizationUrl": "https://XXX.crmlivetie.com/" + } + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/sdkTestHub/connectors/testConnector", + "name": "sdkTestHub/testConnector", + "properties": { + "connectorId": 0, + "connectorName": "testConnector", + "connectorType": "AzureBlob", + "description": "Test connector", + "displayName": "testConnector", + "state": "Creating", + "tenantId": "sdktesthub", + "connectorProperties": { + "connectionKeyVaultUrl": { + "organizationId": "XXX", + "organizationUrl": "https://XXX.crmlivetie.com/" + } + } + }, + "type": "Microsoft.CustomerInsights/hubs/connectors" + } + }, + "202": { + + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/ConnectorsDelete.json b/arm-customer-insights/2017-04-26/examples/ConnectorsDelete.json new file mode 100644 index 000000000000..223bbe751413 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/ConnectorsDelete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "connectorName": "testConnector", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + + }, + "202": { + + }, + "204": { + + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/ConnectorsGet.json b/arm-customer-insights/2017-04-26/examples/ConnectorsGet.json new file mode 100644 index 000000000000..8eb04134ad71 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/ConnectorsGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "connectorName": "testConnector", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/sdkTestHub/connectors/testConnector", + "name": "sdkTestHub/testConnector", + "properties": { + "connectorId": 0, + "connectorName": "testConnector", + "connectorType": "AzureBlob", + "description": "Test connector", + "displayName": "testConnector", + "state": "Creating", + "tenantId": "sdktesthub", + "connectorProperties": { + "connectionKeyVaultUrl": { + "organizationId": "XXX", + "organizationUrl": "https://XXX.crmlivetie.com/" + } + } + }, + "type": "Microsoft.CustomerInsights/hubs/connectors" + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/ConnectorsListByHub.json b/arm-customer-insights/2017-04-26/examples/ConnectorsListByHub.json new file mode 100644 index 000000000000..13f587390507 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/ConnectorsListByHub.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "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/sdkTestHub/connectors/testConnector", + "name": "sdkTestHub/testConnector", + "properties": { + "connectorId": 0, + "connectorName": "testConnector", + "connectorType": "AzureBlob", + "description": "Test connector", + "displayName": "testConnector", + "state": "Creating", + "tenantId": "sdktesthub", + "connectorProperties": { + "connectionKeyVaultUrl": { + "organizationId": "XXX", + "organizationUrl": "https://XXX.crmlivetie.com/" + } + } + }, + "type": "Microsoft.CustomerInsights/hubs/connectors" + }] + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/HubsCreateOrUpdate.json b/arm-customer-insights/2017-04-26/examples/HubsCreateOrUpdate.json new file mode 100644 index 000000000000..af90ced06152 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/HubsCreateOrUpdate.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "api-version": "2016-01-01", + "subscriptionId": "subid", + "parameters": { + "location": "West US", + "properties": { + "hubBillingInfo": { + "skuName": "B0", + "minUnits": 1, + "maxUnits": 5 + } + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/testHub2839", + "location": "West US", + "name": "testHub2839", + "properties": { + "apiEndpoint": "https://testHub2839.dfd.projectuic-int.net", + "provisioningState": "Creating", + "hubBillingInfo": { + "skuName": "B0", + "minUnits": 1, + "maxUnits": 5 + }, + "tenantFeatures": 0, + "webEndpoint": "https://testHub2839.dfdapps.projectuic-int.net" + }, + "tags": { + + }, + "type": "Microsoft.CustomerInsights/hubs" + } + }, + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/testHub2839", + "location": "East US", + "name": "testHub2839", + "properties": { + "apiEndpoint": "https://testHub2839.dfd.projectuic-int.net", + "provisioningState": "Creating", + "hubBillingInfo": { + "skuName": "B0", + "minUnits": 1, + "maxUnits": 5 + }, + "tenantFeatures": 0, + "webEndpoint": "https://testHub2839.dfdapps.projectuic-int.net" + }, + "tags": { + + }, + "type": "Microsoft.CustomerInsights/hubs" + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/HubsDelete.json b/arm-customer-insights/2017-04-26/examples/HubsDelete.json new file mode 100644 index 000000000000..6afd4d1b4ddc --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/HubsDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/HubsGet.json b/arm-customer-insights/2017-04-26/examples/HubsGet.json new file mode 100644 index 000000000000..ae0885c10cfa --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/HubsGet.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/testHub2839", + "location": "East US", + "name": "testHub2839", + "properties": { + "apiEndpoint": "https://testHub2839.dfd.projectuic-int.net", + "provisioningState": "Creating", + "hubBillingInfo": { + "skuName": "B0", + "minUnits": 1, + "maxUnits": 5 + }, + "tenantFeatures": 0, + "webEndpoint": "https://testHub2839.dfdapps.projectuic-int.net" + }, + "tags": { + + }, + "type": "Microsoft.CustomerInsights/hubs" + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/HubsList.json b/arm-customer-insights/2017-04-26/examples/HubsList.json new file mode 100644 index 000000000000..d86c96e024f6 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/HubsList.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "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", + "location": "East US", + "name": "azSdkTestHub", + "properties": { + "apiEndpoint": "https://azSdkTestHub.dfd.projectuic-int.net", + "provisioningState": "Succeeded", + "hubBillingInfo": { + "skuName": "B0", + "minUnits": 1, + "maxUnits": 1 + }, + "tenantFeatures": 0, + "webEndpoint": "https://azSdkTestHub.dfdapps.projectuic-int.net" + }, + "tags": { + + }, + "type": "Microsoft.CustomerInsights/hubs" + }, + { + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/testHub1058", + "location": "East US", + "name": "testHub1058", + "properties": { + "apiEndpoint": "https://testHub1058.dfd.projectuic-int.net", + "provisioningState": "Succeeded", + "hubBillingInfo": { + "skuName": "B0", + "minUnits": 1, + "maxUnits": 5 + }, + "tenantFeatures": 0, + "webEndpoint": "https://testHub1058.dfdapps.projectuic-int.net" + }, + "tags": { + + }, + "type": "Microsoft.CustomerInsights/hubs" + }] + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/HubsListByResourceGroup.json b/arm-customer-insights/2017-04-26/examples/HubsListByResourceGroup.json new file mode 100644 index 000000000000..ea16b5f3e3c9 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/HubsListByResourceGroup.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2016-01-01", + "subscriptionId": "subid", + "resourceGroupName": "TestHubRG" + }, + "responses": { + "200": { + "body": { + "value": [{ + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/azSdkTestHub", + "location": "East US", + "name": "azSdkTestHub", + "properties": { + "apiEndpoint": "https://azSdkTestHub.dfd.projectuic-int.net", + "provisioningState": "Succeeded", + "hubBillingInfo": { + "skuName": "B0", + "minUnits": 1, + "maxUnits": 1 + }, + "tenantFeatures": 0, + "webEndpoint": "https://azSdkTestHub.dfdapps.projectuic-int.net" + }, + "tags": { + + }, + "type": "Microsoft.CustomerInsights/hubs" + }, + { + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/testHub1058", + "location": "East US", + "name": "testHub1058", + "properties": { + "apiEndpoint": "https://testHub1058.dfd.projectuic-int.net", + "provisioningState": "Succeeded", + "hubBillingInfo": { + "skuName": "B0", + "minUnits": 1, + "maxUnits": 5 + }, + "tenantFeatures": 0, + "webEndpoint": "https://testHub1058.dfdapps.projectuic-int.net" + }, + "tags": { + + }, + "type": "Microsoft.CustomerInsights/hubs" + }] + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/HubsUpdate.json b/arm-customer-insights/2017-04-26/examples/HubsUpdate.json new file mode 100644 index 000000000000..3adb220f2dc6 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/HubsUpdate.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "api-version": "2016-01-01", + "subscriptionId": "subid", + "parameters": { + "location": "West US", + "properties": { + "hubBillingInfo": { + "skuName": "B0", + "minUnits": 1, + "maxUnits": 5 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/testHub2839", + "location": "East US", + "name": "testHub2839", + "properties": { + "apiEndpoint": "https://testHub2839.dfd.projectuic-int.net", + "provisioningState": "Created", + "hubBillingInfo": { + "skuName": "B0", + "minUnits": 1, + "maxUnits": 5 + }, + "tenantFeatures": 0, + "webEndpoint": "https://testHub2839.dfdapps.projectuic-int.net" + }, + "tags": { + + }, + "type": "Microsoft.CustomerInsights/hubs" + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/ImagesGetUploadUrlForData.json b/arm-customer-insights/2017-04-26/examples/ImagesGetUploadUrlForData.json new file mode 100644 index 000000000000..454860d5e639 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/ImagesGetUploadUrlForData.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "api-version": "2016-01-01", + "subscriptionId": "subid", + "parameters": { + "entityType": "Profile", + "entityTypeName": "Contact", + "relativePath": "images/profile1.png" + } + }, + "responses": { + "200": { + "body": { + "contentUrl": "https://ucidfdbl2001img.blob.core.windows.net/images/3ac3a97a5e3246ffb41812f60fd9f83c/EntityTypeImage/Profile/Contact/images/profile1.png?sv=2015-04-05&sr=b&sig=yIt7DGVRTyNl15%2BPc0kO%2FDITJ2cExnBPVvvh6p86qdc%3D&se=2017-01-06T01%3A56%3A43Z&sp=cw", + "relativePath": "images/profile1.png", + "imageExists": false + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/ImagesGetUploadUrlForEntityType.json b/arm-customer-insights/2017-04-26/examples/ImagesGetUploadUrlForEntityType.json new file mode 100644 index 000000000000..454860d5e639 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/ImagesGetUploadUrlForEntityType.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "api-version": "2016-01-01", + "subscriptionId": "subid", + "parameters": { + "entityType": "Profile", + "entityTypeName": "Contact", + "relativePath": "images/profile1.png" + } + }, + "responses": { + "200": { + "body": { + "contentUrl": "https://ucidfdbl2001img.blob.core.windows.net/images/3ac3a97a5e3246ffb41812f60fd9f83c/EntityTypeImage/Profile/Contact/images/profile1.png?sv=2015-04-05&sr=b&sig=yIt7DGVRTyNl15%2BPc0kO%2FDITJ2cExnBPVvvh6p86qdc%3D&se=2017-01-06T01%3A56%3A43Z&sp=cw", + "relativePath": "images/profile1.png", + "imageExists": false + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/InteractionsCreateOrUpdate.json b/arm-customer-insights/2017-04-26/examples/InteractionsCreateOrUpdate.json new file mode 100644 index 000000000000..aa4b51c848bb --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/InteractionsCreateOrUpdate.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "interactionName": "TestProfileType396", + "api-version": "2016-01-01", + "subscriptionId": "subid", + "parameters": { + "properties": { + "idPropertyNames": ["TestInteractionType6358"], + "primaryParticipantProfilePropertyName": "profile1", + "apiEntitySetName": "TestInteractionType6358", + "fields": [{ + "fieldName": "TestInteractionType6358", + "fieldType": "Edm.String", + "isArray": false, + "isRequired": true + }, + { + "fieldName": "profile1", + "fieldType": "Edm.String" + }], + "smallImage": "\\\\Images\\\\smallImage", + "mediumImage": "\\\\Images\\\\MediumImage", + "largeImage": "\\\\Images\\\\LargeImage" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/azSdkTestHub/interactions/TestInteractionType6358", + "name": "azSdkTestHub/TestInteractionType6358", + "properties": { + "idPropertyNames": ["TestInteractionType6358"], + "primaryParticipantProfilePropertyName": "profile1", + "apiEntitySetName": "TestInteractionType6358", + "entityType": "Interaction", + "fields": [{ + "fieldName": "TestInteractionType6358", + "fieldType": "Edm.String", + "isArray": false, + "isEnum": false, + "isFlagEnum": false, + "isImage": false, + "isLocalizedString": false, + "isName": false, + "isRequired": true, + "propertyId": "id1" + }, + { + "fieldName": "profile1", + "fieldType": "Edm.String", + "isArray": false, + "isEnum": false, + "isFlagEnum": false, + "isImage": false, + "isLocalizedString": false, + "isName": false, + "isRequired": true, + "propertyId": "id1" + }], + "instancesCount": 0, + "provisioningState": "Provisioning", + "tenantId": "azsdktesthub", + "typeName": "TestInteractionType6358", + "largeImage": "\\\\Images\\\\LargeImage", + "mediumImage": "\\\\Images\\\\MediumImage", + "smallImage": "\\\\Images\\\\smallImage" + }, + "type": "Microsoft.CustomerInsights/hubs/interactions" + } + }, + "202": { + + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/InteractionsGet.json b/arm-customer-insights/2017-04-26/examples/InteractionsGet.json new file mode 100644 index 000000000000..0aac643643d4 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/InteractionsGet.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "interactionName": "TestInteractionType6358", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/azSdkTestHub/interactions/TestInteractionType6358", + "name": "azSdkTestHub/TestInteractionType6358", + "properties": { + "idPropertyNames": ["TestInteractionType6358"], + "primaryParticipantProfilePropertyName": "profile1", + "apiEntitySetName": "TestInteractionType6358", + "entityType": "Interaction", + "fields": [{ + "fieldName": "TestInteractionType6358", + "fieldType": "Edm.String", + "isArray": false, + "isEnum": false, + "isFlagEnum": false, + "isImage": false, + "isLocalizedString": false, + "isName": false, + "isRequired": true, + "propertyId": "id1", + "dataSourcePrecedenceRules": [] + }, + { + "fieldName": "profile1", + "fieldType": "Edm.String", + "isArray": false, + "isEnum": false, + "isFlagEnum": false, + "isImage": false, + "isLocalizedString": false, + "isName": false, + "isRequired": true, + "propertyId": "id1", + "dataSourcePrecedenceRules": [ + { + "dataSource": { + "dataSourceReferenceId": "70", + "dataSourceType": "Connector", + "name": "crm2", + "status": "Active", + "id": 1 + }, + "precedence": 50 + } + ] + }], + "instancesCount": 0, + "provisioningState": "Provisioning", + "tenantId": "azsdktesthub", + "typeName": "TestInteractionType6358", + "largeImage": "\\\\Images\\\\LargeImage", + "mediumImage": "\\\\Images\\\\MediumImage", + "smallImage": "\\\\Images\\\\smallImage", + "defaultDataSource": { + "dataSourceReferenceId": "70", + "dataSourceType": "Connector", + "name": "crm2", + "status": "Active", + "id": 1 + }, + "dataSourcePrecedenceRules": [ + { + "dataSource": { + "dataSourceReferenceId": "70", + "dataSourceType": "Connector", + "name": "crm2", + "status": "Active", + "id": 1 + }, + "precedence": 50 + } + ], + "isActivity": true + }, + "type": "Microsoft.CustomerInsights/hubs/interactions" + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/InteractionsListByHub.json b/arm-customer-insights/2017-04-26/examples/InteractionsListByHub.json new file mode 100644 index 000000000000..2d16aa54cef4 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/InteractionsListByHub.json @@ -0,0 +1,89 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "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/interactions/TestInteractionType6358", + "name": "azSdkTestHub/TestInteractionType6358", + "properties": { + "idPropertyNames": ["TestInteractionType6358"], + "primaryParticipantProfilePropertyName": "profile1", + "apiEntitySetName": "TestInteractionType6358", + "entityType": "Interaction", + "fields": [{ + "fieldName": "TestInteractionType6358", + "fieldType": "Edm.String", + "isArray": false, + "isEnum": false, + "isFlagEnum": false, + "isImage": false, + "isLocalizedString": false, + "isName": false, + "isRequired": true, + "propertyId": "id1", + "dataSourcePrecedenceRules": [] + }, + { + "fieldName": "profile1", + "fieldType": "Edm.String", + "isArray": false, + "isEnum": false, + "isFlagEnum": false, + "isImage": false, + "isLocalizedString": false, + "isName": false, + "isRequired": true, + "propertyId": "id1", + "dataSourcePrecedenceRules": [ + { + "dataSource": { + "dataSourceReferenceId": "70", + "dataSourceType": "Connector", + "name": "crm2", + "status": "Active", + "id": 1 + }, + "precedence": 50 + } + ] + }], + "instancesCount": 0, + "provisioningState": "Provisioning", + "tenantId": "azsdktesthub", + "typeName": "TestInteractionType6358", + "largeImage": "\\\\Images\\\\LargeImage", + "mediumImage": "\\\\Images\\\\MediumImage", + "smallImage": "\\\\Images\\\\smallImage", + "defaultDataSource": { + "dataSourceReferenceId": "70", + "dataSourceType": "Connector", + "name": "crm2", + "status": "Active", + "id": 1 + }, + "dataSourcePrecedenceRules": [ + { + "dataSource": { + "dataSourceReferenceId": "70", + "dataSourceType": "Connector", + "name": "crm2", + "status": "Active", + "id": 1 + }, + "precedence": 50 + } + ], + "isActivity": true + }, + "type": "Microsoft.CustomerInsights/hubs/interactions" + }] + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/InteractionsSuggestRelationshipLinks.json b/arm-customer-insights/2017-04-26/examples/InteractionsSuggestRelationshipLinks.json new file mode 100644 index 000000000000..504cb8b9d223 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/InteractionsSuggestRelationshipLinks.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "interactionName": "Deposit", + "api-version": "2017-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "interactionName": "Deposit", + "suggestedRelationships": [{ + "profileName": "Branch", + "profilePropertyReferences": [{ + "interactionPropertyName": "BranchId", + "profilePropertyName": "BranchId" + }], + "relatedProfileName": "Contact", + "relatedProfilePropertyReferences": [{ + "interactionPropertyName": "ContactId", + "profilePropertyName": "ContactId" + }] + }, + { + "profileName": "Contact", + "profilePropertyReferences": [{ + "interactionPropertyName": "ContactId", + "profilePropertyName": "ContactId" + }], + "relatedProfileName": "Branch", + "relatedProfilePropertyReferences": [{ + "interactionPropertyName": "BranchId", + "profilePropertyName": "BranchId" + }] + }] + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/KpiCreateOrUpdate.json b/arm-customer-insights/2017-04-26/examples/KpiCreateOrUpdate.json new file mode 100644 index 000000000000..bc06a79c3e8a --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/KpiCreateOrUpdate.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "kpiName": "kpiTest45453647", + "api-version": "2016-01-01", + "subscriptionId": "subid", + "parameters": { + "properties": { + "entityType": "Profile", + "entityTypeName": "testProfile2327128", + "displayName": { + "en-us": "Kpi DisplayName" + }, + "description": { + "en-us": "Kpi Description" + }, + "calculationWindow": "Day", + "function": "Sum", + "expression": "SavingAccountBalance", + "unit": "unit", + "groupBy": ["SavingAccountBalance"], + "thresHolds": { + "lowerLimit": 5.0, + "upperLimit": 50.0, + "increasingKpi": true + }, + "aliases": [{ + "aliasName": "alias", + "expression": "Id+4" + }] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/sdkTestHub/kpi/kpiTest45453647", + "name": "sdkTestHub/kpiTest45453647", + "properties": { + "aliases": [{ + "aliasName": "alias", + "expression": "Id+4" + }], + "calculationWindow": "Day", + "description": { + "en-us": "Kpi Description" + }, + "displayName": { + "en-us": "Kpi DisplayName" + }, + "entityType": "Profile", + "entityTypeName": "testProfile2327128", + "expression": "SavingAccountBalance", + "function": "Sum", + "groupBy": ["SavingAccountBalance"], + "kpiName": "kpiTest45453647", + "provisioningState": "Provisioning", + "tenantId": "sdktesthub", + "thresHolds": { + "increasingKpi": true, + "lowerLimit": 5.0, + "upperLimit": 50.0 + }, + "unit": "unit" + }, + "type": "Microsoft.CustomerInsights/hubs/kpi" + } + }, + "202": { + + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/KpiDelete.json b/arm-customer-insights/2017-04-26/examples/KpiDelete.json new file mode 100644 index 000000000000..493a641b7260 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/KpiDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "kpiName": "kpiTest45453647", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": {} + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/KpiGet.json b/arm-customer-insights/2017-04-26/examples/KpiGet.json new file mode 100644 index 000000000000..262b6a9ebfa0 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/KpiGet.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "kpiName": "kpiTest45453647", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/sdkTestHub/kpi/kpiTest45453647", + "name": "sdkTestHub/kpiTest45453647", + "properties": { + "aliases": [{ + "aliasName": "alias", + "expression": "Id+4" + }], + "calculationWindow": "Day", + "description": { + "en-us": "Kpi Description" + }, + "displayName": { + "en-us": "Kpi DisplayName" + }, + "entityType": "Profile", + "entityTypeName": "testProfile2327128", + "expression": "SavingAccountBalance", + "function": "Sum", + "groupBy": ["SavingAccountBalance"], + "kpiName": "kpiTest45453647", + "provisioningState": "Provisioning", + "tenantId": "sdktesthub", + "thresHolds": { + "increasingKpi": true, + "lowerLimit": 5.0, + "upperLimit": 50.0 + }, + "unit": "unit" + }, + "type": "Microsoft.CustomerInsights/hubs/kpi" + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/KpiListByHub.json b/arm-customer-insights/2017-04-26/examples/KpiListByHub.json new file mode 100644 index 000000000000..91c607454f85 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/KpiListByHub.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "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/sdkTestHub/kpi/kpiTest45453647", + "name": "sdkTestHub/kpiTest45453647", + "properties": { + "aliases": [{ + "aliasName": "alias", + "expression": "Id+4" + }], + "calculationWindow": "Day", + "description": { + "en-us": "Kpi Description" + }, + "displayName": { + "en-us": "Kpi DisplayName" + }, + "entityType": "Profile", + "entityTypeName": "testProfile2327128", + "expression": "SavingAccountBalance", + "function": "Sum", + "groupBy": ["SavingAccountBalance"], + "kpiName": "kpiTest45453647", + "provisioningState": "Provisioning", + "tenantId": "sdktesthub", + "thresHolds": { + "increasingKpi": true, + "lowerLimit": 5.0, + "upperLimit": 50.0 + }, + "unit": "unit" + }, + "type": "Microsoft.CustomerInsights/hubs/kpi" + }] + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/KpiReprocess.json b/arm-customer-insights/2017-04-26/examples/KpiReprocess.json new file mode 100644 index 000000000000..659260336127 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/KpiReprocess.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "kpiName": "kpiTest45453647", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "202": { + + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/LinksCreateOrUpdate.json b/arm-customer-insights/2017-04-26/examples/LinksCreateOrUpdate.json new file mode 100644 index 000000000000..8f3c75f69ebe --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/LinksCreateOrUpdate.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "linkName": "linkTest4806", + "api-version": "2017-04-26", + "subscriptionId": "subid", + "parameters": { + "properties": { + "linkName": "linkTest4806", + "sourceEntityTypeName": "testInteraction1949", + "targetEntityTypeName": "testProfile1446", + "sourceEntityType": "Interaction", + "targetEntityType": "Profile", + "displayName": { + "en-us": "Link DisplayName" + }, + "description": { + "en-us": "Link Description" + }, + "mappings": [ + { + "sourcePropertyName": "testInteraction1949", + "targetPropertyName": "testProfile1446", + "linkType": "UpdateAlways" + } + ], + "participantPropertyReferences": [ + { + "sourcePropertyName": "testInteraction1949", + "targetPropertyName": "ProfileId" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/azSdkTestHub/links/linkTest4806", + "name": "azSdkTestHub/linkTest4806", + "properties": { + "description": { + "en-us": "Link Description" + }, + "displayName": { + "en-us": "Link DisplayName" + }, + "linkName": "linkTest4806", + "mappings": [ + { + "sourcePropertyName": "testInteraction1949", + "targetPropertyName": "testProfile1446", + "linkType": "UpdateAlways" + } + ], + "participantPropertyReferences": [ + { + "sourcePropertyName": "testInteraction1949", + "targetPropertyName": "ProfileId" + } + ], + "provisioningState": "Provisioning", + "sourceEntityTypeName": "testInteraction1949", + "targetEntityTypeName": "testProfile1446", + "sourceEntityType": "Interaction", + "targetEntityType": "Profile", + "tenantId": "azsdktesthub", + "referenceOnly": false + }, + "type": "Microsoft.CustomerInsights/hubs/links" + } + }, + "202": {} + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/LinksDelete.json b/arm-customer-insights/2017-04-26/examples/LinksDelete.json new file mode 100644 index 000000000000..2b41c5cb20f7 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/LinksDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "linkName": "linkTest4806", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "202": {} + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/LinksGet.json b/arm-customer-insights/2017-04-26/examples/LinksGet.json new file mode 100644 index 000000000000..3721c651a7c8 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/LinksGet.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "linkName": "linkTest4806", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/azSdkTestHub/links/linkTest4806", + "name": "azSdkTestHub/linkTest4806", + "properties": { + "description": { + "en-us": "Link Description" + }, + "displayName": { + "en-us": "Link DisplayName" + }, + "linkName": "linkTest4806", + "mappings": [{ + "sourcePropertyName": "testInteraction1949", + "targetPropertyName": "testProfile1446", + "linkType": "UpdateAlways" + }], + "participantPropertyReferences": [{ + "sourcePropertyName": "testInteraction1949", + "targetPropertyName": "ProfileId" + }], + "provisioningState": "Provisioning", + "sourceEntityTypeName": "testInteraction1949", + "targetEntityTypeName": "testProfile1446", + "sourceEntityType": "Interaction", + "targetEntityType": "Profile", + "tenantId": "azsdktesthub", + "referenceOnly": false + }, + "type": "Microsoft.CustomerInsights/hubs/links" + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/LinksListByHub.json b/arm-customer-insights/2017-04-26/examples/LinksListByHub.json new file mode 100644 index 000000000000..335f4831167c --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/LinksListByHub.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "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/links/linkTest4806", + "name": "azSdkTestHub/linkTest4806", + "properties": { + "description": { + "en-us": "Link Description" + }, + "displayName": { + "en-us": "Link DisplayName" + }, + "linkName": "linkTest4806", + "mappings": [{ + "sourcePropertyName": "testInteraction1949", + "targetPropertyName": "testProfile1446", + "linkType": "UpdateAlways" + }], + "participantPropertyReferences": [{ + "sourcePropertyName": "testInteraction1949", + "targetPropertyName": "ProfileId" + }], + "provisioningState": "Provisioning", + "sourceEntityTypeName": "testInteraction1949", + "targetEntityTypeName": "testProfile1446", + "sourceEntityType": "Interaction", + "targetEntityType": "Profile", + "tenantId": "azsdktesthub", + "referenceOnly": false + }, + "type": "Microsoft.CustomerInsights/hubs/links" + }] + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/ProfileGetEnrichingKpis.json b/arm-customer-insights/2017-04-26/examples/ProfileGetEnrichingKpis.json new file mode 100644 index 000000000000..511cb1608d8d --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/ProfileGetEnrichingKpis.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "profileName": "TestProfileType396", + "api-version": "2017-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": [{ + "calculationWindow": "Month", + "calculationWindowFieldName": "", + "description": { + "en-us": "MonthlyDeposits" + }, + "entityType": "Interaction", + "entityTypeName": "Deposit", + "expression": "Amount", + "filter": "", + "function": "Sum", + "groupBy": ["AccountType", + "BranchId", + "ContactId", + "Location", + "Type"], + "groupByMetadata": [{ + "displayName": { + "en-us": "AccountType" + }, + "fieldName": "AccountType", + "fieldType": "Edm.String" + }, + { + "displayName": { + "en-us": "BranchId" + }, + "fieldName": "BranchId", + "fieldType": "Edm.Int32" + }, + { + "displayName": { + "en-us": "ContactId" + }, + "fieldName": "ContactId", + "fieldType": "Edm.Int32" + }, + { + "displayName": { + "en-us": "Location" + }, + "fieldName": "Location", + "fieldType": "Edm.String" + }, + { + "displayName": { + "en-us": "Type" + }, + "fieldName": "Type", + "fieldType": "Edm.String" + }], + "kpiName": "MonthlyDeposits", + "participantProfilesMetadata": [], + "provisioningState": "Succeeded", + "tenantId": "sdkTestHub", + "thresHolds": { + "increasingKpi": true, + "lowerLimit": 0, + "upperLimit": 0 + }, + "unit": "" + }] + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/ProfilesCreateOrUpdate.json b/arm-customer-insights/2017-04-26/examples/ProfilesCreateOrUpdate.json new file mode 100644 index 000000000000..601cc85f3181 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/ProfilesCreateOrUpdate.json @@ -0,0 +1,156 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "profileName": "TestProfileType396", + "api-version": "2016-01-01", + "subscriptionId": "subid", + "parameters": { + "properties": { + "strongIds": [{ + "keyPropertyNames": ["Id", + "SavingAccountBalance"], + "strongIdName": "Id" + }, + { + "keyPropertyNames": ["ProfileId", + "LastName"], + "strongIdName": "ProfileId" + }], + "apiEntitySetName": "TestProfileType396", + "fields": [{ + "fieldName": "Id", + "fieldType": "Edm.String", + "isArray": false, + "isRequired": true + }, + { + "fieldName": "ProfileId", + "fieldType": "Edm.String", + "isArray": false, + "isRequired": true + }, + { + "fieldName": "LastName", + "fieldType": "Edm.String", + "isArray": false, + "isRequired": true + }, + { + "fieldName": "TestProfileType396", + "fieldType": "Edm.String", + "isArray": false, + "isRequired": true + }, + { + "fieldName": "SavingAccountBalance", + "fieldType": "Edm.Int32", + "isArray": false, + "isRequired": true + }], + "schemaItemTypeLink": "SchemaItemTypeLink", + "smallImage": "\\\\Images\\\\smallImage", + "mediumImage": "\\\\Images\\\\MediumImage", + "largeImage": "\\\\Images\\\\LargeImage" + } + } + }, + "responses": { + "202": { + + }, + "200": { + "body": { + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/azSdkTestHub/profiles/TestProfileType396", + "name": "azSdkTestHub/TestProfileType396", + "properties": { + "strongIds": [{ + "keyPropertyNames": ["Id", + "savingAccountBalance"], + "strongIdName": "Id" + }, + { + "keyPropertyNames": ["ProfileId", + "LastName"], + "strongIdName": "ProfileId" + }, + { + "keyPropertyNames": ["ProfileId"], + "strongIdName": "ProfileId" + }], + "apiEntitySetName": "TestProfileType396", + "entityType": "Profile", + "fields": [{ + "fieldName": "Id", + "fieldType": "Edm.String", + "isArray": false, + "isEnum": false, + "isFlagEnum": false, + "isImage": false, + "isLocalizedString": false, + "isName": false, + "isRequired": true, + "propertyId": "id1" + }, + { + "fieldName": "ProfileId", + "fieldType": "Edm.String", + "isArray": false, + "isEnum": false, + "isFlagEnum": false, + "isImage": false, + "isLocalizedString": false, + "isName": false, + "isRequired": true, + "propertyId": "id1" + }, + { + "fieldName": "LastName", + "fieldType": "Edm.String", + "isArray": false, + "isEnum": false, + "isFlagEnum": false, + "isImage": false, + "isLocalizedString": false, + "isName": false, + "isRequired": true, + "propertyId": "id1" + }, + { + "fieldName": "TestProfileType396", + "fieldType": "Edm.String", + "isArray": false, + "isEnum": false, + "isFlagEnum": false, + "isImage": false, + "isLocalizedString": false, + "isName": false, + "isRequired": true, + "propertyId": "id1" + }, + { + "fieldName": "SavingAccountBalance", + "fieldType": "Edm.Int32", + "isArray": false, + "isEnum": false, + "isFlagEnum": false, + "isImage": false, + "isLocalizedString": false, + "isName": false, + "isRequired": true, + "propertyId": "id1" + }], + "instancesCount": 0, + "provisioningState": "Provisioning", + "schemaItemTypeLink": "SchemaItemTypeLink", + "tenantId": "azsdktesthub", + "typeName": "TestProfileType396", + "largeImage": "\\\\Images\\\\LargeImage", + "mediumImage": "\\\\Images\\\\MediumImage", + "smallImage": "\\\\Images\\\\smallImage" + }, + "type": "Microsoft.CustomerInsights/hubs/profiles" + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/ProfilesDelete.json b/arm-customer-insights/2017-04-26/examples/ProfilesDelete.json new file mode 100644 index 000000000000..ff9486f362a3 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/ProfilesDelete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "profileName": "TestProfileType396", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + + }, + "202": { + + }, + "204": { + + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/ProfilesGet.json b/arm-customer-insights/2017-04-26/examples/ProfilesGet.json new file mode 100644 index 000000000000..ffeeb1edc348 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/ProfilesGet.json @@ -0,0 +1,104 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "profileName": "TestProfileType396", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/azSdkTestHub/profiles/TestProfileType396", + "name": "azSdkTestHub/TestProfileType396", + "properties": { + "strongIds": [{ + "keyPropertyNames": ["Id", + "savingAccountBalance"], + "strongIdName": "Id" + }, + { + "keyPropertyNames": ["ProfileId", + "LastName"], + "strongIdName": "ProfileId" + }, + { + "keyPropertyNames": ["ProfileId"], + "strongIdName": "ProfileId" + }], + "apiEntitySetName": "TestProfileType396", + "entityType": "Profile", + "fields": [{ + "fieldName": "Id", + "fieldType": "Edm.String", + "isArray": false, + "isEnum": false, + "isFlagEnum": false, + "isImage": false, + "isLocalizedString": false, + "isName": false, + "isRequired": true, + "propertyId": "id1" + }, + { + "fieldName": "ProfileId", + "fieldType": "Edm.String", + "isArray": false, + "isEnum": false, + "isFlagEnum": false, + "isImage": false, + "isLocalizedString": false, + "isName": false, + "isRequired": true, + "propertyId": "id1" + }, + { + "fieldName": "LastName", + "fieldType": "Edm.String", + "isArray": false, + "isEnum": false, + "isFlagEnum": false, + "isImage": false, + "isLocalizedString": false, + "isName": false, + "isRequired": true, + "propertyId": "id1" + }, + { + "fieldName": "TestProfileType396", + "fieldType": "Edm.String", + "isArray": false, + "isEnum": false, + "isFlagEnum": false, + "isImage": false, + "isLocalizedString": false, + "isName": false, + "isRequired": true, + "propertyId": "id1" + }, + { + "fieldName": "SavingAccountBalance", + "fieldType": "Edm.Int32", + "isArray": false, + "isEnum": false, + "isFlagEnum": false, + "isImage": false, + "isLocalizedString": false, + "isName": false, + "isRequired": true, + "propertyId": "id1" + }], + "instancesCount": 0, + "provisioningState": "Provisioning", + "schemaItemTypeLink": "SchemaItemTypeLink", + "tenantId": "azsdktesthub", + "typeName": "TestProfileType396", + "largeImage": "\\\\Images\\\\LargeImage", + "mediumImage": "\\\\Images\\\\MediumImage", + "smallImage": "\\\\Images\\\\smallImage" + }, + "type": "Microsoft.CustomerInsights/hubs/profiles" + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/ProfilesListByHub.json b/arm-customer-insights/2017-04-26/examples/ProfilesListByHub.json new file mode 100644 index 000000000000..4442c3826d5d --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/ProfilesListByHub.json @@ -0,0 +1,106 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "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/profiles/TestProfileType396", + "name": "azSdkTestHub/TestProfileType396", + "properties": { + "strongIds": [{ + "keyPropertyNames": ["Id", + "savingAccountBalance"], + "strongIdName": "Id" + }, + { + "keyPropertyNames": ["ProfileId", + "LastName"], + "strongIdName": "ProfileId" + }, + { + "keyPropertyNames": ["ProfileId"], + "strongIdName": "ProfileId" + }], + "apiEntitySetName": "TestProfileType396", + "entityType": "Profile", + "fields": [{ + "fieldName": "Id", + "fieldType": "Edm.String", + "isArray": false, + "isEnum": false, + "isFlagEnum": false, + "isImage": false, + "isLocalizedString": false, + "isName": false, + "isRequired": true, + "propertyId": "id1" + }, + { + "fieldName": "ProfileId", + "fieldType": "Edm.String", + "isArray": false, + "isEnum": false, + "isFlagEnum": false, + "isImage": false, + "isLocalizedString": false, + "isName": false, + "isRequired": true, + "propertyId": "id1" + }, + { + "fieldName": "LastName", + "fieldType": "Edm.String", + "isArray": false, + "isEnum": false, + "isFlagEnum": false, + "isImage": false, + "isLocalizedString": false, + "isName": false, + "isRequired": true, + "propertyId": "id1" + }, + { + "fieldName": "TestProfileType396", + "fieldType": "Edm.String", + "isArray": false, + "isEnum": false, + "isFlagEnum": false, + "isImage": false, + "isLocalizedString": false, + "isName": false, + "isRequired": true, + "propertyId": "id1" + }, + { + "fieldName": "SavingAccountBalance", + "fieldType": "Edm.Int32", + "isArray": false, + "isEnum": false, + "isFlagEnum": false, + "isImage": false, + "isLocalizedString": false, + "isName": false, + "isRequired": true, + "propertyId": "id1" + }], + "instancesCount": 0, + "provisioningState": "Provisioning", + "schemaItemTypeLink": "SchemaItemTypeLink", + "tenantId": "azsdktesthub", + "typeName": "TestProfileType396", + "largeImage": "\\\\Images\\\\LargeImage", + "mediumImage": "\\\\Images\\\\MediumImage", + "smallImage": "\\\\Images\\\\smallImage" + }, + "type": "Microsoft.CustomerInsights/hubs/profiles" + }], + "nextLink": "" + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/RelationshipLinksCreateOrUpdate.json b/arm-customer-insights/2017-04-26/examples/RelationshipLinksCreateOrUpdate.json new file mode 100644 index 000000000000..49c778ee9665 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/RelationshipLinksCreateOrUpdate.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "relationshipLinkName": "Somelink", + "api-version": "2016-01-01", + "subscriptionId": "subid", + "parameters": { + "properties": { + "displayName": { + "en-us": "Link DisplayName" + }, + "description": { + "en-us": "Link Description" + }, + "interactionType": "testInteraction4332", + "linkName": "Somelink", + "profilePropertyReferences": [{ + "interactionPropertyName": "profile1", + "profilePropertyName": "ProfileId" + }], + "relatedProfilePropertyReferences": [{ + "interactionPropertyName": "profile1", + "profilePropertyName": "ProfileId" + }], + "relationshipName": "testProfile2326994" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/sdkTestHub/relationshipLinks/Somelink", + "name": "sdkTestHub/Somelink", + "properties": { + "description": { + "en-us": "Link Description" + }, + "displayName": { + "en-us": "Link DisplayName" + }, + "interactionType": "testInteraction4332", + "linkName": "Somelink", + "profilePropertyReferences": [{ + "interactionPropertyName": "profile1", + "profilePropertyName": "ProfileId" + }], + "provisioningState": "Provisioning", + "relatedProfilePropertyReferences": [{ + "interactionPropertyName": "profile1", + "profilePropertyName": "ProfileId" + }], + "relationshipName": "testProfile2326994", + "tenantId": "sdktesthub" + }, + "type": "Microsoft.CustomerInsights/hubs/relationshipLinks" + } + }, + "202": { + + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/RelationshipLinksDelete.json b/arm-customer-insights/2017-04-26/examples/RelationshipLinksDelete.json new file mode 100644 index 000000000000..373fd21aa152 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/RelationshipLinksDelete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "relationshipLinkName": "Somelink", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + + }, + "202": { + + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/RelationshipLinksGet.json b/arm-customer-insights/2017-04-26/examples/RelationshipLinksGet.json new file mode 100644 index 000000000000..b19354bee869 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/RelationshipLinksGet.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "relationshipLinkName": "Somelink", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/sdkTestHub/relationshipLinks/Somelink", + "name": "sdkTestHub/Somelink", + "properties": { + "description": { + "en-us": "Link Description" + }, + "displayName": { + "en-us": "Link DisplayName" + }, + "interactionType": "testInteraction4332", + "linkName": "Somelink", + "profilePropertyReferences": [{ + "interactionPropertyName": "profile1", + "profilePropertyName": "ProfileId" + }], + "provisioningState": "Provisioning", + "relatedProfilePropertyReferences": [{ + "interactionPropertyName": "profile1", + "profilePropertyName": "ProfileId" + }], + "relationshipName": "testProfile2326994", + "tenantId": "sdktesthub" + }, + "type": "Microsoft.CustomerInsights/hubs/relationshipLinks" + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/RelationshipLinksListByHub.json b/arm-customer-insights/2017-04-26/examples/RelationshipLinksListByHub.json new file mode 100644 index 000000000000..220b1adccf7f --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/RelationshipLinksListByHub.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "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/sdkTestHub/relationshipLinks/Somelink", + "name": "sdkTestHub/Somelink", + "properties": { + "description": { + "en-us": "Link Description" + }, + "displayName": { + "en-us": "Link DisplayName" + }, + "interactionType": "testInteraction4332", + "linkName": "Somelink", + "profilePropertyReferences": [{ + "interactionPropertyName": "profile1", + "profilePropertyName": "ProfileId" + }], + "provisioningState": "Provisioning", + "relatedProfilePropertyReferences": [{ + "interactionPropertyName": "profile1", + "profilePropertyName": "ProfileId" + }], + "relationshipName": "testProfile2326994", + "tenantId": "sdktesthub" + }, + "type": "Microsoft.CustomerInsights/hubs/relationshipLinks" + }] + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/RelationshipsCreateOrUpdate.json b/arm-customer-insights/2017-04-26/examples/RelationshipsCreateOrUpdate.json new file mode 100644 index 000000000000..d6db25d0de72 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/RelationshipsCreateOrUpdate.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "relationshipName": "SomeRelationship", + "api-version": "2016-01-01", + "subscriptionId": "subid", + "parameters": { + "properties": { + "cardinality": "OneToOne", + "displayName": { + "en-us": "Relationship DisplayName" + }, + "description": { + "en-us": "Relationship Description" + }, + "fields": [], + "profileType": "testProfile2326994", + "relatedProfileType": "testProfile2326994" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/sdkTestHub/relationships/SomeRelationship", + "name": "sdkTestHub/testProfile2326994", + "properties": { + "cardinality": "OneToOne", + "description": { + "en-us": "Relationship Description" + }, + "displayName": { + "en-us": "Relationship DisplayName" + }, + "fields": [], + "lookupMappings": [], + "profileType": "testProfile2326994", + "provisioningState": "Provisioning", + "relatedProfileType": "testProfile2326994", + "relationshipName": "SomeRelationship", + "tenantId": "sdktesthub" + }, + "type": "Microsoft.CustomerInsights/hubs/relationships" + } + }, + "202": { + + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/RelationshipsDelete.json b/arm-customer-insights/2017-04-26/examples/RelationshipsDelete.json new file mode 100644 index 000000000000..a28259d3e262 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/RelationshipsDelete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "relationshipName": "SomeRelationship", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + + }, + "202": { + + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/RelationshipsGet.json b/arm-customer-insights/2017-04-26/examples/RelationshipsGet.json new file mode 100644 index 000000000000..7135827b9b34 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/RelationshipsGet.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "relationshipName": "SomeRelationship", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/sdkTestHub/relationships/SomeRelationship", + "name": "sdkTestHub/testProfile2326994", + "properties": { + "cardinality": "OneToOne", + "description": { + "en-us": "Relationship Description" + }, + "displayName": { + "en-us": "Relationship DisplayName" + }, + "fields": [], + "lookupMappings": [], + "profileType": "testProfile2326994", + "provisioningState": "Provisioning", + "relatedProfileType": "testProfile2326994", + "relationshipName": "SomeRelationship", + "tenantId": "sdktesthub" + }, + "type": "Microsoft.CustomerInsights/hubs/relationships" + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/RelationshipsListByHub.json b/arm-customer-insights/2017-04-26/examples/RelationshipsListByHub.json new file mode 100644 index 000000000000..67ab7fdf6074 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/RelationshipsListByHub.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "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/sdkTestHub/relationships/SomeRelationship", + "name": "sdkTestHub/testProfile2326994", + "properties": { + "cardinality": "OneToOne", + "description": { + "en-us": "Relationship Description" + }, + "displayName": { + "en-us": "Relationship DisplayName" + }, + "fields": [], + "lookupMappings": [], + "profileType": "testProfile2326994", + "provisioningState": "Provisioning", + "relatedProfileType": "testProfile2326994", + "relationshipName": "SomeRelationship", + "tenantId": "sdktesthub" + }, + "type": "Microsoft.CustomerInsights/hubs/relationships" + }] + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/RoleAssignmentsCreateOrUpdate.json b/arm-customer-insights/2017-04-26/examples/RoleAssignmentsCreateOrUpdate.json new file mode 100644 index 000000000000..eaab4cf33e00 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/RoleAssignmentsCreateOrUpdate.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "assignmentName": "assignmentName8976", + "api-version": "2016-01-01", + "subscriptionId": "subid", + "parameters": { + "properties": { + "role": "Admin", + "principals": [{ + "principalId": "4c54c38ffa9b416ba5a6d6c8a20cbe7e", + "principalType": "User" + }, + { + "principalId": "93061d15a5054f2b9948ae25724cf9d5", + "principalType": "User" + }] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/azSdkTestHub/RoleAssignments/assignmentName8976", + "name": "azSdkTestHub/assignmentName8976", + "properties": { + "assignmentName": "assignmentName8976", + "principals": [{ + "principalId": "4c54c38f-fa9b-416b-a5a6-d6c8a20cbe7e", + "principalType": "User" + }, + { + "principalId": "93061d15-a505-4f2b-9948-ae25724cf9d5", + "principalType": "User" + }], + "provisioningState": "Provisioning", + "role": "Admin", + "tenantId": "azsdktesthub" + }, + "type": "Microsoft.CustomerInsights/hubs/RoleAssignments" + } + }, + "202": { + + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/RoleAssignmentsDelete.json b/arm-customer-insights/2017-04-26/examples/RoleAssignmentsDelete.json new file mode 100644 index 000000000000..3d09176089b2 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/RoleAssignmentsDelete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "assignmentName": "assignmentName8976", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + + }, + "202": { + + }, + "204": { + + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/RoleAssignmentsGet.json b/arm-customer-insights/2017-04-26/examples/RoleAssignmentsGet.json new file mode 100644 index 000000000000..a31f046442b8 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/RoleAssignmentsGet.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "assignmentName": "assignmentName8976", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/azSdkTestHub/RoleAssignments/assignmentName8976", + "name": "azSdkTestHub/assignmentName8976", + "properties": { + "assignmentName": "assignmentName8976", + "principals": [{ + "principalId": "4c54c38f-fa9b-416b-a5a6-d6c8a20cbe7e", + "principalType": "User" + }, + { + "principalId": "93061d15-a505-4f2b-9948-ae25724cf9d5", + "principalType": "User" + }], + "provisioningState": "Provisioning", + "role": "Admin", + "tenantId": "azsdktesthub" + }, + "type": "Microsoft.CustomerInsights/hubs/RoleAssignments" + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/RoleAssignmentsListByHub.json b/arm-customer-insights/2017-04-26/examples/RoleAssignmentsListByHub.json new file mode 100644 index 000000000000..c126a24df81b --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/RoleAssignmentsListByHub.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "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/RoleAssignments/assignmentName8976", + "name": "azSdkTestHub/assignmentName8976", + "properties": { + "assignmentName": "assignmentName8976", + "principals": [{ + "principalId": "4c54c38f-fa9b-416b-a5a6-d6c8a20cbe7e", + "principalType": "User" + }, + { + "principalId": "93061d15-a505-4f2b-9948-ae25724cf9d5", + "principalType": "User" + }], + "provisioningState": "Provisioning", + "role": "Admin", + "tenantId": "azsdktesthub" + }, + "type": "Microsoft.CustomerInsights/hubs/RoleAssignments" + }] + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/RolesListByHub.json b/arm-customer-insights/2017-04-26/examples/RolesListByHub.json new file mode 100644 index 000000000000..183fc0add0b4 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/RolesListByHub.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "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/Roles/Admin", + "name": "azSdkTestHub/Admin", + "properties": { + "description": "When a role assignment is created for the Admin Role on certain scopes (selected profiles, interactions, Kpis etc.), it authorizes the users/groups selected in the assignment for ALL operations at the tenant endpoint on the selected scopes.", + "roleName": "Admin" + }, + "type": "Microsoft.CustomerInsights/hubs/Roles" + }] + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/ViewsCreateOrUpdate.json b/arm-customer-insights/2017-04-26/examples/ViewsCreateOrUpdate.json new file mode 100644 index 000000000000..983262206e7e --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/ViewsCreateOrUpdate.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "viewName": "testView", + "api-version": "2016-01-01", + "subscriptionId": "subid", + "parameters": { + "properties": { + "userId": "testUser", + "displayName": { + "en": "some name" + }, + "definition": "{\\\"isProfileType\\\":false,\\\"profileTypes\\\":[],\\\"widgets\\\":[],\\\"style\\\":[]}" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/sdkTestHub/views/testView", + "name": "sdkTestHub/testView", + "properties": { + "definition": "{\\\"isProfileType\\\":false,\\\"profileTypes\\\":[],\\\"widgets\\\":[],\\\"style\\\":[]}", + "displayName": { + "en": "some name" + }, + "tenantId": "sdktesthub", + "userId": "*", + "viewName": "testView" + }, + "type": "Microsoft.CustomerInsights/hubs/views" + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/ViewsDelete.json b/arm-customer-insights/2017-04-26/examples/ViewsDelete.json new file mode 100644 index 000000000000..6cbd4c997f21 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/ViewsDelete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "viewName": "testView", + "userId": "*", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/ViewsGet.json b/arm-customer-insights/2017-04-26/examples/ViewsGet.json new file mode 100644 index 000000000000..63a648684119 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/ViewsGet.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "viewName": "testView", + "userId": "*", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/sdkTestHub/views/testView", + "name": "sdkTestHub/testView", + "properties": { + "definition": "{\\\"isProfileType\\\":false,\\\"profileTypes\\\":[],\\\"widgets\\\":[],\\\"style\\\":[]}", + "displayName": { + "en": "some name" + }, + "tenantId": "sdktesthub", + "userId": "*", + "viewName": "testView" + }, + "type": "Microsoft.CustomerInsights/hubs/views" + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/ViewsListByHub.json b/arm-customer-insights/2017-04-26/examples/ViewsListByHub.json new file mode 100644 index 000000000000..949fd4c32c86 --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/ViewsListByHub.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "userId": "*", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [{ + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/sdkTestHub/views/testView", + "name": "sdkTestHub/testView", + "properties": { + "definition": "{\\\"isProfileType\\\":false,\\\"profileTypes\\\":[],\\\"widgets\\\":[],\\\"style\\\":[]}", + "displayName": { + "en": "some name" + }, + "tenantId": "sdktesthub", + "userId": "*", + "viewName": "testView" + }, + "type": "Microsoft.CustomerInsights/hubs/views" + }] + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/WidgetTypesGet.json b/arm-customer-insights/2017-04-26/examples/WidgetTypesGet.json new file mode 100644 index 000000000000..35507b6bd9ee --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/WidgetTypesGet.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "resourceGroupName": "TestHubRG", + "widgetTypeName": "ActivityGauge", + "api-version": "2016-01-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/sdkTestHub/widgetTypes/ActivityGauge", + "name": "sdkTestHub/ActivityGauge", + "properties": { + "widgetTypeName": "ActivityGauge", + "tenantId": "*", + "description": "", + "definition": "", + "imageUrl": "", + "widgetVersion": "2016-01-01" + }, + "type": "Microsoft.CustomerInsights/hubs/widgetTypes" + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/examples/WidgetTypesListByHub.json b/arm-customer-insights/2017-04-26/examples/WidgetTypesListByHub.json new file mode 100644 index 000000000000..9796c694033c --- /dev/null +++ b/arm-customer-insights/2017-04-26/examples/WidgetTypesListByHub.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "hubName": "sdkTestHub", + "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/sdkTestHub/widgetTypes/ActivityGauge", + "name": "sdkTestHub/ActivityGauge", + "properties": { + "widgetTypeName": "ActivityGauge", + "tenantId": "*", + "description": "", + "definition": "", + "imageUrl": "", + "widgetVersion": "2016-01-01" + }, + "type": "Microsoft.CustomerInsights/hubs/widgetTypes" + }, + { + "id": "/subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/sdkTestHub/widgetTypes/AsterChart", + "name": "sdkTestHub/AsterChart", + "properties": { + "widgetTypeName": "AsterChart", + "tenantId": "*", + "description": "", + "definition": "", + "imageUrl": "", + "widgetVersion": "2016-01-01" + }, + "type": "Microsoft.CustomerInsights/hubs/widgetTypes" + }] + } + } + } +} \ No newline at end of file diff --git a/arm-customer-insights/2017-04-26/swagger/customer-insights.json b/arm-customer-insights/2017-04-26/swagger/customer-insights.json new file mode 100644 index 000000000000..014f0df88d9b --- /dev/null +++ b/arm-customer-insights/2017-04-26/swagger/customer-insights.json @@ -0,0 +1,5664 @@ +{ + "swagger": "2.0", + "info": { + "title": "CustomerInsightsManagementClient", + "description": "The Azure Customer Insights management API provides a RESTful set of web services that interact with Azure Customer Insights service to manage your resources. The API has entities that capture the relationship between an end user and the Azure Customer Insights service.", + "version": "2017-04-26", + "x-ms-code-generation-settings": { + "name": "CustomerInsightsManagementClient" + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}": { + "put": { + "tags": [ + "Hubs" + ], + "operationId": "Hubs_CreateOrUpdate", + "x-ms-examples": { + "Hubs_CreateOrUpdate": { + "$ref": "../examples/HubsCreateOrUpdate.json" + } + }, + "description": "Creates a hub, or updates an existing hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Hub.", + "pattern": "^[a-zA-Z][a-zA-Z0-9]+$", + "minLength": 1, + "maxLength": 64 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Hub" + }, + "description": "Parameters supplied to the CreateOrUpdate Hub operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Created. A new hub is created.", + "schema": { + "$ref": "#/definitions/Hub" + } + }, + "200": { + "description": "OK. An existing hub is updated.", + "schema": { + "$ref": "#/definitions/Hub" + } + } + } + }, + "patch": { + "tags": [ + "Hubs" + ], + "operationId": "Hubs_Update", + "x-ms-examples": { + "Hubs_Update": { + "$ref": "../examples/HubsUpdate.json" + } + }, + "description": "Updates a Hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Hub." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Hub" + }, + "description": "Parameters supplied to the Update Hub operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The hub is updated.", + "schema": { + "$ref": "#/definitions/Hub" + } + } + } + }, + "delete": { + "tags": [ + "Hubs" + ], + "operationId": "Hubs_Delete", + "x-ms-examples": { + "Hubs_Delete": { + "$ref": "../examples/HubsDelete.json" + } + }, + "description": "Deletes the specified hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The hub is deleted." + }, + "202": { + "description": "Accepted. The delete operation is accepted." + }, + "204": { + "description": "NoContent. Successfully requested delete operation, but the response is intentionally empty." + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Hubs" + ], + "operationId": "Hubs_Get", + "x-ms-examples": { + "Hubs_Get": { + "$ref": "../examples/HubsGet.json" + } + }, + "description": "Gets information about the specified hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get the hub.", + "schema": { + "$ref": "#/definitions/Hub" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs": { + "get": { + "tags": [ + "Hubs" + ], + "operationId": "Hubs_ListByResourceGroup", + "x-ms-examples": { + "Hubs_ListByResourceGroup": { + "$ref": "../examples/HubsListByResourceGroup.json" + } + }, + "description": "Gets all the hubs in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get all the hubs in the resource group.", + "schema": { + "$ref": "#/definitions/HubListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.CustomerInsights/hubs": { + "get": { + "tags": [ + "Hubs" + ], + "operationId": "Hubs_List", + "x-ms-examples": { + "Hubs_List": { + "$ref": "../examples/HubsList.json" + } + }, + "description": "Gets all hubs in the specified subscription.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get all the hubs in the subscription.", + "schema": { + "$ref": "#/definitions/HubListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/profiles/{profileName}": { + "put": { + "tags": [ + "Profiles" + ], + "operationId": "Profiles_CreateOrUpdate", + "x-ms-examples": { + "Profiles_CreateOrUpdate": { + "$ref": "../examples/ProfilesCreateOrUpdate.json" + } + }, + "description": "Creates a profile within a Hub, or updates an existing profile.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "profileName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the profile.", + "pattern": "^[a-zA-Z][a-zA-Z0-9_]+$", + "minLength": 1, + "maxLength": 128 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ProfileResourceFormat" + }, + "description": "Parameters supplied to the create/delete Profile type operation" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully created the profile.", + "schema": { + "$ref": "#/definitions/ProfileResourceFormat" + } + }, + "202": { + "description": "Accepted. The create profile operation is accepted." + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Profiles" + ], + "operationId": "Profiles_Get", + "x-ms-examples": { + "Profiles_Get": { + "$ref": "../examples/ProfilesGet.json" + } + }, + "description": "Gets information about the specified profile.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "profileName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the profile." + }, + { + "name": "locale-code", + "in": "query", + "required": false, + "type": "string", + "default": "en-us", + "description": "Locale of profile to retrieve, default is en-us." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get the profile.", + "schema": { + "$ref": "#/definitions/ProfileResourceFormat" + } + } + } + }, + "delete": { + "tags": [ + "Profiles" + ], + "operationId": "Profiles_Delete", + "x-ms-examples": { + "Profiles_Delete": { + "$ref": "../examples/ProfilesDelete.json" + } + }, + "description": "Deletes a profile within a hub", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "profileName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the profile." + }, + { + "name": "locale-code", + "in": "query", + "required": false, + "type": "string", + "default": "en-us", + "description": "Locale of profile to retrieve, default is en-us." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The profile is deleted." + }, + "202": { + "description": "Accepted. The delete operation is accepted." + }, + "204": { + "description": "NoContent. Successfully requested delete operation, but the response is intentionally empty." + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/profiles": { + "get": { + "tags": [ + "Profiles" + ], + "operationId": "Profiles_ListByHub", + "x-ms-examples": { + "Profiles_ListByHub": { + "$ref": "../examples/ProfilesListByHub.json" + } + }, + "description": "Gets all profile in the hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "locale-code", + "in": "query", + "required": false, + "type": "string", + "default": "en-us", + "description": "Locale of profile to retrieve, default is en-us." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get all the profiles in the hub.", + "schema": { + "$ref": "#/definitions/ProfileListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/profiles/{profileName}/getEnrichingKpis": { + "post": { + "tags": [ + "Profiles" + ], + "operationId": "Profiles_GetEnrichingKpis", + "x-ms-examples": { + "Profiles_GetEnrichingKpis": { + "$ref": "../examples/ProfileGetEnrichingKpis.json" + } + }, + "description": "Gets the KPIs that enrich the profile Type identified by the supplied name. Enrichment happens through participants of the Interaction on an Interaction KPI and through Relationships for Profile KPIs.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "profileName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the profile." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get the enriching KPIs.", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/KpiDefinition" + } + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/interactions/{interactionName}": { + "put": { + "tags": [ + "Interactions" + ], + "operationId": "Interactions_CreateOrUpdate", + "x-ms-examples": { + "Interactions_CreateOrUpdate": { + "$ref": "../examples/InteractionsCreateOrUpdate.json" + } + }, + "description": "Creates an interaction or updates an existing interaction within a hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "interactionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the interaction.", + "pattern": "^[a-zA-Z][a-zA-Z0-9_]+$", + "minLength": 1, + "maxLength": 128 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/InteractionResourceFormat" + }, + "description": "Parameters supplied to the CreateOrUpdate Interaction operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully created the interation.", + "schema": { + "$ref": "#/definitions/InteractionResourceFormat" + } + }, + "202": { + "description": "Accepted. The create interation operation is accepted." + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Interactions" + ], + "operationId": "Interactions_Get", + "x-ms-examples": { + "Interactions_Get": { + "$ref": "../examples/InteractionsGet.json" + } + }, + "description": "Gets information about the specified interaction.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "interactionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the interaction." + }, + { + "name": "locale-code", + "in": "query", + "required": false, + "type": "string", + "default": "en-us", + "description": "Locale of interaction to retrieve, default is en-us." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get the interaction.", + "schema": { + "$ref": "#/definitions/InteractionResourceFormat" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/interactions": { + "get": { + "tags": [ + "Interactions" + ], + "operationId": "Interactions_ListByHub", + "x-ms-examples": { + "Interactions_ListByHub": { + "$ref": "../examples/InteractionsListByHub.json" + } + }, + "description": "Gets all interactions in the hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "locale-code", + "in": "query", + "required": false, + "type": "string", + "default": "en-us", + "description": "Locale of interaction to retrieve, default is en-us." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get all the interactions in the hub.", + "schema": { + "$ref": "#/definitions/InteractionListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/interactions/{interactionName}/suggestRelationshipLinks": { + "post": { + "tags": [ + "Interactions" + ], + "operationId": "Interactions_SuggestRelationshipLinks", + "x-ms-examples": { + "Interactions_SuggestRelationshipLinks": { + "$ref": "../examples/InteractionsSuggestRelationshipLinks.json" + } + }, + "description": "Suggests relationships to create relationship links.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "interactionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the interaction." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get suggested Relationship Links.", + "schema": { + "$ref": "#/definitions/SuggestRelationshipLinksResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationships/{relationshipName}": { + "put": { + "tags": [ + "Relationships" + ], + "operationId": "Relationships_CreateOrUpdate", + "x-ms-examples": { + "Relationships_CreateOrUpdate": { + "$ref": "../examples/RelationshipsCreateOrUpdate.json" + } + }, + "description": "Creates a relationship or updates an existing relationship within a hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "relationshipName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Relationship.", + "pattern": "^[a-zA-Z][a-zA-Z0-9_]+$", + "minLength": 1, + "maxLength": 512 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RelationshipResourceFormat" + }, + "description": "Parameters supplied to the CreateOrUpdate Relationship operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully created the relationship.", + "schema": { + "$ref": "#/definitions/RelationshipResourceFormat" + } + }, + "202": { + "description": "Accepted. The create relationship operation is accepted." + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Relationships" + ], + "operationId": "Relationships_Get", + "x-ms-examples": { + "Relationships_Get": { + "$ref": "../examples/RelationshipsGet.json" + } + }, + "description": "Gets information about the specified relationship.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "relationshipName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the relationship." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get the relationship.", + "schema": { + "$ref": "#/definitions/RelationshipResourceFormat" + } + } + } + }, + "delete": { + "tags": [ + "Relationships" + ], + "operationId": "Relationships_Delete", + "x-ms-examples": { + "Relationships_Delete": { + "$ref": "../examples/RelationshipsDelete.json" + } + }, + "description": "Deletes a relationship within a hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "relationshipName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the relationship." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted. The delete operation is accepted." + }, + "200": { + "description": "OK. The relationship is deleted." + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationships": { + "get": { + "tags": [ + "Relationships" + ], + "operationId": "Relationships_ListByHub", + "x-ms-examples": { + "Relationships_ListByHub": { + "$ref": "../examples/RelationshipsListByHub.json" + } + }, + "description": "Gets all relationships in the hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get all the relationships in the hub.", + "schema": { + "$ref": "#/definitions/RelationshipListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationshipLinks/{relationshipLinkName}": { + "put": { + "tags": [ + "RelationshipLinks" + ], + "operationId": "RelationshipLinks_CreateOrUpdate", + "x-ms-examples": { + "RelationshipLinks_CreateOrUpdate": { + "$ref": "../examples/RelationshipLinksCreateOrUpdate.json" + } + }, + "description": "Creates a relationship link or updates an existing relationship link within a hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "relationshipLinkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the relationship link.", + "pattern": "^[a-zA-Z][a-zA-Z0-9_]+$", + "minLength": 1, + "maxLength": 512 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RelationshipLinkResourceFormat" + }, + "description": "Parameters supplied to the CreateOrUpdate relationship link operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully created the relationship link.", + "schema": { + "$ref": "#/definitions/RelationshipLinkResourceFormat" + } + }, + "202": { + "description": "Accepted. The create relationship operation is accepted." + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "RelationshipLinks" + ], + "operationId": "RelationshipLinks_Get", + "x-ms-examples": { + "RelationshipLinks_Get": { + "$ref": "../examples/RelationshipLinksGet.json" + } + }, + "description": "Gets information about the specified relationship Link.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "relationshipLinkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the relationship link." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get the relationship link.", + "schema": { + "$ref": "#/definitions/RelationshipLinkResourceFormat" + } + } + } + }, + "delete": { + "tags": [ + "RelationshipLinks" + ], + "operationId": "RelationshipLinks_Delete", + "x-ms-examples": { + "RelationshipLinks_Delete": { + "$ref": "../examples/RelationshipLinksDelete.json" + } + }, + "description": "Deletes a relationship link within a hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "relationshipLinkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the relationship." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted. The delete operation is accepted." + }, + "200": { + "description": "OK. The relationship link is deleted." + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationshipLinks": { + "get": { + "tags": [ + "RelationshipLinks" + ], + "operationId": "RelationshipLinks_ListByHub", + "x-ms-examples": { + "RelationshipLinks_ListByHub": { + "$ref": "../examples/RelationshipLinksListByHub.json" + } + }, + "description": "Gets all relationship links in the hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get all the relationship links in the hub.", + "schema": { + "$ref": "#/definitions/RelationshipLinkListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/authorizationPolicies/{authorizationPolicyName}": { + "put": { + "tags": [ + "AuthorizationPolicies" + ], + "operationId": "AuthorizationPolicies_CreateOrUpdate", + "x-ms-examples": { + "AuthorizationPolicies_CreateOrUpdate": { + "$ref": "../examples/AuthorizationPoliciesCreateOrUpdate.json" + } + }, + "description": "Creates an authorization policy or updates an existing authorization policy.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "authorizationPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the policy.", + "pattern": "^[A-Za-z0-9]$|^[A-Za-z0-9][\\w-\\.]*[A-Za-z0-9]$", + "minLength": 1, + "maxLength": 50 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AuthorizationPolicyResourceFormat" + }, + "description": "Parameters supplied to the CreateOrUpdate authorization policy operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully update an existing authorization policy.", + "schema": { + "$ref": "#/definitions/AuthorizationPolicyResourceFormat" + } + }, + "201": { + "description": "Created. A new authorization policy is created.", + "schema": { + "$ref": "#/definitions/AuthorizationPolicyResourceFormat" + } + } + } + }, + "get": { + "tags": [ + "AuthorizationPolicies" + ], + "operationId": "AuthorizationPolicies_Get", + "x-ms-examples": { + "AuthorizationPolicies_Get": { + "$ref": "../examples/AuthorizationPoliciesGet.json" + } + }, + "description": "Gets an authorization policy in the hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "authorizationPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the policy." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get the authorization policy.", + "schema": { + "$ref": "#/definitions/AuthorizationPolicyResourceFormat" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/authorizationPolicies": { + "get": { + "tags": [ + "AuthorizationPolicies" + ], + "operationId": "AuthorizationPolicies_ListByHub", + "x-ms-examples": { + "AuthorizationPolicies_ListByHub": { + "$ref": "../examples/AuthorizationPoliciesListByHub.json" + } + }, + "description": "Gets all the authorization policies in a specified hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get all the authorization policies in the hub.", + "schema": { + "$ref": "#/definitions/AuthorizationPolicyListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/authorizationPolicies/{authorizationPolicyName}/regeneratePrimaryKey": { + "post": { + "tags": [ + "AuthorizationPolicies" + ], + "operationId": "AuthorizationPolicies_RegeneratePrimaryKey", + "x-ms-examples": { + "AuthorizationPolicies_RegeneratePrimaryKey": { + "$ref": "../examples/AuthorizationPoliciesRegeneratePrimaryKey.json" + } + }, + "description": "Regenerates the primary policy key of the specified authorization policy.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "authorizationPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the policy." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The primary key of the authorization policy is regenerated.", + "schema": { + "$ref": "#/definitions/AuthorizationPolicy" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/authorizationPolicies/{authorizationPolicyName}/regenerateSecondaryKey": { + "post": { + "tags": [ + "AuthorizationPolicies" + ], + "operationId": "AuthorizationPolicies_RegenerateSecondaryKey", + "x-ms-examples": { + "AuthorizationPolicies_RegenerateSecondaryKey": { + "$ref": "../examples/AuthorizationPoliciesRegenerateSecondaryKey.json" + } + }, + "description": "Regenerates the secondary policy key of the specified authorization policy.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "authorizationPolicyName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the policy." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The secondary key of the authorization policy is regenerated.", + "schema": { + "$ref": "#/definitions/AuthorizationPolicy" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/connectors/{connectorName}": { + "put": { + "tags": [ + "Connectors" + ], + "operationId": "Connectors_CreateOrUpdate", + "x-ms-examples": { + "Connectors_CreateOrUpdate": { + "$ref": "../examples/ConnectorsCreateOrUpdate.json" + } + }, + "description": "Creates a connector or updates an existing connector in the hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "connectorName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the connector.", + "pattern": "^[a-zA-Z][a-zA-Z0-9_]+$", + "minLength": 1, + "maxLength": 128 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ConnectorResourceFormat" + }, + "description": "Parameters supplied to the CreateOrUpdate Connector operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully created the connector.", + "schema": { + "$ref": "#/definitions/ConnectorResourceFormat" + } + }, + "202": { + "description": "Accepted. The create connector operation is accepted." + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Connectors" + ], + "operationId": "Connectors_Get", + "x-ms-examples": { + "Connectors_Get": { + "$ref": "../examples/ConnectorsGet.json" + } + }, + "description": "Gets a connector in the hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "connectorName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the connector." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get the connector.", + "schema": { + "$ref": "#/definitions/ConnectorResourceFormat" + } + } + } + }, + "delete": { + "tags": [ + "Connectors" + ], + "operationId": "Connectors_Delete", + "x-ms-examples": { + "Connectors_Delete": { + "$ref": "../examples/ConnectorsDelete.json" + } + }, + "description": "Deletes a connector in the hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "connectorName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the connector." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The connector is deleted." + }, + "202": { + "description": "Accepted. The delete operation is accepted." + }, + "204": { + "description": "NoContent. Successfully requested delete operation, but the response is intentionally empty." + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/connectors": { + "get": { + "tags": [ + "Connectors" + ], + "operationId": "Connectors_ListByHub", + "x-ms-examples": { + "Connectors_ListByHub": { + "$ref": "../examples/ConnectorsListByHub.json" + } + }, + "description": "Gets all the connectors in the specified hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get all the connectors in the hub.", + "schema": { + "$ref": "#/definitions/ConnectorListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/connectors/{connectorName}/mappings/{mappingName}": { + "put": { + "tags": [ + "ConnectorMappings" + ], + "operationId": "ConnectorMappings_CreateOrUpdate", + "x-ms-examples": { + "ConnectorMappings_CreateOrUpdate": { + "$ref": "../examples/ConnectorMappingsCreateOrUpdate.json" + } + }, + "description": "Creates a connector mapping or updates an existing connector mapping in the connector.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "connectorName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the connector." + }, + { + "name": "mappingName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the connector mapping.", + "pattern": "^[a-zA-Z][a-zA-Z0-9_]+$", + "minLength": 1, + "maxLength": 128 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ConnectorMappingResourceFormat" + }, + "description": "Parameters supplied to the CreateOrUpdate Connector Mapping operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully created the connector mapping.", + "schema": { + "$ref": "#/definitions/ConnectorMappingResourceFormat" + } + }, + "201": { + "description": "Created. A new connector mapping is created.", + "schema": { + "$ref": "#/definitions/ConnectorMappingResourceFormat" + } + } + } + }, + "get": { + "tags": [ + "ConnectorMappings" + ], + "operationId": "ConnectorMappings_Get", + "x-ms-examples": { + "ConnectorMappings_Get": { + "$ref": "../examples/ConnectorMappingsGet.json" + } + }, + "description": "Gets a connector mapping in the connector.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "connectorName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the connector." + }, + { + "name": "mappingName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the connector mapping." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get the connector mapping.", + "schema": { + "$ref": "#/definitions/ConnectorMappingResourceFormat" + } + } + } + }, + "delete": { + "tags": [ + "ConnectorMappings" + ], + "operationId": "ConnectorMappings_Delete", + "x-ms-examples": { + "ConnectorMappings_Delete": { + "$ref": "../examples/ConnectorMappingsDelete.json" + } + }, + "description": "Deletes a connector mapping in the connector.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "connectorName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the connector." + }, + { + "name": "mappingName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the connector mapping." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The connector mapping is deleted." + }, + "204": { + "description": "NoContent. Successfully requested delete operation, but the response is intentionally empty." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/connectors/{connectorName}/mappings": { + "get": { + "tags": [ + "ConnectorMappings" + ], + "operationId": "ConnectorMappings_ListByConnector", + "x-ms-examples": { + "ConnectorMappings_ListByConnector": { + "$ref": "../examples/ConnectorMappingsListByConnector.json" + } + }, + "description": "Gets all the connector mappings in the specified connector.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "connectorName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the connector." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get all the connector mappings in the connector.", + "schema": { + "$ref": "#/definitions/ConnectorMappingListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/kpi/{kpiName}": { + "put": { + "tags": [ + "Kpi" + ], + "operationId": "Kpi_CreateOrUpdate", + "x-ms-examples": { + "Kpi_CreateOrUpdate": { + "$ref": "../examples/KpiCreateOrUpdate.json" + } + }, + "description": "Creates a KPI or updates an existing KPI in the hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "kpiName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the KPI.", + "pattern": "^[a-zA-Z][a-zA-Z0-9_]+$", + "minLength": 1, + "maxLength": 512 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/KpiResourceFormat" + }, + "description": "Parameters supplied to the create/update KPI operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully created the KPI.", + "schema": { + "$ref": "#/definitions/KpiResourceFormat" + } + }, + "202": { + "description": "Accepted. The create KPI operation is accepted." + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Kpi" + ], + "operationId": "Kpi_Get", + "x-ms-examples": { + "Kpi_Get": { + "$ref": "../examples/KpiGet.json" + } + }, + "description": "Gets a KPI in the hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "kpiName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the KPI." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get the KPI.", + "schema": { + "$ref": "#/definitions/KpiResourceFormat" + } + } + } + }, + "delete": { + "tags": [ + "Kpi" + ], + "operationId": "Kpi_Delete", + "x-ms-examples": { + "Kpi_Delete": { + "$ref": "../examples/KpiDelete.json" + } + }, + "description": "Deletes a KPI in the hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "kpiName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the KPI." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The KPI is deleted." + }, + "202": { + "description": "Accepted. The delete operation is accepted." + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/kpi/{kpiName}/reprocess": { + "post": { + "tags": [ + "Kpi" + ], + "operationId": "Kpi_Reprocess", + "x-ms-examples": { + "Kpi_Reprocess": { + "$ref": "../examples/KpiReprocess.json" + } + }, + "description": "Reprocesses the Kpi values of the specified KPI.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "kpiName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the KPI." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "202": { + "description": "Accepted. Reprocessing Kpi Values operation is accepted." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/kpi": { + "get": { + "tags": [ + "Kpi" + ], + "operationId": "Kpi_ListByHub", + "x-ms-examples": { + "Kpi_ListByHub": { + "$ref": "../examples/KpiListByHub.json" + } + }, + "description": "Gets all the KPIs in the specified hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get all the KPIs in the hub.", + "schema": { + "$ref": "#/definitions/KpiListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/widgetTypes": { + "get": { + "tags": [ + "WidgetTypes" + ], + "operationId": "WidgetTypes_ListByHub", + "x-ms-examples": { + "WidgetTypes_ListByHub": { + "$ref": "../examples/WidgetTypesListByHub.json" + } + }, + "description": "Gets all available widget types in the specified hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get all the widget types in the hub.", + "schema": { + "$ref": "#/definitions/WidgetTypeListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/widgetTypes/{widgetTypeName}": { + "get": { + "tags": [ + "WidgetTypes" + ], + "operationId": "WidgetTypes_Get", + "x-ms-examples": { + "WidgetTypes_Get": { + "$ref": "../examples/WidgetTypesGet.json" + } + }, + "description": "Gets a widget type in the specified hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "widgetTypeName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the widget type." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get the widget type.", + "schema": { + "$ref": "#/definitions/WidgetTypeResourceFormat" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/views": { + "get": { + "tags": [ + "Views" + ], + "operationId": "Views_ListByHub", + "x-ms-examples": { + "Views_ListByHub": { + "$ref": "../examples/ViewsListByHub.json" + } + }, + "description": "Gets all available views for given user in the specified hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "userId", + "in": "query", + "required": true, + "type": "string", + "description": "The user ID. Use * to retreive hub level views." + } + ], + "responses": { + "200": { + "description": "OK. Successfully get all the views in the hub for the given user.", + "schema": { + "$ref": "#/definitions/ViewListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/views/{viewName}": { + "put": { + "tags": [ + "Views" + ], + "operationId": "Views_CreateOrUpdate", + "x-ms-examples": { + "Views_CreateOrUpdate": { + "$ref": "../examples/ViewsCreateOrUpdate.json" + } + }, + "description": "Creates a view or updates an exisiting view in the hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "viewName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the view.", + "minLength": 1, + "maxLength": 512 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ViewResourceFormat" + }, + "description": "Parameters supplied to the CreateOrUpdate View operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully created the view.", + "schema": { + "$ref": "#/definitions/ViewResourceFormat" + } + } + } + }, + "get": { + "tags": [ + "Views" + ], + "operationId": "Views_Get", + "x-ms-examples": { + "Views_Get": { + "$ref": "../examples/ViewsGet.json" + } + }, + "description": "Gets a view in the hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "viewName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the view." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "userId", + "in": "query", + "required": true, + "type": "string", + "description": "The user ID. Use * to retreive hub level view." + } + ], + "responses": { + "200": { + "description": "OK. Successfully get the view.", + "schema": { + "$ref": "#/definitions/ViewResourceFormat" + } + } + } + }, + "delete": { + "tags": [ + "Views" + ], + "operationId": "Views_Delete", + "x-ms-examples": { + "Views_Delete": { + "$ref": "../examples/ViewsDelete.json" + } + }, + "description": "Deletes a view in the specified hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "viewName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the view." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "userId", + "in": "query", + "required": true, + "type": "string", + "description": "The user ID. Use * to retreive hub level view." + } + ], + "responses": { + "200": { + "description": "OK. The view is deleted." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/links/{linkName}": { + "put": { + "tags": [ + "Links" + ], + "operationId": "Links_CreateOrUpdate", + "x-ms-examples": { + "Links_CreateOrUpdate": { + "$ref": "../examples/LinksCreateOrUpdate.json" + } + }, + "description": "Creates a link or updates an existing link in the hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "linkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the link.", + "pattern": "^[a-zA-Z][a-zA-Z0-9_]+$", + "minLength": 1, + "maxLength": 512 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LinkResourceFormat" + }, + "description": "Parameters supplied to the CreateOrUpdate Link operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully created the link.", + "schema": { + "$ref": "#/definitions/LinkResourceFormat" + } + }, + "202": { + "description": "Accepted. The create link operation is accepted." + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Links" + ], + "operationId": "Links_Get", + "x-ms-examples": { + "Links_Get": { + "$ref": "../examples/LinksGet.json" + } + }, + "description": "Gets a link in the hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "linkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the link." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get the link.", + "schema": { + "$ref": "#/definitions/LinkResourceFormat" + } + } + } + }, + "delete": { + "tags": [ + "Links" + ], + "operationId": "Links_Delete", + "x-ms-examples": { + "Links_Delete": { + "$ref": "../examples/LinksDelete.json" + } + }, + "description": "Deletes a link in the hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "linkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the link." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The link is deleted." + }, + "202": { + "description": "Accepted. The delete operation is accepted." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/links": { + "get": { + "tags": [ + "Links" + ], + "operationId": "Links_ListByHub", + "x-ms-examples": { + "Links_ListByHub": { + "$ref": "../examples/LinksListByHub.json" + } + }, + "description": "Gets all the links in the specified hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get all the links in the hub.", + "schema": { + "$ref": "#/definitions/LinkListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roles": { + "get": { + "tags": [ + "Roles" + ], + "operationId": "Roles_ListByHub", + "x-ms-examples": { + "Roles_ListByHub": { + "$ref": "../examples/RolesListByHub.json" + } + }, + "description": "Gets all the roles for the hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get all the roles in the hub.", + "schema": { + "$ref": "#/definitions/RoleListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roleAssignments": { + "get": { + "tags": [ + "RoleAssignments" + ], + "operationId": "RoleAssignments_ListByHub", + "x-ms-examples": { + "RoleAssignments_ListByHub": { + "$ref": "../examples/RoleAssignmentsListByHub.json" + } + }, + "description": "Gets all the role assignments for the specified hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get all the role assignment in the hub.", + "schema": { + "$ref": "#/definitions/RoleAssignmentListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roleAssignments/{assignmentName}": { + "put": { + "tags": [ + "RoleAssignments" + ], + "operationId": "RoleAssignments_CreateOrUpdate", + "x-ms-examples": { + "RoleAssignments_CreateOrUpdate": { + "$ref": "../examples/RoleAssignmentsCreateOrUpdate.json" + } + }, + "description": "Creates or updates a role assignment in the hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "assignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "The assignment name", + "pattern": "^[a-zA-Z][a-zA-Z0-9_]+$", + "minLength": 1, + "maxLength": 128 + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RoleAssignmentResourceFormat" + }, + "description": "Parameters supplied to the CreateOrUpdate RoleAssignment operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully created the role assignment.", + "schema": { + "$ref": "#/definitions/RoleAssignmentResourceFormat" + } + }, + "202": { + "description": "Accepted. The create role assignment operation is accepted." + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "RoleAssignments" + ], + "operationId": "RoleAssignments_Get", + "x-ms-examples": { + "RoleAssignments_Get": { + "$ref": "../examples/RoleAssignmentsGet.json" + } + }, + "description": "Gets the role assignment in the hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "assignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the role assignment." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get the role assignment.", + "schema": { + "$ref": "#/definitions/RoleAssignmentResourceFormat" + } + } + } + }, + "delete": { + "tags": [ + "RoleAssignments" + ], + "operationId": "RoleAssignments_Delete", + "x-ms-examples": { + "RoleAssignments_Delete": { + "$ref": "../examples/RoleAssignmentsDelete.json" + } + }, + "description": "Deletes the role assignment in the hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "assignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the role assignment." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The role assignment is deleted." + }, + "202": { + "description": "Accepted. The delete operation is accepted." + }, + "204": { + "description": "NoContent. Successfully requested delete operation, but the response is intentionally empty." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/images/getEntityTypeImageUploadUrl": { + "post": { + "tags": [ + "Images" + ], + "operationId": "Images_GetUploadUrlForEntityType", + "x-ms-examples": { + "Images_GetUploadUrlForEntityType": { + "$ref": "../examples/ImagesGetUploadUrlForEntityType.json" + } + }, + "description": "Gets entity type (profile or interaction) image upload URL.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GetImageUploadUrlInput" + }, + "description": "Parameters supplied to the GetUploadUrlForEntityType operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get the image upload URL for entity type.", + "schema": { + "$ref": "#/definitions/ImageDefinition" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/images/getDataImageUploadUrl": { + "post": { + "tags": [ + "Images" + ], + "operationId": "Images_GetUploadUrlForData", + "x-ms-examples": { + "Images_GetUploadUrlForData": { + "$ref": "../examples/ImagesGetUploadUrlForData.json" + } + }, + "description": "Gets data image upload URL.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "hubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hub." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GetImageUploadUrlInput" + }, + "description": "Parameters supplied to the GetUploadUrlForData operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully get the image upload URL for data.", + "schema": { + "$ref": "#/definitions/ImageDefinition" + } + } + } + } + } + }, + "definitions": { + "HubBillingInfoFormat": { + "properties": { + "skuName": { + "type": "string", + "description": "The sku name." + }, + "minUnits": { + "type": "integer", + "minimum": 1, + "maximum": 10, + "description": "The minimum number of units will be billed. One unit is 10,000 Profiles and 100,000 Interactions." + }, + "maxUnits": { + "type": "integer", + "minimum": 1, + "maximum": 10, + "description": "The maximum number of units can be used. One unit is 10,000 Profiles and 100,000 Interactions." + } + }, + "description": "Hub billing info." + }, + "HubPropertiesFormat": { + "properties": { + "apiEndpoint": { + "type": "string", + "readOnly": true, + "description": "API endpoint URL of the hub." + }, + "webEndpoint": { + "type": "string", + "readOnly": true, + "description": "Web endpoint URL of the hub." + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "Provisioning state of the hub." + }, + "tenantFeatures": { + "type": "integer", + "description": "The bit flags for enabled hub features. Bit 0 is set to 1 indicates graph is enabled, or disabled if set to 0. Bit 1 is set to 1 indicates the hub is disabled, or enabled if set to 0." + }, + "hubBillingInfo": { + "$ref": "#/definitions/HubBillingInfoFormat", + "description": "Billing settings of the hub." + } + }, + "description": "Properties of hub." + }, + "Hub": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/HubPropertiesFormat" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Hub resource." + }, + "HubListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Hub" + }, + "description": "Results of the list operation." + }, + "nextLink": { + "type": "string", + "description": "Link for next set of results." + } + }, + "description": "Response of list hub operation." + }, + "MetadataDefinitionBase": { + "properties": { + "attributes": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": "The attributes for the Type." + }, + "description": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Localized descriptions for the property." + }, + "displayName": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Localized display names for the property." + }, + "localizedAttributes": { + "type": "object", + "additionalProperties": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "description": "Any custom localized attributes for the Type." + }, + "smallImage": { + "type": "string", + "description": "Small Image associated with the Property or EntityType." + }, + "mediumImage": { + "type": "string", + "description": "Medium Image associated with the Property or EntityType." + }, + "largeImage": { + "type": "string", + "description": "Large Image associated with the Property or EntityType." + } + }, + "description": "The Metadata definition base." + }, + "EntityTypeDefinition": { + "properties": { + "apiEntitySetName": { + "type": "string", + "description": "The api entity set name. This becomes the odata entity set name for the entity Type being refered in this object." + }, + "entityType": { + "type": "string", + "enum": [ + "None", + "Profile", + "Interaction", + "Relationship" + ], + "x-ms-enum": { + "name": "EntityTypes", + "modelAsString": false + }, + "description": "Type of entity." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/definitions/PropertyDefinition" + }, + "description": "The properties of the Profile." + }, + "instancesCount": { + "type": "integer", + "description": "The instance count." + }, + "lastChangedUtc": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The last changed time for the type definition." + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "readOnly": true, + "description": "Provisioning state." + }, + "schemaItemTypeLink": { + "type": "string", + "description": "The schema org link. This helps ACI identify and suggest semantic models." + }, + "tenantId": { + "type": "string", + "readOnly": true, + "description": "The hub name." + }, + "timestampFieldName": { + "type": "string", + "description": "The timestamp property name. Represents the time when the interaction or profile update happened." + }, + "typeName": { + "type": "string", + "description": "The name of the entity." + } + }, + "allOf": [ + { + "$ref": "#/definitions/MetadataDefinitionBase" + } + ], + "description": "Describes an entity." + }, + "ProfileEnumValidValuesFormat": { + "properties": { + "value": { + "type": "integer", + "description": "The integer value of the enum member." + }, + "localizedValueNames": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Localized names of the enum member." + } + }, + "description": "Valid enum values in case of an enum property." + }, + "PropertyDefinition": { + "required": [ + "fieldName", + "fieldType" + ], + "properties": { + "arrayValueSeparator": { + "type": "string", + "description": "Array value separator for properties with isArray set." + }, + "enumValidValues": { + "type": "array", + "items": { + "$ref": "#/definitions/ProfileEnumValidValuesFormat" + }, + "description": "Describes valid values for an enum property." + }, + "fieldName": { + "type": "string", + "description": "Name of the property." + }, + "fieldType": { + "type": "string", + "description": "Type of the property." + }, + "isArray": { + "type": "boolean", + "description": "Indicates if the property is actually an array of the fieldType above on the data api." + }, + "isEnum": { + "type": "boolean", + "description": "Indicates if the property is an enum." + }, + "isFlagEnum": { + "type": "boolean", + "description": "Indicates if the property is an flag enum." + }, + "isImage": { + "type": "boolean", + "description": "Whether the property is an Image." + }, + "isLocalizedString": { + "type": "boolean", + "description": "Whether the property is a localized string." + }, + "isName": { + "type": "boolean", + "description": "Whether the property is a name or a part of name." + }, + "isRequired": { + "type": "boolean", + "description": "Whether property value is required on instances, IsRequired field only for Intercation. Profile Instance will not check for required field." + }, + "propertyId": { + "type": "string", + "description": "The ID associated with the property." + }, + "schemaItemPropLink": { + "type": "string", + "description": "URL encoded schema.org item prop link for the property." + }, + "maxLength": { + "type": "integer", + "description": "Max length of string. Used only if type is string." + }, + "isAvailableInGraph": { + "type": "boolean", + "description": "Whether property is available in graph or not." + }, + "dataSourcePrecedenceRules": { + "type": "array", + "items": { + "$ref": "#/definitions/DataSourcePrecedence" + }, + "readOnly": true, + "description": "This is specific to interactions modeled as activities. Data sources are used to determine where data is stored and also in precedence rules." + } + }, + "description": "Property definition." + }, + "AuthorizationPolicy": { + "required": [ + "permissions" + ], + "properties": { + "policyName": { + "type": "string", + "readOnly": true, + "description": "Name of the policy." + }, + "permissions": { + "type": "array", + "uniqueItems": true, + "items": { + "$ref": "#/definitions/PermissionTypes" + }, + "description": "The permissions associated with the policy." + }, + "primaryKey": { + "type": "string", + "description": "Primary key assiciated with the policy." + }, + "secondaryKey": { + "type": "string", + "description": "Secondary key assiciated with the policy." + } + }, + "description": "The authorization policy." + }, + "SalesforceDiscoverSetting": { + "required": [ + "salesforceConnectionStringSecretUrl" + ], + "properties": { + "salesforceConnectionStringSecretUrl": { + "type": "string", + "description": "The salesforce connection string secret URL." + } + }, + "description": "Salesforce discover setting." + }, + "SalesforceTable": { + "required": [ + "tableName", + "tableSchema", + "tableCategory" + ], + "properties": { + "isProfile": { + "type": "string", + "description": "Indicating whether this instance is profile." + }, + "tableCategory": { + "type": "string", + "description": "The table category." + }, + "tableName": { + "type": "string", + "description": "The name of the table." + }, + "tableRemarks": { + "type": "string", + "description": "The table remarks." + }, + "tableSchema": { + "type": "string", + "description": "The table schema." + } + }, + "description": "Salesforce table." + }, + "SalesforceConnectorProperties": { + "required": [ + "usersetting", + "salesforcetables" + ], + "description": "The Salesforce connector properties.", + "properties": { + "usersetting": { + "$ref": "#/definitions/SalesforceDiscoverSetting", + "description": "The user settings." + }, + "salesforcetables": { + "type": "array", + "items": { + "$ref": "#/definitions/SalesforceTable" + }, + "description": "The Salesforce tables." + } + } + }, + "AzureBlobConnectorProperties": { + "required": [ + "connectionKeyVaultUrl" + ], + "description": "The Azure Blob connector properties.", + "properties": { + "connectionKeyVaultUrl": { + "type": "string", + "description": "The connection KeyVault URL." + } + } + }, + "CrmConnectorProperties": { + "required": [ + "organizationId", + "organizationUrl", + "entities" + ], + "description": "The CRM connector properties.", + "properties": { + "connectionString": { + "type": "string", + "description": "The connection string." + }, + "organizationId": { + "type": "string", + "description": "The organization ID." + }, + "organizationUrl": { + "type": "string", + "description": "The organization URL." + }, + "entities": { + "type": "array", + "items": { + "$ref": "#/definitions/CrmConnectorEntities" + }, + "description": "The entities like account, contact, opportunity." + }, + "accessToken": { + "type": "string", + "description": "The access token." + } + } + }, + "CrmConnectorEntities": { + "required": [ + "logicalName" + ], + "description": "The CRM connector entities.", + "properties": { + "logicalName": { + "type": "string", + "description": "The logical name." + }, + "displayName": { + "type": "string", + "description": "The display name." + }, + "isProfile": { + "type": "boolean", + "description": "Indicating whether this is profile." + } + } + }, + "Connector": { + "required": [ + "connectorType", + "connectorProperties" + ], + "properties": { + "connectorId": { + "type": "integer", + "readOnly": true, + "description": "ID of the connector." + }, + "connectorName": { + "type": "string", + "description": "Name of the connector." + }, + "connectorType": { + "$ref": "#/definitions/ConnectorType", + "description": "Type of connector." + }, + "displayName": { + "type": "string", + "description": "Display name of the connector." + }, + "description": { + "type": "string", + "description": "Description of the connector." + }, + "connectorProperties": { + "type": "object", + "additionalProperties": { + "type": "object" + }, + "description": "The connector properties." + }, + "created": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The created time." + }, + "lastModified": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The last monified time." + }, + "state": { + "type": "string", + "readOnly": true, + "enum": [ + "Creating", + "Created", + "Ready", + "Expiring", + "Deleting", + "Failed" + ], + "x-ms-enum": { + "name": "ConnectorStates", + "modelAsString": false + }, + "description": "State of connector." + }, + "tenantId": { + "type": "string", + "readOnly": true, + "description": "The hub name." + }, + "isInternal": { + "type": "boolean", + "description": "If this is an internal connector." + } + }, + "description": "Properties of connector." + }, + "ConnectorMappingErrorManagement": { + "required": [ + "errorManagementType" + ], + "properties": { + "errorManagementType": { + "type": "string", + "enum": [ + "RejectAndContinue", + "StopImport", + "RejectUntilLimit" + ], + "x-ms-enum": { + "name": "ErrorManagementTypes", + "modelAsString": false + }, + "description": "The type of error management to use for the mapping." + }, + "errorLimit": { + "type": "integer", + "description": "The error limit allowed while importing data." + } + }, + "description": "The error mangement." + }, + "ConnectorMappingFormat": { + "required": [ + "formatType" + ], + "properties": { + "formatType": { + "type": "string", + "enum": [ + "TextFormat" + ], + "x-ms-enum": { + "name": "FormatTypes", + "modelAsString": false + }, + "description": "The type mapping format." + }, + "columnDelimiter": { + "type": "string", + "description": "The character that signifies a break between columns." + }, + "acceptLanguage": { + "type": "string", + "description": "The oData language." + }, + "quoteCharacter": { + "type": "string", + "description": "Quote character, used to indicate enquoted fields." + }, + "quoteEscapeCharacter": { + "type": "string", + "description": "Escape character for quotes, can be the same as the quoteCharacter." + }, + "arraySeparator": { + "type": "string", + "description": "Character separating array elements." + } + }, + "description": "Connector mapping property format." + }, + "ConnectorMappingAvailability": { + "required": [ + "interval" + ], + "properties": { + "frequency": { + "type": "string", + "enum": [ + "Minute", + "Hour", + "Day", + "Week", + "Month" + ], + "x-ms-enum": { + "name": "FrequencyTypes", + "modelAsString": false + }, + "description": "The frequency to update." + }, + "interval": { + "type": "integer", + "description": "The interval of the given frequency to use." + } + }, + "description": "Connector mapping property availability." + }, + "ConnectorMappingStructure": { + "required": [ + "propertyName", + "columnName" + ], + "properties": { + "propertyName": { + "type": "string", + "description": "The property name of the mapping entity." + }, + "columnName": { + "type": "string", + "description": "The column name of the import file." + }, + "customFormatSpecifier": { + "type": "string", + "description": "Custom format specifier for input parsing." + }, + "isEncrypted": { + "type": "boolean", + "description": "Indicates if the column is encrypted." + } + }, + "description": "Connector mapping property structure." + }, + "ConnectorMappingCompleteOperation": { + "properties": { + "completionOperationType": { + "type": "string", + "enum": [ + "DoNothing", + "DeleteFile", + "MoveFile" + ], + "x-ms-enum": { + "name": "CompletionOperationTypes", + "modelAsString": false + }, + "description": "The type of completion operation." + }, + "destinationFolder": { + "type": "string", + "description": "The destination folder where files will be moved to once the import is done." + } + }, + "description": "The complete operation." + }, + "ConnectorMappingProperties": { + "required": [ + "availability", + "completeOperation", + "errorManagement", + "format", + "structure" + ], + "properties": { + "folderPath": { + "type": "string", + "description": "The folder path for the mapping." + }, + "fileFilter": { + "type": "string", + "description": "The file filter for the mapping." + }, + "hasHeader": { + "type": "boolean", + "description": "If the file contains a header or not." + }, + "errorManagement": { + "$ref": "#/definitions/ConnectorMappingErrorManagement", + "description": "The error management setting for the mapping." + }, + "format": { + "$ref": "#/definitions/ConnectorMappingFormat", + "description": "The format of mapping property." + }, + "availability": { + "$ref": "#/definitions/ConnectorMappingAvailability", + "description": "The availability of mapping property." + }, + "structure": { + "type": "array", + "items": { + "$ref": "#/definitions/ConnectorMappingStructure" + }, + "description": "Ingestion mapping information at property level." + }, + "completeOperation": { + "$ref": "#/definitions/ConnectorMappingCompleteOperation", + "description": "The operation after import is done." + } + }, + "description": "The connector mapping properties." + }, + "ConnectorMapping": { + "required": [ + "entityType", + "entityTypeName", + "mappingProperties" + ], + "properties": { + "connectorName": { + "type": "string", + "readOnly": true, + "description": "The connector name." + }, + "connectorType": { + "$ref": "#/definitions/ConnectorType", + "description": "Type of connector." + }, + "created": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The created time." + }, + "lastModified": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The last monified time." + }, + "entityType": { + "type": "string", + "enum": [ + "None", + "Profile", + "Interaction", + "Relationship" + ], + "x-ms-enum": { + "name": "EntityTypes", + "modelAsString": false + }, + "description": "Defines which entity type the file should map to." + }, + "entityTypeName": { + "type": "string", + "description": "The mapping entity name." + }, + "connectorMappingName": { + "type": "string", + "readOnly": true, + "description": "The connector mapping name" + }, + "displayName": { + "type": "string", + "description": "Display name for the connector mapping." + }, + "description": { + "type": "string", + "description": "The description of the connector mapping." + }, + "dataFormatId": { + "type": "string", + "readOnly": true, + "description": "The DataFormat ID." + }, + "mappingProperties": { + "$ref": "#/definitions/ConnectorMappingProperties", + "description": "The properties of the mapping." + }, + "nextRunTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The next run time based on customer's settings." + }, + "runId": { + "type": "string", + "readOnly": true, + "description": "The RunId." + }, + "state": { + "type": "string", + "readOnly": true, + "enum": [ + "Creating", + "Created", + "Failed", + "Ready", + "Running", + "Stopped", + "Expiring" + ], + "x-ms-enum": { + "name": "ConnectorMappingStates", + "modelAsString": false + }, + "description": "State of connector mapping." + }, + "tenantId": { + "type": "string", + "readOnly": true, + "description": "The hub name." + } + }, + "description": "The connector mapping definition." + }, + "KpiThresholds": { + "properties": { + "lowerLimit": { + "type": "number", + "format": "decimal", + "description": "The lower threshold limit." + }, + "upperLimit": { + "type": "number", + "format": "decimal", + "description": "The upper threshold limit." + }, + "increasingKpi": { + "type": "boolean", + "description": "Whether or not the KPI is an increasing KPI." + } + }, + "required": [ + "lowerLimit", + "upperLimit", + "increasingKpi" + ], + "description": "Defines the KPI Threshold limits." + }, + "KpiDefinition": { + "required": [ + "entityType", + "entityTypeName", + "calculationWindow", + "function", + "expression" + ], + "properties": { + "entityType": { + "type": "string", + "enum": [ + "None", + "Profile", + "Interaction", + "Relationship" + ], + "x-ms-enum": { + "name": "EntityTypes", + "modelAsString": false + }, + "description": "The mapping entity type." + }, + "entityTypeName": { + "type": "string", + "description": "The mapping entity name." + }, + "tenantId": { + "type": "string", + "readOnly": true, + "description": "The hub name." + }, + "kpiName": { + "type": "string", + "readOnly": true, + "description": "The KPI name." + }, + "displayName": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Localized display name for the KPI." + }, + "description": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Localized description for the KPI." + }, + "calculationWindow": { + "type": "string", + "enum": [ + "Lifetime", + "Hour", + "Day", + "Week", + "Month" + ], + "x-ms-enum": { + "name": "CalculationWindowTypes", + "modelAsString": false + }, + "description": "The calculation window." + }, + "calculationWindowFieldName": { + "type": "string", + "description": "Name of calculation window field." + }, + "function": { + "type": "string", + "enum": [ + "Sum", + "Avg", + "Min", + "Max", + "Last", + "Count", + "None", + "CountDistinct" + ], + "x-ms-enum": { + "name": "KpiFunctions", + "modelAsString": false + }, + "description": "The computation function for the KPI." + }, + "expression": { + "type": "string", + "description": "The computation expression for the KPI." + }, + "unit": { + "type": "string", + "description": "The unit of measurement for the KPI." + }, + "filter": { + "type": "string", + "description": "The filter expression for the KPI." + }, + "groupBy": { + "type": "array", + "items": { + "type": "string" + }, + "description": "the group by properties for the KPI." + }, + "groupByMetadata": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/KpiGroupByMetadata" + }, + "description": "The KPI GroupByMetadata." + }, + "participantProfilesMetadata": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/KpiParticipantProfilesMetadata" + }, + "description": "The participant profiles." + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "readOnly": true, + "description": "Provisioning state." + }, + "thresHolds": { + "$ref": "#/definitions/KpiThresholds", + "description": "The KPI thresholds." + }, + "aliases": { + "type": "array", + "items": { + "$ref": "#/definitions/KpiAlias" + }, + "description": "The aliases." + }, + "extracts": { + "type": "array", + "items": { + "$ref": "#/definitions/KpiExtract" + }, + "description": "The KPI extracts." + } + }, + "description": "Defines the KPI Threshold limits." + }, + "KpiAlias": { + "required": [ + "aliasName", + "expression" + ], + "properties": { + "aliasName": { + "type": "string", + "description": "KPI alias name." + }, + "expression": { + "type": "string", + "description": "The expression." + } + }, + "description": "The KPI alias." + }, + "KpiExtract": { + "required": [ + "extractName", + "expression" + ], + "properties": { + "extractName": { + "type": "string", + "description": "KPI extract name." + }, + "expression": { + "type": "string", + "description": "The expression." + } + }, + "description": "The KPI extract." + }, + "KpiGroupByMetadata": { + "properties": { + "displayName": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "The display name." + }, + "fieldName": { + "type": "string", + "description": "The name of the field." + }, + "fieldType": { + "type": "string", + "description": "The type of the field." + } + }, + "description": "The KPI GroupBy field metadata." + }, + "KpiParticipantProfilesMetadata": { + "required": [ + "typeName" + ], + "properties": { + "typeName": { + "type": "string", + "description": "Name of the type." + } + }, + "description": "The KPI participant profile metadata." + }, + "Resource": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + }, + "location": { + "type": "string", + "description": "Resource location." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "x-ms-azure-resource": true, + "description": "Common properties of Azure resource." + }, + "ProxyResource": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + } + }, + "x-ms-azure-resource": true, + "description": "Common properties of proxy resource." + }, + "WidgetType": { + "required": [ + "definition" + ], + "properties": { + "widgetTypeName": { + "type": "string", + "readOnly": true, + "description": "Name of the widget type." + }, + "definition": { + "type": "string", + "description": "Definition for widget type." + }, + "description": { + "type": "string", + "description": "Description for widget type." + }, + "displayName": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Localized display name for the widget type." + }, + "imageUrl": { + "type": "string", + "description": "The image URL." + }, + "tenantId": { + "type": "string", + "readOnly": true, + "description": "The hub name." + }, + "widgetVersion": { + "type": "string", + "description": "The widget version." + }, + "changed": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "Date time when widget type was last modified." + }, + "created": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "Date time when widget type was created." + } + }, + "description": "Definition of WidgetType." + }, + "View": { + "required": [ + "definition" + ], + "properties": { + "viewName": { + "type": "string", + "readOnly": true, + "description": "Name of the view." + }, + "userId": { + "type": "string", + "description": "the user ID." + }, + "tenantId": { + "type": "string", + "readOnly": true, + "description": "the hub name." + }, + "displayName": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Localized display name for the view." + }, + "definition": { + "type": "string", + "description": "View definition." + }, + "changed": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "Date time when view was last modified." + }, + "created": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "Date time when view was created." + } + }, + "description": "The view in Customer 360 web application." + }, + "LinkDefinition": { + "required": [ + "sourceEntityType", + "targetEntityType", + "sourceEntityTypeName", + "targetEntityTypeName", + "participantPropertyReferences" + ], + "properties": { + "tenantId": { + "type": "string", + "readOnly": true, + "description": "The hub name." + }, + "linkName": { + "type": "string", + "readOnly": true, + "description": "The link name." + }, + "sourceEntityType": { + "type": "string", + "enum": [ + "None", + "Profile", + "Interaction", + "Relationship" + ], + "x-ms-enum": { + "name": "EntityType", + "modelAsString": false + }, + "description": "Type of source entity." + }, + "targetEntityType": { + "type": "string", + "enum": [ + "None", + "Profile", + "Interaction", + "Relationship" + ], + "x-ms-enum": { + "name": "EntityType", + "modelAsString": false + }, + "description": "Type of target entity." + }, + "sourceEntityTypeName": { + "type": "string", + "description": "Name of the source Entity Type." + }, + "targetEntityTypeName": { + "type": "string", + "description": "Name of the target Entity Type." + }, + "displayName": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Localized display name for the Link." + }, + "description": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Localized descriptions for the Link." + }, + "mappings": { + "type": "array", + "items": { + "$ref": "#/definitions/TypePropertiesMapping" + }, + "description": "The set of properties mappings between the source and target Types." + }, + "participantPropertyReferences": { + "type": "array", + "items": { + "$ref": "#/definitions/ParticipantPropertyReference" + }, + "description": "The properties that represent the participating profile." + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "readOnly": true, + "description": "Provisioning state." + }, + "referenceOnly": { + "type": "boolean", + "description": "Indicating whether the link is reference only link. This flag is ingored if the Mappings are defined. If the mappings are not defined and it is set to true, links processing will not create or update profiles." + }, + "operationType": { + "type": "string", + "enum": [ + "Upsert", + "Delete" + ], + "x-ms-enum": { + "name": "InstanceOperationType", + "modelAsString": false + }, + "description": "Determines whether this link is supposed to create or delete instances if Link is NOT Reference Only." + } + }, + "description": "The definition of Link." + }, + "RelationshipTypeFieldMapping": { + "required": [ + "profileFieldName", + "relatedProfileKeyProperty" + ], + "properties": { + "profileFieldName": { + "type": "string", + "description": "Specifies the fieldName in profile." + }, + "relatedProfileKeyProperty": { + "type": "string", + "description": "Specifies the KeyProperty (from StrongId) of the related profile." + } + }, + "description": "Map a field of profile to its corresponding StrongId in Related Profile." + }, + "RelationshipTypeMapping": { + "required": [ + "fieldMappings" + ], + "properties": { + "fieldMappings": { + "type": "array", + "items": { + "$ref": "#/definitions/RelationshipTypeFieldMapping" + }, + "description": "Maps a profile property with the StrongId of related profile. This is an array to support StrongIds that are composite key as well." + } + }, + "description": "Maps fields in Profile to their corresponding StrongIds in Related Profile." + }, + "RelationshipDefinition": { + "required": [ + "profileType", + "relatedProfileType" + ], + "properties": { + "cardinality": { + "type": "string", + "enum": [ + "OneToOne", + "OneToMany", + "ManyToMany" + ], + "x-ms-enum": { + "name": "CardinalityTypes", + "modelAsString": false + }, + "description": "The Relationship Cardinality." + }, + "displayName": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Localized display name for the Relationship." + }, + "description": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Localized descriptions for the Relationship." + }, + "expiryDateTimeUtc": { + "type": "string", + "format": "date-time", + "description": "The expiry date time in UTC." + }, + "fields": { + "type": "array", + "items": { + "$ref": "#/definitions/PropertyDefinition" + }, + "description": "The properties of the Relationship." + }, + "lookupMappings": { + "type": "array", + "items": { + "$ref": "#/definitions/RelationshipTypeMapping" + }, + "description": "Optional property to be used to map fields in profile to their strong ids in related profile." + }, + "profileType": { + "type": "string", + "description": "Profile type." + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "readOnly": true, + "description": "Provisioning state." + }, + "relationshipName": { + "type": "string", + "readOnly": true, + "description": "The Relationship name." + }, + "relatedProfileType": { + "type": "string", + "description": "Related profile being referenced." + }, + "relationshipGuidId": { + "type": "string", + "readOnly": true, + "description": "The relationship guid id." + }, + "tenantId": { + "type": "string", + "readOnly": true, + "description": "The hub name." + } + }, + "description": "The definition of Relationship." + }, + "RelationshipLinkFieldMapping": { + "required": [ + "interactionFieldName", + "relationshipFieldName" + ], + "properties": { + "interactionFieldName": { + "type": "string", + "description": "The field name on the Interaction Type." + }, + "linkType": { + "type": "string", + "enum": [ + "UpdateAlways", + "CopyIfNull" + ], + "x-ms-enum": { + "name": "LinkTypes", + "modelAsString": false + }, + "description": "Link type." + }, + "relationshipFieldName": { + "type": "string", + "description": "The field name on the Relationship metadata." + } + }, + "description": "The fields mapping for Relationships." + }, + "RelationshipLinkDefinition": { + "required": [ + "interactionType", + "profilePropertyReferences", + "relatedProfilePropertyReferences", + "relationshipName" + ], + "properties": { + "displayName": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Localized display name for the Relationship Link." + }, + "description": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Localized descriptions for the Relationship Link." + }, + "interactionType": { + "type": "string", + "description": "The InteractionType associated with the Relationship Link." + }, + "linkName": { + "type": "string", + "readOnly": true, + "description": "The name of the Relationship Link." + }, + "mappings": { + "type": "array", + "items": { + "$ref": "#/definitions/RelationshipLinkFieldMapping" + }, + "description": "The mappings between Interaction and Relationship fields." + }, + "profilePropertyReferences": { + "type": "array", + "items": { + "$ref": "#/definitions/ParticipantProfilePropertyReference" + }, + "description": "The property references for the Profile of the Relationship." + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "readOnly": true, + "description": "Provisioning state." + }, + "relatedProfilePropertyReferences": { + "type": "array", + "items": { + "$ref": "#/definitions/ParticipantProfilePropertyReference" + }, + "description": "The property references for the Related Profile of the Relationship." + }, + "relationshipName": { + "type": "string", + "description": "The Relationship associated with the Link." + }, + "relationshipGuidId": { + "type": "string", + "readOnly": true, + "description": "The relationship guid id." + }, + "tenantId": { + "type": "string", + "readOnly": true, + "description": "The hub name." + } + }, + "description": "The definition of relationship link." + }, + "TypePropertiesMapping": { + "required": [ + "sourcePropertyName", + "targetPropertyName" + ], + "properties": { + "sourcePropertyName": { + "type": "string", + "description": " Property name on the source Entity Type." + }, + "targetPropertyName": { + "type": "string", + "description": "Property name on the target Entity Type." + }, + "linkType": { + "type": "string", + "enum": [ + "UpdateAlways", + "CopyIfNull" + ], + "x-ms-enum": { + "name": "LinkTypes", + "modelAsString": false + }, + "description": "Link type." + } + }, + "description": "Metadata for a Link's property mapping." + }, + "Participant": { + "required": [ + "participantName", + "profileTypeName", + "participantPropertyReferences" + ], + "properties": { + "profileTypeName": { + "type": "string", + "description": "Profile type name." + }, + "participantPropertyReferences": { + "type": "array", + "items": { + "$ref": "#/definitions/ParticipantPropertyReference" + }, + "description": "The property references." + }, + "participantName": { + "type": "string", + "description": "Participant name." + }, + "displayName": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Localized display name." + }, + "description": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Localized descriptions." + }, + "role": { + "type": "string", + "description": "The role that the participant is playing in the interaction." + } + }, + "description": "Describes a profile type participating in an interaction." + }, + "ParticipantPropertyReference": { + "required": [ + "sourcePropertyName", + "targetPropertyName" + ], + "properties": { + "sourcePropertyName": { + "type": "string", + "description": "The source property that maps to the target property." + }, + "targetPropertyName": { + "type": "string", + "description": "The target property that maps to the source property." + } + }, + "description": "The participant property reference." + }, + "ParticipantProfilePropertyReference": { + "required": [ + "interactionPropertyName", + "profilePropertyName" + ], + "properties": { + "interactionPropertyName": { + "type": "string", + "description": "The source interaction property that maps to the target profile property." + }, + "profilePropertyName": { + "type": "string", + "description": "The target profile property that maps to the source interaction property." + } + }, + "description": "The participant profile property reference." + }, + "InteractionTypeDefinition": { + "description": "The Interaction Type Definition", + "allOf": [ + { + "$ref": "#/definitions/EntityTypeDefinition" + } + ], + "properties": { + "idPropertyNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The id property names. Properties which uniquely identify an interaction instance." + }, + "participantProfiles": { + "type": "array", + "items": { + "$ref": "#/definitions/Participant" + }, + "description": "Profiles that participated in the interaction." + }, + "primaryParticipantProfilePropertyName": { + "type": "string", + "description": "The primary participant property name for an interaction ,This is used to logically represent the agent of the interaction, Specify the participant name here from ParticipantName." + }, + "dataSourcePrecedenceRules": { + "type": "array", + "items": { + "$ref": "#/definitions/DataSourcePrecedence" + }, + "readOnly": true, + "description": "This is specific to interactions modeled as activities. Data sources are used to determine where data is stored and also in precedence rules." + }, + "defaultDataSource": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DataSource", + "description": "Default data source is specifically used in cases where data source is not specified in an instance." + }, + "isActivity": { + "type": "boolean", + "description": "An interaction can be tagged as an activity only during create. This enables the interaction to be editable and can enable merging of properties from multiple data sources based on precedence, which is defined at a link level." + } + } + }, + "DataSource": { + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "The data source name" + }, + "dataSourceType": { + "type": "string", + "enum": [ + "Connector", + "LinkInteraction", + "SystemDefault" + ], + "x-ms-enum": { + "name": "DataSourceType", + "modelAsString": true + }, + "readOnly": true, + "description": "The data source type." + }, + "status": { + "type": "string", + "enum": [ + "None", + "Active", + "Deleted" + ], + "x-ms-enum": { + "name": "Status", + "modelAsString": true + }, + "readOnly": true, + "description": "The data source status." + }, + "id": { + "type": "integer", + "readOnly": true, + "description": "The data source ID." + }, + "dataSourceReferenceId": { + "type": "string", + "readOnly": true, + "description": "The data source reference id." + } + }, + "description": "Data Source is a way for us to know the source of instances. A single type can have data coming in from multiple places. In activities we use this to determine precedence rules." + }, + "DataSourcePrecedence": { + "properties": { + "dataSource": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DataSource" + }, + "precedence": { + "type": "integer", + "description": "the precedence value." + } + }, + "description": "The data source precedence is a way to know the precedence of each data source." + }, + "StrongId": { + "required": [ + "keyPropertyNames", + "strongIdName" + ], + "properties": { + "keyPropertyNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The properties which make up the unique ID." + }, + "strongIdName": { + "type": "string", + "description": "The Name identifying the strong ID." + }, + "displayName": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Localized display name." + }, + "description": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Localized descriptions." + } + }, + "description": "Property/Properties which represent a unique ID." + }, + "ProfileTypeDefinition": { + "description": "The profile type definition.", + "properties": { + "strongIds": { + "type": "array", + "items": { + "$ref": "#/definitions/StrongId" + }, + "description": "The strong IDs." + } + }, + "allOf": [ + { + "$ref": "#/definitions/EntityTypeDefinition" + } + ] + }, + "ProfileResourceFormat": { + "description": "The profile resource format.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ProfileTypeDefinition" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "ProfileListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ProfileResourceFormat" + }, + "description": "Results of the list operation." + }, + "nextLink": { + "type": "string", + "description": "Link to the next set of results." + } + }, + "description": "The response of list profile operation." + }, + "InteractionResourceFormat": { + "description": "The interaction resource format.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/InteractionTypeDefinition" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "InteractionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/InteractionResourceFormat" + }, + "description": "Results of the list operation." + }, + "nextLink": { + "type": "string", + "description": "Link to the next set of results." + } + }, + "description": "The response of list interaction operation." + }, + "KpiResourceFormat": { + "description": "The KPI resource format.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/KpiDefinition" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "KpiListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/KpiResourceFormat" + }, + "description": "Results of the list operation." + }, + "nextLink": { + "type": "string", + "description": "Link to the next set of results." + } + }, + "description": "The response of list KPI operation." + }, + "EnrichingKpi": { + "allOf": [ + { + "$ref": "#/definitions/KpiDefinition" + } + ], + "description": "The enriching KPI definition." + }, + "ConnectorResourceFormat": { + "description": "The connector resource format.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/Connector" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "ConnectorListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ConnectorResourceFormat" + }, + "description": "Results of the list operation." + }, + "nextLink": { + "type": "string", + "description": "Link to the next set of results." + } + }, + "description": "The response of list connector operation." + }, + "ConnectorMappingResourceFormat": { + "description": "The c onnector mapping resource format.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ConnectorMapping" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "ConnectorMappingListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ConnectorMappingResourceFormat" + }, + "description": "Results of the list operation." + }, + "nextLink": { + "type": "string", + "description": "Link to the next set of results." + } + }, + "description": "The response of list connector mapping operation." + }, + "AuthorizationPolicyResourceFormat": { + "description": "The authorization policy resource format.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AuthorizationPolicy" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "AuthorizationPolicyListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AuthorizationPolicyResourceFormat" + }, + "description": "Results of the list operation." + }, + "nextLink": { + "type": "string", + "description": "Link to the next set of results." + } + }, + "description": "The response of list authorization policy operation." + }, + "LinkResourceFormat": { + "description": "The link resource format.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/LinkDefinition" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "LinkListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/LinkResourceFormat" + }, + "description": "Results of the list operation." + }, + "nextLink": { + "type": "string", + "description": "Link to the next set of results." + } + }, + "description": "The response of list link operation." + }, + "RelationshipResourceFormat": { + "description": "The relationship resource format.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RelationshipDefinition" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "RelationshipListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RelationshipResourceFormat" + }, + "description": "Results of the list operation." + }, + "nextLink": { + "type": "string", + "description": "Link to the next set of results." + } + }, + "description": "The response of list relationship operation." + }, + "RelationshipLinkResourceFormat": { + "description": "The relationship link resource format.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RelationshipLinkDefinition" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "RelationshipLinkListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RelationshipLinkResourceFormat" + }, + "description": "Results of the list operation." + }, + "nextLink": { + "type": "string", + "description": "Link to the next set of results." + } + }, + "description": "The response of list relationship link operation." + }, + "ViewResourceFormat": { + "description": "The view resource format.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/View" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "ViewListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ViewResourceFormat" + }, + "description": "Results of the list operation." + }, + "nextLink": { + "type": "string", + "description": "Link to the next set of results." + } + }, + "description": "The response of list view operation." + }, + "WidgetTypeResourceFormat": { + "description": "The WidgetTypeResourceFormat", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/WidgetType" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "WidgetTypeListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/WidgetTypeResourceFormat" + }, + "description": "Results of the list operation." + }, + "nextLink": { + "type": "string", + "description": "Link to the next set of results." + } + }, + "description": "The response of list widget type operation." + }, + "RoleAssignment": { + "description": "The Role Assignment definition.", + "required": [ + "role", + "principals" + ], + "properties": { + "tenantId": { + "type": "string", + "readOnly": true, + "description": "The hub name." + }, + "assignmentName": { + "type": "string", + "readOnly": true, + "description": "The name of the metadata object." + }, + "displayName": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Localized display names for the metadata." + }, + "description": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Localized description for the metadata." + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "readOnly": true, + "description": "Provisioning state." + }, + "role": { + "type": "string", + "enum": [ + "Admin", + "Reader", + "ManageAdmin", + "ManageReader", + "DataAdmin", + "DataReader" + ], + "x-ms-enum": { + "name": "RoleTypes", + "modelAsString": false + }, + "description": "Type of roles." + }, + "principals": { + "type": "array", + "items": { + "$ref": "#/definitions/AssignmentPrincipal" + }, + "description": "The principals being assigned to." + }, + "profiles": { + "$ref": "#/definitions/ResourceSetDescription", + "description": "Profiles set for the assignment." + }, + "interactions": { + "$ref": "#/definitions/ResourceSetDescription", + "description": "Interactions set for the assignment." + }, + "links": { + "$ref": "#/definitions/ResourceSetDescription", + "description": "Links set for the assignment." + }, + "kpis": { + "$ref": "#/definitions/ResourceSetDescription", + "description": "Kpis set for the assignment." + }, + "sasPolicies": { + "$ref": "#/definitions/ResourceSetDescription", + "description": "Sas Policies set for the assignment." + }, + "connectors": { + "$ref": "#/definitions/ResourceSetDescription", + "description": "Connectors set for the assignment." + }, + "views": { + "$ref": "#/definitions/ResourceSetDescription", + "description": "Views set for the assignment." + }, + "relationshipLinks": { + "$ref": "#/definitions/ResourceSetDescription", + "description": "The Role assignments set for the relationship links." + }, + "relationships": { + "$ref": "#/definitions/ResourceSetDescription", + "description": "The Role assignments set for the relationships." + }, + "widgetTypes": { + "$ref": "#/definitions/ResourceSetDescription", + "description": "Widget types set for the assignment." + }, + "roleAssignments": { + "$ref": "#/definitions/ResourceSetDescription", + "description": "The Role assignments set for the assignment." + }, + "conflationPolicies": { + "$ref": "#/definitions/ResourceSetDescription", + "description": "Widget types set for the assignment." + }, + "segments": { + "$ref": "#/definitions/ResourceSetDescription", + "description": "The Role assignments set for the assignment." + } + } + }, + "RoleAssignmentListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RoleAssignmentResourceFormat" + }, + "description": "Results of the list operation." + }, + "nextLink": { + "type": "string", + "description": "Link to the next set of results." + } + }, + "description": "The response of list role assignment operation." + }, + "RoleAssignmentResourceFormat": { + "description": "The Role Assignment resource format.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RoleAssignment" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "ResourceSetDescription": { + "description": "The resource set description.", + "properties": { + "elements": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The elements included in the set." + }, + "exceptions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The elements that are not included in the set, in case elements contains '*' indicating 'all'." + } + } + }, + "AssignmentPrincipal": { + "description": "The AssignmentPrincipal", + "required": [ + "principalId", + "principalType" + ], + "properties": { + "principalId": { + "type": "string", + "description": "The principal id being assigned to." + }, + "principalType": { + "type": "string", + "description": "The Type of the principal ID." + }, + "principalMetadata": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Other metadata for the principal." + } + } + }, + "Role": { + "description": "The Role definition.", + "properties": { + "roleName": { + "type": "string", + "description": "The role name." + }, + "description": { + "type": "string", + "description": "The description of the role." + } + } + }, + "RoleResourceFormat": { + "description": "The role resource format.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/Role" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "RoleListResult": { + "description": "The response of list role assignment operation.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RoleResourceFormat" + }, + "description": "Results of the list operation." + }, + "nextLink": { + "type": "string", + "description": "Link to the next set of results." + } + } + }, + "GetImageUploadUrlInput": { + "properties": { + "entityType": { + "type": "string", + "description": "Type of entity. Can be Profile or Interaction." + }, + "entityTypeName": { + "type": "string", + "description": "Name of the entity type." + }, + "relativePath": { + "type": "string", + "description": "Relative path of the image." + } + }, + "description": "Input type for getting image upload url." + }, + "ImageDefinition": { + "properties": { + "imageExists": { + "type": "boolean", + "description": "Whether image exists already." + }, + "contentUrl": { + "type": "string", + "description": "Content URL for the image blob." + }, + "relativePath": { + "type": "string", + "description": "Relative path of the image." + } + }, + "description": "The image definition." + }, + "PermissionTypes": { + "type": "string", + "enum": [ + "Read", + "Write", + "Manage" + ], + "x-ms-enum": { + "name": "PermissionTypes", + "modelAsString": false + }, + "description": "Supported permission types." + }, + "ProvisioningState": { + "type": "string", + "enum": [ + "Provisioning", + "Succeeded", + "Expiring", + "Deleting", + "HumanIntervention", + "Failed" + ], + "x-ms-enum": { + "name": "ProvisioningStates", + "modelAsString": true + }, + "description": "Provisioning state." + }, + "ConnectorType": { + "type": "string", + "enum": [ + "None", + "CRM", + "AzureBlob", + "Salesforce", + "ExchangeOnline", + "Outbound" + ], + "x-ms-enum": { + "name": "ConnectorTypes", + "modelAsString": true + }, + "description": "Type of connector." + }, + "SuggestRelationshipLinksResponse": { + "properties": { + "interactionName": { + "type": "string", + "readOnly": true, + "description": "The interaction name." + }, + "suggestedRelationships": { + "type": "array", + "items": { + "$ref": "#/definitions/RelationshipsLookup" + }, + "readOnly": true, + "description": "Suggested relationships for the type." + } + }, + "description": "The response of suggest relationship links operation." + }, + "RelationshipsLookup": { + "properties": { + "profileName": { + "type": "string", + "readOnly": true, + "description": "The relationship profile." + }, + "profilePropertyReferences": { + "type": "array", + "items": { + "$ref": "#/definitions/ParticipantProfilePropertyReference" + }, + "readOnly": true, + "description": "The property references for the profile type." + }, + "relatedProfileName": { + "type": "string", + "readOnly": true, + "description": "The related profile." + }, + "relatedProfilePropertyReferences": { + "type": "array", + "items": { + "$ref": "#/definitions/ParticipantProfilePropertyReference" + }, + "readOnly": true, + "description": "The property references for the related profile type." + }, + "existingRelationshipName": { + "type": "string", + "readOnly": true, + "description": "The name of existing Relationship." + } + }, + "description": "The definition of suggested relationship for the type." + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + } + } +} \ No newline at end of file