@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,377 @@
|
|
|
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 { RoleAssignments } 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 { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
RoleAssignmentResourceFormat,
|
|
19
|
+
RoleAssignmentsListByHubNextOptionalParams,
|
|
20
|
+
RoleAssignmentsListByHubOptionalParams,
|
|
21
|
+
RoleAssignmentsListByHubResponse,
|
|
22
|
+
RoleAssignmentsCreateOrUpdateOptionalParams,
|
|
23
|
+
RoleAssignmentsCreateOrUpdateResponse,
|
|
24
|
+
RoleAssignmentsGetOptionalParams,
|
|
25
|
+
RoleAssignmentsGetResponse,
|
|
26
|
+
RoleAssignmentsDeleteOptionalParams,
|
|
27
|
+
RoleAssignmentsListByHubNextResponse
|
|
28
|
+
} from "../models";
|
|
29
|
+
|
|
30
|
+
/// <reference lib="esnext.asynciterable" />
|
|
31
|
+
/** Class containing RoleAssignments operations. */
|
|
32
|
+
export class RoleAssignmentsImpl implements RoleAssignments {
|
|
33
|
+
private readonly client: CustomerInsightsManagementClient;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Initialize a new instance of the class RoleAssignments class.
|
|
37
|
+
* @param client Reference to the service client
|
|
38
|
+
*/
|
|
39
|
+
constructor(client: CustomerInsightsManagementClient) {
|
|
40
|
+
this.client = client;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Gets all the role assignments for the specified hub.
|
|
45
|
+
* @param resourceGroupName The name of the resource group.
|
|
46
|
+
* @param hubName The name of the hub.
|
|
47
|
+
* @param options The options parameters.
|
|
48
|
+
*/
|
|
49
|
+
public listByHub(
|
|
50
|
+
resourceGroupName: string,
|
|
51
|
+
hubName: string,
|
|
52
|
+
options?: RoleAssignmentsListByHubOptionalParams
|
|
53
|
+
): PagedAsyncIterableIterator<RoleAssignmentResourceFormat> {
|
|
54
|
+
const iter = this.listByHubPagingAll(resourceGroupName, hubName, options);
|
|
55
|
+
return {
|
|
56
|
+
next() {
|
|
57
|
+
return iter.next();
|
|
58
|
+
},
|
|
59
|
+
[Symbol.asyncIterator]() {
|
|
60
|
+
return this;
|
|
61
|
+
},
|
|
62
|
+
byPage: () => {
|
|
63
|
+
return this.listByHubPagingPage(resourceGroupName, hubName, options);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
private async *listByHubPagingPage(
|
|
69
|
+
resourceGroupName: string,
|
|
70
|
+
hubName: string,
|
|
71
|
+
options?: RoleAssignmentsListByHubOptionalParams
|
|
72
|
+
): AsyncIterableIterator<RoleAssignmentResourceFormat[]> {
|
|
73
|
+
let result = await this._listByHub(resourceGroupName, hubName, options);
|
|
74
|
+
yield result.value || [];
|
|
75
|
+
let continuationToken = result.nextLink;
|
|
76
|
+
while (continuationToken) {
|
|
77
|
+
result = await this._listByHubNext(
|
|
78
|
+
resourceGroupName,
|
|
79
|
+
hubName,
|
|
80
|
+
continuationToken,
|
|
81
|
+
options
|
|
82
|
+
);
|
|
83
|
+
continuationToken = result.nextLink;
|
|
84
|
+
yield result.value || [];
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
private async *listByHubPagingAll(
|
|
89
|
+
resourceGroupName: string,
|
|
90
|
+
hubName: string,
|
|
91
|
+
options?: RoleAssignmentsListByHubOptionalParams
|
|
92
|
+
): AsyncIterableIterator<RoleAssignmentResourceFormat> {
|
|
93
|
+
for await (const page of this.listByHubPagingPage(
|
|
94
|
+
resourceGroupName,
|
|
95
|
+
hubName,
|
|
96
|
+
options
|
|
97
|
+
)) {
|
|
98
|
+
yield* page;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Gets all the role assignments for the specified hub.
|
|
104
|
+
* @param resourceGroupName The name of the resource group.
|
|
105
|
+
* @param hubName The name of the hub.
|
|
106
|
+
* @param options The options parameters.
|
|
107
|
+
*/
|
|
108
|
+
private _listByHub(
|
|
109
|
+
resourceGroupName: string,
|
|
110
|
+
hubName: string,
|
|
111
|
+
options?: RoleAssignmentsListByHubOptionalParams
|
|
112
|
+
): Promise<RoleAssignmentsListByHubResponse> {
|
|
113
|
+
return this.client.sendOperationRequest(
|
|
114
|
+
{ resourceGroupName, hubName, options },
|
|
115
|
+
listByHubOperationSpec
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Creates or updates a role assignment in the hub.
|
|
121
|
+
* @param resourceGroupName The name of the resource group.
|
|
122
|
+
* @param hubName The name of the hub.
|
|
123
|
+
* @param assignmentName The assignment name
|
|
124
|
+
* @param parameters Parameters supplied to the CreateOrUpdate RoleAssignment operation.
|
|
125
|
+
* @param options The options parameters.
|
|
126
|
+
*/
|
|
127
|
+
async beginCreateOrUpdate(
|
|
128
|
+
resourceGroupName: string,
|
|
129
|
+
hubName: string,
|
|
130
|
+
assignmentName: string,
|
|
131
|
+
parameters: RoleAssignmentResourceFormat,
|
|
132
|
+
options?: RoleAssignmentsCreateOrUpdateOptionalParams
|
|
133
|
+
): Promise<
|
|
134
|
+
PollerLike<
|
|
135
|
+
PollOperationState<RoleAssignmentsCreateOrUpdateResponse>,
|
|
136
|
+
RoleAssignmentsCreateOrUpdateResponse
|
|
137
|
+
>
|
|
138
|
+
> {
|
|
139
|
+
const directSendOperation = async (
|
|
140
|
+
args: coreClient.OperationArguments,
|
|
141
|
+
spec: coreClient.OperationSpec
|
|
142
|
+
): Promise<RoleAssignmentsCreateOrUpdateResponse> => {
|
|
143
|
+
return this.client.sendOperationRequest(args, spec);
|
|
144
|
+
};
|
|
145
|
+
const sendOperation = async (
|
|
146
|
+
args: coreClient.OperationArguments,
|
|
147
|
+
spec: coreClient.OperationSpec
|
|
148
|
+
) => {
|
|
149
|
+
let currentRawResponse:
|
|
150
|
+
| coreClient.FullOperationResponse
|
|
151
|
+
| undefined = undefined;
|
|
152
|
+
const providedCallback = args.options?.onResponse;
|
|
153
|
+
const callback: coreClient.RawResponseCallback = (
|
|
154
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
155
|
+
flatResponse: unknown
|
|
156
|
+
) => {
|
|
157
|
+
currentRawResponse = rawResponse;
|
|
158
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
159
|
+
};
|
|
160
|
+
const updatedArgs = {
|
|
161
|
+
...args,
|
|
162
|
+
options: {
|
|
163
|
+
...args.options,
|
|
164
|
+
onResponse: callback
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
168
|
+
return {
|
|
169
|
+
flatResponse,
|
|
170
|
+
rawResponse: {
|
|
171
|
+
statusCode: currentRawResponse!.status,
|
|
172
|
+
body: currentRawResponse!.parsedBody,
|
|
173
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
const lro = new LroImpl(
|
|
179
|
+
sendOperation,
|
|
180
|
+
{ resourceGroupName, hubName, assignmentName, parameters, options },
|
|
181
|
+
createOrUpdateOperationSpec
|
|
182
|
+
);
|
|
183
|
+
return new LroEngine(lro, {
|
|
184
|
+
resumeFrom: options?.resumeFrom,
|
|
185
|
+
intervalInMs: options?.updateIntervalInMs
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Creates or updates a role assignment in the hub.
|
|
191
|
+
* @param resourceGroupName The name of the resource group.
|
|
192
|
+
* @param hubName The name of the hub.
|
|
193
|
+
* @param assignmentName The assignment name
|
|
194
|
+
* @param parameters Parameters supplied to the CreateOrUpdate RoleAssignment operation.
|
|
195
|
+
* @param options The options parameters.
|
|
196
|
+
*/
|
|
197
|
+
async beginCreateOrUpdateAndWait(
|
|
198
|
+
resourceGroupName: string,
|
|
199
|
+
hubName: string,
|
|
200
|
+
assignmentName: string,
|
|
201
|
+
parameters: RoleAssignmentResourceFormat,
|
|
202
|
+
options?: RoleAssignmentsCreateOrUpdateOptionalParams
|
|
203
|
+
): Promise<RoleAssignmentsCreateOrUpdateResponse> {
|
|
204
|
+
const poller = await this.beginCreateOrUpdate(
|
|
205
|
+
resourceGroupName,
|
|
206
|
+
hubName,
|
|
207
|
+
assignmentName,
|
|
208
|
+
parameters,
|
|
209
|
+
options
|
|
210
|
+
);
|
|
211
|
+
return poller.pollUntilDone();
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Gets the role assignment in the hub.
|
|
216
|
+
* @param resourceGroupName The name of the resource group.
|
|
217
|
+
* @param hubName The name of the hub.
|
|
218
|
+
* @param assignmentName The name of the role assignment.
|
|
219
|
+
* @param options The options parameters.
|
|
220
|
+
*/
|
|
221
|
+
get(
|
|
222
|
+
resourceGroupName: string,
|
|
223
|
+
hubName: string,
|
|
224
|
+
assignmentName: string,
|
|
225
|
+
options?: RoleAssignmentsGetOptionalParams
|
|
226
|
+
): Promise<RoleAssignmentsGetResponse> {
|
|
227
|
+
return this.client.sendOperationRequest(
|
|
228
|
+
{ resourceGroupName, hubName, assignmentName, options },
|
|
229
|
+
getOperationSpec
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Deletes the role assignment in the hub.
|
|
235
|
+
* @param resourceGroupName The name of the resource group.
|
|
236
|
+
* @param hubName The name of the hub.
|
|
237
|
+
* @param assignmentName The name of the role assignment.
|
|
238
|
+
* @param options The options parameters.
|
|
239
|
+
*/
|
|
240
|
+
delete(
|
|
241
|
+
resourceGroupName: string,
|
|
242
|
+
hubName: string,
|
|
243
|
+
assignmentName: string,
|
|
244
|
+
options?: RoleAssignmentsDeleteOptionalParams
|
|
245
|
+
): Promise<void> {
|
|
246
|
+
return this.client.sendOperationRequest(
|
|
247
|
+
{ resourceGroupName, hubName, assignmentName, options },
|
|
248
|
+
deleteOperationSpec
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* ListByHubNext
|
|
254
|
+
* @param resourceGroupName The name of the resource group.
|
|
255
|
+
* @param hubName The name of the hub.
|
|
256
|
+
* @param nextLink The nextLink from the previous successful call to the ListByHub method.
|
|
257
|
+
* @param options The options parameters.
|
|
258
|
+
*/
|
|
259
|
+
private _listByHubNext(
|
|
260
|
+
resourceGroupName: string,
|
|
261
|
+
hubName: string,
|
|
262
|
+
nextLink: string,
|
|
263
|
+
options?: RoleAssignmentsListByHubNextOptionalParams
|
|
264
|
+
): Promise<RoleAssignmentsListByHubNextResponse> {
|
|
265
|
+
return this.client.sendOperationRequest(
|
|
266
|
+
{ resourceGroupName, hubName, nextLink, options },
|
|
267
|
+
listByHubNextOperationSpec
|
|
268
|
+
);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
// Operation Specifications
|
|
272
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
273
|
+
|
|
274
|
+
const listByHubOperationSpec: coreClient.OperationSpec = {
|
|
275
|
+
path:
|
|
276
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roleAssignments",
|
|
277
|
+
httpMethod: "GET",
|
|
278
|
+
responses: {
|
|
279
|
+
200: {
|
|
280
|
+
bodyMapper: Mappers.RoleAssignmentListResult
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
queryParameters: [Parameters.apiVersion],
|
|
284
|
+
urlParameters: [
|
|
285
|
+
Parameters.$host,
|
|
286
|
+
Parameters.resourceGroupName,
|
|
287
|
+
Parameters.subscriptionId,
|
|
288
|
+
Parameters.hubName1
|
|
289
|
+
],
|
|
290
|
+
headerParameters: [Parameters.accept],
|
|
291
|
+
serializer
|
|
292
|
+
};
|
|
293
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
294
|
+
path:
|
|
295
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roleAssignments/{assignmentName}",
|
|
296
|
+
httpMethod: "PUT",
|
|
297
|
+
responses: {
|
|
298
|
+
200: {
|
|
299
|
+
bodyMapper: Mappers.RoleAssignmentResourceFormat
|
|
300
|
+
},
|
|
301
|
+
201: {
|
|
302
|
+
bodyMapper: Mappers.RoleAssignmentResourceFormat
|
|
303
|
+
},
|
|
304
|
+
202: {
|
|
305
|
+
bodyMapper: Mappers.RoleAssignmentResourceFormat
|
|
306
|
+
},
|
|
307
|
+
204: {
|
|
308
|
+
bodyMapper: Mappers.RoleAssignmentResourceFormat
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
requestBody: Parameters.parameters11,
|
|
312
|
+
queryParameters: [Parameters.apiVersion],
|
|
313
|
+
urlParameters: [
|
|
314
|
+
Parameters.$host,
|
|
315
|
+
Parameters.resourceGroupName,
|
|
316
|
+
Parameters.subscriptionId,
|
|
317
|
+
Parameters.hubName1,
|
|
318
|
+
Parameters.assignmentName
|
|
319
|
+
],
|
|
320
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
321
|
+
mediaType: "json",
|
|
322
|
+
serializer
|
|
323
|
+
};
|
|
324
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
325
|
+
path:
|
|
326
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roleAssignments/{assignmentName}",
|
|
327
|
+
httpMethod: "GET",
|
|
328
|
+
responses: {
|
|
329
|
+
200: {
|
|
330
|
+
bodyMapper: Mappers.RoleAssignmentResourceFormat
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
queryParameters: [Parameters.apiVersion],
|
|
334
|
+
urlParameters: [
|
|
335
|
+
Parameters.$host,
|
|
336
|
+
Parameters.resourceGroupName,
|
|
337
|
+
Parameters.subscriptionId,
|
|
338
|
+
Parameters.hubName1,
|
|
339
|
+
Parameters.assignmentName1
|
|
340
|
+
],
|
|
341
|
+
headerParameters: [Parameters.accept],
|
|
342
|
+
serializer
|
|
343
|
+
};
|
|
344
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
345
|
+
path:
|
|
346
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roleAssignments/{assignmentName}",
|
|
347
|
+
httpMethod: "DELETE",
|
|
348
|
+
responses: { 200: {}, 202: {}, 204: {} },
|
|
349
|
+
queryParameters: [Parameters.apiVersion],
|
|
350
|
+
urlParameters: [
|
|
351
|
+
Parameters.$host,
|
|
352
|
+
Parameters.resourceGroupName,
|
|
353
|
+
Parameters.subscriptionId,
|
|
354
|
+
Parameters.hubName1,
|
|
355
|
+
Parameters.assignmentName1
|
|
356
|
+
],
|
|
357
|
+
serializer
|
|
358
|
+
};
|
|
359
|
+
const listByHubNextOperationSpec: coreClient.OperationSpec = {
|
|
360
|
+
path: "{nextLink}",
|
|
361
|
+
httpMethod: "GET",
|
|
362
|
+
responses: {
|
|
363
|
+
200: {
|
|
364
|
+
bodyMapper: Mappers.RoleAssignmentListResult
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
queryParameters: [Parameters.apiVersion],
|
|
368
|
+
urlParameters: [
|
|
369
|
+
Parameters.$host,
|
|
370
|
+
Parameters.nextLink,
|
|
371
|
+
Parameters.resourceGroupName,
|
|
372
|
+
Parameters.subscriptionId,
|
|
373
|
+
Parameters.hubName1
|
|
374
|
+
],
|
|
375
|
+
headerParameters: [Parameters.accept],
|
|
376
|
+
serializer
|
|
377
|
+
};
|
|
@@ -0,0 +1,171 @@
|
|
|
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 { Roles } 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
|
+
RoleResourceFormat,
|
|
17
|
+
RolesListByHubNextOptionalParams,
|
|
18
|
+
RolesListByHubOptionalParams,
|
|
19
|
+
RolesListByHubResponse,
|
|
20
|
+
RolesListByHubNextResponse
|
|
21
|
+
} from "../models";
|
|
22
|
+
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Class containing Roles operations. */
|
|
25
|
+
export class RolesImpl implements Roles {
|
|
26
|
+
private readonly client: CustomerInsightsManagementClient;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Initialize a new instance of the class Roles class.
|
|
30
|
+
* @param client Reference to the service client
|
|
31
|
+
*/
|
|
32
|
+
constructor(client: CustomerInsightsManagementClient) {
|
|
33
|
+
this.client = client;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Gets all the roles for the hub.
|
|
38
|
+
* @param resourceGroupName The name of the resource group.
|
|
39
|
+
* @param hubName The name of the hub.
|
|
40
|
+
* @param options The options parameters.
|
|
41
|
+
*/
|
|
42
|
+
public listByHub(
|
|
43
|
+
resourceGroupName: string,
|
|
44
|
+
hubName: string,
|
|
45
|
+
options?: RolesListByHubOptionalParams
|
|
46
|
+
): PagedAsyncIterableIterator<RoleResourceFormat> {
|
|
47
|
+
const iter = this.listByHubPagingAll(resourceGroupName, hubName, options);
|
|
48
|
+
return {
|
|
49
|
+
next() {
|
|
50
|
+
return iter.next();
|
|
51
|
+
},
|
|
52
|
+
[Symbol.asyncIterator]() {
|
|
53
|
+
return this;
|
|
54
|
+
},
|
|
55
|
+
byPage: () => {
|
|
56
|
+
return this.listByHubPagingPage(resourceGroupName, hubName, options);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
private async *listByHubPagingPage(
|
|
62
|
+
resourceGroupName: string,
|
|
63
|
+
hubName: string,
|
|
64
|
+
options?: RolesListByHubOptionalParams
|
|
65
|
+
): AsyncIterableIterator<RoleResourceFormat[]> {
|
|
66
|
+
let result = await this._listByHub(resourceGroupName, hubName, options);
|
|
67
|
+
yield result.value || [];
|
|
68
|
+
let continuationToken = result.nextLink;
|
|
69
|
+
while (continuationToken) {
|
|
70
|
+
result = await this._listByHubNext(
|
|
71
|
+
resourceGroupName,
|
|
72
|
+
hubName,
|
|
73
|
+
continuationToken,
|
|
74
|
+
options
|
|
75
|
+
);
|
|
76
|
+
continuationToken = result.nextLink;
|
|
77
|
+
yield result.value || [];
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
private async *listByHubPagingAll(
|
|
82
|
+
resourceGroupName: string,
|
|
83
|
+
hubName: string,
|
|
84
|
+
options?: RolesListByHubOptionalParams
|
|
85
|
+
): AsyncIterableIterator<RoleResourceFormat> {
|
|
86
|
+
for await (const page of this.listByHubPagingPage(
|
|
87
|
+
resourceGroupName,
|
|
88
|
+
hubName,
|
|
89
|
+
options
|
|
90
|
+
)) {
|
|
91
|
+
yield* page;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Gets all the roles for the hub.
|
|
97
|
+
* @param resourceGroupName The name of the resource group.
|
|
98
|
+
* @param hubName The name of the hub.
|
|
99
|
+
* @param options The options parameters.
|
|
100
|
+
*/
|
|
101
|
+
private _listByHub(
|
|
102
|
+
resourceGroupName: string,
|
|
103
|
+
hubName: string,
|
|
104
|
+
options?: RolesListByHubOptionalParams
|
|
105
|
+
): Promise<RolesListByHubResponse> {
|
|
106
|
+
return this.client.sendOperationRequest(
|
|
107
|
+
{ resourceGroupName, hubName, options },
|
|
108
|
+
listByHubOperationSpec
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* ListByHubNext
|
|
114
|
+
* @param resourceGroupName The name of the resource group.
|
|
115
|
+
* @param hubName The name of the hub.
|
|
116
|
+
* @param nextLink The nextLink from the previous successful call to the ListByHub method.
|
|
117
|
+
* @param options The options parameters.
|
|
118
|
+
*/
|
|
119
|
+
private _listByHubNext(
|
|
120
|
+
resourceGroupName: string,
|
|
121
|
+
hubName: string,
|
|
122
|
+
nextLink: string,
|
|
123
|
+
options?: RolesListByHubNextOptionalParams
|
|
124
|
+
): Promise<RolesListByHubNextResponse> {
|
|
125
|
+
return this.client.sendOperationRequest(
|
|
126
|
+
{ resourceGroupName, hubName, nextLink, options },
|
|
127
|
+
listByHubNextOperationSpec
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
// Operation Specifications
|
|
132
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
133
|
+
|
|
134
|
+
const listByHubOperationSpec: coreClient.OperationSpec = {
|
|
135
|
+
path:
|
|
136
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roles",
|
|
137
|
+
httpMethod: "GET",
|
|
138
|
+
responses: {
|
|
139
|
+
200: {
|
|
140
|
+
bodyMapper: Mappers.RoleListResult
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
queryParameters: [Parameters.apiVersion],
|
|
144
|
+
urlParameters: [
|
|
145
|
+
Parameters.$host,
|
|
146
|
+
Parameters.resourceGroupName,
|
|
147
|
+
Parameters.subscriptionId,
|
|
148
|
+
Parameters.hubName1
|
|
149
|
+
],
|
|
150
|
+
headerParameters: [Parameters.accept],
|
|
151
|
+
serializer
|
|
152
|
+
};
|
|
153
|
+
const listByHubNextOperationSpec: coreClient.OperationSpec = {
|
|
154
|
+
path: "{nextLink}",
|
|
155
|
+
httpMethod: "GET",
|
|
156
|
+
responses: {
|
|
157
|
+
200: {
|
|
158
|
+
bodyMapper: Mappers.RoleListResult
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
queryParameters: [Parameters.apiVersion],
|
|
162
|
+
urlParameters: [
|
|
163
|
+
Parameters.$host,
|
|
164
|
+
Parameters.nextLink,
|
|
165
|
+
Parameters.resourceGroupName,
|
|
166
|
+
Parameters.subscriptionId,
|
|
167
|
+
Parameters.hubName1
|
|
168
|
+
],
|
|
169
|
+
headerParameters: [Parameters.accept],
|
|
170
|
+
serializer
|
|
171
|
+
};
|