swagger: "2.0"
schemes:
  - https
host: management.azure.com
info:
  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.
  title: CustomerInsightsManagementClient
  version: 2017-01-01
  x-apisguru-categories:
    - cloud
  x-logo:
    url: https://api.apis.guru/v2/cache/logo/https_assets.onestore.ms_cdnfiles_onestorerolling-1606-01000_shell_v3_images_logo_microsoft.png
  x-ms-code-generation-settings:
    name: CustomerInsightsManagementClient
  x-origin:
    - format: swagger
      url: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/customer-insights/resource-manager/Microsoft.CustomerInsights/stable/2017-01-01/customer-insights.json
      version: "2.0"
  x-preferred: false
  x-providerName: azure.com
  x-serviceName: customer-insights
  x-tags:
    - Azure
    - Microsoft
consumes:
  - application/json
produces:
  - application/json
securityDefinitions:
  azure_auth:
    authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
    description: Azure Active Directory OAuth2 Flow.
    flow: implicit
    scopes:
      user_impersonation: impersonate your user account
    type: oauth2
security:
  - azure_auth:
      - user_impersonation
parameters:
  ApiVersionParameter:
    description: Client Api Version.
    in: query
    name: api-version
    required: true
    type: string
  SubscriptionIdParameter:
    description: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
    in: path
    name: subscriptionId
    required: true
    type: string
