@azure/arm-customerinsights 3.1.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +75 -73
- package/dist/index.js +8925 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/customerInsightsManagementClient.d.ts +35 -0
- package/dist-esm/src/customerInsightsManagementClient.d.ts.map +1 -0
- package/dist-esm/src/customerInsightsManagementClient.js +68 -0
- package/dist-esm/src/customerInsightsManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +2222 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +72 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +88 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +2237 -2527
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +53 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +243 -163
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/authorizationPolicies.d.ts +71 -0
- package/dist-esm/src/operations/authorizationPolicies.d.ts.map +1 -0
- package/dist-esm/src/operations/authorizationPolicies.js +259 -0
- package/dist-esm/src/operations/authorizationPolicies.js.map +1 -0
- package/dist-esm/src/operations/connectorMappings.d.ts +69 -0
- package/dist-esm/src/operations/connectorMappings.d.ts.map +1 -0
- package/dist-esm/src/operations/connectorMappings.js +237 -0
- package/dist-esm/src/operations/connectorMappings.js.map +1 -0
- package/dist-esm/src/operations/connectors.d.ts +81 -0
- package/dist-esm/src/operations/connectors.d.ts.map +1 -0
- package/dist-esm/src/operations/connectors.js +310 -0
- package/dist-esm/src/operations/connectors.js.map +1 -0
- package/dist-esm/src/operations/hubs.d.ts +91 -0
- package/dist-esm/src/operations/hubs.d.ts.map +1 -0
- package/dist-esm/src/operations/hubs.js +373 -0
- package/dist-esm/src/operations/hubs.js.map +1 -0
- package/dist-esm/src/operations/images.d.ts +29 -0
- package/dist-esm/src/operations/images.d.ts.map +1 -0
- package/dist-esm/src/operations/images.js +83 -0
- package/dist-esm/src/operations/images.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +3 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/interactions.d.ts +73 -0
- package/dist-esm/src/operations/interactions.d.ts.map +1 -0
- package/dist-esm/src/operations/interactions.js +274 -0
- package/dist-esm/src/operations/interactions.js.map +1 -0
- package/dist-esm/src/operations/kpi.d.ts +89 -0
- package/dist-esm/src/operations/kpi.d.ts.map +1 -0
- package/dist-esm/src/operations/kpi.js +334 -0
- package/dist-esm/src/operations/kpi.js.map +1 -0
- package/dist-esm/src/operations/links.d.ts +73 -0
- package/dist-esm/src/operations/links.d.ts.map +1 -0
- package/dist-esm/src/operations/links.js +269 -0
- package/dist-esm/src/operations/links.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +114 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/predictions.d.ts +106 -0
- package/dist-esm/src/operations/predictions.d.ts.map +1 -0
- package/dist-esm/src/operations/predictions.js +396 -0
- package/dist-esm/src/operations/predictions.js.map +1 -0
- package/dist-esm/src/operations/profiles.d.ts +91 -0
- package/dist-esm/src/operations/profiles.d.ts.map +1 -0
- package/dist-esm/src/operations/profiles.js +346 -0
- package/dist-esm/src/operations/profiles.js.map +1 -0
- package/dist-esm/src/operations/relationshipLinks.d.ts +81 -0
- package/dist-esm/src/operations/relationshipLinks.d.ts.map +1 -0
- package/dist-esm/src/operations/relationshipLinks.js +310 -0
- package/dist-esm/src/operations/relationshipLinks.js.map +1 -0
- package/dist-esm/src/operations/relationships.d.ts +81 -0
- package/dist-esm/src/operations/relationships.d.ts.map +1 -0
- package/dist-esm/src/operations/relationships.js +310 -0
- package/dist-esm/src/operations/relationships.js.map +1 -0
- package/dist-esm/src/operations/roleAssignments.d.ts +73 -0
- package/dist-esm/src/operations/roleAssignments.d.ts.map +1 -0
- package/dist-esm/src/operations/roleAssignments.js +269 -0
- package/dist-esm/src/operations/roleAssignments.js.map +1 -0
- package/dist-esm/src/operations/roles.d.ts +38 -0
- package/dist-esm/src/operations/roles.d.ts.map +1 -0
- package/dist-esm/src/operations/roles.js +131 -0
- package/dist-esm/src/operations/roles.js.map +1 -0
- package/dist-esm/src/operations/views.d.ts +68 -0
- package/dist-esm/src/operations/views.d.ts.map +1 -0
- package/dist-esm/src/operations/views.js +221 -0
- package/dist-esm/src/operations/views.js.map +1 -0
- package/dist-esm/src/operations/widgetTypes.d.ts +46 -0
- package/dist-esm/src/operations/widgetTypes.d.ts.map +1 -0
- package/dist-esm/src/operations/widgetTypes.js +160 -0
- package/dist-esm/src/operations/widgetTypes.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/authorizationPolicies.d.ts +46 -0
- package/dist-esm/src/operationsInterfaces/authorizationPolicies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/authorizationPolicies.js +9 -0
- package/dist-esm/src/operationsInterfaces/authorizationPolicies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/connectorMappings.d.ts +42 -0
- package/dist-esm/src/operationsInterfaces/connectorMappings.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/connectorMappings.js +9 -0
- package/dist-esm/src/operationsInterfaces/connectorMappings.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/connectors.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/connectors.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/connectors.js +9 -0
- package/dist-esm/src/operationsInterfaces/connectors.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/hubs.d.ts +55 -0
- package/dist-esm/src/operationsInterfaces/hubs.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/hubs.js +9 -0
- package/dist-esm/src/operationsInterfaces/hubs.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/images.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/images.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/images.js +9 -0
- package/dist-esm/src/operationsInterfaces/images.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +18 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +25 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/interactions.d.ts +48 -0
- package/dist-esm/src/operationsInterfaces/interactions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/interactions.js +9 -0
- package/dist-esm/src/operationsInterfaces/interactions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/kpi.d.ts +64 -0
- package/dist-esm/src/operationsInterfaces/kpi.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/kpi.js +9 -0
- package/dist-esm/src/operationsInterfaces/kpi.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/links.d.ts +48 -0
- package/dist-esm/src/operationsInterfaces/links.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/links.js +9 -0
- package/dist-esm/src/operationsInterfaces/links.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/predictions.d.ts +81 -0
- package/dist-esm/src/operationsInterfaces/predictions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/predictions.js +9 -0
- package/dist-esm/src/operationsInterfaces/predictions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/profiles.d.ts +66 -0
- package/dist-esm/src/operationsInterfaces/profiles.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/profiles.js +9 -0
- package/dist-esm/src/operationsInterfaces/profiles.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/relationshipLinks.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/relationshipLinks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/relationshipLinks.js +9 -0
- package/dist-esm/src/operationsInterfaces/relationshipLinks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/relationships.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/relationships.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/relationships.js +9 -0
- package/dist-esm/src/operationsInterfaces/relationships.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/roleAssignments.d.ts +48 -0
- package/dist-esm/src/operationsInterfaces/roleAssignments.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/roleAssignments.js +9 -0
- package/dist-esm/src/operationsInterfaces/roleAssignments.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/roles.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/roles.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/roles.js +9 -0
- package/dist-esm/src/operationsInterfaces/roles.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/views.d.ts +41 -0
- package/dist-esm/src/operationsInterfaces/views.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/views.js +9 -0
- package/dist-esm/src/operationsInterfaces/views.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/widgetTypes.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/widgetTypes.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/widgetTypes.js +9 -0
- package/dist-esm/src/operationsInterfaces/widgetTypes.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +70 -34
- package/review/arm-customerinsights.api.md +1833 -0
- package/rollup.config.js +184 -27
- package/src/customerInsightsManagementClient.ts +144 -0
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +2454 -0
- package/{lib → src}/models/mappers.ts +2289 -2562
- package/src/models/parameters.ts +569 -0
- package/src/operations/authorizationPolicies.ts +348 -0
- package/src/operations/connectorMappings.ts +338 -0
- package/src/operations/connectors.ts +443 -0
- package/src/operations/hubs.ts +477 -0
- package/src/operations/images.ts +116 -0
- package/{lib → src}/operations/index.ts +3 -5
- package/src/operations/interactions.ts +383 -0
- package/src/operations/kpi.ts +478 -0
- package/src/operations/links.ts +377 -0
- package/src/operations/operations.ts +131 -0
- package/src/operations/predictions.ts +566 -0
- package/src/operations/profiles.ts +491 -0
- package/src/operations/relationshipLinks.ts +443 -0
- package/src/operations/relationships.ts +443 -0
- package/src/operations/roleAssignments.ts +377 -0
- package/src/operations/roles.ts +171 -0
- package/src/operations/views.ts +321 -0
- package/src/operations/widgetTypes.ts +212 -0
- package/src/operationsInterfaces/authorizationPolicies.ts +91 -0
- package/src/operationsInterfaces/connectorMappings.ts +83 -0
- package/src/operationsInterfaces/connectors.ts +109 -0
- package/src/operationsInterfaces/hubs.ts +100 -0
- package/src/operationsInterfaces/images.ts +45 -0
- package/src/operationsInterfaces/index.ts +25 -0
- package/src/operationsInterfaces/interactions.ts +97 -0
- package/src/operationsInterfaces/kpi.ts +123 -0
- package/src/operationsInterfaces/links.ts +96 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/predictions.ts +156 -0
- package/src/operationsInterfaces/profiles.ts +126 -0
- package/src/operationsInterfaces/relationshipLinks.ts +109 -0
- package/src/operationsInterfaces/relationships.ts +109 -0
- package/src/operationsInterfaces/roleAssignments.ts +96 -0
- package/src/operationsInterfaces/roles.ts +26 -0
- package/src/operationsInterfaces/views.ts +81 -0
- package/src/operationsInterfaces/widgetTypes.ts +44 -0
- package/tsconfig.json +4 -4
- package/types/arm-customerinsights.d.ts +3254 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-customerinsights.js +0 -9229
- package/dist/arm-customerinsights.js.map +0 -1
- package/dist/arm-customerinsights.min.js +0 -1
- package/dist/arm-customerinsights.min.js.map +0 -1
- package/esm/customerInsightsManagementClient.d.ts +0 -35
- package/esm/customerInsightsManagementClient.d.ts.map +0 -1
- package/esm/customerInsightsManagementClient.js +0 -50
- package/esm/customerInsightsManagementClient.js.map +0 -1
- package/esm/customerInsightsManagementClientContext.d.ts +0 -17
- package/esm/customerInsightsManagementClientContext.d.ts.map +0 -1
- package/esm/customerInsightsManagementClientContext.js +0 -57
- package/esm/customerInsightsManagementClientContext.js.map +0 -1
- package/esm/models/authorizationPoliciesMappers.d.ts +0 -2
- package/esm/models/authorizationPoliciesMappers.d.ts.map +0 -1
- package/esm/models/authorizationPoliciesMappers.js +0 -11
- package/esm/models/authorizationPoliciesMappers.js.map +0 -1
- package/esm/models/connectorMappingsMappers.d.ts +0 -2
- package/esm/models/connectorMappingsMappers.d.ts.map +0 -1
- package/esm/models/connectorMappingsMappers.js +0 -11
- package/esm/models/connectorMappingsMappers.js.map +0 -1
- package/esm/models/connectorsMappers.d.ts +0 -2
- package/esm/models/connectorsMappers.d.ts.map +0 -1
- package/esm/models/connectorsMappers.js +0 -11
- package/esm/models/connectorsMappers.js.map +0 -1
- package/esm/models/hubsMappers.d.ts +0 -2
- package/esm/models/hubsMappers.d.ts.map +0 -1
- package/esm/models/hubsMappers.js +0 -11
- package/esm/models/hubsMappers.js.map +0 -1
- package/esm/models/imagesMappers.d.ts +0 -2
- package/esm/models/imagesMappers.d.ts.map +0 -1
- package/esm/models/imagesMappers.js +0 -11
- package/esm/models/imagesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -4582
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/interactionsMappers.d.ts +0 -2
- package/esm/models/interactionsMappers.d.ts.map +0 -1
- package/esm/models/interactionsMappers.js +0 -11
- package/esm/models/interactionsMappers.js.map +0 -1
- package/esm/models/kpiMappers.d.ts +0 -2
- package/esm/models/kpiMappers.d.ts.map +0 -1
- package/esm/models/kpiMappers.js +0 -11
- package/esm/models/kpiMappers.js.map +0 -1
- package/esm/models/linksMappers.d.ts +0 -2
- package/esm/models/linksMappers.d.ts.map +0 -1
- package/esm/models/linksMappers.js +0 -11
- package/esm/models/linksMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -88
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -11
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -36
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/predictionsMappers.d.ts +0 -2
- package/esm/models/predictionsMappers.d.ts.map +0 -1
- package/esm/models/predictionsMappers.js +0 -11
- package/esm/models/predictionsMappers.js.map +0 -1
- package/esm/models/profilesMappers.d.ts +0 -2
- package/esm/models/profilesMappers.d.ts.map +0 -1
- package/esm/models/profilesMappers.js +0 -11
- package/esm/models/profilesMappers.js.map +0 -1
- package/esm/models/relationshipLinksMappers.d.ts +0 -2
- package/esm/models/relationshipLinksMappers.d.ts.map +0 -1
- package/esm/models/relationshipLinksMappers.js +0 -11
- package/esm/models/relationshipLinksMappers.js.map +0 -1
- package/esm/models/relationshipsMappers.d.ts +0 -2
- package/esm/models/relationshipsMappers.d.ts.map +0 -1
- package/esm/models/relationshipsMappers.js +0 -11
- package/esm/models/relationshipsMappers.js.map +0 -1
- package/esm/models/roleAssignmentsMappers.d.ts +0 -2
- package/esm/models/roleAssignmentsMappers.d.ts.map +0 -1
- package/esm/models/roleAssignmentsMappers.js +0 -11
- package/esm/models/roleAssignmentsMappers.js.map +0 -1
- package/esm/models/rolesMappers.d.ts +0 -2
- package/esm/models/rolesMappers.d.ts.map +0 -1
- package/esm/models/rolesMappers.js +0 -11
- package/esm/models/rolesMappers.js.map +0 -1
- package/esm/models/viewsMappers.d.ts +0 -2
- package/esm/models/viewsMappers.d.ts.map +0 -1
- package/esm/models/viewsMappers.js +0 -11
- package/esm/models/viewsMappers.js.map +0 -1
- package/esm/models/widgetTypesMappers.d.ts +0 -2
- package/esm/models/widgetTypesMappers.d.ts.map +0 -1
- package/esm/models/widgetTypesMappers.js +0 -11
- package/esm/models/widgetTypesMappers.js.map +0 -1
- package/esm/operations/authorizationPolicies.d.ts +0 -151
- package/esm/operations/authorizationPolicies.d.ts.map +0 -1
- package/esm/operations/authorizationPolicies.js +0 -225
- package/esm/operations/authorizationPolicies.js.map +0 -1
- package/esm/operations/connectorMappings.d.ts +0 -139
- package/esm/operations/connectorMappings.d.ts.map +0 -1
- package/esm/operations/connectorMappings.js +0 -199
- package/esm/operations/connectorMappings.js.map +0 -1
- package/esm/operations/connectors.d.ts +0 -115
- package/esm/operations/connectors.d.ts.map +0 -1
- package/esm/operations/connectors.js +0 -232
- package/esm/operations/connectors.js.map +0 -1
- package/esm/operations/hubs.d.ts +0 -168
- package/esm/operations/hubs.d.ts.map +0 -1
- package/esm/operations/hubs.js +0 -291
- package/esm/operations/hubs.js.map +0 -1
- package/esm/operations/images.d.ts +0 -61
- package/esm/operations/images.d.ts.map +0 -1
- package/esm/operations/images.js +0 -100
- package/esm/operations/images.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/interactions.d.ts +0 -121
- package/esm/operations/interactions.d.ts.map +0 -1
- package/esm/operations/interactions.js +0 -214
- package/esm/operations/interactions.js.map +0 -1
- package/esm/operations/kpi.d.ts +0 -139
- package/esm/operations/kpi.d.ts.map +0 -1
- package/esm/operations/kpi.js +0 -262
- package/esm/operations/kpi.js.map +0 -1
- package/esm/operations/links.d.ts +0 -121
- package/esm/operations/links.d.ts.map +0 -1
- package/esm/operations/links.js +0 -211
- package/esm/operations/links.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/predictions.d.ts +0 -190
- package/esm/operations/predictions.d.ts.map +0 -1
- package/esm/operations/predictions.js +0 -333
- package/esm/operations/predictions.js.map +0 -1
- package/esm/operations/profiles.d.ts +0 -141
- package/esm/operations/profiles.d.ts.map +0 -1
- package/esm/operations/profiles.js +0 -279
- package/esm/operations/profiles.js.map +0 -1
- package/esm/operations/relationshipLinks.d.ts +0 -115
- package/esm/operations/relationshipLinks.d.ts.map +0 -1
- package/esm/operations/relationshipLinks.js +0 -231
- package/esm/operations/relationshipLinks.js.map +0 -1
- package/esm/operations/relationships.d.ts +0 -115
- package/esm/operations/relationships.d.ts.map +0 -1
- package/esm/operations/relationships.js +0 -231
- package/esm/operations/relationships.js.map +0 -1
- package/esm/operations/roleAssignments.d.ts +0 -121
- package/esm/operations/roleAssignments.d.ts.map +0 -1
- package/esm/operations/roleAssignments.js +0 -212
- package/esm/operations/roleAssignments.js.map +0 -1
- package/esm/operations/roles.d.ts +0 -52
- package/esm/operations/roles.d.ts.map +0 -1
- package/esm/operations/roles.js +0 -84
- package/esm/operations/roles.js.map +0 -1
- package/esm/operations/views.d.ts +0 -136
- package/esm/operations/views.d.ts.map +0 -1
- package/esm/operations/views.js +0 -193
- package/esm/operations/views.js.map +0 -1
- package/esm/operations/widgetTypes.d.ts +0 -76
- package/esm/operations/widgetTypes.d.ts.map +0 -1
- package/esm/operations/widgetTypes.js +0 -117
- package/esm/operations/widgetTypes.js.map +0 -1
- package/lib/customerInsightsManagementClient.ts +0 -75
- package/lib/customerInsightsManagementClientContext.ts +0 -63
- package/lib/models/authorizationPoliciesMappers.ts +0 -62
- package/lib/models/connectorMappingsMappers.ts +0 -61
- package/lib/models/connectorsMappers.ts +0 -61
- package/lib/models/hubsMappers.ts +0 -61
- package/lib/models/imagesMappers.ts +0 -16
- package/lib/models/index.ts +0 -4702
- package/lib/models/interactionsMappers.ts +0 -63
- package/lib/models/kpiMappers.ts +0 -61
- package/lib/models/linksMappers.ts +0 -61
- package/lib/models/operationsMappers.ts +0 -17
- package/lib/models/parameters.ts +0 -419
- package/lib/models/predictionsMappers.ts +0 -67
- package/lib/models/profilesMappers.ts +0 -63
- package/lib/models/relationshipLinksMappers.ts +0 -61
- package/lib/models/relationshipsMappers.ts +0 -61
- package/lib/models/roleAssignmentsMappers.ts +0 -61
- package/lib/models/rolesMappers.ts +0 -61
- package/lib/models/viewsMappers.ts +0 -61
- package/lib/models/widgetTypesMappers.ts +0 -61
- package/lib/operations/authorizationPolicies.ts +0 -398
- package/lib/operations/connectorMappings.ts +0 -355
- package/lib/operations/connectors.ts +0 -328
- package/lib/operations/hubs.ts +0 -479
- package/lib/operations/images.ts +0 -166
- package/lib/operations/interactions.ts +0 -333
- package/lib/operations/kpi.ts +0 -387
- package/lib/operations/links.ts +0 -330
- package/lib/operations/operations.ts +0 -123
- package/lib/operations/predictions.ts +0 -522
- package/lib/operations/profiles.ts +0 -406
- package/lib/operations/relationshipLinks.ts +0 -327
- package/lib/operations/relationships.ts +0 -327
- package/lib/operations/roleAssignments.ts +0 -331
- package/lib/operations/roles.ts +0 -136
- package/lib/operations/views.ts +0 -346
- package/lib/operations/widgetTypes.ts +0 -198
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { AuthorizationPolicies } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { CustomerInsightsManagementClient } from "../customerInsightsManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
AuthorizationPolicyResourceFormat,
|
|
17
|
+
AuthorizationPoliciesListByHubNextOptionalParams,
|
|
18
|
+
AuthorizationPoliciesListByHubOptionalParams,
|
|
19
|
+
AuthorizationPoliciesCreateOrUpdateOptionalParams,
|
|
20
|
+
AuthorizationPoliciesCreateOrUpdateResponse,
|
|
21
|
+
AuthorizationPoliciesGetOptionalParams,
|
|
22
|
+
AuthorizationPoliciesGetResponse,
|
|
23
|
+
AuthorizationPoliciesListByHubResponse,
|
|
24
|
+
AuthorizationPoliciesRegeneratePrimaryKeyOptionalParams,
|
|
25
|
+
AuthorizationPoliciesRegeneratePrimaryKeyResponse,
|
|
26
|
+
AuthorizationPoliciesRegenerateSecondaryKeyOptionalParams,
|
|
27
|
+
AuthorizationPoliciesRegenerateSecondaryKeyResponse,
|
|
28
|
+
AuthorizationPoliciesListByHubNextResponse
|
|
29
|
+
} from "../models";
|
|
30
|
+
|
|
31
|
+
/// <reference lib="esnext.asynciterable" />
|
|
32
|
+
/** Class containing AuthorizationPolicies operations. */
|
|
33
|
+
export class AuthorizationPoliciesImpl implements AuthorizationPolicies {
|
|
34
|
+
private readonly client: CustomerInsightsManagementClient;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Initialize a new instance of the class AuthorizationPolicies class.
|
|
38
|
+
* @param client Reference to the service client
|
|
39
|
+
*/
|
|
40
|
+
constructor(client: CustomerInsightsManagementClient) {
|
|
41
|
+
this.client = client;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Gets all the authorization policies in a specified hub.
|
|
46
|
+
* @param resourceGroupName The name of the resource group.
|
|
47
|
+
* @param hubName The name of the hub.
|
|
48
|
+
* @param options The options parameters.
|
|
49
|
+
*/
|
|
50
|
+
public listByHub(
|
|
51
|
+
resourceGroupName: string,
|
|
52
|
+
hubName: string,
|
|
53
|
+
options?: AuthorizationPoliciesListByHubOptionalParams
|
|
54
|
+
): PagedAsyncIterableIterator<AuthorizationPolicyResourceFormat> {
|
|
55
|
+
const iter = this.listByHubPagingAll(resourceGroupName, hubName, options);
|
|
56
|
+
return {
|
|
57
|
+
next() {
|
|
58
|
+
return iter.next();
|
|
59
|
+
},
|
|
60
|
+
[Symbol.asyncIterator]() {
|
|
61
|
+
return this;
|
|
62
|
+
},
|
|
63
|
+
byPage: () => {
|
|
64
|
+
return this.listByHubPagingPage(resourceGroupName, hubName, options);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
private async *listByHubPagingPage(
|
|
70
|
+
resourceGroupName: string,
|
|
71
|
+
hubName: string,
|
|
72
|
+
options?: AuthorizationPoliciesListByHubOptionalParams
|
|
73
|
+
): AsyncIterableIterator<AuthorizationPolicyResourceFormat[]> {
|
|
74
|
+
let result = await this._listByHub(resourceGroupName, hubName, options);
|
|
75
|
+
yield result.value || [];
|
|
76
|
+
let continuationToken = result.nextLink;
|
|
77
|
+
while (continuationToken) {
|
|
78
|
+
result = await this._listByHubNext(
|
|
79
|
+
resourceGroupName,
|
|
80
|
+
hubName,
|
|
81
|
+
continuationToken,
|
|
82
|
+
options
|
|
83
|
+
);
|
|
84
|
+
continuationToken = result.nextLink;
|
|
85
|
+
yield result.value || [];
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
private async *listByHubPagingAll(
|
|
90
|
+
resourceGroupName: string,
|
|
91
|
+
hubName: string,
|
|
92
|
+
options?: AuthorizationPoliciesListByHubOptionalParams
|
|
93
|
+
): AsyncIterableIterator<AuthorizationPolicyResourceFormat> {
|
|
94
|
+
for await (const page of this.listByHubPagingPage(
|
|
95
|
+
resourceGroupName,
|
|
96
|
+
hubName,
|
|
97
|
+
options
|
|
98
|
+
)) {
|
|
99
|
+
yield* page;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Creates an authorization policy or updates an existing authorization policy.
|
|
105
|
+
* @param resourceGroupName The name of the resource group.
|
|
106
|
+
* @param hubName The name of the hub.
|
|
107
|
+
* @param authorizationPolicyName The name of the policy.
|
|
108
|
+
* @param parameters Parameters supplied to the CreateOrUpdate authorization policy operation.
|
|
109
|
+
* @param options The options parameters.
|
|
110
|
+
*/
|
|
111
|
+
createOrUpdate(
|
|
112
|
+
resourceGroupName: string,
|
|
113
|
+
hubName: string,
|
|
114
|
+
authorizationPolicyName: string,
|
|
115
|
+
parameters: AuthorizationPolicyResourceFormat,
|
|
116
|
+
options?: AuthorizationPoliciesCreateOrUpdateOptionalParams
|
|
117
|
+
): Promise<AuthorizationPoliciesCreateOrUpdateResponse> {
|
|
118
|
+
return this.client.sendOperationRequest(
|
|
119
|
+
{
|
|
120
|
+
resourceGroupName,
|
|
121
|
+
hubName,
|
|
122
|
+
authorizationPolicyName,
|
|
123
|
+
parameters,
|
|
124
|
+
options
|
|
125
|
+
},
|
|
126
|
+
createOrUpdateOperationSpec
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Gets an authorization policy in the hub.
|
|
132
|
+
* @param resourceGroupName The name of the resource group.
|
|
133
|
+
* @param hubName The name of the hub.
|
|
134
|
+
* @param authorizationPolicyName The name of the policy.
|
|
135
|
+
* @param options The options parameters.
|
|
136
|
+
*/
|
|
137
|
+
get(
|
|
138
|
+
resourceGroupName: string,
|
|
139
|
+
hubName: string,
|
|
140
|
+
authorizationPolicyName: string,
|
|
141
|
+
options?: AuthorizationPoliciesGetOptionalParams
|
|
142
|
+
): Promise<AuthorizationPoliciesGetResponse> {
|
|
143
|
+
return this.client.sendOperationRequest(
|
|
144
|
+
{ resourceGroupName, hubName, authorizationPolicyName, options },
|
|
145
|
+
getOperationSpec
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Gets all the authorization policies in a specified hub.
|
|
151
|
+
* @param resourceGroupName The name of the resource group.
|
|
152
|
+
* @param hubName The name of the hub.
|
|
153
|
+
* @param options The options parameters.
|
|
154
|
+
*/
|
|
155
|
+
private _listByHub(
|
|
156
|
+
resourceGroupName: string,
|
|
157
|
+
hubName: string,
|
|
158
|
+
options?: AuthorizationPoliciesListByHubOptionalParams
|
|
159
|
+
): Promise<AuthorizationPoliciesListByHubResponse> {
|
|
160
|
+
return this.client.sendOperationRequest(
|
|
161
|
+
{ resourceGroupName, hubName, options },
|
|
162
|
+
listByHubOperationSpec
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Regenerates the primary policy key of the specified authorization policy.
|
|
168
|
+
* @param resourceGroupName The name of the resource group.
|
|
169
|
+
* @param hubName The name of the hub.
|
|
170
|
+
* @param authorizationPolicyName The name of the policy.
|
|
171
|
+
* @param options The options parameters.
|
|
172
|
+
*/
|
|
173
|
+
regeneratePrimaryKey(
|
|
174
|
+
resourceGroupName: string,
|
|
175
|
+
hubName: string,
|
|
176
|
+
authorizationPolicyName: string,
|
|
177
|
+
options?: AuthorizationPoliciesRegeneratePrimaryKeyOptionalParams
|
|
178
|
+
): Promise<AuthorizationPoliciesRegeneratePrimaryKeyResponse> {
|
|
179
|
+
return this.client.sendOperationRequest(
|
|
180
|
+
{ resourceGroupName, hubName, authorizationPolicyName, options },
|
|
181
|
+
regeneratePrimaryKeyOperationSpec
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Regenerates the secondary policy key of the specified authorization policy.
|
|
187
|
+
* @param resourceGroupName The name of the resource group.
|
|
188
|
+
* @param hubName The name of the hub.
|
|
189
|
+
* @param authorizationPolicyName The name of the policy.
|
|
190
|
+
* @param options The options parameters.
|
|
191
|
+
*/
|
|
192
|
+
regenerateSecondaryKey(
|
|
193
|
+
resourceGroupName: string,
|
|
194
|
+
hubName: string,
|
|
195
|
+
authorizationPolicyName: string,
|
|
196
|
+
options?: AuthorizationPoliciesRegenerateSecondaryKeyOptionalParams
|
|
197
|
+
): Promise<AuthorizationPoliciesRegenerateSecondaryKeyResponse> {
|
|
198
|
+
return this.client.sendOperationRequest(
|
|
199
|
+
{ resourceGroupName, hubName, authorizationPolicyName, options },
|
|
200
|
+
regenerateSecondaryKeyOperationSpec
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* ListByHubNext
|
|
206
|
+
* @param resourceGroupName The name of the resource group.
|
|
207
|
+
* @param hubName The name of the hub.
|
|
208
|
+
* @param nextLink The nextLink from the previous successful call to the ListByHub method.
|
|
209
|
+
* @param options The options parameters.
|
|
210
|
+
*/
|
|
211
|
+
private _listByHubNext(
|
|
212
|
+
resourceGroupName: string,
|
|
213
|
+
hubName: string,
|
|
214
|
+
nextLink: string,
|
|
215
|
+
options?: AuthorizationPoliciesListByHubNextOptionalParams
|
|
216
|
+
): Promise<AuthorizationPoliciesListByHubNextResponse> {
|
|
217
|
+
return this.client.sendOperationRequest(
|
|
218
|
+
{ resourceGroupName, hubName, nextLink, options },
|
|
219
|
+
listByHubNextOperationSpec
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
// Operation Specifications
|
|
224
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
225
|
+
|
|
226
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
227
|
+
path:
|
|
228
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/authorizationPolicies/{authorizationPolicyName}",
|
|
229
|
+
httpMethod: "PUT",
|
|
230
|
+
responses: {
|
|
231
|
+
200: {
|
|
232
|
+
bodyMapper: Mappers.AuthorizationPolicyResourceFormat
|
|
233
|
+
},
|
|
234
|
+
201: {
|
|
235
|
+
bodyMapper: Mappers.AuthorizationPolicyResourceFormat
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
requestBody: Parameters.parameters5,
|
|
239
|
+
queryParameters: [Parameters.apiVersion],
|
|
240
|
+
urlParameters: [
|
|
241
|
+
Parameters.$host,
|
|
242
|
+
Parameters.resourceGroupName,
|
|
243
|
+
Parameters.subscriptionId,
|
|
244
|
+
Parameters.hubName1,
|
|
245
|
+
Parameters.authorizationPolicyName
|
|
246
|
+
],
|
|
247
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
248
|
+
mediaType: "json",
|
|
249
|
+
serializer
|
|
250
|
+
};
|
|
251
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
252
|
+
path:
|
|
253
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/authorizationPolicies/{authorizationPolicyName}",
|
|
254
|
+
httpMethod: "GET",
|
|
255
|
+
responses: {
|
|
256
|
+
200: {
|
|
257
|
+
bodyMapper: Mappers.AuthorizationPolicyResourceFormat
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
queryParameters: [Parameters.apiVersion],
|
|
261
|
+
urlParameters: [
|
|
262
|
+
Parameters.$host,
|
|
263
|
+
Parameters.resourceGroupName,
|
|
264
|
+
Parameters.subscriptionId,
|
|
265
|
+
Parameters.hubName1,
|
|
266
|
+
Parameters.authorizationPolicyName1
|
|
267
|
+
],
|
|
268
|
+
headerParameters: [Parameters.accept],
|
|
269
|
+
serializer
|
|
270
|
+
};
|
|
271
|
+
const listByHubOperationSpec: coreClient.OperationSpec = {
|
|
272
|
+
path:
|
|
273
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/authorizationPolicies",
|
|
274
|
+
httpMethod: "GET",
|
|
275
|
+
responses: {
|
|
276
|
+
200: {
|
|
277
|
+
bodyMapper: Mappers.AuthorizationPolicyListResult
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
queryParameters: [Parameters.apiVersion],
|
|
281
|
+
urlParameters: [
|
|
282
|
+
Parameters.$host,
|
|
283
|
+
Parameters.resourceGroupName,
|
|
284
|
+
Parameters.subscriptionId,
|
|
285
|
+
Parameters.hubName1
|
|
286
|
+
],
|
|
287
|
+
headerParameters: [Parameters.accept],
|
|
288
|
+
serializer
|
|
289
|
+
};
|
|
290
|
+
const regeneratePrimaryKeyOperationSpec: coreClient.OperationSpec = {
|
|
291
|
+
path:
|
|
292
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/authorizationPolicies/{authorizationPolicyName}/regeneratePrimaryKey",
|
|
293
|
+
httpMethod: "POST",
|
|
294
|
+
responses: {
|
|
295
|
+
200: {
|
|
296
|
+
bodyMapper: Mappers.AuthorizationPolicy
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
queryParameters: [Parameters.apiVersion],
|
|
300
|
+
urlParameters: [
|
|
301
|
+
Parameters.$host,
|
|
302
|
+
Parameters.resourceGroupName,
|
|
303
|
+
Parameters.subscriptionId,
|
|
304
|
+
Parameters.hubName1,
|
|
305
|
+
Parameters.authorizationPolicyName1
|
|
306
|
+
],
|
|
307
|
+
headerParameters: [Parameters.accept],
|
|
308
|
+
serializer
|
|
309
|
+
};
|
|
310
|
+
const regenerateSecondaryKeyOperationSpec: coreClient.OperationSpec = {
|
|
311
|
+
path:
|
|
312
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/authorizationPolicies/{authorizationPolicyName}/regenerateSecondaryKey",
|
|
313
|
+
httpMethod: "POST",
|
|
314
|
+
responses: {
|
|
315
|
+
200: {
|
|
316
|
+
bodyMapper: Mappers.AuthorizationPolicy
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
queryParameters: [Parameters.apiVersion],
|
|
320
|
+
urlParameters: [
|
|
321
|
+
Parameters.$host,
|
|
322
|
+
Parameters.resourceGroupName,
|
|
323
|
+
Parameters.subscriptionId,
|
|
324
|
+
Parameters.hubName1,
|
|
325
|
+
Parameters.authorizationPolicyName1
|
|
326
|
+
],
|
|
327
|
+
headerParameters: [Parameters.accept],
|
|
328
|
+
serializer
|
|
329
|
+
};
|
|
330
|
+
const listByHubNextOperationSpec: coreClient.OperationSpec = {
|
|
331
|
+
path: "{nextLink}",
|
|
332
|
+
httpMethod: "GET",
|
|
333
|
+
responses: {
|
|
334
|
+
200: {
|
|
335
|
+
bodyMapper: Mappers.AuthorizationPolicyListResult
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
queryParameters: [Parameters.apiVersion],
|
|
339
|
+
urlParameters: [
|
|
340
|
+
Parameters.$host,
|
|
341
|
+
Parameters.nextLink,
|
|
342
|
+
Parameters.resourceGroupName,
|
|
343
|
+
Parameters.subscriptionId,
|
|
344
|
+
Parameters.hubName1
|
|
345
|
+
],
|
|
346
|
+
headerParameters: [Parameters.accept],
|
|
347
|
+
serializer
|
|
348
|
+
};
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { ConnectorMappings } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { CustomerInsightsManagementClient } from "../customerInsightsManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
ConnectorMappingResourceFormat,
|
|
17
|
+
ConnectorMappingsListByConnectorNextOptionalParams,
|
|
18
|
+
ConnectorMappingsListByConnectorOptionalParams,
|
|
19
|
+
ConnectorMappingsCreateOrUpdateOptionalParams,
|
|
20
|
+
ConnectorMappingsCreateOrUpdateResponse,
|
|
21
|
+
ConnectorMappingsGetOptionalParams,
|
|
22
|
+
ConnectorMappingsGetResponse,
|
|
23
|
+
ConnectorMappingsDeleteOptionalParams,
|
|
24
|
+
ConnectorMappingsListByConnectorResponse,
|
|
25
|
+
ConnectorMappingsListByConnectorNextResponse
|
|
26
|
+
} from "../models";
|
|
27
|
+
|
|
28
|
+
/// <reference lib="esnext.asynciterable" />
|
|
29
|
+
/** Class containing ConnectorMappings operations. */
|
|
30
|
+
export class ConnectorMappingsImpl implements ConnectorMappings {
|
|
31
|
+
private readonly client: CustomerInsightsManagementClient;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Initialize a new instance of the class ConnectorMappings class.
|
|
35
|
+
* @param client Reference to the service client
|
|
36
|
+
*/
|
|
37
|
+
constructor(client: CustomerInsightsManagementClient) {
|
|
38
|
+
this.client = client;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Gets all the connector mappings in the specified connector.
|
|
43
|
+
* @param resourceGroupName The name of the resource group.
|
|
44
|
+
* @param hubName The name of the hub.
|
|
45
|
+
* @param connectorName The name of the connector.
|
|
46
|
+
* @param options The options parameters.
|
|
47
|
+
*/
|
|
48
|
+
public listByConnector(
|
|
49
|
+
resourceGroupName: string,
|
|
50
|
+
hubName: string,
|
|
51
|
+
connectorName: string,
|
|
52
|
+
options?: ConnectorMappingsListByConnectorOptionalParams
|
|
53
|
+
): PagedAsyncIterableIterator<ConnectorMappingResourceFormat> {
|
|
54
|
+
const iter = this.listByConnectorPagingAll(
|
|
55
|
+
resourceGroupName,
|
|
56
|
+
hubName,
|
|
57
|
+
connectorName,
|
|
58
|
+
options
|
|
59
|
+
);
|
|
60
|
+
return {
|
|
61
|
+
next() {
|
|
62
|
+
return iter.next();
|
|
63
|
+
},
|
|
64
|
+
[Symbol.asyncIterator]() {
|
|
65
|
+
return this;
|
|
66
|
+
},
|
|
67
|
+
byPage: () => {
|
|
68
|
+
return this.listByConnectorPagingPage(
|
|
69
|
+
resourceGroupName,
|
|
70
|
+
hubName,
|
|
71
|
+
connectorName,
|
|
72
|
+
options
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
private async *listByConnectorPagingPage(
|
|
79
|
+
resourceGroupName: string,
|
|
80
|
+
hubName: string,
|
|
81
|
+
connectorName: string,
|
|
82
|
+
options?: ConnectorMappingsListByConnectorOptionalParams
|
|
83
|
+
): AsyncIterableIterator<ConnectorMappingResourceFormat[]> {
|
|
84
|
+
let result = await this._listByConnector(
|
|
85
|
+
resourceGroupName,
|
|
86
|
+
hubName,
|
|
87
|
+
connectorName,
|
|
88
|
+
options
|
|
89
|
+
);
|
|
90
|
+
yield result.value || [];
|
|
91
|
+
let continuationToken = result.nextLink;
|
|
92
|
+
while (continuationToken) {
|
|
93
|
+
result = await this._listByConnectorNext(
|
|
94
|
+
resourceGroupName,
|
|
95
|
+
hubName,
|
|
96
|
+
connectorName,
|
|
97
|
+
continuationToken,
|
|
98
|
+
options
|
|
99
|
+
);
|
|
100
|
+
continuationToken = result.nextLink;
|
|
101
|
+
yield result.value || [];
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
private async *listByConnectorPagingAll(
|
|
106
|
+
resourceGroupName: string,
|
|
107
|
+
hubName: string,
|
|
108
|
+
connectorName: string,
|
|
109
|
+
options?: ConnectorMappingsListByConnectorOptionalParams
|
|
110
|
+
): AsyncIterableIterator<ConnectorMappingResourceFormat> {
|
|
111
|
+
for await (const page of this.listByConnectorPagingPage(
|
|
112
|
+
resourceGroupName,
|
|
113
|
+
hubName,
|
|
114
|
+
connectorName,
|
|
115
|
+
options
|
|
116
|
+
)) {
|
|
117
|
+
yield* page;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Creates a connector mapping or updates an existing connector mapping in the connector.
|
|
123
|
+
* @param resourceGroupName The name of the resource group.
|
|
124
|
+
* @param hubName The name of the hub.
|
|
125
|
+
* @param connectorName The name of the connector.
|
|
126
|
+
* @param mappingName The name of the connector mapping.
|
|
127
|
+
* @param parameters Parameters supplied to the CreateOrUpdate Connector Mapping operation.
|
|
128
|
+
* @param options The options parameters.
|
|
129
|
+
*/
|
|
130
|
+
createOrUpdate(
|
|
131
|
+
resourceGroupName: string,
|
|
132
|
+
hubName: string,
|
|
133
|
+
connectorName: string,
|
|
134
|
+
mappingName: string,
|
|
135
|
+
parameters: ConnectorMappingResourceFormat,
|
|
136
|
+
options?: ConnectorMappingsCreateOrUpdateOptionalParams
|
|
137
|
+
): Promise<ConnectorMappingsCreateOrUpdateResponse> {
|
|
138
|
+
return this.client.sendOperationRequest(
|
|
139
|
+
{
|
|
140
|
+
resourceGroupName,
|
|
141
|
+
hubName,
|
|
142
|
+
connectorName,
|
|
143
|
+
mappingName,
|
|
144
|
+
parameters,
|
|
145
|
+
options
|
|
146
|
+
},
|
|
147
|
+
createOrUpdateOperationSpec
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Gets a connector mapping in the connector.
|
|
153
|
+
* @param resourceGroupName The name of the resource group.
|
|
154
|
+
* @param hubName The name of the hub.
|
|
155
|
+
* @param connectorName The name of the connector.
|
|
156
|
+
* @param mappingName The name of the connector mapping.
|
|
157
|
+
* @param options The options parameters.
|
|
158
|
+
*/
|
|
159
|
+
get(
|
|
160
|
+
resourceGroupName: string,
|
|
161
|
+
hubName: string,
|
|
162
|
+
connectorName: string,
|
|
163
|
+
mappingName: string,
|
|
164
|
+
options?: ConnectorMappingsGetOptionalParams
|
|
165
|
+
): Promise<ConnectorMappingsGetResponse> {
|
|
166
|
+
return this.client.sendOperationRequest(
|
|
167
|
+
{ resourceGroupName, hubName, connectorName, mappingName, options },
|
|
168
|
+
getOperationSpec
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Deletes a connector mapping in the connector.
|
|
174
|
+
* @param resourceGroupName The name of the resource group.
|
|
175
|
+
* @param hubName The name of the hub.
|
|
176
|
+
* @param connectorName The name of the connector.
|
|
177
|
+
* @param mappingName The name of the connector mapping.
|
|
178
|
+
* @param options The options parameters.
|
|
179
|
+
*/
|
|
180
|
+
delete(
|
|
181
|
+
resourceGroupName: string,
|
|
182
|
+
hubName: string,
|
|
183
|
+
connectorName: string,
|
|
184
|
+
mappingName: string,
|
|
185
|
+
options?: ConnectorMappingsDeleteOptionalParams
|
|
186
|
+
): Promise<void> {
|
|
187
|
+
return this.client.sendOperationRequest(
|
|
188
|
+
{ resourceGroupName, hubName, connectorName, mappingName, options },
|
|
189
|
+
deleteOperationSpec
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Gets all the connector mappings in the specified connector.
|
|
195
|
+
* @param resourceGroupName The name of the resource group.
|
|
196
|
+
* @param hubName The name of the hub.
|
|
197
|
+
* @param connectorName The name of the connector.
|
|
198
|
+
* @param options The options parameters.
|
|
199
|
+
*/
|
|
200
|
+
private _listByConnector(
|
|
201
|
+
resourceGroupName: string,
|
|
202
|
+
hubName: string,
|
|
203
|
+
connectorName: string,
|
|
204
|
+
options?: ConnectorMappingsListByConnectorOptionalParams
|
|
205
|
+
): Promise<ConnectorMappingsListByConnectorResponse> {
|
|
206
|
+
return this.client.sendOperationRequest(
|
|
207
|
+
{ resourceGroupName, hubName, connectorName, options },
|
|
208
|
+
listByConnectorOperationSpec
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* ListByConnectorNext
|
|
214
|
+
* @param resourceGroupName The name of the resource group.
|
|
215
|
+
* @param hubName The name of the hub.
|
|
216
|
+
* @param connectorName The name of the connector.
|
|
217
|
+
* @param nextLink The nextLink from the previous successful call to the ListByConnector method.
|
|
218
|
+
* @param options The options parameters.
|
|
219
|
+
*/
|
|
220
|
+
private _listByConnectorNext(
|
|
221
|
+
resourceGroupName: string,
|
|
222
|
+
hubName: string,
|
|
223
|
+
connectorName: string,
|
|
224
|
+
nextLink: string,
|
|
225
|
+
options?: ConnectorMappingsListByConnectorNextOptionalParams
|
|
226
|
+
): Promise<ConnectorMappingsListByConnectorNextResponse> {
|
|
227
|
+
return this.client.sendOperationRequest(
|
|
228
|
+
{ resourceGroupName, hubName, connectorName, nextLink, options },
|
|
229
|
+
listByConnectorNextOperationSpec
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
// Operation Specifications
|
|
234
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
235
|
+
|
|
236
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
237
|
+
path:
|
|
238
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/connectors/{connectorName}/mappings/{mappingName}",
|
|
239
|
+
httpMethod: "PUT",
|
|
240
|
+
responses: {
|
|
241
|
+
200: {
|
|
242
|
+
bodyMapper: Mappers.ConnectorMappingResourceFormat
|
|
243
|
+
},
|
|
244
|
+
201: {
|
|
245
|
+
bodyMapper: Mappers.ConnectorMappingResourceFormat
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
requestBody: Parameters.parameters7,
|
|
249
|
+
queryParameters: [Parameters.apiVersion],
|
|
250
|
+
urlParameters: [
|
|
251
|
+
Parameters.$host,
|
|
252
|
+
Parameters.resourceGroupName,
|
|
253
|
+
Parameters.subscriptionId,
|
|
254
|
+
Parameters.hubName1,
|
|
255
|
+
Parameters.connectorName1,
|
|
256
|
+
Parameters.mappingName
|
|
257
|
+
],
|
|
258
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
259
|
+
mediaType: "json",
|
|
260
|
+
serializer
|
|
261
|
+
};
|
|
262
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
263
|
+
path:
|
|
264
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/connectors/{connectorName}/mappings/{mappingName}",
|
|
265
|
+
httpMethod: "GET",
|
|
266
|
+
responses: {
|
|
267
|
+
200: {
|
|
268
|
+
bodyMapper: Mappers.ConnectorMappingResourceFormat
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
queryParameters: [Parameters.apiVersion],
|
|
272
|
+
urlParameters: [
|
|
273
|
+
Parameters.$host,
|
|
274
|
+
Parameters.resourceGroupName,
|
|
275
|
+
Parameters.subscriptionId,
|
|
276
|
+
Parameters.hubName1,
|
|
277
|
+
Parameters.connectorName1,
|
|
278
|
+
Parameters.mappingName1
|
|
279
|
+
],
|
|
280
|
+
headerParameters: [Parameters.accept],
|
|
281
|
+
serializer
|
|
282
|
+
};
|
|
283
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
284
|
+
path:
|
|
285
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/connectors/{connectorName}/mappings/{mappingName}",
|
|
286
|
+
httpMethod: "DELETE",
|
|
287
|
+
responses: { 200: {}, 204: {} },
|
|
288
|
+
queryParameters: [Parameters.apiVersion],
|
|
289
|
+
urlParameters: [
|
|
290
|
+
Parameters.$host,
|
|
291
|
+
Parameters.resourceGroupName,
|
|
292
|
+
Parameters.subscriptionId,
|
|
293
|
+
Parameters.hubName1,
|
|
294
|
+
Parameters.connectorName1,
|
|
295
|
+
Parameters.mappingName1
|
|
296
|
+
],
|
|
297
|
+
serializer
|
|
298
|
+
};
|
|
299
|
+
const listByConnectorOperationSpec: coreClient.OperationSpec = {
|
|
300
|
+
path:
|
|
301
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/connectors/{connectorName}/mappings",
|
|
302
|
+
httpMethod: "GET",
|
|
303
|
+
responses: {
|
|
304
|
+
200: {
|
|
305
|
+
bodyMapper: Mappers.ConnectorMappingListResult
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
queryParameters: [Parameters.apiVersion],
|
|
309
|
+
urlParameters: [
|
|
310
|
+
Parameters.$host,
|
|
311
|
+
Parameters.resourceGroupName,
|
|
312
|
+
Parameters.subscriptionId,
|
|
313
|
+
Parameters.hubName1,
|
|
314
|
+
Parameters.connectorName1
|
|
315
|
+
],
|
|
316
|
+
headerParameters: [Parameters.accept],
|
|
317
|
+
serializer
|
|
318
|
+
};
|
|
319
|
+
const listByConnectorNextOperationSpec: coreClient.OperationSpec = {
|
|
320
|
+
path: "{nextLink}",
|
|
321
|
+
httpMethod: "GET",
|
|
322
|
+
responses: {
|
|
323
|
+
200: {
|
|
324
|
+
bodyMapper: Mappers.ConnectorMappingListResult
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
queryParameters: [Parameters.apiVersion],
|
|
328
|
+
urlParameters: [
|
|
329
|
+
Parameters.$host,
|
|
330
|
+
Parameters.nextLink,
|
|
331
|
+
Parameters.resourceGroupName,
|
|
332
|
+
Parameters.subscriptionId,
|
|
333
|
+
Parameters.hubName1,
|
|
334
|
+
Parameters.connectorName1
|
|
335
|
+
],
|
|
336
|
+
headerParameters: [Parameters.accept],
|
|
337
|
+
serializer
|
|
338
|
+
};
|