@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,310 @@
|
|
|
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
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
import { LroEngine } from "@azure/core-lro";
|
|
13
|
+
import { LroImpl } from "../lroImpl";
|
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
|
15
|
+
/** Class containing Relationships operations. */
|
|
16
|
+
export class RelationshipsImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class Relationships class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Gets all relationships in the hub.
|
|
26
|
+
* @param resourceGroupName The name of the resource group.
|
|
27
|
+
* @param hubName The name of the hub.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
listByHub(resourceGroupName, hubName, options) {
|
|
31
|
+
const iter = this.listByHubPagingAll(resourceGroupName, hubName, options);
|
|
32
|
+
return {
|
|
33
|
+
next() {
|
|
34
|
+
return iter.next();
|
|
35
|
+
},
|
|
36
|
+
[Symbol.asyncIterator]() {
|
|
37
|
+
return this;
|
|
38
|
+
},
|
|
39
|
+
byPage: () => {
|
|
40
|
+
return this.listByHubPagingPage(resourceGroupName, hubName, options);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
listByHubPagingPage(resourceGroupName, hubName, options) {
|
|
45
|
+
return __asyncGenerator(this, arguments, function* listByHubPagingPage_1() {
|
|
46
|
+
let result = yield __await(this._listByHub(resourceGroupName, hubName, options));
|
|
47
|
+
yield yield __await(result.value || []);
|
|
48
|
+
let continuationToken = result.nextLink;
|
|
49
|
+
while (continuationToken) {
|
|
50
|
+
result = yield __await(this._listByHubNext(resourceGroupName, hubName, continuationToken, options));
|
|
51
|
+
continuationToken = result.nextLink;
|
|
52
|
+
yield yield __await(result.value || []);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
listByHubPagingAll(resourceGroupName, hubName, options) {
|
|
57
|
+
return __asyncGenerator(this, arguments, function* listByHubPagingAll_1() {
|
|
58
|
+
var e_1, _a;
|
|
59
|
+
try {
|
|
60
|
+
for (var _b = __asyncValues(this.listByHubPagingPage(resourceGroupName, hubName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
61
|
+
const page = _c.value;
|
|
62
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
66
|
+
finally {
|
|
67
|
+
try {
|
|
68
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
69
|
+
}
|
|
70
|
+
finally { if (e_1) throw e_1.error; }
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Creates a relationship or updates an existing relationship within a hub.
|
|
76
|
+
* @param resourceGroupName The name of the resource group.
|
|
77
|
+
* @param hubName The name of the hub.
|
|
78
|
+
* @param relationshipName The name of the Relationship.
|
|
79
|
+
* @param parameters Parameters supplied to the CreateOrUpdate Relationship operation.
|
|
80
|
+
* @param options The options parameters.
|
|
81
|
+
*/
|
|
82
|
+
beginCreateOrUpdate(resourceGroupName, hubName, relationshipName, parameters, options) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
return this.client.sendOperationRequest(args, spec);
|
|
86
|
+
});
|
|
87
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
88
|
+
var _a;
|
|
89
|
+
let currentRawResponse = undefined;
|
|
90
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
91
|
+
const callback = (rawResponse, flatResponse) => {
|
|
92
|
+
currentRawResponse = rawResponse;
|
|
93
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
94
|
+
};
|
|
95
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
96
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
97
|
+
return {
|
|
98
|
+
flatResponse,
|
|
99
|
+
rawResponse: {
|
|
100
|
+
statusCode: currentRawResponse.status,
|
|
101
|
+
body: currentRawResponse.parsedBody,
|
|
102
|
+
headers: currentRawResponse.headers.toJSON()
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
});
|
|
106
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, hubName, relationshipName, parameters, options }, createOrUpdateOperationSpec);
|
|
107
|
+
return new LroEngine(lro, {
|
|
108
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
109
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Creates a relationship or updates an existing relationship within a hub.
|
|
115
|
+
* @param resourceGroupName The name of the resource group.
|
|
116
|
+
* @param hubName The name of the hub.
|
|
117
|
+
* @param relationshipName The name of the Relationship.
|
|
118
|
+
* @param parameters Parameters supplied to the CreateOrUpdate Relationship operation.
|
|
119
|
+
* @param options The options parameters.
|
|
120
|
+
*/
|
|
121
|
+
beginCreateOrUpdateAndWait(resourceGroupName, hubName, relationshipName, parameters, options) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, hubName, relationshipName, parameters, options);
|
|
124
|
+
return poller.pollUntilDone();
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Gets information about the specified relationship.
|
|
129
|
+
* @param resourceGroupName The name of the resource group.
|
|
130
|
+
* @param hubName The name of the hub.
|
|
131
|
+
* @param relationshipName The name of the relationship.
|
|
132
|
+
* @param options The options parameters.
|
|
133
|
+
*/
|
|
134
|
+
get(resourceGroupName, hubName, relationshipName, options) {
|
|
135
|
+
return this.client.sendOperationRequest({ resourceGroupName, hubName, relationshipName, options }, getOperationSpec);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Deletes a relationship within a hub.
|
|
139
|
+
* @param resourceGroupName The name of the resource group.
|
|
140
|
+
* @param hubName The name of the hub.
|
|
141
|
+
* @param relationshipName The name of the relationship.
|
|
142
|
+
* @param options The options parameters.
|
|
143
|
+
*/
|
|
144
|
+
beginDelete(resourceGroupName, hubName, relationshipName, options) {
|
|
145
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
146
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
147
|
+
return this.client.sendOperationRequest(args, spec);
|
|
148
|
+
});
|
|
149
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
150
|
+
var _a;
|
|
151
|
+
let currentRawResponse = undefined;
|
|
152
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
153
|
+
const callback = (rawResponse, flatResponse) => {
|
|
154
|
+
currentRawResponse = rawResponse;
|
|
155
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
156
|
+
};
|
|
157
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
158
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
159
|
+
return {
|
|
160
|
+
flatResponse,
|
|
161
|
+
rawResponse: {
|
|
162
|
+
statusCode: currentRawResponse.status,
|
|
163
|
+
body: currentRawResponse.parsedBody,
|
|
164
|
+
headers: currentRawResponse.headers.toJSON()
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
});
|
|
168
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, hubName, relationshipName, options }, deleteOperationSpec);
|
|
169
|
+
return new LroEngine(lro, {
|
|
170
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
171
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Deletes a relationship within a hub.
|
|
177
|
+
* @param resourceGroupName The name of the resource group.
|
|
178
|
+
* @param hubName The name of the hub.
|
|
179
|
+
* @param relationshipName The name of the relationship.
|
|
180
|
+
* @param options The options parameters.
|
|
181
|
+
*/
|
|
182
|
+
beginDeleteAndWait(resourceGroupName, hubName, relationshipName, options) {
|
|
183
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
184
|
+
const poller = yield this.beginDelete(resourceGroupName, hubName, relationshipName, options);
|
|
185
|
+
return poller.pollUntilDone();
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Gets all relationships in the hub.
|
|
190
|
+
* @param resourceGroupName The name of the resource group.
|
|
191
|
+
* @param hubName The name of the hub.
|
|
192
|
+
* @param options The options parameters.
|
|
193
|
+
*/
|
|
194
|
+
_listByHub(resourceGroupName, hubName, options) {
|
|
195
|
+
return this.client.sendOperationRequest({ resourceGroupName, hubName, options }, listByHubOperationSpec);
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* ListByHubNext
|
|
199
|
+
* @param resourceGroupName The name of the resource group.
|
|
200
|
+
* @param hubName The name of the hub.
|
|
201
|
+
* @param nextLink The nextLink from the previous successful call to the ListByHub method.
|
|
202
|
+
* @param options The options parameters.
|
|
203
|
+
*/
|
|
204
|
+
_listByHubNext(resourceGroupName, hubName, nextLink, options) {
|
|
205
|
+
return this.client.sendOperationRequest({ resourceGroupName, hubName, nextLink, options }, listByHubNextOperationSpec);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
// Operation Specifications
|
|
209
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
210
|
+
const createOrUpdateOperationSpec = {
|
|
211
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationships/{relationshipName}",
|
|
212
|
+
httpMethod: "PUT",
|
|
213
|
+
responses: {
|
|
214
|
+
200: {
|
|
215
|
+
bodyMapper: Mappers.RelationshipResourceFormat
|
|
216
|
+
},
|
|
217
|
+
201: {
|
|
218
|
+
bodyMapper: Mappers.RelationshipResourceFormat
|
|
219
|
+
},
|
|
220
|
+
202: {
|
|
221
|
+
bodyMapper: Mappers.RelationshipResourceFormat
|
|
222
|
+
},
|
|
223
|
+
204: {
|
|
224
|
+
bodyMapper: Mappers.RelationshipResourceFormat
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
requestBody: Parameters.parameters3,
|
|
228
|
+
queryParameters: [Parameters.apiVersion],
|
|
229
|
+
urlParameters: [
|
|
230
|
+
Parameters.$host,
|
|
231
|
+
Parameters.resourceGroupName,
|
|
232
|
+
Parameters.subscriptionId,
|
|
233
|
+
Parameters.hubName1,
|
|
234
|
+
Parameters.relationshipName
|
|
235
|
+
],
|
|
236
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
237
|
+
mediaType: "json",
|
|
238
|
+
serializer
|
|
239
|
+
};
|
|
240
|
+
const getOperationSpec = {
|
|
241
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationships/{relationshipName}",
|
|
242
|
+
httpMethod: "GET",
|
|
243
|
+
responses: {
|
|
244
|
+
200: {
|
|
245
|
+
bodyMapper: Mappers.RelationshipResourceFormat
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
queryParameters: [Parameters.apiVersion],
|
|
249
|
+
urlParameters: [
|
|
250
|
+
Parameters.$host,
|
|
251
|
+
Parameters.resourceGroupName,
|
|
252
|
+
Parameters.subscriptionId,
|
|
253
|
+
Parameters.hubName1,
|
|
254
|
+
Parameters.relationshipName1
|
|
255
|
+
],
|
|
256
|
+
headerParameters: [Parameters.accept],
|
|
257
|
+
serializer
|
|
258
|
+
};
|
|
259
|
+
const deleteOperationSpec = {
|
|
260
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationships/{relationshipName}",
|
|
261
|
+
httpMethod: "DELETE",
|
|
262
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
263
|
+
queryParameters: [Parameters.apiVersion],
|
|
264
|
+
urlParameters: [
|
|
265
|
+
Parameters.$host,
|
|
266
|
+
Parameters.resourceGroupName,
|
|
267
|
+
Parameters.subscriptionId,
|
|
268
|
+
Parameters.hubName1,
|
|
269
|
+
Parameters.relationshipName1
|
|
270
|
+
],
|
|
271
|
+
serializer
|
|
272
|
+
};
|
|
273
|
+
const listByHubOperationSpec = {
|
|
274
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationships",
|
|
275
|
+
httpMethod: "GET",
|
|
276
|
+
responses: {
|
|
277
|
+
200: {
|
|
278
|
+
bodyMapper: Mappers.RelationshipListResult
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
queryParameters: [Parameters.apiVersion],
|
|
282
|
+
urlParameters: [
|
|
283
|
+
Parameters.$host,
|
|
284
|
+
Parameters.resourceGroupName,
|
|
285
|
+
Parameters.subscriptionId,
|
|
286
|
+
Parameters.hubName1
|
|
287
|
+
],
|
|
288
|
+
headerParameters: [Parameters.accept],
|
|
289
|
+
serializer
|
|
290
|
+
};
|
|
291
|
+
const listByHubNextOperationSpec = {
|
|
292
|
+
path: "{nextLink}",
|
|
293
|
+
httpMethod: "GET",
|
|
294
|
+
responses: {
|
|
295
|
+
200: {
|
|
296
|
+
bodyMapper: Mappers.RelationshipListResult
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
queryParameters: [Parameters.apiVersion],
|
|
300
|
+
urlParameters: [
|
|
301
|
+
Parameters.$host,
|
|
302
|
+
Parameters.nextLink,
|
|
303
|
+
Parameters.resourceGroupName,
|
|
304
|
+
Parameters.subscriptionId,
|
|
305
|
+
Parameters.hubName1
|
|
306
|
+
],
|
|
307
|
+
headerParameters: [Parameters.accept],
|
|
308
|
+
serializer
|
|
309
|
+
};
|
|
310
|
+
//# sourceMappingURL=relationships.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relationships.js","sourceRoot":"","sources":["../../../src/operations/relationships.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAcrC,4CAA4C;AAC5C,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAAwC;QAClD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IAC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B,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { RoleAssignments } from "../operationsInterfaces";
|
|
3
|
+
import { CustomerInsightsManagementClient } from "../customerInsightsManagementClient";
|
|
4
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
5
|
+
import { RoleAssignmentResourceFormat, RoleAssignmentsListByHubOptionalParams, RoleAssignmentsCreateOrUpdateOptionalParams, RoleAssignmentsCreateOrUpdateResponse, RoleAssignmentsGetOptionalParams, RoleAssignmentsGetResponse, RoleAssignmentsDeleteOptionalParams } from "../models";
|
|
6
|
+
/** Class containing RoleAssignments operations. */
|
|
7
|
+
export declare class RoleAssignmentsImpl implements RoleAssignments {
|
|
8
|
+
private readonly client;
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of the class RoleAssignments class.
|
|
11
|
+
* @param client Reference to the service client
|
|
12
|
+
*/
|
|
13
|
+
constructor(client: CustomerInsightsManagementClient);
|
|
14
|
+
/**
|
|
15
|
+
* Gets all the role assignments for the specified hub.
|
|
16
|
+
* @param resourceGroupName The name of the resource group.
|
|
17
|
+
* @param hubName The name of the hub.
|
|
18
|
+
* @param options The options parameters.
|
|
19
|
+
*/
|
|
20
|
+
listByHub(resourceGroupName: string, hubName: string, options?: RoleAssignmentsListByHubOptionalParams): PagedAsyncIterableIterator<RoleAssignmentResourceFormat>;
|
|
21
|
+
private listByHubPagingPage;
|
|
22
|
+
private listByHubPagingAll;
|
|
23
|
+
/**
|
|
24
|
+
* Gets all the role assignments for the specified hub.
|
|
25
|
+
* @param resourceGroupName The name of the resource group.
|
|
26
|
+
* @param hubName The name of the hub.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
private _listByHub;
|
|
30
|
+
/**
|
|
31
|
+
* Creates or updates a role assignment in the hub.
|
|
32
|
+
* @param resourceGroupName The name of the resource group.
|
|
33
|
+
* @param hubName The name of the hub.
|
|
34
|
+
* @param assignmentName The assignment name
|
|
35
|
+
* @param parameters Parameters supplied to the CreateOrUpdate RoleAssignment operation.
|
|
36
|
+
* @param options The options parameters.
|
|
37
|
+
*/
|
|
38
|
+
beginCreateOrUpdate(resourceGroupName: string, hubName: string, assignmentName: string, parameters: RoleAssignmentResourceFormat, options?: RoleAssignmentsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<RoleAssignmentsCreateOrUpdateResponse>, RoleAssignmentsCreateOrUpdateResponse>>;
|
|
39
|
+
/**
|
|
40
|
+
* Creates or updates a role assignment in the hub.
|
|
41
|
+
* @param resourceGroupName The name of the resource group.
|
|
42
|
+
* @param hubName The name of the hub.
|
|
43
|
+
* @param assignmentName The assignment name
|
|
44
|
+
* @param parameters Parameters supplied to the CreateOrUpdate RoleAssignment operation.
|
|
45
|
+
* @param options The options parameters.
|
|
46
|
+
*/
|
|
47
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, hubName: string, assignmentName: string, parameters: RoleAssignmentResourceFormat, options?: RoleAssignmentsCreateOrUpdateOptionalParams): Promise<RoleAssignmentsCreateOrUpdateResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Gets the role assignment in the hub.
|
|
50
|
+
* @param resourceGroupName The name of the resource group.
|
|
51
|
+
* @param hubName The name of the hub.
|
|
52
|
+
* @param assignmentName The name of the role assignment.
|
|
53
|
+
* @param options The options parameters.
|
|
54
|
+
*/
|
|
55
|
+
get(resourceGroupName: string, hubName: string, assignmentName: string, options?: RoleAssignmentsGetOptionalParams): Promise<RoleAssignmentsGetResponse>;
|
|
56
|
+
/**
|
|
57
|
+
* Deletes the role assignment in the hub.
|
|
58
|
+
* @param resourceGroupName The name of the resource group.
|
|
59
|
+
* @param hubName The name of the hub.
|
|
60
|
+
* @param assignmentName The name of the role assignment.
|
|
61
|
+
* @param options The options parameters.
|
|
62
|
+
*/
|
|
63
|
+
delete(resourceGroupName: string, hubName: string, assignmentName: string, options?: RoleAssignmentsDeleteOptionalParams): Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* ListByHubNext
|
|
66
|
+
* @param resourceGroupName The name of the resource group.
|
|
67
|
+
* @param hubName The name of the hub.
|
|
68
|
+
* @param nextLink The nextLink from the previous successful call to the ListByHub method.
|
|
69
|
+
* @param options The options parameters.
|
|
70
|
+
*/
|
|
71
|
+
private _listByHubNext;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=roleAssignments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roleAssignments.d.ts","sourceRoot":"","sources":["../../../src/operations/roleAssignments.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAI1D,OAAO,EAAE,gCAAgC,EAAE,MAAM,qCAAqC,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,4BAA4B,EAE5B,sCAAsC,EAEtC,2CAA2C,EAC3C,qCAAqC,EACrC,gCAAgC,EAChC,0BAA0B,EAC1B,mCAAmC,EAEpC,MAAM,WAAW,CAAC;AAGnB,mDAAmD;AACnD,qBAAa,mBAAoB,YAAW,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmC;IAE1D;;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R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
import { LroEngine } from "@azure/core-lro";
|
|
13
|
+
import { LroImpl } from "../lroImpl";
|
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
|
15
|
+
/** Class containing RoleAssignments operations. */
|
|
16
|
+
export class RoleAssignmentsImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class RoleAssignments class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Gets all the role assignments for the specified hub.
|
|
26
|
+
* @param resourceGroupName The name of the resource group.
|
|
27
|
+
* @param hubName The name of the hub.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
listByHub(resourceGroupName, hubName, options) {
|
|
31
|
+
const iter = this.listByHubPagingAll(resourceGroupName, hubName, options);
|
|
32
|
+
return {
|
|
33
|
+
next() {
|
|
34
|
+
return iter.next();
|
|
35
|
+
},
|
|
36
|
+
[Symbol.asyncIterator]() {
|
|
37
|
+
return this;
|
|
38
|
+
},
|
|
39
|
+
byPage: () => {
|
|
40
|
+
return this.listByHubPagingPage(resourceGroupName, hubName, options);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
listByHubPagingPage(resourceGroupName, hubName, options) {
|
|
45
|
+
return __asyncGenerator(this, arguments, function* listByHubPagingPage_1() {
|
|
46
|
+
let result = yield __await(this._listByHub(resourceGroupName, hubName, options));
|
|
47
|
+
yield yield __await(result.value || []);
|
|
48
|
+
let continuationToken = result.nextLink;
|
|
49
|
+
while (continuationToken) {
|
|
50
|
+
result = yield __await(this._listByHubNext(resourceGroupName, hubName, continuationToken, options));
|
|
51
|
+
continuationToken = result.nextLink;
|
|
52
|
+
yield yield __await(result.value || []);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
listByHubPagingAll(resourceGroupName, hubName, options) {
|
|
57
|
+
return __asyncGenerator(this, arguments, function* listByHubPagingAll_1() {
|
|
58
|
+
var e_1, _a;
|
|
59
|
+
try {
|
|
60
|
+
for (var _b = __asyncValues(this.listByHubPagingPage(resourceGroupName, hubName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
61
|
+
const page = _c.value;
|
|
62
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
66
|
+
finally {
|
|
67
|
+
try {
|
|
68
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
69
|
+
}
|
|
70
|
+
finally { if (e_1) throw e_1.error; }
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Gets all the role assignments for the specified hub.
|
|
76
|
+
* @param resourceGroupName The name of the resource group.
|
|
77
|
+
* @param hubName The name of the hub.
|
|
78
|
+
* @param options The options parameters.
|
|
79
|
+
*/
|
|
80
|
+
_listByHub(resourceGroupName, hubName, options) {
|
|
81
|
+
return this.client.sendOperationRequest({ resourceGroupName, hubName, options }, listByHubOperationSpec);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Creates or updates a role assignment in the hub.
|
|
85
|
+
* @param resourceGroupName The name of the resource group.
|
|
86
|
+
* @param hubName The name of the hub.
|
|
87
|
+
* @param assignmentName The assignment name
|
|
88
|
+
* @param parameters Parameters supplied to the CreateOrUpdate RoleAssignment operation.
|
|
89
|
+
* @param options The options parameters.
|
|
90
|
+
*/
|
|
91
|
+
beginCreateOrUpdate(resourceGroupName, hubName, assignmentName, parameters, options) {
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
return this.client.sendOperationRequest(args, spec);
|
|
95
|
+
});
|
|
96
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
var _a;
|
|
98
|
+
let currentRawResponse = undefined;
|
|
99
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
100
|
+
const callback = (rawResponse, flatResponse) => {
|
|
101
|
+
currentRawResponse = rawResponse;
|
|
102
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
103
|
+
};
|
|
104
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
105
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
106
|
+
return {
|
|
107
|
+
flatResponse,
|
|
108
|
+
rawResponse: {
|
|
109
|
+
statusCode: currentRawResponse.status,
|
|
110
|
+
body: currentRawResponse.parsedBody,
|
|
111
|
+
headers: currentRawResponse.headers.toJSON()
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
});
|
|
115
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, hubName, assignmentName, parameters, options }, createOrUpdateOperationSpec);
|
|
116
|
+
return new LroEngine(lro, {
|
|
117
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
118
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Creates or updates a role assignment in the hub.
|
|
124
|
+
* @param resourceGroupName The name of the resource group.
|
|
125
|
+
* @param hubName The name of the hub.
|
|
126
|
+
* @param assignmentName The assignment name
|
|
127
|
+
* @param parameters Parameters supplied to the CreateOrUpdate RoleAssignment operation.
|
|
128
|
+
* @param options The options parameters.
|
|
129
|
+
*/
|
|
130
|
+
beginCreateOrUpdateAndWait(resourceGroupName, hubName, assignmentName, parameters, options) {
|
|
131
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
132
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, hubName, assignmentName, parameters, options);
|
|
133
|
+
return poller.pollUntilDone();
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Gets the role assignment in the hub.
|
|
138
|
+
* @param resourceGroupName The name of the resource group.
|
|
139
|
+
* @param hubName The name of the hub.
|
|
140
|
+
* @param assignmentName The name of the role assignment.
|
|
141
|
+
* @param options The options parameters.
|
|
142
|
+
*/
|
|
143
|
+
get(resourceGroupName, hubName, assignmentName, options) {
|
|
144
|
+
return this.client.sendOperationRequest({ resourceGroupName, hubName, assignmentName, options }, getOperationSpec);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Deletes the role assignment in the hub.
|
|
148
|
+
* @param resourceGroupName The name of the resource group.
|
|
149
|
+
* @param hubName The name of the hub.
|
|
150
|
+
* @param assignmentName The name of the role assignment.
|
|
151
|
+
* @param options The options parameters.
|
|
152
|
+
*/
|
|
153
|
+
delete(resourceGroupName, hubName, assignmentName, options) {
|
|
154
|
+
return this.client.sendOperationRequest({ resourceGroupName, hubName, assignmentName, options }, deleteOperationSpec);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* ListByHubNext
|
|
158
|
+
* @param resourceGroupName The name of the resource group.
|
|
159
|
+
* @param hubName The name of the hub.
|
|
160
|
+
* @param nextLink The nextLink from the previous successful call to the ListByHub method.
|
|
161
|
+
* @param options The options parameters.
|
|
162
|
+
*/
|
|
163
|
+
_listByHubNext(resourceGroupName, hubName, nextLink, options) {
|
|
164
|
+
return this.client.sendOperationRequest({ resourceGroupName, hubName, nextLink, options }, listByHubNextOperationSpec);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
// Operation Specifications
|
|
168
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
169
|
+
const listByHubOperationSpec = {
|
|
170
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roleAssignments",
|
|
171
|
+
httpMethod: "GET",
|
|
172
|
+
responses: {
|
|
173
|
+
200: {
|
|
174
|
+
bodyMapper: Mappers.RoleAssignmentListResult
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
queryParameters: [Parameters.apiVersion],
|
|
178
|
+
urlParameters: [
|
|
179
|
+
Parameters.$host,
|
|
180
|
+
Parameters.resourceGroupName,
|
|
181
|
+
Parameters.subscriptionId,
|
|
182
|
+
Parameters.hubName1
|
|
183
|
+
],
|
|
184
|
+
headerParameters: [Parameters.accept],
|
|
185
|
+
serializer
|
|
186
|
+
};
|
|
187
|
+
const createOrUpdateOperationSpec = {
|
|
188
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roleAssignments/{assignmentName}",
|
|
189
|
+
httpMethod: "PUT",
|
|
190
|
+
responses: {
|
|
191
|
+
200: {
|
|
192
|
+
bodyMapper: Mappers.RoleAssignmentResourceFormat
|
|
193
|
+
},
|
|
194
|
+
201: {
|
|
195
|
+
bodyMapper: Mappers.RoleAssignmentResourceFormat
|
|
196
|
+
},
|
|
197
|
+
202: {
|
|
198
|
+
bodyMapper: Mappers.RoleAssignmentResourceFormat
|
|
199
|
+
},
|
|
200
|
+
204: {
|
|
201
|
+
bodyMapper: Mappers.RoleAssignmentResourceFormat
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
requestBody: Parameters.parameters11,
|
|
205
|
+
queryParameters: [Parameters.apiVersion],
|
|
206
|
+
urlParameters: [
|
|
207
|
+
Parameters.$host,
|
|
208
|
+
Parameters.resourceGroupName,
|
|
209
|
+
Parameters.subscriptionId,
|
|
210
|
+
Parameters.hubName1,
|
|
211
|
+
Parameters.assignmentName
|
|
212
|
+
],
|
|
213
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
214
|
+
mediaType: "json",
|
|
215
|
+
serializer
|
|
216
|
+
};
|
|
217
|
+
const getOperationSpec = {
|
|
218
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roleAssignments/{assignmentName}",
|
|
219
|
+
httpMethod: "GET",
|
|
220
|
+
responses: {
|
|
221
|
+
200: {
|
|
222
|
+
bodyMapper: Mappers.RoleAssignmentResourceFormat
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
queryParameters: [Parameters.apiVersion],
|
|
226
|
+
urlParameters: [
|
|
227
|
+
Parameters.$host,
|
|
228
|
+
Parameters.resourceGroupName,
|
|
229
|
+
Parameters.subscriptionId,
|
|
230
|
+
Parameters.hubName1,
|
|
231
|
+
Parameters.assignmentName1
|
|
232
|
+
],
|
|
233
|
+
headerParameters: [Parameters.accept],
|
|
234
|
+
serializer
|
|
235
|
+
};
|
|
236
|
+
const deleteOperationSpec = {
|
|
237
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roleAssignments/{assignmentName}",
|
|
238
|
+
httpMethod: "DELETE",
|
|
239
|
+
responses: { 200: {}, 202: {}, 204: {} },
|
|
240
|
+
queryParameters: [Parameters.apiVersion],
|
|
241
|
+
urlParameters: [
|
|
242
|
+
Parameters.$host,
|
|
243
|
+
Parameters.resourceGroupName,
|
|
244
|
+
Parameters.subscriptionId,
|
|
245
|
+
Parameters.hubName1,
|
|
246
|
+
Parameters.assignmentName1
|
|
247
|
+
],
|
|
248
|
+
serializer
|
|
249
|
+
};
|
|
250
|
+
const listByHubNextOperationSpec = {
|
|
251
|
+
path: "{nextLink}",
|
|
252
|
+
httpMethod: "GET",
|
|
253
|
+
responses: {
|
|
254
|
+
200: {
|
|
255
|
+
bodyMapper: Mappers.RoleAssignmentListResult
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
queryParameters: [Parameters.apiVersion],
|
|
259
|
+
urlParameters: [
|
|
260
|
+
Parameters.$host,
|
|
261
|
+
Parameters.nextLink,
|
|
262
|
+
Parameters.resourceGroupName,
|
|
263
|
+
Parameters.subscriptionId,
|
|
264
|
+
Parameters.hubName1
|
|
265
|
+
],
|
|
266
|
+
headerParameters: [Parameters.accept],
|
|
267
|
+
serializer
|
|
268
|
+
};
|
|
269
|
+
//# sourceMappingURL=roleAssignments.js.map
|