paths:
  /providers/Microsoft.CustomerInsights/operations:
    get:
      description: Lists all of the available Customer Insights REST API operations.
      operationId: Operations_List
      parameters:
        - $ref: "#/parameters/ApiVersionParameter"
      responses:
        "200":
          description: OK. The request has succeeded.
          schema:
            $ref: "#/definitions/OperationListResult"
      tags:
        - Operations
      x-ms-examples:
        DCIOperations_List:
          parameters:
            api-version: 2016-07-01
          responses:
            "200":
              body:
                value:
                  - display:
                      operation: Read Azure Customer Insights Hub
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights Hubs
                    name: Microsoft.CustomerInsights/hubs/read
                  - display:
                      operation: Create or Update Azure Customer Insights Hub
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights Hubs
                    name: Microsoft.CustomerInsights/hubs/write
                  - display:
                      operation: Delete Azure Customer Insights Hub
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights Hubs
                    name: Microsoft.CustomerInsights/hubs/delete
                  - display:
                      operation: Read Azure Customer Insights App View
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights App Views
                    name: Microsoft.CustomerInsights/hubs/views/read
                  - display:
                      operation: Create or Update Azure Customer Insights App View
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights App Views
                    name: Microsoft.CustomerInsights/hubs/views/write
                  - display:
                      operation: Delete Azure Customer Insights App View
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights App Views
                    name: Microsoft.CustomerInsights/hubs/views/delete
                  - display:
                      operation: Read Azure Customer Insights Connector
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights Connectors
                    name: Microsoft.CustomerInsights/hubs/connectors/read
                  - display:
                      operation: Create or Update Azure Customer Insights Connector
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights Connectors
                    name: Microsoft.CustomerInsights/hubs/connectors/write
                  - display:
                      operation: Delete Azure Customer Insights Connector
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights Connectors
                    name: Microsoft.CustomerInsights/hubs/connectors/delete
                  - display:
                      operation: Read Azure Customer Insights Connector Mapping
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights Connector Mappings
                    name: Microsoft.CustomerInsights/hubs/connectors/mappings/read
                  - display:
                      operation: Create or Update Azure Customer Insights Connector Mapping
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights Connector Mappings
                    name: Microsoft.CustomerInsights/hubs/connectors/mappings/write
                  - display:
                      operation: Delete Azure Customer Insights App View
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights Connector Mappings
                    name: Microsoft.CustomerInsights/hubs/connectors/mappings/delete
                  - display:
                      operation: Read Azure Customer Insights Interaction
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights Interactions
                    name: Microsoft.CustomerInsights/hubs/interactions/read
                  - display:
                      operation: Create or Update Azure Customer Insights Interaction
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights Interactions
                    name: Microsoft.CustomerInsights/hubs/interactions/write
                  - display:
                      operation: Read Azure Customer Insights Profile
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights Profiles
                    name: Microsoft.CustomerInsights/hubs/profiles/read
                  - display:
                      operation: Create or Update Azure Customer Insights Profile
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights Profiles
                    name: Microsoft.CustomerInsights/hubs/profiles/write
                  - display:
                      operation: Read Azure Customer Insights Key Performance Indicator
                      provider: Microsoft Azure Customer Insights
                      resource: Create or Update Customer Insights Key Performance Indicators
                    name: Microsoft.CustomerInsights/hubs/kpi/read
                  - display:
                      operation: Create or Update Azure Customer Insights Key Performance Indicator
                      provider: Microsoft Azure Customer Insights
                      resource: Create or Update Customer Insights Key Performance Indicators
                    name: Microsoft.CustomerInsights/hubs/kpi/write
                  - display:
                      operation: Delete Azure Customer Insights Key Performance Indicator
                      provider: Microsoft Azure Customer Insights
                      resource: Create or Update Customer Insights Key Performance Indicators
                    name: Microsoft.CustomerInsights/hubs/kpi/delete
                  - display:
                      operation: Read Azure Customer Insights Rbac Assignment
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights Rbac Assignments
                    name: Microsoft.CustomerInsights/hubs/roleAssignments/read
                  - display:
                      operation: Create or Update Azure Customer Insights Rbac Assignment
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights Rbac Assignments
                    name: Microsoft.CustomerInsights/hubs/roleAssignments/write
                  - display:
                      operation: Delete Azure Customer Insights Rbac Assignment
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights Rbac Assignments
                    name: Microsoft.CustomerInsights/hubs/roleAssignments/delete
                  - display:
                      operation: Read Azure Customer Insights Shared Access Signature Policy
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights Shared Access Signature Policies
                    name: Microsoft.CustomerInsights/hubs/authorizationPolicies/read
                  - display:
                      operation: Create or Update Azure Customer Insights Shared Access Signature Policy
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights Shared Access Signature Policies
                    name: Microsoft.CustomerInsights/hubs/authorizationPolicies/write
                  - display:
                      operation: Delete Azure Customer Insights Shared Access Signature Policy
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights Shared Access Signature Policies
                    name: Microsoft.CustomerInsights/hubs/authorizationPolicies/delete
                  - display:
                      operation: Regenerate Azure Customer Insights Shared Access Signature Policy primary key
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights Shared Access Signature Policies
                    name: Microsoft.CustomerInsights/hubs/authorizationPolicies/regeneratePrimaryKey/action
                  - display:
                      operation: Regenerate Azure Customer Insights Shared Access Signature Policy secondary key
                      provider: Microsoft Azure Customer Insights
                      resource: Azure Customer Insights Shared Access Signature Policies
                    name: Microsoft.CustomerInsights/hubs/authorizationPolicies/regenerateSecondaryKey/action
                  - display:
                      operation: Read resource metric definitions
                      provider: Microsoft Azure Customer Insights
                      resource: Microsoft Azure Customer Insights Metric Definition
                    name: Microsoft.CustomerInsights/hubs/providers/Microsoft.Insights/metricDefinitions/read
                  - display:
                      operation: Read resource log definitions
                      provider: Microsoft Azure Customer Insights
                      resource: Microsoft Azure Customer Insights Log Definition
                    name: Microsoft.CustomerInsights/hubs/providers/Microsoft.Insights/logDefinitions/read
                  - display:
                      operation: Diagnostic setting read
                      provider: Microsoft Azure Customer Insights
                      resource: Microsoft Azure Customer Insights Diagnostic Settings
                    name: Microsoft.CustomerInsights/hubs/providers/Microsoft.Insights/diagnosticSettings/read
                  - display:
                      operation: Diagnostic setting write
                      provider: Microsoft Azure Customer Insights
                      resource: Microsoft Azure Customer Insights Diagnostic Settings
                    name: Microsoft.CustomerInsights/hubs/providers/Microsoft.Insights/diagnosticSettings/write
      x-ms-pageable:
        nextLinkName: nextLink
  "/subscriptions/{subscriptionId}/providers/Microsoft.CustomerInsights/hubs":
    get:
      description: Gets all hubs in the specified subscription.
      operationId: Hubs_List
      parameters:
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get all the hubs in the subscription.
          schema:
            $ref: "#/definitions/HubListResult"
      tags:
        - Hubs
      x-ms-examples:
        Hubs_List:
          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
                      hubBillingInfo:
                        maxUnits: 1
                        minUnits: 1
                        skuName: B0
                      provisioningState: Succeeded
                      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
                      hubBillingInfo:
                        maxUnits: 5
                        minUnits: 1
                        skuName: B0
                      provisioningState: Succeeded
                      tenantFeatures: 0
                      webEndpoint: https://testHub1058.dfdapps.projectuic-int.net
                    tags: {}
                    type: Microsoft.CustomerInsights/hubs
      x-ms-pageable:
        nextLinkName: nextLink
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs":
    get:
      description: Gets all the hubs in a resource group.
      operationId: Hubs_ListByResourceGroup
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get all the hubs in the resource group.
          schema:
            $ref: "#/definitions/HubListResult"
      tags:
        - Hubs
      x-ms-examples:
        Hubs_ListByResourceGroup:
          parameters:
            api-version: 2016-01-01
            resourceGroupName: TestHubRG
            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
                      hubBillingInfo:
                        maxUnits: 1
                        minUnits: 1
                        skuName: B0
                      provisioningState: Succeeded
                      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
                      hubBillingInfo:
                        maxUnits: 5
                        minUnits: 1
                        skuName: B0
                      provisioningState: Succeeded
                      tenantFeatures: 0
                      webEndpoint: https://testHub1058.dfdapps.projectuic-int.net
                    tags: {}
                    type: Microsoft.CustomerInsights/hubs
      x-ms-pageable:
        nextLinkName: nextLink
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}":
    delete:
      description: Deletes the specified hub.
      operationId: Hubs_Delete
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - $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.
      tags:
        - Hubs
      x-ms-examples:
        Hubs_Delete:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            resourceGroupName: TestHubRG
            subscriptionId: subid
          responses:
            "200": {}
            "202": {}
            "204": {}
      x-ms-long-running-operation: true
    get:
      description: Gets information about the specified hub.
      operationId: Hubs_Get
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get the hub.
          schema:
            $ref: "#/definitions/Hub"
      tags:
        - Hubs
      x-ms-examples:
        Hubs_Get:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            resourceGroupName: TestHubRG
            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
                  hubBillingInfo:
                    maxUnits: 5
                    minUnits: 1
                    skuName: B0
                  provisioningState: Creating
                  tenantFeatures: 0
                  webEndpoint: https://testHub2839.dfdapps.projectuic-int.net
                tags: {}
                type: Microsoft.CustomerInsights/hubs
    patch:
      description: Updates a Hub.
      operationId: Hubs_Update
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the Hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: Parameters supplied to the Update Hub operation.
          in: body
          name: parameters
          required: true
          schema:
            $ref: "#/definitions/Hub"
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. The hub is updated.
          schema:
            $ref: "#/definitions/Hub"
      tags:
        - Hubs
      x-ms-examples:
        Hubs_Update:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            parameters:
              location: West US
              properties:
                hubBillingInfo:
                  maxUnits: 5
                  minUnits: 1
                  skuName: B0
            resourceGroupName: TestHubRG
            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
                  hubBillingInfo:
                    maxUnits: 5
                    minUnits: 1
                    skuName: B0
                  provisioningState: Created
                  tenantFeatures: 0
                  webEndpoint: https://testHub2839.dfdapps.projectuic-int.net
                tags: {}
                type: Microsoft.CustomerInsights/hubs
    put:
      description: Creates a hub, or updates an existing hub.
      operationId: Hubs_CreateOrUpdate
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the Hub.
          in: path
          maxLength: 64
          minLength: 1
          name: hubName
          pattern: ^[a-zA-Z][a-zA-Z0-9]+$
          required: true
          type: string
        - description: Parameters supplied to the CreateOrUpdate Hub operation.
          in: body
          name: parameters
          required: true
          schema:
            $ref: "#/definitions/Hub"
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. An existing hub is updated.
          schema:
            $ref: "#/definitions/Hub"
        "201":
          description: Created. A new hub is created.
          schema:
            $ref: "#/definitions/Hub"
      tags:
        - Hubs
      x-ms-examples:
        Hubs_CreateOrUpdate:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            parameters:
              location: West US
              properties:
                hubBillingInfo:
                  maxUnits: 5
                  minUnits: 1
                  skuName: B0
            resourceGroupName: TestHubRG
            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
                  hubBillingInfo:
                    maxUnits: 5
                    minUnits: 1
                    skuName: B0
                  provisioningState: Creating
                  tenantFeatures: 0
                  webEndpoint: https://testHub2839.dfdapps.projectuic-int.net
                tags: {}
                type: Microsoft.CustomerInsights/hubs
            "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
                  hubBillingInfo:
                    maxUnits: 5
                    minUnits: 1
                    skuName: B0
                  provisioningState: Creating
                  tenantFeatures: 0
                  webEndpoint: https://testHub2839.dfdapps.projectuic-int.net
                tags: {}
                type: Microsoft.CustomerInsights/hubs
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/authorizationPolicies":
    get:
      description: Gets all the authorization policies in a specified hub.
      operationId: AuthorizationPolicies_ListByHub
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get all the authorization policies in the hub.
          schema:
            $ref: "#/definitions/AuthorizationPolicyListResult"
      tags:
        - AuthorizationPolicies
      x-ms-examples:
        AuthorizationPolicies_ListByHub:
          parameters:
            api-version: 2016-01-01
            hubName: azSdkTestHub
            resourceGroupName: TestHubRG
            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
      x-ms-pageable:
        nextLinkName: nextLink
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/authorizationPolicies/{authorizationPolicyName}":
    get:
      description: Gets an authorization policy in the hub.
      operationId: AuthorizationPolicies_Get
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the policy.
          in: path
          name: authorizationPolicyName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get the authorization policy.
          schema:
            $ref: "#/definitions/AuthorizationPolicyResourceFormat"
      tags:
        - AuthorizationPolicies
      x-ms-examples:
        AuthorizationPolicies_Get:
          parameters:
            api-version: 2016-01-01
            authorizationPolicyName: testPolicy4222
            hubName: azSdkTestHub
            resourceGroupName: TestHubRG
            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
    put:
      description: Creates an authorization policy or updates an existing authorization policy.
      operationId: AuthorizationPolicies_CreateOrUpdate
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the policy.
          in: path
          maxLength: 50
          minLength: 1
          name: authorizationPolicyName
          pattern: ^[A-Za-z0-9]$|^[A-Za-z0-9][\w-\.]*[A-Za-z0-9]$
          required: true
          type: string
        - description: Parameters supplied to the CreateOrUpdate authorization policy operation.
          in: body
          name: parameters
          required: true
          schema:
            $ref: "#/definitions/AuthorizationPolicyResourceFormat"
        - $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"
      tags:
        - AuthorizationPolicies
      x-ms-examples:
        AuthorizationPolicies_CreateOrUpdate:
          parameters:
            api-version: 2016-01-01
            authorizationPolicyName: testPolicy4222
            hubName: azSdkTestHub
            parameters:
              properties:
                permissions:
                  - Read
                  - Write
                  - Manage
            resourceGroupName: TestHubRG
            subscriptionId: subid
          responses:
            "200":
              body:
                id: /subscriptions/subid/resourceGroups//TestHubRG/providers/Microsoft.CustomerInsights/hubs/azSdkTestHub/AuthorizationPolicies/testPolicy4222
                name: testPolicy4222
                properties:
                  permissions:
                    - Read
                    - Write
                    - Manage
                  policyName: testPolicy4222
                  primaryKey: cHJpbWFyeVRlc3RSZWFk
                  secondaryKey: c2Vjb25kYXJ5VGVzdFJlYWQ=
                type: Microsoft.CustomerInsights/hubs/AuthorizationPolicies
            "201":
              body:
                id: /subscriptions/subid/resourceGroups//TestHubRG/providers/Microsoft.CustomerInsights/hubs/azSdkTestHub/AuthorizationPolicies/testPolicy4222
                name: testPolicy4222
                properties:
                  permissions:
                    - Read
                    - Write
                    - Manage
                  policyName: testPolicy4222
                  primaryKey: cHJpbWFyeVRlc3RSZWFk
                  secondaryKey: c2Vjb25kYXJ5VGVzdFJlYWQ=
                type: Microsoft.CustomerInsights/hubs/AuthorizationPolicies
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/authorizationPolicies/{authorizationPolicyName}/regeneratePrimaryKey":
    post:
      description: Regenerates the primary policy key of the specified authorization policy.
      operationId: AuthorizationPolicies_RegeneratePrimaryKey
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the policy.
          in: path
          name: authorizationPolicyName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. The primary key of the authorization policy is regenerated.
          schema:
            $ref: "#/definitions/AuthorizationPolicy"
      tags:
        - AuthorizationPolicies
      x-ms-examples:
        AuthorizationPolicies_RegeneratePrimaryKey:
          parameters:
            api-version: 2016-01-01
            authorizationPolicyName: testPolicy4222
            hubName: azSdkTestHub
            resourceGroupName: TestHubRG
            subscriptionId: subid
          responses:
            "200":
              body:
                permissions:
                  - Read
                  - Write
                  - Manage
                policyName: testPolicy4009
                primaryKey: UXZMQlt3kbcUc7Mx6WMVsNWj5rTmG6/cg9UrTY9YuoY=
                secondaryKey: c2Vjb25kYXJ5VGVzdFJlYWQ=
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/authorizationPolicies/{authorizationPolicyName}/regenerateSecondaryKey":
    post:
      description: Regenerates the secondary policy key of the specified authorization policy.
      operationId: AuthorizationPolicies_RegenerateSecondaryKey
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the policy.
          in: path
          name: authorizationPolicyName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. The secondary key of the authorization policy is regenerated.
          schema:
            $ref: "#/definitions/AuthorizationPolicy"
      tags:
        - AuthorizationPolicies
      x-ms-examples:
        AuthorizationPolicies_RegenerateSecondaryKey:
          parameters:
            api-version: 2016-01-01
            authorizationPolicyName: testPolicy4222
            hubName: azSdkTestHub
            resourceGroupName: TestHubRG
            subscriptionId: subid
          responses:
            "200":
              body:
                permissions:
                  - Read
                  - Write
                  - Manage
                policyName: testPolicy4009
                primaryKey: UXZMQlt3kbcUc7Mx6WMVsNWj5rTmG6/cg9UrTY9YuoY=
                secondaryKey: c2Vjb25kYXJ5VGVzdFJlYWQ=
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/connectors":
    get:
      description: Gets all the connectors in the specified hub.
      operationId: Connectors_ListByHub
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get all the connectors in the hub.
          schema:
            $ref: "#/definitions/ConnectorListResult"
      tags:
        - Connectors
      x-ms-examples:
        Connectors_ListByHub:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            resourceGroupName: TestHubRG
            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
                      connectorProperties:
                        connectionKeyVaultUrl:
                          organizationId: XXX
                          organizationUrl: https://XXX.crmlivetie.com/
                      connectorType: AzureBlob
                      description: Test connector
                      displayName: testConnector
                      state: Creating
                      tenantId: sdktesthub
                    type: Microsoft.CustomerInsights/hubs/connectors
      x-ms-pageable:
        nextLinkName: nextLink
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/connectors/{connectorName}":
    delete:
      description: Deletes a connector in the hub.
      operationId: Connectors_Delete
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the connector.
          in: path
          name: connectorName
          required: true
          type: string
        - $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.
      tags:
        - Connectors
      x-ms-examples:
        Connectors_Delete:
          parameters:
            api-version: 2016-01-01
            connectorName: testConnector
            hubName: sdkTestHub
            resourceGroupName: TestHubRG
            subscriptionId: subid
          responses:
            "200": {}
            "202": {}
            "204": {}
      x-ms-long-running-operation: true
    get:
      description: Gets a connector in the hub.
      operationId: Connectors_Get
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the connector.
          in: path
          name: connectorName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get the connector.
          schema:
            $ref: "#/definitions/ConnectorResourceFormat"
      tags:
        - Connectors
      x-ms-examples:
        Connectors_Get:
          parameters:
            api-version: 2016-01-01
            connectorName: testConnector
            hubName: sdkTestHub
            resourceGroupName: TestHubRG
            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
                  connectorProperties:
                    connectionKeyVaultUrl:
                      organizationId: XXX
                      organizationUrl: https://XXX.crmlivetie.com/
                  connectorType: AzureBlob
                  description: Test connector
                  displayName: testConnector
                  state: Creating
                  tenantId: sdktesthub
                type: Microsoft.CustomerInsights/hubs/connectors
    put:
      description: Creates a connector or updates an existing connector in the hub.
      operationId: Connectors_CreateOrUpdate
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the connector.
          in: path
          maxLength: 128
          minLength: 1
          name: connectorName
          pattern: ^[a-zA-Z][a-zA-Z0-9_]+$
          required: true
          type: string
        - description: Parameters supplied to the CreateOrUpdate Connector operation.
          in: body
          name: parameters
          required: true
          schema:
            $ref: "#/definitions/ConnectorResourceFormat"
        - $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.
      tags:
        - Connectors
      x-ms-examples:
        Connectors_CreateOrUpdate:
          parameters:
            api-version: 2016-01-01
            connectorName: testConnector
            hubName: sdkTestHub
            parameters:
              properties:
                connectorProperties:
                  connectionKeyVaultUrl:
                    organizationId: XXX
                    organizationUrl: https://XXX.crmlivetie.com/
                connectorType: AzureBlob
                description: Test connector
                displayName: testConnector
            resourceGroupName: TestHubRG
            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
                  connectorProperties:
                    connectionKeyVaultUrl:
                      organizationId: XXX
                      organizationUrl: https://XXX.crmlivetie.com/
                  connectorType: AzureBlob
                  description: Test connector
                  displayName: testConnector
                  state: Creating
                  tenantId: sdktesthub
                type: Microsoft.CustomerInsights/hubs/connectors
            "202": {}
      x-ms-long-running-operation: true
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/connectors/{connectorName}/mappings":
    get:
      description: Gets all the connector mappings in the specified connector.
      operationId: ConnectorMappings_ListByConnector
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the connector.
          in: path
          name: connectorName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get all the connector mappings in the connector.
          schema:
            $ref: "#/definitions/ConnectorMappingListResult"
      tags:
        - ConnectorMappings
      x-ms-examples:
        ConnectorMappings_ListByConnector:
          parameters:
            api-version: 2016-01-01
            connectorName: testConnector8858
            hubName: sdkTestHub
            resourceGroupName: TestHubRG
            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:
                          acceptLanguage: ""
                          arraySeparator: ;
                          columnDelimiter: "|"
                          formatType: TextFormat
                          quoteCharacter: \"
                          quoteEscapeCharacter: \"
                        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
      x-ms-pageable:
        nextLinkName: nextLink
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/connectors/{connectorName}/mappings/{mappingName}":
    delete:
      description: Deletes a connector mapping in the connector.
      operationId: ConnectorMappings_Delete
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the connector.
          in: path
          name: connectorName
          required: true
          type: string
        - description: The name of the connector mapping.
          in: path
          name: mappingName
          required: true
          type: string
        - $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.
      tags:
        - ConnectorMappings
      x-ms-examples:
        ConnectorMappings_Delete:
          parameters:
            api-version: 2016-01-01
            connectorName: testConnector8858
            hubName: sdkTestHub
            mappingName: testMapping12491
            resourceGroupName: TestHubRG
            subscriptionId: subid
          responses:
            "200": {}
            "204": {}
    get:
      description: Gets a connector mapping in the connector.
      operationId: ConnectorMappings_Get
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the connector.
          in: path
          name: connectorName
          required: true
          type: string
        - description: The name of the connector mapping.
          in: path
          name: mappingName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get the connector mapping.
          schema:
            $ref: "#/definitions/ConnectorMappingResourceFormat"
      tags:
        - ConnectorMappings
      x-ms-examples:
        ConnectorMappings_Get:
          parameters:
            api-version: 2016-01-01
            connectorName: testConnector8858
            hubName: sdkTestHub
            mappingName: testMapping12491
            resourceGroupName: TestHubRG
            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:
                      acceptLanguage: ""
                      arraySeparator: ;
                      columnDelimiter: "|"
                      formatType: TextFormat
                      quoteCharacter: \"
                      quoteEscapeCharacter: \"
                    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
    put:
      description: Creates a connector mapping or updates an existing connector mapping in the connector.
      operationId: ConnectorMappings_CreateOrUpdate
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the connector.
          in: path
          name: connectorName
          required: true
          type: string
        - description: The name of the connector mapping.
          in: path
          maxLength: 128
          minLength: 1
          name: mappingName
          pattern: ^[a-zA-Z][a-zA-Z0-9_]+$
          required: true
          type: string
        - description: Parameters supplied to the CreateOrUpdate Connector Mapping operation.
          in: body
          name: parameters
          required: true
          schema:
            $ref: "#/definitions/ConnectorMappingResourceFormat"
        - $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"
      tags:
        - ConnectorMappings
      x-ms-examples:
        ConnectorMappings_CreateOrUpdate:
          parameters:
            api-version: 2016-01-01
            connectorName: testConnector8858
            hubName: sdkTestHub
            mappingName: testMapping12491
            parameters:
              properties:
                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: "|"
                    formatType: TextFormat
                  hasHeader: false
                  structure:
                    - columnName: unknown1
                      isEncrypted: false
                      propertyName: unknwon1
                    - columnName: unknown2
                      isEncrypted: true
                      propertyName: unknwon2
            resourceGroupName: TestHubRG
            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:
                      acceptLanguage: ""
                      arraySeparator: ;
                      columnDelimiter: "|"
                      formatType: TextFormat
                      quoteCharacter: \"
                      quoteEscapeCharacter: \"
                    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:
                      acceptLanguage: ""
                      arraySeparator: ;
                      columnDelimiter: "|"
                      formatType: TextFormat
                      quoteCharacter: \"
                      quoteEscapeCharacter: \"
                    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
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/images/getDataImageUploadUrl":
    post:
      description: Gets data image upload URL.
      operationId: Images_GetUploadUrlForData
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: Parameters supplied to the GetUploadUrlForData operation.
          in: body
          name: parameters
          required: true
          schema:
            $ref: "#/definitions/GetImageUploadUrlInput"
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get the image upload URL for data.
          schema:
            $ref: "#/definitions/ImageDefinition"
      tags:
        - Images
      x-ms-examples:
        Images_GetUploadUrlForData:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            parameters:
              entityType: Profile
              entityTypeName: Contact
              relativePath: images/profile1.png
            resourceGroupName: TestHubRG
            subscriptionId: subid
          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
                imageExists: false
                relativePath: images/profile1.png
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/images/getEntityTypeImageUploadUrl":
    post:
      description: Gets entity type (profile or interaction) image upload URL.
      operationId: Images_GetUploadUrlForEntityType
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: Parameters supplied to the GetUploadUrlForEntityType operation.
          in: body
          name: parameters
          required: true
          schema:
            $ref: "#/definitions/GetImageUploadUrlInput"
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get the image upload URL for entity type.
          schema:
            $ref: "#/definitions/ImageDefinition"
      tags:
        - Images
      x-ms-examples:
        Images_GetUploadUrlForEntityType:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            parameters:
              entityType: Profile
              entityTypeName: Contact
              relativePath: images/profile1.png
            resourceGroupName: TestHubRG
            subscriptionId: subid
          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
                imageExists: false
                relativePath: images/profile1.png
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/interactions":
    get:
      description: Gets all interactions in the hub.
      operationId: Interactions_ListByHub
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - default: en-us
          description: Locale of interaction to retrieve, default is en-us.
          in: query
          name: locale-code
          required: false
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get all the interactions in the hub.
          schema:
            $ref: "#/definitions/InteractionListResult"
      tags:
        - Interactions
      x-ms-examples:
        Interactions_ListByHub:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            resourceGroupName: TestHubRG
            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:
                      apiEntitySetName: TestInteractionType6358
                      dataSourcePrecedenceRules:
                        - dataSource:
                            dataSourceReferenceId: "70"
                            dataSourceType: Connector
                            id: 1
                            name: crm2
                            status: Active
                          precedence: 50
                      defaultDataSource:
                        dataSourceReferenceId: "70"
                        dataSourceType: Connector
                        id: 1
                        name: crm2
                        status: Active
                      entityType: Interaction
                      fields:
                        - dataSourcePrecedenceRules: []
                          fieldName: TestInteractionType6358
                          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
                                id: 1
                                name: crm2
                                status: Active
                              precedence: 50
                          fieldName: profile1
                          fieldType: Edm.String
                          isArray: false
                          isEnum: false
                          isFlagEnum: false
                          isImage: false
                          isLocalizedString: false
                          isName: false
                          isRequired: true
                          propertyId: id1
                      idPropertyNames:
                        - TestInteractionType6358
                      instancesCount: 0
                      isActivity: true
                      largeImage: \\Images\\LargeImage
                      mediumImage: \\Images\\MediumImage
                      primaryParticipantProfilePropertyName: profile1
                      provisioningState: Provisioning
                      smallImage: \\Images\\smallImage
                      tenantId: azsdktesthub
                      typeName: TestInteractionType6358
                    type: Microsoft.CustomerInsights/hubs/interactions
      x-ms-pageable:
        nextLinkName: nextLink
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/interactions/{interactionName}":
    get:
      description: Gets information about the specified interaction.
      operationId: Interactions_Get
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the interaction.
          in: path
          name: interactionName
          required: true
          type: string
        - default: en-us
          description: Locale of interaction to retrieve, default is en-us.
          in: query
          name: locale-code
          required: false
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get the interaction.
          schema:
            $ref: "#/definitions/InteractionResourceFormat"
      tags:
        - Interactions
      x-ms-examples:
        Interactions_Get:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            interactionName: TestInteractionType6358
            resourceGroupName: TestHubRG
            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:
                  apiEntitySetName: TestInteractionType6358
                  dataSourcePrecedenceRules:
                    - dataSource:
                        dataSourceReferenceId: "70"
                        dataSourceType: Connector
                        id: 1
                        name: crm2
                        status: Active
                      precedence: 50
                  defaultDataSource:
                    dataSourceReferenceId: "70"
                    dataSourceType: Connector
                    id: 1
                    name: crm2
                    status: Active
                  entityType: Interaction
                  fields:
                    - dataSourcePrecedenceRules: []
                      fieldName: TestInteractionType6358
                      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
                            id: 1
                            name: crm2
                            status: Active
                          precedence: 50
                      fieldName: profile1
                      fieldType: Edm.String
                      isArray: false
                      isEnum: false
                      isFlagEnum: false
                      isImage: false
                      isLocalizedString: false
                      isName: false
                      isRequired: true
                      propertyId: id1
                  idPropertyNames:
                    - TestInteractionType6358
                  instancesCount: 0
                  isActivity: true
                  largeImage: \\Images\\LargeImage
                  mediumImage: \\Images\\MediumImage
                  primaryParticipantProfilePropertyName: profile1
                  provisioningState: Provisioning
                  smallImage: \\Images\\smallImage
                  tenantId: azsdktesthub
                  typeName: TestInteractionType6358
                type: Microsoft.CustomerInsights/hubs/interactions
    put:
      description: Creates an interaction or updates an existing interaction within a hub.
      operationId: Interactions_CreateOrUpdate
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the interaction.
          in: path
          maxLength: 128
          minLength: 1
          name: interactionName
          pattern: ^[a-zA-Z][a-zA-Z0-9_]+$
          required: true
          type: string
        - description: Parameters supplied to the CreateOrUpdate Interaction operation.
          in: body
          name: parameters
          required: true
          schema:
            $ref: "#/definitions/InteractionResourceFormat"
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully created the interaction.
          schema:
            $ref: "#/definitions/InteractionResourceFormat"
        "202":
          description: Accepted. The create interaction operation is accepted.
      tags:
        - Interactions
      x-ms-examples:
        Interactions_CreateOrUpdate:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            interactionName: TestProfileType396
            parameters:
              properties:
                apiEntitySetName: TestInteractionType6358
                fields:
                  - fieldName: TestInteractionType6358
                    fieldType: Edm.String
                    isArray: false
                    isRequired: true
                  - fieldName: profile1
                    fieldType: Edm.String
                idPropertyNames:
                  - TestInteractionType6358
                isActivity: false
                largeImage: \\Images\\LargeImage
                mediumImage: \\Images\\MediumImage
                primaryParticipantProfilePropertyName: profile1
                smallImage: \\Images\\smallImage
            resourceGroupName: TestHubRG
            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:
                  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
                  idPropertyNames:
                    - TestInteractionType6358
                  instancesCount: 0
                  isActivity: false
                  largeImage: \\Images\\LargeImage
                  mediumImage: \\Images\\MediumImage
                  primaryParticipantProfilePropertyName: profile1
                  provisioningState: Provisioning
                  smallImage: \\Images\\smallImage
                  tenantId: azsdktesthub
                  typeName: TestInteractionType6358
                type: Microsoft.CustomerInsights/hubs/interactions
            "202": {}
      x-ms-long-running-operation: true
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/interactions/{interactionName}/suggestRelationshipLinks":
    post:
      description: Suggests relationships to create relationship links.
      operationId: Interactions_SuggestRelationshipLinks
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the interaction.
          in: path
          name: interactionName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get suggested Relationship Links.
          schema:
            $ref: "#/definitions/SuggestRelationshipLinksResponse"
      tags:
        - Interactions
      x-ms-examples:
        Interactions_SuggestRelationshipLinks:
          parameters:
            api-version: 2017-01-01
            hubName: sdkTestHub
            interactionName: Deposit
            resourceGroupName: TestHubRG
            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
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/kpi":
    get:
      description: Gets all the KPIs in the specified hub.
      operationId: Kpi_ListByHub
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get all the KPIs in the hub.
          schema:
            $ref: "#/definitions/KpiListResult"
      tags:
        - Kpi
      x-ms-examples:
        Kpi_ListByHub:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            resourceGroupName: TestHubRG
            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
                        upperLimit: 50
                      unit: unit
                    type: Microsoft.CustomerInsights/hubs/kpi
      x-ms-pageable:
        nextLinkName: nextLink
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/kpi/{kpiName}":
    delete:
      description: Deletes a KPI in the hub.
      operationId: Kpi_Delete
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the KPI.
          in: path
          name: kpiName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. The KPI is deleted.
        "202":
          description: Accepted. The delete operation is accepted.
      tags:
        - Kpi
      x-ms-examples:
        Kpi_Delete:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            kpiName: kpiTest45453647
            resourceGroupName: TestHubRG
            subscriptionId: subid
          responses:
            "200": {}
            "202": {}
      x-ms-long-running-operation: true
    get:
      description: Gets a KPI in the hub.
      operationId: Kpi_Get
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the KPI.
          in: path
          name: kpiName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get the KPI.
          schema:
            $ref: "#/definitions/KpiResourceFormat"
      tags:
        - Kpi
      x-ms-examples:
        Kpi_Get:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            kpiName: kpiTest45453647
            resourceGroupName: TestHubRG
            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
                    upperLimit: 50
                  unit: unit
                type: Microsoft.CustomerInsights/hubs/kpi
    put:
      description: Creates a KPI or updates an existing KPI in the hub.
      operationId: Kpi_CreateOrUpdate
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the KPI.
          in: path
          maxLength: 512
          minLength: 1
          name: kpiName
          pattern: ^[a-zA-Z][a-zA-Z0-9_]+$
          required: true
          type: string
        - description: Parameters supplied to the create/update KPI operation.
          in: body
          name: parameters
          required: true
          schema:
            $ref: "#/definitions/KpiResourceFormat"
        - $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.
      tags:
        - Kpi
      x-ms-examples:
        Kpi_CreateOrUpdate:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            kpiName: kpiTest45453647
            parameters:
              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
                thresHolds:
                  increasingKpi: true
                  lowerLimit: 5
                  upperLimit: 50
                unit: unit
            resourceGroupName: TestHubRG
            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
                    upperLimit: 50
                  unit: unit
                type: Microsoft.CustomerInsights/hubs/kpi
            "202": {}
      x-ms-long-running-operation: true
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/kpi/{kpiName}/reprocess":
    post:
      description: Reprocesses the Kpi values of the specified KPI.
      operationId: Kpi_Reprocess
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the KPI.
          in: path
          name: kpiName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "202":
          description: Accepted. Reprocessing Kpi Values operation is accepted.
      tags:
        - Kpi
      x-ms-examples:
        Kpi_Reprocess:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            kpiName: kpiTest45453647
            resourceGroupName: TestHubRG
            subscriptionId: subid
          responses:
            "202": {}
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/links":
    get:
      description: Gets all the links in the specified hub.
      operationId: Links_ListByHub
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get all the links in the hub.
          schema:
            $ref: "#/definitions/LinkListResult"
      tags:
        - Links
      x-ms-examples:
        Links_ListByHub:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            resourceGroupName: TestHubRG
            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:
                        - interactionTypePropertyName: testInteraction1949
                          isProfileTypeId: true
                          linkType: UpdateAlways
                          profileTypePropertyName: testProfile1446
                      participantPropertyReferences:
                        - interactionPropertyName: testInteraction1949
                          profilePropertyName: ProfileId
                      provisioningState: Provisioning
                      referenceOnly: false
                      sourceInteractionType: testInteraction1949
                      targetProfileType: testProfile1446
                      tenantId: azsdktesthub
                    type: Microsoft.CustomerInsights/hubs/links
      x-ms-pageable:
        nextLinkName: nextLink
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/links/{linkName}":
    delete:
      description: Deletes a link in the hub.
      operationId: Links_Delete
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the link.
          in: path
          name: linkName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. The link is deleted.
        "202":
          description: Accepted. The delete operation is accepted.
      tags:
        - Links
      x-ms-examples:
        Links_Delete:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            linkName: linkTest4806
            resourceGroupName: TestHubRG
            subscriptionId: subid
          responses:
            "200": {}
            "202": {}
    get:
      description: Gets a link in the hub.
      operationId: Links_Get
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the link.
          in: path
          name: linkName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get the link.
          schema:
            $ref: "#/definitions/LinkResourceFormat"
      tags:
        - Links
      x-ms-examples:
        Links_Get:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            linkName: linkTest4806
            resourceGroupName: TestHubRG
            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:
                    - interactionTypePropertyName: testInteraction1949
                      isProfileTypeId: true
                      linkType: UpdateAlways
                      profileTypePropertyName: testProfile1446
                  participantPropertyReferences:
                    - interactionPropertyName: testInteraction1949
                      profilePropertyName: ProfileId
                  provisioningState: Provisioning
                  referenceOnly: false
                  sourceInteractionType: testInteraction1949
                  targetProfileType: testProfile1446
                  tenantId: azsdktesthub
                type: Microsoft.CustomerInsights/hubs/links
    put:
      description: Creates a link or updates an existing link in the hub.
      operationId: Links_CreateOrUpdate
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the link.
          in: path
          maxLength: 512
          minLength: 1
          name: linkName
          pattern: ^[a-zA-Z][a-zA-Z0-9_]+$
          required: true
          type: string
        - description: Parameters supplied to the CreateOrUpdate Link operation.
          in: body
          name: parameters
          required: true
          schema:
            $ref: "#/definitions/LinkResourceFormat"
        - $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.
      tags:
        - Links
      x-ms-examples:
        Links_CreateOrUpdate:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            linkName: linkTest4806
            parameters:
              properties:
                description:
                  en-us: Link Description
                displayName:
                  en-us: Link DisplayName
                linkName: linkTest4806
                mappings:
                  - interactionTypePropertyName: testInteraction1949
                    isProfileTypeId: true
                    linkType: UpdateAlways
                    profileTypePropertyName: testProfile1446
                participantPropertyReferences:
                  - interactionPropertyName: testInteraction1949
                    profilePropertyName: ProfileId
                sourceInteractionType: testInteraction1949
                targetProfileType: testProfile1446
            resourceGroupName: TestHubRG
            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:
                    - interactionTypePropertyName: testInteraction1949
                      isProfileTypeId: true
                      linkType: UpdateAlways
                      profileTypePropertyName: testProfile1446
                  participantPropertyReferences:
                    - interactionPropertyName: testInteraction1949
                      profilePropertyName: ProfileId
                  provisioningState: Provisioning
                  referenceOnly: false
                  sourceInteractionType: testInteraction1949
                  targetProfileType: testProfile1446
                  tenantId: azsdktesthub
                type: Microsoft.CustomerInsights/hubs/links
            "202": {}
      x-ms-long-running-operation: true
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/profiles":
    get:
      description: Gets all profile in the hub.
      operationId: Profiles_ListByHub
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - default: en-us
          description: Locale of profile to retrieve, default is en-us.
          in: query
          name: locale-code
          required: false
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get all the profiles in the hub.
          schema:
            $ref: "#/definitions/ProfileListResult"
      tags:
        - Profiles
      x-ms-examples:
        Profiles_ListByHub:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            resourceGroupName: TestHubRG
            subscriptionId: subid
          responses:
            "200":
              body:
                nextLink: null
                value:
                  - id: /subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/azSdkTestHub/profiles/TestProfileType396
                    name: azSdkTestHub/TestProfileType396
                    properties:
                      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
                      largeImage: \\Images\\LargeImage
                      mediumImage: \\Images\\MediumImage
                      provisioningState: Provisioning
                      schemaItemTypeLink: SchemaItemTypeLink
                      smallImage: \\Images\\smallImage
                      strongIds:
                        - keyPropertyNames:
                            - Id
                            - savingAccountBalance
                          strongIdName: Id
                        - keyPropertyNames:
                            - ProfileId
                            - LastName
                          strongIdName: ProfileId
                        - keyPropertyNames:
                            - ProfileId
                          strongIdName: ProfileId
                      tenantId: azsdktesthub
                      typeName: TestProfileType396
                    type: Microsoft.CustomerInsights/hubs/profiles
      x-ms-pageable:
        nextLinkName: nextLink
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/profiles/{profileName}":
    delete:
      description: Deletes a profile within a hub
      operationId: Profiles_Delete
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the profile.
          in: path
          name: profileName
          required: true
          type: string
        - default: en-us
          description: Locale of profile to retrieve, default is en-us.
          in: query
          name: locale-code
          required: false
          type: string
        - $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.
      tags:
        - Profiles
      x-ms-examples:
        Profiles_Delete:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            profileName: TestProfileType396
            resourceGroupName: TestHubRG
            subscriptionId: subid
          responses:
            "200": {}
            "202": {}
            "204": {}
      x-ms-long-running-operation: true
    get:
      description: Gets information about the specified profile.
      operationId: Profiles_Get
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the profile.
          in: path
          name: profileName
          required: true
          type: string
        - default: en-us
          description: Locale of profile to retrieve, default is en-us.
          in: query
          name: locale-code
          required: false
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get the profile.
          schema:
            $ref: "#/definitions/ProfileResourceFormat"
      tags:
        - Profiles
      x-ms-examples:
        Profiles_Get:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            profileName: TestProfileType396
            resourceGroupName: TestHubRG
            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:
                  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
                  largeImage: \\Images\\LargeImage
                  mediumImage: \\Images\\MediumImage
                  provisioningState: Provisioning
                  schemaItemTypeLink: SchemaItemTypeLink
                  smallImage: \\Images\\smallImage
                  strongIds:
                    - keyPropertyNames:
                        - Id
                        - savingAccountBalance
                      strongIdName: Id
                    - keyPropertyNames:
                        - ProfileId
                        - LastName
                      strongIdName: ProfileId
                    - keyPropertyNames:
                        - ProfileId
                      strongIdName: ProfileId
                  tenantId: azsdktesthub
                  typeName: TestProfileType396
                type: Microsoft.CustomerInsights/hubs/profiles
    put:
      description: Creates a profile within a Hub, or updates an existing profile.
      operationId: Profiles_CreateOrUpdate
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the profile.
          in: path
          maxLength: 128
          minLength: 1
          name: profileName
          pattern: ^[a-zA-Z][a-zA-Z0-9_]+$
          required: true
          type: string
        - description: Parameters supplied to the create/delete Profile type operation
          in: body
          name: parameters
          required: true
          schema:
            $ref: "#/definitions/ProfileResourceFormat"
        - $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.
      tags:
        - Profiles
      x-ms-examples:
        Profiles_CreateOrUpdate:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            parameters:
              properties:
                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
                largeImage: \\Images\\LargeImage
                mediumImage: \\Images\\MediumImage
                schemaItemTypeLink: SchemaItemTypeLink
                smallImage: \\Images\\smallImage
                strongIds:
                  - keyPropertyNames:
                      - Id
                      - SavingAccountBalance
                    strongIdName: Id
                  - keyPropertyNames:
                      - ProfileId
                      - LastName
                    strongIdName: ProfileId
            profileName: TestProfileType396
            resourceGroupName: TestHubRG
            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:
                  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
                  largeImage: \\Images\\LargeImage
                  mediumImage: \\Images\\MediumImage
                  provisioningState: Provisioning
                  schemaItemTypeLink: SchemaItemTypeLink
                  smallImage: \\Images\\smallImage
                  strongIds:
                    - keyPropertyNames:
                        - Id
                        - savingAccountBalance
                      strongIdName: Id
                    - keyPropertyNames:
                        - ProfileId
                        - LastName
                      strongIdName: ProfileId
                    - keyPropertyNames:
                        - ProfileId
                      strongIdName: ProfileId
                  tenantId: azsdktesthub
                  typeName: TestProfileType396
                type: Microsoft.CustomerInsights/hubs/profiles
            "202": {}
      x-ms-long-running-operation: true
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/profiles/{profileName}/getEnrichingKpis":
    post:
      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.
      operationId: Profiles_GetEnrichingKpis
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the profile.
          in: path
          name: profileName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get the enriching KPIs.
          schema:
            items:
              $ref: "#/definitions/KpiDefinition"
            type: array
      tags:
        - Profiles
      x-ms-examples:
        Profiles_GetEnrichingKpis:
          parameters:
            api-version: 2017-01-01
            hubName: sdkTestHub
            profileName: TestProfileType396
            resourceGroupName: TestHubRG
            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: ""
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationshipLinks":
    get:
      description: Gets all relationship links in the hub.
      operationId: RelationshipLinks_ListByHub
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get all the relationship links in the hub.
          schema:
            $ref: "#/definitions/RelationshipLinkListResult"
      tags:
        - RelationshipLinks
      x-ms-examples:
        RelationshipLinks_ListByHub:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            resourceGroupName: TestHubRG
            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
      x-ms-pageable:
        nextLinkName: nextLink
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationshipLinks/{relationshipLinkName}":
    delete:
      description: Deletes a relationship link within a hub.
      operationId: RelationshipLinks_Delete
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the relationship.
          in: path
          name: relationshipLinkName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. The relationship link is deleted.
        "202":
          description: Accepted. The delete operation is accepted.
      tags:
        - RelationshipLinks
      x-ms-examples:
        RelationshipLinks_Delete:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            relationshipLinkName: Somelink
            resourceGroupName: TestHubRG
            subscriptionId: subid
          responses:
            "200": {}
            "202": {}
      x-ms-long-running-operation: true
    get:
      description: Gets information about the specified relationship Link.
      operationId: RelationshipLinks_Get
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the relationship link.
          in: path
          name: relationshipLinkName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get the relationship link.
          schema:
            $ref: "#/definitions/RelationshipLinkResourceFormat"
      tags:
        - RelationshipLinks
      x-ms-examples:
        RelationshipLinks_Get:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            relationshipLinkName: Somelink
            resourceGroupName: TestHubRG
            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
    put:
      description: Creates a relationship link or updates an existing relationship link within a hub.
      operationId: RelationshipLinks_CreateOrUpdate
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the relationship link.
          in: path
          maxLength: 512
          minLength: 1
          name: relationshipLinkName
          pattern: ^[a-zA-Z][a-zA-Z0-9_]+$
          required: true
          type: string
        - description: Parameters supplied to the CreateOrUpdate relationship link operation.
          in: body
          name: parameters
          required: true
          schema:
            $ref: "#/definitions/RelationshipLinkResourceFormat"
        - $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.
      tags:
        - RelationshipLinks
      x-ms-examples:
        RelationshipLinks_CreateOrUpdate:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            parameters:
              properties:
                description:
                  en-us: Link Description
                displayName:
                  en-us: Link DisplayName
                interactionType: testInteraction4332
                linkName: Somelink
                profilePropertyReferences:
                  - interactionPropertyName: profile1
                    profilePropertyName: ProfileId
                relatedProfilePropertyReferences:
                  - interactionPropertyName: profile1
                    profilePropertyName: ProfileId
                relationshipName: testProfile2326994
            relationshipLinkName: Somelink
            resourceGroupName: TestHubRG
            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
            "202": {}
      x-ms-long-running-operation: true
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationships":
    get:
      description: Gets all relationships in the hub.
      operationId: Relationships_ListByHub
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get all the relationships in the hub.
          schema:
            $ref: "#/definitions/RelationshipListResult"
      tags:
        - Relationships
      x-ms-examples:
        Relationships_ListByHub:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            resourceGroupName: TestHubRG
            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
      x-ms-pageable:
        nextLinkName: nextLink
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationships/{relationshipName}":
    delete:
      description: Deletes a relationship within a hub.
      operationId: Relationships_Delete
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the relationship.
          in: path
          name: relationshipName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. The relationship is deleted.
        "202":
          description: Accepted. The delete operation is accepted.
      tags:
        - Relationships
      x-ms-examples:
        Relationships_Delete:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            relationshipName: SomeRelationship
            resourceGroupName: TestHubRG
            subscriptionId: subid
          responses:
            "200": {}
            "202": {}
      x-ms-long-running-operation: true
    get:
      description: Gets information about the specified relationship.
      operationId: Relationships_Get
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the relationship.
          in: path
          name: relationshipName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get the relationship.
          schema:
            $ref: "#/definitions/RelationshipResourceFormat"
      tags:
        - Relationships
      x-ms-examples:
        Relationships_Get:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            relationshipName: SomeRelationship
            resourceGroupName: TestHubRG
            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
    put:
      description: Creates a relationship or updates an existing relationship within a hub.
      operationId: Relationships_CreateOrUpdate
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the Relationship.
          in: path
          maxLength: 512
          minLength: 1
          name: relationshipName
          pattern: ^[a-zA-Z][a-zA-Z0-9_]+$
          required: true
          type: string
        - description: Parameters supplied to the CreateOrUpdate Relationship operation.
          in: body
          name: parameters
          required: true
          schema:
            $ref: "#/definitions/RelationshipResourceFormat"
        - $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.
      tags:
        - Relationships
      x-ms-examples:
        Relationships_CreateOrUpdate:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            parameters:
              properties:
                cardinality: OneToOne
                description:
                  en-us: Relationship Description
                displayName:
                  en-us: Relationship DisplayName
                fields: []
                profileType: testProfile2326994
                relatedProfileType: testProfile2326994
            relationshipName: SomeRelationship
            resourceGroupName: TestHubRG
            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
            "202": {}
      x-ms-long-running-operation: true
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roleAssignments":
    get:
      description: Gets all the role assignments for the specified hub.
      operationId: RoleAssignments_ListByHub
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get all the role assignment in the hub.
          schema:
            $ref: "#/definitions/RoleAssignmentListResult"
      tags:
        - RoleAssignments
      x-ms-examples:
        RoleAssignments_ListByHub:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            resourceGroupName: TestHubRG
            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
      x-ms-pageable:
        nextLinkName: nextLink
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roleAssignments/{assignmentName}":
    delete:
      description: Deletes the role assignment in the hub.
      operationId: RoleAssignments_Delete
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the role assignment.
          in: path
          name: assignmentName
          required: true
          type: string
        - $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.
      tags:
        - RoleAssignments
      x-ms-examples:
        RoleAssignments_Delete:
          parameters:
            api-version: 2016-01-01
            assignmentName: assignmentName8976
            hubName: sdkTestHub
            resourceGroupName: TestHubRG
            subscriptionId: subid
          responses:
            "200": {}
            "202": {}
            "204": {}
    get:
      description: Gets the role assignment in the hub.
      operationId: RoleAssignments_Get
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the role assignment.
          in: path
          name: assignmentName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get the role assignment.
          schema:
            $ref: "#/definitions/RoleAssignmentResourceFormat"
      tags:
        - RoleAssignments
      x-ms-examples:
        RoleAssignments_Get:
          parameters:
            api-version: 2016-01-01
            assignmentName: assignmentName8976
            hubName: sdkTestHub
            resourceGroupName: TestHubRG
            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
    put:
      description: Creates or updates a role assignment in the hub.
      operationId: RoleAssignments_CreateOrUpdate
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The assignment name
          in: path
          maxLength: 128
          minLength: 1
          name: assignmentName
          pattern: ^[a-zA-Z][a-zA-Z0-9_]+$
          required: true
          type: string
        - description: Parameters supplied to the CreateOrUpdate RoleAssignment operation.
          in: body
          name: parameters
          required: true
          schema:
            $ref: "#/definitions/RoleAssignmentResourceFormat"
        - $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.
      tags:
        - RoleAssignments
      x-ms-examples:
        RoleAssignments_CreateOrUpdate:
          parameters:
            api-version: 2016-01-01
            assignmentName: assignmentName8976
            hubName: sdkTestHub
            parameters:
              properties:
                principals:
                  - principalId: 4c54c38ffa9b416ba5a6d6c8a20cbe7e
                    principalType: User
                  - principalId: 93061d15a5054f2b9948ae25724cf9d5
                    principalType: User
                role: Admin
            resourceGroupName: TestHubRG
            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
            "202": {}
      x-ms-long-running-operation: true
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roles":
    get:
      description: Gets all the roles for the hub.
      operationId: Roles_ListByHub
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get all the roles in the hub.
          schema:
            $ref: "#/definitions/RoleListResult"
      tags:
        - Roles
      x-ms-examples:
        Roles_ListByHub:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            resourceGroupName: TestHubRG
            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
      x-ms-pageable:
        nextLinkName: nextLink
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/views":
    get:
      description: Gets all available views for given user in the specified hub.
      operationId: Views_ListByHub
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
        - description: The user ID. Use * to retrieve hub level views.
          in: query
          name: userId
          required: true
          type: string
      responses:
        "200":
          description: OK. Successfully get all the views in the hub for the given user.
          schema:
            $ref: "#/definitions/ViewListResult"
      tags:
        - Views
      x-ms-examples:
        Views_ListByHub:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            resourceGroupName: TestHubRG
            subscriptionId: subid
            userId: "*"
          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
      x-ms-pageable:
        nextLinkName: nextLink
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/views/{viewName}":
    delete:
      description: Deletes a view in the specified hub.
      operationId: Views_Delete
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the view.
          in: path
          name: viewName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
        - description: The user ID. Use * to retrieve hub level view.
          in: query
          name: userId
          required: true
          type: string
      responses:
        "200":
          description: OK. The view is deleted.
      tags:
        - Views
      x-ms-examples:
        Views_Delete:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            resourceGroupName: TestHubRG
            subscriptionId: subid
            userId: "*"
            viewName: testView
          responses:
            "200": {}
    get:
      description: Gets a view in the hub.
      operationId: Views_Get
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the view.
          in: path
          name: viewName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
        - description: The user ID. Use * to retrieve hub level view.
          in: query
          name: userId
          required: true
          type: string
      responses:
        "200":
          description: OK. Successfully get the view.
          schema:
            $ref: "#/definitions/ViewResourceFormat"
      tags:
        - Views
      x-ms-examples:
        Views_Get:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            resourceGroupName: TestHubRG
            subscriptionId: subid
            userId: "*"
            viewName: testView
          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
    put:
      description: Creates a view or updates an existing view in the hub.
      operationId: Views_CreateOrUpdate
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the view.
          in: path
          maxLength: 512
          minLength: 1
          name: viewName
          required: true
          type: string
        - description: Parameters supplied to the CreateOrUpdate View operation.
          in: body
          name: parameters
          required: true
          schema:
            $ref: "#/definitions/ViewResourceFormat"
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully created the view.
          schema:
            $ref: "#/definitions/ViewResourceFormat"
      tags:
        - Views
      x-ms-examples:
        Views_CreateOrUpdate:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            parameters:
              properties:
                definition: '{\"isProfileType\":false,\"profileTypes\":[],\"widgets\":[],\"style\":[]}'
                displayName:
                  en: some name
                userId: testUser
            resourceGroupName: TestHubRG
            subscriptionId: subid
            viewName: testView
          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
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/widgetTypes":
    get:
      description: Gets all available widget types in the specified hub.
      operationId: WidgetTypes_ListByHub
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get all the widget types in the hub.
          schema:
            $ref: "#/definitions/WidgetTypeListResult"
      tags:
        - WidgetTypes
      x-ms-examples:
        WidgetTypes_ListByHub:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            resourceGroupName: TestHubRG
            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:
                      definition: ""
                      description: ""
                      imageUrl: ""
                      tenantId: "*"
                      widgetTypeName: ActivityGauge
                      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:
                      definition: ""
                      description: ""
                      imageUrl: ""
                      tenantId: "*"
                      widgetTypeName: AsterChart
                      widgetVersion: 2016-01-01
                    type: Microsoft.CustomerInsights/hubs/widgetTypes
      x-ms-pageable:
        nextLinkName: nextLink
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/widgetTypes/{widgetTypeName}":
    get:
      description: Gets a widget type in the specified hub.
      operationId: WidgetTypes_Get
      parameters:
        - description: The name of the resource group.
          in: path
          name: resourceGroupName
          required: true
          type: string
        - description: The name of the hub.
          in: path
          name: hubName
          required: true
          type: string
        - description: The name of the widget type.
          in: path
          name: widgetTypeName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - $ref: "#/parameters/SubscriptionIdParameter"
      responses:
        "200":
          description: OK. Successfully get the widget type.
          schema:
            $ref: "#/definitions/WidgetTypeResourceFormat"
      tags:
        - WidgetTypes
      x-ms-examples:
        WidgetTypes_Get:
          parameters:
            api-version: 2016-01-01
            hubName: sdkTestHub
            resourceGroupName: TestHubRG
            subscriptionId: subid
            widgetTypeName: ActivityGauge
          responses:
            "200":
              body:
                id: /subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/sdkTestHub/widgetTypes/ActivityGauge
                name: sdkTestHub/ActivityGauge
                properties:
                  definition: ""
                  description: ""
                  imageUrl: ""
                  tenantId: "*"
                  widgetTypeName: ActivityGauge
                  widgetVersion: 2016-01-01
                type: Microsoft.CustomerInsights/hubs/widgetTypes
