@azure/arm-kubernetesconfiguration 6.1.1-alpha.20250210.1 → 6.1.1-alpha.20250212.1
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 +21 -14
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/extensions.d.ts +3 -3
- package/dist/browser/operations/extensions.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/extensions.js +139 -151
- package/dist/browser/operations/extensions.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/fluxConfigOperationStatus.d.ts +3 -3
- package/dist/browser/operations/fluxConfigOperationStatus.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/fluxConfigOperationStatus.js +2 -2
- package/dist/browser/operations/fluxConfigOperationStatus.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/fluxConfigurations.d.ts +3 -3
- package/dist/browser/operations/fluxConfigurations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/fluxConfigurations.js +139 -151
- package/dist/browser/operations/fluxConfigurations.js.map +1 -0
- package/dist/browser/operations/index.d.ts +7 -0
- package/dist/browser/operations/index.d.ts.map +1 -0
- package/dist/browser/operations/index.js +14 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operationStatus.d.ts +3 -3
- package/dist/browser/operations/operationStatus.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operationStatus.js +3 -3
- package/dist/browser/operations/operationStatus.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
- package/dist/browser/operations/operations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/sourceControlConfigurations.d.ts +3 -3
- package/dist/browser/operations/sourceControlConfigurations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/sourceControlConfigurations.js +48 -52
- package/dist/browser/operations/sourceControlConfigurations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/extensions.d.ts +1 -1
- package/dist/browser/operationsInterfaces/extensions.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/extensions.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/fluxConfigOperationStatus.d.ts +1 -1
- package/dist/browser/operationsInterfaces/fluxConfigOperationStatus.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/fluxConfigOperationStatus.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/fluxConfigurations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/fluxConfigurations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/fluxConfigurations.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +7 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/index.js +14 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operationStatus.d.ts +1 -1
- package/dist/browser/operationsInterfaces/operationStatus.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/operationStatus.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/sourceControlConfigurations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/sourceControlConfigurations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/sourceControlConfigurations.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/{dist-esm/src → dist/browser}/sourceControlConfigurationClient.d.ts +2 -2
- package/dist/browser/sourceControlConfigurationClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/sourceControlConfigurationClient.js +15 -18
- package/dist/browser/sourceControlConfigurationClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lroImpl.d.ts +11 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +17 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/{types/arm-kubernetesconfiguration.d.ts → dist/commonjs/models/index.d.ts} +1187 -1668
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +143 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +49 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +2069 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +22 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +193 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/extensions.d.ts +141 -0
- package/dist/commonjs/operations/extensions.d.ts.map +1 -0
- package/dist/commonjs/operations/extensions.js +540 -0
- package/dist/commonjs/operations/extensions.js.map +1 -0
- package/dist/commonjs/operations/fluxConfigOperationStatus.d.ts +26 -0
- package/dist/commonjs/operations/fluxConfigOperationStatus.d.ts.map +1 -0
- package/dist/commonjs/operations/fluxConfigOperationStatus.js +76 -0
- package/dist/commonjs/operations/fluxConfigOperationStatus.js.map +1 -0
- package/dist/commonjs/operations/fluxConfigurations.d.ts +141 -0
- package/dist/commonjs/operations/fluxConfigurations.d.ts.map +1 -0
- package/dist/commonjs/operations/fluxConfigurations.js +540 -0
- package/dist/commonjs/operations/fluxConfigurations.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +7 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +17 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/operationStatus.d.ts +63 -0
- package/dist/commonjs/operations/operationStatus.d.ts.map +1 -0
- package/dist/commonjs/operations/operationStatus.js +231 -0
- package/dist/commonjs/operations/operationStatus.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +32 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +137 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operations/sourceControlConfigurations.d.ts +102 -0
- package/dist/commonjs/operations/sourceControlConfigurations.d.ts.map +1 -0
- package/dist/commonjs/operations/sourceControlConfigurations.js +377 -0
- package/dist/commonjs/operations/sourceControlConfigurations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/extensions.d.ts +108 -0
- package/dist/commonjs/operationsInterfaces/extensions.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/extensions.js +10 -0
- package/dist/commonjs/operationsInterfaces/extensions.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/fluxConfigOperationStatus.d.ts +18 -0
- package/dist/commonjs/operationsInterfaces/fluxConfigOperationStatus.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/fluxConfigOperationStatus.js +10 -0
- package/dist/commonjs/operationsInterfaces/fluxConfigOperationStatus.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/fluxConfigurations.d.ts +108 -0
- package/dist/commonjs/operationsInterfaces/fluxConfigurations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/fluxConfigurations.js +10 -0
- package/dist/commonjs/operationsInterfaces/fluxConfigurations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +7 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +17 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operationStatus.d.ts +30 -0
- package/dist/commonjs/operationsInterfaces/operationStatus.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operationStatus.js +10 -0
- package/dist/commonjs/operationsInterfaces/operationStatus.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.js +10 -0
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/sourceControlConfigurations.d.ts +69 -0
- package/dist/commonjs/operationsInterfaces/sourceControlConfigurations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/sourceControlConfigurations.js +10 -0
- package/dist/commonjs/operationsInterfaces/sourceControlConfigurations.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/commonjs/sourceControlConfigurationClient.d.ts +25 -0
- package/dist/commonjs/sourceControlConfigurationClient.d.ts.map +1 -0
- package/dist/commonjs/sourceControlConfigurationClient.js +107 -0
- package/dist/commonjs/sourceControlConfigurationClient.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +11 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +14 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +1187 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +140 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +49 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +2066 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +22 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +190 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/extensions.d.ts +141 -0
- package/dist/esm/operations/extensions.d.ts.map +1 -0
- package/dist/esm/operations/extensions.js +536 -0
- package/dist/esm/operations/extensions.js.map +1 -0
- package/dist/esm/operations/fluxConfigOperationStatus.d.ts +26 -0
- package/dist/esm/operations/fluxConfigOperationStatus.d.ts.map +1 -0
- package/dist/esm/operations/fluxConfigOperationStatus.js +71 -0
- package/dist/esm/operations/fluxConfigOperationStatus.js.map +1 -0
- package/dist/esm/operations/fluxConfigurations.d.ts +141 -0
- package/dist/esm/operations/fluxConfigurations.d.ts.map +1 -0
- package/dist/esm/operations/fluxConfigurations.js +536 -0
- package/dist/esm/operations/fluxConfigurations.js.map +1 -0
- package/dist/esm/operations/index.d.ts +7 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +14 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/operationStatus.d.ts +63 -0
- package/dist/esm/operations/operationStatus.d.ts.map +1 -0
- package/dist/esm/operations/operationStatus.js +227 -0
- package/dist/esm/operations/operationStatus.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +32 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +133 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operations/sourceControlConfigurations.d.ts +102 -0
- package/dist/esm/operations/sourceControlConfigurations.d.ts.map +1 -0
- package/dist/esm/operations/sourceControlConfigurations.js +373 -0
- package/dist/esm/operations/sourceControlConfigurations.js.map +1 -0
- package/dist/esm/operationsInterfaces/extensions.d.ts +108 -0
- package/dist/esm/operationsInterfaces/extensions.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/extensions.js +9 -0
- package/dist/esm/operationsInterfaces/extensions.js.map +1 -0
- package/dist/esm/operationsInterfaces/fluxConfigOperationStatus.d.ts +18 -0
- package/dist/esm/operationsInterfaces/fluxConfigOperationStatus.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/fluxConfigOperationStatus.js +9 -0
- package/dist/esm/operationsInterfaces/fluxConfigOperationStatus.js.map +1 -0
- package/dist/esm/operationsInterfaces/fluxConfigurations.d.ts +108 -0
- package/dist/esm/operationsInterfaces/fluxConfigurations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/fluxConfigurations.js +9 -0
- package/dist/esm/operationsInterfaces/fluxConfigurations.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +7 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +14 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/operationStatus.d.ts +30 -0
- package/dist/esm/operationsInterfaces/operationStatus.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/operationStatus.js +9 -0
- package/dist/esm/operationsInterfaces/operationStatus.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/operations.js +9 -0
- package/dist/esm/operationsInterfaces/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/sourceControlConfigurations.d.ts +69 -0
- package/dist/esm/operationsInterfaces/sourceControlConfigurations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/sourceControlConfigurations.js +9 -0
- package/dist/esm/operationsInterfaces/sourceControlConfigurations.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/esm/sourceControlConfigurationClient.d.ts +25 -0
- package/dist/esm/sourceControlConfigurationClient.d.ts.map +1 -0
- package/dist/esm/sourceControlConfigurationClient.js +102 -0
- package/dist/esm/sourceControlConfigurationClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/lroImpl.d.ts +11 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +14 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +1187 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +140 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +49 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +2066 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +22 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +190 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/extensions.d.ts +141 -0
- package/dist/react-native/operations/extensions.d.ts.map +1 -0
- package/dist/react-native/operations/extensions.js +536 -0
- package/dist/react-native/operations/extensions.js.map +1 -0
- package/dist/react-native/operations/fluxConfigOperationStatus.d.ts +26 -0
- package/dist/react-native/operations/fluxConfigOperationStatus.d.ts.map +1 -0
- package/dist/react-native/operations/fluxConfigOperationStatus.js +71 -0
- package/dist/react-native/operations/fluxConfigOperationStatus.js.map +1 -0
- package/dist/react-native/operations/fluxConfigurations.d.ts +141 -0
- package/dist/react-native/operations/fluxConfigurations.d.ts.map +1 -0
- package/dist/react-native/operations/fluxConfigurations.js +536 -0
- package/dist/react-native/operations/fluxConfigurations.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +7 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +14 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/operationStatus.d.ts +63 -0
- package/dist/react-native/operations/operationStatus.d.ts.map +1 -0
- package/dist/react-native/operations/operationStatus.js +227 -0
- package/dist/react-native/operations/operationStatus.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +32 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +133 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operations/sourceControlConfigurations.d.ts +102 -0
- package/dist/react-native/operations/sourceControlConfigurations.d.ts.map +1 -0
- package/dist/react-native/operations/sourceControlConfigurations.js +373 -0
- package/dist/react-native/operations/sourceControlConfigurations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/extensions.d.ts +108 -0
- package/dist/react-native/operationsInterfaces/extensions.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/extensions.js +9 -0
- package/dist/react-native/operationsInterfaces/extensions.js.map +1 -0
- package/dist/react-native/operationsInterfaces/fluxConfigOperationStatus.d.ts +18 -0
- package/dist/react-native/operationsInterfaces/fluxConfigOperationStatus.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/fluxConfigOperationStatus.js +9 -0
- package/dist/react-native/operationsInterfaces/fluxConfigOperationStatus.js.map +1 -0
- package/dist/react-native/operationsInterfaces/fluxConfigurations.d.ts +108 -0
- package/dist/react-native/operationsInterfaces/fluxConfigurations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/fluxConfigurations.js +9 -0
- package/dist/react-native/operationsInterfaces/fluxConfigurations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +7 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +14 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operationStatus.d.ts +30 -0
- package/dist/react-native/operationsInterfaces/operationStatus.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operationStatus.js +9 -0
- package/dist/react-native/operationsInterfaces/operationStatus.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.js +9 -0
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/sourceControlConfigurations.d.ts +69 -0
- package/dist/react-native/operationsInterfaces/sourceControlConfigurations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/sourceControlConfigurations.js +9 -0
- package/dist/react-native/operationsInterfaces/sourceControlConfigurations.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/dist/react-native/sourceControlConfigurationClient.d.ts +25 -0
- package/dist/react-native/sourceControlConfigurationClient.d.ts.map +1 -0
- package/dist/react-native/sourceControlConfigurationClient.js +102 -0
- package/dist/react-native/sourceControlConfigurationClient.js.map +1 -0
- package/package.json +70 -41
- package/dist/index.js +0 -4494
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/extensionsCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/extensionsCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/extensionsCreateSample.js +0 -74
- package/dist-esm/samples-dev/extensionsCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/extensionsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/extensionsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/extensionsDeleteSample.js +0 -39
- package/dist-esm/samples-dev/extensionsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/extensionsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/extensionsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/extensionsGetSample.js +0 -60
- package/dist-esm/samples-dev/extensionsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/extensionsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/extensionsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/extensionsListSample.js +0 -54
- package/dist-esm/samples-dev/extensionsListSample.js.map +0 -1
- package/dist-esm/samples-dev/extensionsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/extensionsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/extensionsUpdateSample.js +0 -41
- package/dist-esm/samples-dev/extensionsUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/fluxConfigOperationStatusGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/fluxConfigOperationStatusGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/fluxConfigOperationStatusGetSample.js +0 -40
- package/dist-esm/samples-dev/fluxConfigOperationStatusGetSample.js.map +0 -1
- package/dist-esm/samples-dev/fluxConfigurationsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/fluxConfigurationsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/fluxConfigurationsCreateOrUpdateSample.js +0 -125
- package/dist-esm/samples-dev/fluxConfigurationsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/fluxConfigurationsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/fluxConfigurationsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/fluxConfigurationsDeleteSample.js +0 -39
- package/dist-esm/samples-dev/fluxConfigurationsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/fluxConfigurationsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/fluxConfigurationsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/fluxConfigurationsGetSample.js +0 -39
- package/dist-esm/samples-dev/fluxConfigurationsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/fluxConfigurationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/fluxConfigurationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/fluxConfigurationsListSample.js +0 -54
- package/dist-esm/samples-dev/fluxConfigurationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/fluxConfigurationsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/fluxConfigurationsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/fluxConfigurationsUpdateSample.js +0 -50
- package/dist-esm/samples-dev/fluxConfigurationsUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/operationStatusGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationStatusGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationStatusGetSample.js +0 -40
- package/dist-esm/samples-dev/operationStatusGetSample.js.map +0 -1
- package/dist-esm/samples-dev/operationStatusListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationStatusListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationStatusListSample.js +0 -54
- package/dist-esm/samples-dev/operationStatusListSample.js.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.js +0 -51
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/sourceControlConfigurationsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/sourceControlConfigurationsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sourceControlConfigurationsCreateOrUpdateSample.js +0 -49
- package/dist-esm/samples-dev/sourceControlConfigurationsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/sourceControlConfigurationsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/sourceControlConfigurationsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sourceControlConfigurationsDeleteSample.js +0 -39
- package/dist-esm/samples-dev/sourceControlConfigurationsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/sourceControlConfigurationsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/sourceControlConfigurationsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sourceControlConfigurationsGetSample.js +0 -39
- package/dist-esm/samples-dev/sourceControlConfigurationsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/sourceControlConfigurationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/sourceControlConfigurationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/sourceControlConfigurationsListSample.js +0 -54
- package/dist-esm/samples-dev/sourceControlConfigurationsListSample.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/extensions.d.ts.map +0 -1
- package/dist-esm/src/operations/extensions.js.map +0 -1
- package/dist-esm/src/operations/fluxConfigOperationStatus.d.ts.map +0 -1
- package/dist-esm/src/operations/fluxConfigOperationStatus.js.map +0 -1
- package/dist-esm/src/operations/fluxConfigurations.d.ts.map +0 -1
- package/dist-esm/src/operations/fluxConfigurations.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -7
- package/dist-esm/src/operations/index.d.ts.map +0 -1
- package/dist-esm/src/operations/index.js +0 -14
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/operationStatus.d.ts.map +0 -1
- package/dist-esm/src/operations/operationStatus.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operations/sourceControlConfigurations.d.ts.map +0 -1
- package/dist-esm/src/operations/sourceControlConfigurations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/extensions.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/extensions.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/fluxConfigOperationStatus.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/fluxConfigOperationStatus.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/fluxConfigurations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/fluxConfigurations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -7
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -14
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operationStatus.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/operationStatus.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/sourceControlConfigurations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/sourceControlConfigurations.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/src/sourceControlConfigurationClient.d.ts.map +0 -1
- package/dist-esm/src/sourceControlConfigurationClient.js.map +0 -1
- package/dist-esm/test/kubernetesconfiguration_operations_test.spec.d.ts +0 -4
- package/dist-esm/test/kubernetesconfiguration_operations_test.spec.d.ts.map +0 -1
- package/dist-esm/test/kubernetesconfiguration_operations_test.spec.js +0 -83
- package/dist-esm/test/kubernetesconfiguration_operations_test.spec.js.map +0 -1
- package/src/lroImpl.ts +0 -38
- package/src/models/index.ts +0 -1294
- package/src/models/mappers.ts +0 -2174
- package/src/models/parameters.ts +0 -221
- package/src/operations/extensions.ts +0 -777
- package/src/operations/fluxConfigOperationStatus.ts +0 -95
- package/src/operations/fluxConfigurations.ts +0 -777
- package/src/operations/index.ts +0 -14
- package/src/operations/operationStatus.ts +0 -314
- package/src/operations/operations.ts +0 -149
- package/src/operations/sourceControlConfigurations.ts +0 -521
- package/src/operationsInterfaces/extensions.ts +0 -197
- package/src/operationsInterfaces/fluxConfigOperationStatus.ts +0 -37
- package/src/operationsInterfaces/fluxConfigurations.ts +0 -197
- package/src/operationsInterfaces/index.ts +0 -14
- package/src/operationsInterfaces/operationStatus.ts +0 -58
- package/src/operationsInterfaces/operations.ts +0 -25
- package/src/operationsInterfaces/sourceControlConfigurations.ts +0 -121
- package/src/pagingHelper.ts +0 -39
- package/src/sourceControlConfigurationClient.ts +0 -166
- package/tsconfig.json +0 -33
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/lroImpl.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/extensions.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/fluxConfigOperationStatus.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/fluxConfigurations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operationStatus.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/sourceControlConfigurations.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
- /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
|
3
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
4
|
-
import * as dotenv from "dotenv";
|
|
5
|
-
dotenv.config();
|
|
6
|
-
/**
|
|
7
|
-
* This sample demonstrates how to Create a new Kubernetes Cluster Extension.
|
|
8
|
-
*
|
|
9
|
-
* @summary Create a new Kubernetes Cluster Extension.
|
|
10
|
-
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/CreateExtension.json
|
|
11
|
-
*/
|
|
12
|
-
function createExtension() {
|
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
14
|
-
const subscriptionId = process.env["KUBERNETESCONFIGURATION_SUBSCRIPTION_ID"] || "subId1";
|
|
15
|
-
const resourceGroupName = process.env["KUBERNETESCONFIGURATION_RESOURCE_GROUP"] || "rg1";
|
|
16
|
-
const clusterRp = "Microsoft.Kubernetes";
|
|
17
|
-
const clusterResourceName = "connectedClusters";
|
|
18
|
-
const clusterName = "clusterName1";
|
|
19
|
-
const extensionName = "ClusterMonitor";
|
|
20
|
-
const extension = {
|
|
21
|
-
autoUpgradeMinorVersion: true,
|
|
22
|
-
configurationProtectedSettings: { omsagentSecretKey: "secretKeyValue01" },
|
|
23
|
-
configurationSettings: {
|
|
24
|
-
omsagentEnvClusterName: "clusterName1",
|
|
25
|
-
omsagentSecretWsid: "fakeTokenPlaceholder",
|
|
26
|
-
},
|
|
27
|
-
extensionType: "azuremonitor-containers",
|
|
28
|
-
releaseTrain: "Preview",
|
|
29
|
-
scope: { cluster: { releaseNamespace: "kube-system" } },
|
|
30
|
-
};
|
|
31
|
-
const credential = new DefaultAzureCredential();
|
|
32
|
-
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
|
33
|
-
const result = yield client.extensions.beginCreateAndWait(resourceGroupName, clusterRp, clusterResourceName, clusterName, extensionName, extension);
|
|
34
|
-
console.log(result);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* This sample demonstrates how to Create a new Kubernetes Cluster Extension.
|
|
39
|
-
*
|
|
40
|
-
* @summary Create a new Kubernetes Cluster Extension.
|
|
41
|
-
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/CreateExtensionWithPlan.json
|
|
42
|
-
*/
|
|
43
|
-
function createExtensionWithPlan() {
|
|
44
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
const subscriptionId = process.env["KUBERNETESCONFIGURATION_SUBSCRIPTION_ID"] || "subId1";
|
|
46
|
-
const resourceGroupName = process.env["KUBERNETESCONFIGURATION_RESOURCE_GROUP"] || "rg1";
|
|
47
|
-
const clusterRp = "Microsoft.Kubernetes";
|
|
48
|
-
const clusterResourceName = "connectedClusters";
|
|
49
|
-
const clusterName = "clusterName1";
|
|
50
|
-
const extensionName = "azureVote";
|
|
51
|
-
const extension = {
|
|
52
|
-
autoUpgradeMinorVersion: true,
|
|
53
|
-
extensionType: "azure-vote",
|
|
54
|
-
plan: {
|
|
55
|
-
name: "azure-vote-standard",
|
|
56
|
-
product: "azure-vote-standard-offer-id",
|
|
57
|
-
publisher: "Microsoft",
|
|
58
|
-
},
|
|
59
|
-
releaseTrain: "Preview",
|
|
60
|
-
};
|
|
61
|
-
const credential = new DefaultAzureCredential();
|
|
62
|
-
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
|
63
|
-
const result = yield client.extensions.beginCreateAndWait(resourceGroupName, clusterRp, clusterResourceName, clusterName, extensionName, extension);
|
|
64
|
-
console.log(result);
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
function main() {
|
|
68
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
-
yield createExtension();
|
|
70
|
-
yield createExtensionWithPlan();
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
main().catch(console.error);
|
|
74
|
-
//# sourceMappingURL=extensionsCreateSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensionsCreateSample.js","sourceRoot":"","sources":["../../samples-dev/extensionsCreateSample.ts"],"names":[],"mappings":";AAQA,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,eAAe;;QAC5B,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,IAAI,QAAQ,CAAC;QAC1F,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,IAAI,KAAK,CAAC;QACzF,MAAM,SAAS,GAAG,sBAAsB,CAAC;QACzC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;QAChD,MAAM,WAAW,GAAG,cAAc,CAAC;QACnC,MAAM,aAAa,GAAG,gBAAgB,CAAC;QACvC,MAAM,SAAS,GAAc;YAC3B,uBAAuB,EAAE,IAAI;YAC7B,8BAA8B,EAAE,EAAE,iBAAiB,EAAE,kBAAkB,EAAE;YACzE,qBAAqB,EAAE;gBACrB,sBAAsB,EAAE,cAAc;gBACtC,kBAAkB,EAAE,sBAAsB;aAC3C;YACD,aAAa,EAAE,yBAAyB;YACxC,YAAY,EAAE,SAAS;YACvB,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,gBAAgB,EAAE,aAAa,EAAE,EAAE;SACxD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gCAAgC,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,kBAAkB,CACvD,iBAAiB,EACjB,SAAS,EACT,mBAAmB,EACnB,WAAW,EACX,aAAa,EACb,SAAS,CACV,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAe,uBAAuB;;QACpC,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,IAAI,QAAQ,CAAC;QAC1F,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,IAAI,KAAK,CAAC;QACzF,MAAM,SAAS,GAAG,sBAAsB,CAAC;QACzC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;QAChD,MAAM,WAAW,GAAG,cAAc,CAAC;QACnC,MAAM,aAAa,GAAG,WAAW,CAAC;QAClC,MAAM,SAAS,GAAc;YAC3B,uBAAuB,EAAE,IAAI;YAC7B,aAAa,EAAE,YAAY;YAC3B,IAAI,EAAE;gBACJ,IAAI,EAAE,qBAAqB;gBAC3B,OAAO,EAAE,8BAA8B;gBACvC,SAAS,EAAE,WAAW;aACvB;YACD,YAAY,EAAE,SAAS;SACxB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gCAAgC,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,kBAAkB,CACvD,iBAAiB,EACjB,SAAS,EACT,mBAAmB,EACnB,WAAW,EACX,aAAa,EACb,SAAS,CACV,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,eAAe,EAAE,CAAC;QACxB,MAAM,uBAAuB,EAAE,CAAC;IAClC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensionsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/extensionsDeleteSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
|
10
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
11
|
-
import * as dotenv from "dotenv";
|
|
12
|
-
dotenv.config();
|
|
13
|
-
/**
|
|
14
|
-
* This sample demonstrates how to Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
|
|
15
|
-
*
|
|
16
|
-
* @summary Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
|
|
17
|
-
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/DeleteExtension.json
|
|
18
|
-
*/
|
|
19
|
-
function deleteExtension() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = process.env["KUBERNETESCONFIGURATION_SUBSCRIPTION_ID"] || "subId1";
|
|
22
|
-
const resourceGroupName = process.env["KUBERNETESCONFIGURATION_RESOURCE_GROUP"] || "rg1";
|
|
23
|
-
const clusterRp = "Microsoft.Kubernetes";
|
|
24
|
-
const clusterResourceName = "connectedClusters";
|
|
25
|
-
const clusterName = "clusterName1";
|
|
26
|
-
const extensionName = "ClusterMonitor";
|
|
27
|
-
const credential = new DefaultAzureCredential();
|
|
28
|
-
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
|
29
|
-
const result = yield client.extensions.beginDeleteAndWait(resourceGroupName, clusterRp, clusterResourceName, clusterName, extensionName);
|
|
30
|
-
console.log(result);
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
function main() {
|
|
34
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
yield deleteExtension();
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
main().catch(console.error);
|
|
39
|
-
//# sourceMappingURL=extensionsDeleteSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensionsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/extensionsDeleteSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,eAAe;;QAC5B,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,IAAI,QAAQ,CAAC;QAC1F,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,IAAI,KAAK,CAAC;QACzF,MAAM,SAAS,GAAG,sBAAsB,CAAC;QACzC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;QAChD,MAAM,WAAW,GAAG,cAAc,CAAC;QACnC,MAAM,aAAa,GAAG,gBAAgB,CAAC;QACvC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gCAAgC,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,kBAAkB,CACvD,iBAAiB,EACjB,SAAS,EACT,mBAAmB,EACnB,WAAW,EACX,aAAa,CACd,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,eAAe,EAAE,CAAC;IAC1B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensionsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/extensionsGetSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
|
10
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
11
|
-
import * as dotenv from "dotenv";
|
|
12
|
-
dotenv.config();
|
|
13
|
-
/**
|
|
14
|
-
* This sample demonstrates how to Gets Kubernetes Cluster Extension.
|
|
15
|
-
*
|
|
16
|
-
* @summary Gets Kubernetes Cluster Extension.
|
|
17
|
-
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/GetExtension.json
|
|
18
|
-
*/
|
|
19
|
-
function getExtension() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = process.env["KUBERNETESCONFIGURATION_SUBSCRIPTION_ID"] || "subId1";
|
|
22
|
-
const resourceGroupName = process.env["KUBERNETESCONFIGURATION_RESOURCE_GROUP"] || "rg1";
|
|
23
|
-
const clusterRp = "Microsoft.Kubernetes";
|
|
24
|
-
const clusterResourceName = "connectedClusters";
|
|
25
|
-
const clusterName = "clusterName1";
|
|
26
|
-
const extensionName = "ClusterMonitor";
|
|
27
|
-
const credential = new DefaultAzureCredential();
|
|
28
|
-
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
|
29
|
-
const result = yield client.extensions.get(resourceGroupName, clusterRp, clusterResourceName, clusterName, extensionName);
|
|
30
|
-
console.log(result);
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* This sample demonstrates how to Gets Kubernetes Cluster Extension.
|
|
35
|
-
*
|
|
36
|
-
* @summary Gets Kubernetes Cluster Extension.
|
|
37
|
-
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/GetExtensionWithPlan.json
|
|
38
|
-
*/
|
|
39
|
-
function getExtensionWithPlan() {
|
|
40
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
const subscriptionId = process.env["KUBERNETESCONFIGURATION_SUBSCRIPTION_ID"] || "subId1";
|
|
42
|
-
const resourceGroupName = process.env["KUBERNETESCONFIGURATION_RESOURCE_GROUP"] || "rg1";
|
|
43
|
-
const clusterRp = "Microsoft.Kubernetes";
|
|
44
|
-
const clusterResourceName = "connectedClusters";
|
|
45
|
-
const clusterName = "clusterName1";
|
|
46
|
-
const extensionName = "azureVote";
|
|
47
|
-
const credential = new DefaultAzureCredential();
|
|
48
|
-
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
|
49
|
-
const result = yield client.extensions.get(resourceGroupName, clusterRp, clusterResourceName, clusterName, extensionName);
|
|
50
|
-
console.log(result);
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
function main() {
|
|
54
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
yield getExtension();
|
|
56
|
-
yield getExtensionWithPlan();
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
main().catch(console.error);
|
|
60
|
-
//# sourceMappingURL=extensionsGetSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensionsGetSample.js","sourceRoot":"","sources":["../../samples-dev/extensionsGetSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,YAAY;;QACzB,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,IAAI,QAAQ,CAAC;QAC1F,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,IAAI,KAAK,CAAC;QACzF,MAAM,SAAS,GAAG,sBAAsB,CAAC;QACzC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;QAChD,MAAM,WAAW,GAAG,cAAc,CAAC;QACnC,MAAM,aAAa,GAAG,gBAAgB,CAAC;QACvC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gCAAgC,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,GAAG,CACxC,iBAAiB,EACjB,SAAS,EACT,mBAAmB,EACnB,WAAW,EACX,aAAa,CACd,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAe,oBAAoB;;QACjC,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,IAAI,QAAQ,CAAC;QAC1F,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,IAAI,KAAK,CAAC;QACzF,MAAM,SAAS,GAAG,sBAAsB,CAAC;QACzC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;QAChD,MAAM,WAAW,GAAG,cAAc,CAAC;QACnC,MAAM,aAAa,GAAG,WAAW,CAAC;QAClC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gCAAgC,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,GAAG,CACxC,iBAAiB,EACjB,SAAS,EACT,mBAAmB,EACnB,WAAW,EACX,aAAa,CACd,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,YAAY,EAAE,CAAC;QACrB,MAAM,oBAAoB,EAAE,CAAC;IAC/B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensionsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/extensionsListSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { __asyncValues, __awaiter } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
|
10
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
11
|
-
import * as dotenv from "dotenv";
|
|
12
|
-
dotenv.config();
|
|
13
|
-
/**
|
|
14
|
-
* This sample demonstrates how to List all Extensions in the cluster.
|
|
15
|
-
*
|
|
16
|
-
* @summary List all Extensions in the cluster.
|
|
17
|
-
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/ListExtensions.json
|
|
18
|
-
*/
|
|
19
|
-
function listExtensions() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
var _a, e_1, _b, _c;
|
|
22
|
-
const subscriptionId = process.env["KUBERNETESCONFIGURATION_SUBSCRIPTION_ID"] || "subId1";
|
|
23
|
-
const resourceGroupName = process.env["KUBERNETESCONFIGURATION_RESOURCE_GROUP"] || "rg1";
|
|
24
|
-
const clusterRp = "Microsoft.Kubernetes";
|
|
25
|
-
const clusterResourceName = "connectedClusters";
|
|
26
|
-
const clusterName = "clusterName1";
|
|
27
|
-
const credential = new DefaultAzureCredential();
|
|
28
|
-
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
|
29
|
-
const resArray = new Array();
|
|
30
|
-
try {
|
|
31
|
-
for (var _d = true, _e = __asyncValues(client.extensions.list(resourceGroupName, clusterRp, clusterResourceName, clusterName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
32
|
-
_c = _f.value;
|
|
33
|
-
_d = false;
|
|
34
|
-
const item = _c;
|
|
35
|
-
resArray.push(item);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
39
|
-
finally {
|
|
40
|
-
try {
|
|
41
|
-
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
42
|
-
}
|
|
43
|
-
finally { if (e_1) throw e_1.error; }
|
|
44
|
-
}
|
|
45
|
-
console.log(resArray);
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
function main() {
|
|
49
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
-
yield listExtensions();
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
main().catch(console.error);
|
|
54
|
-
//# sourceMappingURL=extensionsListSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensionsListSample.js","sourceRoot":"","sources":["../../samples-dev/extensionsListSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,cAAc;;;QAC3B,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,IAAI,QAAQ,CAAC;QAC1F,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,IAAI,KAAK,CAAC;QACzF,MAAM,SAAS,GAAG,sBAAsB,CAAC;QACzC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;QAChD,MAAM,WAAW,GAAG,cAAc,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gCAAgC,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAyB,eAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,CAC7C,iBAAiB,EACjB,SAAS,EACT,mBAAmB,EACnB,WAAW,CACZ,CAAA,IAAA,sDAAE,CAAC;gBALqB,cAKxB;gBALwB,WAKxB;gBALU,MAAM,IAAI,KAAA,CAAA;gBAMnB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,cAAc,EAAE,CAAC;IACzB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensionsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/extensionsUpdateSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
|
3
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
4
|
-
import * as dotenv from "dotenv";
|
|
5
|
-
dotenv.config();
|
|
6
|
-
/**
|
|
7
|
-
* This sample demonstrates how to Patch an existing Kubernetes Cluster Extension.
|
|
8
|
-
*
|
|
9
|
-
* @summary Patch an existing Kubernetes Cluster Extension.
|
|
10
|
-
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/PatchExtension.json
|
|
11
|
-
*/
|
|
12
|
-
function updateExtension() {
|
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
14
|
-
const subscriptionId = process.env["KUBERNETESCONFIGURATION_SUBSCRIPTION_ID"] || "subId1";
|
|
15
|
-
const resourceGroupName = process.env["KUBERNETESCONFIGURATION_RESOURCE_GROUP"] || "rg1";
|
|
16
|
-
const clusterRp = "Microsoft.Kubernetes";
|
|
17
|
-
const clusterResourceName = "connectedClusters";
|
|
18
|
-
const clusterName = "clusterName1";
|
|
19
|
-
const extensionName = "ClusterMonitor";
|
|
20
|
-
const patchExtension = {
|
|
21
|
-
autoUpgradeMinorVersion: true,
|
|
22
|
-
configurationProtectedSettings: { omsagentSecretKey: "secretKeyValue01" },
|
|
23
|
-
configurationSettings: {
|
|
24
|
-
omsagentEnvClusterName: "clusterName1",
|
|
25
|
-
omsagentSecretWsid: "fakeTokenPlaceholder",
|
|
26
|
-
},
|
|
27
|
-
releaseTrain: "Preview",
|
|
28
|
-
};
|
|
29
|
-
const credential = new DefaultAzureCredential();
|
|
30
|
-
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
|
31
|
-
const result = yield client.extensions.beginUpdateAndWait(resourceGroupName, clusterRp, clusterResourceName, clusterName, extensionName, patchExtension);
|
|
32
|
-
console.log(result);
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
function main() {
|
|
36
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
yield updateExtension();
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
main().catch(console.error);
|
|
41
|
-
//# sourceMappingURL=extensionsUpdateSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensionsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/extensionsUpdateSample.ts"],"names":[],"mappings":";AAQA,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,eAAe;;QAC5B,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,IAAI,QAAQ,CAAC;QAC1F,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,IAAI,KAAK,CAAC;QACzF,MAAM,SAAS,GAAG,sBAAsB,CAAC;QACzC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;QAChD,MAAM,WAAW,GAAG,cAAc,CAAC;QACnC,MAAM,aAAa,GAAG,gBAAgB,CAAC;QACvC,MAAM,cAAc,GAAmB;YACrC,uBAAuB,EAAE,IAAI;YAC7B,8BAA8B,EAAE,EAAE,iBAAiB,EAAE,kBAAkB,EAAE;YACzE,qBAAqB,EAAE;gBACrB,sBAAsB,EAAE,cAAc;gBACtC,kBAAkB,EAAE,sBAAsB;aAC3C;YACD,YAAY,EAAE,SAAS;SACxB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gCAAgC,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,kBAAkB,CACvD,iBAAiB,EACjB,SAAS,EACT,mBAAmB,EACnB,WAAW,EACX,aAAa,EACb,cAAc,CACf,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,eAAe,EAAE,CAAC;IAC1B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fluxConfigOperationStatusGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/fluxConfigOperationStatusGetSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
|
10
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
11
|
-
import * as dotenv from "dotenv";
|
|
12
|
-
dotenv.config();
|
|
13
|
-
/**
|
|
14
|
-
* This sample demonstrates how to Get Async Operation status
|
|
15
|
-
*
|
|
16
|
-
* @summary Get Async Operation status
|
|
17
|
-
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/GetFluxConfigurationAsyncOperationStatus.json
|
|
18
|
-
*/
|
|
19
|
-
function fluxConfigurationAsyncOperationStatusGet() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = process.env["KUBERNETESCONFIGURATION_SUBSCRIPTION_ID"] || "subId1";
|
|
22
|
-
const resourceGroupName = process.env["KUBERNETESCONFIGURATION_RESOURCE_GROUP"] || "rg1";
|
|
23
|
-
const clusterRp = "Microsoft.Kubernetes";
|
|
24
|
-
const clusterResourceName = "connectedClusters";
|
|
25
|
-
const clusterName = "clusterName1";
|
|
26
|
-
const fluxConfigurationName = "srs-fluxconfig";
|
|
27
|
-
const operationId = "99999999-9999-9999-9999-999999999999";
|
|
28
|
-
const credential = new DefaultAzureCredential();
|
|
29
|
-
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
|
30
|
-
const result = yield client.fluxConfigOperationStatus.get(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, operationId);
|
|
31
|
-
console.log(result);
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function main() {
|
|
35
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
yield fluxConfigurationAsyncOperationStatusGet();
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
main().catch(console.error);
|
|
40
|
-
//# sourceMappingURL=fluxConfigOperationStatusGetSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fluxConfigOperationStatusGetSample.js","sourceRoot":"","sources":["../../samples-dev/fluxConfigOperationStatusGetSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,wCAAwC;;QACrD,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,IAAI,QAAQ,CAAC;QAC1F,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,IAAI,KAAK,CAAC;QACzF,MAAM,SAAS,GAAG,sBAAsB,CAAC;QACzC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;QAChD,MAAM,WAAW,GAAG,cAAc,CAAC;QACnC,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;QAC/C,MAAM,WAAW,GAAG,sCAAsC,CAAC;QAC3D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gCAAgC,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC,GAAG,CACvD,iBAAiB,EACjB,SAAS,EACT,mBAAmB,EACnB,WAAW,EACX,qBAAqB,EACrB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,wCAAwC,EAAE,CAAC;IACnD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fluxConfigurationsCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/fluxConfigurationsCreateOrUpdateSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
|
3
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
4
|
-
import * as dotenv from "dotenv";
|
|
5
|
-
dotenv.config();
|
|
6
|
-
/**
|
|
7
|
-
* This sample demonstrates how to Create a new Kubernetes Flux Configuration.
|
|
8
|
-
*
|
|
9
|
-
* @summary Create a new Kubernetes Flux Configuration.
|
|
10
|
-
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/CreateFluxConfiguration.json
|
|
11
|
-
*/
|
|
12
|
-
function createFluxConfiguration() {
|
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
14
|
-
const subscriptionId = process.env["KUBERNETESCONFIGURATION_SUBSCRIPTION_ID"] || "subId1";
|
|
15
|
-
const resourceGroupName = process.env["KUBERNETESCONFIGURATION_RESOURCE_GROUP"] || "rg1";
|
|
16
|
-
const clusterRp = "Microsoft.Kubernetes";
|
|
17
|
-
const clusterResourceName = "connectedClusters";
|
|
18
|
-
const clusterName = "clusterName1";
|
|
19
|
-
const fluxConfigurationName = "srs-fluxconfig";
|
|
20
|
-
const fluxConfiguration = {
|
|
21
|
-
gitRepository: {
|
|
22
|
-
httpsCACert: "ZXhhbXBsZWNlcnRpZmljYXRl",
|
|
23
|
-
repositoryRef: { branch: "master" },
|
|
24
|
-
syncIntervalInSeconds: 600,
|
|
25
|
-
timeoutInSeconds: 600,
|
|
26
|
-
url: "https://github.com/Azure/arc-k8s-demo",
|
|
27
|
-
},
|
|
28
|
-
kustomizations: {
|
|
29
|
-
srsKustomization1: {
|
|
30
|
-
path: "./test/path",
|
|
31
|
-
dependsOn: [],
|
|
32
|
-
postBuild: {
|
|
33
|
-
substitute: { clusterEnv: "prod", replicaCount: "2" },
|
|
34
|
-
substituteFrom: [{ name: "cluster-test", kind: "ConfigMap", optional: true }],
|
|
35
|
-
},
|
|
36
|
-
syncIntervalInSeconds: 600,
|
|
37
|
-
timeoutInSeconds: 600,
|
|
38
|
-
wait: true,
|
|
39
|
-
},
|
|
40
|
-
srsKustomization2: {
|
|
41
|
-
path: "./other/test/path",
|
|
42
|
-
dependsOn: ["srs-kustomization1"],
|
|
43
|
-
postBuild: {
|
|
44
|
-
substituteFrom: [
|
|
45
|
-
{ name: "cluster-values", kind: "ConfigMap", optional: true },
|
|
46
|
-
{ name: "secret-name", kind: "Secret", optional: false },
|
|
47
|
-
],
|
|
48
|
-
},
|
|
49
|
-
prune: false,
|
|
50
|
-
retryIntervalInSeconds: 600,
|
|
51
|
-
syncIntervalInSeconds: 600,
|
|
52
|
-
timeoutInSeconds: 600,
|
|
53
|
-
wait: false,
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
namespace: "srs-namespace",
|
|
57
|
-
reconciliationWaitDuration: "PT30M",
|
|
58
|
-
scope: "cluster",
|
|
59
|
-
sourceKind: "GitRepository",
|
|
60
|
-
suspend: false,
|
|
61
|
-
waitForReconciliation: true,
|
|
62
|
-
};
|
|
63
|
-
const credential = new DefaultAzureCredential();
|
|
64
|
-
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
|
65
|
-
const result = yield client.fluxConfigurations.beginCreateOrUpdateAndWait(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, fluxConfiguration);
|
|
66
|
-
console.log(result);
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* This sample demonstrates how to Create a new Kubernetes Flux Configuration.
|
|
71
|
-
*
|
|
72
|
-
* @summary Create a new Kubernetes Flux Configuration.
|
|
73
|
-
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/CreateFluxConfigurationWithBucket.json
|
|
74
|
-
*/
|
|
75
|
-
function createFluxConfigurationWithBucketSourceKind() {
|
|
76
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
-
const subscriptionId = process.env["KUBERNETESCONFIGURATION_SUBSCRIPTION_ID"] || "subId1";
|
|
78
|
-
const resourceGroupName = process.env["KUBERNETESCONFIGURATION_RESOURCE_GROUP"] || "rg1";
|
|
79
|
-
const clusterRp = "Microsoft.Kubernetes";
|
|
80
|
-
const clusterResourceName = "connectedClusters";
|
|
81
|
-
const clusterName = "clusterName1";
|
|
82
|
-
const fluxConfigurationName = "srs-fluxconfig";
|
|
83
|
-
const fluxConfiguration = {
|
|
84
|
-
bucket: {
|
|
85
|
-
accessKey: "fluxminiotest",
|
|
86
|
-
bucketName: "flux",
|
|
87
|
-
syncIntervalInSeconds: 1000,
|
|
88
|
-
timeoutInSeconds: 1000,
|
|
89
|
-
url: "https://fluxminiotest.az.minio.io",
|
|
90
|
-
},
|
|
91
|
-
kustomizations: {
|
|
92
|
-
srsKustomization1: {
|
|
93
|
-
path: "./test/path",
|
|
94
|
-
dependsOn: [],
|
|
95
|
-
syncIntervalInSeconds: 600,
|
|
96
|
-
timeoutInSeconds: 600,
|
|
97
|
-
},
|
|
98
|
-
srsKustomization2: {
|
|
99
|
-
path: "./other/test/path",
|
|
100
|
-
dependsOn: ["srs-kustomization1"],
|
|
101
|
-
prune: false,
|
|
102
|
-
retryIntervalInSeconds: 600,
|
|
103
|
-
syncIntervalInSeconds: 600,
|
|
104
|
-
timeoutInSeconds: 600,
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
namespace: "srs-namespace",
|
|
108
|
-
scope: "cluster",
|
|
109
|
-
sourceKind: "Bucket",
|
|
110
|
-
suspend: false,
|
|
111
|
-
};
|
|
112
|
-
const credential = new DefaultAzureCredential();
|
|
113
|
-
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
|
114
|
-
const result = yield client.fluxConfigurations.beginCreateOrUpdateAndWait(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, fluxConfiguration);
|
|
115
|
-
console.log(result);
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
function main() {
|
|
119
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
120
|
-
yield createFluxConfiguration();
|
|
121
|
-
yield createFluxConfigurationWithBucketSourceKind();
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
main().catch(console.error);
|
|
125
|
-
//# sourceMappingURL=fluxConfigurationsCreateOrUpdateSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fluxConfigurationsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/fluxConfigurationsCreateOrUpdateSample.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fluxConfigurationsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/fluxConfigurationsDeleteSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
|
10
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
11
|
-
import * as dotenv from "dotenv";
|
|
12
|
-
dotenv.config();
|
|
13
|
-
/**
|
|
14
|
-
* This sample demonstrates how to This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source repo.
|
|
15
|
-
*
|
|
16
|
-
* @summary This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from the source repo.
|
|
17
|
-
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/DeleteFluxConfiguration.json
|
|
18
|
-
*/
|
|
19
|
-
function deleteFluxConfiguration() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = process.env["KUBERNETESCONFIGURATION_SUBSCRIPTION_ID"] || "subId1";
|
|
22
|
-
const resourceGroupName = process.env["KUBERNETESCONFIGURATION_RESOURCE_GROUP"] || "rg1";
|
|
23
|
-
const clusterRp = "Microsoft.Kubernetes";
|
|
24
|
-
const clusterResourceName = "connectedClusters";
|
|
25
|
-
const clusterName = "clusterName1";
|
|
26
|
-
const fluxConfigurationName = "srs-fluxconfig";
|
|
27
|
-
const credential = new DefaultAzureCredential();
|
|
28
|
-
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
|
29
|
-
const result = yield client.fluxConfigurations.beginDeleteAndWait(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName);
|
|
30
|
-
console.log(result);
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
function main() {
|
|
34
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
yield deleteFluxConfiguration();
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
main().catch(console.error);
|
|
39
|
-
//# sourceMappingURL=fluxConfigurationsDeleteSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fluxConfigurationsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/fluxConfigurationsDeleteSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,uBAAuB;;QACpC,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,IAAI,QAAQ,CAAC;QAC1F,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,IAAI,KAAK,CAAC;QACzF,MAAM,SAAS,GAAG,sBAAsB,CAAC;QACzC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;QAChD,MAAM,WAAW,GAAG,cAAc,CAAC;QACnC,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;QAC/C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gCAAgC,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,kBAAkB,CAC/D,iBAAiB,EACjB,SAAS,EACT,mBAAmB,EACnB,WAAW,EACX,qBAAqB,CACtB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,uBAAuB,EAAE,CAAC;IAClC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fluxConfigurationsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/fluxConfigurationsGetSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { SourceControlConfigurationClient } from "@azure/arm-kubernetesconfiguration";
|
|
10
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
11
|
-
import * as dotenv from "dotenv";
|
|
12
|
-
dotenv.config();
|
|
13
|
-
/**
|
|
14
|
-
* This sample demonstrates how to Gets details of the Flux Configuration.
|
|
15
|
-
*
|
|
16
|
-
* @summary Gets details of the Flux Configuration.
|
|
17
|
-
* x-ms-original-file: specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/stable/2023-05-01/examples/GetFluxConfiguration.json
|
|
18
|
-
*/
|
|
19
|
-
function getFluxConfiguration() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = process.env["KUBERNETESCONFIGURATION_SUBSCRIPTION_ID"] || "subId1";
|
|
22
|
-
const resourceGroupName = process.env["KUBERNETESCONFIGURATION_RESOURCE_GROUP"] || "rg1";
|
|
23
|
-
const clusterRp = "Microsoft.Kubernetes";
|
|
24
|
-
const clusterResourceName = "connectedClusters";
|
|
25
|
-
const clusterName = "clusterName1";
|
|
26
|
-
const fluxConfigurationName = "srs-fluxconfig";
|
|
27
|
-
const credential = new DefaultAzureCredential();
|
|
28
|
-
const client = new SourceControlConfigurationClient(credential, subscriptionId);
|
|
29
|
-
const result = yield client.fluxConfigurations.get(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName);
|
|
30
|
-
console.log(result);
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
function main() {
|
|
34
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
yield getFluxConfiguration();
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
main().catch(console.error);
|
|
39
|
-
//# sourceMappingURL=fluxConfigurationsGetSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fluxConfigurationsGetSample.js","sourceRoot":"","sources":["../../samples-dev/fluxConfigurationsGetSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,oBAAoB;;QACjC,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,IAAI,QAAQ,CAAC;QAC1F,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,IAAI,KAAK,CAAC;QACzF,MAAM,SAAS,GAAG,sBAAsB,CAAC;QACzC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;QAChD,MAAM,WAAW,GAAG,cAAc,CAAC;QACnC,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;QAC/C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,gCAAgC,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAChF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,GAAG,CAChD,iBAAiB,EACjB,SAAS,EACT,mBAAmB,EACnB,WAAW,EACX,qBAAqB,CACtB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,oBAAoB,EAAE,CAAC;IAC/B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|