@azure/arm-containerservice 25.0.0 → 25.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/api/agentPools/operations.js +15 -15
- package/dist/browser/api/agentPools/operations.js.map +1 -1
- package/dist/browser/api/containerServiceContext.js +1 -1
- package/dist/browser/api/containerServiceContext.js.map +1 -1
- package/dist/browser/api/machines/operations.js +3 -3
- package/dist/browser/api/machines/operations.js.map +1 -1
- package/dist/browser/api/maintenanceConfigurations/operations.js +5 -5
- package/dist/browser/api/maintenanceConfigurations/operations.js.map +1 -1
- package/dist/browser/api/managedClusters/operations.js +42 -42
- package/dist/browser/api/managedClusters/operations.js.map +1 -1
- package/dist/browser/api/managedNamespaces/operations.js +9 -9
- package/dist/browser/api/managedNamespaces/operations.js.map +1 -1
- package/dist/browser/api/operations/operations.js +2 -2
- package/dist/browser/api/operations/operations.js.map +1 -1
- package/dist/browser/api/privateEndpointConnections/operations.js +5 -5
- package/dist/browser/api/privateEndpointConnections/operations.js.map +1 -1
- package/dist/browser/api/privateLinkResources/operations.js +1 -1
- package/dist/browser/api/privateLinkResources/operations.js.map +1 -1
- package/dist/browser/api/resolvePrivateLinkServiceId/operations.js +1 -1
- package/dist/browser/api/resolvePrivateLinkServiceId/operations.js.map +1 -1
- package/dist/browser/api/snapshots/operations.js +8 -8
- package/dist/browser/api/snapshots/operations.js.map +1 -1
- package/dist/browser/api/trustedAccessRoleBindings/operations.js +7 -7
- package/dist/browser/api/trustedAccessRoleBindings/operations.js.map +1 -1
- package/dist/browser/api/trustedAccessRoles/operations.js +2 -2
- package/dist/browser/api/trustedAccessRoles/operations.js.map +1 -1
- package/dist/browser/index.d.ts +2 -2
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +2 -2
- package/dist/browser/models/index.js +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +100 -6
- package/dist/browser/models/models.js +127 -10
- package/dist/browser/models/models.js.map +1 -1
- package/dist/commonjs/api/agentPools/index.js +1 -0
- package/dist/commonjs/api/agentPools/index.js.map +1 -1
- package/dist/commonjs/api/agentPools/operations.js +16 -15
- package/dist/commonjs/api/agentPools/operations.js.map +2 -2
- package/dist/commonjs/api/agentPools/options.js +1 -0
- package/dist/commonjs/api/agentPools/options.js.map +1 -1
- package/dist/commonjs/api/containerServiceContext.js +2 -1
- package/dist/commonjs/api/containerServiceContext.js.map +2 -2
- package/dist/commonjs/api/index.js +1 -0
- package/dist/commonjs/api/index.js.map +1 -1
- package/dist/commonjs/api/machines/index.js +1 -0
- package/dist/commonjs/api/machines/index.js.map +1 -1
- package/dist/commonjs/api/machines/operations.js +4 -3
- package/dist/commonjs/api/machines/operations.js.map +2 -2
- package/dist/commonjs/api/machines/options.js +1 -0
- package/dist/commonjs/api/machines/options.js.map +1 -1
- package/dist/commonjs/api/maintenanceConfigurations/index.js +1 -0
- package/dist/commonjs/api/maintenanceConfigurations/index.js.map +1 -1
- package/dist/commonjs/api/maintenanceConfigurations/operations.js +6 -5
- package/dist/commonjs/api/maintenanceConfigurations/operations.js.map +2 -2
- package/dist/commonjs/api/maintenanceConfigurations/options.js +1 -0
- package/dist/commonjs/api/maintenanceConfigurations/options.js.map +1 -1
- package/dist/commonjs/api/managedClusters/index.js +1 -0
- package/dist/commonjs/api/managedClusters/index.js.map +1 -1
- package/dist/commonjs/api/managedClusters/operations.js +43 -42
- package/dist/commonjs/api/managedClusters/operations.js.map +2 -2
- package/dist/commonjs/api/managedClusters/options.js +1 -0
- package/dist/commonjs/api/managedClusters/options.js.map +1 -1
- package/dist/commonjs/api/managedNamespaces/index.js +1 -0
- package/dist/commonjs/api/managedNamespaces/index.js.map +1 -1
- package/dist/commonjs/api/managedNamespaces/operations.js +10 -9
- package/dist/commonjs/api/managedNamespaces/operations.js.map +2 -2
- package/dist/commonjs/api/managedNamespaces/options.js +1 -0
- package/dist/commonjs/api/managedNamespaces/options.js.map +1 -1
- package/dist/commonjs/api/operations/index.js +1 -0
- package/dist/commonjs/api/operations/index.js.map +1 -1
- package/dist/commonjs/api/operations/operations.js +3 -2
- package/dist/commonjs/api/operations/operations.js.map +2 -2
- package/dist/commonjs/api/operations/options.js +1 -0
- package/dist/commonjs/api/operations/options.js.map +1 -1
- package/dist/commonjs/api/privateEndpointConnections/index.js +1 -0
- package/dist/commonjs/api/privateEndpointConnections/index.js.map +1 -1
- package/dist/commonjs/api/privateEndpointConnections/operations.js +6 -5
- package/dist/commonjs/api/privateEndpointConnections/operations.js.map +2 -2
- package/dist/commonjs/api/privateEndpointConnections/options.js +1 -0
- package/dist/commonjs/api/privateEndpointConnections/options.js.map +1 -1
- package/dist/commonjs/api/privateLinkResources/index.js +1 -0
- package/dist/commonjs/api/privateLinkResources/index.js.map +1 -1
- package/dist/commonjs/api/privateLinkResources/operations.js +2 -1
- package/dist/commonjs/api/privateLinkResources/operations.js.map +2 -2
- package/dist/commonjs/api/privateLinkResources/options.js +1 -0
- package/dist/commonjs/api/privateLinkResources/options.js.map +1 -1
- package/dist/commonjs/api/resolvePrivateLinkServiceId/index.js +1 -0
- package/dist/commonjs/api/resolvePrivateLinkServiceId/index.js.map +1 -1
- package/dist/commonjs/api/resolvePrivateLinkServiceId/operations.js +2 -1
- package/dist/commonjs/api/resolvePrivateLinkServiceId/operations.js.map +2 -2
- package/dist/commonjs/api/resolvePrivateLinkServiceId/options.js +1 -0
- package/dist/commonjs/api/resolvePrivateLinkServiceId/options.js.map +1 -1
- package/dist/commonjs/api/snapshots/index.js +1 -0
- package/dist/commonjs/api/snapshots/index.js.map +1 -1
- package/dist/commonjs/api/snapshots/operations.js +9 -8
- package/dist/commonjs/api/snapshots/operations.js.map +2 -2
- package/dist/commonjs/api/snapshots/options.js +1 -0
- package/dist/commonjs/api/snapshots/options.js.map +1 -1
- package/dist/commonjs/api/trustedAccessRoleBindings/index.js +1 -0
- package/dist/commonjs/api/trustedAccessRoleBindings/index.js.map +1 -1
- package/dist/commonjs/api/trustedAccessRoleBindings/operations.js +8 -7
- package/dist/commonjs/api/trustedAccessRoleBindings/operations.js.map +2 -2
- package/dist/commonjs/api/trustedAccessRoleBindings/options.js +1 -0
- package/dist/commonjs/api/trustedAccessRoleBindings/options.js.map +1 -1
- package/dist/commonjs/api/trustedAccessRoles/index.js +1 -0
- package/dist/commonjs/api/trustedAccessRoles/index.js.map +1 -1
- package/dist/commonjs/api/trustedAccessRoles/operations.js +3 -2
- package/dist/commonjs/api/trustedAccessRoles/operations.js.map +2 -2
- package/dist/commonjs/api/trustedAccessRoles/options.js +1 -0
- package/dist/commonjs/api/trustedAccessRoles/options.js.map +1 -1
- package/dist/commonjs/classic/agentPools/index.js +1 -0
- package/dist/commonjs/classic/agentPools/index.js.map +1 -1
- package/dist/commonjs/classic/index.js +1 -0
- package/dist/commonjs/classic/index.js.map +1 -1
- package/dist/commonjs/classic/machines/index.js +1 -0
- package/dist/commonjs/classic/machines/index.js.map +1 -1
- package/dist/commonjs/classic/maintenanceConfigurations/index.js +1 -0
- package/dist/commonjs/classic/maintenanceConfigurations/index.js.map +1 -1
- package/dist/commonjs/classic/managedClusters/index.js +1 -0
- package/dist/commonjs/classic/managedClusters/index.js.map +1 -1
- package/dist/commonjs/classic/managedNamespaces/index.js +1 -0
- package/dist/commonjs/classic/managedNamespaces/index.js.map +1 -1
- package/dist/commonjs/classic/operations/index.js +1 -0
- package/dist/commonjs/classic/operations/index.js.map +1 -1
- package/dist/commonjs/classic/privateEndpointConnections/index.js +1 -0
- package/dist/commonjs/classic/privateEndpointConnections/index.js.map +1 -1
- package/dist/commonjs/classic/privateLinkResources/index.js +1 -0
- package/dist/commonjs/classic/privateLinkResources/index.js.map +1 -1
- package/dist/commonjs/classic/resolvePrivateLinkServiceId/index.js +1 -0
- package/dist/commonjs/classic/resolvePrivateLinkServiceId/index.js.map +1 -1
- package/dist/commonjs/classic/snapshots/index.js +1 -0
- package/dist/commonjs/classic/snapshots/index.js.map +1 -1
- package/dist/commonjs/classic/trustedAccessRoleBindings/index.js +1 -0
- package/dist/commonjs/classic/trustedAccessRoleBindings/index.js.map +1 -1
- package/dist/commonjs/classic/trustedAccessRoles/index.js +1 -0
- package/dist/commonjs/classic/trustedAccessRoles/index.js.map +1 -1
- package/dist/commonjs/containerServiceClient.js +1 -0
- package/dist/commonjs/containerServiceClient.js.map +1 -1
- package/dist/commonjs/index.d.ts +2 -2
- package/dist/commonjs/index.js +5 -0
- package/dist/commonjs/index.js.map +3 -3
- package/dist/commonjs/logger.js +1 -0
- package/dist/commonjs/logger.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +2 -2
- package/dist/commonjs/models/index.js +5 -0
- package/dist/commonjs/models/index.js.map +3 -3
- package/dist/commonjs/models/models.d.ts +100 -6
- package/dist/commonjs/models/models.js +132 -14
- package/dist/commonjs/models/models.js.map +4 -4
- package/dist/commonjs/restorePollerHelpers.js +1 -0
- package/dist/commonjs/restorePollerHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +1 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/pagingHelpers.js +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.js +1 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js +1 -0
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js.map +1 -1
- package/dist/commonjs/static-helpers/simplePollerHelpers.js +1 -0
- package/dist/commonjs/static-helpers/simplePollerHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/urlTemplate.js +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/agentPools/index.js +4 -22
- package/dist/esm/api/agentPools/index.js.map +1 -7
- package/dist/esm/api/agentPools/operations.js +266 -364
- package/dist/esm/api/agentPools/operations.js.map +1 -7
- package/dist/esm/api/agentPools/options.js +4 -0
- package/dist/esm/api/agentPools/options.js.map +1 -7
- package/dist/esm/api/containerServiceContext.js +20 -17
- package/dist/esm/api/containerServiceContext.js.map +1 -7
- package/dist/esm/api/index.js +4 -4
- package/dist/esm/api/index.js.map +1 -7
- package/dist/esm/api/machines/index.js +4 -5
- package/dist/esm/api/machines/index.js.map +1 -7
- package/dist/esm/api/machines/operations.js +55 -83
- package/dist/esm/api/machines/operations.js.map +1 -7
- package/dist/esm/api/machines/options.js +4 -0
- package/dist/esm/api/machines/options.js.map +1 -7
- package/dist/esm/api/maintenanceConfigurations/index.js +4 -7
- package/dist/esm/api/maintenanceConfigurations/index.js.map +1 -7
- package/dist/esm/api/maintenanceConfigurations/operations.js +107 -143
- package/dist/esm/api/maintenanceConfigurations/operations.js.map +1 -7
- package/dist/esm/api/maintenanceConfigurations/options.js +4 -0
- package/dist/esm/api/maintenanceConfigurations/options.js.map +1 -7
- package/dist/esm/api/managedClusters/index.js +4 -56
- package/dist/esm/api/managedClusters/index.js.map +1 -7
- package/dist/esm/api/managedClusters/operations.js +772 -1035
- package/dist/esm/api/managedClusters/operations.js.map +1 -7
- package/dist/esm/api/managedClusters/options.js +4 -0
- package/dist/esm/api/managedClusters/options.js.map +1 -7
- package/dist/esm/api/managedNamespaces/index.js +4 -16
- package/dist/esm/api/managedNamespaces/index.js.map +1 -7
- package/dist/esm/api/managedNamespaces/operations.js +184 -253
- package/dist/esm/api/managedNamespaces/operations.js.map +1 -7
- package/dist/esm/api/managedNamespaces/options.js +4 -0
- package/dist/esm/api/managedNamespaces/options.js.map +1 -7
- package/dist/esm/api/operations/index.js +4 -4
- package/dist/esm/api/operations/index.js.map +1 -7
- package/dist/esm/api/operations/operations.js +25 -39
- package/dist/esm/api/operations/operations.js.map +1 -7
- package/dist/esm/api/operations/options.js +4 -0
- package/dist/esm/api/operations/options.js.map +1 -7
- package/dist/esm/api/privateEndpointConnections/index.js +4 -7
- package/dist/esm/api/privateEndpointConnections/index.js.map +1 -7
- package/dist/esm/api/privateEndpointConnections/operations.js +113 -155
- package/dist/esm/api/privateEndpointConnections/operations.js.map +1 -7
- package/dist/esm/api/privateEndpointConnections/options.js +4 -0
- package/dist/esm/api/privateEndpointConnections/options.js.map +1 -7
- package/dist/esm/api/privateLinkResources/index.js +4 -4
- package/dist/esm/api/privateLinkResources/index.js.map +1 -7
- package/dist/esm/api/privateLinkResources/operations.js +29 -37
- package/dist/esm/api/privateLinkResources/operations.js.map +1 -7
- package/dist/esm/api/privateLinkResources/options.js +4 -0
- package/dist/esm/api/privateLinkResources/options.js.map +1 -7
- package/dist/esm/api/resolvePrivateLinkServiceId/index.js +4 -4
- package/dist/esm/api/resolvePrivateLinkServiceId/index.js.map +1 -7
- package/dist/esm/api/resolvePrivateLinkServiceId/operations.js +31 -40
- package/dist/esm/api/resolvePrivateLinkServiceId/operations.js.map +1 -7
- package/dist/esm/api/resolvePrivateLinkServiceId/options.js +4 -0
- package/dist/esm/api/resolvePrivateLinkServiceId/options.js.map +1 -7
- package/dist/esm/api/snapshots/index.js +4 -16
- package/dist/esm/api/snapshots/index.js.map +1 -7
- package/dist/esm/api/snapshots/operations.js +167 -227
- package/dist/esm/api/snapshots/operations.js.map +1 -7
- package/dist/esm/api/snapshots/options.js +4 -0
- package/dist/esm/api/snapshots/options.js.map +1 -7
- package/dist/esm/api/trustedAccessRoleBindings/index.js +4 -7
- package/dist/esm/api/trustedAccessRoleBindings/index.js.map +1 -7
- package/dist/esm/api/trustedAccessRoleBindings/operations.js +117 -159
- package/dist/esm/api/trustedAccessRoleBindings/operations.js.map +1 -7
- package/dist/esm/api/trustedAccessRoleBindings/options.js +4 -0
- package/dist/esm/api/trustedAccessRoleBindings/options.js.map +1 -7
- package/dist/esm/api/trustedAccessRoles/index.js +4 -4
- package/dist/esm/api/trustedAccessRoles/index.js.map +1 -7
- package/dist/esm/api/trustedAccessRoles/operations.js +27 -41
- package/dist/esm/api/trustedAccessRoles/operations.js.map +1 -7
- package/dist/esm/api/trustedAccessRoles/options.js +4 -0
- package/dist/esm/api/trustedAccessRoles/options.js.map +1 -7
- package/dist/esm/classic/agentPools/index.js +59 -121
- package/dist/esm/classic/agentPools/index.js.map +1 -7
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -7
- package/dist/esm/classic/machines/index.js +11 -11
- package/dist/esm/classic/machines/index.js.map +1 -7
- package/dist/esm/classic/maintenanceConfigurations/index.js +14 -19
- package/dist/esm/classic/maintenanceConfigurations/index.js.map +1 -7
- package/dist/esm/classic/managedClusters/index.js +124 -173
- package/dist/esm/classic/managedClusters/index.js.map +1 -7
- package/dist/esm/classic/managedNamespaces/index.js +32 -66
- package/dist/esm/classic/managedNamespaces/index.js.map +1 -7
- package/dist/esm/classic/operations/index.js +10 -10
- package/dist/esm/classic/operations/index.js.map +1 -7
- package/dist/esm/classic/privateEndpointConnections/index.js +21 -40
- package/dist/esm/classic/privateEndpointConnections/index.js.map +1 -7
- package/dist/esm/classic/privateLinkResources/index.js +10 -10
- package/dist/esm/classic/privateLinkResources/index.js.map +1 -7
- package/dist/esm/classic/resolvePrivateLinkServiceId/index.js +10 -10
- package/dist/esm/classic/resolvePrivateLinkServiceId/index.js.map +1 -7
- package/dist/esm/classic/snapshots/index.js +16 -23
- package/dist/esm/classic/snapshots/index.js.map +1 -7
- package/dist/esm/classic/trustedAccessRoleBindings/index.js +30 -68
- package/dist/esm/classic/trustedAccessRoleBindings/index.js.map +1 -7
- package/dist/esm/classic/trustedAccessRoles/index.js +10 -10
- package/dist/esm/classic/trustedAccessRoles/index.js.map +1 -7
- package/dist/esm/containerServiceClient.js +62 -59
- package/dist/esm/containerServiceClient.js.map +1 -7
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +7 -147
- package/dist/esm/index.js.map +1 -7
- package/dist/esm/logger.js +4 -4
- package/dist/esm/logger.js.map +1 -7
- package/dist/esm/models/index.d.ts +2 -2
- package/dist/esm/models/index.js +4 -142
- package/dist/esm/models/index.js.map +1 -7
- package/dist/esm/models/models.d.ts +100 -6
- package/dist/esm/models/models.js +4899 -4137
- package/dist/esm/models/models.js.map +1 -7
- package/dist/esm/restorePollerHelpers.js +127 -140
- package/dist/esm/restorePollerHelpers.js.map +1 -7
- package/dist/esm/static-helpers/cloudSettingHelpers.js +37 -26
- package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -7
- package/dist/esm/static-helpers/pagingHelpers.js +122 -98
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -7
- package/dist/esm/static-helpers/pollingHelpers.js +86 -68
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -7
- package/dist/esm/static-helpers/serialization/check-prop-undefined.js +15 -9
- package/dist/esm/static-helpers/serialization/check-prop-undefined.js.map +1 -7
- package/dist/esm/static-helpers/simplePollerHelpers.js +43 -42
- package/dist/esm/static-helpers/simplePollerHelpers.js.map +1 -7
- package/dist/esm/static-helpers/urlTemplate.js +169 -142
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -7
- package/dist/react-native/api/agentPools/operations.js +15 -15
- package/dist/react-native/api/agentPools/operations.js.map +1 -1
- package/dist/react-native/api/containerServiceContext.js +1 -1
- package/dist/react-native/api/containerServiceContext.js.map +1 -1
- package/dist/react-native/api/machines/operations.js +3 -3
- package/dist/react-native/api/machines/operations.js.map +1 -1
- package/dist/react-native/api/maintenanceConfigurations/operations.js +5 -5
- package/dist/react-native/api/maintenanceConfigurations/operations.js.map +1 -1
- package/dist/react-native/api/managedClusters/operations.js +42 -42
- package/dist/react-native/api/managedClusters/operations.js.map +1 -1
- package/dist/react-native/api/managedNamespaces/operations.js +9 -9
- package/dist/react-native/api/managedNamespaces/operations.js.map +1 -1
- package/dist/react-native/api/operations/operations.js +2 -2
- package/dist/react-native/api/operations/operations.js.map +1 -1
- package/dist/react-native/api/privateEndpointConnections/operations.js +5 -5
- package/dist/react-native/api/privateEndpointConnections/operations.js.map +1 -1
- package/dist/react-native/api/privateLinkResources/operations.js +1 -1
- package/dist/react-native/api/privateLinkResources/operations.js.map +1 -1
- package/dist/react-native/api/resolvePrivateLinkServiceId/operations.js +1 -1
- package/dist/react-native/api/resolvePrivateLinkServiceId/operations.js.map +1 -1
- package/dist/react-native/api/snapshots/operations.js +8 -8
- package/dist/react-native/api/snapshots/operations.js.map +1 -1
- package/dist/react-native/api/trustedAccessRoleBindings/operations.js +7 -7
- package/dist/react-native/api/trustedAccessRoleBindings/operations.js.map +1 -1
- package/dist/react-native/api/trustedAccessRoles/operations.js +2 -2
- package/dist/react-native/api/trustedAccessRoles/operations.js.map +1 -1
- package/dist/react-native/index.d.ts +2 -2
- package/dist/react-native/index.js +1 -1
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/index.d.ts +2 -2
- package/dist/react-native/models/index.js +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +100 -6
- package/dist/react-native/models/models.js +127 -10
- package/dist/react-native/models/models.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,155 +1,142 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./api/trustedAccessRoleBindings/operations.js";
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { _$deleteDeserialize, _createOrUpdateDeserialize, } from "./api/trustedAccessRoleBindings/operations.js";
|
|
5
4
|
import { _$deleteDeserialize as _$deleteDeserializePrivateEndpointConnections } from "./api/privateEndpointConnections/operations.js";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./api/managedNamespaces/operations.js";
|
|
10
|
-
import {
|
|
11
|
-
_runCommandDeserialize,
|
|
12
|
-
_startDeserialize,
|
|
13
|
-
_stopDeserialize,
|
|
14
|
-
_rotateServiceAccountSigningKeysDeserialize,
|
|
15
|
-
_abortLatestOperationDeserialize,
|
|
16
|
-
_rotateClusterCertificatesDeserialize,
|
|
17
|
-
_resetAADProfileDeserialize,
|
|
18
|
-
_resetServicePrincipalProfileDeserialize,
|
|
19
|
-
_$deleteDeserialize as _$deleteDeserializeManagedClusters,
|
|
20
|
-
_updateTagsDeserialize,
|
|
21
|
-
_createOrUpdateDeserialize as _createOrUpdateDeserializeManagedClusters
|
|
22
|
-
} from "./api/managedClusters/operations.js";
|
|
23
|
-
import {
|
|
24
|
-
_upgradeNodeImageVersionDeserialize,
|
|
25
|
-
_deleteMachinesDeserialize,
|
|
26
|
-
_abortLatestOperationDeserialize as _abortLatestOperationDeserializeAgentPools,
|
|
27
|
-
_$deleteDeserialize as _$deleteDeserializeAgentPools,
|
|
28
|
-
_createOrUpdateDeserialize as _createOrUpdateDeserializeAgentPools
|
|
29
|
-
} from "./api/agentPools/operations.js";
|
|
5
|
+
import { _$deleteDeserialize as _$deleteDeserializeManagedNamespaces, _createOrUpdateDeserialize as _createOrUpdateDeserializeManagedNamespaces, } from "./api/managedNamespaces/operations.js";
|
|
6
|
+
import { _runCommandDeserialize, _startDeserialize, _stopDeserialize, _rotateServiceAccountSigningKeysDeserialize, _abortLatestOperationDeserialize, _rotateClusterCertificatesDeserialize, _resetAADProfileDeserialize, _resetServicePrincipalProfileDeserialize, _$deleteDeserialize as _$deleteDeserializeManagedClusters, _updateTagsDeserialize, _createOrUpdateDeserialize as _createOrUpdateDeserializeManagedClusters, } from "./api/managedClusters/operations.js";
|
|
7
|
+
import { _upgradeNodeImageVersionDeserialize, _deleteMachinesDeserialize, _abortLatestOperationDeserialize as _abortLatestOperationDeserializeAgentPools, _$deleteDeserialize as _$deleteDeserializeAgentPools, _createOrUpdateDeserialize as _createOrUpdateDeserializeAgentPools, } from "./api/agentPools/operations.js";
|
|
30
8
|
import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js";
|
|
31
9
|
import { deserializeState } from "@azure/core-lro";
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
const deserializeHelper = options?.processResponseBody ?? deserializer;
|
|
43
|
-
if (!deserializeHelper) {
|
|
44
|
-
throw new Error(
|
|
45
|
-
`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
const apiVersion = getApiVersionFromUrl(initialRequestUrl);
|
|
49
|
-
return getLongRunningPoller(
|
|
50
|
-
client["_client"] ?? client,
|
|
51
|
-
deserializeHelper,
|
|
52
|
-
expectedStatuses,
|
|
53
|
-
{
|
|
54
|
-
updateIntervalInMs: options?.updateIntervalInMs,
|
|
55
|
-
abortSignal: options?.abortSignal,
|
|
56
|
-
resourceLocationConfig,
|
|
57
|
-
restoreFrom: serializedState,
|
|
58
|
-
initialRequestUrl,
|
|
59
|
-
apiVersion
|
|
10
|
+
/**
|
|
11
|
+
* Creates a poller from the serialized state of another poller. This can be
|
|
12
|
+
* useful when you want to create pollers on a different host or a poller
|
|
13
|
+
* needs to be constructed after the original one is not in scope.
|
|
14
|
+
*/
|
|
15
|
+
export function restorePoller(client, serializedState, sourceOperation, options) {
|
|
16
|
+
const pollerConfig = deserializeState(serializedState).config;
|
|
17
|
+
const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
|
|
18
|
+
if (!initialRequestUrl || !requestMethod) {
|
|
19
|
+
throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`);
|
|
60
20
|
}
|
|
61
|
-
|
|
21
|
+
const resourceLocationConfig = metadata?.["resourceLocationConfig"];
|
|
22
|
+
const { deserializer, expectedStatuses = [] } = getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};
|
|
23
|
+
const deserializeHelper = options?.processResponseBody ?? deserializer;
|
|
24
|
+
if (!deserializeHelper) {
|
|
25
|
+
throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`);
|
|
26
|
+
}
|
|
27
|
+
const apiVersion = getApiVersionFromUrl(initialRequestUrl);
|
|
28
|
+
return getLongRunningPoller(client["_client"] ?? client, deserializeHelper, expectedStatuses, {
|
|
29
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
30
|
+
abortSignal: options?.abortSignal,
|
|
31
|
+
resourceLocationConfig,
|
|
32
|
+
restoreFrom: serializedState,
|
|
33
|
+
initialRequestUrl,
|
|
34
|
+
apiVersion,
|
|
35
|
+
});
|
|
62
36
|
}
|
|
63
37
|
const deserializeMap = {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
38
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName}": { deserializer: _$deleteDeserialize, expectedStatuses: ["202", "204", "200"] },
|
|
39
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName}": { deserializer: _createOrUpdateDeserialize, expectedStatuses: ["200", "201", "202"] },
|
|
40
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}": {
|
|
41
|
+
deserializer: _$deleteDeserializePrivateEndpointConnections,
|
|
42
|
+
expectedStatuses: ["200", "204", "202"],
|
|
43
|
+
},
|
|
44
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/managedNamespaces/{managedNamespaceName}": { deserializer: _$deleteDeserializeManagedNamespaces, expectedStatuses: ["202", "204", "200"] },
|
|
45
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/managedNamespaces/{managedNamespaceName}": {
|
|
46
|
+
deserializer: _createOrUpdateDeserializeManagedNamespaces,
|
|
47
|
+
expectedStatuses: ["200", "201", "202"],
|
|
48
|
+
},
|
|
49
|
+
"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/runCommand": { deserializer: _runCommandDeserialize, expectedStatuses: ["202", "200", "201"] },
|
|
50
|
+
"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/start": { deserializer: _startDeserialize, expectedStatuses: ["202", "204", "200", "201"] },
|
|
51
|
+
"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/stop": { deserializer: _stopDeserialize, expectedStatuses: ["202", "204", "200", "201"] },
|
|
52
|
+
"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateServiceAccountSigningKeys": {
|
|
53
|
+
deserializer: _rotateServiceAccountSigningKeysDeserialize,
|
|
54
|
+
expectedStatuses: ["202", "204", "200", "201"],
|
|
55
|
+
},
|
|
56
|
+
"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/abort": {
|
|
57
|
+
deserializer: _abortLatestOperationDeserialize,
|
|
58
|
+
expectedStatuses: ["202", "204", "200", "201"],
|
|
59
|
+
},
|
|
60
|
+
"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates": {
|
|
61
|
+
deserializer: _rotateClusterCertificatesDeserialize,
|
|
62
|
+
expectedStatuses: ["202", "204", "200", "201"],
|
|
63
|
+
},
|
|
64
|
+
"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetAADProfile": { deserializer: _resetAADProfileDeserialize, expectedStatuses: ["202", "200", "201"] },
|
|
65
|
+
"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile": {
|
|
66
|
+
deserializer: _resetServicePrincipalProfileDeserialize,
|
|
67
|
+
expectedStatuses: ["202", "200", "201"],
|
|
68
|
+
},
|
|
69
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}": { deserializer: _$deleteDeserializeManagedClusters, expectedStatuses: ["202", "204", "200"] },
|
|
70
|
+
"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}": { deserializer: _updateTagsDeserialize, expectedStatuses: ["200", "202", "201"] },
|
|
71
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}": {
|
|
72
|
+
deserializer: _createOrUpdateDeserializeManagedClusters,
|
|
73
|
+
expectedStatuses: ["200", "201", "202"],
|
|
74
|
+
},
|
|
75
|
+
"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeNodeImageVersion": { deserializer: _upgradeNodeImageVersionDeserialize, expectedStatuses: ["202", "200", "201"] },
|
|
76
|
+
"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/deleteMachines": { deserializer: _deleteMachinesDeserialize, expectedStatuses: ["202", "200", "201"] },
|
|
77
|
+
"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/abort": {
|
|
78
|
+
deserializer: _abortLatestOperationDeserializeAgentPools,
|
|
79
|
+
expectedStatuses: ["202", "204", "200", "201"],
|
|
80
|
+
},
|
|
81
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}": { deserializer: _$deleteDeserializeAgentPools, expectedStatuses: ["202", "204", "200"] },
|
|
82
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}": { deserializer: _createOrUpdateDeserializeAgentPools, expectedStatuses: ["200", "201", "202"] },
|
|
109
83
|
};
|
|
110
84
|
function getDeserializationHelper(urlStr, method) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
const
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
const
|
|
125
|
-
|
|
126
|
-
);
|
|
127
|
-
if
|
|
128
|
-
|
|
129
|
-
|
|
85
|
+
const path = new URL(urlStr).pathname;
|
|
86
|
+
const pathParts = path.split("/");
|
|
87
|
+
// Traverse list to match the longest candidate
|
|
88
|
+
// matchedLen: the length of candidate path
|
|
89
|
+
// matchedValue: the matched status code array
|
|
90
|
+
let matchedLen = -1, matchedValue;
|
|
91
|
+
// Iterate the responseMap to find a match
|
|
92
|
+
for (const [key, value] of Object.entries(deserializeMap)) {
|
|
93
|
+
// Extracting the path from the map key which is in format
|
|
94
|
+
// GET /path/foo
|
|
95
|
+
if (!key.startsWith(method)) {
|
|
96
|
+
continue;
|
|
97
|
+
}
|
|
98
|
+
const candidatePath = getPathFromMapKey(key);
|
|
99
|
+
// Get each part of the url path
|
|
100
|
+
const candidateParts = candidatePath.split("/");
|
|
101
|
+
// track if we have found a match to return the values found.
|
|
102
|
+
let found = true;
|
|
103
|
+
for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
|
|
104
|
+
if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) {
|
|
105
|
+
const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length;
|
|
106
|
+
// If the current part of the candidate is a "template" part
|
|
107
|
+
// Try to use the suffix of pattern to match the path
|
|
108
|
+
// {guid} ==> $
|
|
109
|
+
// {guid}:export ==> :export$
|
|
110
|
+
const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || "");
|
|
111
|
+
if (!isMatched) {
|
|
112
|
+
found = false;
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
continue;
|
|
116
|
+
}
|
|
117
|
+
// If the candidate part is not a template and
|
|
118
|
+
// the parts don't match mark the candidate as not found
|
|
119
|
+
// to move on with the next candidate path.
|
|
120
|
+
if (candidateParts[i] !== pathParts[j]) {
|
|
121
|
+
found = false;
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
// We finished evaluating the current candidate parts
|
|
126
|
+
// Update the matched value if and only if we found the longer pattern
|
|
127
|
+
if (found && candidatePath.length > matchedLen) {
|
|
128
|
+
matchedLen = candidatePath.length;
|
|
129
|
+
matchedValue = value;
|
|
130
130
|
}
|
|
131
|
-
continue;
|
|
132
|
-
}
|
|
133
|
-
if (candidateParts[i] !== pathParts[j]) {
|
|
134
|
-
found = false;
|
|
135
|
-
break;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
if (found && candidatePath.length > matchedLen) {
|
|
139
|
-
matchedLen = candidatePath.length;
|
|
140
|
-
matchedValue = value;
|
|
141
131
|
}
|
|
142
|
-
|
|
143
|
-
return matchedValue;
|
|
132
|
+
return matchedValue;
|
|
144
133
|
}
|
|
145
134
|
function getPathFromMapKey(mapKey) {
|
|
146
|
-
|
|
147
|
-
|
|
135
|
+
const pathStart = mapKey.indexOf("/");
|
|
136
|
+
return mapKey.slice(pathStart);
|
|
148
137
|
}
|
|
149
138
|
function getApiVersionFromUrl(urlStr) {
|
|
150
|
-
|
|
151
|
-
|
|
139
|
+
const url = new URL(urlStr);
|
|
140
|
+
return url.searchParams.get("api-version") ?? undefined;
|
|
152
141
|
}
|
|
153
|
-
|
|
154
|
-
restorePoller
|
|
155
|
-
};
|
|
142
|
+
//# sourceMappingURL=restorePollerHelpers.js.map
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["/mnt/vss/_work/1/s/sdk/containerservice/arm-containerservice/src/restorePollerHelpers.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ContainerServiceClient } from \"./containerServiceClient.js\";\nimport {\n _$deleteDeserialize,\n _createOrUpdateDeserialize,\n} from \"./api/trustedAccessRoleBindings/operations.js\";\nimport { _$deleteDeserialize as _$deleteDeserializePrivateEndpointConnections } from \"./api/privateEndpointConnections/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializeManagedNamespaces,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeManagedNamespaces,\n} from \"./api/managedNamespaces/operations.js\";\nimport {\n _runCommandDeserialize,\n _startDeserialize,\n _stopDeserialize,\n _rotateServiceAccountSigningKeysDeserialize,\n _abortLatestOperationDeserialize,\n _rotateClusterCertificatesDeserialize,\n _resetAADProfileDeserialize,\n _resetServicePrincipalProfileDeserialize,\n _$deleteDeserialize as _$deleteDeserializeManagedClusters,\n _updateTagsDeserialize,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeManagedClusters,\n} from \"./api/managedClusters/operations.js\";\nimport {\n _upgradeNodeImageVersionDeserialize,\n _deleteMachinesDeserialize,\n _abortLatestOperationDeserialize as _abortLatestOperationDeserializeAgentPools,\n _$deleteDeserialize as _$deleteDeserializeAgentPools,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeAgentPools,\n} from \"./api/agentPools/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport type { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { PollerLike, OperationState, ResourceLocationConfig } from \"@azure/core-lro\";\nimport { deserializeState } from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: ContainerServiceClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n const apiVersion = getApiVersionFromUrl(initialRequestUrl);\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n apiVersion,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: (result: PathUncheckedResponse) => Promise<any>;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName}\":\n { deserializer: _$deleteDeserialize, expectedStatuses: [\"202\", \"204\", \"200\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName}\":\n { deserializer: _createOrUpdateDeserialize, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n {\n deserializer: _$deleteDeserializePrivateEndpointConnections,\n expectedStatuses: [\"200\", \"204\", \"202\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/managedNamespaces/{managedNamespaceName}\":\n { deserializer: _$deleteDeserializeManagedNamespaces, expectedStatuses: [\"202\", \"204\", \"200\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/managedNamespaces/{managedNamespaceName}\":\n {\n deserializer: _createOrUpdateDeserializeManagedNamespaces,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/runCommand\":\n { deserializer: _runCommandDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/start\":\n { deserializer: _startDeserialize, expectedStatuses: [\"202\", \"204\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/stop\":\n { deserializer: _stopDeserialize, expectedStatuses: [\"202\", \"204\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateServiceAccountSigningKeys\":\n {\n deserializer: _rotateServiceAccountSigningKeysDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\", \"201\"],\n },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/abort\":\n {\n deserializer: _abortLatestOperationDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\", \"201\"],\n },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates\":\n {\n deserializer: _rotateClusterCertificatesDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\", \"201\"],\n },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetAADProfile\":\n { deserializer: _resetAADProfileDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile\":\n {\n deserializer: _resetServicePrincipalProfileDeserialize,\n expectedStatuses: [\"202\", \"200\", \"201\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}\":\n { deserializer: _$deleteDeserializeManagedClusters, expectedStatuses: [\"202\", \"204\", \"200\"] },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}\":\n { deserializer: _updateTagsDeserialize, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}\":\n {\n deserializer: _createOrUpdateDeserializeManagedClusters,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeNodeImageVersion\":\n { deserializer: _upgradeNodeImageVersionDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/deleteMachines\":\n { deserializer: _deleteMachinesDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/abort\":\n {\n deserializer: _abortLatestOperationDeserializeAgentPools,\n expectedStatuses: [\"202\", \"204\", \"200\", \"201\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}\":\n { deserializer: _$deleteDeserializeAgentPools, expectedStatuses: [\"202\", \"204\", \"200\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}\":\n { deserializer: _createOrUpdateDeserializeAgentPools, expectedStatuses: [\"200\", \"201\", \"202\"] },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n\nfunction getApiVersionFromUrl(urlStr: string): string | undefined {\n const url = new URL(urlStr);\n return url.searchParams.get(\"api-version\") ?? undefined;\n}\n"],
|
|
5
|
-
"mappings": "AAIA;AAAA,EACE;AAAA,EACA;AAAA,OACK;AACP,SAAS,uBAAuB,qDAAqD;AACrF;AAAA,EACE,uBAAuB;AAAA,EACvB,8BAA8B;AAAA,OACzB;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,uBAAuB;AAAA,EACvB;AAAA,EACA,8BAA8B;AAAA,OACzB;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA,oCAAoC;AAAA,EACpC,uBAAuB;AAAA,EACvB,8BAA8B;AAAA,OACzB;AACP,SAAS,4BAA4B;AAIrC,SAAS,wBAAwB;AAqB1B,SAAS,cACd,QACA,iBACA,iBACA,SAC8C;AAC9C,QAAM,eAAe,iBAAiB,eAAe,EAAE;AACvD,QAAM,EAAE,mBAAmB,eAAe,SAAS,IAAI;AACvD,MAAI,CAAC,qBAAqB,CAAC,eAAe;AACxC,UAAM,IAAI;AAAA,MACR,6BAA6B,eAAe,wBAAwB,iBAAiB,IAAI;AAAA,IAC3F;AAAA,EACF;AACA,QAAM,yBAAyB,WAAW,wBAAwB;AAGlE,QAAM,EAAE,cAAc,mBAAmB,CAAC,EAAE,IAC1C,yBAAyB,mBAAmB,aAAa,KAAK,CAAC;AACjE,QAAM,oBAAoB,SAAS,uBAAuB;AAC1D,MAAI,CAAC,mBAAmB;AACtB,UA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CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC;AAED,SAAS,oBAAoB,CAAC,MAAc;IAC1C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,OAAO,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,SAAS,CAAC;AAC1D,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ContainerServiceClient } from \"./containerServiceClient.js\";\nimport {\n _$deleteDeserialize,\n _createOrUpdateDeserialize,\n} from \"./api/trustedAccessRoleBindings/operations.js\";\nimport { _$deleteDeserialize as _$deleteDeserializePrivateEndpointConnections } from \"./api/privateEndpointConnections/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializeManagedNamespaces,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeManagedNamespaces,\n} from \"./api/managedNamespaces/operations.js\";\nimport {\n _runCommandDeserialize,\n _startDeserialize,\n _stopDeserialize,\n _rotateServiceAccountSigningKeysDeserialize,\n _abortLatestOperationDeserialize,\n _rotateClusterCertificatesDeserialize,\n _resetAADProfileDeserialize,\n _resetServicePrincipalProfileDeserialize,\n _$deleteDeserialize as _$deleteDeserializeManagedClusters,\n _updateTagsDeserialize,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeManagedClusters,\n} from \"./api/managedClusters/operations.js\";\nimport {\n _upgradeNodeImageVersionDeserialize,\n _deleteMachinesDeserialize,\n _abortLatestOperationDeserialize as _abortLatestOperationDeserializeAgentPools,\n _$deleteDeserialize as _$deleteDeserializeAgentPools,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeAgentPools,\n} from \"./api/agentPools/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport type { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { PollerLike, OperationState, ResourceLocationConfig } from \"@azure/core-lro\";\nimport { deserializeState } from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: ContainerServiceClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n const apiVersion = getApiVersionFromUrl(initialRequestUrl);\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n apiVersion,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: (result: PathUncheckedResponse) => Promise<any>;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName}\":\n { deserializer: _$deleteDeserialize, expectedStatuses: [\"202\", \"204\", \"200\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName}\":\n { deserializer: _createOrUpdateDeserialize, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n {\n deserializer: _$deleteDeserializePrivateEndpointConnections,\n expectedStatuses: [\"200\", \"204\", \"202\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/managedNamespaces/{managedNamespaceName}\":\n { deserializer: _$deleteDeserializeManagedNamespaces, expectedStatuses: [\"202\", \"204\", \"200\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/managedNamespaces/{managedNamespaceName}\":\n {\n deserializer: _createOrUpdateDeserializeManagedNamespaces,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/runCommand\":\n { deserializer: _runCommandDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/start\":\n { deserializer: _startDeserialize, expectedStatuses: [\"202\", \"204\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/stop\":\n { deserializer: _stopDeserialize, expectedStatuses: [\"202\", \"204\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateServiceAccountSigningKeys\":\n {\n deserializer: _rotateServiceAccountSigningKeysDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\", \"201\"],\n },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/abort\":\n {\n deserializer: _abortLatestOperationDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\", \"201\"],\n },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates\":\n {\n deserializer: _rotateClusterCertificatesDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\", \"201\"],\n },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetAADProfile\":\n { deserializer: _resetAADProfileDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile\":\n {\n deserializer: _resetServicePrincipalProfileDeserialize,\n expectedStatuses: [\"202\", \"200\", \"201\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}\":\n { deserializer: _$deleteDeserializeManagedClusters, expectedStatuses: [\"202\", \"204\", \"200\"] },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}\":\n { deserializer: _updateTagsDeserialize, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}\":\n {\n deserializer: _createOrUpdateDeserializeManagedClusters,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeNodeImageVersion\":\n { deserializer: _upgradeNodeImageVersionDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/deleteMachines\":\n { deserializer: _deleteMachinesDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/abort\":\n {\n deserializer: _abortLatestOperationDeserializeAgentPools,\n expectedStatuses: [\"202\", \"204\", \"200\", \"201\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}\":\n { deserializer: _$deleteDeserializeAgentPools, expectedStatuses: [\"202\", \"204\", \"200\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}\":\n { deserializer: _createOrUpdateDeserializeAgentPools, expectedStatuses: [\"200\", \"201\", \"202\"] },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n\nfunction getApiVersionFromUrl(urlStr: string): string | undefined {\n const url = new URL(urlStr);\n return url.searchParams.get(\"api-version\") ?? undefined;\n}\n"]}
|
|
@@ -1,27 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
AZURE_CHINA_CLOUD
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
/**
|
|
4
|
+
* An enum to describe Azure Cloud environments.
|
|
5
|
+
* @enum {string}
|
|
6
|
+
*/
|
|
7
|
+
export var AzureClouds;
|
|
8
|
+
(function (AzureClouds) {
|
|
9
|
+
/** Azure public cloud, which is the default cloud for Azure SDKs. */
|
|
10
|
+
AzureClouds["AZURE_PUBLIC_CLOUD"] = "AZURE_PUBLIC_CLOUD";
|
|
11
|
+
/** Azure China cloud */
|
|
12
|
+
AzureClouds["AZURE_CHINA_CLOUD"] = "AZURE_CHINA_CLOUD";
|
|
13
|
+
/** Azure US government cloud */
|
|
14
|
+
AzureClouds["AZURE_US_GOVERNMENT"] = "AZURE_US_GOVERNMENT";
|
|
15
|
+
})(AzureClouds || (AzureClouds = {}));
|
|
16
|
+
/**
|
|
17
|
+
* Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
|
|
18
|
+
* @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
|
|
19
|
+
* @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
|
|
20
|
+
* @throws {Error} Throws an error if an unknown cloud setting is provided.
|
|
21
|
+
*/
|
|
22
|
+
export function getArmEndpoint(cloudSetting) {
|
|
23
|
+
if (cloudSetting === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
const cloudEndpoints = {
|
|
27
|
+
AZURE_CHINA_CLOUD: "https://management.chinacloudapi.cn/",
|
|
28
|
+
AZURE_US_GOVERNMENT: "https://management.usgovcloudapi.net/",
|
|
29
|
+
AZURE_PUBLIC_CLOUD: "https://management.azure.com/",
|
|
30
|
+
};
|
|
31
|
+
if (cloudSetting in cloudEndpoints) {
|
|
32
|
+
return cloudEndpoints[cloudSetting];
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
throw new Error(`Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`);
|
|
36
|
+
}
|
|
23
37
|
}
|
|
24
|
-
|
|
25
|
-
AzureClouds,
|
|
26
|
-
getArmEndpoint
|
|
27
|
-
};
|
|
38
|
+
//# sourceMappingURL=cloudSettingHelpers.js.map
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["/mnt/vss/_work/1/s/sdk/containerservice/arm-containerservice/src/static-helpers/cloudSettingHelpers.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * An enum to describe Azure Cloud environments.\n * @enum {string}\n */\nexport enum AzureClouds {\n /** Azure public cloud, which is the default cloud for Azure SDKs. */\n AZURE_PUBLIC_CLOUD = \"AZURE_PUBLIC_CLOUD\",\n /** Azure China cloud */\n AZURE_CHINA_CLOUD = \"AZURE_CHINA_CLOUD\",\n /** Azure US government cloud */\n AZURE_US_GOVERNMENT = \"AZURE_US_GOVERNMENT\",\n}\n\n/** The supported values for cloud setting as a string literal type */\nexport type AzureSupportedClouds = `${AzureClouds}`;\n\n/**\n * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.\n * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.\n * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.\n * @throws {Error} Throws an error if an unknown cloud setting is provided.\n */\nexport function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined {\n if (cloudSetting === undefined) {\n return undefined;\n }\n const cloudEndpoints: Record<keyof typeof AzureClouds, string> = {\n AZURE_CHINA_CLOUD: \"https://management.chinacloudapi.cn/\",\n AZURE_US_GOVERNMENT: \"https://management.usgovcloudapi.net/\",\n AZURE_PUBLIC_CLOUD: \"https://management.azure.com/\",\n };\n if (cloudSetting in cloudEndpoints) {\n return cloudEndpoints[cloudSetting];\n } else {\n throw new Error(\n `Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`,\n );\n }\n}\n"],
|
|
5
|
-
"mappings": "AAOO,IAAK,cAAL,kBAAKA,iBAAL;AAEL,EAAAA,aAAA,wBAAqB;AAErB,EAAAA,aAAA,uBAAoB;AAEpB,EAAAA,aAAA,yBAAsB;AANZ,SAAAA;AAAA,GAAA;AAkBL,SAAS,eAAe,cAAyD;AACtF,MAAI,iBAAiB,QAAW;AAC9B,WAAO;AAAA,EACT;AACA,QAAM,iBAA2D;AAAA,IAC/D,mBAAmB;AAAA,IACnB,qBAAqB;AAAA,IACrB,oBAAoB;AAAA,EACtB;AACA,MAAI,gBAAgB,gBAAgB;AAClC,WAAO,eAAe,YAAY;AAAA,EACpC,OAAO;AACL,UAAM,IAAI;AAAA,MACR,0BAA0B,YAAY;AAAA,IACxC;AAAA,EACF;AACF;",
|
|
6
|
-
"names": ["AzureClouds"]
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"cloudSettingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/cloudSettingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;GAGG;AACH,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,qEAAqE;IACrE,wDAAyC,CAAA;IACzC,wBAAwB;IACxB,sDAAuC,CAAA;IACvC,gCAAgC;IAChC,0DAA2C,CAAA;AAC7C,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAKD;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,YAAmC;IAChE,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,cAAc,GAA6C;QAC/D,iBAAiB,EAAE,sCAAsC;QACzD,mBAAmB,EAAE,uCAAuC;QAC5D,kBAAkB,EAAE,+BAA+B;KACpD,CAAC;IACF,IAAI,YAAY,IAAI,cAAc,EAAE,CAAC;QACnC,OAAO,cAAc,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CACb,0BAA0B,YAAY,6DAA6D,CACpG,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * An enum to describe Azure Cloud environments.\n * @enum {string}\n */\nexport enum AzureClouds {\n /** Azure public cloud, which is the default cloud for Azure SDKs. */\n AZURE_PUBLIC_CLOUD = \"AZURE_PUBLIC_CLOUD\",\n /** Azure China cloud */\n AZURE_CHINA_CLOUD = \"AZURE_CHINA_CLOUD\",\n /** Azure US government cloud */\n AZURE_US_GOVERNMENT = \"AZURE_US_GOVERNMENT\",\n}\n\n/** The supported values for cloud setting as a string literal type */\nexport type AzureSupportedClouds = `${AzureClouds}`;\n\n/**\n * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.\n * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.\n * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.\n * @throws {Error} Throws an error if an unknown cloud setting is provided.\n */\nexport function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined {\n if (cloudSetting === undefined) {\n return undefined;\n }\n const cloudEndpoints: Record<keyof typeof AzureClouds, string> = {\n AZURE_CHINA_CLOUD: \"https://management.chinacloudapi.cn/\",\n AZURE_US_GOVERNMENT: \"https://management.usgovcloudapi.net/\",\n AZURE_PUBLIC_CLOUD: \"https://management.azure.com/\",\n };\n if (cloudSetting in cloudEndpoints) {\n return cloudEndpoints[cloudSetting];\n } else {\n throw new Error(\n `Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`,\n );\n }\n}\n"]}
|