definitions:
  AssignmentPrincipal:
    description: The AssignmentPrincipal
    properties:
      principalId:
        description: The principal id being assigned to.
        type: string
      principalMetadata:
        additionalProperties:
          type: string
        description: Other metadata for the principal.
        type: object
      principalType:
        description: The Type of the principal ID.
        type: string
    required:
      - principalId
      - principalType
  AuthorizationPolicy:
    description: The authorization policy.
    properties:
      permissions:
        description: The permissions associated with the policy.
        items:
          $ref: "#/definitions/PermissionTypes"
        type: array
        uniqueItems: true
      policyName:
        description: Name of the policy.
        readOnly: true
        type: string
      primaryKey:
        description: Primary key associated with the policy.
        type: string
      secondaryKey:
        description: Secondary key associated with the policy.
        type: string
    required:
      - permissions
  AuthorizationPolicyListResult:
    description: The response of list authorization policy operation.
    properties:
      nextLink:
        description: Link to the next set of results.
        type: string
      value:
        description: Results of the list operation.
        items:
          $ref: "#/definitions/AuthorizationPolicyResourceFormat"
        type: array
  AuthorizationPolicyResourceFormat:
    allOf:
      - $ref: "#/definitions/ProxyResource"
    description: The authorization policy resource format.
    properties:
      properties:
        $ref: "#/definitions/AuthorizationPolicy"
        x-ms-client-flatten: true
  AzureBlobConnectorProperties:
    description: The Azure Blob connector properties.
    properties:
      connectionKeyVaultUrl:
        description: The connection KeyVault URL.
        type: string
    required:
      - connectionKeyVaultUrl
  Connector:
    description: Properties of connector.
    properties:
      connectorId:
        description: ID of the connector.
        readOnly: true
        type: integer
      connectorName:
        description: Name of the connector.
        type: string
      connectorProperties:
        additionalProperties:
          type: object
        description: The connector properties.
        type: object
      connectorType:
        $ref: "#/definitions/ConnectorType"
        description: Type of connector.
      created:
        description: The created time.
        format: date-time
        readOnly: true
        type: string
      description:
        description: Description of the connector.
        type: string
      displayName:
        description: Display name of the connector.
        type: string
      isInternal:
        description: If this is an internal connector.
        type: boolean
      lastModified:
        description: The last modified time.
        format: date-time
        readOnly: true
        type: string
      state:
        description: State of connector.
        enum:
          - Creating
          - Created
          - Ready
          - Expiring
          - Deleting
          - Failed
        readOnly: true
        type: string
        x-ms-enum:
          modelAsString: false
          name: ConnectorStates
      tenantId:
        description: The hub name.
        readOnly: true
        type: string
    required:
      - connectorType
      - connectorProperties
  ConnectorListResult:
    description: The response of list connector operation.
    properties:
      nextLink:
        description: Link to the next set of results.
        type: string
      value:
        description: Results of the list operation.
        items:
          $ref: "#/definitions/ConnectorResourceFormat"
        type: array
  ConnectorMapping:
    description: The connector mapping definition.
    properties:
      connectorMappingName:
        description: The connector mapping name
        readOnly: true
        type: string
      connectorName:
        description: The connector name.
        readOnly: true
        type: string
      connectorType:
        $ref: "#/definitions/ConnectorType"
        description: Type of connector.
      created:
        description: The created time.
        format: date-time
        readOnly: true
        type: string
      dataFormatId:
        description: The DataFormat ID.
        readOnly: true
        type: string
      description:
        description: The description of the connector mapping.
        type: string
      displayName:
        description: Display name for the connector mapping.
        type: string
      entityType:
        description: Defines which entity type the file should map to.
        enum:
          - None
          - Profile
          - Interaction
          - Relationship
        type: string
        x-ms-enum:
          modelAsString: false
          name: EntityTypes
      entityTypeName:
        description: The mapping entity name.
        type: string
      lastModified:
        description: The last modified time.
        format: date-time
        readOnly: true
        type: string
      mappingProperties:
        $ref: "#/definitions/ConnectorMappingProperties"
        description: The properties of the mapping.
      nextRunTime:
        description: The next run time based on customer's settings.
        format: date-time
        readOnly: true
        type: string
      runId:
        description: The RunId.
        readOnly: true
        type: string
      state:
        description: State of connector mapping.
        enum:
          - Creating
          - Created
          - Failed
          - Ready
          - Running
          - Stopped
          - Expiring
        readOnly: true
        type: string
        x-ms-enum:
          modelAsString: false
          name: ConnectorMappingStates
      tenantId:
        description: The hub name.
        readOnly: true
        type: string
    required:
      - entityType
      - entityTypeName
      - mappingProperties
  ConnectorMappingAvailability:
    description: Connector mapping property availability.
    properties:
      frequency:
        description: The frequency to update.
        enum:
          - Minute
          - Hour
          - Day
          - Week
          - Month
        type: string
        x-ms-enum:
          modelAsString: false
          name: FrequencyTypes
      interval:
        description: The interval of the given frequency to use.
        type: integer
    required:
      - interval
  ConnectorMappingCompleteOperation:
    description: The complete operation.
    properties:
      completionOperationType:
        description: The type of completion operation.
        enum:
          - DoNothing
          - DeleteFile
          - MoveFile
        type: string
        x-ms-enum:
          modelAsString: false
          name: CompletionOperationTypes
      destinationFolder:
        description: The destination folder where files will be moved to once the import is done.
        type: string
  ConnectorMappingErrorManagement:
    description: The error management.
    properties:
      errorLimit:
        description: The error limit allowed while importing data.
        type: integer
      errorManagementType:
        description: The type of error management to use for the mapping.
        enum:
          - RejectAndContinue
          - StopImport
          - RejectUntilLimit
        type: string
        x-ms-enum:
          modelAsString: false
          name: ErrorManagementTypes
    required:
      - errorManagementType
  ConnectorMappingFormat:
    description: Connector mapping property format.
    properties:
      acceptLanguage:
        description: The oData language.
        type: string
      arraySeparator:
        description: Character separating array elements.
        type: string
      columnDelimiter:
        description: The character that signifies a break between columns.
        type: string
      formatType:
        description: The type mapping format.
        enum:
          - TextFormat
        type: string
        x-ms-enum:
          modelAsString: false
          name: FormatTypes
      quoteCharacter:
        description: Quote character, used to indicate enquoted fields.
        type: string
      quoteEscapeCharacter:
        description: Escape character for quotes, can be the same as the quoteCharacter.
        type: string
    required:
      - formatType
  ConnectorMappingListResult:
    description: The response of list connector mapping operation.
    properties:
      nextLink:
        description: Link to the next set of results.
        type: string
      value:
        description: Results of the list operation.
        items:
          $ref: "#/definitions/ConnectorMappingResourceFormat"
        type: array
  ConnectorMappingProperties:
    description: The connector mapping properties.
    properties:
      availability:
        $ref: "#/definitions/ConnectorMappingAvailability"
        description: The availability of mapping property.
      completeOperation:
        $ref: "#/definitions/ConnectorMappingCompleteOperation"
        description: The operation after import is done.
      errorManagement:
        $ref: "#/definitions/ConnectorMappingErrorManagement"
        description: The error management setting for the mapping.
      fileFilter:
        description: The file filter for the mapping.
        type: string
      folderPath:
        description: The folder path for the mapping.
        type: string
      format:
        $ref: "#/definitions/ConnectorMappingFormat"
        description: The format of mapping property.
      hasHeader:
        description: If the file contains a header or not.
        type: boolean
      structure:
        description: Ingestion mapping information at property level.
        items:
          $ref: "#/definitions/ConnectorMappingStructure"
        type: array
    required:
      - availability
      - completeOperation
      - errorManagement
      - format
      - structure
  ConnectorMappingResourceFormat:
    allOf:
      - $ref: "#/definitions/ProxyResource"
    description: The connector mapping resource format.
    properties:
      properties:
        $ref: "#/definitions/ConnectorMapping"
        x-ms-client-flatten: true
  ConnectorMappingStructure:
    description: Connector mapping property structure.
    properties:
      columnName:
        description: The column name of the import file.
        type: string
      customFormatSpecifier:
        description: Custom format specifier for input parsing.
        type: string
      isEncrypted:
        description: Indicates if the column is encrypted.
        type: boolean
      propertyName:
        description: The property name of the mapping entity.
        type: string
    required:
      - propertyName
      - columnName
  ConnectorResourceFormat:
    allOf:
      - $ref: "#/definitions/ProxyResource"
    description: The connector resource format.
    properties:
      properties:
        $ref: "#/definitions/Connector"
        x-ms-client-flatten: true
  ConnectorType:
    description: Type of connector.
    enum:
      - None
      - CRM
      - AzureBlob
      - Salesforce
      - ExchangeOnline
      - Outbound
    type: string
    x-ms-enum:
      modelAsString: true
      name: ConnectorTypes
  CrmConnectorEntities:
    description: The CRM connector entities.
    properties:
      displayName:
        description: The display name.
        type: string
      isProfile:
        description: Indicating whether this is profile.
        type: boolean
      logicalName:
        description: The logical name.
        type: string
    required:
      - logicalName
  CrmConnectorProperties:
    description: The CRM connector properties.
    properties:
      accessToken:
        description: The access token.
        type: string
      connectionString:
        description: The connection string.
        type: string
      entities:
        description: The entities like account, contact, opportunity.
        items:
          $ref: "#/definitions/CrmConnectorEntities"
        type: array
      organizationId:
        description: The organization ID.
        type: string
      organizationUrl:
        description: The organization URL.
        type: string
    required:
      - organizationId
      - organizationUrl
      - entities
  DataSource:
    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.
    properties:
      dataSourceReferenceId:
        description: The data source reference id.
        readOnly: true
        type: string
      dataSourceType:
        description: The data source type.
        enum:
          - Connector
          - LinkInteraction
          - SystemDefault
        readOnly: true
        type: string
        x-ms-enum:
          modelAsString: true
          name: DataSourceType
      id:
        description: The data source ID.
        readOnly: true
        type: integer
      name:
        description: The data source name
        readOnly: true
        type: string
      status:
        description: The data source status.
        enum:
          - None
          - Active
          - Deleted
        readOnly: true
        type: string
        x-ms-enum:
          modelAsString: true
          name: Status
  DataSourcePrecedence:
    description: The data source precedence is a way to know the precedence of each data source.
    properties:
      dataSource:
        $ref: "#/definitions/DataSource"
        x-ms-client-flatten: true
      precedence:
        description: the precedence value.
        type: integer
  EnrichingKpi:
    allOf:
      - $ref: "#/definitions/KpiDefinition"
    description: The enriching KPI definition.
  EntityTypeDefinition:
    allOf:
      - $ref: "#/definitions/MetadataDefinitionBase"
    description: Describes an entity.
    properties:
      apiEntitySetName:
        description: The api entity set name. This becomes the odata entity set name for the entity Type being referred in this object.
        type: string
      entityType:
        description: Type of entity.
        enum:
          - None
          - Profile
          - Interaction
          - Relationship
        type: string
        x-ms-enum:
          modelAsString: false
          name: EntityTypes
      fields:
        description: The properties of the Profile.
        items:
          $ref: "#/definitions/PropertyDefinition"
        type: array
      instancesCount:
        description: The instance count.
        type: integer
      lastChangedUtc:
        description: The last changed time for the type definition.
        format: date-time
        readOnly: true
        type: string
      provisioningState:
        $ref: "#/definitions/ProvisioningState"
        description: Provisioning state.
        readOnly: true
      schemaItemTypeLink:
        description: The schema org link. This helps ACI identify and suggest semantic models.
        type: string
      tenantId:
        description: The hub name.
        readOnly: true
        type: string
      timestampFieldName:
        description: The timestamp property name. Represents the time when the interaction or profile update happened.
        type: string
      typeName:
        description: The name of the entity.
        type: string
  GetImageUploadUrlInput:
    description: Input type for getting image upload url.
    properties:
      entityType:
        description: Type of entity. Can be Profile or Interaction.
        type: string
      entityTypeName:
        description: Name of the entity type.
        type: string
      relativePath:
        description: Relative path of the image.
        type: string
  Hub:
    allOf:
      - $ref: "#/definitions/Resource"
    description: Hub resource.
    properties:
      properties:
        $ref: "#/definitions/HubPropertiesFormat"
        x-ms-client-flatten: true
  HubBillingInfoFormat:
    description: Hub billing info.
    properties:
      maxUnits:
        description: The maximum number of units can be used.  One unit is 10,000 Profiles and 100,000 Interactions.
        maximum: 10
        minimum: 1
        type: integer
      minUnits:
        description: The minimum number of units will be billed. One unit is 10,000 Profiles and 100,000 Interactions.
        maximum: 10
        minimum: 1
        type: integer
      skuName:
        description: The sku name.
        type: string
  HubListResult:
    description: Response of list hub operation.
    properties:
      nextLink:
        description: Link for next set of results.
        type: string
      value:
        description: Results of the list operation.
        items:
          $ref: "#/definitions/Hub"
        type: array
  HubPropertiesFormat:
    description: Properties of hub.
    properties:
      apiEndpoint:
        description: API endpoint URL of the hub.
        readOnly: true
        type: string
      hubBillingInfo:
        $ref: "#/definitions/HubBillingInfoFormat"
        description: Billing settings of the hub.
      provisioningState:
        description: Provisioning state of the hub.
        readOnly: true
        type: string
      tenantFeatures:
        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.
        type: integer
      webEndpoint:
        description: Web endpoint URL of the hub.
        readOnly: true
        type: string
  ImageDefinition:
    description: The image definition.
    properties:
      contentUrl:
        description: Content URL for the image blob.
        type: string
      imageExists:
        description: Whether image exists already.
        type: boolean
      relativePath:
        description: Relative path of the image.
        type: string
  InteractionListResult:
    description: The response of list interaction operation.
    properties:
      nextLink:
        description: Link to the next set of results.
        type: string
      value:
        description: Results of the list operation.
        items:
          $ref: "#/definitions/InteractionResourceFormat"
        type: array
  InteractionResourceFormat:
    allOf:
      - $ref: "#/definitions/ProxyResource"
    description: The interaction resource format.
    properties:
      properties:
        $ref: "#/definitions/InteractionTypeDefinition"
        x-ms-client-flatten: true
  InteractionTypeDefinition:
    allOf:
      - $ref: "#/definitions/EntityTypeDefinition"
    description: The Interaction Type Definition
    properties:
      dataSourcePrecedenceRules:
        description: This is specific to interactions modeled as activities. Data sources are used to determine where data is stored and also in precedence rules.
        items:
          $ref: "#/definitions/DataSourcePrecedence"
        readOnly: true
        type: array
      defaultDataSource:
        $ref: "#/definitions/DataSource"
        description: Default data source is specifically used in cases where data source is not specified in an instance.
        x-ms-client-flatten: true
      idPropertyNames:
        description: The id property names. Properties which uniquely identify an interaction instance.
        items:
          type: string
        type: array
      isActivity:
        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.
        type: boolean
      participantProfiles:
        description: Profiles that participated in the interaction.
        items:
          $ref: "#/definitions/Participant"
        type: array
      primaryParticipantProfilePropertyName:
        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.
        type: string
  KpiAlias:
    description: The KPI alias.
    properties:
      aliasName:
        description: KPI alias name.
        type: string
      expression:
        description: The expression.
        type: string
    required:
      - aliasName
      - expression
  KpiDefinition:
    description: Defines the KPI Threshold limits.
    properties:
      aliases:
        description: The aliases.
        items:
          $ref: "#/definitions/KpiAlias"
        type: array
      calculationWindow:
        description: The calculation window.
        enum:
          - Lifetime
          - Hour
          - Day
          - Week
          - Month
        type: string
        x-ms-enum:
          modelAsString: false
          name: CalculationWindowTypes
      calculationWindowFieldName:
        description: Name of calculation window field.
        type: string
      description:
        additionalProperties:
          type: string
        description: Localized description for the KPI.
        type: object
      displayName:
        additionalProperties:
          type: string
        description: Localized display name for the KPI.
        type: object
      entityType:
        description: The mapping entity type.
        enum:
          - None
          - Profile
          - Interaction
          - Relationship
        type: string
        x-ms-enum:
          modelAsString: false
          name: EntityTypes
      entityTypeName:
        description: The mapping entity name.
        type: string
      expression:
        description: The computation expression for the KPI.
        type: string
      extracts:
        description: The KPI extracts.
        items:
          $ref: "#/definitions/KpiExtract"
        type: array
      filter:
        description: The filter expression for the KPI.
        type: string
      function:
        description: The computation function for the KPI.
        enum:
          - Sum
          - Avg
          - Min
          - Max
          - Last
          - Count
          - None
          - CountDistinct
        type: string
        x-ms-enum:
          modelAsString: false
          name: KpiFunctions
      groupBy:
        description: the group by properties for the KPI.
        items:
          type: string
        type: array
      groupByMetadata:
        description: The KPI GroupByMetadata.
        items:
          $ref: "#/definitions/KpiGroupByMetadata"
        readOnly: true
        type: array
      kpiName:
        description: The KPI name.
        readOnly: true
        type: string
      participantProfilesMetadata:
        description: The participant profiles.
        items:
          $ref: "#/definitions/KpiParticipantProfilesMetadata"
        readOnly: true
        type: array
      provisioningState:
        $ref: "#/definitions/ProvisioningState"
        description: Provisioning state.
        readOnly: true
      tenantId:
        description: The hub name.
        readOnly: true
        type: string
      thresHolds:
        $ref: "#/definitions/KpiThresholds"
        description: The KPI thresholds.
      unit:
        description: The unit of measurement for the KPI.
        type: string
    required:
      - entityType
      - entityTypeName
      - calculationWindow
      - function
      - expression
  KpiExtract:
    description: The KPI extract.
    properties:
      expression:
        description: The expression.
        type: string
      extractName:
        description: KPI extract name.
        type: string
    required:
      - extractName
      - expression
  KpiGroupByMetadata:
    description: The KPI GroupBy field metadata.
    properties:
      displayName:
        additionalProperties:
          type: string
        description: The display name.
        type: object
      fieldName:
        description: The name of the field.
        type: string
      fieldType:
        description: The type of the field.
        type: string
  KpiListResult:
    description: The response of list KPI operation.
    properties:
      nextLink:
        description: Link to the next set of results.
        type: string
      value:
        description: Results of the list operation.
        items:
          $ref: "#/definitions/KpiResourceFormat"
        type: array
  KpiParticipantProfilesMetadata:
    description: The KPI participant profile metadata.
    properties:
      typeName:
        description: Name of the type.
        type: string
    required:
      - typeName
  KpiResourceFormat:
    allOf:
      - $ref: "#/definitions/ProxyResource"
    description: The KPI resource format.
    properties:
      properties:
        $ref: "#/definitions/KpiDefinition"
        x-ms-client-flatten: true
  KpiThresholds:
    description: Defines the KPI Threshold limits.
    properties:
      increasingKpi:
        description: Whether or not the KPI is an increasing KPI.
        type: boolean
      lowerLimit:
        description: The lower threshold limit.
        format: decimal
        type: number
      upperLimit:
        description: The upper threshold limit.
        format: decimal
        type: number
    required:
      - lowerLimit
      - upperLimit
      - increasingKpi
  LinkDefinition:
    description: The definition of Link.
    properties:
      description:
        additionalProperties:
          type: string
        description: Localized descriptions for the Link.
        type: object
      displayName:
        additionalProperties:
          type: string
        description: Localized display name for the Link.
        type: object
      linkName:
        description: The link name.
        readOnly: true
        type: string
      mappings:
        description: The set of properties mappings between the source and target Types.
        items:
          $ref: "#/definitions/TypePropertiesMapping"
        type: array
      operationType:
        description: Determines whether this link is supposed to create or delete instances if Link is NOT Reference Only.
        enum:
          - Upsert
          - Delete
        type: string
        x-ms-enum:
          modelAsString: false
          name: InstanceOperationType
      participantPropertyReferences:
        description: The properties that represent the participating profile.
        items:
          $ref: "#/definitions/ParticipantPropertyReference"
        type: array
      provisioningState:
        $ref: "#/definitions/ProvisioningState"
        description: Provisioning state.
        readOnly: true
      referenceOnly:
        description: Indicating whether the link is reference only link. This flag is ignored 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.
        type: boolean
      sourceInteractionType:
        description: Name of the source Interaction Type.
        type: string
      targetProfileType:
        description: Name of the target Profile Type.
        type: string
      tenantId:
        description: The hub name.
        readOnly: true
        type: string
    required:
      - sourceInteractionType
      - targetProfileType
      - participantPropertyReferences
  LinkListResult:
    description: The response of list link operation.
    properties:
      nextLink:
        description: Link to the next set of results.
        type: string
      value:
        description: Results of the list operation.
        items:
          $ref: "#/definitions/LinkResourceFormat"
        type: array
  LinkResourceFormat:
    allOf:
      - $ref: "#/definitions/ProxyResource"
    description: The link resource format.
    properties:
      properties:
        $ref: "#/definitions/LinkDefinition"
        x-ms-client-flatten: true
  MetadataDefinitionBase:
    description: The Metadata definition base.
    properties:
      attributes:
        additionalProperties:
          items:
            type: string
          type: array
        description: The attributes for the Type.
        type: object
      description:
        additionalProperties:
          type: string
        description: Localized descriptions for the property.
        type: object
      displayName:
        additionalProperties:
          type: string
        description: Localized display names for the property.
        type: object
      largeImage:
        description: Large Image associated with the Property or EntityType.
        type: string
      localizedAttributes:
        additionalProperties:
          additionalProperties:
            type: string
          type: object
        description: Any custom localized attributes for the Type.
        type: object
      mediumImage:
        description: Medium Image associated with the Property or EntityType.
        type: string
      smallImage:
        description: Small Image associated with the Property or EntityType.
        type: string
  Operation:
    description: A Customer Insights REST API operation
    properties:
      display:
        description: The object that represents the operation.
        properties:
          operation:
            description: "Operation type: Read, write, delete, etc."
            readOnly: true
            type: string
          provider:
            description: "Service provider: Microsoft.CustomerInsights"
            readOnly: true
            type: string
          resource:
            description: "Resource on which the operation is performed: Invoice, etc."
            readOnly: true
            type: string
      name:
        description: "Operation name: {provider}/{resource}/{operation}"
        readOnly: true
        type: string
    type: object
  OperationListResult:
    description: Result of the request to list Customer Insights operations. It contains a list of operations and a URL link to get the next set of results.
    properties:
      nextLink:
        description: URL to get the next set of operation list results if there are any.
        readOnly: true
        type: string
      value:
        description: List of Customer Insights operations supported by the Microsoft.CustomerInsights resource provider.
        items:
          $ref: "#/definitions/Operation"
        readOnly: true
        type: array
  Participant:
    description: Describes a profile type participating in an interaction.
    properties:
      description:
        additionalProperties:
          type: string
        description: Localized descriptions.
        type: object
      displayName:
        additionalProperties:
          type: string
        description: Localized display name.
        type: object
      participantName:
        description: Participant name.
        type: string
      participantPropertyReferences:
        description: The property references.
        items:
          $ref: "#/definitions/ParticipantPropertyReference"
        type: array
      profileTypeName:
        description: Profile type name.
        type: string
      role:
        description: The role that the participant is playing in the interaction.
        type: string
    required:
      - participantName
      - profileTypeName
      - participantPropertyReferences
  ParticipantPropertyReference:
    description: The participant property reference.
    properties:
      interactionPropertyName:
        description: The interaction property that maps to the profile property.
        type: string
      profilePropertyName:
        description: The profile property that maps to the interaction property.
        type: string
    required:
      - interactionPropertyName
      - profilePropertyName
  PermissionTypes:
    description: Supported permission types.
    enum:
      - Read
      - Write
      - Manage
    type: string
    x-ms-enum:
      modelAsString: false
      name: PermissionTypes
  ProfileEnumValidValuesFormat:
    description: Valid enum values in case of an enum property.
    properties:
      localizedValueNames:
        additionalProperties:
          type: string
        description: Localized names of the enum member.
        type: object
      value:
        description: The integer value of the enum member.
        type: integer
  ProfileListResult:
    description: The response of list profile operation.
    properties:
      nextLink:
        description: Link to the next set of results.
        type: string
      value:
        description: Results of the list operation.
        items:
          $ref: "#/definitions/ProfileResourceFormat"
        type: array
  ProfileResourceFormat:
    allOf:
      - $ref: "#/definitions/ProxyResource"
    description: The profile resource format.
    properties:
      properties:
        $ref: "#/definitions/ProfileTypeDefinition"
        x-ms-client-flatten: true
  ProfileTypeDefinition:
    allOf:
      - $ref: "#/definitions/EntityTypeDefinition"
    description: The profile type definition.
    properties:
      strongIds:
        description: The strong IDs.
        items:
          $ref: "#/definitions/StrongId"
        type: array
  PropertyDefinition:
    description: Property definition.
    properties:
      arrayValueSeparator:
        description: Array value separator for properties with isArray set.
        type: string
      dataSourcePrecedenceRules:
        description: This is specific to interactions modeled as activities. Data sources are used to determine where data is stored and also in precedence rules.
        items:
          $ref: "#/definitions/DataSourcePrecedence"
        readOnly: true
        type: array
      enumValidValues:
        description: Describes valid values for an enum property.
        items:
          $ref: "#/definitions/ProfileEnumValidValuesFormat"
        type: array
      fieldName:
        description: Name of the property.
        type: string
      fieldType:
        description: Type of the property.
        type: string
      isArray:
        description: Indicates if the property is actually an array of the fieldType above on the data api.
        type: boolean
      isAvailableInGraph:
        description: Whether property is available in graph or not.
        type: boolean
      isEnum:
        description: Indicates if the property is an enum.
        type: boolean
      isFlagEnum:
        description: Indicates if the property is an flag enum.
        type: boolean
      isImage:
        description: Whether the property is an Image.
        type: boolean
      isLocalizedString:
        description: Whether the property is a localized string.
        type: boolean
      isName:
        description: Whether the property is a name or a part of name.
        type: boolean
      isRequired:
        description: Whether property value is required on instances, IsRequired field only for Interaction. Profile Instance will not check for required field.
        type: boolean
      maxLength:
        description: Max length of string. Used only if type is string.
        type: integer
      propertyId:
        description: The ID associated with the property.
        type: string
      schemaItemPropLink:
        description: URL encoded schema.org item prop link for the property.
        type: string
    required:
      - fieldName
      - fieldType
  ProvisioningState:
    description: Provisioning state.
    enum:
      - Provisioning
      - Succeeded
      - Expiring
      - Deleting
      - HumanIntervention
      - Failed
    type: string
    x-ms-enum:
      modelAsString: true
      name: ProvisioningStates
  ProxyResource:
    description: Common properties of proxy resource.
    properties:
      id:
        description: Resource ID.
        readOnly: true
        type: string
      name:
        description: Resource name.
        readOnly: true
        type: string
      type:
        description: Resource type.
        readOnly: true
        type: string
    x-ms-azure-resource: true
  RelationshipDefinition:
    description: The definition of Relationship.
    properties:
      cardinality:
        description: The Relationship Cardinality.
        enum:
          - OneToOne
          - OneToMany
          - ManyToMany
        type: string
        x-ms-enum:
          modelAsString: false
          name: CardinalityTypes
      description:
        additionalProperties:
          type: string
        description: Localized descriptions for the Relationship.
        type: object
      displayName:
        additionalProperties:
          type: string
        description: Localized display name for the Relationship.
        type: object
      expiryDateTimeUtc:
        description: The expiry date time in UTC.
        format: date-time
        type: string
      fields:
        description: The properties of the Relationship.
        items:
          $ref: "#/definitions/PropertyDefinition"
        type: array
      lookupMappings:
        description: Optional property to be used to map fields in profile to their strong ids in related profile.
        items:
          $ref: "#/definitions/RelationshipTypeMapping"
        type: array
      profileType:
        description: Profile type.
        type: string
      provisioningState:
        $ref: "#/definitions/ProvisioningState"
        description: Provisioning state.
        readOnly: true
      relatedProfileType:
        description: Related profile being referenced.
        type: string
      relationshipGuidId:
        description: The relationship guid id.
        readOnly: true
        type: string
      relationshipName:
        description: The Relationship name.
        readOnly: true
        type: string
      tenantId:
        description: The hub name.
        readOnly: true
        type: string
    required:
      - profileType
      - relatedProfileType
  RelationshipLinkDefinition:
    description: The definition of relationship link.
    properties:
      description:
        additionalProperties:
          type: string
        description: Localized descriptions for the Relationship Link.
        type: object
      displayName:
        additionalProperties:
          type: string
        description: Localized display name for the Relationship Link.
        type: object
      interactionType:
        description: The InteractionType associated with the Relationship Link.
        type: string
      linkName:
        description: The name of the Relationship Link.
        readOnly: true
        type: string
      mappings:
        description: The mappings between Interaction and Relationship fields.
        items:
          $ref: "#/definitions/RelationshipLinkFieldMapping"
        type: array
      profilePropertyReferences:
        description: The property references for the Profile of the Relationship.
        items:
          $ref: "#/definitions/ParticipantPropertyReference"
        type: array
      provisioningState:
        $ref: "#/definitions/ProvisioningState"
        description: Provisioning state.
        readOnly: true
      relatedProfilePropertyReferences:
        description: The property references for the Related Profile of the Relationship.
        items:
          $ref: "#/definitions/ParticipantPropertyReference"
        type: array
      relationshipGuidId:
        description: The relationship guid id.
        readOnly: true
        type: string
      relationshipName:
        description: The Relationship associated with the Link.
        type: string
      tenantId:
        description: The hub name.
        readOnly: true
        type: string
    required:
      - interactionType
      - profilePropertyReferences
      - relatedProfilePropertyReferences
      - relationshipName
  RelationshipLinkFieldMapping:
    description: The fields mapping for Relationships.
    properties:
      interactionFieldName:
        description: The field name on the Interaction Type.
        type: string
      linkType:
        description: Link type.
        enum:
          - UpdateAlways
          - CopyIfNull
        type: string
        x-ms-enum:
          modelAsString: false
          name: LinkTypes
      relationshipFieldName:
        description: The field name on the Relationship metadata.
        type: string
    required:
      - interactionFieldName
      - relationshipFieldName
  RelationshipLinkListResult:
    description: The response of list relationship link operation.
    properties:
      nextLink:
        description: Link to the next set of results.
        type: string
      value:
        description: Results of the list operation.
        items:
          $ref: "#/definitions/RelationshipLinkResourceFormat"
        type: array
  RelationshipLinkResourceFormat:
    allOf:
      - $ref: "#/definitions/ProxyResource"
    description: The relationship link resource format.
    properties:
      properties:
        $ref: "#/definitions/RelationshipLinkDefinition"
        x-ms-client-flatten: true
  RelationshipListResult:
    description: The response of list relationship operation.
    properties:
      nextLink:
        description: Link to the next set of results.
        type: string
      value:
        description: Results of the list operation.
        items:
          $ref: "#/definitions/RelationshipResourceFormat"
        type: array
  RelationshipResourceFormat:
    allOf:
      - $ref: "#/definitions/ProxyResource"
    description: The relationship resource format.
    properties:
      properties:
        $ref: "#/definitions/RelationshipDefinition"
        x-ms-client-flatten: true
  RelationshipTypeFieldMapping:
    description: Map a field of profile to its corresponding StrongId in Related Profile.
    properties:
      profileFieldName:
        description: Specifies the fieldName in profile.
        type: string
      relatedProfileKeyProperty:
        description: Specifies the KeyProperty (from StrongId) of the related profile.
        type: string
    required:
      - profileFieldName
      - relatedProfileKeyProperty
  RelationshipTypeMapping:
    description: Maps fields in Profile to their corresponding StrongIds in Related Profile.
    properties:
      fieldMappings:
        description: Maps a profile property with the StrongId of related profile. This is an array to support StrongIds that are composite key as well.
        items:
          $ref: "#/definitions/RelationshipTypeFieldMapping"
        type: array
    required:
      - fieldMappings
  RelationshipsLookup:
    description: The definition of suggested relationship for the type.
    properties:
      existingRelationshipName:
        description: The name of existing Relationship.
        readOnly: true
        type: string
      profileName:
        description: The relationship profile.
        readOnly: true
        type: string
      profilePropertyReferences:
        description: The property references for the profile type.
        items:
          $ref: "#/definitions/ParticipantPropertyReference"
        readOnly: true
        type: array
      relatedProfileName:
        description: The related profile.
        readOnly: true
        type: string
      relatedProfilePropertyReferences:
        description: The property references for the related profile type.
        items:
          $ref: "#/definitions/ParticipantPropertyReference"
        readOnly: true
        type: array
  Resource:
    description: Common properties of Azure resource.
    properties:
      id:
        description: Resource ID.
        readOnly: true
        type: string
      location:
        description: Resource location.
        type: string
      name:
        description: Resource name.
        readOnly: true
        type: string
      tags:
        additionalProperties:
          type: string
        description: Resource tags.
        type: object
      type:
        description: Resource type.
        readOnly: true
        type: string
    x-ms-azure-resource: true
  ResourceSetDescription:
    description: The resource set description.
    properties:
      elements:
        description: The elements included in the set.
        items:
          type: string
        type: array
      exceptions:
        description: The elements that are not included in the set, in case elements contains '*' indicating 'all'.
        items:
          type: string
        type: array
  Role:
    description: The Role definition.
    properties:
      description:
        description: The description of the role.
        type: string
      roleName:
        description: The role name.
        type: string
  RoleAssignment:
    description: The Role Assignment definition.
    properties:
      assignmentName:
        description: The name of the metadata object.
        readOnly: true
        type: string
      conflationPolicies:
        $ref: "#/definitions/ResourceSetDescription"
        description: Widget types set for the assignment.
      connectors:
        $ref: "#/definitions/ResourceSetDescription"
        description: Connectors set for the assignment.
      description:
        additionalProperties:
          type: string
        description: Localized description for the metadata.
        type: object
      displayName:
        additionalProperties:
          type: string
        description: Localized display names for the metadata.
        type: object
      interactions:
        $ref: "#/definitions/ResourceSetDescription"
        description: Interactions set for the assignment.
      kpis:
        $ref: "#/definitions/ResourceSetDescription"
        description: Kpis set for the assignment.
      links:
        $ref: "#/definitions/ResourceSetDescription"
        description: Links set for the assignment.
      principals:
        description: The principals being assigned to.
        items:
          $ref: "#/definitions/AssignmentPrincipal"
        type: array
      profiles:
        $ref: "#/definitions/ResourceSetDescription"
        description: Profiles set for the assignment.
      provisioningState:
        $ref: "#/definitions/ProvisioningState"
        description: Provisioning state.
        readOnly: true
      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.
      role:
        description: Type of roles.
        enum:
          - Admin
          - Reader
          - ManageAdmin
          - ManageReader
          - DataAdmin
          - DataReader
        type: string
        x-ms-enum:
          modelAsString: false
          name: RoleTypes
      roleAssignments:
        $ref: "#/definitions/ResourceSetDescription"
        description: The Role assignments set for the assignment.
      sasPolicies:
        $ref: "#/definitions/ResourceSetDescription"
        description: Sas Policies set for the assignment.
      segments:
        $ref: "#/definitions/ResourceSetDescription"
        description: The Role assignments set for the assignment.
      tenantId:
        description: The hub name.
        readOnly: true
        type: string
      views:
        $ref: "#/definitions/ResourceSetDescription"
        description: Views set for the assignment.
      widgetTypes:
        $ref: "#/definitions/ResourceSetDescription"
        description: Widget types set for the assignment.
    required:
      - role
      - principals
  RoleAssignmentListResult:
    description: The response of list role assignment operation.
    properties:
      nextLink:
        description: Link to the next set of results.
        type: string
      value:
        description: Results of the list operation.
        items:
          $ref: "#/definitions/RoleAssignmentResourceFormat"
        type: array
  RoleAssignmentResourceFormat:
    allOf:
      - $ref: "#/definitions/ProxyResource"
    description: The Role Assignment resource format.
    properties:
      properties:
        $ref: "#/definitions/RoleAssignment"
        x-ms-client-flatten: true
  RoleListResult:
    description: The response of list role assignment operation.
    properties:
      nextLink:
        description: Link to the next set of results.
        type: string
      value:
        description: Results of the list operation.
        items:
          $ref: "#/definitions/RoleResourceFormat"
        type: array
  RoleResourceFormat:
    allOf:
      - $ref: "#/definitions/ProxyResource"
    description: The role resource format.
    properties:
      properties:
        $ref: "#/definitions/Role"
        x-ms-client-flatten: true
  SalesforceConnectorProperties:
    description: The Salesforce connector properties.
    properties:
      salesforcetables:
        description: The Salesforce tables.
        items:
          $ref: "#/definitions/SalesforceTable"
        type: array
      usersetting:
        $ref: "#/definitions/SalesforceDiscoverSetting"
        description: The user settings.
    required:
      - usersetting
      - salesforcetables
  SalesforceDiscoverSetting:
    description: Salesforce discover setting.
    properties:
      salesforceConnectionStringSecretUrl:
        description: The salesforce connection string secret URL.
        type: string
    required:
      - salesforceConnectionStringSecretUrl
  SalesforceTable:
    description: Salesforce table.
    properties:
      isProfile:
        description: Indicating whether this instance is profile.
        type: string
      tableCategory:
        description: The table category.
        type: string
      tableName:
        description: The name of the table.
        type: string
      tableRemarks:
        description: The table remarks.
        type: string
      tableSchema:
        description: The table schema.
        type: string
    required:
      - tableName
      - tableSchema
      - tableCategory
  StrongId:
    description: Property/Properties which represent a unique ID.
    properties:
      description:
        additionalProperties:
          type: string
        description: Localized descriptions.
        type: object
      displayName:
        additionalProperties:
          type: string
        description: Localized display name.
        type: object
      keyPropertyNames:
        description: The properties which make up the unique ID.
        items:
          type: string
        type: array
      strongIdName:
        description: The Name identifying the strong ID.
        type: string
    required:
      - keyPropertyNames
      - strongIdName
  SuggestRelationshipLinksResponse:
    description: The response of suggest relationship links operation.
    properties:
      interactionName:
        description: The interaction name.
        readOnly: true
        type: string
      suggestedRelationships:
        description: Suggested relationships for the type.
        items:
          $ref: "#/definitions/RelationshipsLookup"
        readOnly: true
        type: array
  TypePropertiesMapping:
    description: Metadata for a Link's property mapping.
    properties:
      interactionTypePropertyName:
        description: " Property name on the source Interaction Type."
        type: string
      isProfileTypeId:
        description: Flag to indicate whether the Profile Type property is an id on the Profile Type.
        type: boolean
      linkType:
        description: Link type.
        enum:
          - UpdateAlways
          - CopyIfNull
        type: string
        x-ms-enum:
          modelAsString: false
          name: LinkTypes
      profileTypePropertyName:
        description: Property name on the target Profile Type.
        type: string
    required:
      - interactionTypePropertyName
      - profileTypePropertyName
  View:
    description: The view in Customer 360 web application.
    properties:
      changed:
        description: Date time when view was last modified.
        format: date-time
        readOnly: true
        type: string
      created:
        description: Date time when view was created.
        format: date-time
        readOnly: true
        type: string
      definition:
        description: View definition.
        type: string
      displayName:
        additionalProperties:
          type: string
        description: Localized display name for the view.
        type: object
      tenantId:
        description: the hub name.
        readOnly: true
        type: string
      userId:
        description: the user ID.
        type: string
      viewName:
        description: Name of the view.
        readOnly: true
        type: string
    required:
      - definition
  ViewListResult:
    description: The response of list view operation.
    properties:
      nextLink:
        description: Link to the next set of results.
        type: string
      value:
        description: Results of the list operation.
        items:
          $ref: "#/definitions/ViewResourceFormat"
        type: array
  ViewResourceFormat:
    allOf:
      - $ref: "#/definitions/ProxyResource"
    description: The view resource format.
    properties:
      properties:
        $ref: "#/definitions/View"
        x-ms-client-flatten: true
  WidgetType:
    description: Definition of WidgetType.
    properties:
      changed:
        description: Date time when widget type was last modified.
        format: date-time
        readOnly: true
        type: string
      created:
        description: Date time when widget type was created.
        format: date-time
        readOnly: true
        type: string
      definition:
        description: Definition for widget type.
        type: string
      description:
        description: Description for widget type.
        type: string
      displayName:
        additionalProperties:
          type: string
        description: Localized display name for the widget type.
        type: object
      imageUrl:
        description: The image URL.
        type: string
      tenantId:
        description: The hub name.
        readOnly: true
        type: string
      widgetTypeName:
        description: Name of the widget type.
        readOnly: true
        type: string
      widgetVersion:
        description: The widget version.
        type: string
    required:
      - definition
  WidgetTypeListResult:
    description: The response of list widget type operation.
    properties:
      nextLink:
        description: Link to the next set of results.
        type: string
      value:
        description: Results of the list operation.
        items:
          $ref: "#/definitions/WidgetTypeResourceFormat"
        type: array
  WidgetTypeResourceFormat:
    allOf:
      - $ref: "#/definitions/ProxyResource"
    description: The WidgetTypeResourceFormat
    properties:
      properties:
        $ref: "#/definitions/WidgetType"
        x-ms-client-flatten: true
