@segment/public-api-sdk-typescript 32.0.2-b5006 → 33.0.2-b5330
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/README.md +31 -27
- package/api/aPICallsApi.ts +23 -815
- package/api/auditTrailApi.ts +12 -462
- package/api/catalogApi.ts +103 -2182
- package/api/deletionAndSuppressionApi.ts +174 -3281
- package/api/destinationFiltersApi.ts +112 -2449
- package/api/destinationsApi.ts +238 -2166
- package/api/edgeFunctionsApi.ts +13 -9
- package/api/eventsApi.ts +19 -625
- package/api/functionsApi.ts +120 -2289
- package/api/iAMGroupsApi.ts +232 -4750
- package/api/iAMRolesApi.ts +8 -347
- package/api/iAMUsersApi.ts +190 -3433
- package/api/labelsApi.ts +59 -1079
- package/api/monthlyTrackedUsersApi.ts +23 -815
- package/api/selectiveSyncApi.ts +156 -2538
- package/api/sourcesApi.ts +211 -4276
- package/api/spacesApi.ts +10 -7
- package/api/testingApi.ts +14 -317
- package/api/trackingPlansApi.ts +257 -4799
- package/api/transformationsApi.ts +60 -650
- package/api/warehousesApi.ts +200 -3827
- package/api/workspacesApi.ts +6 -306
- package/dist/api/aPICallsApi.d.ts +2 -50
- package/dist/api/aPICallsApi.js +18 -560
- package/dist/api/aPICallsApi.js.map +1 -1
- package/dist/api/apis.js +1 -1
- package/dist/api/auditTrailApi.d.ts +1 -25
- package/dist/api/auditTrailApi.js +8 -300
- package/dist/api/auditTrailApi.js.map +1 -1
- package/dist/api/catalogApi.d.ts +6 -150
- package/dist/api/catalogApi.js +65 -1568
- package/dist/api/catalogApi.js.map +1 -1
- package/dist/api/deletionAndSuppressionApi.d.ts +8 -200
- package/dist/api/deletionAndSuppressionApi.js +105 -2195
- package/dist/api/deletionAndSuppressionApi.js.map +1 -1
- package/dist/api/destinationFiltersApi.d.ts +6 -150
- package/dist/api/destinationFiltersApi.js +71 -1658
- package/dist/api/destinationFiltersApi.js.map +1 -1
- package/dist/api/destinationsApi.d.ts +6 -134
- package/dist/api/destinationsApi.js +155 -1518
- package/dist/api/destinationsApi.js.map +1 -1
- package/dist/api/edgeFunctionsApi.js +9 -9
- package/dist/api/edgeFunctionsApi.js.map +1 -1
- package/dist/api/eventsApi.d.ts +1 -25
- package/dist/api/eventsApi.js +10 -353
- package/dist/api/eventsApi.js.map +1 -1
- package/dist/api/functionsApi.d.ts +6 -150
- package/dist/api/functionsApi.js +75 -1608
- package/dist/api/functionsApi.js.map +1 -1
- package/dist/api/iAMGroupsApi.d.ts +12 -300
- package/dist/api/iAMGroupsApi.js +158 -3278
- package/dist/api/iAMGroupsApi.js.map +1 -1
- package/dist/api/iAMRolesApi.d.ts +1 -25
- package/dist/api/iAMRolesApi.js +8 -261
- package/dist/api/iAMRolesApi.js.map +1 -1
- package/dist/api/iAMUsersApi.d.ts +9 -225
- package/dist/api/iAMUsersApi.js +115 -2422
- package/dist/api/iAMUsersApi.js.map +1 -1
- package/dist/api/labelsApi.d.ts +3 -79
- package/dist/api/labelsApi.js +33 -781
- package/dist/api/labelsApi.js.map +1 -1
- package/dist/api/monthlyTrackedUsersApi.d.ts +2 -50
- package/dist/api/monthlyTrackedUsersApi.js +18 -560
- package/dist/api/monthlyTrackedUsersApi.js.map +1 -1
- package/dist/api/selectiveSyncApi.d.ts +6 -150
- package/dist/api/selectiveSyncApi.js +92 -1694
- package/dist/api/selectiveSyncApi.js.map +1 -1
- package/dist/api/sourcesApi.d.ts +11 -288
- package/dist/api/sourcesApi.js +143 -2976
- package/dist/api/sourcesApi.js.map +1 -1
- package/dist/api/spacesApi.js +7 -7
- package/dist/api/spacesApi.js.map +1 -1
- package/dist/api/testingApi.d.ts +1 -18
- package/dist/api/testingApi.js +7 -211
- package/dist/api/testingApi.js.map +1 -1
- package/dist/api/trackingPlansApi.d.ts +12 -300
- package/dist/api/trackingPlansApi.js +167 -3296
- package/dist/api/trackingPlansApi.js.map +1 -1
- package/dist/api/transformationsApi.d.ts +5 -45
- package/dist/api/transformationsApi.js +34 -457
- package/dist/api/transformationsApi.js.map +1 -1
- package/dist/api/warehousesApi.d.ts +10 -250
- package/dist/api/warehousesApi.js +132 -2686
- package/dist/api/warehousesApi.js.map +1 -1
- package/dist/api/workspacesApi.d.ts +1 -25
- package/dist/api/workspacesApi.js +7 -242
- package/dist/api/workspacesApi.js.map +1 -1
- package/dist/model/addLabelsToSource200Response.d.ts +2 -2
- package/dist/model/addLabelsToSource200Response.js +1 -1
- package/dist/model/addLabelsToSource200Response.js.map +1 -1
- package/dist/model/addLabelsToSource200Response1.d.ts +2 -2
- package/dist/model/addLabelsToSource200Response1.js +1 -1
- package/dist/model/addLabelsToSource200Response1.js.map +1 -1
- package/dist/model/createCloudSourceRegulationV1Input.d.ts +0 -1
- package/dist/model/createCloudSourceRegulationV1Input.js +0 -1
- package/dist/model/createCloudSourceRegulationV1Input.js.map +1 -1
- package/dist/model/createDestinationSubscriptionAlphaInput.d.ts +1 -1
- package/dist/model/createLabel200Response.d.ts +2 -2
- package/dist/model/createLabel200Response.js +1 -1
- package/dist/model/createLabel200Response.js.map +1 -1
- package/dist/model/createLabel200Response1.d.ts +2 -2
- package/dist/model/createLabel200Response1.js +1 -1
- package/dist/model/createLabel200Response1.js.map +1 -1
- package/dist/model/createSource200Response.d.ts +2 -2
- package/dist/model/createSource200Response.js +1 -1
- package/dist/model/createSource200Response.js.map +1 -1
- package/dist/model/createSource200Response1.d.ts +2 -2
- package/dist/model/createSource200Response1.js +1 -1
- package/dist/model/createSource200Response1.js.map +1 -1
- package/dist/model/createSourceAlphaInput.d.ts +1 -1
- package/dist/model/createSourceRegulationV1Input.d.ts +0 -1
- package/dist/model/createSourceRegulationV1Input.js +0 -1
- package/dist/model/createSourceRegulationV1Input.js.map +1 -1
- package/dist/model/createSourceV1Input.d.ts +1 -1
- package/dist/model/createTransformationBetaInput.d.ts +2 -0
- package/dist/model/createTransformationBetaInput.js +5 -0
- package/dist/model/createTransformationBetaInput.js.map +1 -1
- package/dist/model/createValidationInWarehouseV1Input.d.ts +1 -1
- package/dist/model/createWarehouseV1Input.d.ts +1 -1
- package/dist/model/createWorkspaceRegulationV1Input.d.ts +0 -1
- package/dist/model/createWorkspaceRegulationV1Input.js +0 -1
- package/dist/model/createWorkspaceRegulationV1Input.js.map +1 -1
- package/dist/model/deleteLabel200Response.d.ts +2 -2
- package/dist/model/deleteLabel200Response.js +1 -1
- package/dist/model/deleteLabel200Response.js.map +1 -1
- package/dist/model/deleteLabel200Response1.d.ts +2 -2
- package/dist/model/deleteLabel200Response1.js +1 -1
- package/dist/model/deleteLabel200Response1.js.map +1 -1
- package/dist/model/deleteSource200Response.d.ts +2 -2
- package/dist/model/deleteSource200Response.js +1 -1
- package/dist/model/deleteSource200Response.js.map +1 -1
- package/dist/model/deleteSource200Response1.d.ts +2 -2
- package/dist/model/deleteSource200Response1.js +1 -1
- package/dist/model/deleteSource200Response1.js.map +1 -1
- package/dist/model/deliveryMetricsSummary.js.map +1 -1
- package/dist/model/destination.js.map +1 -1
- package/dist/model/destination1.js.map +1 -1
- package/dist/model/destination2.js.map +1 -1
- package/dist/model/destinationMetadata.js.map +1 -1
- package/dist/model/destinationSubscription.d.ts +1 -1
- package/dist/model/destinationSubscriptionUpdateInput.d.ts +1 -1
- package/dist/model/echo200Response.d.ts +2 -2
- package/dist/model/echo200Response.js +1 -1
- package/dist/model/echo200Response.js.map +1 -1
- package/dist/model/echo200Response1.d.ts +2 -2
- package/dist/model/echo200Response1.js +1 -1
- package/dist/model/echo200Response1.js.map +1 -1
- package/dist/model/edgeFunctions.js.map +1 -1
- package/dist/model/edgeFunctions1.js.map +1 -1
- package/dist/model/filter.js.map +1 -1
- package/dist/model/filter1.js.map +1 -1
- package/dist/model/filter2.js.map +1 -1
- package/dist/model/filter3.js.map +1 -1
- package/dist/model/function.js.map +1 -1
- package/dist/model/function1.js.map +1 -1
- package/dist/model/function2.js.map +1 -1
- package/dist/model/getSource200Response.d.ts +2 -2
- package/dist/model/getSource200Response.js +1 -1
- package/dist/model/getSource200Response.js.map +1 -1
- package/dist/model/getSource200Response1.d.ts +2 -2
- package/dist/model/getSource200Response1.js +1 -1
- package/dist/model/getSource200Response1.js.map +1 -1
- package/dist/model/group.js.map +1 -1
- package/dist/model/identify.js.map +1 -1
- package/dist/model/input.d.ts +1 -1
- package/dist/model/input.js.map +1 -1
- package/dist/model/label.js.map +1 -1
- package/dist/model/label1.js.map +1 -1
- package/dist/model/label2.js.map +1 -1
- package/dist/model/listConnectedDestinationsFromSource200Response.d.ts +2 -2
- package/dist/model/listConnectedDestinationsFromSource200Response.js +1 -1
- package/dist/model/listConnectedDestinationsFromSource200Response.js.map +1 -1
- package/dist/model/listConnectedDestinationsFromSource200Response1.d.ts +2 -2
- package/dist/model/listConnectedDestinationsFromSource200Response1.js +1 -1
- package/dist/model/listConnectedDestinationsFromSource200Response1.js.map +1 -1
- package/dist/model/listConnectedWarehousesFromSource200Response.d.ts +2 -2
- package/dist/model/listConnectedWarehousesFromSource200Response.js +1 -1
- package/dist/model/listConnectedWarehousesFromSource200Response.js.map +1 -1
- package/dist/model/listConnectedWarehousesFromSource200Response1.d.ts +2 -2
- package/dist/model/listConnectedWarehousesFromSource200Response1.js +1 -1
- package/dist/model/listConnectedWarehousesFromSource200Response1.js.map +1 -1
- package/dist/model/listLabels200Response.d.ts +2 -2
- package/dist/model/listLabels200Response.js +1 -1
- package/dist/model/listLabels200Response.js.map +1 -1
- package/dist/model/listLabels200Response1.d.ts +2 -2
- package/dist/model/listLabels200Response1.js +1 -1
- package/dist/model/listLabels200Response1.js.map +1 -1
- package/dist/model/listSources200Response.d.ts +2 -2
- package/dist/model/listSources200Response.js +1 -1
- package/dist/model/listSources200Response.js.map +1 -1
- package/dist/model/listSources200Response1.d.ts +2 -2
- package/dist/model/listSources200Response1.js +1 -1
- package/dist/model/listSources200Response1.js.map +1 -1
- package/dist/model/logos.js.map +1 -1
- package/dist/model/logos1.js.map +1 -1
- package/dist/model/logos2.js.map +1 -1
- package/dist/model/metadata.js.map +1 -1
- package/dist/model/metadata1.js.map +1 -1
- package/dist/model/metadata2.js.map +1 -1
- package/dist/model/models.d.ts +3 -2
- package/dist/model/models.js +3 -0
- package/dist/model/models.js.map +1 -1
- package/dist/model/pagination.js.map +1 -1
- package/dist/model/previewDestinationFilterV1Output.d.ts +1 -1
- package/dist/model/previewDestinationFilterV1Output.js +1 -1
- package/dist/model/previewDestinationFilterV1Output.js.map +1 -1
- package/dist/model/propertyValueTransformationBeta.d.ts +15 -0
- package/dist/model/propertyValueTransformationBeta.js +26 -0
- package/dist/model/propertyValueTransformationBeta.js.map +1 -0
- package/dist/model/replaceLabelsInSource200Response.d.ts +2 -2
- package/dist/model/replaceLabelsInSource200Response.js +1 -1
- package/dist/model/replaceLabelsInSource200Response.js.map +1 -1
- package/dist/model/replaceLabelsInSource200Response1.d.ts +2 -2
- package/dist/model/replaceLabelsInSource200Response1.js +1 -1
- package/dist/model/replaceLabelsInSource200Response1.js.map +1 -1
- package/dist/model/schedule.js.map +1 -1
- package/dist/model/schedule1.js.map +1 -1
- package/dist/model/schedule2.js.map +1 -1
- package/dist/model/settings.js.map +1 -1
- package/dist/model/settings1.js.map +1 -1
- package/dist/model/source.js.map +1 -1
- package/dist/model/source1.d.ts +1 -1
- package/dist/model/source1.js.map +1 -1
- package/dist/model/source2.d.ts +1 -1
- package/dist/model/source2.js.map +1 -1
- package/dist/model/source3.d.ts +1 -1
- package/dist/model/source3.js.map +1 -1
- package/dist/model/source4.d.ts +1 -1
- package/dist/model/source4.js.map +1 -1
- package/dist/model/source5.d.ts +1 -1
- package/dist/model/source5.js.map +1 -1
- package/dist/model/source6.d.ts +1 -1
- package/dist/model/source6.js.map +1 -1
- package/dist/model/sourceAlpha.d.ts +1 -1
- package/dist/model/sourceMetadata.js.map +1 -1
- package/dist/model/sourceV1.d.ts +1 -1
- package/dist/model/subscription.d.ts +1 -1
- package/dist/model/subscription.js.map +1 -1
- package/dist/model/supportedFeatures.js.map +1 -1
- package/dist/model/supportedMethods.js.map +1 -1
- package/dist/model/supportedPlatforms.js.map +1 -1
- package/dist/model/track.js.map +1 -1
- package/dist/model/trackingPlan.js.map +1 -1
- package/dist/model/trackingPlan1.js.map +1 -1
- package/dist/model/transformation.d.ts +2 -0
- package/dist/model/transformation.js +5 -0
- package/dist/model/transformation.js.map +1 -1
- package/dist/model/transformation1.d.ts +2 -0
- package/dist/model/transformation1.js +5 -0
- package/dist/model/transformation1.js.map +1 -1
- package/dist/model/transformation2.d.ts +2 -0
- package/dist/model/transformation2.js +5 -0
- package/dist/model/transformation2.js.map +1 -1
- package/dist/model/transformationBeta.d.ts +2 -0
- package/dist/model/transformationBeta.js +5 -0
- package/dist/model/transformationBeta.js.map +1 -1
- package/dist/model/updateSource200Response.d.ts +2 -2
- package/dist/model/updateSource200Response.js +1 -1
- package/dist/model/updateSource200Response.js.map +1 -1
- package/dist/model/updateSource200Response1.d.ts +2 -2
- package/dist/model/updateSource200Response1.js +1 -1
- package/dist/model/updateSource200Response1.js.map +1 -1
- package/dist/model/updateSourceAlphaInput.d.ts +1 -1
- package/dist/model/updateSourceV1Input.d.ts +1 -1
- package/dist/model/updateTransformationBetaInput.d.ts +2 -0
- package/dist/model/updateTransformationBetaInput.js +5 -0
- package/dist/model/updateTransformationBetaInput.js.map +1 -1
- package/dist/model/updateWarehouseV1Input.d.ts +1 -1
- package/dist/model/user.js.map +1 -1
- package/dist/model/userGroup.js.map +1 -1
- package/dist/model/userGroup1.js.map +1 -1
- package/dist/model/userGroup2.js.map +1 -1
- package/dist/model/userGroup3.js.map +1 -1
- package/dist/model/warehouse.d.ts +1 -1
- package/dist/model/warehouse.js.map +1 -1
- package/dist/model/warehouse1.d.ts +1 -1
- package/dist/model/warehouse1.js.map +1 -1
- package/dist/model/warehouse2.d.ts +1 -1
- package/dist/model/warehouse2.js.map +1 -1
- package/dist/model/warehouseMetadata.js.map +1 -1
- package/dist/model/warehouseV1.d.ts +1 -1
- package/dist/model/workspace.js.map +1 -1
- package/dist/tests/smoke.test.js +7 -7
- package/dist/tests/smoke.test.js.map +1 -1
- package/model/aPICallSnapshotV1.ts +1 -1
- package/model/accessPermissionV1.ts +1 -1
- package/model/addConnectionFromSourceToWarehouse200Response.ts +1 -1
- package/model/addConnectionFromSourceToWarehouseV1Output.ts +1 -1
- package/model/addLabelsToSource200Response.ts +4 -4
- package/model/addLabelsToSource200Response1.ts +4 -4
- package/model/addLabelsToSourceAlphaInput.ts +1 -1
- package/model/addLabelsToSourceAlphaOutput.ts +1 -1
- package/model/addLabelsToSourceV1Input.ts +1 -1
- package/model/addLabelsToSourceV1Output.ts +1 -1
- package/model/addPermissionsToUser200Response.ts +1 -1
- package/model/addPermissionsToUserGroup200Response.ts +1 -1
- package/model/addPermissionsToUserGroupV1Input.ts +1 -1
- package/model/addPermissionsToUserGroupV1Output.ts +1 -1
- package/model/addPermissionsToUserV1Input.ts +1 -1
- package/model/addPermissionsToUserV1Output.ts +1 -1
- package/model/addSourceToTrackingPlan200Response.ts +1 -1
- package/model/addSourceToTrackingPlanV1Input.ts +1 -1
- package/model/addSourceToTrackingPlanV1Output.ts +1 -1
- package/model/addUsersToUserGroup200Response.ts +1 -1
- package/model/addUsersToUserGroupV1Input.ts +1 -1
- package/model/addUsersToUserGroupV1Output.ts +1 -1
- package/model/advancedWarehouseSyncScheduleV1Input.ts +1 -1
- package/model/advancedWarehouseSyncScheduleV1Output.ts +1 -1
- package/model/allowedLabelBeta.ts +1 -1
- package/model/auditEventV1.ts +1 -1
- package/model/batchQueryMessagingSubscriptionsForSpace200Response.ts +1 -1
- package/model/batchQueryMessagingSubscriptionsForSpaceAlphaInput.ts +1 -1
- package/model/batchQueryMessagingSubscriptionsForSpaceAlphaOutput.ts +1 -1
- package/model/breakdownBeta.ts +1 -1
- package/model/commonSourceSettingsV1.ts +1 -1
- package/model/contact.ts +1 -1
- package/model/createCloudSourceRegulation200Response.ts +1 -1
- package/model/createCloudSourceRegulationV1Input.ts +1 -2
- package/model/createCloudSourceRegulationV1Output.ts +1 -1
- package/model/createDestination200Response.ts +1 -1
- package/model/createDestinationSubscription200Response.ts +1 -1
- package/model/createDestinationSubscriptionAlphaInput.ts +2 -2
- package/model/createDestinationSubscriptionAlphaOutput.ts +1 -1
- package/model/createDestinationV1Input.ts +1 -1
- package/model/createDestinationV1Output.ts +1 -1
- package/model/createEdgeFunctions200Response.ts +1 -1
- package/model/createEdgeFunctionsAlphaInput.ts +1 -1
- package/model/createEdgeFunctionsAlphaOutput.ts +1 -1
- package/model/createFilterForDestination200Response.ts +1 -1
- package/model/createFilterForDestinationV1Input.ts +1 -1
- package/model/createFilterForDestinationV1Output.ts +1 -1
- package/model/createFunction200Response.ts +1 -1
- package/model/createFunctionDeployment200Response.ts +1 -1
- package/model/createFunctionDeploymentV1Output.ts +1 -1
- package/model/createFunctionV1Input.ts +1 -1
- package/model/createFunctionV1Output.ts +1 -1
- package/model/createInvites200Response.ts +1 -1
- package/model/createInvitesV1Input.ts +1 -1
- package/model/createInvitesV1Output.ts +1 -1
- package/model/createLabel200Response.ts +4 -4
- package/model/createLabel200Response1.ts +4 -4
- package/model/createLabelAlphaInput.ts +1 -1
- package/model/createLabelAlphaOutput.ts +1 -1
- package/model/createLabelV1Input.ts +1 -1
- package/model/createLabelV1Output.ts +1 -1
- package/model/createSource200Response.ts +4 -4
- package/model/createSource200Response1.ts +4 -4
- package/model/createSourceAlphaInput.ts +2 -2
- package/model/createSourceAlphaOutput.ts +1 -1
- package/model/createSourceRegulation200Response.ts +1 -1
- package/model/createSourceRegulationV1Input.ts +1 -2
- package/model/createSourceRegulationV1Output.ts +1 -1
- package/model/createSourceV1Input.ts +2 -2
- package/model/createSourceV1Output.ts +1 -1
- package/model/createTrackingPlan200Response.ts +1 -1
- package/model/createTrackingPlanV1Input.ts +1 -1
- package/model/createTrackingPlanV1Output.ts +1 -1
- package/model/createTransformation200Response.ts +1 -1
- package/model/createTransformationBetaInput.ts +11 -1
- package/model/createTransformationBetaOutput.ts +1 -1
- package/model/createUserGroup200Response.ts +1 -1
- package/model/createUserGroupV1Input.ts +1 -1
- package/model/createUserGroupV1Output.ts +1 -1
- package/model/createValidationInWarehouse200Response.ts +1 -1
- package/model/createValidationInWarehouseV1Input.ts +2 -2
- package/model/createValidationInWarehouseV1Output.ts +1 -1
- package/model/createWarehouse200Response.ts +1 -1
- package/model/createWarehouseV1Input.ts +2 -2
- package/model/createWarehouseV1Output.ts +1 -1
- package/model/createWorkspaceRegulation200Response.ts +1 -1
- package/model/createWorkspaceRegulationV1Input.ts +1 -2
- package/model/createWorkspaceRegulationV1Output.ts +1 -1
- package/model/deleteDestination200Response.ts +1 -1
- package/model/deleteDestinationV1Output.ts +1 -1
- package/model/deleteFunction200Response.ts +1 -1
- package/model/deleteFunctionV1Output.ts +1 -1
- package/model/deleteInvites200Response.ts +1 -1
- package/model/deleteInvitesV1Output.ts +1 -1
- package/model/deleteLabel200Response.ts +4 -4
- package/model/deleteLabel200Response1.ts +4 -4
- package/model/deleteLabelAlphaOutput.ts +1 -1
- package/model/deleteLabelV1Output.ts +1 -1
- package/model/deleteRegulation200Response.ts +1 -1
- package/model/deleteRegulationV1Output.ts +1 -1
- package/model/deleteSource200Response.ts +4 -4
- package/model/deleteSource200Response1.ts +4 -4
- package/model/deleteSourceAlphaOutput.ts +1 -1
- package/model/deleteSourceV1Output.ts +1 -1
- package/model/deleteTrackingPlan200Response.ts +1 -1
- package/model/deleteTrackingPlanV1Output.ts +1 -1
- package/model/deleteTransformation200Response.ts +1 -1
- package/model/deleteTransformationBetaOutput.ts +1 -1
- package/model/deleteUserGroup200Response.ts +1 -1
- package/model/deleteUserGroupV1Output.ts +1 -1
- package/model/deleteUsers200Response.ts +1 -1
- package/model/deleteUsersV1Output.ts +1 -1
- package/model/deleteWarehouse200Response.ts +1 -1
- package/model/deleteWarehouseV1Output.ts +1 -1
- package/model/deliveryMetricsSummary.ts +2 -1
- package/model/deliveryMetricsSummaryBeta.ts +1 -1
- package/model/destination.ts +2 -1
- package/model/destination1.ts +2 -1
- package/model/destination2.ts +2 -1
- package/model/destinationFilterActionV1.ts +1 -1
- package/model/destinationFilterV1.ts +1 -1
- package/model/destinationMetadata.ts +2 -1
- package/model/destinationMetadataActionFieldV1.ts +1 -1
- package/model/destinationMetadataActionV1.ts +1 -1
- package/model/destinationMetadataComponentV1.ts +1 -1
- package/model/destinationMetadataFeaturesV1.ts +1 -1
- package/model/destinationMetadataMethodsV1.ts +1 -1
- package/model/destinationMetadataPlatformsV1.ts +1 -1
- package/model/destinationMetadataSubscriptionPresetV1.ts +1 -1
- package/model/destinationMetadataV1.ts +1 -1
- package/model/destinationStatusV1.ts +1 -1
- package/model/destinationSubscription.ts +2 -2
- package/model/destinationSubscriptionUpdateInput.ts +2 -2
- package/model/destinationV1.ts +1 -1
- package/model/disableEdgeFunctions200Response.ts +1 -1
- package/model/disableEdgeFunctionsAlphaOutput.ts +1 -1
- package/model/echo200Response.ts +4 -4
- package/model/echo200Response1.ts +4 -4
- package/model/echoAlphaOutput.ts +1 -1
- package/model/echoV1Output.ts +1 -1
- package/model/edgeFunctions.ts +2 -1
- package/model/edgeFunctions1.ts +2 -1
- package/model/edgeFunctionsAlpha.ts +1 -1
- package/model/eventSourceV1.ts +1 -1
- package/model/filter.ts +2 -1
- package/model/filter1.ts +2 -1
- package/model/filter2.ts +2 -1
- package/model/filter3.ts +2 -1
- package/model/function.ts +2 -1
- package/model/function1.ts +2 -1
- package/model/function2.ts +2 -1
- package/model/functionDeployment.ts +1 -1
- package/model/functionSettingV1.ts +1 -1
- package/model/functionV1.ts +1 -1
- package/model/generateUploadURLForEdgeFunctions200Response.ts +1 -1
- package/model/generateUploadURLForEdgeFunctionsAlphaOutput.ts +1 -1
- package/model/getAdvancedSyncScheduleFromWarehouse200Response.ts +1 -1
- package/model/getAdvancedSyncScheduleFromWarehouseV1Output.ts +1 -1
- package/model/getConnectionStateFromWarehouse200Response.ts +1 -1
- package/model/getConnectionStateFromWarehouseV1Output.ts +1 -1
- package/model/getDailyPerSourceAPICallsUsage200Response.ts +1 -1
- package/model/getDailyPerSourceAPICallsUsageV1Output.ts +1 -1
- package/model/getDailyPerSourceMTUUsage200Response.ts +1 -1
- package/model/getDailyPerSourceMTUUsageV1Output.ts +1 -1
- package/model/getDailyWorkspaceAPICallsUsage200Response.ts +1 -1
- package/model/getDailyWorkspaceAPICallsUsageV1Output.ts +1 -1
- package/model/getDailyWorkspaceMTUUsage200Response.ts +1 -1
- package/model/getDailyWorkspaceMTUUsageV1Output.ts +1 -1
- package/model/getDestination200Response.ts +1 -1
- package/model/getDestinationMetadata200Response.ts +1 -1
- package/model/getDestinationMetadataV1Output.ts +1 -1
- package/model/getDestinationV1Output.ts +1 -1
- package/model/getDestinationsCatalog200Response.ts +1 -1
- package/model/getDestinationsCatalogV1Output.ts +1 -1
- package/model/getEventsVolumeFromWorkspace200Response.ts +1 -1
- package/model/getEventsVolumeFromWorkspaceV1Output.ts +1 -1
- package/model/getFilterInDestination200Response.ts +1 -1
- package/model/getFilterInDestinationV1Output.ts +1 -1
- package/model/getFunction200Response.ts +1 -1
- package/model/getFunctionV1Output.ts +1 -1
- package/model/getLatestFromEdgeFunctions200Response.ts +1 -1
- package/model/getLatestFromEdgeFunctionsAlphaOutput.ts +1 -1
- package/model/getMessagingSubscriptionFailureResponse.ts +1 -1
- package/model/getMessagingSubscriptionSuccessResponse.ts +1 -1
- package/model/getRegulation200Response.ts +1 -1
- package/model/getRegulationV1Output.ts +1 -1
- package/model/getSource200Response.ts +4 -4
- package/model/getSource200Response1.ts +4 -4
- package/model/getSourceAlphaOutput.ts +1 -1
- package/model/getSourceMetadata200Response.ts +1 -1
- package/model/getSourceMetadataV1Output.ts +1 -1
- package/model/getSourceV1Output.ts +1 -1
- package/model/getSourcesCatalog200Response.ts +1 -1
- package/model/getSourcesCatalogV1Output.ts +1 -1
- package/model/getSpace200Response.ts +1 -1
- package/model/getSpaceAlphaOutput.ts +1 -1
- package/model/getSubscriptionFromDestination200Response.ts +1 -1
- package/model/getSubscriptionFromDestinationAlphaOutput.ts +1 -1
- package/model/getSubscriptionRequest.ts +1 -1
- package/model/getTrackingPlan200Response.ts +1 -1
- package/model/getTrackingPlanV1Output.ts +1 -1
- package/model/getTransformation200Response.ts +1 -1
- package/model/getTransformationBetaOutput.ts +1 -1
- package/model/getUser200Response.ts +1 -1
- package/model/getUserGroup200Response.ts +1 -1
- package/model/getUserGroupV1Output.ts +1 -1
- package/model/getUserV1Output.ts +1 -1
- package/model/getWarehouse200Response.ts +1 -1
- package/model/getWarehouseMetadata200Response.ts +1 -1
- package/model/getWarehouseMetadataV1Output.ts +1 -1
- package/model/getWarehouseV1Output.ts +1 -1
- package/model/getWarehousesCatalog200Response.ts +1 -1
- package/model/getWarehousesCatalogV1Output.ts +1 -1
- package/model/getWorkspace200Response.ts +1 -1
- package/model/getWorkspaceV1Output.ts +1 -1
- package/model/group.ts +2 -1
- package/model/groupSourceSettingsV1.ts +1 -1
- package/model/identify.ts +2 -1
- package/model/identifySourceSettingsV1.ts +1 -1
- package/model/input.ts +3 -2
- package/model/integrationOptionBeta.ts +1 -1
- package/model/invitePermissionV1.ts +1 -1
- package/model/inviteV1.ts +1 -1
- package/model/label.ts +2 -1
- package/model/label1.ts +2 -1
- package/model/label2.ts +2 -1
- package/model/labelAlpha.ts +1 -1
- package/model/labelV1.ts +1 -1
- package/model/listAuditEvents200Response.ts +1 -1
- package/model/listAuditEventsV1Output.ts +1 -1
- package/model/listConnectedDestinationsFromSource200Response.ts +4 -4
- package/model/listConnectedDestinationsFromSource200Response1.ts +4 -4
- package/model/listConnectedDestinationsFromSourceAlphaOutput.ts +1 -1
- package/model/listConnectedDestinationsFromSourceV1Output.ts +1 -1
- package/model/listConnectedSourcesFromWarehouse200Response.ts +1 -1
- package/model/listConnectedSourcesFromWarehouseV1Output.ts +1 -1
- package/model/listConnectedWarehousesFromSource200Response.ts +4 -4
- package/model/listConnectedWarehousesFromSource200Response1.ts +4 -4
- package/model/listConnectedWarehousesFromSourceAlphaOutput.ts +1 -1
- package/model/listConnectedWarehousesFromSourceV1Output.ts +1 -1
- package/model/listDeliveryMetricsSummaryFromDestination200Response.ts +1 -1
- package/model/listDeliveryMetricsSummaryFromDestinationBetaOutput.ts +1 -1
- package/model/listDestinations200Response.ts +1 -1
- package/model/listDestinationsV1Output.ts +1 -1
- package/model/listFiltersFromDestination200Response.ts +1 -1
- package/model/listFiltersFromDestinationV1Output.ts +1 -1
- package/model/listFunctionItemV1.ts +1 -1
- package/model/listFunctions200Response.ts +1 -1
- package/model/listFunctionsV1Output.ts +1 -1
- package/model/listInvites200Response.ts +1 -1
- package/model/listInvitesFromUserGroup200Response.ts +1 -1
- package/model/listInvitesFromUserGroupV1Output.ts +1 -1
- package/model/listInvitesV1Output.ts +1 -1
- package/model/listLabels200Response.ts +4 -4
- package/model/listLabels200Response1.ts +4 -4
- package/model/listLabelsAlphaOutput.ts +1 -1
- package/model/listLabelsV1Output.ts +1 -1
- package/model/listRegulationsFromSource200Response.ts +1 -1
- package/model/listRegulationsFromSourceV1Output.ts +1 -1
- package/model/listRoles200Response.ts +1 -1
- package/model/listRolesV1Output.ts +1 -1
- package/model/listRulesFromTrackingPlan200Response.ts +1 -1
- package/model/listRulesFromTrackingPlanV1Output.ts +1 -1
- package/model/listSchemaSettingsInSource200Response.ts +1 -1
- package/model/listSchemaSettingsInSourceV1Output.ts +1 -1
- package/model/listSelectiveSyncsFromWarehouseAndSource200Response.ts +1 -1
- package/model/listSelectiveSyncsFromWarehouseAndSourceV1Output.ts +1 -1
- package/model/listSources200Response.ts +4 -4
- package/model/listSources200Response1.ts +4 -4
- package/model/listSourcesAlphaOutput.ts +1 -1
- package/model/listSourcesFromTrackingPlan200Response.ts +1 -1
- package/model/listSourcesFromTrackingPlanV1Output.ts +1 -1
- package/model/listSourcesV1Output.ts +1 -1
- package/model/listSubscriptionsFromDestination200Response.ts +1 -1
- package/model/listSubscriptionsFromDestinationAlphaOutput.ts +1 -1
- package/model/listSuppressions200Response.ts +1 -1
- package/model/listSuppressionsV1Output.ts +1 -1
- package/model/listSyncsFromWarehouse200Response.ts +1 -1
- package/model/listSyncsFromWarehouseAndSource200Response.ts +1 -1
- package/model/listSyncsFromWarehouseAndSourceV1Output.ts +1 -1
- package/model/listSyncsFromWarehouseV1Output.ts +1 -1
- package/model/listTrackingPlans200Response.ts +1 -1
- package/model/listTrackingPlansV1Output.ts +1 -1
- package/model/listTransformations200Response.ts +1 -1
- package/model/listTransformationsBetaOutput.ts +1 -1
- package/model/listUserGroups200Response.ts +1 -1
- package/model/listUserGroupsFromUser200Response.ts +1 -1
- package/model/listUserGroupsFromUserV1Output.ts +1 -1
- package/model/listUserGroupsV1Output.ts +1 -1
- package/model/listUsers200Response.ts +1 -1
- package/model/listUsersFromUserGroup200Response.ts +1 -1
- package/model/listUsersFromUserGroupV1Output.ts +1 -1
- package/model/listUsersV1Output.ts +1 -1
- package/model/listWarehouses200Response.ts +1 -1
- package/model/listWarehousesV1Output.ts +1 -1
- package/model/listWorkspaceRegulations200Response.ts +1 -1
- package/model/listWorkspaceRegulationsV1Output.ts +1 -1
- package/model/logos.ts +2 -1
- package/model/logos1.ts +2 -1
- package/model/logos2.ts +2 -1
- package/model/logosBeta.ts +1 -1
- package/model/messageSubscriptionResponse.ts +1 -1
- package/model/messageSubscriptionResponseError.ts +1 -1
- package/model/messagesSubscriptionRequest.ts +1 -1
- package/model/metadata.ts +2 -1
- package/model/metadata1.ts +2 -1
- package/model/metadata2.ts +2 -1
- package/model/metricBeta.ts +1 -1
- package/model/minimalUserGroupV1.ts +1 -1
- package/model/minimalUserV1.ts +1 -1
- package/model/models.ts +3 -0
- package/model/mtuSnapshotV1.ts +1 -1
- package/model/pagination.ts +2 -1
- package/model/paginationInput.ts +1 -1
- package/model/paginationOutput.ts +1 -1
- package/model/permissionInputV1.ts +1 -1
- package/model/permissionResourceV1.ts +1 -1
- package/model/permissionV1.ts +1 -1
- package/model/previewDestinationFilter200Response.ts +1 -1
- package/model/previewDestinationFilterV1.ts +1 -1
- package/model/previewDestinationFilterV1Input.ts +1 -1
- package/model/previewDestinationFilterV1Output.ts +3 -3
- package/model/propertyRenameBeta.ts +1 -1
- package/model/propertyValueTransformationBeta.ts +47 -0
- package/model/regulation.ts +1 -1
- package/model/regulationListEntryV1.ts +1 -1
- package/model/removeFilterFromDestination200Response.ts +1 -1
- package/model/removeFilterFromDestinationV1Output.ts +1 -1
- package/model/removeRuleV1.ts +1 -1
- package/model/removeRulesFromTrackingPlan200Response.ts +1 -1
- package/model/removeRulesFromTrackingPlanV1Output.ts +1 -1
- package/model/removeSourceConnectionFromWarehouse200Response.ts +1 -1
- package/model/removeSourceConnectionFromWarehouseV1Output.ts +1 -1
- package/model/removeSourceFromTrackingPlan200Response.ts +1 -1
- package/model/removeSourceFromTrackingPlanV1Output.ts +1 -1
- package/model/removeSubscriptionFromDestination200Response.ts +1 -1
- package/model/removeSubscriptionFromDestinationAlphaOutput.ts +1 -1
- package/model/removeUsersFromUserGroup200Response.ts +1 -1
- package/model/removeUsersFromUserGroupV1Output.ts +1 -1
- package/model/replaceAdvancedSyncScheduleForWarehouse200Response.ts +1 -1
- package/model/replaceAdvancedSyncScheduleForWarehouseV1Input.ts +1 -1
- package/model/replaceAdvancedSyncScheduleForWarehouseV1Output.ts +1 -1
- package/model/replaceLabelsInSource200Response.ts +4 -4
- package/model/replaceLabelsInSource200Response1.ts +4 -4
- package/model/replaceLabelsInSourceAlphaInput.ts +1 -1
- package/model/replaceLabelsInSourceAlphaOutput.ts +1 -1
- package/model/replaceLabelsInSourceV1Input.ts +1 -1
- package/model/replaceLabelsInSourceV1Output.ts +1 -1
- package/model/replaceMessagingSubscriptionsInSpaces200Response.ts +1 -1
- package/model/replaceMessagingSubscriptionsInSpacesAlphaInput.ts +1 -1
- package/model/replaceMessagingSubscriptionsInSpacesAlphaOutput.ts +1 -1
- package/model/replacePermissionsForUser200Response.ts +1 -1
- package/model/replacePermissionsForUserGroup200Response.ts +1 -1
- package/model/replacePermissionsForUserGroupV1Input.ts +1 -1
- package/model/replacePermissionsForUserGroupV1Output.ts +1 -1
- package/model/replacePermissionsForUserV1Input.ts +1 -1
- package/model/replacePermissionsForUserV1Output.ts +1 -1
- package/model/replaceRulesInTrackingPlan200Response.ts +1 -1
- package/model/replaceRulesInTrackingPlanV1Input.ts +1 -1
- package/model/replaceRulesInTrackingPlanV1Output.ts +1 -1
- package/model/replaceUsersInUserGroup200Response.ts +1 -1
- package/model/replaceUsersInUserGroupV1Input.ts +1 -1
- package/model/replaceUsersInUserGroupV1Output.ts +1 -1
- package/model/requestError.ts +1 -1
- package/model/requestErrorEnvelope.ts +1 -1
- package/model/resourceV1.ts +1 -1
- package/model/roleV1.ts +1 -1
- package/model/ruleV1.ts +1 -1
- package/model/schedule.ts +2 -1
- package/model/schedule1.ts +2 -1
- package/model/schedule2.ts +2 -1
- package/model/settings.ts +2 -1
- package/model/settings1.ts +2 -1
- package/model/source.ts +2 -1
- package/model/source1.ts +3 -2
- package/model/source2.ts +3 -2
- package/model/source3.ts +3 -2
- package/model/source4.ts +3 -2
- package/model/source5.ts +3 -2
- package/model/source6.ts +3 -2
- package/model/sourceAPICallSnapshotV1.ts +1 -1
- package/model/sourceAlpha.ts +2 -2
- package/model/sourceEventVolumeDatapointV1.ts +1 -1
- package/model/sourceEventVolumeV1.ts +1 -1
- package/model/sourceMetadata.ts +2 -1
- package/model/sourceMetadataV1.ts +1 -1
- package/model/sourceSettingsOutputV1.ts +1 -1
- package/model/sourceV1.ts +2 -2
- package/model/space.ts +1 -1
- package/model/streamStatusV1.ts +1 -1
- package/model/subscription.ts +3 -2
- package/model/supportedFeatures.ts +2 -1
- package/model/supportedMethods.ts +2 -1
- package/model/supportedPlatforms.ts +2 -1
- package/model/suppressedInner.ts +1 -1
- package/model/syncNoticeV1.ts +1 -1
- package/model/syncV1.ts +1 -1
- package/model/track.ts +2 -1
- package/model/trackSourceSettingsV1.ts +1 -1
- package/model/trackingPlan.ts +2 -1
- package/model/trackingPlan1.ts +2 -1
- package/model/trackingPlanV1.ts +1 -1
- package/model/transformation.ts +12 -1
- package/model/transformation1.ts +12 -1
- package/model/transformation2.ts +12 -1
- package/model/transformationBeta.ts +11 -1
- package/model/updateDestination200Response.ts +1 -1
- package/model/updateDestinationV1Input.ts +1 -1
- package/model/updateDestinationV1Output.ts +1 -1
- package/model/updateFilterForDestination200Response.ts +1 -1
- package/model/updateFilterForDestinationV1Input.ts +1 -1
- package/model/updateFilterForDestinationV1Output.ts +1 -1
- package/model/updateFunction200Response.ts +1 -1
- package/model/updateFunctionV1Input.ts +1 -1
- package/model/updateFunctionV1Output.ts +1 -1
- package/model/updateRulesInTrackingPlan200Response.ts +1 -1
- package/model/updateRulesInTrackingPlanV1Input.ts +1 -1
- package/model/updateRulesInTrackingPlanV1Output.ts +1 -1
- package/model/updateSchemaSettingsInSource200Response.ts +1 -1
- package/model/updateSchemaSettingsInSourceV1Input.ts +1 -1
- package/model/updateSchemaSettingsInSourceV1Output.ts +1 -1
- package/model/updateSelectiveSyncForWarehouse200Response.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseV1Input.ts +1 -1
- package/model/updateSelectiveSyncForWarehouseV1Output.ts +1 -1
- package/model/updateSource200Response.ts +4 -4
- package/model/updateSource200Response1.ts +4 -4
- package/model/updateSourceAlphaInput.ts +2 -2
- package/model/updateSourceAlphaOutput.ts +1 -1
- package/model/updateSourceV1Input.ts +2 -2
- package/model/updateSourceV1Output.ts +1 -1
- package/model/updateSubscriptionForDestination200Response.ts +1 -1
- package/model/updateSubscriptionForDestinationAlphaInput.ts +1 -1
- package/model/updateSubscriptionForDestinationAlphaOutput.ts +1 -1
- package/model/updateTrackingPlan200Response.ts +1 -1
- package/model/updateTrackingPlanV1Input.ts +1 -1
- package/model/updateTrackingPlanV1Output.ts +1 -1
- package/model/updateTransformation200Response.ts +1 -1
- package/model/updateTransformationBetaInput.ts +11 -1
- package/model/updateTransformationBetaOutput.ts +1 -1
- package/model/updateUserGroup200Response.ts +1 -1
- package/model/updateUserGroupV1Input.ts +1 -1
- package/model/updateUserGroupV1Output.ts +1 -1
- package/model/updateWarehouse200Response.ts +1 -1
- package/model/updateWarehouseV1Input.ts +2 -2
- package/model/updateWarehouseV1Output.ts +1 -1
- package/model/upsertRuleV1.ts +1 -1
- package/model/user.ts +2 -1
- package/model/userGroup.ts +2 -1
- package/model/userGroup1.ts +2 -1
- package/model/userGroup2.ts +2 -1
- package/model/userGroup3.ts +2 -1
- package/model/userGroupV1.ts +1 -1
- package/model/userV1.ts +1 -1
- package/model/usersPerSourceSnapshotV1.ts +1 -1
- package/model/warehouse.ts +3 -2
- package/model/warehouse1.ts +3 -2
- package/model/warehouse2.ts +3 -2
- package/model/warehouseAdvancedSyncV1.ts +1 -1
- package/model/warehouseMetadata.ts +2 -1
- package/model/warehouseMetadataV1.ts +1 -1
- package/model/warehouseSelectiveSyncItemV1.ts +1 -1
- package/model/warehouseSyncOverrideV1.ts +1 -1
- package/model/warehouseV1.ts +2 -2
- package/model/workspace.ts +2 -1
- package/model/workspaceV1.ts +1 -1
- package/package.json +1 -1
- package/tests/__snapshots__/smoke.test.ts.snap +9 -9
- package/tests/smoke.test.ts +6 -6
package/dist/api/iAMGroupsApi.js
CHANGED
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -112,7 +112,7 @@ var IAMGroupsApi = (function () {
|
|
|
112
112
|
IAMGroupsApi.prototype.addInterceptor = function (interceptor) {
|
|
113
113
|
this.interceptors.push(interceptor);
|
|
114
114
|
};
|
|
115
|
-
IAMGroupsApi.prototype.
|
|
115
|
+
IAMGroupsApi.prototype.addPermissionsToUserGroup = function (userGroupId, AddPermissionsToUserGroupV1Input, options) {
|
|
116
116
|
if (options === void 0) { options = { headers: {} }; }
|
|
117
117
|
return __awaiter(this, void 0, void 0, function () {
|
|
118
118
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_1, _i, _a, interceptor;
|
|
@@ -123,22 +123,24 @@ var IAMGroupsApi = (function () {
|
|
|
123
123
|
localVarQueryParameters = {};
|
|
124
124
|
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
125
125
|
produces = [
|
|
126
|
-
'application/vnd.segment.
|
|
126
|
+
'application/vnd.segment.v1+json',
|
|
127
127
|
'application/json',
|
|
128
|
+
'application/vnd.segment.v1beta+json',
|
|
129
|
+
'application/vnd.segment.v1alpha+json',
|
|
128
130
|
];
|
|
129
131
|
if (produces.indexOf('application/json') >= 0) {
|
|
130
|
-
localVarHeaderParams.Accept =
|
|
132
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
131
133
|
}
|
|
132
134
|
else {
|
|
133
|
-
localVarHeaderParams.Accept = '
|
|
135
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
134
136
|
}
|
|
135
137
|
localVarFormParams = {};
|
|
136
138
|
if (userGroupId === null || userGroupId === undefined) {
|
|
137
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling
|
|
139
|
+
throw new Error('Required parameter userGroupId was null or undefined when calling addPermissionsToUserGroup.');
|
|
138
140
|
}
|
|
139
141
|
if (AddPermissionsToUserGroupV1Input === null ||
|
|
140
142
|
AddPermissionsToUserGroupV1Input === undefined) {
|
|
141
|
-
throw new Error('Required parameter AddPermissionsToUserGroupV1Input was null or undefined when calling
|
|
143
|
+
throw new Error('Required parameter AddPermissionsToUserGroupV1Input was null or undefined when calling addPermissionsToUserGroup.');
|
|
142
144
|
}
|
|
143
145
|
Object.assign(localVarHeaderParams, options.headers);
|
|
144
146
|
localVarUseFormData = false;
|
|
@@ -201,33 +203,35 @@ var IAMGroupsApi = (function () {
|
|
|
201
203
|
});
|
|
202
204
|
});
|
|
203
205
|
};
|
|
204
|
-
IAMGroupsApi.prototype.
|
|
206
|
+
IAMGroupsApi.prototype.addUsersToUserGroup = function (userGroupId, AddUsersToUserGroupV1Input, options) {
|
|
205
207
|
if (options === void 0) { options = { headers: {} }; }
|
|
206
208
|
return __awaiter(this, void 0, void 0, function () {
|
|
207
209
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_2, _i, _a, interceptor;
|
|
208
210
|
var _this = this;
|
|
209
211
|
return __generator(this, function (_b) {
|
|
210
212
|
localVarPath = this.basePath +
|
|
211
|
-
'/groups/{userGroupId}/
|
|
213
|
+
'/groups/{userGroupId}/users'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
212
214
|
localVarQueryParameters = {};
|
|
213
215
|
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
214
216
|
produces = [
|
|
215
|
-
'application/vnd.segment.
|
|
217
|
+
'application/vnd.segment.v1+json',
|
|
216
218
|
'application/json',
|
|
219
|
+
'application/vnd.segment.v1beta+json',
|
|
220
|
+
'application/vnd.segment.v1alpha+json',
|
|
217
221
|
];
|
|
218
222
|
if (produces.indexOf('application/json') >= 0) {
|
|
219
|
-
localVarHeaderParams.Accept =
|
|
223
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
220
224
|
}
|
|
221
225
|
else {
|
|
222
|
-
localVarHeaderParams.Accept = '
|
|
226
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
223
227
|
}
|
|
224
228
|
localVarFormParams = {};
|
|
225
229
|
if (userGroupId === null || userGroupId === undefined) {
|
|
226
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling
|
|
230
|
+
throw new Error('Required parameter userGroupId was null or undefined when calling addUsersToUserGroup.');
|
|
227
231
|
}
|
|
228
|
-
if (
|
|
229
|
-
|
|
230
|
-
throw new Error('Required parameter
|
|
232
|
+
if (AddUsersToUserGroupV1Input === null ||
|
|
233
|
+
AddUsersToUserGroupV1Input === undefined) {
|
|
234
|
+
throw new Error('Required parameter AddUsersToUserGroupV1Input was null or undefined when calling addUsersToUserGroup.');
|
|
231
235
|
}
|
|
232
236
|
Object.assign(localVarHeaderParams, options.headers);
|
|
233
237
|
localVarUseFormData = false;
|
|
@@ -238,7 +242,7 @@ var IAMGroupsApi = (function () {
|
|
|
238
242
|
uri: localVarPath,
|
|
239
243
|
useQuerystring: this._useQuerystring,
|
|
240
244
|
json: true,
|
|
241
|
-
body: models_1.ObjectSerializer.serialize(
|
|
245
|
+
body: models_1.ObjectSerializer.serialize(AddUsersToUserGroupV1Input, 'AddUsersToUserGroupV1Input'),
|
|
242
246
|
};
|
|
243
247
|
authenticationPromise = Promise.resolve();
|
|
244
248
|
if (this.authentications.token.accessToken) {
|
|
@@ -277,7 +281,7 @@ var IAMGroupsApi = (function () {
|
|
|
277
281
|
if (response.statusCode &&
|
|
278
282
|
response.statusCode >= 200 &&
|
|
279
283
|
response.statusCode <= 299) {
|
|
280
|
-
body = models_1.ObjectSerializer.deserialize(body, '
|
|
284
|
+
body = models_1.ObjectSerializer.deserialize(body, 'AddUsersToUserGroup200Response');
|
|
281
285
|
resolve({ response: response, body: body });
|
|
282
286
|
}
|
|
283
287
|
else {
|
|
@@ -290,33 +294,31 @@ var IAMGroupsApi = (function () {
|
|
|
290
294
|
});
|
|
291
295
|
});
|
|
292
296
|
};
|
|
293
|
-
IAMGroupsApi.prototype.
|
|
297
|
+
IAMGroupsApi.prototype.createUserGroup = function (CreateUserGroupV1Input, options) {
|
|
294
298
|
if (options === void 0) { options = { headers: {} }; }
|
|
295
299
|
return __awaiter(this, void 0, void 0, function () {
|
|
296
300
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_3, _i, _a, interceptor;
|
|
297
301
|
var _this = this;
|
|
298
302
|
return __generator(this, function (_b) {
|
|
299
|
-
localVarPath = this.basePath +
|
|
300
|
-
'/groups/{userGroupId}/permissions'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
303
|
+
localVarPath = this.basePath + '/groups';
|
|
301
304
|
localVarQueryParameters = {};
|
|
302
305
|
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
303
306
|
produces = [
|
|
304
307
|
'application/vnd.segment.v1+json',
|
|
305
308
|
'application/json',
|
|
309
|
+
'application/vnd.segment.v1beta+json',
|
|
310
|
+
'application/vnd.segment.v1alpha+json',
|
|
306
311
|
];
|
|
307
312
|
if (produces.indexOf('application/json') >= 0) {
|
|
308
|
-
localVarHeaderParams.Accept =
|
|
313
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
309
314
|
}
|
|
310
315
|
else {
|
|
311
|
-
localVarHeaderParams.Accept = '
|
|
316
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
312
317
|
}
|
|
313
318
|
localVarFormParams = {};
|
|
314
|
-
if (
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
if (AddPermissionsToUserGroupV1Input === null ||
|
|
318
|
-
AddPermissionsToUserGroupV1Input === undefined) {
|
|
319
|
-
throw new Error('Required parameter AddPermissionsToUserGroupV1Input was null or undefined when calling addPermissionsToUserGroupCurrent.');
|
|
319
|
+
if (CreateUserGroupV1Input === null ||
|
|
320
|
+
CreateUserGroupV1Input === undefined) {
|
|
321
|
+
throw new Error('Required parameter CreateUserGroupV1Input was null or undefined when calling createUserGroup.');
|
|
320
322
|
}
|
|
321
323
|
Object.assign(localVarHeaderParams, options.headers);
|
|
322
324
|
localVarUseFormData = false;
|
|
@@ -327,7 +329,7 @@ var IAMGroupsApi = (function () {
|
|
|
327
329
|
uri: localVarPath,
|
|
328
330
|
useQuerystring: this._useQuerystring,
|
|
329
331
|
json: true,
|
|
330
|
-
body: models_1.ObjectSerializer.serialize(
|
|
332
|
+
body: models_1.ObjectSerializer.serialize(CreateUserGroupV1Input, 'CreateUserGroupV1Input'),
|
|
331
333
|
};
|
|
332
334
|
authenticationPromise = Promise.resolve();
|
|
333
335
|
if (this.authentications.token.accessToken) {
|
|
@@ -366,7 +368,7 @@ var IAMGroupsApi = (function () {
|
|
|
366
368
|
if (response.statusCode &&
|
|
367
369
|
response.statusCode >= 200 &&
|
|
368
370
|
response.statusCode <= 299) {
|
|
369
|
-
body = models_1.ObjectSerializer.deserialize(body, '
|
|
371
|
+
body = models_1.ObjectSerializer.deserialize(body, 'CreateUserGroup200Response');
|
|
370
372
|
resolve({ response: response, body: body });
|
|
371
373
|
}
|
|
372
374
|
else {
|
|
@@ -379,44 +381,41 @@ var IAMGroupsApi = (function () {
|
|
|
379
381
|
});
|
|
380
382
|
});
|
|
381
383
|
};
|
|
382
|
-
IAMGroupsApi.prototype.
|
|
384
|
+
IAMGroupsApi.prototype.deleteUserGroup = function (userGroupId, options) {
|
|
383
385
|
if (options === void 0) { options = { headers: {} }; }
|
|
384
386
|
return __awaiter(this, void 0, void 0, function () {
|
|
385
387
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_4, _i, _a, interceptor;
|
|
386
388
|
var _this = this;
|
|
387
389
|
return __generator(this, function (_b) {
|
|
388
390
|
localVarPath = this.basePath +
|
|
389
|
-
'/groups/{userGroupId}
|
|
391
|
+
'/groups/{userGroupId}'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
390
392
|
localVarQueryParameters = {};
|
|
391
393
|
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
392
394
|
produces = [
|
|
393
395
|
'application/vnd.segment.v1+json',
|
|
394
396
|
'application/json',
|
|
397
|
+
'application/vnd.segment.v1beta+json',
|
|
398
|
+
'application/vnd.segment.v1alpha+json',
|
|
395
399
|
];
|
|
396
400
|
if (produces.indexOf('application/json') >= 0) {
|
|
397
|
-
localVarHeaderParams.Accept =
|
|
401
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
398
402
|
}
|
|
399
403
|
else {
|
|
400
|
-
localVarHeaderParams.Accept = '
|
|
404
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
401
405
|
}
|
|
402
406
|
localVarFormParams = {};
|
|
403
407
|
if (userGroupId === null || userGroupId === undefined) {
|
|
404
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling
|
|
405
|
-
}
|
|
406
|
-
if (AddPermissionsToUserGroupV1Input === null ||
|
|
407
|
-
AddPermissionsToUserGroupV1Input === undefined) {
|
|
408
|
-
throw new Error('Required parameter AddPermissionsToUserGroupV1Input was null or undefined when calling addPermissionsToUserGroupV1.');
|
|
408
|
+
throw new Error('Required parameter userGroupId was null or undefined when calling deleteUserGroup.');
|
|
409
409
|
}
|
|
410
410
|
Object.assign(localVarHeaderParams, options.headers);
|
|
411
411
|
localVarUseFormData = false;
|
|
412
412
|
localVarRequestOptions = {
|
|
413
|
-
method: '
|
|
413
|
+
method: 'DELETE',
|
|
414
414
|
qs: localVarQueryParameters,
|
|
415
415
|
headers: localVarHeaderParams,
|
|
416
416
|
uri: localVarPath,
|
|
417
417
|
useQuerystring: this._useQuerystring,
|
|
418
418
|
json: true,
|
|
419
|
-
body: models_1.ObjectSerializer.serialize(AddPermissionsToUserGroupV1Input, 'AddPermissionsToUserGroupV1Input'),
|
|
420
419
|
};
|
|
421
420
|
authenticationPromise = Promise.resolve();
|
|
422
421
|
if (this.authentications.token.accessToken) {
|
|
@@ -455,7 +454,7 @@ var IAMGroupsApi = (function () {
|
|
|
455
454
|
if (response.statusCode &&
|
|
456
455
|
response.statusCode >= 200 &&
|
|
457
456
|
response.statusCode <= 299) {
|
|
458
|
-
body = models_1.ObjectSerializer.deserialize(body, '
|
|
457
|
+
body = models_1.ObjectSerializer.deserialize(body, 'DeleteUserGroup200Response');
|
|
459
458
|
resolve({ response: response, body: body });
|
|
460
459
|
}
|
|
461
460
|
else {
|
|
@@ -468,44 +467,41 @@ var IAMGroupsApi = (function () {
|
|
|
468
467
|
});
|
|
469
468
|
});
|
|
470
469
|
};
|
|
471
|
-
IAMGroupsApi.prototype.
|
|
470
|
+
IAMGroupsApi.prototype.getUserGroup = function (userGroupId, options) {
|
|
472
471
|
if (options === void 0) { options = { headers: {} }; }
|
|
473
472
|
return __awaiter(this, void 0, void 0, function () {
|
|
474
473
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_5, _i, _a, interceptor;
|
|
475
474
|
var _this = this;
|
|
476
475
|
return __generator(this, function (_b) {
|
|
477
476
|
localVarPath = this.basePath +
|
|
478
|
-
'/groups/{userGroupId}
|
|
477
|
+
'/groups/{userGroupId}'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
479
478
|
localVarQueryParameters = {};
|
|
480
479
|
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
481
480
|
produces = [
|
|
482
|
-
'application/vnd.segment.
|
|
481
|
+
'application/vnd.segment.v1+json',
|
|
483
482
|
'application/json',
|
|
483
|
+
'application/vnd.segment.v1beta+json',
|
|
484
|
+
'application/vnd.segment.v1alpha+json',
|
|
484
485
|
];
|
|
485
486
|
if (produces.indexOf('application/json') >= 0) {
|
|
486
|
-
localVarHeaderParams.Accept =
|
|
487
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
487
488
|
}
|
|
488
489
|
else {
|
|
489
|
-
localVarHeaderParams.Accept = '
|
|
490
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
490
491
|
}
|
|
491
492
|
localVarFormParams = {};
|
|
492
493
|
if (userGroupId === null || userGroupId === undefined) {
|
|
493
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling
|
|
494
|
-
}
|
|
495
|
-
if (AddUsersToUserGroupV1Input === null ||
|
|
496
|
-
AddUsersToUserGroupV1Input === undefined) {
|
|
497
|
-
throw new Error('Required parameter AddUsersToUserGroupV1Input was null or undefined when calling addUsersToUserGroupAlpha.');
|
|
494
|
+
throw new Error('Required parameter userGroupId was null or undefined when calling getUserGroup.');
|
|
498
495
|
}
|
|
499
496
|
Object.assign(localVarHeaderParams, options.headers);
|
|
500
497
|
localVarUseFormData = false;
|
|
501
498
|
localVarRequestOptions = {
|
|
502
|
-
method: '
|
|
499
|
+
method: 'GET',
|
|
503
500
|
qs: localVarQueryParameters,
|
|
504
501
|
headers: localVarHeaderParams,
|
|
505
502
|
uri: localVarPath,
|
|
506
503
|
useQuerystring: this._useQuerystring,
|
|
507
504
|
json: true,
|
|
508
|
-
body: models_1.ObjectSerializer.serialize(AddUsersToUserGroupV1Input, 'AddUsersToUserGroupV1Input'),
|
|
509
505
|
};
|
|
510
506
|
authenticationPromise = Promise.resolve();
|
|
511
507
|
if (this.authentications.token.accessToken) {
|
|
@@ -544,7 +540,7 @@ var IAMGroupsApi = (function () {
|
|
|
544
540
|
if (response.statusCode &&
|
|
545
541
|
response.statusCode >= 200 &&
|
|
546
542
|
response.statusCode <= 299) {
|
|
547
|
-
body = models_1.ObjectSerializer.deserialize(body, '
|
|
543
|
+
body = models_1.ObjectSerializer.deserialize(body, 'GetUserGroup200Response');
|
|
548
544
|
resolve({ response: response, body: body });
|
|
549
545
|
}
|
|
550
546
|
else {
|
|
@@ -557,44 +553,47 @@ var IAMGroupsApi = (function () {
|
|
|
557
553
|
});
|
|
558
554
|
});
|
|
559
555
|
};
|
|
560
|
-
IAMGroupsApi.prototype.
|
|
556
|
+
IAMGroupsApi.prototype.listInvitesFromUserGroup = function (userGroupId, pagination, options) {
|
|
561
557
|
if (options === void 0) { options = { headers: {} }; }
|
|
562
558
|
return __awaiter(this, void 0, void 0, function () {
|
|
563
559
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_6, _i, _a, interceptor;
|
|
564
560
|
var _this = this;
|
|
565
561
|
return __generator(this, function (_b) {
|
|
566
562
|
localVarPath = this.basePath +
|
|
567
|
-
'/groups/{userGroupId}/
|
|
563
|
+
'/groups/{userGroupId}/invites'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
568
564
|
localVarQueryParameters = {};
|
|
569
565
|
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
570
566
|
produces = [
|
|
571
|
-
'application/vnd.segment.
|
|
567
|
+
'application/vnd.segment.v1+json',
|
|
572
568
|
'application/json',
|
|
569
|
+
'application/vnd.segment.v1beta+json',
|
|
570
|
+
'application/vnd.segment.v1alpha+json',
|
|
573
571
|
];
|
|
574
572
|
if (produces.indexOf('application/json') >= 0) {
|
|
575
|
-
localVarHeaderParams.Accept =
|
|
573
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
576
574
|
}
|
|
577
575
|
else {
|
|
578
|
-
localVarHeaderParams.Accept = '
|
|
576
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
579
577
|
}
|
|
580
578
|
localVarFormParams = {};
|
|
581
579
|
if (userGroupId === null || userGroupId === undefined) {
|
|
582
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling
|
|
580
|
+
throw new Error('Required parameter userGroupId was null or undefined when calling listInvitesFromUserGroup.');
|
|
583
581
|
}
|
|
584
|
-
if (
|
|
585
|
-
|
|
586
|
-
|
|
582
|
+
if (pagination === null || pagination === undefined) {
|
|
583
|
+
throw new Error('Required parameter pagination was null or undefined when calling listInvitesFromUserGroup.');
|
|
584
|
+
}
|
|
585
|
+
if (pagination !== undefined) {
|
|
586
|
+
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
587
587
|
}
|
|
588
588
|
Object.assign(localVarHeaderParams, options.headers);
|
|
589
589
|
localVarUseFormData = false;
|
|
590
590
|
localVarRequestOptions = {
|
|
591
|
-
method: '
|
|
591
|
+
method: 'GET',
|
|
592
592
|
qs: localVarQueryParameters,
|
|
593
593
|
headers: localVarHeaderParams,
|
|
594
594
|
uri: localVarPath,
|
|
595
595
|
useQuerystring: this._useQuerystring,
|
|
596
596
|
json: true,
|
|
597
|
-
body: models_1.ObjectSerializer.serialize(AddUsersToUserGroupV1Input, 'AddUsersToUserGroupV1Input'),
|
|
598
597
|
};
|
|
599
598
|
authenticationPromise = Promise.resolve();
|
|
600
599
|
if (this.authentications.token.accessToken) {
|
|
@@ -633,7 +632,7 @@ var IAMGroupsApi = (function () {
|
|
|
633
632
|
if (response.statusCode &&
|
|
634
633
|
response.statusCode >= 200 &&
|
|
635
634
|
response.statusCode <= 299) {
|
|
636
|
-
body = models_1.ObjectSerializer.deserialize(body, '
|
|
635
|
+
body = models_1.ObjectSerializer.deserialize(body, 'ListInvitesFromUserGroup200Response');
|
|
637
636
|
resolve({ response: response, body: body });
|
|
638
637
|
}
|
|
639
638
|
else {
|
|
@@ -646,44 +645,43 @@ var IAMGroupsApi = (function () {
|
|
|
646
645
|
});
|
|
647
646
|
});
|
|
648
647
|
};
|
|
649
|
-
IAMGroupsApi.prototype.
|
|
648
|
+
IAMGroupsApi.prototype.listUserGroups = function (pagination, options) {
|
|
650
649
|
if (options === void 0) { options = { headers: {} }; }
|
|
651
650
|
return __awaiter(this, void 0, void 0, function () {
|
|
652
651
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_7, _i, _a, interceptor;
|
|
653
652
|
var _this = this;
|
|
654
653
|
return __generator(this, function (_b) {
|
|
655
|
-
localVarPath = this.basePath +
|
|
656
|
-
'/groups/{userGroupId}/users'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
654
|
+
localVarPath = this.basePath + '/groups';
|
|
657
655
|
localVarQueryParameters = {};
|
|
658
656
|
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
659
657
|
produces = [
|
|
660
658
|
'application/vnd.segment.v1+json',
|
|
661
659
|
'application/json',
|
|
660
|
+
'application/vnd.segment.v1beta+json',
|
|
661
|
+
'application/vnd.segment.v1alpha+json',
|
|
662
662
|
];
|
|
663
663
|
if (produces.indexOf('application/json') >= 0) {
|
|
664
|
-
localVarHeaderParams.Accept =
|
|
664
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
665
665
|
}
|
|
666
666
|
else {
|
|
667
|
-
localVarHeaderParams.Accept = '
|
|
667
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
668
668
|
}
|
|
669
669
|
localVarFormParams = {};
|
|
670
|
-
if (
|
|
671
|
-
throw new Error('Required parameter
|
|
670
|
+
if (pagination === null || pagination === undefined) {
|
|
671
|
+
throw new Error('Required parameter pagination was null or undefined when calling listUserGroups.');
|
|
672
672
|
}
|
|
673
|
-
if (
|
|
674
|
-
|
|
675
|
-
throw new Error('Required parameter AddUsersToUserGroupV1Input was null or undefined when calling addUsersToUserGroupCurrent.');
|
|
673
|
+
if (pagination !== undefined) {
|
|
674
|
+
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
676
675
|
}
|
|
677
676
|
Object.assign(localVarHeaderParams, options.headers);
|
|
678
677
|
localVarUseFormData = false;
|
|
679
678
|
localVarRequestOptions = {
|
|
680
|
-
method: '
|
|
679
|
+
method: 'GET',
|
|
681
680
|
qs: localVarQueryParameters,
|
|
682
681
|
headers: localVarHeaderParams,
|
|
683
682
|
uri: localVarPath,
|
|
684
683
|
useQuerystring: this._useQuerystring,
|
|
685
684
|
json: true,
|
|
686
|
-
body: models_1.ObjectSerializer.serialize(AddUsersToUserGroupV1Input, 'AddUsersToUserGroupV1Input'),
|
|
687
685
|
};
|
|
688
686
|
authenticationPromise = Promise.resolve();
|
|
689
687
|
if (this.authentications.token.accessToken) {
|
|
@@ -722,7 +720,7 @@ var IAMGroupsApi = (function () {
|
|
|
722
720
|
if (response.statusCode &&
|
|
723
721
|
response.statusCode >= 200 &&
|
|
724
722
|
response.statusCode <= 299) {
|
|
725
|
-
body = models_1.ObjectSerializer.deserialize(body, '
|
|
723
|
+
body = models_1.ObjectSerializer.deserialize(body, 'ListUserGroups200Response');
|
|
726
724
|
resolve({ response: response, body: body });
|
|
727
725
|
}
|
|
728
726
|
else {
|
|
@@ -735,7 +733,7 @@ var IAMGroupsApi = (function () {
|
|
|
735
733
|
});
|
|
736
734
|
});
|
|
737
735
|
};
|
|
738
|
-
IAMGroupsApi.prototype.
|
|
736
|
+
IAMGroupsApi.prototype.listUsersFromUserGroup = function (userGroupId, pagination, options) {
|
|
739
737
|
if (options === void 0) { options = { headers: {} }; }
|
|
740
738
|
return __awaiter(this, void 0, void 0, function () {
|
|
741
739
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_8, _i, _a, interceptor;
|
|
@@ -748,31 +746,34 @@ var IAMGroupsApi = (function () {
|
|
|
748
746
|
produces = [
|
|
749
747
|
'application/vnd.segment.v1+json',
|
|
750
748
|
'application/json',
|
|
749
|
+
'application/vnd.segment.v1beta+json',
|
|
750
|
+
'application/vnd.segment.v1alpha+json',
|
|
751
751
|
];
|
|
752
752
|
if (produces.indexOf('application/json') >= 0) {
|
|
753
|
-
localVarHeaderParams.Accept =
|
|
753
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
754
754
|
}
|
|
755
755
|
else {
|
|
756
|
-
localVarHeaderParams.Accept = '
|
|
756
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
757
757
|
}
|
|
758
758
|
localVarFormParams = {};
|
|
759
759
|
if (userGroupId === null || userGroupId === undefined) {
|
|
760
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling
|
|
760
|
+
throw new Error('Required parameter userGroupId was null or undefined when calling listUsersFromUserGroup.');
|
|
761
761
|
}
|
|
762
|
-
if (
|
|
763
|
-
|
|
764
|
-
|
|
762
|
+
if (pagination === null || pagination === undefined) {
|
|
763
|
+
throw new Error('Required parameter pagination was null or undefined when calling listUsersFromUserGroup.');
|
|
764
|
+
}
|
|
765
|
+
if (pagination !== undefined) {
|
|
766
|
+
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
765
767
|
}
|
|
766
768
|
Object.assign(localVarHeaderParams, options.headers);
|
|
767
769
|
localVarUseFormData = false;
|
|
768
770
|
localVarRequestOptions = {
|
|
769
|
-
method: '
|
|
771
|
+
method: 'GET',
|
|
770
772
|
qs: localVarQueryParameters,
|
|
771
773
|
headers: localVarHeaderParams,
|
|
772
774
|
uri: localVarPath,
|
|
773
775
|
useQuerystring: this._useQuerystring,
|
|
774
776
|
json: true,
|
|
775
|
-
body: models_1.ObjectSerializer.serialize(AddUsersToUserGroupV1Input, 'AddUsersToUserGroupV1Input'),
|
|
776
777
|
};
|
|
777
778
|
authenticationPromise = Promise.resolve();
|
|
778
779
|
if (this.authentications.token.accessToken) {
|
|
@@ -811,7 +812,7 @@ var IAMGroupsApi = (function () {
|
|
|
811
812
|
if (response.statusCode &&
|
|
812
813
|
response.statusCode >= 200 &&
|
|
813
814
|
response.statusCode <= 299) {
|
|
814
|
-
body = models_1.ObjectSerializer.deserialize(body, '
|
|
815
|
+
body = models_1.ObjectSerializer.deserialize(body, 'ListUsersFromUserGroup200Response');
|
|
815
816
|
resolve({ response: response, body: body });
|
|
816
817
|
}
|
|
817
818
|
else {
|
|
@@ -824,40 +825,47 @@ var IAMGroupsApi = (function () {
|
|
|
824
825
|
});
|
|
825
826
|
});
|
|
826
827
|
};
|
|
827
|
-
IAMGroupsApi.prototype.
|
|
828
|
+
IAMGroupsApi.prototype.removeUsersFromUserGroup = function (userGroupId, emails, options) {
|
|
828
829
|
if (options === void 0) { options = { headers: {} }; }
|
|
829
830
|
return __awaiter(this, void 0, void 0, function () {
|
|
830
831
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_9, _i, _a, interceptor;
|
|
831
832
|
var _this = this;
|
|
832
833
|
return __generator(this, function (_b) {
|
|
833
|
-
localVarPath = this.basePath +
|
|
834
|
+
localVarPath = this.basePath +
|
|
835
|
+
'/group/{userGroupId}/users'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
834
836
|
localVarQueryParameters = {};
|
|
835
837
|
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
836
838
|
produces = [
|
|
837
|
-
'application/vnd.segment.
|
|
839
|
+
'application/vnd.segment.v1+json',
|
|
838
840
|
'application/json',
|
|
841
|
+
'application/vnd.segment.v1beta+json',
|
|
842
|
+
'application/vnd.segment.v1alpha+json',
|
|
839
843
|
];
|
|
840
844
|
if (produces.indexOf('application/json') >= 0) {
|
|
841
|
-
localVarHeaderParams.Accept =
|
|
845
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
842
846
|
}
|
|
843
847
|
else {
|
|
844
|
-
localVarHeaderParams.Accept = '
|
|
848
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
845
849
|
}
|
|
846
850
|
localVarFormParams = {};
|
|
847
|
-
if (
|
|
848
|
-
|
|
849
|
-
|
|
851
|
+
if (userGroupId === null || userGroupId === undefined) {
|
|
852
|
+
throw new Error('Required parameter userGroupId was null or undefined when calling removeUsersFromUserGroup.');
|
|
853
|
+
}
|
|
854
|
+
if (emails === null || emails === undefined) {
|
|
855
|
+
throw new Error('Required parameter emails was null or undefined when calling removeUsersFromUserGroup.');
|
|
856
|
+
}
|
|
857
|
+
if (emails !== undefined) {
|
|
858
|
+
localVarQueryParameters['emails'] = models_1.ObjectSerializer.serialize(emails, 'Array<string>');
|
|
850
859
|
}
|
|
851
860
|
Object.assign(localVarHeaderParams, options.headers);
|
|
852
861
|
localVarUseFormData = false;
|
|
853
862
|
localVarRequestOptions = {
|
|
854
|
-
method: '
|
|
863
|
+
method: 'DELETE',
|
|
855
864
|
qs: localVarQueryParameters,
|
|
856
865
|
headers: localVarHeaderParams,
|
|
857
866
|
uri: localVarPath,
|
|
858
867
|
useQuerystring: this._useQuerystring,
|
|
859
868
|
json: true,
|
|
860
|
-
body: models_1.ObjectSerializer.serialize(CreateUserGroupV1Input, 'CreateUserGroupV1Input'),
|
|
861
869
|
};
|
|
862
870
|
authenticationPromise = Promise.resolve();
|
|
863
871
|
if (this.authentications.token.accessToken) {
|
|
@@ -896,7 +904,7 @@ var IAMGroupsApi = (function () {
|
|
|
896
904
|
if (response.statusCode &&
|
|
897
905
|
response.statusCode >= 200 &&
|
|
898
906
|
response.statusCode <= 299) {
|
|
899
|
-
body = models_1.ObjectSerializer.deserialize(body, '
|
|
907
|
+
body = models_1.ObjectSerializer.deserialize(body, 'RemoveUsersFromUserGroup200Response');
|
|
900
908
|
resolve({ response: response, body: body });
|
|
901
909
|
}
|
|
902
910
|
else {
|
|
@@ -909,40 +917,46 @@ var IAMGroupsApi = (function () {
|
|
|
909
917
|
});
|
|
910
918
|
});
|
|
911
919
|
};
|
|
912
|
-
IAMGroupsApi.prototype.
|
|
920
|
+
IAMGroupsApi.prototype.replacePermissionsForUserGroup = function (userGroupId, ReplacePermissionsForUserGroupV1Input, options) {
|
|
913
921
|
if (options === void 0) { options = { headers: {} }; }
|
|
914
922
|
return __awaiter(this, void 0, void 0, function () {
|
|
915
923
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_10, _i, _a, interceptor;
|
|
916
924
|
var _this = this;
|
|
917
925
|
return __generator(this, function (_b) {
|
|
918
|
-
localVarPath = this.basePath +
|
|
926
|
+
localVarPath = this.basePath +
|
|
927
|
+
'/groups/{userGroupId}/permissions'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
919
928
|
localVarQueryParameters = {};
|
|
920
929
|
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
921
930
|
produces = [
|
|
922
|
-
'application/vnd.segment.
|
|
931
|
+
'application/vnd.segment.v1+json',
|
|
923
932
|
'application/json',
|
|
933
|
+
'application/vnd.segment.v1beta+json',
|
|
934
|
+
'application/vnd.segment.v1alpha+json',
|
|
924
935
|
];
|
|
925
936
|
if (produces.indexOf('application/json') >= 0) {
|
|
926
|
-
localVarHeaderParams.Accept =
|
|
937
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
927
938
|
}
|
|
928
939
|
else {
|
|
929
|
-
localVarHeaderParams.Accept = '
|
|
940
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
930
941
|
}
|
|
931
942
|
localVarFormParams = {};
|
|
932
|
-
if (
|
|
933
|
-
|
|
934
|
-
|
|
943
|
+
if (userGroupId === null || userGroupId === undefined) {
|
|
944
|
+
throw new Error('Required parameter userGroupId was null or undefined when calling replacePermissionsForUserGroup.');
|
|
945
|
+
}
|
|
946
|
+
if (ReplacePermissionsForUserGroupV1Input === null ||
|
|
947
|
+
ReplacePermissionsForUserGroupV1Input === undefined) {
|
|
948
|
+
throw new Error('Required parameter ReplacePermissionsForUserGroupV1Input was null or undefined when calling replacePermissionsForUserGroup.');
|
|
935
949
|
}
|
|
936
950
|
Object.assign(localVarHeaderParams, options.headers);
|
|
937
951
|
localVarUseFormData = false;
|
|
938
952
|
localVarRequestOptions = {
|
|
939
|
-
method: '
|
|
953
|
+
method: 'PUT',
|
|
940
954
|
qs: localVarQueryParameters,
|
|
941
955
|
headers: localVarHeaderParams,
|
|
942
956
|
uri: localVarPath,
|
|
943
957
|
useQuerystring: this._useQuerystring,
|
|
944
958
|
json: true,
|
|
945
|
-
body: models_1.ObjectSerializer.serialize(
|
|
959
|
+
body: models_1.ObjectSerializer.serialize(ReplacePermissionsForUserGroupV1Input, 'ReplacePermissionsForUserGroupV1Input'),
|
|
946
960
|
};
|
|
947
961
|
authenticationPromise = Promise.resolve();
|
|
948
962
|
if (this.authentications.token.accessToken) {
|
|
@@ -981,7 +995,7 @@ var IAMGroupsApi = (function () {
|
|
|
981
995
|
if (response.statusCode &&
|
|
982
996
|
response.statusCode >= 200 &&
|
|
983
997
|
response.statusCode <= 299) {
|
|
984
|
-
body = models_1.ObjectSerializer.deserialize(body, '
|
|
998
|
+
body = models_1.ObjectSerializer.deserialize(body, 'ReplacePermissionsForUserGroup200Response');
|
|
985
999
|
resolve({ response: response, body: body });
|
|
986
1000
|
}
|
|
987
1001
|
else {
|
|
@@ -994,40 +1008,46 @@ var IAMGroupsApi = (function () {
|
|
|
994
1008
|
});
|
|
995
1009
|
});
|
|
996
1010
|
};
|
|
997
|
-
IAMGroupsApi.prototype.
|
|
1011
|
+
IAMGroupsApi.prototype.replaceUsersInUserGroup = function (userGroupId, ReplaceUsersInUserGroupV1Input, options) {
|
|
998
1012
|
if (options === void 0) { options = { headers: {} }; }
|
|
999
1013
|
return __awaiter(this, void 0, void 0, function () {
|
|
1000
1014
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_11, _i, _a, interceptor;
|
|
1001
1015
|
var _this = this;
|
|
1002
1016
|
return __generator(this, function (_b) {
|
|
1003
|
-
localVarPath = this.basePath +
|
|
1017
|
+
localVarPath = this.basePath +
|
|
1018
|
+
'/group/{userGroupId}/users'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
1004
1019
|
localVarQueryParameters = {};
|
|
1005
1020
|
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1006
1021
|
produces = [
|
|
1007
1022
|
'application/vnd.segment.v1+json',
|
|
1008
1023
|
'application/json',
|
|
1024
|
+
'application/vnd.segment.v1beta+json',
|
|
1025
|
+
'application/vnd.segment.v1alpha+json',
|
|
1009
1026
|
];
|
|
1010
1027
|
if (produces.indexOf('application/json') >= 0) {
|
|
1011
|
-
localVarHeaderParams.Accept =
|
|
1028
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1012
1029
|
}
|
|
1013
1030
|
else {
|
|
1014
|
-
localVarHeaderParams.Accept = '
|
|
1031
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1015
1032
|
}
|
|
1016
1033
|
localVarFormParams = {};
|
|
1017
|
-
if (
|
|
1018
|
-
|
|
1019
|
-
|
|
1034
|
+
if (userGroupId === null || userGroupId === undefined) {
|
|
1035
|
+
throw new Error('Required parameter userGroupId was null or undefined when calling replaceUsersInUserGroup.');
|
|
1036
|
+
}
|
|
1037
|
+
if (ReplaceUsersInUserGroupV1Input === null ||
|
|
1038
|
+
ReplaceUsersInUserGroupV1Input === undefined) {
|
|
1039
|
+
throw new Error('Required parameter ReplaceUsersInUserGroupV1Input was null or undefined when calling replaceUsersInUserGroup.');
|
|
1020
1040
|
}
|
|
1021
1041
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1022
1042
|
localVarUseFormData = false;
|
|
1023
1043
|
localVarRequestOptions = {
|
|
1024
|
-
method: '
|
|
1044
|
+
method: 'PUT',
|
|
1025
1045
|
qs: localVarQueryParameters,
|
|
1026
1046
|
headers: localVarHeaderParams,
|
|
1027
1047
|
uri: localVarPath,
|
|
1028
1048
|
useQuerystring: this._useQuerystring,
|
|
1029
1049
|
json: true,
|
|
1030
|
-
body: models_1.ObjectSerializer.serialize(
|
|
1050
|
+
body: models_1.ObjectSerializer.serialize(ReplaceUsersInUserGroupV1Input, 'ReplaceUsersInUserGroupV1Input'),
|
|
1031
1051
|
};
|
|
1032
1052
|
authenticationPromise = Promise.resolve();
|
|
1033
1053
|
if (this.authentications.token.accessToken) {
|
|
@@ -1066,7 +1086,7 @@ var IAMGroupsApi = (function () {
|
|
|
1066
1086
|
if (response.statusCode &&
|
|
1067
1087
|
response.statusCode >= 200 &&
|
|
1068
1088
|
response.statusCode <= 299) {
|
|
1069
|
-
body = models_1.ObjectSerializer.deserialize(body, '
|
|
1089
|
+
body = models_1.ObjectSerializer.deserialize(body, 'ReplaceUsersInUserGroup200Response');
|
|
1070
1090
|
resolve({ response: response, body: body });
|
|
1071
1091
|
}
|
|
1072
1092
|
else {
|
|
@@ -1079,40 +1099,46 @@ var IAMGroupsApi = (function () {
|
|
|
1079
1099
|
});
|
|
1080
1100
|
});
|
|
1081
1101
|
};
|
|
1082
|
-
IAMGroupsApi.prototype.
|
|
1102
|
+
IAMGroupsApi.prototype.updateUserGroup = function (userGroupId, UpdateUserGroupV1Input, options) {
|
|
1083
1103
|
if (options === void 0) { options = { headers: {} }; }
|
|
1084
1104
|
return __awaiter(this, void 0, void 0, function () {
|
|
1085
1105
|
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_12, _i, _a, interceptor;
|
|
1086
1106
|
var _this = this;
|
|
1087
1107
|
return __generator(this, function (_b) {
|
|
1088
|
-
localVarPath = this.basePath +
|
|
1108
|
+
localVarPath = this.basePath +
|
|
1109
|
+
'/groups/{userGroupId}'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
1089
1110
|
localVarQueryParameters = {};
|
|
1090
1111
|
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1091
1112
|
produces = [
|
|
1092
1113
|
'application/vnd.segment.v1+json',
|
|
1093
1114
|
'application/json',
|
|
1115
|
+
'application/vnd.segment.v1beta+json',
|
|
1116
|
+
'application/vnd.segment.v1alpha+json',
|
|
1094
1117
|
];
|
|
1095
1118
|
if (produces.indexOf('application/json') >= 0) {
|
|
1096
|
-
localVarHeaderParams.Accept =
|
|
1119
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1097
1120
|
}
|
|
1098
1121
|
else {
|
|
1099
|
-
localVarHeaderParams.Accept = '
|
|
1122
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1100
1123
|
}
|
|
1101
1124
|
localVarFormParams = {};
|
|
1102
|
-
if (
|
|
1103
|
-
|
|
1104
|
-
|
|
1125
|
+
if (userGroupId === null || userGroupId === undefined) {
|
|
1126
|
+
throw new Error('Required parameter userGroupId was null or undefined when calling updateUserGroup.');
|
|
1127
|
+
}
|
|
1128
|
+
if (UpdateUserGroupV1Input === null ||
|
|
1129
|
+
UpdateUserGroupV1Input === undefined) {
|
|
1130
|
+
throw new Error('Required parameter UpdateUserGroupV1Input was null or undefined when calling updateUserGroup.');
|
|
1105
1131
|
}
|
|
1106
1132
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1107
1133
|
localVarUseFormData = false;
|
|
1108
1134
|
localVarRequestOptions = {
|
|
1109
|
-
method: '
|
|
1135
|
+
method: 'PATCH',
|
|
1110
1136
|
qs: localVarQueryParameters,
|
|
1111
1137
|
headers: localVarHeaderParams,
|
|
1112
1138
|
uri: localVarPath,
|
|
1113
1139
|
useQuerystring: this._useQuerystring,
|
|
1114
1140
|
json: true,
|
|
1115
|
-
body: models_1.ObjectSerializer.serialize(
|
|
1141
|
+
body: models_1.ObjectSerializer.serialize(UpdateUserGroupV1Input, 'UpdateUserGroupV1Input'),
|
|
1116
1142
|
};
|
|
1117
1143
|
authenticationPromise = Promise.resolve();
|
|
1118
1144
|
if (this.authentications.token.accessToken) {
|
|
@@ -1133,3152 +1159,6 @@ var IAMGroupsApi = (function () {
|
|
|
1133
1159
|
interceptor = _a[_i];
|
|
1134
1160
|
_loop_12(interceptor);
|
|
1135
1161
|
}
|
|
1136
|
-
return [2, interceptorPromise.then(function () {
|
|
1137
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1138
|
-
if (localVarUseFormData) {
|
|
1139
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1140
|
-
}
|
|
1141
|
-
else {
|
|
1142
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1143
|
-
}
|
|
1144
|
-
}
|
|
1145
|
-
return new Promise(function (resolve, reject) {
|
|
1146
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1147
|
-
if (error) {
|
|
1148
|
-
reject(error);
|
|
1149
|
-
}
|
|
1150
|
-
else {
|
|
1151
|
-
if (response.statusCode &&
|
|
1152
|
-
response.statusCode >= 200 &&
|
|
1153
|
-
response.statusCode <= 299) {
|
|
1154
|
-
body = models_1.ObjectSerializer.deserialize(body, 'CreateUserGroup200Response');
|
|
1155
|
-
resolve({ response: response, body: body });
|
|
1156
|
-
}
|
|
1157
|
-
else {
|
|
1158
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1159
|
-
}
|
|
1160
|
-
}
|
|
1161
|
-
});
|
|
1162
|
-
});
|
|
1163
|
-
})];
|
|
1164
|
-
});
|
|
1165
|
-
});
|
|
1166
|
-
};
|
|
1167
|
-
IAMGroupsApi.prototype.deleteUserGroupAlpha = function (userGroupId, options) {
|
|
1168
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1169
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1170
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_13, _i, _a, interceptor;
|
|
1171
|
-
var _this = this;
|
|
1172
|
-
return __generator(this, function (_b) {
|
|
1173
|
-
localVarPath = this.basePath +
|
|
1174
|
-
'/groups/{userGroupId}'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
1175
|
-
localVarQueryParameters = {};
|
|
1176
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1177
|
-
produces = [
|
|
1178
|
-
'application/vnd.segment.v1alpha+json',
|
|
1179
|
-
'application/json',
|
|
1180
|
-
];
|
|
1181
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1182
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1183
|
-
}
|
|
1184
|
-
else {
|
|
1185
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1186
|
-
}
|
|
1187
|
-
localVarFormParams = {};
|
|
1188
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
1189
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling deleteUserGroupAlpha.');
|
|
1190
|
-
}
|
|
1191
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1192
|
-
localVarUseFormData = false;
|
|
1193
|
-
localVarRequestOptions = {
|
|
1194
|
-
method: 'DELETE',
|
|
1195
|
-
qs: localVarQueryParameters,
|
|
1196
|
-
headers: localVarHeaderParams,
|
|
1197
|
-
uri: localVarPath,
|
|
1198
|
-
useQuerystring: this._useQuerystring,
|
|
1199
|
-
json: true,
|
|
1200
|
-
};
|
|
1201
|
-
authenticationPromise = Promise.resolve();
|
|
1202
|
-
if (this.authentications.token.accessToken) {
|
|
1203
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1204
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
1205
|
-
});
|
|
1206
|
-
}
|
|
1207
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1208
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
1209
|
-
});
|
|
1210
|
-
interceptorPromise = authenticationPromise;
|
|
1211
|
-
_loop_13 = function (interceptor) {
|
|
1212
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
1213
|
-
return interceptor(localVarRequestOptions);
|
|
1214
|
-
});
|
|
1215
|
-
};
|
|
1216
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1217
|
-
interceptor = _a[_i];
|
|
1218
|
-
_loop_13(interceptor);
|
|
1219
|
-
}
|
|
1220
|
-
return [2, interceptorPromise.then(function () {
|
|
1221
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1222
|
-
if (localVarUseFormData) {
|
|
1223
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1224
|
-
}
|
|
1225
|
-
else {
|
|
1226
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1227
|
-
}
|
|
1228
|
-
}
|
|
1229
|
-
return new Promise(function (resolve, reject) {
|
|
1230
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1231
|
-
if (error) {
|
|
1232
|
-
reject(error);
|
|
1233
|
-
}
|
|
1234
|
-
else {
|
|
1235
|
-
if (response.statusCode &&
|
|
1236
|
-
response.statusCode >= 200 &&
|
|
1237
|
-
response.statusCode <= 299) {
|
|
1238
|
-
body = models_1.ObjectSerializer.deserialize(body, 'DeleteUserGroup200Response');
|
|
1239
|
-
resolve({ response: response, body: body });
|
|
1240
|
-
}
|
|
1241
|
-
else {
|
|
1242
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1243
|
-
}
|
|
1244
|
-
}
|
|
1245
|
-
});
|
|
1246
|
-
});
|
|
1247
|
-
})];
|
|
1248
|
-
});
|
|
1249
|
-
});
|
|
1250
|
-
};
|
|
1251
|
-
IAMGroupsApi.prototype.deleteUserGroupBeta = function (userGroupId, options) {
|
|
1252
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1253
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1254
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_14, _i, _a, interceptor;
|
|
1255
|
-
var _this = this;
|
|
1256
|
-
return __generator(this, function (_b) {
|
|
1257
|
-
localVarPath = this.basePath +
|
|
1258
|
-
'/groups/{userGroupId}'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
1259
|
-
localVarQueryParameters = {};
|
|
1260
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1261
|
-
produces = [
|
|
1262
|
-
'application/vnd.segment.v1beta+json',
|
|
1263
|
-
'application/json',
|
|
1264
|
-
];
|
|
1265
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1266
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1267
|
-
}
|
|
1268
|
-
else {
|
|
1269
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1270
|
-
}
|
|
1271
|
-
localVarFormParams = {};
|
|
1272
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
1273
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling deleteUserGroupBeta.');
|
|
1274
|
-
}
|
|
1275
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1276
|
-
localVarUseFormData = false;
|
|
1277
|
-
localVarRequestOptions = {
|
|
1278
|
-
method: 'DELETE',
|
|
1279
|
-
qs: localVarQueryParameters,
|
|
1280
|
-
headers: localVarHeaderParams,
|
|
1281
|
-
uri: localVarPath,
|
|
1282
|
-
useQuerystring: this._useQuerystring,
|
|
1283
|
-
json: true,
|
|
1284
|
-
};
|
|
1285
|
-
authenticationPromise = Promise.resolve();
|
|
1286
|
-
if (this.authentications.token.accessToken) {
|
|
1287
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1288
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
1289
|
-
});
|
|
1290
|
-
}
|
|
1291
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1292
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
1293
|
-
});
|
|
1294
|
-
interceptorPromise = authenticationPromise;
|
|
1295
|
-
_loop_14 = function (interceptor) {
|
|
1296
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
1297
|
-
return interceptor(localVarRequestOptions);
|
|
1298
|
-
});
|
|
1299
|
-
};
|
|
1300
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1301
|
-
interceptor = _a[_i];
|
|
1302
|
-
_loop_14(interceptor);
|
|
1303
|
-
}
|
|
1304
|
-
return [2, interceptorPromise.then(function () {
|
|
1305
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1306
|
-
if (localVarUseFormData) {
|
|
1307
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1308
|
-
}
|
|
1309
|
-
else {
|
|
1310
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1311
|
-
}
|
|
1312
|
-
}
|
|
1313
|
-
return new Promise(function (resolve, reject) {
|
|
1314
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1315
|
-
if (error) {
|
|
1316
|
-
reject(error);
|
|
1317
|
-
}
|
|
1318
|
-
else {
|
|
1319
|
-
if (response.statusCode &&
|
|
1320
|
-
response.statusCode >= 200 &&
|
|
1321
|
-
response.statusCode <= 299) {
|
|
1322
|
-
body = models_1.ObjectSerializer.deserialize(body, 'DeleteUserGroup200Response');
|
|
1323
|
-
resolve({ response: response, body: body });
|
|
1324
|
-
}
|
|
1325
|
-
else {
|
|
1326
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1327
|
-
}
|
|
1328
|
-
}
|
|
1329
|
-
});
|
|
1330
|
-
});
|
|
1331
|
-
})];
|
|
1332
|
-
});
|
|
1333
|
-
});
|
|
1334
|
-
};
|
|
1335
|
-
IAMGroupsApi.prototype.deleteUserGroupCurrent = function (userGroupId, options) {
|
|
1336
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1337
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1338
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_15, _i, _a, interceptor;
|
|
1339
|
-
var _this = this;
|
|
1340
|
-
return __generator(this, function (_b) {
|
|
1341
|
-
localVarPath = this.basePath +
|
|
1342
|
-
'/groups/{userGroupId}'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
1343
|
-
localVarQueryParameters = {};
|
|
1344
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1345
|
-
produces = ['application/json'];
|
|
1346
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1347
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1348
|
-
}
|
|
1349
|
-
else {
|
|
1350
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1351
|
-
}
|
|
1352
|
-
localVarFormParams = {};
|
|
1353
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
1354
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling deleteUserGroupCurrent.');
|
|
1355
|
-
}
|
|
1356
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1357
|
-
localVarUseFormData = false;
|
|
1358
|
-
localVarRequestOptions = {
|
|
1359
|
-
method: 'DELETE',
|
|
1360
|
-
qs: localVarQueryParameters,
|
|
1361
|
-
headers: localVarHeaderParams,
|
|
1362
|
-
uri: localVarPath,
|
|
1363
|
-
useQuerystring: this._useQuerystring,
|
|
1364
|
-
json: true,
|
|
1365
|
-
};
|
|
1366
|
-
authenticationPromise = Promise.resolve();
|
|
1367
|
-
if (this.authentications.token.accessToken) {
|
|
1368
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1369
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
1370
|
-
});
|
|
1371
|
-
}
|
|
1372
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1373
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
1374
|
-
});
|
|
1375
|
-
interceptorPromise = authenticationPromise;
|
|
1376
|
-
_loop_15 = function (interceptor) {
|
|
1377
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
1378
|
-
return interceptor(localVarRequestOptions);
|
|
1379
|
-
});
|
|
1380
|
-
};
|
|
1381
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1382
|
-
interceptor = _a[_i];
|
|
1383
|
-
_loop_15(interceptor);
|
|
1384
|
-
}
|
|
1385
|
-
return [2, interceptorPromise.then(function () {
|
|
1386
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1387
|
-
if (localVarUseFormData) {
|
|
1388
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1389
|
-
}
|
|
1390
|
-
else {
|
|
1391
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1392
|
-
}
|
|
1393
|
-
}
|
|
1394
|
-
return new Promise(function (resolve, reject) {
|
|
1395
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1396
|
-
if (error) {
|
|
1397
|
-
reject(error);
|
|
1398
|
-
}
|
|
1399
|
-
else {
|
|
1400
|
-
if (response.statusCode &&
|
|
1401
|
-
response.statusCode >= 200 &&
|
|
1402
|
-
response.statusCode <= 299) {
|
|
1403
|
-
body = models_1.ObjectSerializer.deserialize(body, 'DeleteUserGroup200Response');
|
|
1404
|
-
resolve({ response: response, body: body });
|
|
1405
|
-
}
|
|
1406
|
-
else {
|
|
1407
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1408
|
-
}
|
|
1409
|
-
}
|
|
1410
|
-
});
|
|
1411
|
-
});
|
|
1412
|
-
})];
|
|
1413
|
-
});
|
|
1414
|
-
});
|
|
1415
|
-
};
|
|
1416
|
-
IAMGroupsApi.prototype.deleteUserGroupV1 = function (userGroupId, options) {
|
|
1417
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1418
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1419
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_16, _i, _a, interceptor;
|
|
1420
|
-
var _this = this;
|
|
1421
|
-
return __generator(this, function (_b) {
|
|
1422
|
-
localVarPath = this.basePath +
|
|
1423
|
-
'/groups/{userGroupId}'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
1424
|
-
localVarQueryParameters = {};
|
|
1425
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1426
|
-
produces = [
|
|
1427
|
-
'application/vnd.segment.v1+json',
|
|
1428
|
-
'application/json',
|
|
1429
|
-
];
|
|
1430
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1431
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1432
|
-
}
|
|
1433
|
-
else {
|
|
1434
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1435
|
-
}
|
|
1436
|
-
localVarFormParams = {};
|
|
1437
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
1438
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling deleteUserGroupV1.');
|
|
1439
|
-
}
|
|
1440
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1441
|
-
localVarUseFormData = false;
|
|
1442
|
-
localVarRequestOptions = {
|
|
1443
|
-
method: 'DELETE',
|
|
1444
|
-
qs: localVarQueryParameters,
|
|
1445
|
-
headers: localVarHeaderParams,
|
|
1446
|
-
uri: localVarPath,
|
|
1447
|
-
useQuerystring: this._useQuerystring,
|
|
1448
|
-
json: true,
|
|
1449
|
-
};
|
|
1450
|
-
authenticationPromise = Promise.resolve();
|
|
1451
|
-
if (this.authentications.token.accessToken) {
|
|
1452
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1453
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
1454
|
-
});
|
|
1455
|
-
}
|
|
1456
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1457
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
1458
|
-
});
|
|
1459
|
-
interceptorPromise = authenticationPromise;
|
|
1460
|
-
_loop_16 = function (interceptor) {
|
|
1461
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
1462
|
-
return interceptor(localVarRequestOptions);
|
|
1463
|
-
});
|
|
1464
|
-
};
|
|
1465
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1466
|
-
interceptor = _a[_i];
|
|
1467
|
-
_loop_16(interceptor);
|
|
1468
|
-
}
|
|
1469
|
-
return [2, interceptorPromise.then(function () {
|
|
1470
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1471
|
-
if (localVarUseFormData) {
|
|
1472
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1473
|
-
}
|
|
1474
|
-
else {
|
|
1475
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1476
|
-
}
|
|
1477
|
-
}
|
|
1478
|
-
return new Promise(function (resolve, reject) {
|
|
1479
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1480
|
-
if (error) {
|
|
1481
|
-
reject(error);
|
|
1482
|
-
}
|
|
1483
|
-
else {
|
|
1484
|
-
if (response.statusCode &&
|
|
1485
|
-
response.statusCode >= 200 &&
|
|
1486
|
-
response.statusCode <= 299) {
|
|
1487
|
-
body = models_1.ObjectSerializer.deserialize(body, 'DeleteUserGroup200Response');
|
|
1488
|
-
resolve({ response: response, body: body });
|
|
1489
|
-
}
|
|
1490
|
-
else {
|
|
1491
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1492
|
-
}
|
|
1493
|
-
}
|
|
1494
|
-
});
|
|
1495
|
-
});
|
|
1496
|
-
})];
|
|
1497
|
-
});
|
|
1498
|
-
});
|
|
1499
|
-
};
|
|
1500
|
-
IAMGroupsApi.prototype.getUserGroupAlpha = function (userGroupId, options) {
|
|
1501
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1502
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1503
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_17, _i, _a, interceptor;
|
|
1504
|
-
var _this = this;
|
|
1505
|
-
return __generator(this, function (_b) {
|
|
1506
|
-
localVarPath = this.basePath +
|
|
1507
|
-
'/groups/{userGroupId}'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
1508
|
-
localVarQueryParameters = {};
|
|
1509
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1510
|
-
produces = [
|
|
1511
|
-
'application/vnd.segment.v1alpha+json',
|
|
1512
|
-
'application/json',
|
|
1513
|
-
];
|
|
1514
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1515
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1516
|
-
}
|
|
1517
|
-
else {
|
|
1518
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1519
|
-
}
|
|
1520
|
-
localVarFormParams = {};
|
|
1521
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
1522
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling getUserGroupAlpha.');
|
|
1523
|
-
}
|
|
1524
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1525
|
-
localVarUseFormData = false;
|
|
1526
|
-
localVarRequestOptions = {
|
|
1527
|
-
method: 'GET',
|
|
1528
|
-
qs: localVarQueryParameters,
|
|
1529
|
-
headers: localVarHeaderParams,
|
|
1530
|
-
uri: localVarPath,
|
|
1531
|
-
useQuerystring: this._useQuerystring,
|
|
1532
|
-
json: true,
|
|
1533
|
-
};
|
|
1534
|
-
authenticationPromise = Promise.resolve();
|
|
1535
|
-
if (this.authentications.token.accessToken) {
|
|
1536
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1537
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
1538
|
-
});
|
|
1539
|
-
}
|
|
1540
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1541
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
1542
|
-
});
|
|
1543
|
-
interceptorPromise = authenticationPromise;
|
|
1544
|
-
_loop_17 = function (interceptor) {
|
|
1545
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
1546
|
-
return interceptor(localVarRequestOptions);
|
|
1547
|
-
});
|
|
1548
|
-
};
|
|
1549
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1550
|
-
interceptor = _a[_i];
|
|
1551
|
-
_loop_17(interceptor);
|
|
1552
|
-
}
|
|
1553
|
-
return [2, interceptorPromise.then(function () {
|
|
1554
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1555
|
-
if (localVarUseFormData) {
|
|
1556
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1557
|
-
}
|
|
1558
|
-
else {
|
|
1559
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1560
|
-
}
|
|
1561
|
-
}
|
|
1562
|
-
return new Promise(function (resolve, reject) {
|
|
1563
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1564
|
-
if (error) {
|
|
1565
|
-
reject(error);
|
|
1566
|
-
}
|
|
1567
|
-
else {
|
|
1568
|
-
if (response.statusCode &&
|
|
1569
|
-
response.statusCode >= 200 &&
|
|
1570
|
-
response.statusCode <= 299) {
|
|
1571
|
-
body = models_1.ObjectSerializer.deserialize(body, 'GetUserGroup200Response');
|
|
1572
|
-
resolve({ response: response, body: body });
|
|
1573
|
-
}
|
|
1574
|
-
else {
|
|
1575
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
1578
|
-
});
|
|
1579
|
-
});
|
|
1580
|
-
})];
|
|
1581
|
-
});
|
|
1582
|
-
});
|
|
1583
|
-
};
|
|
1584
|
-
IAMGroupsApi.prototype.getUserGroupBeta = function (userGroupId, options) {
|
|
1585
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1586
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1587
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_18, _i, _a, interceptor;
|
|
1588
|
-
var _this = this;
|
|
1589
|
-
return __generator(this, function (_b) {
|
|
1590
|
-
localVarPath = this.basePath +
|
|
1591
|
-
'/groups/{userGroupId}'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
1592
|
-
localVarQueryParameters = {};
|
|
1593
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1594
|
-
produces = [
|
|
1595
|
-
'application/vnd.segment.v1beta+json',
|
|
1596
|
-
'application/json',
|
|
1597
|
-
];
|
|
1598
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1599
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1600
|
-
}
|
|
1601
|
-
else {
|
|
1602
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1603
|
-
}
|
|
1604
|
-
localVarFormParams = {};
|
|
1605
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
1606
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling getUserGroupBeta.');
|
|
1607
|
-
}
|
|
1608
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1609
|
-
localVarUseFormData = false;
|
|
1610
|
-
localVarRequestOptions = {
|
|
1611
|
-
method: 'GET',
|
|
1612
|
-
qs: localVarQueryParameters,
|
|
1613
|
-
headers: localVarHeaderParams,
|
|
1614
|
-
uri: localVarPath,
|
|
1615
|
-
useQuerystring: this._useQuerystring,
|
|
1616
|
-
json: true,
|
|
1617
|
-
};
|
|
1618
|
-
authenticationPromise = Promise.resolve();
|
|
1619
|
-
if (this.authentications.token.accessToken) {
|
|
1620
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1621
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
1622
|
-
});
|
|
1623
|
-
}
|
|
1624
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1625
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
1626
|
-
});
|
|
1627
|
-
interceptorPromise = authenticationPromise;
|
|
1628
|
-
_loop_18 = function (interceptor) {
|
|
1629
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
1630
|
-
return interceptor(localVarRequestOptions);
|
|
1631
|
-
});
|
|
1632
|
-
};
|
|
1633
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1634
|
-
interceptor = _a[_i];
|
|
1635
|
-
_loop_18(interceptor);
|
|
1636
|
-
}
|
|
1637
|
-
return [2, interceptorPromise.then(function () {
|
|
1638
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1639
|
-
if (localVarUseFormData) {
|
|
1640
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1641
|
-
}
|
|
1642
|
-
else {
|
|
1643
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1644
|
-
}
|
|
1645
|
-
}
|
|
1646
|
-
return new Promise(function (resolve, reject) {
|
|
1647
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1648
|
-
if (error) {
|
|
1649
|
-
reject(error);
|
|
1650
|
-
}
|
|
1651
|
-
else {
|
|
1652
|
-
if (response.statusCode &&
|
|
1653
|
-
response.statusCode >= 200 &&
|
|
1654
|
-
response.statusCode <= 299) {
|
|
1655
|
-
body = models_1.ObjectSerializer.deserialize(body, 'GetUserGroup200Response');
|
|
1656
|
-
resolve({ response: response, body: body });
|
|
1657
|
-
}
|
|
1658
|
-
else {
|
|
1659
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1660
|
-
}
|
|
1661
|
-
}
|
|
1662
|
-
});
|
|
1663
|
-
});
|
|
1664
|
-
})];
|
|
1665
|
-
});
|
|
1666
|
-
});
|
|
1667
|
-
};
|
|
1668
|
-
IAMGroupsApi.prototype.getUserGroupCurrent = function (userGroupId, options) {
|
|
1669
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1670
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1671
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_19, _i, _a, interceptor;
|
|
1672
|
-
var _this = this;
|
|
1673
|
-
return __generator(this, function (_b) {
|
|
1674
|
-
localVarPath = this.basePath +
|
|
1675
|
-
'/groups/{userGroupId}'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
1676
|
-
localVarQueryParameters = {};
|
|
1677
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1678
|
-
produces = ['application/json'];
|
|
1679
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1680
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1681
|
-
}
|
|
1682
|
-
else {
|
|
1683
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1684
|
-
}
|
|
1685
|
-
localVarFormParams = {};
|
|
1686
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
1687
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling getUserGroupCurrent.');
|
|
1688
|
-
}
|
|
1689
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1690
|
-
localVarUseFormData = false;
|
|
1691
|
-
localVarRequestOptions = {
|
|
1692
|
-
method: 'GET',
|
|
1693
|
-
qs: localVarQueryParameters,
|
|
1694
|
-
headers: localVarHeaderParams,
|
|
1695
|
-
uri: localVarPath,
|
|
1696
|
-
useQuerystring: this._useQuerystring,
|
|
1697
|
-
json: true,
|
|
1698
|
-
};
|
|
1699
|
-
authenticationPromise = Promise.resolve();
|
|
1700
|
-
if (this.authentications.token.accessToken) {
|
|
1701
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1702
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
1703
|
-
});
|
|
1704
|
-
}
|
|
1705
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1706
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
1707
|
-
});
|
|
1708
|
-
interceptorPromise = authenticationPromise;
|
|
1709
|
-
_loop_19 = function (interceptor) {
|
|
1710
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
1711
|
-
return interceptor(localVarRequestOptions);
|
|
1712
|
-
});
|
|
1713
|
-
};
|
|
1714
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1715
|
-
interceptor = _a[_i];
|
|
1716
|
-
_loop_19(interceptor);
|
|
1717
|
-
}
|
|
1718
|
-
return [2, interceptorPromise.then(function () {
|
|
1719
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1720
|
-
if (localVarUseFormData) {
|
|
1721
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1722
|
-
}
|
|
1723
|
-
else {
|
|
1724
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1725
|
-
}
|
|
1726
|
-
}
|
|
1727
|
-
return new Promise(function (resolve, reject) {
|
|
1728
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1729
|
-
if (error) {
|
|
1730
|
-
reject(error);
|
|
1731
|
-
}
|
|
1732
|
-
else {
|
|
1733
|
-
if (response.statusCode &&
|
|
1734
|
-
response.statusCode >= 200 &&
|
|
1735
|
-
response.statusCode <= 299) {
|
|
1736
|
-
body = models_1.ObjectSerializer.deserialize(body, 'GetUserGroup200Response');
|
|
1737
|
-
resolve({ response: response, body: body });
|
|
1738
|
-
}
|
|
1739
|
-
else {
|
|
1740
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1741
|
-
}
|
|
1742
|
-
}
|
|
1743
|
-
});
|
|
1744
|
-
});
|
|
1745
|
-
})];
|
|
1746
|
-
});
|
|
1747
|
-
});
|
|
1748
|
-
};
|
|
1749
|
-
IAMGroupsApi.prototype.getUserGroupV1 = function (userGroupId, options) {
|
|
1750
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1751
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1752
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_20, _i, _a, interceptor;
|
|
1753
|
-
var _this = this;
|
|
1754
|
-
return __generator(this, function (_b) {
|
|
1755
|
-
localVarPath = this.basePath +
|
|
1756
|
-
'/groups/{userGroupId}'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
1757
|
-
localVarQueryParameters = {};
|
|
1758
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1759
|
-
produces = [
|
|
1760
|
-
'application/vnd.segment.v1+json',
|
|
1761
|
-
'application/json',
|
|
1762
|
-
];
|
|
1763
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1764
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1765
|
-
}
|
|
1766
|
-
else {
|
|
1767
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1768
|
-
}
|
|
1769
|
-
localVarFormParams = {};
|
|
1770
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
1771
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling getUserGroupV1.');
|
|
1772
|
-
}
|
|
1773
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1774
|
-
localVarUseFormData = false;
|
|
1775
|
-
localVarRequestOptions = {
|
|
1776
|
-
method: 'GET',
|
|
1777
|
-
qs: localVarQueryParameters,
|
|
1778
|
-
headers: localVarHeaderParams,
|
|
1779
|
-
uri: localVarPath,
|
|
1780
|
-
useQuerystring: this._useQuerystring,
|
|
1781
|
-
json: true,
|
|
1782
|
-
};
|
|
1783
|
-
authenticationPromise = Promise.resolve();
|
|
1784
|
-
if (this.authentications.token.accessToken) {
|
|
1785
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1786
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
1787
|
-
});
|
|
1788
|
-
}
|
|
1789
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1790
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
1791
|
-
});
|
|
1792
|
-
interceptorPromise = authenticationPromise;
|
|
1793
|
-
_loop_20 = function (interceptor) {
|
|
1794
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
1795
|
-
return interceptor(localVarRequestOptions);
|
|
1796
|
-
});
|
|
1797
|
-
};
|
|
1798
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1799
|
-
interceptor = _a[_i];
|
|
1800
|
-
_loop_20(interceptor);
|
|
1801
|
-
}
|
|
1802
|
-
return [2, interceptorPromise.then(function () {
|
|
1803
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1804
|
-
if (localVarUseFormData) {
|
|
1805
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1806
|
-
}
|
|
1807
|
-
else {
|
|
1808
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1809
|
-
}
|
|
1810
|
-
}
|
|
1811
|
-
return new Promise(function (resolve, reject) {
|
|
1812
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1813
|
-
if (error) {
|
|
1814
|
-
reject(error);
|
|
1815
|
-
}
|
|
1816
|
-
else {
|
|
1817
|
-
if (response.statusCode &&
|
|
1818
|
-
response.statusCode >= 200 &&
|
|
1819
|
-
response.statusCode <= 299) {
|
|
1820
|
-
body = models_1.ObjectSerializer.deserialize(body, 'GetUserGroup200Response');
|
|
1821
|
-
resolve({ response: response, body: body });
|
|
1822
|
-
}
|
|
1823
|
-
else {
|
|
1824
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1825
|
-
}
|
|
1826
|
-
}
|
|
1827
|
-
});
|
|
1828
|
-
});
|
|
1829
|
-
})];
|
|
1830
|
-
});
|
|
1831
|
-
});
|
|
1832
|
-
};
|
|
1833
|
-
IAMGroupsApi.prototype.listInvitesFromUserGroupAlpha = function (userGroupId, pagination, options) {
|
|
1834
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1835
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1836
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_21, _i, _a, interceptor;
|
|
1837
|
-
var _this = this;
|
|
1838
|
-
return __generator(this, function (_b) {
|
|
1839
|
-
localVarPath = this.basePath +
|
|
1840
|
-
'/groups/{userGroupId}/invites'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
1841
|
-
localVarQueryParameters = {};
|
|
1842
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1843
|
-
produces = [
|
|
1844
|
-
'application/vnd.segment.v1alpha+json',
|
|
1845
|
-
'application/json',
|
|
1846
|
-
];
|
|
1847
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1848
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1849
|
-
}
|
|
1850
|
-
else {
|
|
1851
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1852
|
-
}
|
|
1853
|
-
localVarFormParams = {};
|
|
1854
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
1855
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling listInvitesFromUserGroupAlpha.');
|
|
1856
|
-
}
|
|
1857
|
-
if (pagination === null || pagination === undefined) {
|
|
1858
|
-
throw new Error('Required parameter pagination was null or undefined when calling listInvitesFromUserGroupAlpha.');
|
|
1859
|
-
}
|
|
1860
|
-
if (pagination !== undefined) {
|
|
1861
|
-
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
1862
|
-
}
|
|
1863
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1864
|
-
localVarUseFormData = false;
|
|
1865
|
-
localVarRequestOptions = {
|
|
1866
|
-
method: 'GET',
|
|
1867
|
-
qs: localVarQueryParameters,
|
|
1868
|
-
headers: localVarHeaderParams,
|
|
1869
|
-
uri: localVarPath,
|
|
1870
|
-
useQuerystring: this._useQuerystring,
|
|
1871
|
-
json: true,
|
|
1872
|
-
};
|
|
1873
|
-
authenticationPromise = Promise.resolve();
|
|
1874
|
-
if (this.authentications.token.accessToken) {
|
|
1875
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1876
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
1877
|
-
});
|
|
1878
|
-
}
|
|
1879
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1880
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
1881
|
-
});
|
|
1882
|
-
interceptorPromise = authenticationPromise;
|
|
1883
|
-
_loop_21 = function (interceptor) {
|
|
1884
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
1885
|
-
return interceptor(localVarRequestOptions);
|
|
1886
|
-
});
|
|
1887
|
-
};
|
|
1888
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1889
|
-
interceptor = _a[_i];
|
|
1890
|
-
_loop_21(interceptor);
|
|
1891
|
-
}
|
|
1892
|
-
return [2, interceptorPromise.then(function () {
|
|
1893
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1894
|
-
if (localVarUseFormData) {
|
|
1895
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1896
|
-
}
|
|
1897
|
-
else {
|
|
1898
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1899
|
-
}
|
|
1900
|
-
}
|
|
1901
|
-
return new Promise(function (resolve, reject) {
|
|
1902
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1903
|
-
if (error) {
|
|
1904
|
-
reject(error);
|
|
1905
|
-
}
|
|
1906
|
-
else {
|
|
1907
|
-
if (response.statusCode &&
|
|
1908
|
-
response.statusCode >= 200 &&
|
|
1909
|
-
response.statusCode <= 299) {
|
|
1910
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ListInvitesFromUserGroup200Response');
|
|
1911
|
-
resolve({ response: response, body: body });
|
|
1912
|
-
}
|
|
1913
|
-
else {
|
|
1914
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1915
|
-
}
|
|
1916
|
-
}
|
|
1917
|
-
});
|
|
1918
|
-
});
|
|
1919
|
-
})];
|
|
1920
|
-
});
|
|
1921
|
-
});
|
|
1922
|
-
};
|
|
1923
|
-
IAMGroupsApi.prototype.listInvitesFromUserGroupBeta = function (userGroupId, pagination, options) {
|
|
1924
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
1925
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1926
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_22, _i, _a, interceptor;
|
|
1927
|
-
var _this = this;
|
|
1928
|
-
return __generator(this, function (_b) {
|
|
1929
|
-
localVarPath = this.basePath +
|
|
1930
|
-
'/groups/{userGroupId}/invites'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
1931
|
-
localVarQueryParameters = {};
|
|
1932
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1933
|
-
produces = [
|
|
1934
|
-
'application/vnd.segment.v1beta+json',
|
|
1935
|
-
'application/json',
|
|
1936
|
-
];
|
|
1937
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1938
|
-
localVarHeaderParams.Accept = produces[0];
|
|
1939
|
-
}
|
|
1940
|
-
else {
|
|
1941
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1942
|
-
}
|
|
1943
|
-
localVarFormParams = {};
|
|
1944
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
1945
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling listInvitesFromUserGroupBeta.');
|
|
1946
|
-
}
|
|
1947
|
-
if (pagination === null || pagination === undefined) {
|
|
1948
|
-
throw new Error('Required parameter pagination was null or undefined when calling listInvitesFromUserGroupBeta.');
|
|
1949
|
-
}
|
|
1950
|
-
if (pagination !== undefined) {
|
|
1951
|
-
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
1952
|
-
}
|
|
1953
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1954
|
-
localVarUseFormData = false;
|
|
1955
|
-
localVarRequestOptions = {
|
|
1956
|
-
method: 'GET',
|
|
1957
|
-
qs: localVarQueryParameters,
|
|
1958
|
-
headers: localVarHeaderParams,
|
|
1959
|
-
uri: localVarPath,
|
|
1960
|
-
useQuerystring: this._useQuerystring,
|
|
1961
|
-
json: true,
|
|
1962
|
-
};
|
|
1963
|
-
authenticationPromise = Promise.resolve();
|
|
1964
|
-
if (this.authentications.token.accessToken) {
|
|
1965
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1966
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
1967
|
-
});
|
|
1968
|
-
}
|
|
1969
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
1970
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
1971
|
-
});
|
|
1972
|
-
interceptorPromise = authenticationPromise;
|
|
1973
|
-
_loop_22 = function (interceptor) {
|
|
1974
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
1975
|
-
return interceptor(localVarRequestOptions);
|
|
1976
|
-
});
|
|
1977
|
-
};
|
|
1978
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
1979
|
-
interceptor = _a[_i];
|
|
1980
|
-
_loop_22(interceptor);
|
|
1981
|
-
}
|
|
1982
|
-
return [2, interceptorPromise.then(function () {
|
|
1983
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1984
|
-
if (localVarUseFormData) {
|
|
1985
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1986
|
-
}
|
|
1987
|
-
else {
|
|
1988
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1989
|
-
}
|
|
1990
|
-
}
|
|
1991
|
-
return new Promise(function (resolve, reject) {
|
|
1992
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
1993
|
-
if (error) {
|
|
1994
|
-
reject(error);
|
|
1995
|
-
}
|
|
1996
|
-
else {
|
|
1997
|
-
if (response.statusCode &&
|
|
1998
|
-
response.statusCode >= 200 &&
|
|
1999
|
-
response.statusCode <= 299) {
|
|
2000
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ListInvitesFromUserGroup200Response');
|
|
2001
|
-
resolve({ response: response, body: body });
|
|
2002
|
-
}
|
|
2003
|
-
else {
|
|
2004
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2005
|
-
}
|
|
2006
|
-
}
|
|
2007
|
-
});
|
|
2008
|
-
});
|
|
2009
|
-
})];
|
|
2010
|
-
});
|
|
2011
|
-
});
|
|
2012
|
-
};
|
|
2013
|
-
IAMGroupsApi.prototype.listInvitesFromUserGroupCurrent = function (userGroupId, pagination, options) {
|
|
2014
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
2015
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2016
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_23, _i, _a, interceptor;
|
|
2017
|
-
var _this = this;
|
|
2018
|
-
return __generator(this, function (_b) {
|
|
2019
|
-
localVarPath = this.basePath +
|
|
2020
|
-
'/groups/{userGroupId}/invites'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
2021
|
-
localVarQueryParameters = {};
|
|
2022
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
2023
|
-
produces = ['application/json'];
|
|
2024
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2025
|
-
localVarHeaderParams.Accept = produces[0];
|
|
2026
|
-
}
|
|
2027
|
-
else {
|
|
2028
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2029
|
-
}
|
|
2030
|
-
localVarFormParams = {};
|
|
2031
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
2032
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling listInvitesFromUserGroupCurrent.');
|
|
2033
|
-
}
|
|
2034
|
-
if (pagination === null || pagination === undefined) {
|
|
2035
|
-
throw new Error('Required parameter pagination was null or undefined when calling listInvitesFromUserGroupCurrent.');
|
|
2036
|
-
}
|
|
2037
|
-
if (pagination !== undefined) {
|
|
2038
|
-
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
2039
|
-
}
|
|
2040
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2041
|
-
localVarUseFormData = false;
|
|
2042
|
-
localVarRequestOptions = {
|
|
2043
|
-
method: 'GET',
|
|
2044
|
-
qs: localVarQueryParameters,
|
|
2045
|
-
headers: localVarHeaderParams,
|
|
2046
|
-
uri: localVarPath,
|
|
2047
|
-
useQuerystring: this._useQuerystring,
|
|
2048
|
-
json: true,
|
|
2049
|
-
};
|
|
2050
|
-
authenticationPromise = Promise.resolve();
|
|
2051
|
-
if (this.authentications.token.accessToken) {
|
|
2052
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2053
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
2054
|
-
});
|
|
2055
|
-
}
|
|
2056
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2057
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
2058
|
-
});
|
|
2059
|
-
interceptorPromise = authenticationPromise;
|
|
2060
|
-
_loop_23 = function (interceptor) {
|
|
2061
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
2062
|
-
return interceptor(localVarRequestOptions);
|
|
2063
|
-
});
|
|
2064
|
-
};
|
|
2065
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
2066
|
-
interceptor = _a[_i];
|
|
2067
|
-
_loop_23(interceptor);
|
|
2068
|
-
}
|
|
2069
|
-
return [2, interceptorPromise.then(function () {
|
|
2070
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2071
|
-
if (localVarUseFormData) {
|
|
2072
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2073
|
-
}
|
|
2074
|
-
else {
|
|
2075
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2076
|
-
}
|
|
2077
|
-
}
|
|
2078
|
-
return new Promise(function (resolve, reject) {
|
|
2079
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
2080
|
-
if (error) {
|
|
2081
|
-
reject(error);
|
|
2082
|
-
}
|
|
2083
|
-
else {
|
|
2084
|
-
if (response.statusCode &&
|
|
2085
|
-
response.statusCode >= 200 &&
|
|
2086
|
-
response.statusCode <= 299) {
|
|
2087
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ListInvitesFromUserGroup200Response');
|
|
2088
|
-
resolve({ response: response, body: body });
|
|
2089
|
-
}
|
|
2090
|
-
else {
|
|
2091
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2092
|
-
}
|
|
2093
|
-
}
|
|
2094
|
-
});
|
|
2095
|
-
});
|
|
2096
|
-
})];
|
|
2097
|
-
});
|
|
2098
|
-
});
|
|
2099
|
-
};
|
|
2100
|
-
IAMGroupsApi.prototype.listInvitesFromUserGroupV1 = function (userGroupId, pagination, options) {
|
|
2101
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
2102
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2103
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_24, _i, _a, interceptor;
|
|
2104
|
-
var _this = this;
|
|
2105
|
-
return __generator(this, function (_b) {
|
|
2106
|
-
localVarPath = this.basePath +
|
|
2107
|
-
'/groups/{userGroupId}/invites'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
2108
|
-
localVarQueryParameters = {};
|
|
2109
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
2110
|
-
produces = [
|
|
2111
|
-
'application/vnd.segment.v1+json',
|
|
2112
|
-
'application/json',
|
|
2113
|
-
];
|
|
2114
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2115
|
-
localVarHeaderParams.Accept = produces[0];
|
|
2116
|
-
}
|
|
2117
|
-
else {
|
|
2118
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2119
|
-
}
|
|
2120
|
-
localVarFormParams = {};
|
|
2121
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
2122
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling listInvitesFromUserGroupV1.');
|
|
2123
|
-
}
|
|
2124
|
-
if (pagination === null || pagination === undefined) {
|
|
2125
|
-
throw new Error('Required parameter pagination was null or undefined when calling listInvitesFromUserGroupV1.');
|
|
2126
|
-
}
|
|
2127
|
-
if (pagination !== undefined) {
|
|
2128
|
-
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
2129
|
-
}
|
|
2130
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2131
|
-
localVarUseFormData = false;
|
|
2132
|
-
localVarRequestOptions = {
|
|
2133
|
-
method: 'GET',
|
|
2134
|
-
qs: localVarQueryParameters,
|
|
2135
|
-
headers: localVarHeaderParams,
|
|
2136
|
-
uri: localVarPath,
|
|
2137
|
-
useQuerystring: this._useQuerystring,
|
|
2138
|
-
json: true,
|
|
2139
|
-
};
|
|
2140
|
-
authenticationPromise = Promise.resolve();
|
|
2141
|
-
if (this.authentications.token.accessToken) {
|
|
2142
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2143
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
2144
|
-
});
|
|
2145
|
-
}
|
|
2146
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2147
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
2148
|
-
});
|
|
2149
|
-
interceptorPromise = authenticationPromise;
|
|
2150
|
-
_loop_24 = function (interceptor) {
|
|
2151
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
2152
|
-
return interceptor(localVarRequestOptions);
|
|
2153
|
-
});
|
|
2154
|
-
};
|
|
2155
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
2156
|
-
interceptor = _a[_i];
|
|
2157
|
-
_loop_24(interceptor);
|
|
2158
|
-
}
|
|
2159
|
-
return [2, interceptorPromise.then(function () {
|
|
2160
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2161
|
-
if (localVarUseFormData) {
|
|
2162
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2163
|
-
}
|
|
2164
|
-
else {
|
|
2165
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2166
|
-
}
|
|
2167
|
-
}
|
|
2168
|
-
return new Promise(function (resolve, reject) {
|
|
2169
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
2170
|
-
if (error) {
|
|
2171
|
-
reject(error);
|
|
2172
|
-
}
|
|
2173
|
-
else {
|
|
2174
|
-
if (response.statusCode &&
|
|
2175
|
-
response.statusCode >= 200 &&
|
|
2176
|
-
response.statusCode <= 299) {
|
|
2177
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ListInvitesFromUserGroup200Response');
|
|
2178
|
-
resolve({ response: response, body: body });
|
|
2179
|
-
}
|
|
2180
|
-
else {
|
|
2181
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2182
|
-
}
|
|
2183
|
-
}
|
|
2184
|
-
});
|
|
2185
|
-
});
|
|
2186
|
-
})];
|
|
2187
|
-
});
|
|
2188
|
-
});
|
|
2189
|
-
};
|
|
2190
|
-
IAMGroupsApi.prototype.listUserGroupsAlpha = function (pagination, options) {
|
|
2191
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
2192
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2193
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_25, _i, _a, interceptor;
|
|
2194
|
-
var _this = this;
|
|
2195
|
-
return __generator(this, function (_b) {
|
|
2196
|
-
localVarPath = this.basePath + '/groups';
|
|
2197
|
-
localVarQueryParameters = {};
|
|
2198
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
2199
|
-
produces = [
|
|
2200
|
-
'application/vnd.segment.v1alpha+json',
|
|
2201
|
-
'application/json',
|
|
2202
|
-
];
|
|
2203
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2204
|
-
localVarHeaderParams.Accept = produces[0];
|
|
2205
|
-
}
|
|
2206
|
-
else {
|
|
2207
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2208
|
-
}
|
|
2209
|
-
localVarFormParams = {};
|
|
2210
|
-
if (pagination === null || pagination === undefined) {
|
|
2211
|
-
throw new Error('Required parameter pagination was null or undefined when calling listUserGroupsAlpha.');
|
|
2212
|
-
}
|
|
2213
|
-
if (pagination !== undefined) {
|
|
2214
|
-
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
2215
|
-
}
|
|
2216
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2217
|
-
localVarUseFormData = false;
|
|
2218
|
-
localVarRequestOptions = {
|
|
2219
|
-
method: 'GET',
|
|
2220
|
-
qs: localVarQueryParameters,
|
|
2221
|
-
headers: localVarHeaderParams,
|
|
2222
|
-
uri: localVarPath,
|
|
2223
|
-
useQuerystring: this._useQuerystring,
|
|
2224
|
-
json: true,
|
|
2225
|
-
};
|
|
2226
|
-
authenticationPromise = Promise.resolve();
|
|
2227
|
-
if (this.authentications.token.accessToken) {
|
|
2228
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2229
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
2230
|
-
});
|
|
2231
|
-
}
|
|
2232
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2233
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
2234
|
-
});
|
|
2235
|
-
interceptorPromise = authenticationPromise;
|
|
2236
|
-
_loop_25 = function (interceptor) {
|
|
2237
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
2238
|
-
return interceptor(localVarRequestOptions);
|
|
2239
|
-
});
|
|
2240
|
-
};
|
|
2241
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
2242
|
-
interceptor = _a[_i];
|
|
2243
|
-
_loop_25(interceptor);
|
|
2244
|
-
}
|
|
2245
|
-
return [2, interceptorPromise.then(function () {
|
|
2246
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2247
|
-
if (localVarUseFormData) {
|
|
2248
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2249
|
-
}
|
|
2250
|
-
else {
|
|
2251
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2252
|
-
}
|
|
2253
|
-
}
|
|
2254
|
-
return new Promise(function (resolve, reject) {
|
|
2255
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
2256
|
-
if (error) {
|
|
2257
|
-
reject(error);
|
|
2258
|
-
}
|
|
2259
|
-
else {
|
|
2260
|
-
if (response.statusCode &&
|
|
2261
|
-
response.statusCode >= 200 &&
|
|
2262
|
-
response.statusCode <= 299) {
|
|
2263
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ListUserGroups200Response');
|
|
2264
|
-
resolve({ response: response, body: body });
|
|
2265
|
-
}
|
|
2266
|
-
else {
|
|
2267
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2268
|
-
}
|
|
2269
|
-
}
|
|
2270
|
-
});
|
|
2271
|
-
});
|
|
2272
|
-
})];
|
|
2273
|
-
});
|
|
2274
|
-
});
|
|
2275
|
-
};
|
|
2276
|
-
IAMGroupsApi.prototype.listUserGroupsBeta = function (pagination, options) {
|
|
2277
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
2278
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2279
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_26, _i, _a, interceptor;
|
|
2280
|
-
var _this = this;
|
|
2281
|
-
return __generator(this, function (_b) {
|
|
2282
|
-
localVarPath = this.basePath + '/groups';
|
|
2283
|
-
localVarQueryParameters = {};
|
|
2284
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
2285
|
-
produces = [
|
|
2286
|
-
'application/vnd.segment.v1beta+json',
|
|
2287
|
-
'application/json',
|
|
2288
|
-
];
|
|
2289
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2290
|
-
localVarHeaderParams.Accept = produces[0];
|
|
2291
|
-
}
|
|
2292
|
-
else {
|
|
2293
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2294
|
-
}
|
|
2295
|
-
localVarFormParams = {};
|
|
2296
|
-
if (pagination === null || pagination === undefined) {
|
|
2297
|
-
throw new Error('Required parameter pagination was null or undefined when calling listUserGroupsBeta.');
|
|
2298
|
-
}
|
|
2299
|
-
if (pagination !== undefined) {
|
|
2300
|
-
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
2301
|
-
}
|
|
2302
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2303
|
-
localVarUseFormData = false;
|
|
2304
|
-
localVarRequestOptions = {
|
|
2305
|
-
method: 'GET',
|
|
2306
|
-
qs: localVarQueryParameters,
|
|
2307
|
-
headers: localVarHeaderParams,
|
|
2308
|
-
uri: localVarPath,
|
|
2309
|
-
useQuerystring: this._useQuerystring,
|
|
2310
|
-
json: true,
|
|
2311
|
-
};
|
|
2312
|
-
authenticationPromise = Promise.resolve();
|
|
2313
|
-
if (this.authentications.token.accessToken) {
|
|
2314
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2315
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
2316
|
-
});
|
|
2317
|
-
}
|
|
2318
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2319
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
2320
|
-
});
|
|
2321
|
-
interceptorPromise = authenticationPromise;
|
|
2322
|
-
_loop_26 = function (interceptor) {
|
|
2323
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
2324
|
-
return interceptor(localVarRequestOptions);
|
|
2325
|
-
});
|
|
2326
|
-
};
|
|
2327
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
2328
|
-
interceptor = _a[_i];
|
|
2329
|
-
_loop_26(interceptor);
|
|
2330
|
-
}
|
|
2331
|
-
return [2, interceptorPromise.then(function () {
|
|
2332
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2333
|
-
if (localVarUseFormData) {
|
|
2334
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2335
|
-
}
|
|
2336
|
-
else {
|
|
2337
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2338
|
-
}
|
|
2339
|
-
}
|
|
2340
|
-
return new Promise(function (resolve, reject) {
|
|
2341
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
2342
|
-
if (error) {
|
|
2343
|
-
reject(error);
|
|
2344
|
-
}
|
|
2345
|
-
else {
|
|
2346
|
-
if (response.statusCode &&
|
|
2347
|
-
response.statusCode >= 200 &&
|
|
2348
|
-
response.statusCode <= 299) {
|
|
2349
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ListUserGroups200Response');
|
|
2350
|
-
resolve({ response: response, body: body });
|
|
2351
|
-
}
|
|
2352
|
-
else {
|
|
2353
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2354
|
-
}
|
|
2355
|
-
}
|
|
2356
|
-
});
|
|
2357
|
-
});
|
|
2358
|
-
})];
|
|
2359
|
-
});
|
|
2360
|
-
});
|
|
2361
|
-
};
|
|
2362
|
-
IAMGroupsApi.prototype.listUserGroupsCurrent = function (pagination, options) {
|
|
2363
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
2364
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2365
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_27, _i, _a, interceptor;
|
|
2366
|
-
var _this = this;
|
|
2367
|
-
return __generator(this, function (_b) {
|
|
2368
|
-
localVarPath = this.basePath + '/groups';
|
|
2369
|
-
localVarQueryParameters = {};
|
|
2370
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
2371
|
-
produces = ['application/json'];
|
|
2372
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2373
|
-
localVarHeaderParams.Accept = produces[0];
|
|
2374
|
-
}
|
|
2375
|
-
else {
|
|
2376
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2377
|
-
}
|
|
2378
|
-
localVarFormParams = {};
|
|
2379
|
-
if (pagination === null || pagination === undefined) {
|
|
2380
|
-
throw new Error('Required parameter pagination was null or undefined when calling listUserGroupsCurrent.');
|
|
2381
|
-
}
|
|
2382
|
-
if (pagination !== undefined) {
|
|
2383
|
-
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
2384
|
-
}
|
|
2385
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2386
|
-
localVarUseFormData = false;
|
|
2387
|
-
localVarRequestOptions = {
|
|
2388
|
-
method: 'GET',
|
|
2389
|
-
qs: localVarQueryParameters,
|
|
2390
|
-
headers: localVarHeaderParams,
|
|
2391
|
-
uri: localVarPath,
|
|
2392
|
-
useQuerystring: this._useQuerystring,
|
|
2393
|
-
json: true,
|
|
2394
|
-
};
|
|
2395
|
-
authenticationPromise = Promise.resolve();
|
|
2396
|
-
if (this.authentications.token.accessToken) {
|
|
2397
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2398
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
2399
|
-
});
|
|
2400
|
-
}
|
|
2401
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2402
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
2403
|
-
});
|
|
2404
|
-
interceptorPromise = authenticationPromise;
|
|
2405
|
-
_loop_27 = function (interceptor) {
|
|
2406
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
2407
|
-
return interceptor(localVarRequestOptions);
|
|
2408
|
-
});
|
|
2409
|
-
};
|
|
2410
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
2411
|
-
interceptor = _a[_i];
|
|
2412
|
-
_loop_27(interceptor);
|
|
2413
|
-
}
|
|
2414
|
-
return [2, interceptorPromise.then(function () {
|
|
2415
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2416
|
-
if (localVarUseFormData) {
|
|
2417
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2418
|
-
}
|
|
2419
|
-
else {
|
|
2420
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2421
|
-
}
|
|
2422
|
-
}
|
|
2423
|
-
return new Promise(function (resolve, reject) {
|
|
2424
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
2425
|
-
if (error) {
|
|
2426
|
-
reject(error);
|
|
2427
|
-
}
|
|
2428
|
-
else {
|
|
2429
|
-
if (response.statusCode &&
|
|
2430
|
-
response.statusCode >= 200 &&
|
|
2431
|
-
response.statusCode <= 299) {
|
|
2432
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ListUserGroups200Response');
|
|
2433
|
-
resolve({ response: response, body: body });
|
|
2434
|
-
}
|
|
2435
|
-
else {
|
|
2436
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2437
|
-
}
|
|
2438
|
-
}
|
|
2439
|
-
});
|
|
2440
|
-
});
|
|
2441
|
-
})];
|
|
2442
|
-
});
|
|
2443
|
-
});
|
|
2444
|
-
};
|
|
2445
|
-
IAMGroupsApi.prototype.listUserGroupsV1 = function (pagination, options) {
|
|
2446
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
2447
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2448
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_28, _i, _a, interceptor;
|
|
2449
|
-
var _this = this;
|
|
2450
|
-
return __generator(this, function (_b) {
|
|
2451
|
-
localVarPath = this.basePath + '/groups';
|
|
2452
|
-
localVarQueryParameters = {};
|
|
2453
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
2454
|
-
produces = [
|
|
2455
|
-
'application/vnd.segment.v1+json',
|
|
2456
|
-
'application/json',
|
|
2457
|
-
];
|
|
2458
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2459
|
-
localVarHeaderParams.Accept = produces[0];
|
|
2460
|
-
}
|
|
2461
|
-
else {
|
|
2462
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2463
|
-
}
|
|
2464
|
-
localVarFormParams = {};
|
|
2465
|
-
if (pagination === null || pagination === undefined) {
|
|
2466
|
-
throw new Error('Required parameter pagination was null or undefined when calling listUserGroupsV1.');
|
|
2467
|
-
}
|
|
2468
|
-
if (pagination !== undefined) {
|
|
2469
|
-
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
2470
|
-
}
|
|
2471
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2472
|
-
localVarUseFormData = false;
|
|
2473
|
-
localVarRequestOptions = {
|
|
2474
|
-
method: 'GET',
|
|
2475
|
-
qs: localVarQueryParameters,
|
|
2476
|
-
headers: localVarHeaderParams,
|
|
2477
|
-
uri: localVarPath,
|
|
2478
|
-
useQuerystring: this._useQuerystring,
|
|
2479
|
-
json: true,
|
|
2480
|
-
};
|
|
2481
|
-
authenticationPromise = Promise.resolve();
|
|
2482
|
-
if (this.authentications.token.accessToken) {
|
|
2483
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2484
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
2485
|
-
});
|
|
2486
|
-
}
|
|
2487
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2488
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
2489
|
-
});
|
|
2490
|
-
interceptorPromise = authenticationPromise;
|
|
2491
|
-
_loop_28 = function (interceptor) {
|
|
2492
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
2493
|
-
return interceptor(localVarRequestOptions);
|
|
2494
|
-
});
|
|
2495
|
-
};
|
|
2496
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
2497
|
-
interceptor = _a[_i];
|
|
2498
|
-
_loop_28(interceptor);
|
|
2499
|
-
}
|
|
2500
|
-
return [2, interceptorPromise.then(function () {
|
|
2501
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2502
|
-
if (localVarUseFormData) {
|
|
2503
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2504
|
-
}
|
|
2505
|
-
else {
|
|
2506
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2507
|
-
}
|
|
2508
|
-
}
|
|
2509
|
-
return new Promise(function (resolve, reject) {
|
|
2510
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
2511
|
-
if (error) {
|
|
2512
|
-
reject(error);
|
|
2513
|
-
}
|
|
2514
|
-
else {
|
|
2515
|
-
if (response.statusCode &&
|
|
2516
|
-
response.statusCode >= 200 &&
|
|
2517
|
-
response.statusCode <= 299) {
|
|
2518
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ListUserGroups200Response');
|
|
2519
|
-
resolve({ response: response, body: body });
|
|
2520
|
-
}
|
|
2521
|
-
else {
|
|
2522
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2523
|
-
}
|
|
2524
|
-
}
|
|
2525
|
-
});
|
|
2526
|
-
});
|
|
2527
|
-
})];
|
|
2528
|
-
});
|
|
2529
|
-
});
|
|
2530
|
-
};
|
|
2531
|
-
IAMGroupsApi.prototype.listUsersFromUserGroupAlpha = function (userGroupId, pagination, options) {
|
|
2532
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
2533
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2534
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_29, _i, _a, interceptor;
|
|
2535
|
-
var _this = this;
|
|
2536
|
-
return __generator(this, function (_b) {
|
|
2537
|
-
localVarPath = this.basePath +
|
|
2538
|
-
'/groups/{userGroupId}/users'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
2539
|
-
localVarQueryParameters = {};
|
|
2540
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
2541
|
-
produces = [
|
|
2542
|
-
'application/vnd.segment.v1alpha+json',
|
|
2543
|
-
'application/json',
|
|
2544
|
-
];
|
|
2545
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2546
|
-
localVarHeaderParams.Accept = produces[0];
|
|
2547
|
-
}
|
|
2548
|
-
else {
|
|
2549
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2550
|
-
}
|
|
2551
|
-
localVarFormParams = {};
|
|
2552
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
2553
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling listUsersFromUserGroupAlpha.');
|
|
2554
|
-
}
|
|
2555
|
-
if (pagination === null || pagination === undefined) {
|
|
2556
|
-
throw new Error('Required parameter pagination was null or undefined when calling listUsersFromUserGroupAlpha.');
|
|
2557
|
-
}
|
|
2558
|
-
if (pagination !== undefined) {
|
|
2559
|
-
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
2560
|
-
}
|
|
2561
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2562
|
-
localVarUseFormData = false;
|
|
2563
|
-
localVarRequestOptions = {
|
|
2564
|
-
method: 'GET',
|
|
2565
|
-
qs: localVarQueryParameters,
|
|
2566
|
-
headers: localVarHeaderParams,
|
|
2567
|
-
uri: localVarPath,
|
|
2568
|
-
useQuerystring: this._useQuerystring,
|
|
2569
|
-
json: true,
|
|
2570
|
-
};
|
|
2571
|
-
authenticationPromise = Promise.resolve();
|
|
2572
|
-
if (this.authentications.token.accessToken) {
|
|
2573
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2574
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
2575
|
-
});
|
|
2576
|
-
}
|
|
2577
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2578
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
2579
|
-
});
|
|
2580
|
-
interceptorPromise = authenticationPromise;
|
|
2581
|
-
_loop_29 = function (interceptor) {
|
|
2582
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
2583
|
-
return interceptor(localVarRequestOptions);
|
|
2584
|
-
});
|
|
2585
|
-
};
|
|
2586
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
2587
|
-
interceptor = _a[_i];
|
|
2588
|
-
_loop_29(interceptor);
|
|
2589
|
-
}
|
|
2590
|
-
return [2, interceptorPromise.then(function () {
|
|
2591
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2592
|
-
if (localVarUseFormData) {
|
|
2593
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2594
|
-
}
|
|
2595
|
-
else {
|
|
2596
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2597
|
-
}
|
|
2598
|
-
}
|
|
2599
|
-
return new Promise(function (resolve, reject) {
|
|
2600
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
2601
|
-
if (error) {
|
|
2602
|
-
reject(error);
|
|
2603
|
-
}
|
|
2604
|
-
else {
|
|
2605
|
-
if (response.statusCode &&
|
|
2606
|
-
response.statusCode >= 200 &&
|
|
2607
|
-
response.statusCode <= 299) {
|
|
2608
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ListUsersFromUserGroup200Response');
|
|
2609
|
-
resolve({ response: response, body: body });
|
|
2610
|
-
}
|
|
2611
|
-
else {
|
|
2612
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2613
|
-
}
|
|
2614
|
-
}
|
|
2615
|
-
});
|
|
2616
|
-
});
|
|
2617
|
-
})];
|
|
2618
|
-
});
|
|
2619
|
-
});
|
|
2620
|
-
};
|
|
2621
|
-
IAMGroupsApi.prototype.listUsersFromUserGroupBeta = function (userGroupId, pagination, options) {
|
|
2622
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
2623
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2624
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_30, _i, _a, interceptor;
|
|
2625
|
-
var _this = this;
|
|
2626
|
-
return __generator(this, function (_b) {
|
|
2627
|
-
localVarPath = this.basePath +
|
|
2628
|
-
'/groups/{userGroupId}/users'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
2629
|
-
localVarQueryParameters = {};
|
|
2630
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
2631
|
-
produces = [
|
|
2632
|
-
'application/vnd.segment.v1beta+json',
|
|
2633
|
-
'application/json',
|
|
2634
|
-
];
|
|
2635
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2636
|
-
localVarHeaderParams.Accept = produces[0];
|
|
2637
|
-
}
|
|
2638
|
-
else {
|
|
2639
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2640
|
-
}
|
|
2641
|
-
localVarFormParams = {};
|
|
2642
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
2643
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling listUsersFromUserGroupBeta.');
|
|
2644
|
-
}
|
|
2645
|
-
if (pagination === null || pagination === undefined) {
|
|
2646
|
-
throw new Error('Required parameter pagination was null or undefined when calling listUsersFromUserGroupBeta.');
|
|
2647
|
-
}
|
|
2648
|
-
if (pagination !== undefined) {
|
|
2649
|
-
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
2650
|
-
}
|
|
2651
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2652
|
-
localVarUseFormData = false;
|
|
2653
|
-
localVarRequestOptions = {
|
|
2654
|
-
method: 'GET',
|
|
2655
|
-
qs: localVarQueryParameters,
|
|
2656
|
-
headers: localVarHeaderParams,
|
|
2657
|
-
uri: localVarPath,
|
|
2658
|
-
useQuerystring: this._useQuerystring,
|
|
2659
|
-
json: true,
|
|
2660
|
-
};
|
|
2661
|
-
authenticationPromise = Promise.resolve();
|
|
2662
|
-
if (this.authentications.token.accessToken) {
|
|
2663
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2664
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
2665
|
-
});
|
|
2666
|
-
}
|
|
2667
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2668
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
2669
|
-
});
|
|
2670
|
-
interceptorPromise = authenticationPromise;
|
|
2671
|
-
_loop_30 = function (interceptor) {
|
|
2672
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
2673
|
-
return interceptor(localVarRequestOptions);
|
|
2674
|
-
});
|
|
2675
|
-
};
|
|
2676
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
2677
|
-
interceptor = _a[_i];
|
|
2678
|
-
_loop_30(interceptor);
|
|
2679
|
-
}
|
|
2680
|
-
return [2, interceptorPromise.then(function () {
|
|
2681
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2682
|
-
if (localVarUseFormData) {
|
|
2683
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2684
|
-
}
|
|
2685
|
-
else {
|
|
2686
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2687
|
-
}
|
|
2688
|
-
}
|
|
2689
|
-
return new Promise(function (resolve, reject) {
|
|
2690
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
2691
|
-
if (error) {
|
|
2692
|
-
reject(error);
|
|
2693
|
-
}
|
|
2694
|
-
else {
|
|
2695
|
-
if (response.statusCode &&
|
|
2696
|
-
response.statusCode >= 200 &&
|
|
2697
|
-
response.statusCode <= 299) {
|
|
2698
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ListUsersFromUserGroup200Response');
|
|
2699
|
-
resolve({ response: response, body: body });
|
|
2700
|
-
}
|
|
2701
|
-
else {
|
|
2702
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2703
|
-
}
|
|
2704
|
-
}
|
|
2705
|
-
});
|
|
2706
|
-
});
|
|
2707
|
-
})];
|
|
2708
|
-
});
|
|
2709
|
-
});
|
|
2710
|
-
};
|
|
2711
|
-
IAMGroupsApi.prototype.listUsersFromUserGroupCurrent = function (userGroupId, pagination, options) {
|
|
2712
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
2713
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2714
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_31, _i, _a, interceptor;
|
|
2715
|
-
var _this = this;
|
|
2716
|
-
return __generator(this, function (_b) {
|
|
2717
|
-
localVarPath = this.basePath +
|
|
2718
|
-
'/groups/{userGroupId}/users'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
2719
|
-
localVarQueryParameters = {};
|
|
2720
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
2721
|
-
produces = ['application/json'];
|
|
2722
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2723
|
-
localVarHeaderParams.Accept = produces[0];
|
|
2724
|
-
}
|
|
2725
|
-
else {
|
|
2726
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2727
|
-
}
|
|
2728
|
-
localVarFormParams = {};
|
|
2729
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
2730
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling listUsersFromUserGroupCurrent.');
|
|
2731
|
-
}
|
|
2732
|
-
if (pagination === null || pagination === undefined) {
|
|
2733
|
-
throw new Error('Required parameter pagination was null or undefined when calling listUsersFromUserGroupCurrent.');
|
|
2734
|
-
}
|
|
2735
|
-
if (pagination !== undefined) {
|
|
2736
|
-
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
2737
|
-
}
|
|
2738
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2739
|
-
localVarUseFormData = false;
|
|
2740
|
-
localVarRequestOptions = {
|
|
2741
|
-
method: 'GET',
|
|
2742
|
-
qs: localVarQueryParameters,
|
|
2743
|
-
headers: localVarHeaderParams,
|
|
2744
|
-
uri: localVarPath,
|
|
2745
|
-
useQuerystring: this._useQuerystring,
|
|
2746
|
-
json: true,
|
|
2747
|
-
};
|
|
2748
|
-
authenticationPromise = Promise.resolve();
|
|
2749
|
-
if (this.authentications.token.accessToken) {
|
|
2750
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2751
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
2752
|
-
});
|
|
2753
|
-
}
|
|
2754
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2755
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
2756
|
-
});
|
|
2757
|
-
interceptorPromise = authenticationPromise;
|
|
2758
|
-
_loop_31 = function (interceptor) {
|
|
2759
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
2760
|
-
return interceptor(localVarRequestOptions);
|
|
2761
|
-
});
|
|
2762
|
-
};
|
|
2763
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
2764
|
-
interceptor = _a[_i];
|
|
2765
|
-
_loop_31(interceptor);
|
|
2766
|
-
}
|
|
2767
|
-
return [2, interceptorPromise.then(function () {
|
|
2768
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2769
|
-
if (localVarUseFormData) {
|
|
2770
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2771
|
-
}
|
|
2772
|
-
else {
|
|
2773
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2774
|
-
}
|
|
2775
|
-
}
|
|
2776
|
-
return new Promise(function (resolve, reject) {
|
|
2777
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
2778
|
-
if (error) {
|
|
2779
|
-
reject(error);
|
|
2780
|
-
}
|
|
2781
|
-
else {
|
|
2782
|
-
if (response.statusCode &&
|
|
2783
|
-
response.statusCode >= 200 &&
|
|
2784
|
-
response.statusCode <= 299) {
|
|
2785
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ListUsersFromUserGroup200Response');
|
|
2786
|
-
resolve({ response: response, body: body });
|
|
2787
|
-
}
|
|
2788
|
-
else {
|
|
2789
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2790
|
-
}
|
|
2791
|
-
}
|
|
2792
|
-
});
|
|
2793
|
-
});
|
|
2794
|
-
})];
|
|
2795
|
-
});
|
|
2796
|
-
});
|
|
2797
|
-
};
|
|
2798
|
-
IAMGroupsApi.prototype.listUsersFromUserGroupV1 = function (userGroupId, pagination, options) {
|
|
2799
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
2800
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2801
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_32, _i, _a, interceptor;
|
|
2802
|
-
var _this = this;
|
|
2803
|
-
return __generator(this, function (_b) {
|
|
2804
|
-
localVarPath = this.basePath +
|
|
2805
|
-
'/groups/{userGroupId}/users'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
2806
|
-
localVarQueryParameters = {};
|
|
2807
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
2808
|
-
produces = [
|
|
2809
|
-
'application/vnd.segment.v1+json',
|
|
2810
|
-
'application/json',
|
|
2811
|
-
];
|
|
2812
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2813
|
-
localVarHeaderParams.Accept = produces[0];
|
|
2814
|
-
}
|
|
2815
|
-
else {
|
|
2816
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2817
|
-
}
|
|
2818
|
-
localVarFormParams = {};
|
|
2819
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
2820
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling listUsersFromUserGroupV1.');
|
|
2821
|
-
}
|
|
2822
|
-
if (pagination === null || pagination === undefined) {
|
|
2823
|
-
throw new Error('Required parameter pagination was null or undefined when calling listUsersFromUserGroupV1.');
|
|
2824
|
-
}
|
|
2825
|
-
if (pagination !== undefined) {
|
|
2826
|
-
localVarQueryParameters['pagination'] = models_1.ObjectSerializer.serialize(pagination, 'PaginationInput');
|
|
2827
|
-
}
|
|
2828
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2829
|
-
localVarUseFormData = false;
|
|
2830
|
-
localVarRequestOptions = {
|
|
2831
|
-
method: 'GET',
|
|
2832
|
-
qs: localVarQueryParameters,
|
|
2833
|
-
headers: localVarHeaderParams,
|
|
2834
|
-
uri: localVarPath,
|
|
2835
|
-
useQuerystring: this._useQuerystring,
|
|
2836
|
-
json: true,
|
|
2837
|
-
};
|
|
2838
|
-
authenticationPromise = Promise.resolve();
|
|
2839
|
-
if (this.authentications.token.accessToken) {
|
|
2840
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2841
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
2842
|
-
});
|
|
2843
|
-
}
|
|
2844
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2845
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
2846
|
-
});
|
|
2847
|
-
interceptorPromise = authenticationPromise;
|
|
2848
|
-
_loop_32 = function (interceptor) {
|
|
2849
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
2850
|
-
return interceptor(localVarRequestOptions);
|
|
2851
|
-
});
|
|
2852
|
-
};
|
|
2853
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
2854
|
-
interceptor = _a[_i];
|
|
2855
|
-
_loop_32(interceptor);
|
|
2856
|
-
}
|
|
2857
|
-
return [2, interceptorPromise.then(function () {
|
|
2858
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2859
|
-
if (localVarUseFormData) {
|
|
2860
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2861
|
-
}
|
|
2862
|
-
else {
|
|
2863
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2864
|
-
}
|
|
2865
|
-
}
|
|
2866
|
-
return new Promise(function (resolve, reject) {
|
|
2867
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
2868
|
-
if (error) {
|
|
2869
|
-
reject(error);
|
|
2870
|
-
}
|
|
2871
|
-
else {
|
|
2872
|
-
if (response.statusCode &&
|
|
2873
|
-
response.statusCode >= 200 &&
|
|
2874
|
-
response.statusCode <= 299) {
|
|
2875
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ListUsersFromUserGroup200Response');
|
|
2876
|
-
resolve({ response: response, body: body });
|
|
2877
|
-
}
|
|
2878
|
-
else {
|
|
2879
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2880
|
-
}
|
|
2881
|
-
}
|
|
2882
|
-
});
|
|
2883
|
-
});
|
|
2884
|
-
})];
|
|
2885
|
-
});
|
|
2886
|
-
});
|
|
2887
|
-
};
|
|
2888
|
-
IAMGroupsApi.prototype.removeUsersFromUserGroupAlpha = function (userGroupId, emails, options) {
|
|
2889
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
2890
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2891
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_33, _i, _a, interceptor;
|
|
2892
|
-
var _this = this;
|
|
2893
|
-
return __generator(this, function (_b) {
|
|
2894
|
-
localVarPath = this.basePath +
|
|
2895
|
-
'/group/{userGroupId}/users'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
2896
|
-
localVarQueryParameters = {};
|
|
2897
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
2898
|
-
produces = [
|
|
2899
|
-
'application/vnd.segment.v1alpha+json',
|
|
2900
|
-
'application/json',
|
|
2901
|
-
];
|
|
2902
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2903
|
-
localVarHeaderParams.Accept = produces[0];
|
|
2904
|
-
}
|
|
2905
|
-
else {
|
|
2906
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2907
|
-
}
|
|
2908
|
-
localVarFormParams = {};
|
|
2909
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
2910
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling removeUsersFromUserGroupAlpha.');
|
|
2911
|
-
}
|
|
2912
|
-
if (emails === null || emails === undefined) {
|
|
2913
|
-
throw new Error('Required parameter emails was null or undefined when calling removeUsersFromUserGroupAlpha.');
|
|
2914
|
-
}
|
|
2915
|
-
if (emails !== undefined) {
|
|
2916
|
-
localVarQueryParameters['emails'] = models_1.ObjectSerializer.serialize(emails, 'Array<string>');
|
|
2917
|
-
}
|
|
2918
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2919
|
-
localVarUseFormData = false;
|
|
2920
|
-
localVarRequestOptions = {
|
|
2921
|
-
method: 'DELETE',
|
|
2922
|
-
qs: localVarQueryParameters,
|
|
2923
|
-
headers: localVarHeaderParams,
|
|
2924
|
-
uri: localVarPath,
|
|
2925
|
-
useQuerystring: this._useQuerystring,
|
|
2926
|
-
json: true,
|
|
2927
|
-
};
|
|
2928
|
-
authenticationPromise = Promise.resolve();
|
|
2929
|
-
if (this.authentications.token.accessToken) {
|
|
2930
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2931
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
2932
|
-
});
|
|
2933
|
-
}
|
|
2934
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
2935
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
2936
|
-
});
|
|
2937
|
-
interceptorPromise = authenticationPromise;
|
|
2938
|
-
_loop_33 = function (interceptor) {
|
|
2939
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
2940
|
-
return interceptor(localVarRequestOptions);
|
|
2941
|
-
});
|
|
2942
|
-
};
|
|
2943
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
2944
|
-
interceptor = _a[_i];
|
|
2945
|
-
_loop_33(interceptor);
|
|
2946
|
-
}
|
|
2947
|
-
return [2, interceptorPromise.then(function () {
|
|
2948
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2949
|
-
if (localVarUseFormData) {
|
|
2950
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2951
|
-
}
|
|
2952
|
-
else {
|
|
2953
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2954
|
-
}
|
|
2955
|
-
}
|
|
2956
|
-
return new Promise(function (resolve, reject) {
|
|
2957
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
2958
|
-
if (error) {
|
|
2959
|
-
reject(error);
|
|
2960
|
-
}
|
|
2961
|
-
else {
|
|
2962
|
-
if (response.statusCode &&
|
|
2963
|
-
response.statusCode >= 200 &&
|
|
2964
|
-
response.statusCode <= 299) {
|
|
2965
|
-
body = models_1.ObjectSerializer.deserialize(body, 'RemoveUsersFromUserGroup200Response');
|
|
2966
|
-
resolve({ response: response, body: body });
|
|
2967
|
-
}
|
|
2968
|
-
else {
|
|
2969
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
2970
|
-
}
|
|
2971
|
-
}
|
|
2972
|
-
});
|
|
2973
|
-
});
|
|
2974
|
-
})];
|
|
2975
|
-
});
|
|
2976
|
-
});
|
|
2977
|
-
};
|
|
2978
|
-
IAMGroupsApi.prototype.removeUsersFromUserGroupBeta = function (userGroupId, emails, options) {
|
|
2979
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
2980
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2981
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_34, _i, _a, interceptor;
|
|
2982
|
-
var _this = this;
|
|
2983
|
-
return __generator(this, function (_b) {
|
|
2984
|
-
localVarPath = this.basePath +
|
|
2985
|
-
'/group/{userGroupId}/users'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
2986
|
-
localVarQueryParameters = {};
|
|
2987
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
2988
|
-
produces = [
|
|
2989
|
-
'application/vnd.segment.v1beta+json',
|
|
2990
|
-
'application/json',
|
|
2991
|
-
];
|
|
2992
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2993
|
-
localVarHeaderParams.Accept = produces[0];
|
|
2994
|
-
}
|
|
2995
|
-
else {
|
|
2996
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2997
|
-
}
|
|
2998
|
-
localVarFormParams = {};
|
|
2999
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
3000
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling removeUsersFromUserGroupBeta.');
|
|
3001
|
-
}
|
|
3002
|
-
if (emails === null || emails === undefined) {
|
|
3003
|
-
throw new Error('Required parameter emails was null or undefined when calling removeUsersFromUserGroupBeta.');
|
|
3004
|
-
}
|
|
3005
|
-
if (emails !== undefined) {
|
|
3006
|
-
localVarQueryParameters['emails'] = models_1.ObjectSerializer.serialize(emails, 'Array<string>');
|
|
3007
|
-
}
|
|
3008
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
3009
|
-
localVarUseFormData = false;
|
|
3010
|
-
localVarRequestOptions = {
|
|
3011
|
-
method: 'DELETE',
|
|
3012
|
-
qs: localVarQueryParameters,
|
|
3013
|
-
headers: localVarHeaderParams,
|
|
3014
|
-
uri: localVarPath,
|
|
3015
|
-
useQuerystring: this._useQuerystring,
|
|
3016
|
-
json: true,
|
|
3017
|
-
};
|
|
3018
|
-
authenticationPromise = Promise.resolve();
|
|
3019
|
-
if (this.authentications.token.accessToken) {
|
|
3020
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
3021
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
3022
|
-
});
|
|
3023
|
-
}
|
|
3024
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
3025
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
3026
|
-
});
|
|
3027
|
-
interceptorPromise = authenticationPromise;
|
|
3028
|
-
_loop_34 = function (interceptor) {
|
|
3029
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
3030
|
-
return interceptor(localVarRequestOptions);
|
|
3031
|
-
});
|
|
3032
|
-
};
|
|
3033
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
3034
|
-
interceptor = _a[_i];
|
|
3035
|
-
_loop_34(interceptor);
|
|
3036
|
-
}
|
|
3037
|
-
return [2, interceptorPromise.then(function () {
|
|
3038
|
-
if (Object.keys(localVarFormParams).length) {
|
|
3039
|
-
if (localVarUseFormData) {
|
|
3040
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
3041
|
-
}
|
|
3042
|
-
else {
|
|
3043
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
3044
|
-
}
|
|
3045
|
-
}
|
|
3046
|
-
return new Promise(function (resolve, reject) {
|
|
3047
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
3048
|
-
if (error) {
|
|
3049
|
-
reject(error);
|
|
3050
|
-
}
|
|
3051
|
-
else {
|
|
3052
|
-
if (response.statusCode &&
|
|
3053
|
-
response.statusCode >= 200 &&
|
|
3054
|
-
response.statusCode <= 299) {
|
|
3055
|
-
body = models_1.ObjectSerializer.deserialize(body, 'RemoveUsersFromUserGroup200Response');
|
|
3056
|
-
resolve({ response: response, body: body });
|
|
3057
|
-
}
|
|
3058
|
-
else {
|
|
3059
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
3060
|
-
}
|
|
3061
|
-
}
|
|
3062
|
-
});
|
|
3063
|
-
});
|
|
3064
|
-
})];
|
|
3065
|
-
});
|
|
3066
|
-
});
|
|
3067
|
-
};
|
|
3068
|
-
IAMGroupsApi.prototype.removeUsersFromUserGroupCurrent = function (userGroupId, emails, options) {
|
|
3069
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
3070
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3071
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_35, _i, _a, interceptor;
|
|
3072
|
-
var _this = this;
|
|
3073
|
-
return __generator(this, function (_b) {
|
|
3074
|
-
localVarPath = this.basePath +
|
|
3075
|
-
'/group/{userGroupId}/users'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
3076
|
-
localVarQueryParameters = {};
|
|
3077
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
3078
|
-
produces = ['application/json'];
|
|
3079
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
3080
|
-
localVarHeaderParams.Accept = produces[0];
|
|
3081
|
-
}
|
|
3082
|
-
else {
|
|
3083
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
3084
|
-
}
|
|
3085
|
-
localVarFormParams = {};
|
|
3086
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
3087
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling removeUsersFromUserGroupCurrent.');
|
|
3088
|
-
}
|
|
3089
|
-
if (emails === null || emails === undefined) {
|
|
3090
|
-
throw new Error('Required parameter emails was null or undefined when calling removeUsersFromUserGroupCurrent.');
|
|
3091
|
-
}
|
|
3092
|
-
if (emails !== undefined) {
|
|
3093
|
-
localVarQueryParameters['emails'] = models_1.ObjectSerializer.serialize(emails, 'Array<string>');
|
|
3094
|
-
}
|
|
3095
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
3096
|
-
localVarUseFormData = false;
|
|
3097
|
-
localVarRequestOptions = {
|
|
3098
|
-
method: 'DELETE',
|
|
3099
|
-
qs: localVarQueryParameters,
|
|
3100
|
-
headers: localVarHeaderParams,
|
|
3101
|
-
uri: localVarPath,
|
|
3102
|
-
useQuerystring: this._useQuerystring,
|
|
3103
|
-
json: true,
|
|
3104
|
-
};
|
|
3105
|
-
authenticationPromise = Promise.resolve();
|
|
3106
|
-
if (this.authentications.token.accessToken) {
|
|
3107
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
3108
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
3109
|
-
});
|
|
3110
|
-
}
|
|
3111
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
3112
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
3113
|
-
});
|
|
3114
|
-
interceptorPromise = authenticationPromise;
|
|
3115
|
-
_loop_35 = function (interceptor) {
|
|
3116
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
3117
|
-
return interceptor(localVarRequestOptions);
|
|
3118
|
-
});
|
|
3119
|
-
};
|
|
3120
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
3121
|
-
interceptor = _a[_i];
|
|
3122
|
-
_loop_35(interceptor);
|
|
3123
|
-
}
|
|
3124
|
-
return [2, interceptorPromise.then(function () {
|
|
3125
|
-
if (Object.keys(localVarFormParams).length) {
|
|
3126
|
-
if (localVarUseFormData) {
|
|
3127
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
3128
|
-
}
|
|
3129
|
-
else {
|
|
3130
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
3131
|
-
}
|
|
3132
|
-
}
|
|
3133
|
-
return new Promise(function (resolve, reject) {
|
|
3134
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
3135
|
-
if (error) {
|
|
3136
|
-
reject(error);
|
|
3137
|
-
}
|
|
3138
|
-
else {
|
|
3139
|
-
if (response.statusCode &&
|
|
3140
|
-
response.statusCode >= 200 &&
|
|
3141
|
-
response.statusCode <= 299) {
|
|
3142
|
-
body = models_1.ObjectSerializer.deserialize(body, 'RemoveUsersFromUserGroup200Response');
|
|
3143
|
-
resolve({ response: response, body: body });
|
|
3144
|
-
}
|
|
3145
|
-
else {
|
|
3146
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
3147
|
-
}
|
|
3148
|
-
}
|
|
3149
|
-
});
|
|
3150
|
-
});
|
|
3151
|
-
})];
|
|
3152
|
-
});
|
|
3153
|
-
});
|
|
3154
|
-
};
|
|
3155
|
-
IAMGroupsApi.prototype.removeUsersFromUserGroupV1 = function (userGroupId, emails, options) {
|
|
3156
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
3157
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3158
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_36, _i, _a, interceptor;
|
|
3159
|
-
var _this = this;
|
|
3160
|
-
return __generator(this, function (_b) {
|
|
3161
|
-
localVarPath = this.basePath +
|
|
3162
|
-
'/group/{userGroupId}/users'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
3163
|
-
localVarQueryParameters = {};
|
|
3164
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
3165
|
-
produces = [
|
|
3166
|
-
'application/vnd.segment.v1+json',
|
|
3167
|
-
'application/json',
|
|
3168
|
-
];
|
|
3169
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
3170
|
-
localVarHeaderParams.Accept = produces[0];
|
|
3171
|
-
}
|
|
3172
|
-
else {
|
|
3173
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
3174
|
-
}
|
|
3175
|
-
localVarFormParams = {};
|
|
3176
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
3177
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling removeUsersFromUserGroupV1.');
|
|
3178
|
-
}
|
|
3179
|
-
if (emails === null || emails === undefined) {
|
|
3180
|
-
throw new Error('Required parameter emails was null or undefined when calling removeUsersFromUserGroupV1.');
|
|
3181
|
-
}
|
|
3182
|
-
if (emails !== undefined) {
|
|
3183
|
-
localVarQueryParameters['emails'] = models_1.ObjectSerializer.serialize(emails, 'Array<string>');
|
|
3184
|
-
}
|
|
3185
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
3186
|
-
localVarUseFormData = false;
|
|
3187
|
-
localVarRequestOptions = {
|
|
3188
|
-
method: 'DELETE',
|
|
3189
|
-
qs: localVarQueryParameters,
|
|
3190
|
-
headers: localVarHeaderParams,
|
|
3191
|
-
uri: localVarPath,
|
|
3192
|
-
useQuerystring: this._useQuerystring,
|
|
3193
|
-
json: true,
|
|
3194
|
-
};
|
|
3195
|
-
authenticationPromise = Promise.resolve();
|
|
3196
|
-
if (this.authentications.token.accessToken) {
|
|
3197
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
3198
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
3199
|
-
});
|
|
3200
|
-
}
|
|
3201
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
3202
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
3203
|
-
});
|
|
3204
|
-
interceptorPromise = authenticationPromise;
|
|
3205
|
-
_loop_36 = function (interceptor) {
|
|
3206
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
3207
|
-
return interceptor(localVarRequestOptions);
|
|
3208
|
-
});
|
|
3209
|
-
};
|
|
3210
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
3211
|
-
interceptor = _a[_i];
|
|
3212
|
-
_loop_36(interceptor);
|
|
3213
|
-
}
|
|
3214
|
-
return [2, interceptorPromise.then(function () {
|
|
3215
|
-
if (Object.keys(localVarFormParams).length) {
|
|
3216
|
-
if (localVarUseFormData) {
|
|
3217
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
3218
|
-
}
|
|
3219
|
-
else {
|
|
3220
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
3221
|
-
}
|
|
3222
|
-
}
|
|
3223
|
-
return new Promise(function (resolve, reject) {
|
|
3224
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
3225
|
-
if (error) {
|
|
3226
|
-
reject(error);
|
|
3227
|
-
}
|
|
3228
|
-
else {
|
|
3229
|
-
if (response.statusCode &&
|
|
3230
|
-
response.statusCode >= 200 &&
|
|
3231
|
-
response.statusCode <= 299) {
|
|
3232
|
-
body = models_1.ObjectSerializer.deserialize(body, 'RemoveUsersFromUserGroup200Response');
|
|
3233
|
-
resolve({ response: response, body: body });
|
|
3234
|
-
}
|
|
3235
|
-
else {
|
|
3236
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
3237
|
-
}
|
|
3238
|
-
}
|
|
3239
|
-
});
|
|
3240
|
-
});
|
|
3241
|
-
})];
|
|
3242
|
-
});
|
|
3243
|
-
});
|
|
3244
|
-
};
|
|
3245
|
-
IAMGroupsApi.prototype.replacePermissionsForUserGroupAlpha = function (userGroupId, ReplacePermissionsForUserGroupV1Input, options) {
|
|
3246
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
3247
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3248
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_37, _i, _a, interceptor;
|
|
3249
|
-
var _this = this;
|
|
3250
|
-
return __generator(this, function (_b) {
|
|
3251
|
-
localVarPath = this.basePath +
|
|
3252
|
-
'/groups/{userGroupId}/permissions'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
3253
|
-
localVarQueryParameters = {};
|
|
3254
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
3255
|
-
produces = [
|
|
3256
|
-
'application/vnd.segment.v1alpha+json',
|
|
3257
|
-
'application/json',
|
|
3258
|
-
];
|
|
3259
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
3260
|
-
localVarHeaderParams.Accept = produces[0];
|
|
3261
|
-
}
|
|
3262
|
-
else {
|
|
3263
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
3264
|
-
}
|
|
3265
|
-
localVarFormParams = {};
|
|
3266
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
3267
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling replacePermissionsForUserGroupAlpha.');
|
|
3268
|
-
}
|
|
3269
|
-
if (ReplacePermissionsForUserGroupV1Input === null ||
|
|
3270
|
-
ReplacePermissionsForUserGroupV1Input === undefined) {
|
|
3271
|
-
throw new Error('Required parameter ReplacePermissionsForUserGroupV1Input was null or undefined when calling replacePermissionsForUserGroupAlpha.');
|
|
3272
|
-
}
|
|
3273
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
3274
|
-
localVarUseFormData = false;
|
|
3275
|
-
localVarRequestOptions = {
|
|
3276
|
-
method: 'PUT',
|
|
3277
|
-
qs: localVarQueryParameters,
|
|
3278
|
-
headers: localVarHeaderParams,
|
|
3279
|
-
uri: localVarPath,
|
|
3280
|
-
useQuerystring: this._useQuerystring,
|
|
3281
|
-
json: true,
|
|
3282
|
-
body: models_1.ObjectSerializer.serialize(ReplacePermissionsForUserGroupV1Input, 'ReplacePermissionsForUserGroupV1Input'),
|
|
3283
|
-
};
|
|
3284
|
-
authenticationPromise = Promise.resolve();
|
|
3285
|
-
if (this.authentications.token.accessToken) {
|
|
3286
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
3287
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
3288
|
-
});
|
|
3289
|
-
}
|
|
3290
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
3291
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
3292
|
-
});
|
|
3293
|
-
interceptorPromise = authenticationPromise;
|
|
3294
|
-
_loop_37 = function (interceptor) {
|
|
3295
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
3296
|
-
return interceptor(localVarRequestOptions);
|
|
3297
|
-
});
|
|
3298
|
-
};
|
|
3299
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
3300
|
-
interceptor = _a[_i];
|
|
3301
|
-
_loop_37(interceptor);
|
|
3302
|
-
}
|
|
3303
|
-
return [2, interceptorPromise.then(function () {
|
|
3304
|
-
if (Object.keys(localVarFormParams).length) {
|
|
3305
|
-
if (localVarUseFormData) {
|
|
3306
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
3307
|
-
}
|
|
3308
|
-
else {
|
|
3309
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
3310
|
-
}
|
|
3311
|
-
}
|
|
3312
|
-
return new Promise(function (resolve, reject) {
|
|
3313
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
3314
|
-
if (error) {
|
|
3315
|
-
reject(error);
|
|
3316
|
-
}
|
|
3317
|
-
else {
|
|
3318
|
-
if (response.statusCode &&
|
|
3319
|
-
response.statusCode >= 200 &&
|
|
3320
|
-
response.statusCode <= 299) {
|
|
3321
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ReplacePermissionsForUserGroup200Response');
|
|
3322
|
-
resolve({ response: response, body: body });
|
|
3323
|
-
}
|
|
3324
|
-
else {
|
|
3325
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
3326
|
-
}
|
|
3327
|
-
}
|
|
3328
|
-
});
|
|
3329
|
-
});
|
|
3330
|
-
})];
|
|
3331
|
-
});
|
|
3332
|
-
});
|
|
3333
|
-
};
|
|
3334
|
-
IAMGroupsApi.prototype.replacePermissionsForUserGroupBeta = function (userGroupId, ReplacePermissionsForUserGroupV1Input, options) {
|
|
3335
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
3336
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3337
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_38, _i, _a, interceptor;
|
|
3338
|
-
var _this = this;
|
|
3339
|
-
return __generator(this, function (_b) {
|
|
3340
|
-
localVarPath = this.basePath +
|
|
3341
|
-
'/groups/{userGroupId}/permissions'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
3342
|
-
localVarQueryParameters = {};
|
|
3343
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
3344
|
-
produces = [
|
|
3345
|
-
'application/vnd.segment.v1beta+json',
|
|
3346
|
-
'application/json',
|
|
3347
|
-
];
|
|
3348
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
3349
|
-
localVarHeaderParams.Accept = produces[0];
|
|
3350
|
-
}
|
|
3351
|
-
else {
|
|
3352
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
3353
|
-
}
|
|
3354
|
-
localVarFormParams = {};
|
|
3355
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
3356
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling replacePermissionsForUserGroupBeta.');
|
|
3357
|
-
}
|
|
3358
|
-
if (ReplacePermissionsForUserGroupV1Input === null ||
|
|
3359
|
-
ReplacePermissionsForUserGroupV1Input === undefined) {
|
|
3360
|
-
throw new Error('Required parameter ReplacePermissionsForUserGroupV1Input was null or undefined when calling replacePermissionsForUserGroupBeta.');
|
|
3361
|
-
}
|
|
3362
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
3363
|
-
localVarUseFormData = false;
|
|
3364
|
-
localVarRequestOptions = {
|
|
3365
|
-
method: 'PUT',
|
|
3366
|
-
qs: localVarQueryParameters,
|
|
3367
|
-
headers: localVarHeaderParams,
|
|
3368
|
-
uri: localVarPath,
|
|
3369
|
-
useQuerystring: this._useQuerystring,
|
|
3370
|
-
json: true,
|
|
3371
|
-
body: models_1.ObjectSerializer.serialize(ReplacePermissionsForUserGroupV1Input, 'ReplacePermissionsForUserGroupV1Input'),
|
|
3372
|
-
};
|
|
3373
|
-
authenticationPromise = Promise.resolve();
|
|
3374
|
-
if (this.authentications.token.accessToken) {
|
|
3375
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
3376
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
3377
|
-
});
|
|
3378
|
-
}
|
|
3379
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
3380
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
3381
|
-
});
|
|
3382
|
-
interceptorPromise = authenticationPromise;
|
|
3383
|
-
_loop_38 = function (interceptor) {
|
|
3384
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
3385
|
-
return interceptor(localVarRequestOptions);
|
|
3386
|
-
});
|
|
3387
|
-
};
|
|
3388
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
3389
|
-
interceptor = _a[_i];
|
|
3390
|
-
_loop_38(interceptor);
|
|
3391
|
-
}
|
|
3392
|
-
return [2, interceptorPromise.then(function () {
|
|
3393
|
-
if (Object.keys(localVarFormParams).length) {
|
|
3394
|
-
if (localVarUseFormData) {
|
|
3395
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
3396
|
-
}
|
|
3397
|
-
else {
|
|
3398
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
3399
|
-
}
|
|
3400
|
-
}
|
|
3401
|
-
return new Promise(function (resolve, reject) {
|
|
3402
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
3403
|
-
if (error) {
|
|
3404
|
-
reject(error);
|
|
3405
|
-
}
|
|
3406
|
-
else {
|
|
3407
|
-
if (response.statusCode &&
|
|
3408
|
-
response.statusCode >= 200 &&
|
|
3409
|
-
response.statusCode <= 299) {
|
|
3410
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ReplacePermissionsForUserGroup200Response');
|
|
3411
|
-
resolve({ response: response, body: body });
|
|
3412
|
-
}
|
|
3413
|
-
else {
|
|
3414
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
3415
|
-
}
|
|
3416
|
-
}
|
|
3417
|
-
});
|
|
3418
|
-
});
|
|
3419
|
-
})];
|
|
3420
|
-
});
|
|
3421
|
-
});
|
|
3422
|
-
};
|
|
3423
|
-
IAMGroupsApi.prototype.replacePermissionsForUserGroupCurrent = function (userGroupId, ReplacePermissionsForUserGroupV1Input, options) {
|
|
3424
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
3425
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3426
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_39, _i, _a, interceptor;
|
|
3427
|
-
var _this = this;
|
|
3428
|
-
return __generator(this, function (_b) {
|
|
3429
|
-
localVarPath = this.basePath +
|
|
3430
|
-
'/groups/{userGroupId}/permissions'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
3431
|
-
localVarQueryParameters = {};
|
|
3432
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
3433
|
-
produces = [
|
|
3434
|
-
'application/vnd.segment.v1+json',
|
|
3435
|
-
'application/json',
|
|
3436
|
-
];
|
|
3437
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
3438
|
-
localVarHeaderParams.Accept = produces[0];
|
|
3439
|
-
}
|
|
3440
|
-
else {
|
|
3441
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
3442
|
-
}
|
|
3443
|
-
localVarFormParams = {};
|
|
3444
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
3445
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling replacePermissionsForUserGroupCurrent.');
|
|
3446
|
-
}
|
|
3447
|
-
if (ReplacePermissionsForUserGroupV1Input === null ||
|
|
3448
|
-
ReplacePermissionsForUserGroupV1Input === undefined) {
|
|
3449
|
-
throw new Error('Required parameter ReplacePermissionsForUserGroupV1Input was null or undefined when calling replacePermissionsForUserGroupCurrent.');
|
|
3450
|
-
}
|
|
3451
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
3452
|
-
localVarUseFormData = false;
|
|
3453
|
-
localVarRequestOptions = {
|
|
3454
|
-
method: 'PUT',
|
|
3455
|
-
qs: localVarQueryParameters,
|
|
3456
|
-
headers: localVarHeaderParams,
|
|
3457
|
-
uri: localVarPath,
|
|
3458
|
-
useQuerystring: this._useQuerystring,
|
|
3459
|
-
json: true,
|
|
3460
|
-
body: models_1.ObjectSerializer.serialize(ReplacePermissionsForUserGroupV1Input, 'ReplacePermissionsForUserGroupV1Input'),
|
|
3461
|
-
};
|
|
3462
|
-
authenticationPromise = Promise.resolve();
|
|
3463
|
-
if (this.authentications.token.accessToken) {
|
|
3464
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
3465
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
3466
|
-
});
|
|
3467
|
-
}
|
|
3468
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
3469
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
3470
|
-
});
|
|
3471
|
-
interceptorPromise = authenticationPromise;
|
|
3472
|
-
_loop_39 = function (interceptor) {
|
|
3473
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
3474
|
-
return interceptor(localVarRequestOptions);
|
|
3475
|
-
});
|
|
3476
|
-
};
|
|
3477
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
3478
|
-
interceptor = _a[_i];
|
|
3479
|
-
_loop_39(interceptor);
|
|
3480
|
-
}
|
|
3481
|
-
return [2, interceptorPromise.then(function () {
|
|
3482
|
-
if (Object.keys(localVarFormParams).length) {
|
|
3483
|
-
if (localVarUseFormData) {
|
|
3484
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
3485
|
-
}
|
|
3486
|
-
else {
|
|
3487
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
3488
|
-
}
|
|
3489
|
-
}
|
|
3490
|
-
return new Promise(function (resolve, reject) {
|
|
3491
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
3492
|
-
if (error) {
|
|
3493
|
-
reject(error);
|
|
3494
|
-
}
|
|
3495
|
-
else {
|
|
3496
|
-
if (response.statusCode &&
|
|
3497
|
-
response.statusCode >= 200 &&
|
|
3498
|
-
response.statusCode <= 299) {
|
|
3499
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ReplacePermissionsForUserGroup200Response');
|
|
3500
|
-
resolve({ response: response, body: body });
|
|
3501
|
-
}
|
|
3502
|
-
else {
|
|
3503
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
3504
|
-
}
|
|
3505
|
-
}
|
|
3506
|
-
});
|
|
3507
|
-
});
|
|
3508
|
-
})];
|
|
3509
|
-
});
|
|
3510
|
-
});
|
|
3511
|
-
};
|
|
3512
|
-
IAMGroupsApi.prototype.replacePermissionsForUserGroupV1 = function (userGroupId, ReplacePermissionsForUserGroupV1Input, options) {
|
|
3513
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
3514
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3515
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_40, _i, _a, interceptor;
|
|
3516
|
-
var _this = this;
|
|
3517
|
-
return __generator(this, function (_b) {
|
|
3518
|
-
localVarPath = this.basePath +
|
|
3519
|
-
'/groups/{userGroupId}/permissions'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
3520
|
-
localVarQueryParameters = {};
|
|
3521
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
3522
|
-
produces = [
|
|
3523
|
-
'application/vnd.segment.v1+json',
|
|
3524
|
-
'application/json',
|
|
3525
|
-
];
|
|
3526
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
3527
|
-
localVarHeaderParams.Accept = produces[0];
|
|
3528
|
-
}
|
|
3529
|
-
else {
|
|
3530
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
3531
|
-
}
|
|
3532
|
-
localVarFormParams = {};
|
|
3533
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
3534
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling replacePermissionsForUserGroupV1.');
|
|
3535
|
-
}
|
|
3536
|
-
if (ReplacePermissionsForUserGroupV1Input === null ||
|
|
3537
|
-
ReplacePermissionsForUserGroupV1Input === undefined) {
|
|
3538
|
-
throw new Error('Required parameter ReplacePermissionsForUserGroupV1Input was null or undefined when calling replacePermissionsForUserGroupV1.');
|
|
3539
|
-
}
|
|
3540
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
3541
|
-
localVarUseFormData = false;
|
|
3542
|
-
localVarRequestOptions = {
|
|
3543
|
-
method: 'PUT',
|
|
3544
|
-
qs: localVarQueryParameters,
|
|
3545
|
-
headers: localVarHeaderParams,
|
|
3546
|
-
uri: localVarPath,
|
|
3547
|
-
useQuerystring: this._useQuerystring,
|
|
3548
|
-
json: true,
|
|
3549
|
-
body: models_1.ObjectSerializer.serialize(ReplacePermissionsForUserGroupV1Input, 'ReplacePermissionsForUserGroupV1Input'),
|
|
3550
|
-
};
|
|
3551
|
-
authenticationPromise = Promise.resolve();
|
|
3552
|
-
if (this.authentications.token.accessToken) {
|
|
3553
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
3554
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
3555
|
-
});
|
|
3556
|
-
}
|
|
3557
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
3558
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
3559
|
-
});
|
|
3560
|
-
interceptorPromise = authenticationPromise;
|
|
3561
|
-
_loop_40 = function (interceptor) {
|
|
3562
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
3563
|
-
return interceptor(localVarRequestOptions);
|
|
3564
|
-
});
|
|
3565
|
-
};
|
|
3566
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
3567
|
-
interceptor = _a[_i];
|
|
3568
|
-
_loop_40(interceptor);
|
|
3569
|
-
}
|
|
3570
|
-
return [2, interceptorPromise.then(function () {
|
|
3571
|
-
if (Object.keys(localVarFormParams).length) {
|
|
3572
|
-
if (localVarUseFormData) {
|
|
3573
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
3574
|
-
}
|
|
3575
|
-
else {
|
|
3576
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
3577
|
-
}
|
|
3578
|
-
}
|
|
3579
|
-
return new Promise(function (resolve, reject) {
|
|
3580
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
3581
|
-
if (error) {
|
|
3582
|
-
reject(error);
|
|
3583
|
-
}
|
|
3584
|
-
else {
|
|
3585
|
-
if (response.statusCode &&
|
|
3586
|
-
response.statusCode >= 200 &&
|
|
3587
|
-
response.statusCode <= 299) {
|
|
3588
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ReplacePermissionsForUserGroup200Response');
|
|
3589
|
-
resolve({ response: response, body: body });
|
|
3590
|
-
}
|
|
3591
|
-
else {
|
|
3592
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
3593
|
-
}
|
|
3594
|
-
}
|
|
3595
|
-
});
|
|
3596
|
-
});
|
|
3597
|
-
})];
|
|
3598
|
-
});
|
|
3599
|
-
});
|
|
3600
|
-
};
|
|
3601
|
-
IAMGroupsApi.prototype.replaceUsersInUserGroupAlpha = function (userGroupId, ReplaceUsersInUserGroupV1Input, options) {
|
|
3602
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
3603
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3604
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_41, _i, _a, interceptor;
|
|
3605
|
-
var _this = this;
|
|
3606
|
-
return __generator(this, function (_b) {
|
|
3607
|
-
localVarPath = this.basePath +
|
|
3608
|
-
'/group/{userGroupId}/users'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
3609
|
-
localVarQueryParameters = {};
|
|
3610
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
3611
|
-
produces = [
|
|
3612
|
-
'application/vnd.segment.v1alpha+json',
|
|
3613
|
-
'application/json',
|
|
3614
|
-
];
|
|
3615
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
3616
|
-
localVarHeaderParams.Accept = produces[0];
|
|
3617
|
-
}
|
|
3618
|
-
else {
|
|
3619
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
3620
|
-
}
|
|
3621
|
-
localVarFormParams = {};
|
|
3622
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
3623
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling replaceUsersInUserGroupAlpha.');
|
|
3624
|
-
}
|
|
3625
|
-
if (ReplaceUsersInUserGroupV1Input === null ||
|
|
3626
|
-
ReplaceUsersInUserGroupV1Input === undefined) {
|
|
3627
|
-
throw new Error('Required parameter ReplaceUsersInUserGroupV1Input was null or undefined when calling replaceUsersInUserGroupAlpha.');
|
|
3628
|
-
}
|
|
3629
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
3630
|
-
localVarUseFormData = false;
|
|
3631
|
-
localVarRequestOptions = {
|
|
3632
|
-
method: 'PUT',
|
|
3633
|
-
qs: localVarQueryParameters,
|
|
3634
|
-
headers: localVarHeaderParams,
|
|
3635
|
-
uri: localVarPath,
|
|
3636
|
-
useQuerystring: this._useQuerystring,
|
|
3637
|
-
json: true,
|
|
3638
|
-
body: models_1.ObjectSerializer.serialize(ReplaceUsersInUserGroupV1Input, 'ReplaceUsersInUserGroupV1Input'),
|
|
3639
|
-
};
|
|
3640
|
-
authenticationPromise = Promise.resolve();
|
|
3641
|
-
if (this.authentications.token.accessToken) {
|
|
3642
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
3643
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
3644
|
-
});
|
|
3645
|
-
}
|
|
3646
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
3647
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
3648
|
-
});
|
|
3649
|
-
interceptorPromise = authenticationPromise;
|
|
3650
|
-
_loop_41 = function (interceptor) {
|
|
3651
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
3652
|
-
return interceptor(localVarRequestOptions);
|
|
3653
|
-
});
|
|
3654
|
-
};
|
|
3655
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
3656
|
-
interceptor = _a[_i];
|
|
3657
|
-
_loop_41(interceptor);
|
|
3658
|
-
}
|
|
3659
|
-
return [2, interceptorPromise.then(function () {
|
|
3660
|
-
if (Object.keys(localVarFormParams).length) {
|
|
3661
|
-
if (localVarUseFormData) {
|
|
3662
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
3663
|
-
}
|
|
3664
|
-
else {
|
|
3665
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
3666
|
-
}
|
|
3667
|
-
}
|
|
3668
|
-
return new Promise(function (resolve, reject) {
|
|
3669
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
3670
|
-
if (error) {
|
|
3671
|
-
reject(error);
|
|
3672
|
-
}
|
|
3673
|
-
else {
|
|
3674
|
-
if (response.statusCode &&
|
|
3675
|
-
response.statusCode >= 200 &&
|
|
3676
|
-
response.statusCode <= 299) {
|
|
3677
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ReplaceUsersInUserGroup200Response');
|
|
3678
|
-
resolve({ response: response, body: body });
|
|
3679
|
-
}
|
|
3680
|
-
else {
|
|
3681
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
3682
|
-
}
|
|
3683
|
-
}
|
|
3684
|
-
});
|
|
3685
|
-
});
|
|
3686
|
-
})];
|
|
3687
|
-
});
|
|
3688
|
-
});
|
|
3689
|
-
};
|
|
3690
|
-
IAMGroupsApi.prototype.replaceUsersInUserGroupBeta = function (userGroupId, ReplaceUsersInUserGroupV1Input, options) {
|
|
3691
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
3692
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3693
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_42, _i, _a, interceptor;
|
|
3694
|
-
var _this = this;
|
|
3695
|
-
return __generator(this, function (_b) {
|
|
3696
|
-
localVarPath = this.basePath +
|
|
3697
|
-
'/group/{userGroupId}/users'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
3698
|
-
localVarQueryParameters = {};
|
|
3699
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
3700
|
-
produces = [
|
|
3701
|
-
'application/vnd.segment.v1beta+json',
|
|
3702
|
-
'application/json',
|
|
3703
|
-
];
|
|
3704
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
3705
|
-
localVarHeaderParams.Accept = produces[0];
|
|
3706
|
-
}
|
|
3707
|
-
else {
|
|
3708
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
3709
|
-
}
|
|
3710
|
-
localVarFormParams = {};
|
|
3711
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
3712
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling replaceUsersInUserGroupBeta.');
|
|
3713
|
-
}
|
|
3714
|
-
if (ReplaceUsersInUserGroupV1Input === null ||
|
|
3715
|
-
ReplaceUsersInUserGroupV1Input === undefined) {
|
|
3716
|
-
throw new Error('Required parameter ReplaceUsersInUserGroupV1Input was null or undefined when calling replaceUsersInUserGroupBeta.');
|
|
3717
|
-
}
|
|
3718
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
3719
|
-
localVarUseFormData = false;
|
|
3720
|
-
localVarRequestOptions = {
|
|
3721
|
-
method: 'PUT',
|
|
3722
|
-
qs: localVarQueryParameters,
|
|
3723
|
-
headers: localVarHeaderParams,
|
|
3724
|
-
uri: localVarPath,
|
|
3725
|
-
useQuerystring: this._useQuerystring,
|
|
3726
|
-
json: true,
|
|
3727
|
-
body: models_1.ObjectSerializer.serialize(ReplaceUsersInUserGroupV1Input, 'ReplaceUsersInUserGroupV1Input'),
|
|
3728
|
-
};
|
|
3729
|
-
authenticationPromise = Promise.resolve();
|
|
3730
|
-
if (this.authentications.token.accessToken) {
|
|
3731
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
3732
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
3733
|
-
});
|
|
3734
|
-
}
|
|
3735
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
3736
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
3737
|
-
});
|
|
3738
|
-
interceptorPromise = authenticationPromise;
|
|
3739
|
-
_loop_42 = function (interceptor) {
|
|
3740
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
3741
|
-
return interceptor(localVarRequestOptions);
|
|
3742
|
-
});
|
|
3743
|
-
};
|
|
3744
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
3745
|
-
interceptor = _a[_i];
|
|
3746
|
-
_loop_42(interceptor);
|
|
3747
|
-
}
|
|
3748
|
-
return [2, interceptorPromise.then(function () {
|
|
3749
|
-
if (Object.keys(localVarFormParams).length) {
|
|
3750
|
-
if (localVarUseFormData) {
|
|
3751
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
3752
|
-
}
|
|
3753
|
-
else {
|
|
3754
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
3755
|
-
}
|
|
3756
|
-
}
|
|
3757
|
-
return new Promise(function (resolve, reject) {
|
|
3758
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
3759
|
-
if (error) {
|
|
3760
|
-
reject(error);
|
|
3761
|
-
}
|
|
3762
|
-
else {
|
|
3763
|
-
if (response.statusCode &&
|
|
3764
|
-
response.statusCode >= 200 &&
|
|
3765
|
-
response.statusCode <= 299) {
|
|
3766
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ReplaceUsersInUserGroup200Response');
|
|
3767
|
-
resolve({ response: response, body: body });
|
|
3768
|
-
}
|
|
3769
|
-
else {
|
|
3770
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
3771
|
-
}
|
|
3772
|
-
}
|
|
3773
|
-
});
|
|
3774
|
-
});
|
|
3775
|
-
})];
|
|
3776
|
-
});
|
|
3777
|
-
});
|
|
3778
|
-
};
|
|
3779
|
-
IAMGroupsApi.prototype.replaceUsersInUserGroupCurrent = function (userGroupId, ReplaceUsersInUserGroupV1Input, options) {
|
|
3780
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
3781
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3782
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_43, _i, _a, interceptor;
|
|
3783
|
-
var _this = this;
|
|
3784
|
-
return __generator(this, function (_b) {
|
|
3785
|
-
localVarPath = this.basePath +
|
|
3786
|
-
'/group/{userGroupId}/users'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
3787
|
-
localVarQueryParameters = {};
|
|
3788
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
3789
|
-
produces = [
|
|
3790
|
-
'application/vnd.segment.v1+json',
|
|
3791
|
-
'application/json',
|
|
3792
|
-
];
|
|
3793
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
3794
|
-
localVarHeaderParams.Accept = produces[0];
|
|
3795
|
-
}
|
|
3796
|
-
else {
|
|
3797
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
3798
|
-
}
|
|
3799
|
-
localVarFormParams = {};
|
|
3800
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
3801
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling replaceUsersInUserGroupCurrent.');
|
|
3802
|
-
}
|
|
3803
|
-
if (ReplaceUsersInUserGroupV1Input === null ||
|
|
3804
|
-
ReplaceUsersInUserGroupV1Input === undefined) {
|
|
3805
|
-
throw new Error('Required parameter ReplaceUsersInUserGroupV1Input was null or undefined when calling replaceUsersInUserGroupCurrent.');
|
|
3806
|
-
}
|
|
3807
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
3808
|
-
localVarUseFormData = false;
|
|
3809
|
-
localVarRequestOptions = {
|
|
3810
|
-
method: 'PUT',
|
|
3811
|
-
qs: localVarQueryParameters,
|
|
3812
|
-
headers: localVarHeaderParams,
|
|
3813
|
-
uri: localVarPath,
|
|
3814
|
-
useQuerystring: this._useQuerystring,
|
|
3815
|
-
json: true,
|
|
3816
|
-
body: models_1.ObjectSerializer.serialize(ReplaceUsersInUserGroupV1Input, 'ReplaceUsersInUserGroupV1Input'),
|
|
3817
|
-
};
|
|
3818
|
-
authenticationPromise = Promise.resolve();
|
|
3819
|
-
if (this.authentications.token.accessToken) {
|
|
3820
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
3821
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
3822
|
-
});
|
|
3823
|
-
}
|
|
3824
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
3825
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
3826
|
-
});
|
|
3827
|
-
interceptorPromise = authenticationPromise;
|
|
3828
|
-
_loop_43 = function (interceptor) {
|
|
3829
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
3830
|
-
return interceptor(localVarRequestOptions);
|
|
3831
|
-
});
|
|
3832
|
-
};
|
|
3833
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
3834
|
-
interceptor = _a[_i];
|
|
3835
|
-
_loop_43(interceptor);
|
|
3836
|
-
}
|
|
3837
|
-
return [2, interceptorPromise.then(function () {
|
|
3838
|
-
if (Object.keys(localVarFormParams).length) {
|
|
3839
|
-
if (localVarUseFormData) {
|
|
3840
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
3841
|
-
}
|
|
3842
|
-
else {
|
|
3843
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
3844
|
-
}
|
|
3845
|
-
}
|
|
3846
|
-
return new Promise(function (resolve, reject) {
|
|
3847
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
3848
|
-
if (error) {
|
|
3849
|
-
reject(error);
|
|
3850
|
-
}
|
|
3851
|
-
else {
|
|
3852
|
-
if (response.statusCode &&
|
|
3853
|
-
response.statusCode >= 200 &&
|
|
3854
|
-
response.statusCode <= 299) {
|
|
3855
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ReplaceUsersInUserGroup200Response');
|
|
3856
|
-
resolve({ response: response, body: body });
|
|
3857
|
-
}
|
|
3858
|
-
else {
|
|
3859
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
3860
|
-
}
|
|
3861
|
-
}
|
|
3862
|
-
});
|
|
3863
|
-
});
|
|
3864
|
-
})];
|
|
3865
|
-
});
|
|
3866
|
-
});
|
|
3867
|
-
};
|
|
3868
|
-
IAMGroupsApi.prototype.replaceUsersInUserGroupV1 = function (userGroupId, ReplaceUsersInUserGroupV1Input, options) {
|
|
3869
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
3870
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3871
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_44, _i, _a, interceptor;
|
|
3872
|
-
var _this = this;
|
|
3873
|
-
return __generator(this, function (_b) {
|
|
3874
|
-
localVarPath = this.basePath +
|
|
3875
|
-
'/group/{userGroupId}/users'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
3876
|
-
localVarQueryParameters = {};
|
|
3877
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
3878
|
-
produces = [
|
|
3879
|
-
'application/vnd.segment.v1+json',
|
|
3880
|
-
'application/json',
|
|
3881
|
-
];
|
|
3882
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
3883
|
-
localVarHeaderParams.Accept = produces[0];
|
|
3884
|
-
}
|
|
3885
|
-
else {
|
|
3886
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
3887
|
-
}
|
|
3888
|
-
localVarFormParams = {};
|
|
3889
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
3890
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling replaceUsersInUserGroupV1.');
|
|
3891
|
-
}
|
|
3892
|
-
if (ReplaceUsersInUserGroupV1Input === null ||
|
|
3893
|
-
ReplaceUsersInUserGroupV1Input === undefined) {
|
|
3894
|
-
throw new Error('Required parameter ReplaceUsersInUserGroupV1Input was null or undefined when calling replaceUsersInUserGroupV1.');
|
|
3895
|
-
}
|
|
3896
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
3897
|
-
localVarUseFormData = false;
|
|
3898
|
-
localVarRequestOptions = {
|
|
3899
|
-
method: 'PUT',
|
|
3900
|
-
qs: localVarQueryParameters,
|
|
3901
|
-
headers: localVarHeaderParams,
|
|
3902
|
-
uri: localVarPath,
|
|
3903
|
-
useQuerystring: this._useQuerystring,
|
|
3904
|
-
json: true,
|
|
3905
|
-
body: models_1.ObjectSerializer.serialize(ReplaceUsersInUserGroupV1Input, 'ReplaceUsersInUserGroupV1Input'),
|
|
3906
|
-
};
|
|
3907
|
-
authenticationPromise = Promise.resolve();
|
|
3908
|
-
if (this.authentications.token.accessToken) {
|
|
3909
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
3910
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
3911
|
-
});
|
|
3912
|
-
}
|
|
3913
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
3914
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
3915
|
-
});
|
|
3916
|
-
interceptorPromise = authenticationPromise;
|
|
3917
|
-
_loop_44 = function (interceptor) {
|
|
3918
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
3919
|
-
return interceptor(localVarRequestOptions);
|
|
3920
|
-
});
|
|
3921
|
-
};
|
|
3922
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
3923
|
-
interceptor = _a[_i];
|
|
3924
|
-
_loop_44(interceptor);
|
|
3925
|
-
}
|
|
3926
|
-
return [2, interceptorPromise.then(function () {
|
|
3927
|
-
if (Object.keys(localVarFormParams).length) {
|
|
3928
|
-
if (localVarUseFormData) {
|
|
3929
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
3930
|
-
}
|
|
3931
|
-
else {
|
|
3932
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
3933
|
-
}
|
|
3934
|
-
}
|
|
3935
|
-
return new Promise(function (resolve, reject) {
|
|
3936
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
3937
|
-
if (error) {
|
|
3938
|
-
reject(error);
|
|
3939
|
-
}
|
|
3940
|
-
else {
|
|
3941
|
-
if (response.statusCode &&
|
|
3942
|
-
response.statusCode >= 200 &&
|
|
3943
|
-
response.statusCode <= 299) {
|
|
3944
|
-
body = models_1.ObjectSerializer.deserialize(body, 'ReplaceUsersInUserGroup200Response');
|
|
3945
|
-
resolve({ response: response, body: body });
|
|
3946
|
-
}
|
|
3947
|
-
else {
|
|
3948
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
3949
|
-
}
|
|
3950
|
-
}
|
|
3951
|
-
});
|
|
3952
|
-
});
|
|
3953
|
-
})];
|
|
3954
|
-
});
|
|
3955
|
-
});
|
|
3956
|
-
};
|
|
3957
|
-
IAMGroupsApi.prototype.updateUserGroupAlpha = function (userGroupId, UpdateUserGroupV1Input, options) {
|
|
3958
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
3959
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3960
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_45, _i, _a, interceptor;
|
|
3961
|
-
var _this = this;
|
|
3962
|
-
return __generator(this, function (_b) {
|
|
3963
|
-
localVarPath = this.basePath +
|
|
3964
|
-
'/groups/{userGroupId}'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
3965
|
-
localVarQueryParameters = {};
|
|
3966
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
3967
|
-
produces = [
|
|
3968
|
-
'application/vnd.segment.v1alpha+json',
|
|
3969
|
-
'application/json',
|
|
3970
|
-
];
|
|
3971
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
3972
|
-
localVarHeaderParams.Accept = produces[0];
|
|
3973
|
-
}
|
|
3974
|
-
else {
|
|
3975
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
3976
|
-
}
|
|
3977
|
-
localVarFormParams = {};
|
|
3978
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
3979
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling updateUserGroupAlpha.');
|
|
3980
|
-
}
|
|
3981
|
-
if (UpdateUserGroupV1Input === null ||
|
|
3982
|
-
UpdateUserGroupV1Input === undefined) {
|
|
3983
|
-
throw new Error('Required parameter UpdateUserGroupV1Input was null or undefined when calling updateUserGroupAlpha.');
|
|
3984
|
-
}
|
|
3985
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
3986
|
-
localVarUseFormData = false;
|
|
3987
|
-
localVarRequestOptions = {
|
|
3988
|
-
method: 'PATCH',
|
|
3989
|
-
qs: localVarQueryParameters,
|
|
3990
|
-
headers: localVarHeaderParams,
|
|
3991
|
-
uri: localVarPath,
|
|
3992
|
-
useQuerystring: this._useQuerystring,
|
|
3993
|
-
json: true,
|
|
3994
|
-
body: models_1.ObjectSerializer.serialize(UpdateUserGroupV1Input, 'UpdateUserGroupV1Input'),
|
|
3995
|
-
};
|
|
3996
|
-
authenticationPromise = Promise.resolve();
|
|
3997
|
-
if (this.authentications.token.accessToken) {
|
|
3998
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
3999
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
4000
|
-
});
|
|
4001
|
-
}
|
|
4002
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
4003
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
4004
|
-
});
|
|
4005
|
-
interceptorPromise = authenticationPromise;
|
|
4006
|
-
_loop_45 = function (interceptor) {
|
|
4007
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
4008
|
-
return interceptor(localVarRequestOptions);
|
|
4009
|
-
});
|
|
4010
|
-
};
|
|
4011
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
4012
|
-
interceptor = _a[_i];
|
|
4013
|
-
_loop_45(interceptor);
|
|
4014
|
-
}
|
|
4015
|
-
return [2, interceptorPromise.then(function () {
|
|
4016
|
-
if (Object.keys(localVarFormParams).length) {
|
|
4017
|
-
if (localVarUseFormData) {
|
|
4018
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
4019
|
-
}
|
|
4020
|
-
else {
|
|
4021
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
4022
|
-
}
|
|
4023
|
-
}
|
|
4024
|
-
return new Promise(function (resolve, reject) {
|
|
4025
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
4026
|
-
if (error) {
|
|
4027
|
-
reject(error);
|
|
4028
|
-
}
|
|
4029
|
-
else {
|
|
4030
|
-
if (response.statusCode &&
|
|
4031
|
-
response.statusCode >= 200 &&
|
|
4032
|
-
response.statusCode <= 299) {
|
|
4033
|
-
body = models_1.ObjectSerializer.deserialize(body, 'UpdateUserGroup200Response');
|
|
4034
|
-
resolve({ response: response, body: body });
|
|
4035
|
-
}
|
|
4036
|
-
else {
|
|
4037
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
4038
|
-
}
|
|
4039
|
-
}
|
|
4040
|
-
});
|
|
4041
|
-
});
|
|
4042
|
-
})];
|
|
4043
|
-
});
|
|
4044
|
-
});
|
|
4045
|
-
};
|
|
4046
|
-
IAMGroupsApi.prototype.updateUserGroupBeta = function (userGroupId, UpdateUserGroupV1Input, options) {
|
|
4047
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
4048
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
4049
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_46, _i, _a, interceptor;
|
|
4050
|
-
var _this = this;
|
|
4051
|
-
return __generator(this, function (_b) {
|
|
4052
|
-
localVarPath = this.basePath +
|
|
4053
|
-
'/groups/{userGroupId}'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
4054
|
-
localVarQueryParameters = {};
|
|
4055
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
4056
|
-
produces = [
|
|
4057
|
-
'application/vnd.segment.v1beta+json',
|
|
4058
|
-
'application/json',
|
|
4059
|
-
];
|
|
4060
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
4061
|
-
localVarHeaderParams.Accept = produces[0];
|
|
4062
|
-
}
|
|
4063
|
-
else {
|
|
4064
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
4065
|
-
}
|
|
4066
|
-
localVarFormParams = {};
|
|
4067
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
4068
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling updateUserGroupBeta.');
|
|
4069
|
-
}
|
|
4070
|
-
if (UpdateUserGroupV1Input === null ||
|
|
4071
|
-
UpdateUserGroupV1Input === undefined) {
|
|
4072
|
-
throw new Error('Required parameter UpdateUserGroupV1Input was null or undefined when calling updateUserGroupBeta.');
|
|
4073
|
-
}
|
|
4074
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
4075
|
-
localVarUseFormData = false;
|
|
4076
|
-
localVarRequestOptions = {
|
|
4077
|
-
method: 'PATCH',
|
|
4078
|
-
qs: localVarQueryParameters,
|
|
4079
|
-
headers: localVarHeaderParams,
|
|
4080
|
-
uri: localVarPath,
|
|
4081
|
-
useQuerystring: this._useQuerystring,
|
|
4082
|
-
json: true,
|
|
4083
|
-
body: models_1.ObjectSerializer.serialize(UpdateUserGroupV1Input, 'UpdateUserGroupV1Input'),
|
|
4084
|
-
};
|
|
4085
|
-
authenticationPromise = Promise.resolve();
|
|
4086
|
-
if (this.authentications.token.accessToken) {
|
|
4087
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
4088
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
4089
|
-
});
|
|
4090
|
-
}
|
|
4091
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
4092
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
4093
|
-
});
|
|
4094
|
-
interceptorPromise = authenticationPromise;
|
|
4095
|
-
_loop_46 = function (interceptor) {
|
|
4096
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
4097
|
-
return interceptor(localVarRequestOptions);
|
|
4098
|
-
});
|
|
4099
|
-
};
|
|
4100
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
4101
|
-
interceptor = _a[_i];
|
|
4102
|
-
_loop_46(interceptor);
|
|
4103
|
-
}
|
|
4104
|
-
return [2, interceptorPromise.then(function () {
|
|
4105
|
-
if (Object.keys(localVarFormParams).length) {
|
|
4106
|
-
if (localVarUseFormData) {
|
|
4107
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
4108
|
-
}
|
|
4109
|
-
else {
|
|
4110
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
4111
|
-
}
|
|
4112
|
-
}
|
|
4113
|
-
return new Promise(function (resolve, reject) {
|
|
4114
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
4115
|
-
if (error) {
|
|
4116
|
-
reject(error);
|
|
4117
|
-
}
|
|
4118
|
-
else {
|
|
4119
|
-
if (response.statusCode &&
|
|
4120
|
-
response.statusCode >= 200 &&
|
|
4121
|
-
response.statusCode <= 299) {
|
|
4122
|
-
body = models_1.ObjectSerializer.deserialize(body, 'UpdateUserGroup200Response');
|
|
4123
|
-
resolve({ response: response, body: body });
|
|
4124
|
-
}
|
|
4125
|
-
else {
|
|
4126
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
4127
|
-
}
|
|
4128
|
-
}
|
|
4129
|
-
});
|
|
4130
|
-
});
|
|
4131
|
-
})];
|
|
4132
|
-
});
|
|
4133
|
-
});
|
|
4134
|
-
};
|
|
4135
|
-
IAMGroupsApi.prototype.updateUserGroupCurrent = function (userGroupId, UpdateUserGroupV1Input, options) {
|
|
4136
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
4137
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
4138
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_47, _i, _a, interceptor;
|
|
4139
|
-
var _this = this;
|
|
4140
|
-
return __generator(this, function (_b) {
|
|
4141
|
-
localVarPath = this.basePath +
|
|
4142
|
-
'/groups/{userGroupId}'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
4143
|
-
localVarQueryParameters = {};
|
|
4144
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
4145
|
-
produces = [
|
|
4146
|
-
'application/vnd.segment.v1+json',
|
|
4147
|
-
'application/json',
|
|
4148
|
-
];
|
|
4149
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
4150
|
-
localVarHeaderParams.Accept = produces[0];
|
|
4151
|
-
}
|
|
4152
|
-
else {
|
|
4153
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
4154
|
-
}
|
|
4155
|
-
localVarFormParams = {};
|
|
4156
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
4157
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling updateUserGroupCurrent.');
|
|
4158
|
-
}
|
|
4159
|
-
if (UpdateUserGroupV1Input === null ||
|
|
4160
|
-
UpdateUserGroupV1Input === undefined) {
|
|
4161
|
-
throw new Error('Required parameter UpdateUserGroupV1Input was null or undefined when calling updateUserGroupCurrent.');
|
|
4162
|
-
}
|
|
4163
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
4164
|
-
localVarUseFormData = false;
|
|
4165
|
-
localVarRequestOptions = {
|
|
4166
|
-
method: 'PATCH',
|
|
4167
|
-
qs: localVarQueryParameters,
|
|
4168
|
-
headers: localVarHeaderParams,
|
|
4169
|
-
uri: localVarPath,
|
|
4170
|
-
useQuerystring: this._useQuerystring,
|
|
4171
|
-
json: true,
|
|
4172
|
-
body: models_1.ObjectSerializer.serialize(UpdateUserGroupV1Input, 'UpdateUserGroupV1Input'),
|
|
4173
|
-
};
|
|
4174
|
-
authenticationPromise = Promise.resolve();
|
|
4175
|
-
if (this.authentications.token.accessToken) {
|
|
4176
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
4177
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
4178
|
-
});
|
|
4179
|
-
}
|
|
4180
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
4181
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
4182
|
-
});
|
|
4183
|
-
interceptorPromise = authenticationPromise;
|
|
4184
|
-
_loop_47 = function (interceptor) {
|
|
4185
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
4186
|
-
return interceptor(localVarRequestOptions);
|
|
4187
|
-
});
|
|
4188
|
-
};
|
|
4189
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
4190
|
-
interceptor = _a[_i];
|
|
4191
|
-
_loop_47(interceptor);
|
|
4192
|
-
}
|
|
4193
|
-
return [2, interceptorPromise.then(function () {
|
|
4194
|
-
if (Object.keys(localVarFormParams).length) {
|
|
4195
|
-
if (localVarUseFormData) {
|
|
4196
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
4197
|
-
}
|
|
4198
|
-
else {
|
|
4199
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
4200
|
-
}
|
|
4201
|
-
}
|
|
4202
|
-
return new Promise(function (resolve, reject) {
|
|
4203
|
-
(0, request_1.default)(localVarRequestOptions, function (error, response, body) {
|
|
4204
|
-
if (error) {
|
|
4205
|
-
reject(error);
|
|
4206
|
-
}
|
|
4207
|
-
else {
|
|
4208
|
-
if (response.statusCode &&
|
|
4209
|
-
response.statusCode >= 200 &&
|
|
4210
|
-
response.statusCode <= 299) {
|
|
4211
|
-
body = models_1.ObjectSerializer.deserialize(body, 'UpdateUserGroup200Response');
|
|
4212
|
-
resolve({ response: response, body: body });
|
|
4213
|
-
}
|
|
4214
|
-
else {
|
|
4215
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
4216
|
-
}
|
|
4217
|
-
}
|
|
4218
|
-
});
|
|
4219
|
-
});
|
|
4220
|
-
})];
|
|
4221
|
-
});
|
|
4222
|
-
});
|
|
4223
|
-
};
|
|
4224
|
-
IAMGroupsApi.prototype.updateUserGroupV1 = function (userGroupId, UpdateUserGroupV1Input, options) {
|
|
4225
|
-
if (options === void 0) { options = { headers: {} }; }
|
|
4226
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
4227
|
-
var localVarPath, localVarQueryParameters, localVarHeaderParams, produces, localVarFormParams, localVarUseFormData, localVarRequestOptions, authenticationPromise, interceptorPromise, _loop_48, _i, _a, interceptor;
|
|
4228
|
-
var _this = this;
|
|
4229
|
-
return __generator(this, function (_b) {
|
|
4230
|
-
localVarPath = this.basePath +
|
|
4231
|
-
'/groups/{userGroupId}'.replace('{' + 'userGroupId' + '}', encodeURIComponent(String(userGroupId)));
|
|
4232
|
-
localVarQueryParameters = {};
|
|
4233
|
-
localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
4234
|
-
produces = [
|
|
4235
|
-
'application/vnd.segment.v1+json',
|
|
4236
|
-
'application/json',
|
|
4237
|
-
];
|
|
4238
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
4239
|
-
localVarHeaderParams.Accept = produces[0];
|
|
4240
|
-
}
|
|
4241
|
-
else {
|
|
4242
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
4243
|
-
}
|
|
4244
|
-
localVarFormParams = {};
|
|
4245
|
-
if (userGroupId === null || userGroupId === undefined) {
|
|
4246
|
-
throw new Error('Required parameter userGroupId was null or undefined when calling updateUserGroupV1.');
|
|
4247
|
-
}
|
|
4248
|
-
if (UpdateUserGroupV1Input === null ||
|
|
4249
|
-
UpdateUserGroupV1Input === undefined) {
|
|
4250
|
-
throw new Error('Required parameter UpdateUserGroupV1Input was null or undefined when calling updateUserGroupV1.');
|
|
4251
|
-
}
|
|
4252
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
4253
|
-
localVarUseFormData = false;
|
|
4254
|
-
localVarRequestOptions = {
|
|
4255
|
-
method: 'PATCH',
|
|
4256
|
-
qs: localVarQueryParameters,
|
|
4257
|
-
headers: localVarHeaderParams,
|
|
4258
|
-
uri: localVarPath,
|
|
4259
|
-
useQuerystring: this._useQuerystring,
|
|
4260
|
-
json: true,
|
|
4261
|
-
body: models_1.ObjectSerializer.serialize(UpdateUserGroupV1Input, 'UpdateUserGroupV1Input'),
|
|
4262
|
-
};
|
|
4263
|
-
authenticationPromise = Promise.resolve();
|
|
4264
|
-
if (this.authentications.token.accessToken) {
|
|
4265
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
4266
|
-
return _this.authentications.token.applyToRequest(localVarRequestOptions);
|
|
4267
|
-
});
|
|
4268
|
-
}
|
|
4269
|
-
authenticationPromise = authenticationPromise.then(function () {
|
|
4270
|
-
return _this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
4271
|
-
});
|
|
4272
|
-
interceptorPromise = authenticationPromise;
|
|
4273
|
-
_loop_48 = function (interceptor) {
|
|
4274
|
-
interceptorPromise = interceptorPromise.then(function () {
|
|
4275
|
-
return interceptor(localVarRequestOptions);
|
|
4276
|
-
});
|
|
4277
|
-
};
|
|
4278
|
-
for (_i = 0, _a = this.interceptors; _i < _a.length; _i++) {
|
|
4279
|
-
interceptor = _a[_i];
|
|
4280
|
-
_loop_48(interceptor);
|
|
4281
|
-
}
|
|
4282
1162
|
return [2, interceptorPromise.then(function () {
|
|
4283
1163
|
if (Object.keys(localVarFormParams).length) {
|
|
4284
1164
|
if (localVarUseFormData) {
|