@azure/arm-datadog 3.1.0-alpha.20250114.1 → 3.1.0-alpha.20250116.2
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/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-esm/src → dist/browser}/microsoftDatadogClient.d.ts +2 -2
- package/dist/browser/microsoftDatadogClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/microsoftDatadogClient.js +15 -18
- package/dist/browser/microsoftDatadogClient.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/creationSupported.d.ts +3 -3
- package/dist/browser/operations/creationSupported.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/creationSupported.js +2 -2
- package/dist/browser/operations/creationSupported.js.map +1 -0
- package/dist/browser/operations/index.d.ts +8 -0
- package/dist/browser/operations/index.d.ts.map +1 -0
- package/dist/browser/operations/index.js +15 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/marketplaceAgreements.d.ts +3 -3
- package/dist/browser/operations/marketplaceAgreements.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/marketplaceAgreements.js +3 -3
- package/dist/browser/operations/marketplaceAgreements.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/monitoredSubscriptions.d.ts +3 -3
- package/dist/browser/operations/monitoredSubscriptions.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/monitoredSubscriptions.js +112 -124
- package/dist/browser/operations/monitoredSubscriptions.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/monitors.d.ts +3 -3
- package/dist/browser/operations/monitors.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/monitors.js +114 -126
- package/dist/browser/operations/monitors.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/singleSignOnConfigurations.d.ts +3 -3
- package/dist/browser/operations/singleSignOnConfigurations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/singleSignOnConfigurations.js +42 -46
- package/dist/browser/operations/singleSignOnConfigurations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/tagRules.d.ts +3 -3
- package/dist/browser/operations/tagRules.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/tagRules.js +3 -3
- package/dist/browser/operations/tagRules.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/creationSupported.d.ts +1 -1
- package/dist/browser/operationsInterfaces/creationSupported.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/creationSupported.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +8 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/index.js +15 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/marketplaceAgreements.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/marketplaceAgreements.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/marketplaceAgreements.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/monitoredSubscriptions.d.ts +1 -1
- package/dist/browser/operationsInterfaces/monitoredSubscriptions.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/monitoredSubscriptions.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/monitors.d.ts +1 -1
- package/dist/browser/operationsInterfaces/monitors.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/monitors.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/singleSignOnConfigurations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/singleSignOnConfigurations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/singleSignOnConfigurations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/tagRules.d.ts +1 -1
- package/dist/browser/operationsInterfaces/tagRules.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/tagRules.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.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 +24 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/dist/commonjs/microsoftDatadogClient.d.ts +26 -0
- package/dist/commonjs/microsoftDatadogClient.d.ts.map +1 -0
- package/dist/commonjs/microsoftDatadogClient.js +108 -0
- package/dist/commonjs/microsoftDatadogClient.js.map +1 -0
- package/{types/arm-datadog.d.ts → dist/commonjs/models/index.d.ts} +977 -1437
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +127 -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 +1479 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +20 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +162 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/creationSupported.d.ts +34 -0
- package/dist/commonjs/operations/creationSupported.d.ts.map +1 -0
- package/dist/commonjs/operations/creationSupported.js +126 -0
- package/dist/commonjs/operations/creationSupported.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +8 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +18 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/marketplaceAgreements.d.ts +37 -0
- package/dist/commonjs/operations/marketplaceAgreements.d.ts.map +1 -0
- package/dist/commonjs/operations/marketplaceAgreements.js +166 -0
- package/dist/commonjs/operations/marketplaceAgreements.js.map +1 -0
- package/dist/commonjs/operations/monitoredSubscriptions.d.ts +87 -0
- package/dist/commonjs/operations/monitoredSubscriptions.d.ts.map +1 -0
- package/dist/commonjs/operations/monitoredSubscriptions.js +391 -0
- package/dist/commonjs/operations/monitoredSubscriptions.js.map +1 -0
- package/dist/commonjs/operations/monitors.d.ts +220 -0
- package/dist/commonjs/operations/monitors.d.ts.map +1 -0
- package/dist/commonjs/operations/monitors.js +1118 -0
- package/dist/commonjs/operations/monitors.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/singleSignOnConfigurations.d.ts +63 -0
- package/dist/commonjs/operations/singleSignOnConfigurations.d.ts.map +1 -0
- package/dist/commonjs/operations/singleSignOnConfigurations.js +275 -0
- package/dist/commonjs/operations/singleSignOnConfigurations.js.map +1 -0
- package/dist/commonjs/operations/tagRules.d.ts +54 -0
- package/dist/commonjs/operations/tagRules.d.ts.map +1 -0
- package/dist/commonjs/operations/tagRules.js +220 -0
- package/dist/commonjs/operations/tagRules.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/creationSupported.d.ts +18 -0
- package/dist/commonjs/operationsInterfaces/creationSupported.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/creationSupported.js +10 -0
- package/dist/commonjs/operationsInterfaces/creationSupported.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +8 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +18 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/marketplaceAgreements.d.ts +16 -0
- package/dist/commonjs/operationsInterfaces/marketplaceAgreements.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/marketplaceAgreements.js +10 -0
- package/dist/commonjs/operationsInterfaces/marketplaceAgreements.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/monitoredSubscriptions.d.ts +70 -0
- package/dist/commonjs/operationsInterfaces/monitoredSubscriptions.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/monitoredSubscriptions.js +10 -0
- package/dist/commonjs/operationsInterfaces/monitoredSubscriptions.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/monitors.d.ts +116 -0
- package/dist/commonjs/operationsInterfaces/monitors.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/monitors.js +10 -0
- package/dist/commonjs/operationsInterfaces/monitors.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/singleSignOnConfigurations.d.ts +38 -0
- package/dist/commonjs/operationsInterfaces/singleSignOnConfigurations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/singleSignOnConfigurations.js +10 -0
- package/dist/commonjs/operationsInterfaces/singleSignOnConfigurations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/tagRules.d.ts +29 -0
- package/dist/commonjs/operationsInterfaces/tagRules.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/tagRules.js +10 -0
- package/dist/commonjs/operationsInterfaces/tagRules.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/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 +21 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/microsoftDatadogClient.d.ts +26 -0
- package/dist/esm/microsoftDatadogClient.d.ts.map +1 -0
- package/dist/esm/microsoftDatadogClient.js +103 -0
- package/dist/esm/microsoftDatadogClient.js.map +1 -0
- package/dist/esm/models/index.d.ts +977 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +124 -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 +1476 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +20 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +159 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/creationSupported.d.ts +34 -0
- package/dist/esm/operations/creationSupported.d.ts.map +1 -0
- package/dist/esm/operations/creationSupported.js +122 -0
- package/dist/esm/operations/creationSupported.js.map +1 -0
- package/dist/esm/operations/index.d.ts +8 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +15 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/marketplaceAgreements.d.ts +37 -0
- package/dist/esm/operations/marketplaceAgreements.d.ts.map +1 -0
- package/dist/esm/operations/marketplaceAgreements.js +162 -0
- package/dist/esm/operations/marketplaceAgreements.js.map +1 -0
- package/dist/esm/operations/monitoredSubscriptions.d.ts +87 -0
- package/dist/esm/operations/monitoredSubscriptions.d.ts.map +1 -0
- package/dist/esm/operations/monitoredSubscriptions.js +387 -0
- package/dist/esm/operations/monitoredSubscriptions.js.map +1 -0
- package/dist/esm/operations/monitors.d.ts +220 -0
- package/dist/esm/operations/monitors.d.ts.map +1 -0
- package/dist/esm/operations/monitors.js +1114 -0
- package/dist/esm/operations/monitors.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/singleSignOnConfigurations.d.ts +63 -0
- package/dist/esm/operations/singleSignOnConfigurations.d.ts.map +1 -0
- package/dist/esm/operations/singleSignOnConfigurations.js +271 -0
- package/dist/esm/operations/singleSignOnConfigurations.js.map +1 -0
- package/dist/esm/operations/tagRules.d.ts +54 -0
- package/dist/esm/operations/tagRules.d.ts.map +1 -0
- package/dist/esm/operations/tagRules.js +216 -0
- package/dist/esm/operations/tagRules.js.map +1 -0
- package/dist/esm/operationsInterfaces/creationSupported.d.ts +18 -0
- package/dist/esm/operationsInterfaces/creationSupported.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/creationSupported.js +9 -0
- package/dist/esm/operationsInterfaces/creationSupported.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +8 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +15 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/marketplaceAgreements.d.ts +16 -0
- package/dist/esm/operationsInterfaces/marketplaceAgreements.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/marketplaceAgreements.js +9 -0
- package/dist/esm/operationsInterfaces/marketplaceAgreements.js.map +1 -0
- package/dist/esm/operationsInterfaces/monitoredSubscriptions.d.ts +70 -0
- package/dist/esm/operationsInterfaces/monitoredSubscriptions.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/monitoredSubscriptions.js +9 -0
- package/dist/esm/operationsInterfaces/monitoredSubscriptions.js.map +1 -0
- package/dist/esm/operationsInterfaces/monitors.d.ts +116 -0
- package/dist/esm/operationsInterfaces/monitors.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/monitors.js +9 -0
- package/dist/esm/operationsInterfaces/monitors.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/singleSignOnConfigurations.d.ts +38 -0
- package/dist/esm/operationsInterfaces/singleSignOnConfigurations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/singleSignOnConfigurations.js +9 -0
- package/dist/esm/operationsInterfaces/singleSignOnConfigurations.js.map +1 -0
- package/dist/esm/operationsInterfaces/tagRules.d.ts +29 -0
- package/dist/esm/operationsInterfaces/tagRules.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/tagRules.js +9 -0
- package/dist/esm/operationsInterfaces/tagRules.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/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 +21 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/microsoftDatadogClient.d.ts +26 -0
- package/dist/react-native/microsoftDatadogClient.d.ts.map +1 -0
- package/dist/react-native/microsoftDatadogClient.js +103 -0
- package/dist/react-native/microsoftDatadogClient.js.map +1 -0
- package/dist/react-native/models/index.d.ts +977 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +124 -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 +1476 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +20 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +159 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/creationSupported.d.ts +34 -0
- package/dist/react-native/operations/creationSupported.d.ts.map +1 -0
- package/dist/react-native/operations/creationSupported.js +122 -0
- package/dist/react-native/operations/creationSupported.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +8 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +15 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/marketplaceAgreements.d.ts +37 -0
- package/dist/react-native/operations/marketplaceAgreements.d.ts.map +1 -0
- package/dist/react-native/operations/marketplaceAgreements.js +162 -0
- package/dist/react-native/operations/marketplaceAgreements.js.map +1 -0
- package/dist/react-native/operations/monitoredSubscriptions.d.ts +87 -0
- package/dist/react-native/operations/monitoredSubscriptions.d.ts.map +1 -0
- package/dist/react-native/operations/monitoredSubscriptions.js +387 -0
- package/dist/react-native/operations/monitoredSubscriptions.js.map +1 -0
- package/dist/react-native/operations/monitors.d.ts +220 -0
- package/dist/react-native/operations/monitors.d.ts.map +1 -0
- package/dist/react-native/operations/monitors.js +1114 -0
- package/dist/react-native/operations/monitors.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/singleSignOnConfigurations.d.ts +63 -0
- package/dist/react-native/operations/singleSignOnConfigurations.d.ts.map +1 -0
- package/dist/react-native/operations/singleSignOnConfigurations.js +271 -0
- package/dist/react-native/operations/singleSignOnConfigurations.js.map +1 -0
- package/dist/react-native/operations/tagRules.d.ts +54 -0
- package/dist/react-native/operations/tagRules.d.ts.map +1 -0
- package/dist/react-native/operations/tagRules.js +216 -0
- package/dist/react-native/operations/tagRules.js.map +1 -0
- package/dist/react-native/operationsInterfaces/creationSupported.d.ts +18 -0
- package/dist/react-native/operationsInterfaces/creationSupported.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/creationSupported.js +9 -0
- package/dist/react-native/operationsInterfaces/creationSupported.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +8 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +15 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/marketplaceAgreements.d.ts +16 -0
- package/dist/react-native/operationsInterfaces/marketplaceAgreements.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/marketplaceAgreements.js +9 -0
- package/dist/react-native/operationsInterfaces/marketplaceAgreements.js.map +1 -0
- package/dist/react-native/operationsInterfaces/monitoredSubscriptions.d.ts +70 -0
- package/dist/react-native/operationsInterfaces/monitoredSubscriptions.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/monitoredSubscriptions.js +9 -0
- package/dist/react-native/operationsInterfaces/monitoredSubscriptions.js.map +1 -0
- package/dist/react-native/operationsInterfaces/monitors.d.ts +116 -0
- package/dist/react-native/operationsInterfaces/monitors.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/monitors.js +9 -0
- package/dist/react-native/operationsInterfaces/monitors.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/singleSignOnConfigurations.d.ts +38 -0
- package/dist/react-native/operationsInterfaces/singleSignOnConfigurations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/singleSignOnConfigurations.js +9 -0
- package/dist/react-native/operationsInterfaces/singleSignOnConfigurations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/tagRules.d.ts +29 -0
- package/dist/react-native/operationsInterfaces/tagRules.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/tagRules.js +9 -0
- package/dist/react-native/operationsInterfaces/tagRules.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/package.json +58 -28
- package/dist/index.js +0 -4389
- 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/creationSupportedGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/creationSupportedGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/creationSupportedGetSample.js +0 -38
- package/dist-esm/samples-dev/creationSupportedGetSample.js.map +0 -1
- package/dist-esm/samples-dev/creationSupportedListSample.d.ts +0 -2
- package/dist-esm/samples-dev/creationSupportedListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/creationSupportedListSample.js +0 -54
- package/dist-esm/samples-dev/creationSupportedListSample.js.map +0 -1
- package/dist-esm/samples-dev/marketplaceAgreementsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/marketplaceAgreementsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/marketplaceAgreementsCreateOrUpdateSample.js +0 -39
- package/dist-esm/samples-dev/marketplaceAgreementsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/marketplaceAgreementsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/marketplaceAgreementsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/marketplaceAgreementsListSample.js +0 -53
- package/dist-esm/samples-dev/marketplaceAgreementsListSample.js.map +0 -1
- package/dist-esm/samples-dev/monitoredSubscriptionsCreateorUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/monitoredSubscriptionsCreateorUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/monitoredSubscriptionsCreateorUpdateSample.js +0 -82
- package/dist-esm/samples-dev/monitoredSubscriptionsCreateorUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/monitoredSubscriptionsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/monitoredSubscriptionsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/monitoredSubscriptionsDeleteSample.js +0 -40
- package/dist-esm/samples-dev/monitoredSubscriptionsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/monitoredSubscriptionsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/monitoredSubscriptionsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/monitoredSubscriptionsGetSample.js +0 -40
- package/dist-esm/samples-dev/monitoredSubscriptionsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/monitoredSubscriptionsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/monitoredSubscriptionsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/monitoredSubscriptionsListSample.js +0 -55
- package/dist-esm/samples-dev/monitoredSubscriptionsListSample.js.map +0 -1
- package/dist-esm/samples-dev/monitoredSubscriptionsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/monitoredSubscriptionsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/monitoredSubscriptionsUpdateSample.js +0 -82
- package/dist-esm/samples-dev/monitoredSubscriptionsUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/monitorsCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/monitorsCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/monitorsCreateSample.js +0 -62
- package/dist-esm/samples-dev/monitorsCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/monitorsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/monitorsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/monitorsDeleteSample.js +0 -39
- package/dist-esm/samples-dev/monitorsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/monitorsGetDefaultKeySample.d.ts +0 -2
- package/dist-esm/samples-dev/monitorsGetDefaultKeySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/monitorsGetDefaultKeySample.js +0 -39
- package/dist-esm/samples-dev/monitorsGetDefaultKeySample.js.map +0 -1
- package/dist-esm/samples-dev/monitorsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/monitorsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/monitorsGetSample.js +0 -39
- package/dist-esm/samples-dev/monitorsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/monitorsListApiKeysSample.d.ts +0 -2
- package/dist-esm/samples-dev/monitorsListApiKeysSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/monitorsListApiKeysSample.js +0 -55
- package/dist-esm/samples-dev/monitorsListApiKeysSample.js.map +0 -1
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js +0 -54
- package/dist-esm/samples-dev/monitorsListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/monitorsListHostsSample.d.ts +0 -2
- package/dist-esm/samples-dev/monitorsListHostsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/monitorsListHostsSample.js +0 -55
- package/dist-esm/samples-dev/monitorsListHostsSample.js.map +0 -1
- package/dist-esm/samples-dev/monitorsListLinkedResourcesSample.d.ts +0 -2
- package/dist-esm/samples-dev/monitorsListLinkedResourcesSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/monitorsListLinkedResourcesSample.js +0 -55
- package/dist-esm/samples-dev/monitorsListLinkedResourcesSample.js.map +0 -1
- package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.d.ts +0 -2
- package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.js +0 -55
- package/dist-esm/samples-dev/monitorsListMonitoredResourcesSample.js.map +0 -1
- package/dist-esm/samples-dev/monitorsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/monitorsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/monitorsListSample.js +0 -53
- package/dist-esm/samples-dev/monitorsListSample.js.map +0 -1
- package/dist-esm/samples-dev/monitorsRefreshSetPasswordLinkSample.d.ts +0 -2
- package/dist-esm/samples-dev/monitorsRefreshSetPasswordLinkSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/monitorsRefreshSetPasswordLinkSample.js +0 -39
- package/dist-esm/samples-dev/monitorsRefreshSetPasswordLinkSample.js.map +0 -1
- package/dist-esm/samples-dev/monitorsSetDefaultKeySample.d.ts +0 -2
- package/dist-esm/samples-dev/monitorsSetDefaultKeySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/monitorsSetDefaultKeySample.js +0 -41
- package/dist-esm/samples-dev/monitorsSetDefaultKeySample.js.map +0 -1
- package/dist-esm/samples-dev/monitorsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/monitorsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/monitorsUpdateSample.js +0 -44
- package/dist-esm/samples-dev/monitorsUpdateSample.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 -53
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/singleSignOnConfigurationsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/singleSignOnConfigurationsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/singleSignOnConfigurationsCreateOrUpdateSample.js +0 -49
- package/dist-esm/samples-dev/singleSignOnConfigurationsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/singleSignOnConfigurationsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/singleSignOnConfigurationsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/singleSignOnConfigurationsGetSample.js +0 -40
- package/dist-esm/samples-dev/singleSignOnConfigurationsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/singleSignOnConfigurationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/singleSignOnConfigurationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/singleSignOnConfigurationsListSample.js +0 -55
- package/dist-esm/samples-dev/singleSignOnConfigurationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js +0 -56
- package/dist-esm/samples-dev/tagRulesCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/tagRulesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/tagRulesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/tagRulesGetSample.js +0 -40
- package/dist-esm/samples-dev/tagRulesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/tagRulesListSample.d.ts +0 -2
- package/dist-esm/samples-dev/tagRulesListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/tagRulesListSample.js +0 -55
- package/dist-esm/samples-dev/tagRulesListSample.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/microsoftDatadogClient.d.ts.map +0 -1
- package/dist-esm/src/microsoftDatadogClient.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/creationSupported.d.ts.map +0 -1
- package/dist-esm/src/operations/creationSupported.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -8
- package/dist-esm/src/operations/index.d.ts.map +0 -1
- package/dist-esm/src/operations/index.js +0 -15
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/marketplaceAgreements.d.ts.map +0 -1
- package/dist-esm/src/operations/marketplaceAgreements.js.map +0 -1
- package/dist-esm/src/operations/monitoredSubscriptions.d.ts.map +0 -1
- package/dist-esm/src/operations/monitoredSubscriptions.js.map +0 -1
- package/dist-esm/src/operations/monitors.d.ts.map +0 -1
- package/dist-esm/src/operations/monitors.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/singleSignOnConfigurations.d.ts.map +0 -1
- package/dist-esm/src/operations/singleSignOnConfigurations.js.map +0 -1
- package/dist-esm/src/operations/tagRules.d.ts.map +0 -1
- package/dist-esm/src/operations/tagRules.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/creationSupported.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/creationSupported.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -8
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -15
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/marketplaceAgreements.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/monitoredSubscriptions.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/monitoredSubscriptions.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/monitors.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/monitors.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/singleSignOnConfigurations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/singleSignOnConfigurations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/tagRules.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/tagRules.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/datadog_operations_test.spec.d.ts +0 -4
- package/dist-esm/test/datadog_operations_test.spec.d.ts.map +0 -1
- package/dist-esm/test/datadog_operations_test.spec.js +0 -77
- package/dist-esm/test/datadog_operations_test.spec.js.map +0 -1
- package/src/lroImpl.ts +0 -42
- package/src/microsoftDatadogClient.ts +0 -168
- package/src/models/index.ts +0 -1134
- package/src/models/mappers.ts +0 -1526
- package/src/models/parameters.ts +0 -190
- package/src/operations/creationSupported.ts +0 -150
- package/src/operations/index.ts +0 -15
- package/src/operations/marketplaceAgreements.ts +0 -188
- package/src/operations/monitoredSubscriptions.ts +0 -557
- package/src/operations/monitors.ts +0 -1489
- package/src/operations/operations.ts +0 -149
- package/src/operations/singleSignOnConfigurations.ts +0 -377
- package/src/operations/tagRules.ts +0 -284
- package/src/operationsInterfaces/creationSupported.ts +0 -38
- package/src/operationsInterfaces/index.ts +0 -15
- package/src/operationsInterfaces/marketplaceAgreements.ts +0 -34
- package/src/operationsInterfaces/monitoredSubscriptions.ts +0 -138
- package/src/operationsInterfaces/monitors.ts +0 -220
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/singleSignOnConfigurations.ts +0 -78
- package/src/operationsInterfaces/tagRules.ts +0 -59
- package/src/pagingHelper.ts +0 -39
- 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/creationSupported.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/marketplaceAgreements.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/monitoredSubscriptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/monitors.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/singleSignOnConfigurations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/tagRules.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
package/dist/index.js
DELETED
@@ -1,4389 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
var tslib = require('tslib');
|
6
|
-
var coreClient = require('@azure/core-client');
|
7
|
-
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
8
|
-
var coreLro = require('@azure/core-lro');
|
9
|
-
|
10
|
-
function _interopNamespaceDefault(e) {
|
11
|
-
var n = Object.create(null);
|
12
|
-
if (e) {
|
13
|
-
Object.keys(e).forEach(function (k) {
|
14
|
-
if (k !== 'default') {
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
17
|
-
enumerable: true,
|
18
|
-
get: function () { return e[k]; }
|
19
|
-
});
|
20
|
-
}
|
21
|
-
});
|
22
|
-
}
|
23
|
-
n.default = e;
|
24
|
-
return Object.freeze(n);
|
25
|
-
}
|
26
|
-
|
27
|
-
var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
|
28
|
-
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
|
29
|
-
|
30
|
-
/*
|
31
|
-
* Copyright (c) Microsoft Corporation.
|
32
|
-
* Licensed under the MIT License.
|
33
|
-
*
|
34
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
35
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
36
|
-
*/
|
37
|
-
const pageMap = new WeakMap();
|
38
|
-
/**
|
39
|
-
* Given the last `.value` produced by the `byPage` iterator,
|
40
|
-
* returns a continuation token that can be used to begin paging from
|
41
|
-
* that point later.
|
42
|
-
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
43
|
-
* @returns The continuation token that can be passed into byPage() during future calls.
|
44
|
-
*/
|
45
|
-
function getContinuationToken(page) {
|
46
|
-
var _a;
|
47
|
-
if (typeof page !== "object" || page === null) {
|
48
|
-
return undefined;
|
49
|
-
}
|
50
|
-
return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
|
51
|
-
}
|
52
|
-
function setContinuationToken(page, continuationToken) {
|
53
|
-
var _a;
|
54
|
-
if (typeof page !== "object" || page === null || !continuationToken) {
|
55
|
-
return;
|
56
|
-
}
|
57
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
|
58
|
-
pageInfo.continuationToken = continuationToken;
|
59
|
-
pageMap.set(page, pageInfo);
|
60
|
-
}
|
61
|
-
|
62
|
-
/*
|
63
|
-
* Copyright (c) Microsoft Corporation.
|
64
|
-
* Licensed under the MIT License.
|
65
|
-
*
|
66
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
67
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
68
|
-
*/
|
69
|
-
/** Known values of {@link CreatedByType} that the service accepts. */
|
70
|
-
exports.KnownCreatedByType = void 0;
|
71
|
-
(function (KnownCreatedByType) {
|
72
|
-
/** User */
|
73
|
-
KnownCreatedByType["User"] = "User";
|
74
|
-
/** Application */
|
75
|
-
KnownCreatedByType["Application"] = "Application";
|
76
|
-
/** ManagedIdentity */
|
77
|
-
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
78
|
-
/** Key */
|
79
|
-
KnownCreatedByType["Key"] = "Key";
|
80
|
-
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
81
|
-
/** Known values of {@link ProvisioningState} that the service accepts. */
|
82
|
-
exports.KnownProvisioningState = void 0;
|
83
|
-
(function (KnownProvisioningState) {
|
84
|
-
/** Accepted */
|
85
|
-
KnownProvisioningState["Accepted"] = "Accepted";
|
86
|
-
/** Creating */
|
87
|
-
KnownProvisioningState["Creating"] = "Creating";
|
88
|
-
/** Updating */
|
89
|
-
KnownProvisioningState["Updating"] = "Updating";
|
90
|
-
/** Deleting */
|
91
|
-
KnownProvisioningState["Deleting"] = "Deleting";
|
92
|
-
/** Succeeded */
|
93
|
-
KnownProvisioningState["Succeeded"] = "Succeeded";
|
94
|
-
/** Failed */
|
95
|
-
KnownProvisioningState["Failed"] = "Failed";
|
96
|
-
/** Canceled */
|
97
|
-
KnownProvisioningState["Canceled"] = "Canceled";
|
98
|
-
/** Deleted */
|
99
|
-
KnownProvisioningState["Deleted"] = "Deleted";
|
100
|
-
/** NotSpecified */
|
101
|
-
KnownProvisioningState["NotSpecified"] = "NotSpecified";
|
102
|
-
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
103
|
-
/** Known values of {@link MonitoringStatus} that the service accepts. */
|
104
|
-
exports.KnownMonitoringStatus = void 0;
|
105
|
-
(function (KnownMonitoringStatus) {
|
106
|
-
/** Enabled */
|
107
|
-
KnownMonitoringStatus["Enabled"] = "Enabled";
|
108
|
-
/** Disabled */
|
109
|
-
KnownMonitoringStatus["Disabled"] = "Disabled";
|
110
|
-
})(exports.KnownMonitoringStatus || (exports.KnownMonitoringStatus = {}));
|
111
|
-
/** Known values of {@link MarketplaceSubscriptionStatus} that the service accepts. */
|
112
|
-
exports.KnownMarketplaceSubscriptionStatus = void 0;
|
113
|
-
(function (KnownMarketplaceSubscriptionStatus) {
|
114
|
-
/** Provisioning */
|
115
|
-
KnownMarketplaceSubscriptionStatus["Provisioning"] = "Provisioning";
|
116
|
-
/** Active */
|
117
|
-
KnownMarketplaceSubscriptionStatus["Active"] = "Active";
|
118
|
-
/** Suspended */
|
119
|
-
KnownMarketplaceSubscriptionStatus["Suspended"] = "Suspended";
|
120
|
-
/** Unsubscribed */
|
121
|
-
KnownMarketplaceSubscriptionStatus["Unsubscribed"] = "Unsubscribed";
|
122
|
-
})(exports.KnownMarketplaceSubscriptionStatus || (exports.KnownMarketplaceSubscriptionStatus = {}));
|
123
|
-
/** Known values of {@link LiftrResourceCategories} that the service accepts. */
|
124
|
-
exports.KnownLiftrResourceCategories = void 0;
|
125
|
-
(function (KnownLiftrResourceCategories) {
|
126
|
-
/** Unknown */
|
127
|
-
KnownLiftrResourceCategories["Unknown"] = "Unknown";
|
128
|
-
/** MonitorLogs */
|
129
|
-
KnownLiftrResourceCategories["MonitorLogs"] = "MonitorLogs";
|
130
|
-
})(exports.KnownLiftrResourceCategories || (exports.KnownLiftrResourceCategories = {}));
|
131
|
-
/** Known values of {@link ManagedIdentityTypes} that the service accepts. */
|
132
|
-
exports.KnownManagedIdentityTypes = void 0;
|
133
|
-
(function (KnownManagedIdentityTypes) {
|
134
|
-
/** SystemAssigned */
|
135
|
-
KnownManagedIdentityTypes["SystemAssigned"] = "SystemAssigned";
|
136
|
-
/** UserAssigned */
|
137
|
-
KnownManagedIdentityTypes["UserAssigned"] = "UserAssigned";
|
138
|
-
})(exports.KnownManagedIdentityTypes || (exports.KnownManagedIdentityTypes = {}));
|
139
|
-
/** Known values of {@link TagAction} that the service accepts. */
|
140
|
-
exports.KnownTagAction = void 0;
|
141
|
-
(function (KnownTagAction) {
|
142
|
-
/** Include */
|
143
|
-
KnownTagAction["Include"] = "Include";
|
144
|
-
/** Exclude */
|
145
|
-
KnownTagAction["Exclude"] = "Exclude";
|
146
|
-
})(exports.KnownTagAction || (exports.KnownTagAction = {}));
|
147
|
-
/** Known values of {@link SingleSignOnStates} that the service accepts. */
|
148
|
-
exports.KnownSingleSignOnStates = void 0;
|
149
|
-
(function (KnownSingleSignOnStates) {
|
150
|
-
/** Initial */
|
151
|
-
KnownSingleSignOnStates["Initial"] = "Initial";
|
152
|
-
/** Enable */
|
153
|
-
KnownSingleSignOnStates["Enable"] = "Enable";
|
154
|
-
/** Disable */
|
155
|
-
KnownSingleSignOnStates["Disable"] = "Disable";
|
156
|
-
/** Existing */
|
157
|
-
KnownSingleSignOnStates["Existing"] = "Existing";
|
158
|
-
})(exports.KnownSingleSignOnStates || (exports.KnownSingleSignOnStates = {}));
|
159
|
-
/** Known values of {@link Operation} that the service accepts. */
|
160
|
-
exports.KnownOperation = void 0;
|
161
|
-
(function (KnownOperation) {
|
162
|
-
/** AddBegin */
|
163
|
-
KnownOperation["AddBegin"] = "AddBegin";
|
164
|
-
/** AddComplete */
|
165
|
-
KnownOperation["AddComplete"] = "AddComplete";
|
166
|
-
/** DeleteBegin */
|
167
|
-
KnownOperation["DeleteBegin"] = "DeleteBegin";
|
168
|
-
/** DeleteComplete */
|
169
|
-
KnownOperation["DeleteComplete"] = "DeleteComplete";
|
170
|
-
/** Active */
|
171
|
-
KnownOperation["Active"] = "Active";
|
172
|
-
})(exports.KnownOperation || (exports.KnownOperation = {}));
|
173
|
-
/** Known values of {@link Status} that the service accepts. */
|
174
|
-
exports.KnownStatus = void 0;
|
175
|
-
(function (KnownStatus) {
|
176
|
-
/** InProgress */
|
177
|
-
KnownStatus["InProgress"] = "InProgress";
|
178
|
-
/** Active */
|
179
|
-
KnownStatus["Active"] = "Active";
|
180
|
-
/** Failed */
|
181
|
-
KnownStatus["Failed"] = "Failed";
|
182
|
-
/** Deleting */
|
183
|
-
KnownStatus["Deleting"] = "Deleting";
|
184
|
-
})(exports.KnownStatus || (exports.KnownStatus = {}));
|
185
|
-
|
186
|
-
/*
|
187
|
-
* Copyright (c) Microsoft Corporation.
|
188
|
-
* Licensed under the MIT License.
|
189
|
-
*
|
190
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
191
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
192
|
-
*/
|
193
|
-
const DatadogAgreementResourceListResponse = {
|
194
|
-
type: {
|
195
|
-
name: "Composite",
|
196
|
-
className: "DatadogAgreementResourceListResponse",
|
197
|
-
modelProperties: {
|
198
|
-
value: {
|
199
|
-
serializedName: "value",
|
200
|
-
type: {
|
201
|
-
name: "Sequence",
|
202
|
-
element: {
|
203
|
-
type: {
|
204
|
-
name: "Composite",
|
205
|
-
className: "DatadogAgreementResource"
|
206
|
-
}
|
207
|
-
}
|
208
|
-
}
|
209
|
-
},
|
210
|
-
nextLink: {
|
211
|
-
serializedName: "nextLink",
|
212
|
-
type: {
|
213
|
-
name: "String"
|
214
|
-
}
|
215
|
-
}
|
216
|
-
}
|
217
|
-
}
|
218
|
-
};
|
219
|
-
const DatadogAgreementResource = {
|
220
|
-
type: {
|
221
|
-
name: "Composite",
|
222
|
-
className: "DatadogAgreementResource",
|
223
|
-
modelProperties: {
|
224
|
-
id: {
|
225
|
-
serializedName: "id",
|
226
|
-
readOnly: true,
|
227
|
-
type: {
|
228
|
-
name: "String"
|
229
|
-
}
|
230
|
-
},
|
231
|
-
name: {
|
232
|
-
serializedName: "name",
|
233
|
-
readOnly: true,
|
234
|
-
type: {
|
235
|
-
name: "String"
|
236
|
-
}
|
237
|
-
},
|
238
|
-
type: {
|
239
|
-
serializedName: "type",
|
240
|
-
readOnly: true,
|
241
|
-
type: {
|
242
|
-
name: "String"
|
243
|
-
}
|
244
|
-
},
|
245
|
-
properties: {
|
246
|
-
serializedName: "properties",
|
247
|
-
type: {
|
248
|
-
name: "Composite",
|
249
|
-
className: "DatadogAgreementProperties"
|
250
|
-
}
|
251
|
-
},
|
252
|
-
systemData: {
|
253
|
-
serializedName: "systemData",
|
254
|
-
type: {
|
255
|
-
name: "Composite",
|
256
|
-
className: "SystemData"
|
257
|
-
}
|
258
|
-
}
|
259
|
-
}
|
260
|
-
}
|
261
|
-
};
|
262
|
-
const DatadogAgreementProperties = {
|
263
|
-
type: {
|
264
|
-
name: "Composite",
|
265
|
-
className: "DatadogAgreementProperties",
|
266
|
-
modelProperties: {
|
267
|
-
publisher: {
|
268
|
-
serializedName: "publisher",
|
269
|
-
type: {
|
270
|
-
name: "String"
|
271
|
-
}
|
272
|
-
},
|
273
|
-
product: {
|
274
|
-
serializedName: "product",
|
275
|
-
type: {
|
276
|
-
name: "String"
|
277
|
-
}
|
278
|
-
},
|
279
|
-
plan: {
|
280
|
-
serializedName: "plan",
|
281
|
-
type: {
|
282
|
-
name: "String"
|
283
|
-
}
|
284
|
-
},
|
285
|
-
licenseTextLink: {
|
286
|
-
serializedName: "licenseTextLink",
|
287
|
-
type: {
|
288
|
-
name: "String"
|
289
|
-
}
|
290
|
-
},
|
291
|
-
privacyPolicyLink: {
|
292
|
-
serializedName: "privacyPolicyLink",
|
293
|
-
type: {
|
294
|
-
name: "String"
|
295
|
-
}
|
296
|
-
},
|
297
|
-
retrieveDatetime: {
|
298
|
-
serializedName: "retrieveDatetime",
|
299
|
-
type: {
|
300
|
-
name: "DateTime"
|
301
|
-
}
|
302
|
-
},
|
303
|
-
signature: {
|
304
|
-
serializedName: "signature",
|
305
|
-
type: {
|
306
|
-
name: "String"
|
307
|
-
}
|
308
|
-
},
|
309
|
-
accepted: {
|
310
|
-
serializedName: "accepted",
|
311
|
-
type: {
|
312
|
-
name: "Boolean"
|
313
|
-
}
|
314
|
-
}
|
315
|
-
}
|
316
|
-
}
|
317
|
-
};
|
318
|
-
const SystemData = {
|
319
|
-
type: {
|
320
|
-
name: "Composite",
|
321
|
-
className: "SystemData",
|
322
|
-
modelProperties: {
|
323
|
-
createdBy: {
|
324
|
-
serializedName: "createdBy",
|
325
|
-
type: {
|
326
|
-
name: "String"
|
327
|
-
}
|
328
|
-
},
|
329
|
-
createdByType: {
|
330
|
-
serializedName: "createdByType",
|
331
|
-
type: {
|
332
|
-
name: "String"
|
333
|
-
}
|
334
|
-
},
|
335
|
-
createdAt: {
|
336
|
-
serializedName: "createdAt",
|
337
|
-
type: {
|
338
|
-
name: "DateTime"
|
339
|
-
}
|
340
|
-
},
|
341
|
-
lastModifiedBy: {
|
342
|
-
serializedName: "lastModifiedBy",
|
343
|
-
type: {
|
344
|
-
name: "String"
|
345
|
-
}
|
346
|
-
},
|
347
|
-
lastModifiedByType: {
|
348
|
-
serializedName: "lastModifiedByType",
|
349
|
-
type: {
|
350
|
-
name: "String"
|
351
|
-
}
|
352
|
-
},
|
353
|
-
lastModifiedAt: {
|
354
|
-
serializedName: "lastModifiedAt",
|
355
|
-
type: {
|
356
|
-
name: "DateTime"
|
357
|
-
}
|
358
|
-
}
|
359
|
-
}
|
360
|
-
}
|
361
|
-
};
|
362
|
-
const ErrorResponse = {
|
363
|
-
type: {
|
364
|
-
name: "Composite",
|
365
|
-
className: "ErrorResponse",
|
366
|
-
modelProperties: {
|
367
|
-
error: {
|
368
|
-
serializedName: "error",
|
369
|
-
type: {
|
370
|
-
name: "Composite",
|
371
|
-
className: "ErrorDetail"
|
372
|
-
}
|
373
|
-
}
|
374
|
-
}
|
375
|
-
}
|
376
|
-
};
|
377
|
-
const ErrorDetail = {
|
378
|
-
type: {
|
379
|
-
name: "Composite",
|
380
|
-
className: "ErrorDetail",
|
381
|
-
modelProperties: {
|
382
|
-
code: {
|
383
|
-
serializedName: "code",
|
384
|
-
readOnly: true,
|
385
|
-
type: {
|
386
|
-
name: "String"
|
387
|
-
}
|
388
|
-
},
|
389
|
-
message: {
|
390
|
-
serializedName: "message",
|
391
|
-
readOnly: true,
|
392
|
-
type: {
|
393
|
-
name: "String"
|
394
|
-
}
|
395
|
-
},
|
396
|
-
target: {
|
397
|
-
serializedName: "target",
|
398
|
-
readOnly: true,
|
399
|
-
type: {
|
400
|
-
name: "String"
|
401
|
-
}
|
402
|
-
},
|
403
|
-
details: {
|
404
|
-
serializedName: "details",
|
405
|
-
readOnly: true,
|
406
|
-
type: {
|
407
|
-
name: "Sequence",
|
408
|
-
element: {
|
409
|
-
type: {
|
410
|
-
name: "Composite",
|
411
|
-
className: "ErrorDetail"
|
412
|
-
}
|
413
|
-
}
|
414
|
-
}
|
415
|
-
},
|
416
|
-
additionalInfo: {
|
417
|
-
serializedName: "additionalInfo",
|
418
|
-
readOnly: true,
|
419
|
-
type: {
|
420
|
-
name: "Sequence",
|
421
|
-
element: {
|
422
|
-
type: {
|
423
|
-
name: "Composite",
|
424
|
-
className: "ErrorAdditionalInfo"
|
425
|
-
}
|
426
|
-
}
|
427
|
-
}
|
428
|
-
}
|
429
|
-
}
|
430
|
-
}
|
431
|
-
};
|
432
|
-
const ErrorAdditionalInfo = {
|
433
|
-
type: {
|
434
|
-
name: "Composite",
|
435
|
-
className: "ErrorAdditionalInfo",
|
436
|
-
modelProperties: {
|
437
|
-
type: {
|
438
|
-
serializedName: "type",
|
439
|
-
readOnly: true,
|
440
|
-
type: {
|
441
|
-
name: "String"
|
442
|
-
}
|
443
|
-
},
|
444
|
-
info: {
|
445
|
-
serializedName: "info",
|
446
|
-
readOnly: true,
|
447
|
-
type: {
|
448
|
-
name: "Dictionary",
|
449
|
-
value: { type: { name: "any" } }
|
450
|
-
}
|
451
|
-
}
|
452
|
-
}
|
453
|
-
}
|
454
|
-
};
|
455
|
-
const CreateResourceSupportedResponseList = {
|
456
|
-
type: {
|
457
|
-
name: "Composite",
|
458
|
-
className: "CreateResourceSupportedResponseList",
|
459
|
-
modelProperties: {
|
460
|
-
value: {
|
461
|
-
serializedName: "value",
|
462
|
-
type: {
|
463
|
-
name: "Sequence",
|
464
|
-
element: {
|
465
|
-
type: {
|
466
|
-
name: "Composite",
|
467
|
-
className: "CreateResourceSupportedResponse"
|
468
|
-
}
|
469
|
-
}
|
470
|
-
}
|
471
|
-
}
|
472
|
-
}
|
473
|
-
}
|
474
|
-
};
|
475
|
-
const CreateResourceSupportedResponse = {
|
476
|
-
type: {
|
477
|
-
name: "Composite",
|
478
|
-
className: "CreateResourceSupportedResponse",
|
479
|
-
modelProperties: {
|
480
|
-
properties: {
|
481
|
-
serializedName: "properties",
|
482
|
-
type: {
|
483
|
-
name: "Composite",
|
484
|
-
className: "CreateResourceSupportedProperties"
|
485
|
-
}
|
486
|
-
}
|
487
|
-
}
|
488
|
-
}
|
489
|
-
};
|
490
|
-
const CreateResourceSupportedProperties = {
|
491
|
-
type: {
|
492
|
-
name: "Composite",
|
493
|
-
className: "CreateResourceSupportedProperties",
|
494
|
-
modelProperties: {
|
495
|
-
name: {
|
496
|
-
serializedName: "name",
|
497
|
-
readOnly: true,
|
498
|
-
type: {
|
499
|
-
name: "String"
|
500
|
-
}
|
501
|
-
},
|
502
|
-
creationSupported: {
|
503
|
-
serializedName: "creationSupported",
|
504
|
-
readOnly: true,
|
505
|
-
type: {
|
506
|
-
name: "Boolean"
|
507
|
-
}
|
508
|
-
}
|
509
|
-
}
|
510
|
-
}
|
511
|
-
};
|
512
|
-
const DatadogApiKeyListResponse = {
|
513
|
-
type: {
|
514
|
-
name: "Composite",
|
515
|
-
className: "DatadogApiKeyListResponse",
|
516
|
-
modelProperties: {
|
517
|
-
value: {
|
518
|
-
serializedName: "value",
|
519
|
-
type: {
|
520
|
-
name: "Sequence",
|
521
|
-
element: {
|
522
|
-
type: {
|
523
|
-
name: "Composite",
|
524
|
-
className: "DatadogApiKey"
|
525
|
-
}
|
526
|
-
}
|
527
|
-
}
|
528
|
-
},
|
529
|
-
nextLink: {
|
530
|
-
serializedName: "nextLink",
|
531
|
-
type: {
|
532
|
-
name: "String"
|
533
|
-
}
|
534
|
-
}
|
535
|
-
}
|
536
|
-
}
|
537
|
-
};
|
538
|
-
const DatadogApiKey = {
|
539
|
-
type: {
|
540
|
-
name: "Composite",
|
541
|
-
className: "DatadogApiKey",
|
542
|
-
modelProperties: {
|
543
|
-
createdBy: {
|
544
|
-
serializedName: "createdBy",
|
545
|
-
type: {
|
546
|
-
name: "String"
|
547
|
-
}
|
548
|
-
},
|
549
|
-
name: {
|
550
|
-
serializedName: "name",
|
551
|
-
type: {
|
552
|
-
name: "String"
|
553
|
-
}
|
554
|
-
},
|
555
|
-
key: {
|
556
|
-
serializedName: "key",
|
557
|
-
required: true,
|
558
|
-
type: {
|
559
|
-
name: "String"
|
560
|
-
}
|
561
|
-
},
|
562
|
-
created: {
|
563
|
-
serializedName: "created",
|
564
|
-
type: {
|
565
|
-
name: "String"
|
566
|
-
}
|
567
|
-
}
|
568
|
-
}
|
569
|
-
}
|
570
|
-
};
|
571
|
-
const DatadogHostListResponse = {
|
572
|
-
type: {
|
573
|
-
name: "Composite",
|
574
|
-
className: "DatadogHostListResponse",
|
575
|
-
modelProperties: {
|
576
|
-
value: {
|
577
|
-
serializedName: "value",
|
578
|
-
type: {
|
579
|
-
name: "Sequence",
|
580
|
-
element: {
|
581
|
-
type: {
|
582
|
-
name: "Composite",
|
583
|
-
className: "DatadogHost"
|
584
|
-
}
|
585
|
-
}
|
586
|
-
}
|
587
|
-
},
|
588
|
-
nextLink: {
|
589
|
-
serializedName: "nextLink",
|
590
|
-
type: {
|
591
|
-
name: "String"
|
592
|
-
}
|
593
|
-
}
|
594
|
-
}
|
595
|
-
}
|
596
|
-
};
|
597
|
-
const DatadogHost = {
|
598
|
-
type: {
|
599
|
-
name: "Composite",
|
600
|
-
className: "DatadogHost",
|
601
|
-
modelProperties: {
|
602
|
-
name: {
|
603
|
-
serializedName: "name",
|
604
|
-
type: {
|
605
|
-
name: "String"
|
606
|
-
}
|
607
|
-
},
|
608
|
-
aliases: {
|
609
|
-
serializedName: "aliases",
|
610
|
-
type: {
|
611
|
-
name: "Sequence",
|
612
|
-
element: {
|
613
|
-
type: {
|
614
|
-
name: "String"
|
615
|
-
}
|
616
|
-
}
|
617
|
-
}
|
618
|
-
},
|
619
|
-
apps: {
|
620
|
-
serializedName: "apps",
|
621
|
-
type: {
|
622
|
-
name: "Sequence",
|
623
|
-
element: {
|
624
|
-
type: {
|
625
|
-
name: "String"
|
626
|
-
}
|
627
|
-
}
|
628
|
-
}
|
629
|
-
},
|
630
|
-
meta: {
|
631
|
-
serializedName: "meta",
|
632
|
-
type: {
|
633
|
-
name: "Composite",
|
634
|
-
className: "DatadogHostMetadata"
|
635
|
-
}
|
636
|
-
}
|
637
|
-
}
|
638
|
-
}
|
639
|
-
};
|
640
|
-
const DatadogHostMetadata = {
|
641
|
-
type: {
|
642
|
-
name: "Composite",
|
643
|
-
className: "DatadogHostMetadata",
|
644
|
-
modelProperties: {
|
645
|
-
agentVersion: {
|
646
|
-
serializedName: "agentVersion",
|
647
|
-
type: {
|
648
|
-
name: "String"
|
649
|
-
}
|
650
|
-
},
|
651
|
-
installMethod: {
|
652
|
-
serializedName: "installMethod",
|
653
|
-
type: {
|
654
|
-
name: "Composite",
|
655
|
-
className: "DatadogInstallMethod"
|
656
|
-
}
|
657
|
-
},
|
658
|
-
logsAgent: {
|
659
|
-
serializedName: "logsAgent",
|
660
|
-
type: {
|
661
|
-
name: "Composite",
|
662
|
-
className: "DatadogLogsAgent"
|
663
|
-
}
|
664
|
-
}
|
665
|
-
}
|
666
|
-
}
|
667
|
-
};
|
668
|
-
const DatadogInstallMethod = {
|
669
|
-
type: {
|
670
|
-
name: "Composite",
|
671
|
-
className: "DatadogInstallMethod",
|
672
|
-
modelProperties: {
|
673
|
-
tool: {
|
674
|
-
serializedName: "tool",
|
675
|
-
type: {
|
676
|
-
name: "String"
|
677
|
-
}
|
678
|
-
},
|
679
|
-
toolVersion: {
|
680
|
-
serializedName: "toolVersion",
|
681
|
-
type: {
|
682
|
-
name: "String"
|
683
|
-
}
|
684
|
-
},
|
685
|
-
installerVersion: {
|
686
|
-
serializedName: "installerVersion",
|
687
|
-
type: {
|
688
|
-
name: "String"
|
689
|
-
}
|
690
|
-
}
|
691
|
-
}
|
692
|
-
}
|
693
|
-
};
|
694
|
-
const DatadogLogsAgent = {
|
695
|
-
type: {
|
696
|
-
name: "Composite",
|
697
|
-
className: "DatadogLogsAgent",
|
698
|
-
modelProperties: {
|
699
|
-
transport: {
|
700
|
-
serializedName: "transport",
|
701
|
-
type: {
|
702
|
-
name: "String"
|
703
|
-
}
|
704
|
-
}
|
705
|
-
}
|
706
|
-
}
|
707
|
-
};
|
708
|
-
const LinkedResourceListResponse = {
|
709
|
-
type: {
|
710
|
-
name: "Composite",
|
711
|
-
className: "LinkedResourceListResponse",
|
712
|
-
modelProperties: {
|
713
|
-
value: {
|
714
|
-
serializedName: "value",
|
715
|
-
type: {
|
716
|
-
name: "Sequence",
|
717
|
-
element: {
|
718
|
-
type: {
|
719
|
-
name: "Composite",
|
720
|
-
className: "LinkedResource"
|
721
|
-
}
|
722
|
-
}
|
723
|
-
}
|
724
|
-
},
|
725
|
-
nextLink: {
|
726
|
-
serializedName: "nextLink",
|
727
|
-
type: {
|
728
|
-
name: "String"
|
729
|
-
}
|
730
|
-
}
|
731
|
-
}
|
732
|
-
}
|
733
|
-
};
|
734
|
-
const LinkedResource = {
|
735
|
-
type: {
|
736
|
-
name: "Composite",
|
737
|
-
className: "LinkedResource",
|
738
|
-
modelProperties: {
|
739
|
-
id: {
|
740
|
-
serializedName: "id",
|
741
|
-
type: {
|
742
|
-
name: "String"
|
743
|
-
}
|
744
|
-
}
|
745
|
-
}
|
746
|
-
}
|
747
|
-
};
|
748
|
-
const MonitoredResourceListResponse = {
|
749
|
-
type: {
|
750
|
-
name: "Composite",
|
751
|
-
className: "MonitoredResourceListResponse",
|
752
|
-
modelProperties: {
|
753
|
-
value: {
|
754
|
-
serializedName: "value",
|
755
|
-
type: {
|
756
|
-
name: "Sequence",
|
757
|
-
element: {
|
758
|
-
type: {
|
759
|
-
name: "Composite",
|
760
|
-
className: "MonitoredResource"
|
761
|
-
}
|
762
|
-
}
|
763
|
-
}
|
764
|
-
},
|
765
|
-
nextLink: {
|
766
|
-
serializedName: "nextLink",
|
767
|
-
type: {
|
768
|
-
name: "String"
|
769
|
-
}
|
770
|
-
}
|
771
|
-
}
|
772
|
-
}
|
773
|
-
};
|
774
|
-
const MonitoredResource = {
|
775
|
-
type: {
|
776
|
-
name: "Composite",
|
777
|
-
className: "MonitoredResource",
|
778
|
-
modelProperties: {
|
779
|
-
id: {
|
780
|
-
serializedName: "id",
|
781
|
-
type: {
|
782
|
-
name: "String"
|
783
|
-
}
|
784
|
-
},
|
785
|
-
sendingMetrics: {
|
786
|
-
serializedName: "sendingMetrics",
|
787
|
-
type: {
|
788
|
-
name: "Boolean"
|
789
|
-
}
|
790
|
-
},
|
791
|
-
reasonForMetricsStatus: {
|
792
|
-
serializedName: "reasonForMetricsStatus",
|
793
|
-
type: {
|
794
|
-
name: "String"
|
795
|
-
}
|
796
|
-
},
|
797
|
-
sendingLogs: {
|
798
|
-
serializedName: "sendingLogs",
|
799
|
-
type: {
|
800
|
-
name: "Boolean"
|
801
|
-
}
|
802
|
-
},
|
803
|
-
reasonForLogsStatus: {
|
804
|
-
serializedName: "reasonForLogsStatus",
|
805
|
-
type: {
|
806
|
-
name: "String"
|
807
|
-
}
|
808
|
-
}
|
809
|
-
}
|
810
|
-
}
|
811
|
-
};
|
812
|
-
const OperationListResult = {
|
813
|
-
type: {
|
814
|
-
name: "Composite",
|
815
|
-
className: "OperationListResult",
|
816
|
-
modelProperties: {
|
817
|
-
value: {
|
818
|
-
serializedName: "value",
|
819
|
-
type: {
|
820
|
-
name: "Sequence",
|
821
|
-
element: {
|
822
|
-
type: {
|
823
|
-
name: "Composite",
|
824
|
-
className: "OperationResult"
|
825
|
-
}
|
826
|
-
}
|
827
|
-
}
|
828
|
-
},
|
829
|
-
nextLink: {
|
830
|
-
serializedName: "nextLink",
|
831
|
-
type: {
|
832
|
-
name: "String"
|
833
|
-
}
|
834
|
-
}
|
835
|
-
}
|
836
|
-
}
|
837
|
-
};
|
838
|
-
const OperationResult = {
|
839
|
-
type: {
|
840
|
-
name: "Composite",
|
841
|
-
className: "OperationResult",
|
842
|
-
modelProperties: {
|
843
|
-
name: {
|
844
|
-
serializedName: "name",
|
845
|
-
type: {
|
846
|
-
name: "String"
|
847
|
-
}
|
848
|
-
},
|
849
|
-
display: {
|
850
|
-
serializedName: "display",
|
851
|
-
type: {
|
852
|
-
name: "Composite",
|
853
|
-
className: "OperationDisplay"
|
854
|
-
}
|
855
|
-
},
|
856
|
-
isDataAction: {
|
857
|
-
serializedName: "isDataAction",
|
858
|
-
type: {
|
859
|
-
name: "Boolean"
|
860
|
-
}
|
861
|
-
}
|
862
|
-
}
|
863
|
-
}
|
864
|
-
};
|
865
|
-
const OperationDisplay = {
|
866
|
-
type: {
|
867
|
-
name: "Composite",
|
868
|
-
className: "OperationDisplay",
|
869
|
-
modelProperties: {
|
870
|
-
provider: {
|
871
|
-
serializedName: "provider",
|
872
|
-
type: {
|
873
|
-
name: "String"
|
874
|
-
}
|
875
|
-
},
|
876
|
-
resource: {
|
877
|
-
serializedName: "resource",
|
878
|
-
type: {
|
879
|
-
name: "String"
|
880
|
-
}
|
881
|
-
},
|
882
|
-
operation: {
|
883
|
-
serializedName: "operation",
|
884
|
-
type: {
|
885
|
-
name: "String"
|
886
|
-
}
|
887
|
-
},
|
888
|
-
description: {
|
889
|
-
serializedName: "description",
|
890
|
-
type: {
|
891
|
-
name: "String"
|
892
|
-
}
|
893
|
-
}
|
894
|
-
}
|
895
|
-
}
|
896
|
-
};
|
897
|
-
const DatadogMonitorResourceListResponse = {
|
898
|
-
type: {
|
899
|
-
name: "Composite",
|
900
|
-
className: "DatadogMonitorResourceListResponse",
|
901
|
-
modelProperties: {
|
902
|
-
value: {
|
903
|
-
serializedName: "value",
|
904
|
-
type: {
|
905
|
-
name: "Sequence",
|
906
|
-
element: {
|
907
|
-
type: {
|
908
|
-
name: "Composite",
|
909
|
-
className: "DatadogMonitorResource"
|
910
|
-
}
|
911
|
-
}
|
912
|
-
}
|
913
|
-
},
|
914
|
-
nextLink: {
|
915
|
-
serializedName: "nextLink",
|
916
|
-
type: {
|
917
|
-
name: "String"
|
918
|
-
}
|
919
|
-
}
|
920
|
-
}
|
921
|
-
}
|
922
|
-
};
|
923
|
-
const DatadogMonitorResource = {
|
924
|
-
type: {
|
925
|
-
name: "Composite",
|
926
|
-
className: "DatadogMonitorResource",
|
927
|
-
modelProperties: {
|
928
|
-
id: {
|
929
|
-
serializedName: "id",
|
930
|
-
readOnly: true,
|
931
|
-
type: {
|
932
|
-
name: "String"
|
933
|
-
}
|
934
|
-
},
|
935
|
-
name: {
|
936
|
-
serializedName: "name",
|
937
|
-
readOnly: true,
|
938
|
-
type: {
|
939
|
-
name: "String"
|
940
|
-
}
|
941
|
-
},
|
942
|
-
type: {
|
943
|
-
serializedName: "type",
|
944
|
-
readOnly: true,
|
945
|
-
type: {
|
946
|
-
name: "String"
|
947
|
-
}
|
948
|
-
},
|
949
|
-
sku: {
|
950
|
-
serializedName: "sku",
|
951
|
-
type: {
|
952
|
-
name: "Composite",
|
953
|
-
className: "ResourceSku"
|
954
|
-
}
|
955
|
-
},
|
956
|
-
properties: {
|
957
|
-
serializedName: "properties",
|
958
|
-
type: {
|
959
|
-
name: "Composite",
|
960
|
-
className: "MonitorProperties"
|
961
|
-
}
|
962
|
-
},
|
963
|
-
identity: {
|
964
|
-
serializedName: "identity",
|
965
|
-
type: {
|
966
|
-
name: "Composite",
|
967
|
-
className: "IdentityProperties"
|
968
|
-
}
|
969
|
-
},
|
970
|
-
tags: {
|
971
|
-
serializedName: "tags",
|
972
|
-
type: {
|
973
|
-
name: "Dictionary",
|
974
|
-
value: { type: { name: "String" } }
|
975
|
-
}
|
976
|
-
},
|
977
|
-
location: {
|
978
|
-
serializedName: "location",
|
979
|
-
required: true,
|
980
|
-
type: {
|
981
|
-
name: "String"
|
982
|
-
}
|
983
|
-
},
|
984
|
-
systemData: {
|
985
|
-
serializedName: "systemData",
|
986
|
-
type: {
|
987
|
-
name: "Composite",
|
988
|
-
className: "SystemData"
|
989
|
-
}
|
990
|
-
}
|
991
|
-
}
|
992
|
-
}
|
993
|
-
};
|
994
|
-
const ResourceSku = {
|
995
|
-
type: {
|
996
|
-
name: "Composite",
|
997
|
-
className: "ResourceSku",
|
998
|
-
modelProperties: {
|
999
|
-
name: {
|
1000
|
-
serializedName: "name",
|
1001
|
-
required: true,
|
1002
|
-
type: {
|
1003
|
-
name: "String"
|
1004
|
-
}
|
1005
|
-
}
|
1006
|
-
}
|
1007
|
-
}
|
1008
|
-
};
|
1009
|
-
const MonitorProperties = {
|
1010
|
-
type: {
|
1011
|
-
name: "Composite",
|
1012
|
-
className: "MonitorProperties",
|
1013
|
-
modelProperties: {
|
1014
|
-
provisioningState: {
|
1015
|
-
serializedName: "provisioningState",
|
1016
|
-
readOnly: true,
|
1017
|
-
type: {
|
1018
|
-
name: "String"
|
1019
|
-
}
|
1020
|
-
},
|
1021
|
-
monitoringStatus: {
|
1022
|
-
defaultValue: "Enabled",
|
1023
|
-
serializedName: "monitoringStatus",
|
1024
|
-
type: {
|
1025
|
-
name: "String"
|
1026
|
-
}
|
1027
|
-
},
|
1028
|
-
marketplaceSubscriptionStatus: {
|
1029
|
-
serializedName: "marketplaceSubscriptionStatus",
|
1030
|
-
readOnly: true,
|
1031
|
-
type: {
|
1032
|
-
name: "String"
|
1033
|
-
}
|
1034
|
-
},
|
1035
|
-
datadogOrganizationProperties: {
|
1036
|
-
serializedName: "datadogOrganizationProperties",
|
1037
|
-
type: {
|
1038
|
-
name: "Composite",
|
1039
|
-
className: "DatadogOrganizationProperties"
|
1040
|
-
}
|
1041
|
-
},
|
1042
|
-
userInfo: {
|
1043
|
-
serializedName: "userInfo",
|
1044
|
-
type: {
|
1045
|
-
name: "Composite",
|
1046
|
-
className: "UserInfo"
|
1047
|
-
}
|
1048
|
-
},
|
1049
|
-
liftrResourceCategory: {
|
1050
|
-
serializedName: "liftrResourceCategory",
|
1051
|
-
readOnly: true,
|
1052
|
-
type: {
|
1053
|
-
name: "String"
|
1054
|
-
}
|
1055
|
-
},
|
1056
|
-
liftrResourcePreference: {
|
1057
|
-
serializedName: "liftrResourcePreference",
|
1058
|
-
readOnly: true,
|
1059
|
-
type: {
|
1060
|
-
name: "Number"
|
1061
|
-
}
|
1062
|
-
}
|
1063
|
-
}
|
1064
|
-
}
|
1065
|
-
};
|
1066
|
-
const DatadogOrganizationProperties = {
|
1067
|
-
type: {
|
1068
|
-
name: "Composite",
|
1069
|
-
className: "DatadogOrganizationProperties",
|
1070
|
-
modelProperties: {
|
1071
|
-
name: {
|
1072
|
-
serializedName: "name",
|
1073
|
-
type: {
|
1074
|
-
name: "String"
|
1075
|
-
}
|
1076
|
-
},
|
1077
|
-
id: {
|
1078
|
-
serializedName: "id",
|
1079
|
-
type: {
|
1080
|
-
name: "String"
|
1081
|
-
}
|
1082
|
-
},
|
1083
|
-
linkingAuthCode: {
|
1084
|
-
serializedName: "linkingAuthCode",
|
1085
|
-
type: {
|
1086
|
-
name: "String"
|
1087
|
-
}
|
1088
|
-
},
|
1089
|
-
linkingClientId: {
|
1090
|
-
serializedName: "linkingClientId",
|
1091
|
-
type: {
|
1092
|
-
name: "String"
|
1093
|
-
}
|
1094
|
-
},
|
1095
|
-
redirectUri: {
|
1096
|
-
serializedName: "redirectUri",
|
1097
|
-
type: {
|
1098
|
-
name: "String"
|
1099
|
-
}
|
1100
|
-
},
|
1101
|
-
apiKey: {
|
1102
|
-
serializedName: "apiKey",
|
1103
|
-
type: {
|
1104
|
-
name: "String"
|
1105
|
-
}
|
1106
|
-
},
|
1107
|
-
applicationKey: {
|
1108
|
-
serializedName: "applicationKey",
|
1109
|
-
type: {
|
1110
|
-
name: "String"
|
1111
|
-
}
|
1112
|
-
},
|
1113
|
-
enterpriseAppId: {
|
1114
|
-
serializedName: "enterpriseAppId",
|
1115
|
-
type: {
|
1116
|
-
name: "String"
|
1117
|
-
}
|
1118
|
-
},
|
1119
|
-
cspm: {
|
1120
|
-
serializedName: "cspm",
|
1121
|
-
type: {
|
1122
|
-
name: "Boolean"
|
1123
|
-
}
|
1124
|
-
}
|
1125
|
-
}
|
1126
|
-
}
|
1127
|
-
};
|
1128
|
-
const UserInfo = {
|
1129
|
-
type: {
|
1130
|
-
name: "Composite",
|
1131
|
-
className: "UserInfo",
|
1132
|
-
modelProperties: {
|
1133
|
-
name: {
|
1134
|
-
constraints: {
|
1135
|
-
MaxLength: 50
|
1136
|
-
},
|
1137
|
-
serializedName: "name",
|
1138
|
-
type: {
|
1139
|
-
name: "String"
|
1140
|
-
}
|
1141
|
-
},
|
1142
|
-
emailAddress: {
|
1143
|
-
constraints: {
|
1144
|
-
Pattern: new RegExp("^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$")
|
1145
|
-
},
|
1146
|
-
serializedName: "emailAddress",
|
1147
|
-
type: {
|
1148
|
-
name: "String"
|
1149
|
-
}
|
1150
|
-
},
|
1151
|
-
phoneNumber: {
|
1152
|
-
constraints: {
|
1153
|
-
MaxLength: 40
|
1154
|
-
},
|
1155
|
-
serializedName: "phoneNumber",
|
1156
|
-
type: {
|
1157
|
-
name: "String"
|
1158
|
-
}
|
1159
|
-
}
|
1160
|
-
}
|
1161
|
-
}
|
1162
|
-
};
|
1163
|
-
const IdentityProperties = {
|
1164
|
-
type: {
|
1165
|
-
name: "Composite",
|
1166
|
-
className: "IdentityProperties",
|
1167
|
-
modelProperties: {
|
1168
|
-
principalId: {
|
1169
|
-
serializedName: "principalId",
|
1170
|
-
readOnly: true,
|
1171
|
-
type: {
|
1172
|
-
name: "String"
|
1173
|
-
}
|
1174
|
-
},
|
1175
|
-
tenantId: {
|
1176
|
-
serializedName: "tenantId",
|
1177
|
-
readOnly: true,
|
1178
|
-
type: {
|
1179
|
-
name: "String"
|
1180
|
-
}
|
1181
|
-
},
|
1182
|
-
type: {
|
1183
|
-
serializedName: "type",
|
1184
|
-
type: {
|
1185
|
-
name: "String"
|
1186
|
-
}
|
1187
|
-
}
|
1188
|
-
}
|
1189
|
-
}
|
1190
|
-
};
|
1191
|
-
const DatadogMonitorResourceUpdateParameters = {
|
1192
|
-
type: {
|
1193
|
-
name: "Composite",
|
1194
|
-
className: "DatadogMonitorResourceUpdateParameters",
|
1195
|
-
modelProperties: {
|
1196
|
-
properties: {
|
1197
|
-
serializedName: "properties",
|
1198
|
-
type: {
|
1199
|
-
name: "Composite",
|
1200
|
-
className: "MonitorUpdateProperties"
|
1201
|
-
}
|
1202
|
-
},
|
1203
|
-
tags: {
|
1204
|
-
serializedName: "tags",
|
1205
|
-
type: {
|
1206
|
-
name: "Dictionary",
|
1207
|
-
value: { type: { name: "String" } }
|
1208
|
-
}
|
1209
|
-
},
|
1210
|
-
sku: {
|
1211
|
-
serializedName: "sku",
|
1212
|
-
type: {
|
1213
|
-
name: "Composite",
|
1214
|
-
className: "ResourceSku"
|
1215
|
-
}
|
1216
|
-
}
|
1217
|
-
}
|
1218
|
-
}
|
1219
|
-
};
|
1220
|
-
const MonitorUpdateProperties = {
|
1221
|
-
type: {
|
1222
|
-
name: "Composite",
|
1223
|
-
className: "MonitorUpdateProperties",
|
1224
|
-
modelProperties: {
|
1225
|
-
monitoringStatus: {
|
1226
|
-
defaultValue: "Enabled",
|
1227
|
-
serializedName: "monitoringStatus",
|
1228
|
-
type: {
|
1229
|
-
name: "String"
|
1230
|
-
}
|
1231
|
-
},
|
1232
|
-
cspm: {
|
1233
|
-
serializedName: "cspm",
|
1234
|
-
type: {
|
1235
|
-
name: "Boolean"
|
1236
|
-
}
|
1237
|
-
}
|
1238
|
-
}
|
1239
|
-
}
|
1240
|
-
};
|
1241
|
-
const DatadogSetPasswordLink = {
|
1242
|
-
type: {
|
1243
|
-
name: "Composite",
|
1244
|
-
className: "DatadogSetPasswordLink",
|
1245
|
-
modelProperties: {
|
1246
|
-
setPasswordLink: {
|
1247
|
-
serializedName: "setPasswordLink",
|
1248
|
-
type: {
|
1249
|
-
name: "String"
|
1250
|
-
}
|
1251
|
-
}
|
1252
|
-
}
|
1253
|
-
}
|
1254
|
-
};
|
1255
|
-
const MonitoringTagRulesListResponse = {
|
1256
|
-
type: {
|
1257
|
-
name: "Composite",
|
1258
|
-
className: "MonitoringTagRulesListResponse",
|
1259
|
-
modelProperties: {
|
1260
|
-
value: {
|
1261
|
-
serializedName: "value",
|
1262
|
-
type: {
|
1263
|
-
name: "Sequence",
|
1264
|
-
element: {
|
1265
|
-
type: {
|
1266
|
-
name: "Composite",
|
1267
|
-
className: "MonitoringTagRules"
|
1268
|
-
}
|
1269
|
-
}
|
1270
|
-
}
|
1271
|
-
},
|
1272
|
-
nextLink: {
|
1273
|
-
serializedName: "nextLink",
|
1274
|
-
type: {
|
1275
|
-
name: "String"
|
1276
|
-
}
|
1277
|
-
}
|
1278
|
-
}
|
1279
|
-
}
|
1280
|
-
};
|
1281
|
-
const MonitoringTagRules = {
|
1282
|
-
type: {
|
1283
|
-
name: "Composite",
|
1284
|
-
className: "MonitoringTagRules",
|
1285
|
-
modelProperties: {
|
1286
|
-
name: {
|
1287
|
-
serializedName: "name",
|
1288
|
-
readOnly: true,
|
1289
|
-
type: {
|
1290
|
-
name: "String"
|
1291
|
-
}
|
1292
|
-
},
|
1293
|
-
id: {
|
1294
|
-
serializedName: "id",
|
1295
|
-
readOnly: true,
|
1296
|
-
type: {
|
1297
|
-
name: "String"
|
1298
|
-
}
|
1299
|
-
},
|
1300
|
-
type: {
|
1301
|
-
serializedName: "type",
|
1302
|
-
readOnly: true,
|
1303
|
-
type: {
|
1304
|
-
name: "String"
|
1305
|
-
}
|
1306
|
-
},
|
1307
|
-
properties: {
|
1308
|
-
serializedName: "properties",
|
1309
|
-
type: {
|
1310
|
-
name: "Composite",
|
1311
|
-
className: "MonitoringTagRulesProperties"
|
1312
|
-
}
|
1313
|
-
},
|
1314
|
-
systemData: {
|
1315
|
-
serializedName: "systemData",
|
1316
|
-
type: {
|
1317
|
-
name: "Composite",
|
1318
|
-
className: "SystemData"
|
1319
|
-
}
|
1320
|
-
}
|
1321
|
-
}
|
1322
|
-
}
|
1323
|
-
};
|
1324
|
-
const MonitoringTagRulesProperties = {
|
1325
|
-
type: {
|
1326
|
-
name: "Composite",
|
1327
|
-
className: "MonitoringTagRulesProperties",
|
1328
|
-
modelProperties: {
|
1329
|
-
provisioningState: {
|
1330
|
-
serializedName: "provisioningState",
|
1331
|
-
readOnly: true,
|
1332
|
-
type: {
|
1333
|
-
name: "String"
|
1334
|
-
}
|
1335
|
-
},
|
1336
|
-
logRules: {
|
1337
|
-
serializedName: "logRules",
|
1338
|
-
type: {
|
1339
|
-
name: "Composite",
|
1340
|
-
className: "LogRules"
|
1341
|
-
}
|
1342
|
-
},
|
1343
|
-
metricRules: {
|
1344
|
-
serializedName: "metricRules",
|
1345
|
-
type: {
|
1346
|
-
name: "Composite",
|
1347
|
-
className: "MetricRules"
|
1348
|
-
}
|
1349
|
-
},
|
1350
|
-
automuting: {
|
1351
|
-
serializedName: "automuting",
|
1352
|
-
type: {
|
1353
|
-
name: "Boolean"
|
1354
|
-
}
|
1355
|
-
}
|
1356
|
-
}
|
1357
|
-
}
|
1358
|
-
};
|
1359
|
-
const LogRules = {
|
1360
|
-
type: {
|
1361
|
-
name: "Composite",
|
1362
|
-
className: "LogRules",
|
1363
|
-
modelProperties: {
|
1364
|
-
sendAadLogs: {
|
1365
|
-
serializedName: "sendAadLogs",
|
1366
|
-
type: {
|
1367
|
-
name: "Boolean"
|
1368
|
-
}
|
1369
|
-
},
|
1370
|
-
sendSubscriptionLogs: {
|
1371
|
-
serializedName: "sendSubscriptionLogs",
|
1372
|
-
type: {
|
1373
|
-
name: "Boolean"
|
1374
|
-
}
|
1375
|
-
},
|
1376
|
-
sendResourceLogs: {
|
1377
|
-
serializedName: "sendResourceLogs",
|
1378
|
-
type: {
|
1379
|
-
name: "Boolean"
|
1380
|
-
}
|
1381
|
-
},
|
1382
|
-
filteringTags: {
|
1383
|
-
serializedName: "filteringTags",
|
1384
|
-
type: {
|
1385
|
-
name: "Sequence",
|
1386
|
-
element: {
|
1387
|
-
type: {
|
1388
|
-
name: "Composite",
|
1389
|
-
className: "FilteringTag"
|
1390
|
-
}
|
1391
|
-
}
|
1392
|
-
}
|
1393
|
-
}
|
1394
|
-
}
|
1395
|
-
}
|
1396
|
-
};
|
1397
|
-
const FilteringTag = {
|
1398
|
-
type: {
|
1399
|
-
name: "Composite",
|
1400
|
-
className: "FilteringTag",
|
1401
|
-
modelProperties: {
|
1402
|
-
name: {
|
1403
|
-
serializedName: "name",
|
1404
|
-
type: {
|
1405
|
-
name: "String"
|
1406
|
-
}
|
1407
|
-
},
|
1408
|
-
value: {
|
1409
|
-
serializedName: "value",
|
1410
|
-
type: {
|
1411
|
-
name: "String"
|
1412
|
-
}
|
1413
|
-
},
|
1414
|
-
action: {
|
1415
|
-
serializedName: "action",
|
1416
|
-
type: {
|
1417
|
-
name: "String"
|
1418
|
-
}
|
1419
|
-
}
|
1420
|
-
}
|
1421
|
-
}
|
1422
|
-
};
|
1423
|
-
const MetricRules = {
|
1424
|
-
type: {
|
1425
|
-
name: "Composite",
|
1426
|
-
className: "MetricRules",
|
1427
|
-
modelProperties: {
|
1428
|
-
filteringTags: {
|
1429
|
-
serializedName: "filteringTags",
|
1430
|
-
type: {
|
1431
|
-
name: "Sequence",
|
1432
|
-
element: {
|
1433
|
-
type: {
|
1434
|
-
name: "Composite",
|
1435
|
-
className: "FilteringTag"
|
1436
|
-
}
|
1437
|
-
}
|
1438
|
-
}
|
1439
|
-
}
|
1440
|
-
}
|
1441
|
-
}
|
1442
|
-
};
|
1443
|
-
const DatadogSingleSignOnResourceListResponse = {
|
1444
|
-
type: {
|
1445
|
-
name: "Composite",
|
1446
|
-
className: "DatadogSingleSignOnResourceListResponse",
|
1447
|
-
modelProperties: {
|
1448
|
-
value: {
|
1449
|
-
serializedName: "value",
|
1450
|
-
type: {
|
1451
|
-
name: "Sequence",
|
1452
|
-
element: {
|
1453
|
-
type: {
|
1454
|
-
name: "Composite",
|
1455
|
-
className: "DatadogSingleSignOnResource"
|
1456
|
-
}
|
1457
|
-
}
|
1458
|
-
}
|
1459
|
-
},
|
1460
|
-
nextLink: {
|
1461
|
-
serializedName: "nextLink",
|
1462
|
-
type: {
|
1463
|
-
name: "String"
|
1464
|
-
}
|
1465
|
-
}
|
1466
|
-
}
|
1467
|
-
}
|
1468
|
-
};
|
1469
|
-
const DatadogSingleSignOnResource = {
|
1470
|
-
type: {
|
1471
|
-
name: "Composite",
|
1472
|
-
className: "DatadogSingleSignOnResource",
|
1473
|
-
modelProperties: {
|
1474
|
-
id: {
|
1475
|
-
serializedName: "id",
|
1476
|
-
readOnly: true,
|
1477
|
-
type: {
|
1478
|
-
name: "String"
|
1479
|
-
}
|
1480
|
-
},
|
1481
|
-
name: {
|
1482
|
-
serializedName: "name",
|
1483
|
-
readOnly: true,
|
1484
|
-
type: {
|
1485
|
-
name: "String"
|
1486
|
-
}
|
1487
|
-
},
|
1488
|
-
type: {
|
1489
|
-
serializedName: "type",
|
1490
|
-
readOnly: true,
|
1491
|
-
type: {
|
1492
|
-
name: "String"
|
1493
|
-
}
|
1494
|
-
},
|
1495
|
-
properties: {
|
1496
|
-
serializedName: "properties",
|
1497
|
-
type: {
|
1498
|
-
name: "Composite",
|
1499
|
-
className: "DatadogSingleSignOnProperties"
|
1500
|
-
}
|
1501
|
-
},
|
1502
|
-
systemData: {
|
1503
|
-
serializedName: "systemData",
|
1504
|
-
type: {
|
1505
|
-
name: "Composite",
|
1506
|
-
className: "SystemData"
|
1507
|
-
}
|
1508
|
-
}
|
1509
|
-
}
|
1510
|
-
}
|
1511
|
-
};
|
1512
|
-
const DatadogSingleSignOnProperties = {
|
1513
|
-
type: {
|
1514
|
-
name: "Composite",
|
1515
|
-
className: "DatadogSingleSignOnProperties",
|
1516
|
-
modelProperties: {
|
1517
|
-
provisioningState: {
|
1518
|
-
serializedName: "provisioningState",
|
1519
|
-
readOnly: true,
|
1520
|
-
type: {
|
1521
|
-
name: "String"
|
1522
|
-
}
|
1523
|
-
},
|
1524
|
-
singleSignOnState: {
|
1525
|
-
serializedName: "singleSignOnState",
|
1526
|
-
type: {
|
1527
|
-
name: "String"
|
1528
|
-
}
|
1529
|
-
},
|
1530
|
-
enterpriseAppId: {
|
1531
|
-
serializedName: "enterpriseAppId",
|
1532
|
-
type: {
|
1533
|
-
name: "String"
|
1534
|
-
}
|
1535
|
-
},
|
1536
|
-
singleSignOnUrl: {
|
1537
|
-
serializedName: "singleSignOnUrl",
|
1538
|
-
readOnly: true,
|
1539
|
-
type: {
|
1540
|
-
name: "String"
|
1541
|
-
}
|
1542
|
-
}
|
1543
|
-
}
|
1544
|
-
}
|
1545
|
-
};
|
1546
|
-
const MonitoredSubscriptionPropertiesList = {
|
1547
|
-
type: {
|
1548
|
-
name: "Composite",
|
1549
|
-
className: "MonitoredSubscriptionPropertiesList",
|
1550
|
-
modelProperties: {
|
1551
|
-
value: {
|
1552
|
-
serializedName: "value",
|
1553
|
-
type: {
|
1554
|
-
name: "Sequence",
|
1555
|
-
element: {
|
1556
|
-
type: {
|
1557
|
-
name: "Composite",
|
1558
|
-
className: "MonitoredSubscriptionProperties"
|
1559
|
-
}
|
1560
|
-
}
|
1561
|
-
}
|
1562
|
-
}
|
1563
|
-
}
|
1564
|
-
}
|
1565
|
-
};
|
1566
|
-
const MonitoredSubscriptionProperties = {
|
1567
|
-
type: {
|
1568
|
-
name: "Composite",
|
1569
|
-
className: "MonitoredSubscriptionProperties",
|
1570
|
-
modelProperties: {
|
1571
|
-
name: {
|
1572
|
-
serializedName: "name",
|
1573
|
-
readOnly: true,
|
1574
|
-
type: {
|
1575
|
-
name: "String"
|
1576
|
-
}
|
1577
|
-
},
|
1578
|
-
id: {
|
1579
|
-
serializedName: "id",
|
1580
|
-
readOnly: true,
|
1581
|
-
type: {
|
1582
|
-
name: "String"
|
1583
|
-
}
|
1584
|
-
},
|
1585
|
-
type: {
|
1586
|
-
serializedName: "type",
|
1587
|
-
readOnly: true,
|
1588
|
-
type: {
|
1589
|
-
name: "String"
|
1590
|
-
}
|
1591
|
-
},
|
1592
|
-
properties: {
|
1593
|
-
serializedName: "properties",
|
1594
|
-
type: {
|
1595
|
-
name: "Composite",
|
1596
|
-
className: "SubscriptionList"
|
1597
|
-
}
|
1598
|
-
}
|
1599
|
-
}
|
1600
|
-
}
|
1601
|
-
};
|
1602
|
-
const SubscriptionList = {
|
1603
|
-
type: {
|
1604
|
-
name: "Composite",
|
1605
|
-
className: "SubscriptionList",
|
1606
|
-
modelProperties: {
|
1607
|
-
operation: {
|
1608
|
-
serializedName: "operation",
|
1609
|
-
type: {
|
1610
|
-
name: "String"
|
1611
|
-
}
|
1612
|
-
},
|
1613
|
-
monitoredSubscriptionList: {
|
1614
|
-
serializedName: "monitoredSubscriptionList",
|
1615
|
-
type: {
|
1616
|
-
name: "Sequence",
|
1617
|
-
element: {
|
1618
|
-
type: {
|
1619
|
-
name: "Composite",
|
1620
|
-
className: "MonitoredSubscription"
|
1621
|
-
}
|
1622
|
-
}
|
1623
|
-
}
|
1624
|
-
}
|
1625
|
-
}
|
1626
|
-
}
|
1627
|
-
};
|
1628
|
-
const MonitoredSubscription = {
|
1629
|
-
type: {
|
1630
|
-
name: "Composite",
|
1631
|
-
className: "MonitoredSubscription",
|
1632
|
-
modelProperties: {
|
1633
|
-
subscriptionId: {
|
1634
|
-
serializedName: "subscriptionId",
|
1635
|
-
type: {
|
1636
|
-
name: "String"
|
1637
|
-
}
|
1638
|
-
},
|
1639
|
-
status: {
|
1640
|
-
serializedName: "status",
|
1641
|
-
type: {
|
1642
|
-
name: "String"
|
1643
|
-
}
|
1644
|
-
},
|
1645
|
-
error: {
|
1646
|
-
serializedName: "error",
|
1647
|
-
type: {
|
1648
|
-
name: "String"
|
1649
|
-
}
|
1650
|
-
},
|
1651
|
-
tagRules: {
|
1652
|
-
serializedName: "tagRules",
|
1653
|
-
type: {
|
1654
|
-
name: "Composite",
|
1655
|
-
className: "MonitoringTagRulesProperties"
|
1656
|
-
}
|
1657
|
-
}
|
1658
|
-
}
|
1659
|
-
}
|
1660
|
-
};
|
1661
|
-
|
1662
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
1663
|
-
__proto__: null,
|
1664
|
-
CreateResourceSupportedProperties: CreateResourceSupportedProperties,
|
1665
|
-
CreateResourceSupportedResponse: CreateResourceSupportedResponse,
|
1666
|
-
CreateResourceSupportedResponseList: CreateResourceSupportedResponseList,
|
1667
|
-
DatadogAgreementProperties: DatadogAgreementProperties,
|
1668
|
-
DatadogAgreementResource: DatadogAgreementResource,
|
1669
|
-
DatadogAgreementResourceListResponse: DatadogAgreementResourceListResponse,
|
1670
|
-
DatadogApiKey: DatadogApiKey,
|
1671
|
-
DatadogApiKeyListResponse: DatadogApiKeyListResponse,
|
1672
|
-
DatadogHost: DatadogHost,
|
1673
|
-
DatadogHostListResponse: DatadogHostListResponse,
|
1674
|
-
DatadogHostMetadata: DatadogHostMetadata,
|
1675
|
-
DatadogInstallMethod: DatadogInstallMethod,
|
1676
|
-
DatadogLogsAgent: DatadogLogsAgent,
|
1677
|
-
DatadogMonitorResource: DatadogMonitorResource,
|
1678
|
-
DatadogMonitorResourceListResponse: DatadogMonitorResourceListResponse,
|
1679
|
-
DatadogMonitorResourceUpdateParameters: DatadogMonitorResourceUpdateParameters,
|
1680
|
-
DatadogOrganizationProperties: DatadogOrganizationProperties,
|
1681
|
-
DatadogSetPasswordLink: DatadogSetPasswordLink,
|
1682
|
-
DatadogSingleSignOnProperties: DatadogSingleSignOnProperties,
|
1683
|
-
DatadogSingleSignOnResource: DatadogSingleSignOnResource,
|
1684
|
-
DatadogSingleSignOnResourceListResponse: DatadogSingleSignOnResourceListResponse,
|
1685
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
1686
|
-
ErrorDetail: ErrorDetail,
|
1687
|
-
ErrorResponse: ErrorResponse,
|
1688
|
-
FilteringTag: FilteringTag,
|
1689
|
-
IdentityProperties: IdentityProperties,
|
1690
|
-
LinkedResource: LinkedResource,
|
1691
|
-
LinkedResourceListResponse: LinkedResourceListResponse,
|
1692
|
-
LogRules: LogRules,
|
1693
|
-
MetricRules: MetricRules,
|
1694
|
-
MonitorProperties: MonitorProperties,
|
1695
|
-
MonitorUpdateProperties: MonitorUpdateProperties,
|
1696
|
-
MonitoredResource: MonitoredResource,
|
1697
|
-
MonitoredResourceListResponse: MonitoredResourceListResponse,
|
1698
|
-
MonitoredSubscription: MonitoredSubscription,
|
1699
|
-
MonitoredSubscriptionProperties: MonitoredSubscriptionProperties,
|
1700
|
-
MonitoredSubscriptionPropertiesList: MonitoredSubscriptionPropertiesList,
|
1701
|
-
MonitoringTagRules: MonitoringTagRules,
|
1702
|
-
MonitoringTagRulesListResponse: MonitoringTagRulesListResponse,
|
1703
|
-
MonitoringTagRulesProperties: MonitoringTagRulesProperties,
|
1704
|
-
OperationDisplay: OperationDisplay,
|
1705
|
-
OperationListResult: OperationListResult,
|
1706
|
-
OperationResult: OperationResult,
|
1707
|
-
ResourceSku: ResourceSku,
|
1708
|
-
SubscriptionList: SubscriptionList,
|
1709
|
-
SystemData: SystemData,
|
1710
|
-
UserInfo: UserInfo
|
1711
|
-
});
|
1712
|
-
|
1713
|
-
/*
|
1714
|
-
* Copyright (c) Microsoft Corporation.
|
1715
|
-
* Licensed under the MIT License.
|
1716
|
-
*
|
1717
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
1718
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
1719
|
-
*/
|
1720
|
-
const accept = {
|
1721
|
-
parameterPath: "accept",
|
1722
|
-
mapper: {
|
1723
|
-
defaultValue: "application/json",
|
1724
|
-
isConstant: true,
|
1725
|
-
serializedName: "Accept",
|
1726
|
-
type: {
|
1727
|
-
name: "String"
|
1728
|
-
}
|
1729
|
-
}
|
1730
|
-
};
|
1731
|
-
const $host = {
|
1732
|
-
parameterPath: "$host",
|
1733
|
-
mapper: {
|
1734
|
-
serializedName: "$host",
|
1735
|
-
required: true,
|
1736
|
-
type: {
|
1737
|
-
name: "String"
|
1738
|
-
}
|
1739
|
-
},
|
1740
|
-
skipEncoding: true
|
1741
|
-
};
|
1742
|
-
const subscriptionId = {
|
1743
|
-
parameterPath: "subscriptionId",
|
1744
|
-
mapper: {
|
1745
|
-
constraints: {
|
1746
|
-
MinLength: 1
|
1747
|
-
},
|
1748
|
-
serializedName: "subscriptionId",
|
1749
|
-
required: true,
|
1750
|
-
type: {
|
1751
|
-
name: "String"
|
1752
|
-
}
|
1753
|
-
}
|
1754
|
-
};
|
1755
|
-
const apiVersion = {
|
1756
|
-
parameterPath: "apiVersion",
|
1757
|
-
mapper: {
|
1758
|
-
defaultValue: "2023-01-01",
|
1759
|
-
isConstant: true,
|
1760
|
-
serializedName: "api-version",
|
1761
|
-
type: {
|
1762
|
-
name: "String"
|
1763
|
-
}
|
1764
|
-
}
|
1765
|
-
};
|
1766
|
-
const contentType = {
|
1767
|
-
parameterPath: ["options", "contentType"],
|
1768
|
-
mapper: {
|
1769
|
-
defaultValue: "application/json",
|
1770
|
-
isConstant: true,
|
1771
|
-
serializedName: "Content-Type",
|
1772
|
-
type: {
|
1773
|
-
name: "String"
|
1774
|
-
}
|
1775
|
-
}
|
1776
|
-
};
|
1777
|
-
const body = {
|
1778
|
-
parameterPath: ["options", "body"],
|
1779
|
-
mapper: DatadogAgreementResource
|
1780
|
-
};
|
1781
|
-
const nextLink = {
|
1782
|
-
parameterPath: "nextLink",
|
1783
|
-
mapper: {
|
1784
|
-
serializedName: "nextLink",
|
1785
|
-
required: true,
|
1786
|
-
type: {
|
1787
|
-
name: "String"
|
1788
|
-
}
|
1789
|
-
},
|
1790
|
-
skipEncoding: true
|
1791
|
-
};
|
1792
|
-
const datadogOrganizationId = {
|
1793
|
-
parameterPath: "datadogOrganizationId",
|
1794
|
-
mapper: {
|
1795
|
-
serializedName: "datadogOrganizationId",
|
1796
|
-
required: true,
|
1797
|
-
type: {
|
1798
|
-
name: "String"
|
1799
|
-
}
|
1800
|
-
}
|
1801
|
-
};
|
1802
|
-
const resourceGroupName = {
|
1803
|
-
parameterPath: "resourceGroupName",
|
1804
|
-
mapper: {
|
1805
|
-
constraints: {
|
1806
|
-
MaxLength: 90,
|
1807
|
-
MinLength: 1
|
1808
|
-
},
|
1809
|
-
serializedName: "resourceGroupName",
|
1810
|
-
required: true,
|
1811
|
-
type: {
|
1812
|
-
name: "String"
|
1813
|
-
}
|
1814
|
-
}
|
1815
|
-
};
|
1816
|
-
const monitorName = {
|
1817
|
-
parameterPath: "monitorName",
|
1818
|
-
mapper: {
|
1819
|
-
serializedName: "monitorName",
|
1820
|
-
required: true,
|
1821
|
-
type: {
|
1822
|
-
name: "String"
|
1823
|
-
}
|
1824
|
-
}
|
1825
|
-
};
|
1826
|
-
const body1 = {
|
1827
|
-
parameterPath: ["options", "body"],
|
1828
|
-
mapper: DatadogApiKey
|
1829
|
-
};
|
1830
|
-
const body2 = {
|
1831
|
-
parameterPath: ["options", "body"],
|
1832
|
-
mapper: DatadogMonitorResource
|
1833
|
-
};
|
1834
|
-
const body3 = {
|
1835
|
-
parameterPath: ["options", "body"],
|
1836
|
-
mapper: DatadogMonitorResourceUpdateParameters
|
1837
|
-
};
|
1838
|
-
const body4 = {
|
1839
|
-
parameterPath: ["options", "body"],
|
1840
|
-
mapper: MonitoringTagRules
|
1841
|
-
};
|
1842
|
-
const ruleSetName = {
|
1843
|
-
parameterPath: "ruleSetName",
|
1844
|
-
mapper: {
|
1845
|
-
serializedName: "ruleSetName",
|
1846
|
-
required: true,
|
1847
|
-
type: {
|
1848
|
-
name: "String"
|
1849
|
-
}
|
1850
|
-
}
|
1851
|
-
};
|
1852
|
-
const body5 = {
|
1853
|
-
parameterPath: ["options", "body"],
|
1854
|
-
mapper: DatadogSingleSignOnResource
|
1855
|
-
};
|
1856
|
-
const configurationName = {
|
1857
|
-
parameterPath: "configurationName",
|
1858
|
-
mapper: {
|
1859
|
-
serializedName: "configurationName",
|
1860
|
-
required: true,
|
1861
|
-
type: {
|
1862
|
-
name: "String"
|
1863
|
-
}
|
1864
|
-
}
|
1865
|
-
};
|
1866
|
-
const body6 = {
|
1867
|
-
parameterPath: ["options", "body"],
|
1868
|
-
mapper: MonitoredSubscriptionProperties
|
1869
|
-
};
|
1870
|
-
|
1871
|
-
/*
|
1872
|
-
* Copyright (c) Microsoft Corporation.
|
1873
|
-
* Licensed under the MIT License.
|
1874
|
-
*
|
1875
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
1876
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
1877
|
-
*/
|
1878
|
-
/// <reference lib="esnext.asynciterable" />
|
1879
|
-
/** Class containing MarketplaceAgreements operations. */
|
1880
|
-
class MarketplaceAgreementsImpl {
|
1881
|
-
/**
|
1882
|
-
* Initialize a new instance of the class MarketplaceAgreements class.
|
1883
|
-
* @param client Reference to the service client
|
1884
|
-
*/
|
1885
|
-
constructor(client) {
|
1886
|
-
this.client = client;
|
1887
|
-
}
|
1888
|
-
/**
|
1889
|
-
* List Datadog marketplace agreements in the subscription.
|
1890
|
-
* @param options The options parameters.
|
1891
|
-
*/
|
1892
|
-
list(options) {
|
1893
|
-
const iter = this.listPagingAll(options);
|
1894
|
-
return {
|
1895
|
-
next() {
|
1896
|
-
return iter.next();
|
1897
|
-
},
|
1898
|
-
[Symbol.asyncIterator]() {
|
1899
|
-
return this;
|
1900
|
-
},
|
1901
|
-
byPage: (settings) => {
|
1902
|
-
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
1903
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
1904
|
-
}
|
1905
|
-
return this.listPagingPage(options, settings);
|
1906
|
-
}
|
1907
|
-
};
|
1908
|
-
}
|
1909
|
-
listPagingPage(options, settings) {
|
1910
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
1911
|
-
let result;
|
1912
|
-
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
1913
|
-
if (!continuationToken) {
|
1914
|
-
result = yield tslib.__await(this._list(options));
|
1915
|
-
let page = result.value || [];
|
1916
|
-
continuationToken = result.nextLink;
|
1917
|
-
setContinuationToken(page, continuationToken);
|
1918
|
-
yield yield tslib.__await(page);
|
1919
|
-
}
|
1920
|
-
while (continuationToken) {
|
1921
|
-
result = yield tslib.__await(this._listNext(continuationToken, options));
|
1922
|
-
continuationToken = result.nextLink;
|
1923
|
-
let page = result.value || [];
|
1924
|
-
setContinuationToken(page, continuationToken);
|
1925
|
-
yield yield tslib.__await(page);
|
1926
|
-
}
|
1927
|
-
});
|
1928
|
-
}
|
1929
|
-
listPagingAll(options) {
|
1930
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
1931
|
-
var _a, e_1, _b, _c;
|
1932
|
-
try {
|
1933
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
1934
|
-
_c = _f.value;
|
1935
|
-
_d = false;
|
1936
|
-
const page = _c;
|
1937
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1938
|
-
}
|
1939
|
-
}
|
1940
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
1941
|
-
finally {
|
1942
|
-
try {
|
1943
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
1944
|
-
}
|
1945
|
-
finally { if (e_1) throw e_1.error; }
|
1946
|
-
}
|
1947
|
-
});
|
1948
|
-
}
|
1949
|
-
/**
|
1950
|
-
* List Datadog marketplace agreements in the subscription.
|
1951
|
-
* @param options The options parameters.
|
1952
|
-
*/
|
1953
|
-
_list(options) {
|
1954
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$6);
|
1955
|
-
}
|
1956
|
-
/**
|
1957
|
-
* Create Datadog marketplace agreement in the subscription.
|
1958
|
-
* @param options The options parameters.
|
1959
|
-
*/
|
1960
|
-
createOrUpdate(options) {
|
1961
|
-
return this.client.sendOperationRequest({ options }, createOrUpdateOperationSpec$2);
|
1962
|
-
}
|
1963
|
-
/**
|
1964
|
-
* ListNext
|
1965
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
1966
|
-
* @param options The options parameters.
|
1967
|
-
*/
|
1968
|
-
_listNext(nextLink, options) {
|
1969
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$4);
|
1970
|
-
}
|
1971
|
-
}
|
1972
|
-
// Operation Specifications
|
1973
|
-
const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
1974
|
-
const listOperationSpec$6 = {
|
1975
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/agreements",
|
1976
|
-
httpMethod: "GET",
|
1977
|
-
responses: {
|
1978
|
-
200: {
|
1979
|
-
bodyMapper: DatadogAgreementResourceListResponse
|
1980
|
-
},
|
1981
|
-
default: {
|
1982
|
-
bodyMapper: ErrorResponse
|
1983
|
-
}
|
1984
|
-
},
|
1985
|
-
queryParameters: [apiVersion],
|
1986
|
-
urlParameters: [$host, subscriptionId],
|
1987
|
-
headerParameters: [accept],
|
1988
|
-
serializer: serializer$6
|
1989
|
-
};
|
1990
|
-
const createOrUpdateOperationSpec$2 = {
|
1991
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/agreements/default",
|
1992
|
-
httpMethod: "PUT",
|
1993
|
-
responses: {
|
1994
|
-
200: {
|
1995
|
-
bodyMapper: DatadogAgreementResource
|
1996
|
-
},
|
1997
|
-
default: {
|
1998
|
-
bodyMapper: ErrorResponse
|
1999
|
-
}
|
2000
|
-
},
|
2001
|
-
requestBody: body,
|
2002
|
-
queryParameters: [apiVersion],
|
2003
|
-
urlParameters: [$host, subscriptionId],
|
2004
|
-
headerParameters: [accept, contentType],
|
2005
|
-
mediaType: "json",
|
2006
|
-
serializer: serializer$6
|
2007
|
-
};
|
2008
|
-
const listNextOperationSpec$4 = {
|
2009
|
-
path: "{nextLink}",
|
2010
|
-
httpMethod: "GET",
|
2011
|
-
responses: {
|
2012
|
-
200: {
|
2013
|
-
bodyMapper: DatadogAgreementResourceListResponse
|
2014
|
-
},
|
2015
|
-
default: {
|
2016
|
-
bodyMapper: ErrorResponse
|
2017
|
-
}
|
2018
|
-
},
|
2019
|
-
urlParameters: [
|
2020
|
-
$host,
|
2021
|
-
subscriptionId,
|
2022
|
-
nextLink
|
2023
|
-
],
|
2024
|
-
headerParameters: [accept],
|
2025
|
-
serializer: serializer$6
|
2026
|
-
};
|
2027
|
-
|
2028
|
-
/*
|
2029
|
-
* Copyright (c) Microsoft Corporation.
|
2030
|
-
* Licensed under the MIT License.
|
2031
|
-
*
|
2032
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
2033
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
2034
|
-
*/
|
2035
|
-
/// <reference lib="esnext.asynciterable" />
|
2036
|
-
/** Class containing CreationSupported operations. */
|
2037
|
-
class CreationSupportedImpl {
|
2038
|
-
/**
|
2039
|
-
* Initialize a new instance of the class CreationSupported class.
|
2040
|
-
* @param client Reference to the service client
|
2041
|
-
*/
|
2042
|
-
constructor(client) {
|
2043
|
-
this.client = client;
|
2044
|
-
}
|
2045
|
-
/**
|
2046
|
-
* Informs if the current subscription is being already monitored for selected Datadog organization.
|
2047
|
-
* @param datadogOrganizationId Datadog Organization Id
|
2048
|
-
* @param options The options parameters.
|
2049
|
-
*/
|
2050
|
-
list(datadogOrganizationId, options) {
|
2051
|
-
const iter = this.listPagingAll(datadogOrganizationId, options);
|
2052
|
-
return {
|
2053
|
-
next() {
|
2054
|
-
return iter.next();
|
2055
|
-
},
|
2056
|
-
[Symbol.asyncIterator]() {
|
2057
|
-
return this;
|
2058
|
-
},
|
2059
|
-
byPage: (settings) => {
|
2060
|
-
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
2061
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
2062
|
-
}
|
2063
|
-
return this.listPagingPage(datadogOrganizationId, options, settings);
|
2064
|
-
}
|
2065
|
-
};
|
2066
|
-
}
|
2067
|
-
listPagingPage(datadogOrganizationId, options, _settings) {
|
2068
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
2069
|
-
let result;
|
2070
|
-
result = yield tslib.__await(this._list(datadogOrganizationId, options));
|
2071
|
-
yield yield tslib.__await(result.value || []);
|
2072
|
-
});
|
2073
|
-
}
|
2074
|
-
listPagingAll(datadogOrganizationId, options) {
|
2075
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
2076
|
-
var _a, e_1, _b, _c;
|
2077
|
-
try {
|
2078
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(datadogOrganizationId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
2079
|
-
_c = _f.value;
|
2080
|
-
_d = false;
|
2081
|
-
const page = _c;
|
2082
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2083
|
-
}
|
2084
|
-
}
|
2085
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
2086
|
-
finally {
|
2087
|
-
try {
|
2088
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
2089
|
-
}
|
2090
|
-
finally { if (e_1) throw e_1.error; }
|
2091
|
-
}
|
2092
|
-
});
|
2093
|
-
}
|
2094
|
-
/**
|
2095
|
-
* Informs if the current subscription is being already monitored for selected Datadog organization.
|
2096
|
-
* @param datadogOrganizationId Datadog Organization Id
|
2097
|
-
* @param options The options parameters.
|
2098
|
-
*/
|
2099
|
-
_list(datadogOrganizationId, options) {
|
2100
|
-
return this.client.sendOperationRequest({ datadogOrganizationId, options }, listOperationSpec$5);
|
2101
|
-
}
|
2102
|
-
/**
|
2103
|
-
* Informs if the current subscription is being already monitored for selected Datadog organization.
|
2104
|
-
* @param datadogOrganizationId Datadog Organization Id
|
2105
|
-
* @param options The options parameters.
|
2106
|
-
*/
|
2107
|
-
get(datadogOrganizationId, options) {
|
2108
|
-
return this.client.sendOperationRequest({ datadogOrganizationId, options }, getOperationSpec$4);
|
2109
|
-
}
|
2110
|
-
}
|
2111
|
-
// Operation Specifications
|
2112
|
-
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
2113
|
-
const listOperationSpec$5 = {
|
2114
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/subscriptionStatuses",
|
2115
|
-
httpMethod: "GET",
|
2116
|
-
responses: {
|
2117
|
-
200: {
|
2118
|
-
bodyMapper: CreateResourceSupportedResponseList
|
2119
|
-
},
|
2120
|
-
default: {
|
2121
|
-
bodyMapper: ErrorResponse
|
2122
|
-
}
|
2123
|
-
},
|
2124
|
-
queryParameters: [apiVersion, datadogOrganizationId],
|
2125
|
-
urlParameters: [$host, subscriptionId],
|
2126
|
-
headerParameters: [accept],
|
2127
|
-
serializer: serializer$5
|
2128
|
-
};
|
2129
|
-
const getOperationSpec$4 = {
|
2130
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/subscriptionStatuses/default",
|
2131
|
-
httpMethod: "GET",
|
2132
|
-
responses: {
|
2133
|
-
200: {
|
2134
|
-
bodyMapper: CreateResourceSupportedResponse
|
2135
|
-
},
|
2136
|
-
default: {
|
2137
|
-
bodyMapper: ErrorResponse
|
2138
|
-
}
|
2139
|
-
},
|
2140
|
-
queryParameters: [apiVersion, datadogOrganizationId],
|
2141
|
-
urlParameters: [$host, subscriptionId],
|
2142
|
-
headerParameters: [accept],
|
2143
|
-
serializer: serializer$5
|
2144
|
-
};
|
2145
|
-
|
2146
|
-
/*
|
2147
|
-
* Copyright (c) Microsoft Corporation.
|
2148
|
-
* Licensed under the MIT License.
|
2149
|
-
*
|
2150
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
2151
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
2152
|
-
*/
|
2153
|
-
function createLroSpec(inputs) {
|
2154
|
-
const { args, spec, sendOperationFn } = inputs;
|
2155
|
-
return {
|
2156
|
-
requestMethod: spec.httpMethod,
|
2157
|
-
requestPath: spec.path,
|
2158
|
-
sendInitialRequest: () => sendOperationFn(args, spec),
|
2159
|
-
sendPollRequest: (path, options) => {
|
2160
|
-
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
2161
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
|
2162
|
-
}
|
2163
|
-
};
|
2164
|
-
}
|
2165
|
-
|
2166
|
-
/*
|
2167
|
-
* Copyright (c) Microsoft Corporation.
|
2168
|
-
* Licensed under the MIT License.
|
2169
|
-
*
|
2170
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
2171
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
2172
|
-
*/
|
2173
|
-
/// <reference lib="esnext.asynciterable" />
|
2174
|
-
/** Class containing Monitors operations. */
|
2175
|
-
class MonitorsImpl {
|
2176
|
-
/**
|
2177
|
-
* Initialize a new instance of the class Monitors class.
|
2178
|
-
* @param client Reference to the service client
|
2179
|
-
*/
|
2180
|
-
constructor(client) {
|
2181
|
-
this.client = client;
|
2182
|
-
}
|
2183
|
-
/**
|
2184
|
-
* List the api keys for a given monitor resource.
|
2185
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2186
|
-
* @param monitorName Monitor resource name
|
2187
|
-
* @param options The options parameters.
|
2188
|
-
*/
|
2189
|
-
listApiKeys(resourceGroupName, monitorName, options) {
|
2190
|
-
const iter = this.listApiKeysPagingAll(resourceGroupName, monitorName, options);
|
2191
|
-
return {
|
2192
|
-
next() {
|
2193
|
-
return iter.next();
|
2194
|
-
},
|
2195
|
-
[Symbol.asyncIterator]() {
|
2196
|
-
return this;
|
2197
|
-
},
|
2198
|
-
byPage: (settings) => {
|
2199
|
-
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
2200
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
2201
|
-
}
|
2202
|
-
return this.listApiKeysPagingPage(resourceGroupName, monitorName, options, settings);
|
2203
|
-
}
|
2204
|
-
};
|
2205
|
-
}
|
2206
|
-
listApiKeysPagingPage(resourceGroupName, monitorName, options, settings) {
|
2207
|
-
return tslib.__asyncGenerator(this, arguments, function* listApiKeysPagingPage_1() {
|
2208
|
-
let result;
|
2209
|
-
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
2210
|
-
if (!continuationToken) {
|
2211
|
-
result = yield tslib.__await(this._listApiKeys(resourceGroupName, monitorName, options));
|
2212
|
-
let page = result.value || [];
|
2213
|
-
continuationToken = result.nextLink;
|
2214
|
-
setContinuationToken(page, continuationToken);
|
2215
|
-
yield yield tslib.__await(page);
|
2216
|
-
}
|
2217
|
-
while (continuationToken) {
|
2218
|
-
result = yield tslib.__await(this._listApiKeysNext(resourceGroupName, monitorName, continuationToken, options));
|
2219
|
-
continuationToken = result.nextLink;
|
2220
|
-
let page = result.value || [];
|
2221
|
-
setContinuationToken(page, continuationToken);
|
2222
|
-
yield yield tslib.__await(page);
|
2223
|
-
}
|
2224
|
-
});
|
2225
|
-
}
|
2226
|
-
listApiKeysPagingAll(resourceGroupName, monitorName, options) {
|
2227
|
-
return tslib.__asyncGenerator(this, arguments, function* listApiKeysPagingAll_1() {
|
2228
|
-
var _a, e_1, _b, _c;
|
2229
|
-
try {
|
2230
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listApiKeysPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
2231
|
-
_c = _f.value;
|
2232
|
-
_d = false;
|
2233
|
-
const page = _c;
|
2234
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2235
|
-
}
|
2236
|
-
}
|
2237
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
2238
|
-
finally {
|
2239
|
-
try {
|
2240
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
2241
|
-
}
|
2242
|
-
finally { if (e_1) throw e_1.error; }
|
2243
|
-
}
|
2244
|
-
});
|
2245
|
-
}
|
2246
|
-
/**
|
2247
|
-
* List the hosts for a given monitor resource.
|
2248
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2249
|
-
* @param monitorName Monitor resource name
|
2250
|
-
* @param options The options parameters.
|
2251
|
-
*/
|
2252
|
-
listHosts(resourceGroupName, monitorName, options) {
|
2253
|
-
const iter = this.listHostsPagingAll(resourceGroupName, monitorName, options);
|
2254
|
-
return {
|
2255
|
-
next() {
|
2256
|
-
return iter.next();
|
2257
|
-
},
|
2258
|
-
[Symbol.asyncIterator]() {
|
2259
|
-
return this;
|
2260
|
-
},
|
2261
|
-
byPage: (settings) => {
|
2262
|
-
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
2263
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
2264
|
-
}
|
2265
|
-
return this.listHostsPagingPage(resourceGroupName, monitorName, options, settings);
|
2266
|
-
}
|
2267
|
-
};
|
2268
|
-
}
|
2269
|
-
listHostsPagingPage(resourceGroupName, monitorName, options, settings) {
|
2270
|
-
return tslib.__asyncGenerator(this, arguments, function* listHostsPagingPage_1() {
|
2271
|
-
let result;
|
2272
|
-
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
2273
|
-
if (!continuationToken) {
|
2274
|
-
result = yield tslib.__await(this._listHosts(resourceGroupName, monitorName, options));
|
2275
|
-
let page = result.value || [];
|
2276
|
-
continuationToken = result.nextLink;
|
2277
|
-
setContinuationToken(page, continuationToken);
|
2278
|
-
yield yield tslib.__await(page);
|
2279
|
-
}
|
2280
|
-
while (continuationToken) {
|
2281
|
-
result = yield tslib.__await(this._listHostsNext(resourceGroupName, monitorName, continuationToken, options));
|
2282
|
-
continuationToken = result.nextLink;
|
2283
|
-
let page = result.value || [];
|
2284
|
-
setContinuationToken(page, continuationToken);
|
2285
|
-
yield yield tslib.__await(page);
|
2286
|
-
}
|
2287
|
-
});
|
2288
|
-
}
|
2289
|
-
listHostsPagingAll(resourceGroupName, monitorName, options) {
|
2290
|
-
return tslib.__asyncGenerator(this, arguments, function* listHostsPagingAll_1() {
|
2291
|
-
var _a, e_2, _b, _c;
|
2292
|
-
try {
|
2293
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listHostsPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
2294
|
-
_c = _f.value;
|
2295
|
-
_d = false;
|
2296
|
-
const page = _c;
|
2297
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2298
|
-
}
|
2299
|
-
}
|
2300
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
2301
|
-
finally {
|
2302
|
-
try {
|
2303
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
2304
|
-
}
|
2305
|
-
finally { if (e_2) throw e_2.error; }
|
2306
|
-
}
|
2307
|
-
});
|
2308
|
-
}
|
2309
|
-
/**
|
2310
|
-
* List all Azure resources associated to the same Datadog organization as the target resource.
|
2311
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2312
|
-
* @param monitorName Monitor resource name
|
2313
|
-
* @param options The options parameters.
|
2314
|
-
*/
|
2315
|
-
listLinkedResources(resourceGroupName, monitorName, options) {
|
2316
|
-
const iter = this.listLinkedResourcesPagingAll(resourceGroupName, monitorName, options);
|
2317
|
-
return {
|
2318
|
-
next() {
|
2319
|
-
return iter.next();
|
2320
|
-
},
|
2321
|
-
[Symbol.asyncIterator]() {
|
2322
|
-
return this;
|
2323
|
-
},
|
2324
|
-
byPage: (settings) => {
|
2325
|
-
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
2326
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
2327
|
-
}
|
2328
|
-
return this.listLinkedResourcesPagingPage(resourceGroupName, monitorName, options, settings);
|
2329
|
-
}
|
2330
|
-
};
|
2331
|
-
}
|
2332
|
-
listLinkedResourcesPagingPage(resourceGroupName, monitorName, options, settings) {
|
2333
|
-
return tslib.__asyncGenerator(this, arguments, function* listLinkedResourcesPagingPage_1() {
|
2334
|
-
let result;
|
2335
|
-
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
2336
|
-
if (!continuationToken) {
|
2337
|
-
result = yield tslib.__await(this._listLinkedResources(resourceGroupName, monitorName, options));
|
2338
|
-
let page = result.value || [];
|
2339
|
-
continuationToken = result.nextLink;
|
2340
|
-
setContinuationToken(page, continuationToken);
|
2341
|
-
yield yield tslib.__await(page);
|
2342
|
-
}
|
2343
|
-
while (continuationToken) {
|
2344
|
-
result = yield tslib.__await(this._listLinkedResourcesNext(resourceGroupName, monitorName, continuationToken, options));
|
2345
|
-
continuationToken = result.nextLink;
|
2346
|
-
let page = result.value || [];
|
2347
|
-
setContinuationToken(page, continuationToken);
|
2348
|
-
yield yield tslib.__await(page);
|
2349
|
-
}
|
2350
|
-
});
|
2351
|
-
}
|
2352
|
-
listLinkedResourcesPagingAll(resourceGroupName, monitorName, options) {
|
2353
|
-
return tslib.__asyncGenerator(this, arguments, function* listLinkedResourcesPagingAll_1() {
|
2354
|
-
var _a, e_3, _b, _c;
|
2355
|
-
try {
|
2356
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listLinkedResourcesPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
2357
|
-
_c = _f.value;
|
2358
|
-
_d = false;
|
2359
|
-
const page = _c;
|
2360
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2361
|
-
}
|
2362
|
-
}
|
2363
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
2364
|
-
finally {
|
2365
|
-
try {
|
2366
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
2367
|
-
}
|
2368
|
-
finally { if (e_3) throw e_3.error; }
|
2369
|
-
}
|
2370
|
-
});
|
2371
|
-
}
|
2372
|
-
/**
|
2373
|
-
* List the resources currently being monitored by the Datadog monitor resource.
|
2374
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2375
|
-
* @param monitorName Monitor resource name
|
2376
|
-
* @param options The options parameters.
|
2377
|
-
*/
|
2378
|
-
listMonitoredResources(resourceGroupName, monitorName, options) {
|
2379
|
-
const iter = this.listMonitoredResourcesPagingAll(resourceGroupName, monitorName, options);
|
2380
|
-
return {
|
2381
|
-
next() {
|
2382
|
-
return iter.next();
|
2383
|
-
},
|
2384
|
-
[Symbol.asyncIterator]() {
|
2385
|
-
return this;
|
2386
|
-
},
|
2387
|
-
byPage: (settings) => {
|
2388
|
-
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
2389
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
2390
|
-
}
|
2391
|
-
return this.listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options, settings);
|
2392
|
-
}
|
2393
|
-
};
|
2394
|
-
}
|
2395
|
-
listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options, settings) {
|
2396
|
-
return tslib.__asyncGenerator(this, arguments, function* listMonitoredResourcesPagingPage_1() {
|
2397
|
-
let result;
|
2398
|
-
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
2399
|
-
if (!continuationToken) {
|
2400
|
-
result = yield tslib.__await(this._listMonitoredResources(resourceGroupName, monitorName, options));
|
2401
|
-
let page = result.value || [];
|
2402
|
-
continuationToken = result.nextLink;
|
2403
|
-
setContinuationToken(page, continuationToken);
|
2404
|
-
yield yield tslib.__await(page);
|
2405
|
-
}
|
2406
|
-
while (continuationToken) {
|
2407
|
-
result = yield tslib.__await(this._listMonitoredResourcesNext(resourceGroupName, monitorName, continuationToken, options));
|
2408
|
-
continuationToken = result.nextLink;
|
2409
|
-
let page = result.value || [];
|
2410
|
-
setContinuationToken(page, continuationToken);
|
2411
|
-
yield yield tslib.__await(page);
|
2412
|
-
}
|
2413
|
-
});
|
2414
|
-
}
|
2415
|
-
listMonitoredResourcesPagingAll(resourceGroupName, monitorName, options) {
|
2416
|
-
return tslib.__asyncGenerator(this, arguments, function* listMonitoredResourcesPagingAll_1() {
|
2417
|
-
var _a, e_4, _b, _c;
|
2418
|
-
try {
|
2419
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
2420
|
-
_c = _f.value;
|
2421
|
-
_d = false;
|
2422
|
-
const page = _c;
|
2423
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2424
|
-
}
|
2425
|
-
}
|
2426
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
2427
|
-
finally {
|
2428
|
-
try {
|
2429
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
2430
|
-
}
|
2431
|
-
finally { if (e_4) throw e_4.error; }
|
2432
|
-
}
|
2433
|
-
});
|
2434
|
-
}
|
2435
|
-
/**
|
2436
|
-
* List all monitors under the specified subscription.
|
2437
|
-
* @param options The options parameters.
|
2438
|
-
*/
|
2439
|
-
list(options) {
|
2440
|
-
const iter = this.listPagingAll(options);
|
2441
|
-
return {
|
2442
|
-
next() {
|
2443
|
-
return iter.next();
|
2444
|
-
},
|
2445
|
-
[Symbol.asyncIterator]() {
|
2446
|
-
return this;
|
2447
|
-
},
|
2448
|
-
byPage: (settings) => {
|
2449
|
-
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
2450
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
2451
|
-
}
|
2452
|
-
return this.listPagingPage(options, settings);
|
2453
|
-
}
|
2454
|
-
};
|
2455
|
-
}
|
2456
|
-
listPagingPage(options, settings) {
|
2457
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
2458
|
-
let result;
|
2459
|
-
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
2460
|
-
if (!continuationToken) {
|
2461
|
-
result = yield tslib.__await(this._list(options));
|
2462
|
-
let page = result.value || [];
|
2463
|
-
continuationToken = result.nextLink;
|
2464
|
-
setContinuationToken(page, continuationToken);
|
2465
|
-
yield yield tslib.__await(page);
|
2466
|
-
}
|
2467
|
-
while (continuationToken) {
|
2468
|
-
result = yield tslib.__await(this._listNext(continuationToken, options));
|
2469
|
-
continuationToken = result.nextLink;
|
2470
|
-
let page = result.value || [];
|
2471
|
-
setContinuationToken(page, continuationToken);
|
2472
|
-
yield yield tslib.__await(page);
|
2473
|
-
}
|
2474
|
-
});
|
2475
|
-
}
|
2476
|
-
listPagingAll(options) {
|
2477
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
2478
|
-
var _a, e_5, _b, _c;
|
2479
|
-
try {
|
2480
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
2481
|
-
_c = _f.value;
|
2482
|
-
_d = false;
|
2483
|
-
const page = _c;
|
2484
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2485
|
-
}
|
2486
|
-
}
|
2487
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
2488
|
-
finally {
|
2489
|
-
try {
|
2490
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
2491
|
-
}
|
2492
|
-
finally { if (e_5) throw e_5.error; }
|
2493
|
-
}
|
2494
|
-
});
|
2495
|
-
}
|
2496
|
-
/**
|
2497
|
-
* List all monitors under the specified resource group.
|
2498
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2499
|
-
* @param options The options parameters.
|
2500
|
-
*/
|
2501
|
-
listByResourceGroup(resourceGroupName, options) {
|
2502
|
-
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
2503
|
-
return {
|
2504
|
-
next() {
|
2505
|
-
return iter.next();
|
2506
|
-
},
|
2507
|
-
[Symbol.asyncIterator]() {
|
2508
|
-
return this;
|
2509
|
-
},
|
2510
|
-
byPage: (settings) => {
|
2511
|
-
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
2512
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
2513
|
-
}
|
2514
|
-
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
2515
|
-
}
|
2516
|
-
};
|
2517
|
-
}
|
2518
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
2519
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
2520
|
-
let result;
|
2521
|
-
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
2522
|
-
if (!continuationToken) {
|
2523
|
-
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
2524
|
-
let page = result.value || [];
|
2525
|
-
continuationToken = result.nextLink;
|
2526
|
-
setContinuationToken(page, continuationToken);
|
2527
|
-
yield yield tslib.__await(page);
|
2528
|
-
}
|
2529
|
-
while (continuationToken) {
|
2530
|
-
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
2531
|
-
continuationToken = result.nextLink;
|
2532
|
-
let page = result.value || [];
|
2533
|
-
setContinuationToken(page, continuationToken);
|
2534
|
-
yield yield tslib.__await(page);
|
2535
|
-
}
|
2536
|
-
});
|
2537
|
-
}
|
2538
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
2539
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
2540
|
-
var _a, e_6, _b, _c;
|
2541
|
-
try {
|
2542
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
2543
|
-
_c = _f.value;
|
2544
|
-
_d = false;
|
2545
|
-
const page = _c;
|
2546
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
2547
|
-
}
|
2548
|
-
}
|
2549
|
-
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
2550
|
-
finally {
|
2551
|
-
try {
|
2552
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
2553
|
-
}
|
2554
|
-
finally { if (e_6) throw e_6.error; }
|
2555
|
-
}
|
2556
|
-
});
|
2557
|
-
}
|
2558
|
-
/**
|
2559
|
-
* List the api keys for a given monitor resource.
|
2560
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2561
|
-
* @param monitorName Monitor resource name
|
2562
|
-
* @param options The options parameters.
|
2563
|
-
*/
|
2564
|
-
_listApiKeys(resourceGroupName, monitorName, options) {
|
2565
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listApiKeysOperationSpec);
|
2566
|
-
}
|
2567
|
-
/**
|
2568
|
-
* Get the default api key.
|
2569
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2570
|
-
* @param monitorName Monitor resource name
|
2571
|
-
* @param options The options parameters.
|
2572
|
-
*/
|
2573
|
-
getDefaultKey(resourceGroupName, monitorName, options) {
|
2574
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, getDefaultKeyOperationSpec);
|
2575
|
-
}
|
2576
|
-
/**
|
2577
|
-
* Set the default api key.
|
2578
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2579
|
-
* @param monitorName Monitor resource name
|
2580
|
-
* @param options The options parameters.
|
2581
|
-
*/
|
2582
|
-
setDefaultKey(resourceGroupName, monitorName, options) {
|
2583
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, setDefaultKeyOperationSpec);
|
2584
|
-
}
|
2585
|
-
/**
|
2586
|
-
* List the hosts for a given monitor resource.
|
2587
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2588
|
-
* @param monitorName Monitor resource name
|
2589
|
-
* @param options The options parameters.
|
2590
|
-
*/
|
2591
|
-
_listHosts(resourceGroupName, monitorName, options) {
|
2592
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listHostsOperationSpec);
|
2593
|
-
}
|
2594
|
-
/**
|
2595
|
-
* List all Azure resources associated to the same Datadog organization as the target resource.
|
2596
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2597
|
-
* @param monitorName Monitor resource name
|
2598
|
-
* @param options The options parameters.
|
2599
|
-
*/
|
2600
|
-
_listLinkedResources(resourceGroupName, monitorName, options) {
|
2601
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listLinkedResourcesOperationSpec);
|
2602
|
-
}
|
2603
|
-
/**
|
2604
|
-
* List the resources currently being monitored by the Datadog monitor resource.
|
2605
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2606
|
-
* @param monitorName Monitor resource name
|
2607
|
-
* @param options The options parameters.
|
2608
|
-
*/
|
2609
|
-
_listMonitoredResources(resourceGroupName, monitorName, options) {
|
2610
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listMonitoredResourcesOperationSpec);
|
2611
|
-
}
|
2612
|
-
/**
|
2613
|
-
* List all monitors under the specified subscription.
|
2614
|
-
* @param options The options parameters.
|
2615
|
-
*/
|
2616
|
-
_list(options) {
|
2617
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$4);
|
2618
|
-
}
|
2619
|
-
/**
|
2620
|
-
* List all monitors under the specified resource group.
|
2621
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2622
|
-
* @param options The options parameters.
|
2623
|
-
*/
|
2624
|
-
_listByResourceGroup(resourceGroupName, options) {
|
2625
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
2626
|
-
}
|
2627
|
-
/**
|
2628
|
-
* Get the properties of a specific monitor resource.
|
2629
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2630
|
-
* @param monitorName Monitor resource name
|
2631
|
-
* @param options The options parameters.
|
2632
|
-
*/
|
2633
|
-
get(resourceGroupName, monitorName, options) {
|
2634
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, getOperationSpec$3);
|
2635
|
-
}
|
2636
|
-
/**
|
2637
|
-
* Create a monitor resource.
|
2638
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2639
|
-
* @param monitorName Monitor resource name
|
2640
|
-
* @param options The options parameters.
|
2641
|
-
*/
|
2642
|
-
beginCreate(resourceGroupName, monitorName, options) {
|
2643
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
2644
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
2645
|
-
return this.client.sendOperationRequest(args, spec);
|
2646
|
-
});
|
2647
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
2648
|
-
var _a;
|
2649
|
-
let currentRawResponse = undefined;
|
2650
|
-
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
2651
|
-
const callback = (rawResponse, flatResponse) => {
|
2652
|
-
currentRawResponse = rawResponse;
|
2653
|
-
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
2654
|
-
};
|
2655
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
2656
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
2657
|
-
return {
|
2658
|
-
flatResponse,
|
2659
|
-
rawResponse: {
|
2660
|
-
statusCode: currentRawResponse.status,
|
2661
|
-
body: currentRawResponse.parsedBody,
|
2662
|
-
headers: currentRawResponse.headers.toJSON()
|
2663
|
-
}
|
2664
|
-
};
|
2665
|
-
});
|
2666
|
-
const lro = createLroSpec({
|
2667
|
-
sendOperationFn,
|
2668
|
-
args: { resourceGroupName, monitorName, options },
|
2669
|
-
spec: createOperationSpec
|
2670
|
-
});
|
2671
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
2672
|
-
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
2673
|
-
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
2674
|
-
resourceLocationConfig: "azure-async-operation"
|
2675
|
-
});
|
2676
|
-
yield poller.poll();
|
2677
|
-
return poller;
|
2678
|
-
});
|
2679
|
-
}
|
2680
|
-
/**
|
2681
|
-
* Create a monitor resource.
|
2682
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2683
|
-
* @param monitorName Monitor resource name
|
2684
|
-
* @param options The options parameters.
|
2685
|
-
*/
|
2686
|
-
beginCreateAndWait(resourceGroupName, monitorName, options) {
|
2687
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
2688
|
-
const poller = yield this.beginCreate(resourceGroupName, monitorName, options);
|
2689
|
-
return poller.pollUntilDone();
|
2690
|
-
});
|
2691
|
-
}
|
2692
|
-
/**
|
2693
|
-
* Update a monitor resource.
|
2694
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2695
|
-
* @param monitorName Monitor resource name
|
2696
|
-
* @param options The options parameters.
|
2697
|
-
*/
|
2698
|
-
beginUpdate(resourceGroupName, monitorName, options) {
|
2699
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
2700
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
2701
|
-
return this.client.sendOperationRequest(args, spec);
|
2702
|
-
});
|
2703
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
2704
|
-
var _a;
|
2705
|
-
let currentRawResponse = undefined;
|
2706
|
-
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
2707
|
-
const callback = (rawResponse, flatResponse) => {
|
2708
|
-
currentRawResponse = rawResponse;
|
2709
|
-
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
2710
|
-
};
|
2711
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
2712
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
2713
|
-
return {
|
2714
|
-
flatResponse,
|
2715
|
-
rawResponse: {
|
2716
|
-
statusCode: currentRawResponse.status,
|
2717
|
-
body: currentRawResponse.parsedBody,
|
2718
|
-
headers: currentRawResponse.headers.toJSON()
|
2719
|
-
}
|
2720
|
-
};
|
2721
|
-
});
|
2722
|
-
const lro = createLroSpec({
|
2723
|
-
sendOperationFn,
|
2724
|
-
args: { resourceGroupName, monitorName, options },
|
2725
|
-
spec: updateOperationSpec$1
|
2726
|
-
});
|
2727
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
2728
|
-
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
2729
|
-
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
2730
|
-
});
|
2731
|
-
yield poller.poll();
|
2732
|
-
return poller;
|
2733
|
-
});
|
2734
|
-
}
|
2735
|
-
/**
|
2736
|
-
* Update a monitor resource.
|
2737
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2738
|
-
* @param monitorName Monitor resource name
|
2739
|
-
* @param options The options parameters.
|
2740
|
-
*/
|
2741
|
-
beginUpdateAndWait(resourceGroupName, monitorName, options) {
|
2742
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
2743
|
-
const poller = yield this.beginUpdate(resourceGroupName, monitorName, options);
|
2744
|
-
return poller.pollUntilDone();
|
2745
|
-
});
|
2746
|
-
}
|
2747
|
-
/**
|
2748
|
-
* Delete a monitor resource.
|
2749
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2750
|
-
* @param monitorName Monitor resource name
|
2751
|
-
* @param options The options parameters.
|
2752
|
-
*/
|
2753
|
-
beginDelete(resourceGroupName, monitorName, options) {
|
2754
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
2755
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
2756
|
-
return this.client.sendOperationRequest(args, spec);
|
2757
|
-
});
|
2758
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
2759
|
-
var _a;
|
2760
|
-
let currentRawResponse = undefined;
|
2761
|
-
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
2762
|
-
const callback = (rawResponse, flatResponse) => {
|
2763
|
-
currentRawResponse = rawResponse;
|
2764
|
-
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
2765
|
-
};
|
2766
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
2767
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
2768
|
-
return {
|
2769
|
-
flatResponse,
|
2770
|
-
rawResponse: {
|
2771
|
-
statusCode: currentRawResponse.status,
|
2772
|
-
body: currentRawResponse.parsedBody,
|
2773
|
-
headers: currentRawResponse.headers.toJSON()
|
2774
|
-
}
|
2775
|
-
};
|
2776
|
-
});
|
2777
|
-
const lro = createLroSpec({
|
2778
|
-
sendOperationFn,
|
2779
|
-
args: { resourceGroupName, monitorName, options },
|
2780
|
-
spec: deleteOperationSpec$1
|
2781
|
-
});
|
2782
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
2783
|
-
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
2784
|
-
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
2785
|
-
});
|
2786
|
-
yield poller.poll();
|
2787
|
-
return poller;
|
2788
|
-
});
|
2789
|
-
}
|
2790
|
-
/**
|
2791
|
-
* Delete a monitor resource.
|
2792
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2793
|
-
* @param monitorName Monitor resource name
|
2794
|
-
* @param options The options parameters.
|
2795
|
-
*/
|
2796
|
-
beginDeleteAndWait(resourceGroupName, monitorName, options) {
|
2797
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
2798
|
-
const poller = yield this.beginDelete(resourceGroupName, monitorName, options);
|
2799
|
-
return poller.pollUntilDone();
|
2800
|
-
});
|
2801
|
-
}
|
2802
|
-
/**
|
2803
|
-
* Refresh the set password link and return a latest one.
|
2804
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2805
|
-
* @param monitorName Monitor resource name
|
2806
|
-
* @param options The options parameters.
|
2807
|
-
*/
|
2808
|
-
refreshSetPasswordLink(resourceGroupName, monitorName, options) {
|
2809
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, refreshSetPasswordLinkOperationSpec);
|
2810
|
-
}
|
2811
|
-
/**
|
2812
|
-
* ListApiKeysNext
|
2813
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2814
|
-
* @param monitorName Monitor resource name
|
2815
|
-
* @param nextLink The nextLink from the previous successful call to the ListApiKeys method.
|
2816
|
-
* @param options The options parameters.
|
2817
|
-
*/
|
2818
|
-
_listApiKeysNext(resourceGroupName, monitorName, nextLink, options) {
|
2819
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listApiKeysNextOperationSpec);
|
2820
|
-
}
|
2821
|
-
/**
|
2822
|
-
* ListHostsNext
|
2823
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2824
|
-
* @param monitorName Monitor resource name
|
2825
|
-
* @param nextLink The nextLink from the previous successful call to the ListHosts method.
|
2826
|
-
* @param options The options parameters.
|
2827
|
-
*/
|
2828
|
-
_listHostsNext(resourceGroupName, monitorName, nextLink, options) {
|
2829
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listHostsNextOperationSpec);
|
2830
|
-
}
|
2831
|
-
/**
|
2832
|
-
* ListLinkedResourcesNext
|
2833
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2834
|
-
* @param monitorName Monitor resource name
|
2835
|
-
* @param nextLink The nextLink from the previous successful call to the ListLinkedResources method.
|
2836
|
-
* @param options The options parameters.
|
2837
|
-
*/
|
2838
|
-
_listLinkedResourcesNext(resourceGroupName, monitorName, nextLink, options) {
|
2839
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listLinkedResourcesNextOperationSpec);
|
2840
|
-
}
|
2841
|
-
/**
|
2842
|
-
* ListMonitoredResourcesNext
|
2843
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2844
|
-
* @param monitorName Monitor resource name
|
2845
|
-
* @param nextLink The nextLink from the previous successful call to the ListMonitoredResources method.
|
2846
|
-
* @param options The options parameters.
|
2847
|
-
*/
|
2848
|
-
_listMonitoredResourcesNext(resourceGroupName, monitorName, nextLink, options) {
|
2849
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listMonitoredResourcesNextOperationSpec);
|
2850
|
-
}
|
2851
|
-
/**
|
2852
|
-
* ListNext
|
2853
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
2854
|
-
* @param options The options parameters.
|
2855
|
-
*/
|
2856
|
-
_listNext(nextLink, options) {
|
2857
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$3);
|
2858
|
-
}
|
2859
|
-
/**
|
2860
|
-
* ListByResourceGroupNext
|
2861
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2862
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
2863
|
-
* @param options The options parameters.
|
2864
|
-
*/
|
2865
|
-
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
2866
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
2867
|
-
}
|
2868
|
-
}
|
2869
|
-
// Operation Specifications
|
2870
|
-
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
2871
|
-
const listApiKeysOperationSpec = {
|
2872
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listApiKeys",
|
2873
|
-
httpMethod: "POST",
|
2874
|
-
responses: {
|
2875
|
-
200: {
|
2876
|
-
bodyMapper: DatadogApiKeyListResponse
|
2877
|
-
},
|
2878
|
-
default: {
|
2879
|
-
bodyMapper: ErrorResponse
|
2880
|
-
}
|
2881
|
-
},
|
2882
|
-
queryParameters: [apiVersion],
|
2883
|
-
urlParameters: [
|
2884
|
-
$host,
|
2885
|
-
subscriptionId,
|
2886
|
-
resourceGroupName,
|
2887
|
-
monitorName
|
2888
|
-
],
|
2889
|
-
headerParameters: [accept],
|
2890
|
-
serializer: serializer$4
|
2891
|
-
};
|
2892
|
-
const getDefaultKeyOperationSpec = {
|
2893
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/getDefaultKey",
|
2894
|
-
httpMethod: "POST",
|
2895
|
-
responses: {
|
2896
|
-
200: {
|
2897
|
-
bodyMapper: DatadogApiKey
|
2898
|
-
},
|
2899
|
-
default: {
|
2900
|
-
bodyMapper: ErrorResponse
|
2901
|
-
}
|
2902
|
-
},
|
2903
|
-
queryParameters: [apiVersion],
|
2904
|
-
urlParameters: [
|
2905
|
-
$host,
|
2906
|
-
subscriptionId,
|
2907
|
-
resourceGroupName,
|
2908
|
-
monitorName
|
2909
|
-
],
|
2910
|
-
headerParameters: [accept],
|
2911
|
-
serializer: serializer$4
|
2912
|
-
};
|
2913
|
-
const setDefaultKeyOperationSpec = {
|
2914
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/setDefaultKey",
|
2915
|
-
httpMethod: "POST",
|
2916
|
-
responses: {
|
2917
|
-
200: {},
|
2918
|
-
default: {
|
2919
|
-
bodyMapper: ErrorResponse
|
2920
|
-
}
|
2921
|
-
},
|
2922
|
-
requestBody: body1,
|
2923
|
-
queryParameters: [apiVersion],
|
2924
|
-
urlParameters: [
|
2925
|
-
$host,
|
2926
|
-
subscriptionId,
|
2927
|
-
resourceGroupName,
|
2928
|
-
monitorName
|
2929
|
-
],
|
2930
|
-
headerParameters: [accept, contentType],
|
2931
|
-
mediaType: "json",
|
2932
|
-
serializer: serializer$4
|
2933
|
-
};
|
2934
|
-
const listHostsOperationSpec = {
|
2935
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listHosts",
|
2936
|
-
httpMethod: "POST",
|
2937
|
-
responses: {
|
2938
|
-
200: {
|
2939
|
-
bodyMapper: DatadogHostListResponse
|
2940
|
-
},
|
2941
|
-
default: {
|
2942
|
-
bodyMapper: ErrorResponse
|
2943
|
-
}
|
2944
|
-
},
|
2945
|
-
queryParameters: [apiVersion],
|
2946
|
-
urlParameters: [
|
2947
|
-
$host,
|
2948
|
-
subscriptionId,
|
2949
|
-
resourceGroupName,
|
2950
|
-
monitorName
|
2951
|
-
],
|
2952
|
-
headerParameters: [accept],
|
2953
|
-
serializer: serializer$4
|
2954
|
-
};
|
2955
|
-
const listLinkedResourcesOperationSpec = {
|
2956
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listLinkedResources",
|
2957
|
-
httpMethod: "POST",
|
2958
|
-
responses: {
|
2959
|
-
200: {
|
2960
|
-
bodyMapper: LinkedResourceListResponse
|
2961
|
-
},
|
2962
|
-
default: {
|
2963
|
-
bodyMapper: ErrorResponse
|
2964
|
-
}
|
2965
|
-
},
|
2966
|
-
queryParameters: [apiVersion],
|
2967
|
-
urlParameters: [
|
2968
|
-
$host,
|
2969
|
-
subscriptionId,
|
2970
|
-
resourceGroupName,
|
2971
|
-
monitorName
|
2972
|
-
],
|
2973
|
-
headerParameters: [accept],
|
2974
|
-
serializer: serializer$4
|
2975
|
-
};
|
2976
|
-
const listMonitoredResourcesOperationSpec = {
|
2977
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listMonitoredResources",
|
2978
|
-
httpMethod: "POST",
|
2979
|
-
responses: {
|
2980
|
-
200: {
|
2981
|
-
bodyMapper: MonitoredResourceListResponse
|
2982
|
-
},
|
2983
|
-
default: {
|
2984
|
-
bodyMapper: ErrorResponse
|
2985
|
-
}
|
2986
|
-
},
|
2987
|
-
queryParameters: [apiVersion],
|
2988
|
-
urlParameters: [
|
2989
|
-
$host,
|
2990
|
-
subscriptionId,
|
2991
|
-
resourceGroupName,
|
2992
|
-
monitorName
|
2993
|
-
],
|
2994
|
-
headerParameters: [accept],
|
2995
|
-
serializer: serializer$4
|
2996
|
-
};
|
2997
|
-
const listOperationSpec$4 = {
|
2998
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/monitors",
|
2999
|
-
httpMethod: "GET",
|
3000
|
-
responses: {
|
3001
|
-
200: {
|
3002
|
-
bodyMapper: DatadogMonitorResourceListResponse
|
3003
|
-
},
|
3004
|
-
default: {
|
3005
|
-
bodyMapper: ErrorResponse
|
3006
|
-
}
|
3007
|
-
},
|
3008
|
-
queryParameters: [apiVersion],
|
3009
|
-
urlParameters: [$host, subscriptionId],
|
3010
|
-
headerParameters: [accept],
|
3011
|
-
serializer: serializer$4
|
3012
|
-
};
|
3013
|
-
const listByResourceGroupOperationSpec = {
|
3014
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors",
|
3015
|
-
httpMethod: "GET",
|
3016
|
-
responses: {
|
3017
|
-
200: {
|
3018
|
-
bodyMapper: DatadogMonitorResourceListResponse
|
3019
|
-
},
|
3020
|
-
default: {
|
3021
|
-
bodyMapper: ErrorResponse
|
3022
|
-
}
|
3023
|
-
},
|
3024
|
-
queryParameters: [apiVersion],
|
3025
|
-
urlParameters: [
|
3026
|
-
$host,
|
3027
|
-
subscriptionId,
|
3028
|
-
resourceGroupName
|
3029
|
-
],
|
3030
|
-
headerParameters: [accept],
|
3031
|
-
serializer: serializer$4
|
3032
|
-
};
|
3033
|
-
const getOperationSpec$3 = {
|
3034
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}",
|
3035
|
-
httpMethod: "GET",
|
3036
|
-
responses: {
|
3037
|
-
200: {
|
3038
|
-
bodyMapper: DatadogMonitorResource
|
3039
|
-
},
|
3040
|
-
default: {
|
3041
|
-
bodyMapper: ErrorResponse
|
3042
|
-
}
|
3043
|
-
},
|
3044
|
-
queryParameters: [apiVersion],
|
3045
|
-
urlParameters: [
|
3046
|
-
$host,
|
3047
|
-
subscriptionId,
|
3048
|
-
resourceGroupName,
|
3049
|
-
monitorName
|
3050
|
-
],
|
3051
|
-
headerParameters: [accept],
|
3052
|
-
serializer: serializer$4
|
3053
|
-
};
|
3054
|
-
const createOperationSpec = {
|
3055
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}",
|
3056
|
-
httpMethod: "PUT",
|
3057
|
-
responses: {
|
3058
|
-
200: {
|
3059
|
-
bodyMapper: DatadogMonitorResource
|
3060
|
-
},
|
3061
|
-
201: {
|
3062
|
-
bodyMapper: DatadogMonitorResource
|
3063
|
-
},
|
3064
|
-
202: {
|
3065
|
-
bodyMapper: DatadogMonitorResource
|
3066
|
-
},
|
3067
|
-
204: {
|
3068
|
-
bodyMapper: DatadogMonitorResource
|
3069
|
-
},
|
3070
|
-
default: {
|
3071
|
-
bodyMapper: ErrorResponse
|
3072
|
-
}
|
3073
|
-
},
|
3074
|
-
requestBody: body2,
|
3075
|
-
queryParameters: [apiVersion],
|
3076
|
-
urlParameters: [
|
3077
|
-
$host,
|
3078
|
-
subscriptionId,
|
3079
|
-
resourceGroupName,
|
3080
|
-
monitorName
|
3081
|
-
],
|
3082
|
-
headerParameters: [accept, contentType],
|
3083
|
-
mediaType: "json",
|
3084
|
-
serializer: serializer$4
|
3085
|
-
};
|
3086
|
-
const updateOperationSpec$1 = {
|
3087
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}",
|
3088
|
-
httpMethod: "PATCH",
|
3089
|
-
responses: {
|
3090
|
-
200: {
|
3091
|
-
bodyMapper: DatadogMonitorResource
|
3092
|
-
},
|
3093
|
-
201: {
|
3094
|
-
bodyMapper: DatadogMonitorResource
|
3095
|
-
},
|
3096
|
-
202: {
|
3097
|
-
bodyMapper: DatadogMonitorResource
|
3098
|
-
},
|
3099
|
-
204: {
|
3100
|
-
bodyMapper: DatadogMonitorResource
|
3101
|
-
},
|
3102
|
-
default: {
|
3103
|
-
bodyMapper: ErrorResponse
|
3104
|
-
}
|
3105
|
-
},
|
3106
|
-
requestBody: body3,
|
3107
|
-
queryParameters: [apiVersion],
|
3108
|
-
urlParameters: [
|
3109
|
-
$host,
|
3110
|
-
subscriptionId,
|
3111
|
-
resourceGroupName,
|
3112
|
-
monitorName
|
3113
|
-
],
|
3114
|
-
headerParameters: [accept, contentType],
|
3115
|
-
mediaType: "json",
|
3116
|
-
serializer: serializer$4
|
3117
|
-
};
|
3118
|
-
const deleteOperationSpec$1 = {
|
3119
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}",
|
3120
|
-
httpMethod: "DELETE",
|
3121
|
-
responses: {
|
3122
|
-
200: {},
|
3123
|
-
201: {},
|
3124
|
-
202: {},
|
3125
|
-
204: {},
|
3126
|
-
default: {
|
3127
|
-
bodyMapper: ErrorResponse
|
3128
|
-
}
|
3129
|
-
},
|
3130
|
-
queryParameters: [apiVersion],
|
3131
|
-
urlParameters: [
|
3132
|
-
$host,
|
3133
|
-
subscriptionId,
|
3134
|
-
resourceGroupName,
|
3135
|
-
monitorName
|
3136
|
-
],
|
3137
|
-
headerParameters: [accept],
|
3138
|
-
serializer: serializer$4
|
3139
|
-
};
|
3140
|
-
const refreshSetPasswordLinkOperationSpec = {
|
3141
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/refreshSetPasswordLink",
|
3142
|
-
httpMethod: "POST",
|
3143
|
-
responses: {
|
3144
|
-
200: {
|
3145
|
-
bodyMapper: DatadogSetPasswordLink
|
3146
|
-
},
|
3147
|
-
default: {
|
3148
|
-
bodyMapper: ErrorResponse
|
3149
|
-
}
|
3150
|
-
},
|
3151
|
-
queryParameters: [apiVersion],
|
3152
|
-
urlParameters: [
|
3153
|
-
$host,
|
3154
|
-
subscriptionId,
|
3155
|
-
resourceGroupName,
|
3156
|
-
monitorName
|
3157
|
-
],
|
3158
|
-
headerParameters: [accept],
|
3159
|
-
serializer: serializer$4
|
3160
|
-
};
|
3161
|
-
const listApiKeysNextOperationSpec = {
|
3162
|
-
path: "{nextLink}",
|
3163
|
-
httpMethod: "GET",
|
3164
|
-
responses: {
|
3165
|
-
200: {
|
3166
|
-
bodyMapper: DatadogApiKeyListResponse
|
3167
|
-
},
|
3168
|
-
default: {
|
3169
|
-
bodyMapper: ErrorResponse
|
3170
|
-
}
|
3171
|
-
},
|
3172
|
-
urlParameters: [
|
3173
|
-
$host,
|
3174
|
-
subscriptionId,
|
3175
|
-
nextLink,
|
3176
|
-
resourceGroupName,
|
3177
|
-
monitorName
|
3178
|
-
],
|
3179
|
-
headerParameters: [accept],
|
3180
|
-
serializer: serializer$4
|
3181
|
-
};
|
3182
|
-
const listHostsNextOperationSpec = {
|
3183
|
-
path: "{nextLink}",
|
3184
|
-
httpMethod: "GET",
|
3185
|
-
responses: {
|
3186
|
-
200: {
|
3187
|
-
bodyMapper: DatadogHostListResponse
|
3188
|
-
},
|
3189
|
-
default: {
|
3190
|
-
bodyMapper: ErrorResponse
|
3191
|
-
}
|
3192
|
-
},
|
3193
|
-
urlParameters: [
|
3194
|
-
$host,
|
3195
|
-
subscriptionId,
|
3196
|
-
nextLink,
|
3197
|
-
resourceGroupName,
|
3198
|
-
monitorName
|
3199
|
-
],
|
3200
|
-
headerParameters: [accept],
|
3201
|
-
serializer: serializer$4
|
3202
|
-
};
|
3203
|
-
const listLinkedResourcesNextOperationSpec = {
|
3204
|
-
path: "{nextLink}",
|
3205
|
-
httpMethod: "GET",
|
3206
|
-
responses: {
|
3207
|
-
200: {
|
3208
|
-
bodyMapper: LinkedResourceListResponse
|
3209
|
-
},
|
3210
|
-
default: {
|
3211
|
-
bodyMapper: ErrorResponse
|
3212
|
-
}
|
3213
|
-
},
|
3214
|
-
urlParameters: [
|
3215
|
-
$host,
|
3216
|
-
subscriptionId,
|
3217
|
-
nextLink,
|
3218
|
-
resourceGroupName,
|
3219
|
-
monitorName
|
3220
|
-
],
|
3221
|
-
headerParameters: [accept],
|
3222
|
-
serializer: serializer$4
|
3223
|
-
};
|
3224
|
-
const listMonitoredResourcesNextOperationSpec = {
|
3225
|
-
path: "{nextLink}",
|
3226
|
-
httpMethod: "GET",
|
3227
|
-
responses: {
|
3228
|
-
200: {
|
3229
|
-
bodyMapper: MonitoredResourceListResponse
|
3230
|
-
},
|
3231
|
-
default: {
|
3232
|
-
bodyMapper: ErrorResponse
|
3233
|
-
}
|
3234
|
-
},
|
3235
|
-
urlParameters: [
|
3236
|
-
$host,
|
3237
|
-
subscriptionId,
|
3238
|
-
nextLink,
|
3239
|
-
resourceGroupName,
|
3240
|
-
monitorName
|
3241
|
-
],
|
3242
|
-
headerParameters: [accept],
|
3243
|
-
serializer: serializer$4
|
3244
|
-
};
|
3245
|
-
const listNextOperationSpec$3 = {
|
3246
|
-
path: "{nextLink}",
|
3247
|
-
httpMethod: "GET",
|
3248
|
-
responses: {
|
3249
|
-
200: {
|
3250
|
-
bodyMapper: DatadogMonitorResourceListResponse
|
3251
|
-
},
|
3252
|
-
default: {
|
3253
|
-
bodyMapper: ErrorResponse
|
3254
|
-
}
|
3255
|
-
},
|
3256
|
-
urlParameters: [
|
3257
|
-
$host,
|
3258
|
-
subscriptionId,
|
3259
|
-
nextLink
|
3260
|
-
],
|
3261
|
-
headerParameters: [accept],
|
3262
|
-
serializer: serializer$4
|
3263
|
-
};
|
3264
|
-
const listByResourceGroupNextOperationSpec = {
|
3265
|
-
path: "{nextLink}",
|
3266
|
-
httpMethod: "GET",
|
3267
|
-
responses: {
|
3268
|
-
200: {
|
3269
|
-
bodyMapper: DatadogMonitorResourceListResponse
|
3270
|
-
},
|
3271
|
-
default: {
|
3272
|
-
bodyMapper: ErrorResponse
|
3273
|
-
}
|
3274
|
-
},
|
3275
|
-
urlParameters: [
|
3276
|
-
$host,
|
3277
|
-
subscriptionId,
|
3278
|
-
nextLink,
|
3279
|
-
resourceGroupName
|
3280
|
-
],
|
3281
|
-
headerParameters: [accept],
|
3282
|
-
serializer: serializer$4
|
3283
|
-
};
|
3284
|
-
|
3285
|
-
/*
|
3286
|
-
* Copyright (c) Microsoft Corporation.
|
3287
|
-
* Licensed under the MIT License.
|
3288
|
-
*
|
3289
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
3290
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
3291
|
-
*/
|
3292
|
-
/// <reference lib="esnext.asynciterable" />
|
3293
|
-
/** Class containing Operations operations. */
|
3294
|
-
class OperationsImpl {
|
3295
|
-
/**
|
3296
|
-
* Initialize a new instance of the class Operations class.
|
3297
|
-
* @param client Reference to the service client
|
3298
|
-
*/
|
3299
|
-
constructor(client) {
|
3300
|
-
this.client = client;
|
3301
|
-
}
|
3302
|
-
/**
|
3303
|
-
* List all operations provided by Microsoft.Datadog for the 2023-01-01 api version.
|
3304
|
-
* @param options The options parameters.
|
3305
|
-
*/
|
3306
|
-
list(options) {
|
3307
|
-
const iter = this.listPagingAll(options);
|
3308
|
-
return {
|
3309
|
-
next() {
|
3310
|
-
return iter.next();
|
3311
|
-
},
|
3312
|
-
[Symbol.asyncIterator]() {
|
3313
|
-
return this;
|
3314
|
-
},
|
3315
|
-
byPage: (settings) => {
|
3316
|
-
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
3317
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
3318
|
-
}
|
3319
|
-
return this.listPagingPage(options, settings);
|
3320
|
-
}
|
3321
|
-
};
|
3322
|
-
}
|
3323
|
-
listPagingPage(options, settings) {
|
3324
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
3325
|
-
let result;
|
3326
|
-
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
3327
|
-
if (!continuationToken) {
|
3328
|
-
result = yield tslib.__await(this._list(options));
|
3329
|
-
let page = result.value || [];
|
3330
|
-
continuationToken = result.nextLink;
|
3331
|
-
setContinuationToken(page, continuationToken);
|
3332
|
-
yield yield tslib.__await(page);
|
3333
|
-
}
|
3334
|
-
while (continuationToken) {
|
3335
|
-
result = yield tslib.__await(this._listNext(continuationToken, options));
|
3336
|
-
continuationToken = result.nextLink;
|
3337
|
-
let page = result.value || [];
|
3338
|
-
setContinuationToken(page, continuationToken);
|
3339
|
-
yield yield tslib.__await(page);
|
3340
|
-
}
|
3341
|
-
});
|
3342
|
-
}
|
3343
|
-
listPagingAll(options) {
|
3344
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
3345
|
-
var _a, e_1, _b, _c;
|
3346
|
-
try {
|
3347
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
3348
|
-
_c = _f.value;
|
3349
|
-
_d = false;
|
3350
|
-
const page = _c;
|
3351
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
3352
|
-
}
|
3353
|
-
}
|
3354
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
3355
|
-
finally {
|
3356
|
-
try {
|
3357
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
3358
|
-
}
|
3359
|
-
finally { if (e_1) throw e_1.error; }
|
3360
|
-
}
|
3361
|
-
});
|
3362
|
-
}
|
3363
|
-
/**
|
3364
|
-
* List all operations provided by Microsoft.Datadog for the 2023-01-01 api version.
|
3365
|
-
* @param options The options parameters.
|
3366
|
-
*/
|
3367
|
-
_list(options) {
|
3368
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$3);
|
3369
|
-
}
|
3370
|
-
/**
|
3371
|
-
* ListNext
|
3372
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
3373
|
-
* @param options The options parameters.
|
3374
|
-
*/
|
3375
|
-
_listNext(nextLink, options) {
|
3376
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
|
3377
|
-
}
|
3378
|
-
}
|
3379
|
-
// Operation Specifications
|
3380
|
-
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
3381
|
-
const listOperationSpec$3 = {
|
3382
|
-
path: "/providers/Microsoft.Datadog/operations",
|
3383
|
-
httpMethod: "GET",
|
3384
|
-
responses: {
|
3385
|
-
200: {
|
3386
|
-
bodyMapper: OperationListResult
|
3387
|
-
},
|
3388
|
-
default: {
|
3389
|
-
bodyMapper: ErrorResponse
|
3390
|
-
}
|
3391
|
-
},
|
3392
|
-
queryParameters: [apiVersion],
|
3393
|
-
urlParameters: [$host],
|
3394
|
-
headerParameters: [accept],
|
3395
|
-
serializer: serializer$3
|
3396
|
-
};
|
3397
|
-
const listNextOperationSpec$2 = {
|
3398
|
-
path: "{nextLink}",
|
3399
|
-
httpMethod: "GET",
|
3400
|
-
responses: {
|
3401
|
-
200: {
|
3402
|
-
bodyMapper: OperationListResult
|
3403
|
-
},
|
3404
|
-
default: {
|
3405
|
-
bodyMapper: ErrorResponse
|
3406
|
-
}
|
3407
|
-
},
|
3408
|
-
urlParameters: [$host, nextLink],
|
3409
|
-
headerParameters: [accept],
|
3410
|
-
serializer: serializer$3
|
3411
|
-
};
|
3412
|
-
|
3413
|
-
/*
|
3414
|
-
* Copyright (c) Microsoft Corporation.
|
3415
|
-
* Licensed under the MIT License.
|
3416
|
-
*
|
3417
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
3418
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
3419
|
-
*/
|
3420
|
-
/// <reference lib="esnext.asynciterable" />
|
3421
|
-
/** Class containing TagRules operations. */
|
3422
|
-
class TagRulesImpl {
|
3423
|
-
/**
|
3424
|
-
* Initialize a new instance of the class TagRules class.
|
3425
|
-
* @param client Reference to the service client
|
3426
|
-
*/
|
3427
|
-
constructor(client) {
|
3428
|
-
this.client = client;
|
3429
|
-
}
|
3430
|
-
/**
|
3431
|
-
* List the tag rules for a given monitor resource.
|
3432
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
3433
|
-
* @param monitorName Monitor resource name
|
3434
|
-
* @param options The options parameters.
|
3435
|
-
*/
|
3436
|
-
list(resourceGroupName, monitorName, options) {
|
3437
|
-
const iter = this.listPagingAll(resourceGroupName, monitorName, options);
|
3438
|
-
return {
|
3439
|
-
next() {
|
3440
|
-
return iter.next();
|
3441
|
-
},
|
3442
|
-
[Symbol.asyncIterator]() {
|
3443
|
-
return this;
|
3444
|
-
},
|
3445
|
-
byPage: (settings) => {
|
3446
|
-
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
3447
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
3448
|
-
}
|
3449
|
-
return this.listPagingPage(resourceGroupName, monitorName, options, settings);
|
3450
|
-
}
|
3451
|
-
};
|
3452
|
-
}
|
3453
|
-
listPagingPage(resourceGroupName, monitorName, options, settings) {
|
3454
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
3455
|
-
let result;
|
3456
|
-
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
3457
|
-
if (!continuationToken) {
|
3458
|
-
result = yield tslib.__await(this._list(resourceGroupName, monitorName, options));
|
3459
|
-
let page = result.value || [];
|
3460
|
-
continuationToken = result.nextLink;
|
3461
|
-
setContinuationToken(page, continuationToken);
|
3462
|
-
yield yield tslib.__await(page);
|
3463
|
-
}
|
3464
|
-
while (continuationToken) {
|
3465
|
-
result = yield tslib.__await(this._listNext(resourceGroupName, monitorName, continuationToken, options));
|
3466
|
-
continuationToken = result.nextLink;
|
3467
|
-
let page = result.value || [];
|
3468
|
-
setContinuationToken(page, continuationToken);
|
3469
|
-
yield yield tslib.__await(page);
|
3470
|
-
}
|
3471
|
-
});
|
3472
|
-
}
|
3473
|
-
listPagingAll(resourceGroupName, monitorName, options) {
|
3474
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
3475
|
-
var _a, e_1, _b, _c;
|
3476
|
-
try {
|
3477
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
3478
|
-
_c = _f.value;
|
3479
|
-
_d = false;
|
3480
|
-
const page = _c;
|
3481
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
3482
|
-
}
|
3483
|
-
}
|
3484
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
3485
|
-
finally {
|
3486
|
-
try {
|
3487
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
3488
|
-
}
|
3489
|
-
finally { if (e_1) throw e_1.error; }
|
3490
|
-
}
|
3491
|
-
});
|
3492
|
-
}
|
3493
|
-
/**
|
3494
|
-
* List the tag rules for a given monitor resource.
|
3495
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
3496
|
-
* @param monitorName Monitor resource name
|
3497
|
-
* @param options The options parameters.
|
3498
|
-
*/
|
3499
|
-
_list(resourceGroupName, monitorName, options) {
|
3500
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listOperationSpec$2);
|
3501
|
-
}
|
3502
|
-
/**
|
3503
|
-
* Create or update a tag rule set for a given monitor resource.
|
3504
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
3505
|
-
* @param monitorName Monitor resource name
|
3506
|
-
* @param ruleSetName Rule set name
|
3507
|
-
* @param options The options parameters.
|
3508
|
-
*/
|
3509
|
-
createOrUpdate(resourceGroupName, monitorName, ruleSetName, options) {
|
3510
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, ruleSetName, options }, createOrUpdateOperationSpec$1);
|
3511
|
-
}
|
3512
|
-
/**
|
3513
|
-
* Get a tag rule set for a given monitor resource.
|
3514
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
3515
|
-
* @param monitorName Monitor resource name
|
3516
|
-
* @param ruleSetName Rule set name
|
3517
|
-
* @param options The options parameters.
|
3518
|
-
*/
|
3519
|
-
get(resourceGroupName, monitorName, ruleSetName, options) {
|
3520
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, ruleSetName, options }, getOperationSpec$2);
|
3521
|
-
}
|
3522
|
-
/**
|
3523
|
-
* ListNext
|
3524
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
3525
|
-
* @param monitorName Monitor resource name
|
3526
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
3527
|
-
* @param options The options parameters.
|
3528
|
-
*/
|
3529
|
-
_listNext(resourceGroupName, monitorName, nextLink, options) {
|
3530
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listNextOperationSpec$1);
|
3531
|
-
}
|
3532
|
-
}
|
3533
|
-
// Operation Specifications
|
3534
|
-
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
3535
|
-
const listOperationSpec$2 = {
|
3536
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules",
|
3537
|
-
httpMethod: "GET",
|
3538
|
-
responses: {
|
3539
|
-
200: {
|
3540
|
-
bodyMapper: MonitoringTagRulesListResponse
|
3541
|
-
},
|
3542
|
-
default: {
|
3543
|
-
bodyMapper: ErrorResponse
|
3544
|
-
}
|
3545
|
-
},
|
3546
|
-
queryParameters: [apiVersion],
|
3547
|
-
urlParameters: [
|
3548
|
-
$host,
|
3549
|
-
subscriptionId,
|
3550
|
-
resourceGroupName,
|
3551
|
-
monitorName
|
3552
|
-
],
|
3553
|
-
headerParameters: [accept],
|
3554
|
-
serializer: serializer$2
|
3555
|
-
};
|
3556
|
-
const createOrUpdateOperationSpec$1 = {
|
3557
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules/{ruleSetName}",
|
3558
|
-
httpMethod: "PUT",
|
3559
|
-
responses: {
|
3560
|
-
200: {
|
3561
|
-
bodyMapper: MonitoringTagRules
|
3562
|
-
},
|
3563
|
-
default: {
|
3564
|
-
bodyMapper: ErrorResponse
|
3565
|
-
}
|
3566
|
-
},
|
3567
|
-
requestBody: body4,
|
3568
|
-
queryParameters: [apiVersion],
|
3569
|
-
urlParameters: [
|
3570
|
-
$host,
|
3571
|
-
subscriptionId,
|
3572
|
-
resourceGroupName,
|
3573
|
-
monitorName,
|
3574
|
-
ruleSetName
|
3575
|
-
],
|
3576
|
-
headerParameters: [accept, contentType],
|
3577
|
-
mediaType: "json",
|
3578
|
-
serializer: serializer$2
|
3579
|
-
};
|
3580
|
-
const getOperationSpec$2 = {
|
3581
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules/{ruleSetName}",
|
3582
|
-
httpMethod: "GET",
|
3583
|
-
responses: {
|
3584
|
-
200: {
|
3585
|
-
bodyMapper: MonitoringTagRules
|
3586
|
-
},
|
3587
|
-
default: {
|
3588
|
-
bodyMapper: ErrorResponse
|
3589
|
-
}
|
3590
|
-
},
|
3591
|
-
queryParameters: [apiVersion],
|
3592
|
-
urlParameters: [
|
3593
|
-
$host,
|
3594
|
-
subscriptionId,
|
3595
|
-
resourceGroupName,
|
3596
|
-
monitorName,
|
3597
|
-
ruleSetName
|
3598
|
-
],
|
3599
|
-
headerParameters: [accept],
|
3600
|
-
serializer: serializer$2
|
3601
|
-
};
|
3602
|
-
const listNextOperationSpec$1 = {
|
3603
|
-
path: "{nextLink}",
|
3604
|
-
httpMethod: "GET",
|
3605
|
-
responses: {
|
3606
|
-
200: {
|
3607
|
-
bodyMapper: MonitoringTagRulesListResponse
|
3608
|
-
},
|
3609
|
-
default: {
|
3610
|
-
bodyMapper: ErrorResponse
|
3611
|
-
}
|
3612
|
-
},
|
3613
|
-
urlParameters: [
|
3614
|
-
$host,
|
3615
|
-
subscriptionId,
|
3616
|
-
nextLink,
|
3617
|
-
resourceGroupName,
|
3618
|
-
monitorName
|
3619
|
-
],
|
3620
|
-
headerParameters: [accept],
|
3621
|
-
serializer: serializer$2
|
3622
|
-
};
|
3623
|
-
|
3624
|
-
/*
|
3625
|
-
* Copyright (c) Microsoft Corporation.
|
3626
|
-
* Licensed under the MIT License.
|
3627
|
-
*
|
3628
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
3629
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
3630
|
-
*/
|
3631
|
-
/// <reference lib="esnext.asynciterable" />
|
3632
|
-
/** Class containing SingleSignOnConfigurations operations. */
|
3633
|
-
class SingleSignOnConfigurationsImpl {
|
3634
|
-
/**
|
3635
|
-
* Initialize a new instance of the class SingleSignOnConfigurations class.
|
3636
|
-
* @param client Reference to the service client
|
3637
|
-
*/
|
3638
|
-
constructor(client) {
|
3639
|
-
this.client = client;
|
3640
|
-
}
|
3641
|
-
/**
|
3642
|
-
* List the single sign-on configurations for a given monitor resource.
|
3643
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
3644
|
-
* @param monitorName Monitor resource name
|
3645
|
-
* @param options The options parameters.
|
3646
|
-
*/
|
3647
|
-
list(resourceGroupName, monitorName, options) {
|
3648
|
-
const iter = this.listPagingAll(resourceGroupName, monitorName, options);
|
3649
|
-
return {
|
3650
|
-
next() {
|
3651
|
-
return iter.next();
|
3652
|
-
},
|
3653
|
-
[Symbol.asyncIterator]() {
|
3654
|
-
return this;
|
3655
|
-
},
|
3656
|
-
byPage: (settings) => {
|
3657
|
-
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
3658
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
3659
|
-
}
|
3660
|
-
return this.listPagingPage(resourceGroupName, monitorName, options, settings);
|
3661
|
-
}
|
3662
|
-
};
|
3663
|
-
}
|
3664
|
-
listPagingPage(resourceGroupName, monitorName, options, settings) {
|
3665
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
3666
|
-
let result;
|
3667
|
-
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
3668
|
-
if (!continuationToken) {
|
3669
|
-
result = yield tslib.__await(this._list(resourceGroupName, monitorName, options));
|
3670
|
-
let page = result.value || [];
|
3671
|
-
continuationToken = result.nextLink;
|
3672
|
-
setContinuationToken(page, continuationToken);
|
3673
|
-
yield yield tslib.__await(page);
|
3674
|
-
}
|
3675
|
-
while (continuationToken) {
|
3676
|
-
result = yield tslib.__await(this._listNext(resourceGroupName, monitorName, continuationToken, options));
|
3677
|
-
continuationToken = result.nextLink;
|
3678
|
-
let page = result.value || [];
|
3679
|
-
setContinuationToken(page, continuationToken);
|
3680
|
-
yield yield tslib.__await(page);
|
3681
|
-
}
|
3682
|
-
});
|
3683
|
-
}
|
3684
|
-
listPagingAll(resourceGroupName, monitorName, options) {
|
3685
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
3686
|
-
var _a, e_1, _b, _c;
|
3687
|
-
try {
|
3688
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
3689
|
-
_c = _f.value;
|
3690
|
-
_d = false;
|
3691
|
-
const page = _c;
|
3692
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
3693
|
-
}
|
3694
|
-
}
|
3695
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
3696
|
-
finally {
|
3697
|
-
try {
|
3698
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
3699
|
-
}
|
3700
|
-
finally { if (e_1) throw e_1.error; }
|
3701
|
-
}
|
3702
|
-
});
|
3703
|
-
}
|
3704
|
-
/**
|
3705
|
-
* List the single sign-on configurations for a given monitor resource.
|
3706
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
3707
|
-
* @param monitorName Monitor resource name
|
3708
|
-
* @param options The options parameters.
|
3709
|
-
*/
|
3710
|
-
_list(resourceGroupName, monitorName, options) {
|
3711
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listOperationSpec$1);
|
3712
|
-
}
|
3713
|
-
/**
|
3714
|
-
* Configures single-sign-on for this resource.
|
3715
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
3716
|
-
* @param monitorName Monitor resource name
|
3717
|
-
* @param configurationName Configuration name
|
3718
|
-
* @param options The options parameters.
|
3719
|
-
*/
|
3720
|
-
beginCreateOrUpdate(resourceGroupName, monitorName, configurationName, options) {
|
3721
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
3722
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
3723
|
-
return this.client.sendOperationRequest(args, spec);
|
3724
|
-
});
|
3725
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
3726
|
-
var _a;
|
3727
|
-
let currentRawResponse = undefined;
|
3728
|
-
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
3729
|
-
const callback = (rawResponse, flatResponse) => {
|
3730
|
-
currentRawResponse = rawResponse;
|
3731
|
-
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
3732
|
-
};
|
3733
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
3734
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
3735
|
-
return {
|
3736
|
-
flatResponse,
|
3737
|
-
rawResponse: {
|
3738
|
-
statusCode: currentRawResponse.status,
|
3739
|
-
body: currentRawResponse.parsedBody,
|
3740
|
-
headers: currentRawResponse.headers.toJSON()
|
3741
|
-
}
|
3742
|
-
};
|
3743
|
-
});
|
3744
|
-
const lro = createLroSpec({
|
3745
|
-
sendOperationFn,
|
3746
|
-
args: { resourceGroupName, monitorName, configurationName, options },
|
3747
|
-
spec: createOrUpdateOperationSpec
|
3748
|
-
});
|
3749
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
3750
|
-
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
3751
|
-
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
3752
|
-
resourceLocationConfig: "azure-async-operation"
|
3753
|
-
});
|
3754
|
-
yield poller.poll();
|
3755
|
-
return poller;
|
3756
|
-
});
|
3757
|
-
}
|
3758
|
-
/**
|
3759
|
-
* Configures single-sign-on for this resource.
|
3760
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
3761
|
-
* @param monitorName Monitor resource name
|
3762
|
-
* @param configurationName Configuration name
|
3763
|
-
* @param options The options parameters.
|
3764
|
-
*/
|
3765
|
-
beginCreateOrUpdateAndWait(resourceGroupName, monitorName, configurationName, options) {
|
3766
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
3767
|
-
const poller = yield this.beginCreateOrUpdate(resourceGroupName, monitorName, configurationName, options);
|
3768
|
-
return poller.pollUntilDone();
|
3769
|
-
});
|
3770
|
-
}
|
3771
|
-
/**
|
3772
|
-
* Gets the datadog single sign-on resource for the given Monitor.
|
3773
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
3774
|
-
* @param monitorName Monitor resource name
|
3775
|
-
* @param configurationName Configuration name
|
3776
|
-
* @param options The options parameters.
|
3777
|
-
*/
|
3778
|
-
get(resourceGroupName, monitorName, configurationName, options) {
|
3779
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, configurationName, options }, getOperationSpec$1);
|
3780
|
-
}
|
3781
|
-
/**
|
3782
|
-
* ListNext
|
3783
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
3784
|
-
* @param monitorName Monitor resource name
|
3785
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
3786
|
-
* @param options The options parameters.
|
3787
|
-
*/
|
3788
|
-
_listNext(resourceGroupName, monitorName, nextLink, options) {
|
3789
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, nextLink, options }, listNextOperationSpec);
|
3790
|
-
}
|
3791
|
-
}
|
3792
|
-
// Operation Specifications
|
3793
|
-
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
3794
|
-
const listOperationSpec$1 = {
|
3795
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/singleSignOnConfigurations",
|
3796
|
-
httpMethod: "GET",
|
3797
|
-
responses: {
|
3798
|
-
200: {
|
3799
|
-
bodyMapper: DatadogSingleSignOnResourceListResponse
|
3800
|
-
},
|
3801
|
-
default: {
|
3802
|
-
bodyMapper: ErrorResponse
|
3803
|
-
}
|
3804
|
-
},
|
3805
|
-
queryParameters: [apiVersion],
|
3806
|
-
urlParameters: [
|
3807
|
-
$host,
|
3808
|
-
subscriptionId,
|
3809
|
-
resourceGroupName,
|
3810
|
-
monitorName
|
3811
|
-
],
|
3812
|
-
headerParameters: [accept],
|
3813
|
-
serializer: serializer$1
|
3814
|
-
};
|
3815
|
-
const createOrUpdateOperationSpec = {
|
3816
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/singleSignOnConfigurations/{configurationName}",
|
3817
|
-
httpMethod: "PUT",
|
3818
|
-
responses: {
|
3819
|
-
200: {
|
3820
|
-
bodyMapper: DatadogSingleSignOnResource
|
3821
|
-
},
|
3822
|
-
201: {
|
3823
|
-
bodyMapper: DatadogSingleSignOnResource
|
3824
|
-
},
|
3825
|
-
202: {
|
3826
|
-
bodyMapper: DatadogSingleSignOnResource
|
3827
|
-
},
|
3828
|
-
204: {
|
3829
|
-
bodyMapper: DatadogSingleSignOnResource
|
3830
|
-
},
|
3831
|
-
default: {
|
3832
|
-
bodyMapper: ErrorResponse
|
3833
|
-
}
|
3834
|
-
},
|
3835
|
-
requestBody: body5,
|
3836
|
-
queryParameters: [apiVersion],
|
3837
|
-
urlParameters: [
|
3838
|
-
$host,
|
3839
|
-
subscriptionId,
|
3840
|
-
resourceGroupName,
|
3841
|
-
monitorName,
|
3842
|
-
configurationName
|
3843
|
-
],
|
3844
|
-
headerParameters: [accept, contentType],
|
3845
|
-
mediaType: "json",
|
3846
|
-
serializer: serializer$1
|
3847
|
-
};
|
3848
|
-
const getOperationSpec$1 = {
|
3849
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/singleSignOnConfigurations/{configurationName}",
|
3850
|
-
httpMethod: "GET",
|
3851
|
-
responses: {
|
3852
|
-
200: {
|
3853
|
-
bodyMapper: DatadogSingleSignOnResource
|
3854
|
-
},
|
3855
|
-
default: {
|
3856
|
-
bodyMapper: ErrorResponse
|
3857
|
-
}
|
3858
|
-
},
|
3859
|
-
queryParameters: [apiVersion],
|
3860
|
-
urlParameters: [
|
3861
|
-
$host,
|
3862
|
-
subscriptionId,
|
3863
|
-
resourceGroupName,
|
3864
|
-
monitorName,
|
3865
|
-
configurationName
|
3866
|
-
],
|
3867
|
-
headerParameters: [accept],
|
3868
|
-
serializer: serializer$1
|
3869
|
-
};
|
3870
|
-
const listNextOperationSpec = {
|
3871
|
-
path: "{nextLink}",
|
3872
|
-
httpMethod: "GET",
|
3873
|
-
responses: {
|
3874
|
-
200: {
|
3875
|
-
bodyMapper: DatadogSingleSignOnResourceListResponse
|
3876
|
-
},
|
3877
|
-
default: {
|
3878
|
-
bodyMapper: ErrorResponse
|
3879
|
-
}
|
3880
|
-
},
|
3881
|
-
urlParameters: [
|
3882
|
-
$host,
|
3883
|
-
subscriptionId,
|
3884
|
-
nextLink,
|
3885
|
-
resourceGroupName,
|
3886
|
-
monitorName
|
3887
|
-
],
|
3888
|
-
headerParameters: [accept],
|
3889
|
-
serializer: serializer$1
|
3890
|
-
};
|
3891
|
-
|
3892
|
-
/*
|
3893
|
-
* Copyright (c) Microsoft Corporation.
|
3894
|
-
* Licensed under the MIT License.
|
3895
|
-
*
|
3896
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
3897
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
3898
|
-
*/
|
3899
|
-
/// <reference lib="esnext.asynciterable" />
|
3900
|
-
/** Class containing MonitoredSubscriptions operations. */
|
3901
|
-
class MonitoredSubscriptionsImpl {
|
3902
|
-
/**
|
3903
|
-
* Initialize a new instance of the class MonitoredSubscriptions class.
|
3904
|
-
* @param client Reference to the service client
|
3905
|
-
*/
|
3906
|
-
constructor(client) {
|
3907
|
-
this.client = client;
|
3908
|
-
}
|
3909
|
-
/**
|
3910
|
-
* List the subscriptions currently being monitored by the Datadog monitor resource.
|
3911
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
3912
|
-
* @param monitorName Monitor resource name
|
3913
|
-
* @param options The options parameters.
|
3914
|
-
*/
|
3915
|
-
list(resourceGroupName, monitorName, options) {
|
3916
|
-
const iter = this.listPagingAll(resourceGroupName, monitorName, options);
|
3917
|
-
return {
|
3918
|
-
next() {
|
3919
|
-
return iter.next();
|
3920
|
-
},
|
3921
|
-
[Symbol.asyncIterator]() {
|
3922
|
-
return this;
|
3923
|
-
},
|
3924
|
-
byPage: (settings) => {
|
3925
|
-
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
3926
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
3927
|
-
}
|
3928
|
-
return this.listPagingPage(resourceGroupName, monitorName, options, settings);
|
3929
|
-
}
|
3930
|
-
};
|
3931
|
-
}
|
3932
|
-
listPagingPage(resourceGroupName, monitorName, options, _settings) {
|
3933
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
3934
|
-
let result;
|
3935
|
-
result = yield tslib.__await(this._list(resourceGroupName, monitorName, options));
|
3936
|
-
yield yield tslib.__await(result.value || []);
|
3937
|
-
});
|
3938
|
-
}
|
3939
|
-
listPagingAll(resourceGroupName, monitorName, options) {
|
3940
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
3941
|
-
var _a, e_1, _b, _c;
|
3942
|
-
try {
|
3943
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, monitorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
3944
|
-
_c = _f.value;
|
3945
|
-
_d = false;
|
3946
|
-
const page = _c;
|
3947
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
3948
|
-
}
|
3949
|
-
}
|
3950
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
3951
|
-
finally {
|
3952
|
-
try {
|
3953
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
3954
|
-
}
|
3955
|
-
finally { if (e_1) throw e_1.error; }
|
3956
|
-
}
|
3957
|
-
});
|
3958
|
-
}
|
3959
|
-
/**
|
3960
|
-
* List the subscriptions currently being monitored by the Datadog monitor resource.
|
3961
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
3962
|
-
* @param monitorName Monitor resource name
|
3963
|
-
* @param options The options parameters.
|
3964
|
-
*/
|
3965
|
-
_list(resourceGroupName, monitorName, options) {
|
3966
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, options }, listOperationSpec);
|
3967
|
-
}
|
3968
|
-
/**
|
3969
|
-
* List the subscriptions currently being monitored by the Datadog monitor resource.
|
3970
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
3971
|
-
* @param monitorName Monitor resource name
|
3972
|
-
* @param configurationName The configuration name. Only 'default' value is supported.
|
3973
|
-
* @param options The options parameters.
|
3974
|
-
*/
|
3975
|
-
get(resourceGroupName, monitorName, configurationName, options) {
|
3976
|
-
return this.client.sendOperationRequest({ resourceGroupName, monitorName, configurationName, options }, getOperationSpec);
|
3977
|
-
}
|
3978
|
-
/**
|
3979
|
-
* Add the subscriptions that should be monitored by the Datadog monitor resource.
|
3980
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
3981
|
-
* @param monitorName Monitor resource name
|
3982
|
-
* @param configurationName The configuration name. Only 'default' value is supported.
|
3983
|
-
* @param options The options parameters.
|
3984
|
-
*/
|
3985
|
-
beginCreateorUpdate(resourceGroupName, monitorName, configurationName, options) {
|
3986
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
3987
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
3988
|
-
return this.client.sendOperationRequest(args, spec);
|
3989
|
-
});
|
3990
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
3991
|
-
var _a;
|
3992
|
-
let currentRawResponse = undefined;
|
3993
|
-
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
3994
|
-
const callback = (rawResponse, flatResponse) => {
|
3995
|
-
currentRawResponse = rawResponse;
|
3996
|
-
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
3997
|
-
};
|
3998
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
3999
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
4000
|
-
return {
|
4001
|
-
flatResponse,
|
4002
|
-
rawResponse: {
|
4003
|
-
statusCode: currentRawResponse.status,
|
4004
|
-
body: currentRawResponse.parsedBody,
|
4005
|
-
headers: currentRawResponse.headers.toJSON()
|
4006
|
-
}
|
4007
|
-
};
|
4008
|
-
});
|
4009
|
-
const lro = createLroSpec({
|
4010
|
-
sendOperationFn,
|
4011
|
-
args: { resourceGroupName, monitorName, configurationName, options },
|
4012
|
-
spec: createorUpdateOperationSpec
|
4013
|
-
});
|
4014
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
4015
|
-
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
4016
|
-
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
4017
|
-
});
|
4018
|
-
yield poller.poll();
|
4019
|
-
return poller;
|
4020
|
-
});
|
4021
|
-
}
|
4022
|
-
/**
|
4023
|
-
* Add the subscriptions that should be monitored by the Datadog monitor resource.
|
4024
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
4025
|
-
* @param monitorName Monitor resource name
|
4026
|
-
* @param configurationName The configuration name. Only 'default' value is supported.
|
4027
|
-
* @param options The options parameters.
|
4028
|
-
*/
|
4029
|
-
beginCreateorUpdateAndWait(resourceGroupName, monitorName, configurationName, options) {
|
4030
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4031
|
-
const poller = yield this.beginCreateorUpdate(resourceGroupName, monitorName, configurationName, options);
|
4032
|
-
return poller.pollUntilDone();
|
4033
|
-
});
|
4034
|
-
}
|
4035
|
-
/**
|
4036
|
-
* Updates the subscriptions that are being monitored by the Datadog monitor resource
|
4037
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
4038
|
-
* @param monitorName Monitor resource name
|
4039
|
-
* @param configurationName The configuration name. Only 'default' value is supported.
|
4040
|
-
* @param options The options parameters.
|
4041
|
-
*/
|
4042
|
-
beginUpdate(resourceGroupName, monitorName, configurationName, options) {
|
4043
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4044
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4045
|
-
return this.client.sendOperationRequest(args, spec);
|
4046
|
-
});
|
4047
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4048
|
-
var _a;
|
4049
|
-
let currentRawResponse = undefined;
|
4050
|
-
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
4051
|
-
const callback = (rawResponse, flatResponse) => {
|
4052
|
-
currentRawResponse = rawResponse;
|
4053
|
-
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
4054
|
-
};
|
4055
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
4056
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
4057
|
-
return {
|
4058
|
-
flatResponse,
|
4059
|
-
rawResponse: {
|
4060
|
-
statusCode: currentRawResponse.status,
|
4061
|
-
body: currentRawResponse.parsedBody,
|
4062
|
-
headers: currentRawResponse.headers.toJSON()
|
4063
|
-
}
|
4064
|
-
};
|
4065
|
-
});
|
4066
|
-
const lro = createLroSpec({
|
4067
|
-
sendOperationFn,
|
4068
|
-
args: { resourceGroupName, monitorName, configurationName, options },
|
4069
|
-
spec: updateOperationSpec
|
4070
|
-
});
|
4071
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
4072
|
-
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
4073
|
-
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
4074
|
-
});
|
4075
|
-
yield poller.poll();
|
4076
|
-
return poller;
|
4077
|
-
});
|
4078
|
-
}
|
4079
|
-
/**
|
4080
|
-
* Updates the subscriptions that are being monitored by the Datadog monitor resource
|
4081
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
4082
|
-
* @param monitorName Monitor resource name
|
4083
|
-
* @param configurationName The configuration name. Only 'default' value is supported.
|
4084
|
-
* @param options The options parameters.
|
4085
|
-
*/
|
4086
|
-
beginUpdateAndWait(resourceGroupName, monitorName, configurationName, options) {
|
4087
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4088
|
-
const poller = yield this.beginUpdate(resourceGroupName, monitorName, configurationName, options);
|
4089
|
-
return poller.pollUntilDone();
|
4090
|
-
});
|
4091
|
-
}
|
4092
|
-
/**
|
4093
|
-
* Updates the subscriptions that are being monitored by the Datadog monitor resource
|
4094
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
4095
|
-
* @param monitorName Monitor resource name
|
4096
|
-
* @param configurationName Configuration name
|
4097
|
-
* @param options The options parameters.
|
4098
|
-
*/
|
4099
|
-
beginDelete(resourceGroupName, monitorName, configurationName, options) {
|
4100
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4101
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4102
|
-
return this.client.sendOperationRequest(args, spec);
|
4103
|
-
});
|
4104
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
4105
|
-
var _a;
|
4106
|
-
let currentRawResponse = undefined;
|
4107
|
-
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
4108
|
-
const callback = (rawResponse, flatResponse) => {
|
4109
|
-
currentRawResponse = rawResponse;
|
4110
|
-
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
4111
|
-
};
|
4112
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
4113
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
4114
|
-
return {
|
4115
|
-
flatResponse,
|
4116
|
-
rawResponse: {
|
4117
|
-
statusCode: currentRawResponse.status,
|
4118
|
-
body: currentRawResponse.parsedBody,
|
4119
|
-
headers: currentRawResponse.headers.toJSON()
|
4120
|
-
}
|
4121
|
-
};
|
4122
|
-
});
|
4123
|
-
const lro = createLroSpec({
|
4124
|
-
sendOperationFn,
|
4125
|
-
args: { resourceGroupName, monitorName, configurationName, options },
|
4126
|
-
spec: deleteOperationSpec
|
4127
|
-
});
|
4128
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
4129
|
-
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
4130
|
-
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
4131
|
-
});
|
4132
|
-
yield poller.poll();
|
4133
|
-
return poller;
|
4134
|
-
});
|
4135
|
-
}
|
4136
|
-
/**
|
4137
|
-
* Updates the subscriptions that are being monitored by the Datadog monitor resource
|
4138
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
4139
|
-
* @param monitorName Monitor resource name
|
4140
|
-
* @param configurationName Configuration name
|
4141
|
-
* @param options The options parameters.
|
4142
|
-
*/
|
4143
|
-
beginDeleteAndWait(resourceGroupName, monitorName, configurationName, options) {
|
4144
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4145
|
-
const poller = yield this.beginDelete(resourceGroupName, monitorName, configurationName, options);
|
4146
|
-
return poller.pollUntilDone();
|
4147
|
-
});
|
4148
|
-
}
|
4149
|
-
}
|
4150
|
-
// Operation Specifications
|
4151
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
4152
|
-
const listOperationSpec = {
|
4153
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions",
|
4154
|
-
httpMethod: "GET",
|
4155
|
-
responses: {
|
4156
|
-
200: {
|
4157
|
-
bodyMapper: MonitoredSubscriptionPropertiesList
|
4158
|
-
},
|
4159
|
-
default: {
|
4160
|
-
bodyMapper: ErrorResponse
|
4161
|
-
}
|
4162
|
-
},
|
4163
|
-
queryParameters: [apiVersion],
|
4164
|
-
urlParameters: [
|
4165
|
-
$host,
|
4166
|
-
subscriptionId,
|
4167
|
-
resourceGroupName,
|
4168
|
-
monitorName
|
4169
|
-
],
|
4170
|
-
headerParameters: [accept],
|
4171
|
-
serializer
|
4172
|
-
};
|
4173
|
-
const getOperationSpec = {
|
4174
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions/{configurationName}",
|
4175
|
-
httpMethod: "GET",
|
4176
|
-
responses: {
|
4177
|
-
200: {
|
4178
|
-
bodyMapper: MonitoredSubscriptionProperties
|
4179
|
-
},
|
4180
|
-
default: {
|
4181
|
-
bodyMapper: ErrorResponse
|
4182
|
-
}
|
4183
|
-
},
|
4184
|
-
queryParameters: [apiVersion],
|
4185
|
-
urlParameters: [
|
4186
|
-
$host,
|
4187
|
-
subscriptionId,
|
4188
|
-
resourceGroupName,
|
4189
|
-
monitorName,
|
4190
|
-
configurationName
|
4191
|
-
],
|
4192
|
-
headerParameters: [accept],
|
4193
|
-
serializer
|
4194
|
-
};
|
4195
|
-
const createorUpdateOperationSpec = {
|
4196
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions/{configurationName}",
|
4197
|
-
httpMethod: "PUT",
|
4198
|
-
responses: {
|
4199
|
-
200: {
|
4200
|
-
bodyMapper: MonitoredSubscriptionProperties
|
4201
|
-
},
|
4202
|
-
201: {
|
4203
|
-
bodyMapper: MonitoredSubscriptionProperties
|
4204
|
-
},
|
4205
|
-
202: {
|
4206
|
-
bodyMapper: MonitoredSubscriptionProperties
|
4207
|
-
},
|
4208
|
-
204: {
|
4209
|
-
bodyMapper: MonitoredSubscriptionProperties
|
4210
|
-
},
|
4211
|
-
default: {
|
4212
|
-
bodyMapper: ErrorResponse
|
4213
|
-
}
|
4214
|
-
},
|
4215
|
-
requestBody: body6,
|
4216
|
-
queryParameters: [apiVersion],
|
4217
|
-
urlParameters: [
|
4218
|
-
$host,
|
4219
|
-
subscriptionId,
|
4220
|
-
resourceGroupName,
|
4221
|
-
monitorName,
|
4222
|
-
configurationName
|
4223
|
-
],
|
4224
|
-
headerParameters: [accept, contentType],
|
4225
|
-
mediaType: "json",
|
4226
|
-
serializer
|
4227
|
-
};
|
4228
|
-
const updateOperationSpec = {
|
4229
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions/{configurationName}",
|
4230
|
-
httpMethod: "PATCH",
|
4231
|
-
responses: {
|
4232
|
-
200: {
|
4233
|
-
bodyMapper: MonitoredSubscriptionProperties
|
4234
|
-
},
|
4235
|
-
201: {
|
4236
|
-
bodyMapper: MonitoredSubscriptionProperties
|
4237
|
-
},
|
4238
|
-
202: {
|
4239
|
-
bodyMapper: MonitoredSubscriptionProperties
|
4240
|
-
},
|
4241
|
-
204: {
|
4242
|
-
bodyMapper: MonitoredSubscriptionProperties
|
4243
|
-
},
|
4244
|
-
default: {
|
4245
|
-
bodyMapper: ErrorResponse
|
4246
|
-
}
|
4247
|
-
},
|
4248
|
-
requestBody: body6,
|
4249
|
-
queryParameters: [apiVersion],
|
4250
|
-
urlParameters: [
|
4251
|
-
$host,
|
4252
|
-
subscriptionId,
|
4253
|
-
resourceGroupName,
|
4254
|
-
monitorName,
|
4255
|
-
configurationName
|
4256
|
-
],
|
4257
|
-
headerParameters: [accept, contentType],
|
4258
|
-
mediaType: "json",
|
4259
|
-
serializer
|
4260
|
-
};
|
4261
|
-
const deleteOperationSpec = {
|
4262
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions/{configurationName}",
|
4263
|
-
httpMethod: "DELETE",
|
4264
|
-
responses: {
|
4265
|
-
200: {},
|
4266
|
-
201: {},
|
4267
|
-
202: {},
|
4268
|
-
204: {},
|
4269
|
-
default: {
|
4270
|
-
bodyMapper: ErrorResponse
|
4271
|
-
}
|
4272
|
-
},
|
4273
|
-
queryParameters: [apiVersion],
|
4274
|
-
urlParameters: [
|
4275
|
-
$host,
|
4276
|
-
subscriptionId,
|
4277
|
-
resourceGroupName,
|
4278
|
-
monitorName,
|
4279
|
-
configurationName
|
4280
|
-
],
|
4281
|
-
headerParameters: [accept],
|
4282
|
-
serializer
|
4283
|
-
};
|
4284
|
-
|
4285
|
-
/*
|
4286
|
-
* Copyright (c) Microsoft Corporation.
|
4287
|
-
* Licensed under the MIT License.
|
4288
|
-
*
|
4289
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
4290
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
4291
|
-
*/
|
4292
|
-
class MicrosoftDatadogClient extends coreClient__namespace.ServiceClient {
|
4293
|
-
/**
|
4294
|
-
* Initializes a new instance of the MicrosoftDatadogClient class.
|
4295
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
4296
|
-
* @param subscriptionId The ID of the target subscription.
|
4297
|
-
* @param options The parameter options
|
4298
|
-
*/
|
4299
|
-
constructor(credentials, subscriptionId, options) {
|
4300
|
-
var _a, _b, _c;
|
4301
|
-
if (credentials === undefined) {
|
4302
|
-
throw new Error("'credentials' cannot be null");
|
4303
|
-
}
|
4304
|
-
if (subscriptionId === undefined) {
|
4305
|
-
throw new Error("'subscriptionId' cannot be null");
|
4306
|
-
}
|
4307
|
-
// Initializing default values for options
|
4308
|
-
if (!options) {
|
4309
|
-
options = {};
|
4310
|
-
}
|
4311
|
-
const defaults = {
|
4312
|
-
requestContentType: "application/json; charset=utf-8",
|
4313
|
-
credential: credentials
|
4314
|
-
};
|
4315
|
-
const packageDetails = `azsdk-js-arm-datadog/3.1.0`;
|
4316
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
4317
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
4318
|
-
: `${packageDetails}`;
|
4319
|
-
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
4320
|
-
userAgentPrefix
|
4321
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
4322
|
-
super(optionsWithDefaults);
|
4323
|
-
let bearerTokenAuthenticationPolicyFound = false;
|
4324
|
-
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
4325
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
4326
|
-
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
4327
|
-
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
4328
|
-
}
|
4329
|
-
if (!options ||
|
4330
|
-
!options.pipeline ||
|
4331
|
-
options.pipeline.getOrderedPolicies().length == 0 ||
|
4332
|
-
!bearerTokenAuthenticationPolicyFound) {
|
4333
|
-
this.pipeline.removePolicy({
|
4334
|
-
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
4335
|
-
});
|
4336
|
-
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
4337
|
-
credential: credentials,
|
4338
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
4339
|
-
challengeCallbacks: {
|
4340
|
-
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
4341
|
-
}
|
4342
|
-
}));
|
4343
|
-
}
|
4344
|
-
// Parameter assignments
|
4345
|
-
this.subscriptionId = subscriptionId;
|
4346
|
-
// Assigning values to Constant parameters
|
4347
|
-
this.$host = options.$host || "https://management.azure.com";
|
4348
|
-
this.apiVersion = options.apiVersion || "2023-01-01";
|
4349
|
-
this.marketplaceAgreements = new MarketplaceAgreementsImpl(this);
|
4350
|
-
this.creationSupported = new CreationSupportedImpl(this);
|
4351
|
-
this.monitors = new MonitorsImpl(this);
|
4352
|
-
this.operations = new OperationsImpl(this);
|
4353
|
-
this.tagRules = new TagRulesImpl(this);
|
4354
|
-
this.singleSignOnConfigurations = new SingleSignOnConfigurationsImpl(this);
|
4355
|
-
this.monitoredSubscriptions = new MonitoredSubscriptionsImpl(this);
|
4356
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
4357
|
-
}
|
4358
|
-
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
4359
|
-
addCustomApiVersionPolicy(apiVersion) {
|
4360
|
-
if (!apiVersion) {
|
4361
|
-
return;
|
4362
|
-
}
|
4363
|
-
const apiVersionPolicy = {
|
4364
|
-
name: "CustomApiVersionPolicy",
|
4365
|
-
sendRequest(request, next) {
|
4366
|
-
return tslib.__awaiter(this, undefined, undefined, function* () {
|
4367
|
-
const param = request.url.split("?");
|
4368
|
-
if (param.length > 1) {
|
4369
|
-
const newParams = param[1].split("&").map((item) => {
|
4370
|
-
if (item.indexOf("api-version") > -1) {
|
4371
|
-
return "api-version=" + apiVersion;
|
4372
|
-
}
|
4373
|
-
else {
|
4374
|
-
return item;
|
4375
|
-
}
|
4376
|
-
});
|
4377
|
-
request.url = param[0] + "?" + newParams.join("&");
|
4378
|
-
}
|
4379
|
-
return next(request);
|
4380
|
-
});
|
4381
|
-
}
|
4382
|
-
};
|
4383
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
4384
|
-
}
|
4385
|
-
}
|
4386
|
-
|
4387
|
-
exports.MicrosoftDatadogClient = MicrosoftDatadogClient;
|
4388
|
-
exports.getContinuationToken = getContinuationToken;
|
4389
|
-
//# sourceMappingURL=index.js.map
|