@azure/arm-portalservicescopilot 1.0.0-alpha.20250423.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/LICENSE +21 -0
- package/README.md +113 -0
- package/dist/browser/api/copilotSettings/index.d.ts +3 -0
- package/dist/browser/api/copilotSettings/index.d.ts.map +1 -0
- package/dist/browser/api/copilotSettings/index.js +4 -0
- package/dist/browser/api/copilotSettings/index.js.map +1 -0
- package/dist/browser/api/copilotSettings/operations.d.ts +26 -0
- package/dist/browser/api/copilotSettings/operations.d.ts.map +1 -0
- package/dist/browser/api/copilotSettings/operations.js +103 -0
- package/dist/browser/api/copilotSettings/operations.js.map +1 -0
- package/dist/browser/api/copilotSettings/options.d.ts +14 -0
- package/dist/browser/api/copilotSettings/options.d.ts.map +1 -0
- package/dist/browser/api/copilotSettings/options.js +4 -0
- package/dist/browser/api/copilotSettings/options.js.map +1 -0
- package/dist/browser/api/index.d.ts +2 -0
- package/dist/browser/api/index.d.ts.map +1 -0
- package/dist/browser/api/index.js +4 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/operations/index.d.ts +3 -0
- package/dist/browser/api/operations/index.d.ts.map +1 -0
- package/dist/browser/api/operations/index.js +4 -0
- package/dist/browser/api/operations/index.js.map +1 -0
- package/dist/browser/api/operations/operations.d.ts +10 -0
- package/dist/browser/api/operations/operations.d.ts.map +1 -0
- package/dist/browser/api/operations/operations.js +29 -0
- package/dist/browser/api/operations/operations.js.map +1 -0
- package/dist/browser/api/operations/options.d.ts +5 -0
- package/dist/browser/api/operations/options.d.ts.map +1 -0
- package/dist/browser/api/operations/options.js +4 -0
- package/dist/browser/api/operations/options.js.map +1 -0
- package/dist/browser/api/portalServicesContext.d.ts +17 -0
- package/dist/browser/api/portalServicesContext.d.ts.map +1 -0
- package/dist/browser/api/portalServicesContext.js +35 -0
- package/dist/browser/api/portalServicesContext.js.map +1 -0
- package/dist/browser/classic/copilotSettings/index.d.ts +21 -0
- package/dist/browser/classic/copilotSettings/index.d.ts.map +1 -0
- package/dist/browser/classic/copilotSettings/index.js +15 -0
- package/dist/browser/classic/copilotSettings/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +3 -0
- package/dist/browser/classic/index.d.ts.map +1 -0
- package/dist/browser/classic/index.js +4 -0
- package/dist/browser/classic/index.js.map +1 -0
- package/dist/browser/classic/operations/index.d.ts +11 -0
- package/dist/browser/classic/operations/index.d.ts.map +1 -0
- package/dist/browser/classic/operations/index.js +12 -0
- package/dist/browser/classic/operations/index.js.map +1 -0
- package/dist/browser/index.d.ts +9 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +5 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.d.ts.map +1 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models/index.d.ts +2 -0
- package/dist/browser/models/index.d.ts.map +1 -0
- package/dist/browser/models/index.js +4 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/models.d.ts +210 -0
- package/dist/browser/models/models.d.ts.map +1 -0
- package/dist/browser/models/models.js +187 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/portalServicesClient.d.ts +18 -0
- package/dist/browser/portalServicesClient.d.ts.map +1 -0
- package/dist/browser/portalServicesClient.js +20 -0
- package/dist/browser/portalServicesClient.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.js +137 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.js +169 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/api/copilotSettings/index.d.ts +3 -0
- package/dist/commonjs/api/copilotSettings/index.d.ts.map +1 -0
- package/dist/commonjs/api/copilotSettings/index.js +11 -0
- package/dist/commonjs/api/copilotSettings/index.js.map +1 -0
- package/dist/commonjs/api/copilotSettings/operations.d.ts +26 -0
- package/dist/commonjs/api/copilotSettings/operations.d.ts.map +1 -0
- package/dist/commonjs/api/copilotSettings/operations.js +117 -0
- package/dist/commonjs/api/copilotSettings/operations.js.map +1 -0
- package/dist/commonjs/api/copilotSettings/options.d.ts +14 -0
- package/dist/commonjs/api/copilotSettings/options.d.ts.map +1 -0
- package/dist/commonjs/api/copilotSettings/options.js +5 -0
- package/dist/commonjs/api/copilotSettings/options.js.map +1 -0
- package/dist/commonjs/api/index.d.ts +2 -0
- package/dist/commonjs/api/index.d.ts.map +1 -0
- package/dist/commonjs/api/index.js +8 -0
- package/dist/commonjs/api/index.js.map +1 -0
- package/dist/commonjs/api/operations/index.d.ts +3 -0
- package/dist/commonjs/api/operations/index.d.ts.map +1 -0
- package/dist/commonjs/api/operations/index.js +8 -0
- package/dist/commonjs/api/operations/index.js.map +1 -0
- package/dist/commonjs/api/operations/operations.d.ts +10 -0
- package/dist/commonjs/api/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/api/operations/operations.js +34 -0
- package/dist/commonjs/api/operations/operations.js.map +1 -0
- package/dist/commonjs/api/operations/options.d.ts +5 -0
- package/dist/commonjs/api/operations/options.d.ts.map +1 -0
- package/dist/commonjs/api/operations/options.js +5 -0
- package/dist/commonjs/api/operations/options.js.map +1 -0
- package/dist/commonjs/api/portalServicesContext.d.ts +17 -0
- package/dist/commonjs/api/portalServicesContext.d.ts.map +1 -0
- package/dist/commonjs/api/portalServicesContext.js +38 -0
- package/dist/commonjs/api/portalServicesContext.js.map +1 -0
- package/dist/commonjs/classic/copilotSettings/index.d.ts +21 -0
- package/dist/commonjs/classic/copilotSettings/index.d.ts.map +1 -0
- package/dist/commonjs/classic/copilotSettings/index.js +18 -0
- package/dist/commonjs/classic/copilotSettings/index.js.map +1 -0
- package/dist/commonjs/classic/index.d.ts +3 -0
- package/dist/commonjs/classic/index.d.ts.map +1 -0
- package/dist/commonjs/classic/index.js +5 -0
- package/dist/commonjs/classic/index.js.map +1 -0
- package/dist/commonjs/classic/operations/index.d.ts +11 -0
- package/dist/commonjs/classic/operations/index.d.ts.map +1 -0
- package/dist/commonjs/classic/operations/index.js +15 -0
- package/dist/commonjs/classic/operations/index.js.map +1 -0
- package/dist/commonjs/index.d.ts +9 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +14 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +8 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +2 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +12 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/models.d.ts +210 -0
- package/dist/commonjs/models/models.d.ts.map +1 -0
- package/dist/commonjs/models/models.js +211 -0
- package/dist/commonjs/models/models.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/portalServicesClient.d.ts +18 -0
- package/dist/commonjs/portalServicesClient.d.ts.map +1 -0
- package/dist/commonjs/portalServicesClient.js +24 -0
- package/dist/commonjs/portalServicesClient.js.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +140 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +172 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/api/copilotSettings/index.d.ts +3 -0
- package/dist/esm/api/copilotSettings/index.d.ts.map +1 -0
- package/dist/esm/api/copilotSettings/index.js +4 -0
- package/dist/esm/api/copilotSettings/index.js.map +1 -0
- package/dist/esm/api/copilotSettings/operations.d.ts +26 -0
- package/dist/esm/api/copilotSettings/operations.d.ts.map +1 -0
- package/dist/esm/api/copilotSettings/operations.js +103 -0
- package/dist/esm/api/copilotSettings/operations.js.map +1 -0
- package/dist/esm/api/copilotSettings/options.d.ts +14 -0
- package/dist/esm/api/copilotSettings/options.d.ts.map +1 -0
- package/dist/esm/api/copilotSettings/options.js +4 -0
- package/dist/esm/api/copilotSettings/options.js.map +1 -0
- package/dist/esm/api/index.d.ts +2 -0
- package/dist/esm/api/index.d.ts.map +1 -0
- package/dist/esm/api/index.js +4 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/operations/index.d.ts +3 -0
- package/dist/esm/api/operations/index.d.ts.map +1 -0
- package/dist/esm/api/operations/index.js +4 -0
- package/dist/esm/api/operations/index.js.map +1 -0
- package/dist/esm/api/operations/operations.d.ts +10 -0
- package/dist/esm/api/operations/operations.d.ts.map +1 -0
- package/dist/esm/api/operations/operations.js +29 -0
- package/dist/esm/api/operations/operations.js.map +1 -0
- package/dist/esm/api/operations/options.d.ts +5 -0
- package/dist/esm/api/operations/options.d.ts.map +1 -0
- package/dist/esm/api/operations/options.js +4 -0
- package/dist/esm/api/operations/options.js.map +1 -0
- package/dist/esm/api/portalServicesContext.d.ts +17 -0
- package/dist/esm/api/portalServicesContext.d.ts.map +1 -0
- package/dist/esm/api/portalServicesContext.js +35 -0
- package/dist/esm/api/portalServicesContext.js.map +1 -0
- package/dist/esm/classic/copilotSettings/index.d.ts +21 -0
- package/dist/esm/classic/copilotSettings/index.d.ts.map +1 -0
- package/dist/esm/classic/copilotSettings/index.js +15 -0
- package/dist/esm/classic/copilotSettings/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +3 -0
- package/dist/esm/classic/index.d.ts.map +1 -0
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -0
- package/dist/esm/classic/operations/index.d.ts +11 -0
- package/dist/esm/classic/operations/index.d.ts.map +1 -0
- package/dist/esm/classic/operations/index.js +12 -0
- package/dist/esm/classic/operations/index.js.map +1 -0
- package/dist/esm/index.d.ts +9 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/models.d.ts +210 -0
- package/dist/esm/models/models.d.ts.map +1 -0
- package/dist/esm/models/models.js +187 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/portalServicesClient.d.ts +18 -0
- package/dist/esm/portalServicesClient.d.ts.map +1 -0
- package/dist/esm/portalServicesClient.js +20 -0
- package/dist/esm/portalServicesClient.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.js +137 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.js +169 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/dist/react-native/api/copilotSettings/index.d.ts +3 -0
- package/dist/react-native/api/copilotSettings/index.d.ts.map +1 -0
- package/dist/react-native/api/copilotSettings/index.js +4 -0
- package/dist/react-native/api/copilotSettings/index.js.map +1 -0
- package/dist/react-native/api/copilotSettings/operations.d.ts +26 -0
- package/dist/react-native/api/copilotSettings/operations.d.ts.map +1 -0
- package/dist/react-native/api/copilotSettings/operations.js +103 -0
- package/dist/react-native/api/copilotSettings/operations.js.map +1 -0
- package/dist/react-native/api/copilotSettings/options.d.ts +14 -0
- package/dist/react-native/api/copilotSettings/options.d.ts.map +1 -0
- package/dist/react-native/api/copilotSettings/options.js +4 -0
- package/dist/react-native/api/copilotSettings/options.js.map +1 -0
- package/dist/react-native/api/index.d.ts +2 -0
- package/dist/react-native/api/index.d.ts.map +1 -0
- package/dist/react-native/api/index.js +4 -0
- package/dist/react-native/api/index.js.map +1 -0
- package/dist/react-native/api/operations/index.d.ts +3 -0
- package/dist/react-native/api/operations/index.d.ts.map +1 -0
- package/dist/react-native/api/operations/index.js +4 -0
- package/dist/react-native/api/operations/index.js.map +1 -0
- package/dist/react-native/api/operations/operations.d.ts +10 -0
- package/dist/react-native/api/operations/operations.d.ts.map +1 -0
- package/dist/react-native/api/operations/operations.js +29 -0
- package/dist/react-native/api/operations/operations.js.map +1 -0
- package/dist/react-native/api/operations/options.d.ts +5 -0
- package/dist/react-native/api/operations/options.d.ts.map +1 -0
- package/dist/react-native/api/operations/options.js +4 -0
- package/dist/react-native/api/operations/options.js.map +1 -0
- package/dist/react-native/api/portalServicesContext.d.ts +17 -0
- package/dist/react-native/api/portalServicesContext.d.ts.map +1 -0
- package/dist/react-native/api/portalServicesContext.js +35 -0
- package/dist/react-native/api/portalServicesContext.js.map +1 -0
- package/dist/react-native/classic/copilotSettings/index.d.ts +21 -0
- package/dist/react-native/classic/copilotSettings/index.d.ts.map +1 -0
- package/dist/react-native/classic/copilotSettings/index.js +15 -0
- package/dist/react-native/classic/copilotSettings/index.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +3 -0
- package/dist/react-native/classic/index.d.ts.map +1 -0
- package/dist/react-native/classic/index.js +4 -0
- package/dist/react-native/classic/index.js.map +1 -0
- package/dist/react-native/classic/operations/index.d.ts +11 -0
- package/dist/react-native/classic/operations/index.d.ts.map +1 -0
- package/dist/react-native/classic/operations/index.js +12 -0
- package/dist/react-native/classic/operations/index.js.map +1 -0
- package/dist/react-native/index.d.ts +9 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +5 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/logger.d.ts +2 -0
- package/dist/react-native/logger.d.ts.map +1 -0
- package/dist/react-native/logger.js +5 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models/index.d.ts +2 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +4 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/models.d.ts +210 -0
- package/dist/react-native/models/models.d.ts.map +1 -0
- package/dist/react-native/models/models.js +187 -0
- package/dist/react-native/models/models.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/portalServicesClient.d.ts +18 -0
- package/dist/react-native/portalServicesClient.d.ts.map +1 -0
- package/dist/react-native/portalServicesClient.js +20 -0
- package/dist/react-native/portalServicesClient.js.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.js +137 -0
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/react-native/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/react-native/static-helpers/urlTemplate.js +169 -0
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
- package/package.json +218 -0
- package/review/arm-portalservicescopilot-api-copilotSettings.api.md +40 -0
- package/review/arm-portalservicescopilot-api-operations.api.md +19 -0
- package/review/arm-portalservicescopilot-api.api.md +26 -0
- package/review/arm-portalservicescopilot-models.api.md +133 -0
- package/review/arm-portalservicescopilot.api.md +201 -0
package/CHANGELOG.md
ADDED
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Copyright (c) Microsoft Corporation.
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# Azure PortalServices client library for JavaScript
|
|
2
|
+
|
|
3
|
+
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure PortalServices client.
|
|
4
|
+
|
|
5
|
+
Azure Portal Services API Reference
|
|
6
|
+
|
|
7
|
+
Key links:
|
|
8
|
+
|
|
9
|
+
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/portalservices/arm-portalservicescopilot)
|
|
10
|
+
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-portalservicescopilot)
|
|
11
|
+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-portalservicescopilot?view=azure-node-preview)
|
|
12
|
+
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/portalservices/arm-portalservicescopilot/samples)
|
|
13
|
+
|
|
14
|
+
## Getting started
|
|
15
|
+
|
|
16
|
+
### Currently supported environments
|
|
17
|
+
|
|
18
|
+
- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
|
|
19
|
+
- Latest versions of Safari, Chrome, Edge and Firefox.
|
|
20
|
+
|
|
21
|
+
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
|
|
22
|
+
|
|
23
|
+
### Prerequisites
|
|
24
|
+
|
|
25
|
+
- An [Azure subscription][azure_sub].
|
|
26
|
+
|
|
27
|
+
### Install the `@azure/arm-portalservicescopilot` package
|
|
28
|
+
|
|
29
|
+
Install the Azure PortalServices client library for JavaScript with `npm`:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npm install @azure/arm-portalservicescopilot
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Create and authenticate a `PortalServicesClient`
|
|
36
|
+
|
|
37
|
+
To create a client object to access the Azure PortalServices API, you will need the `endpoint` of your Azure PortalServices resource and a `credential`. The Azure PortalServices client can use Azure Active Directory credentials to authenticate.
|
|
38
|
+
You can find the endpoint for your Azure PortalServices resource in the [Azure Portal][azure_portal].
|
|
39
|
+
|
|
40
|
+
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
|
|
41
|
+
|
|
42
|
+
To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npm install @azure/identity
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
You will also need to **register a new AAD application and grant access to Azure PortalServices** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
|
|
49
|
+
|
|
50
|
+
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
|
|
51
|
+
|
|
52
|
+
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
|
|
53
|
+
|
|
54
|
+
```ts snippet:ReadmeSampleCreateClient_Node
|
|
55
|
+
import { PortalServicesClient } from "@azure/arm-portalservicescopilot";
|
|
56
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
57
|
+
|
|
58
|
+
const client = new PortalServicesClient(new DefaultAzureCredential());
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
|
|
62
|
+
|
|
63
|
+
```ts snippet:ReadmeSampleCreateClient_Browser
|
|
64
|
+
import { InteractiveBrowserCredential } from "@azure/identity";
|
|
65
|
+
import { PortalServicesClient } from "@azure/arm-portalservicescopilot";
|
|
66
|
+
|
|
67
|
+
const credential = new InteractiveBrowserCredential({
|
|
68
|
+
tenantId: "<YOUR_TENANT_ID>",
|
|
69
|
+
clientId: "<YOUR_CLIENT_ID>"
|
|
70
|
+
});
|
|
71
|
+
const client = new PortalServicesClient(credential);
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### JavaScript Bundle
|
|
76
|
+
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
|
|
77
|
+
|
|
78
|
+
## Key concepts
|
|
79
|
+
|
|
80
|
+
### PortalServicesClient
|
|
81
|
+
|
|
82
|
+
`PortalServicesClient` is the primary interface for developers using the Azure PortalServices client library. Explore the methods on this client object to understand the different features of the Azure PortalServices service that you can access.
|
|
83
|
+
|
|
84
|
+
## Troubleshooting
|
|
85
|
+
|
|
86
|
+
### Logging
|
|
87
|
+
|
|
88
|
+
Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
|
|
89
|
+
|
|
90
|
+
```ts snippet:SetLogLevel
|
|
91
|
+
import { setLogLevel } from "@azure/logger";
|
|
92
|
+
|
|
93
|
+
setLogLevel("info");
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
|
|
97
|
+
|
|
98
|
+
## Next steps
|
|
99
|
+
|
|
100
|
+
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/portalservices/arm-portalservicescopilot/samples) directory for detailed examples on how to use this library.
|
|
101
|
+
|
|
102
|
+
## Contributing
|
|
103
|
+
|
|
104
|
+
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
|
|
105
|
+
|
|
106
|
+
## Related projects
|
|
107
|
+
|
|
108
|
+
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
|
|
109
|
+
|
|
110
|
+
[azure_sub]: https://azure.microsoft.com/free/
|
|
111
|
+
[azure_portal]: https://portal.azure.com
|
|
112
|
+
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
|
|
113
|
+
[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { $delete, update, createOrUpdate, get } from "./operations.js";
|
|
2
|
+
export { CopilotSettingsDeleteOptionalParams, CopilotSettingsUpdateOptionalParams, CopilotSettingsCreateOrUpdateOptionalParams, CopilotSettingsGetOptionalParams, } from "./options.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/copilotSettings/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EACL,mCAAmC,EACnC,mCAAmC,EACnC,2CAA2C,EAC3C,gCAAgC,GACjC,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/copilotSettings/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { $delete, update, createOrUpdate, get } from \"./operations.js\";\nexport {\n CopilotSettingsDeleteOptionalParams,\n CopilotSettingsUpdateOptionalParams,\n CopilotSettingsCreateOrUpdateOptionalParams,\n CopilotSettingsGetOptionalParams,\n} from \"./options.js\";\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PortalServicesContext as Client } from "../index.js";
|
|
2
|
+
import { CopilotSettingsResource, CopilotSettingsResourceUpdate } from "../../models/models.js";
|
|
3
|
+
import { CopilotSettingsDeleteOptionalParams, CopilotSettingsUpdateOptionalParams, CopilotSettingsCreateOrUpdateOptionalParams, CopilotSettingsGetOptionalParams } from "./options.js";
|
|
4
|
+
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
5
|
+
export declare function _$deleteSend(context: Client, options?: CopilotSettingsDeleteOptionalParams): StreamableMethod;
|
|
6
|
+
export declare function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
7
|
+
/** Delete a CopilotSettingsResource */
|
|
8
|
+
/**
|
|
9
|
+
* @fixme delete is a reserved word that cannot be used as an operation name.
|
|
10
|
+
* Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
|
|
11
|
+
* to the operation to override the generated name.
|
|
12
|
+
*/
|
|
13
|
+
export declare function $delete(context: Client, options?: CopilotSettingsDeleteOptionalParams): Promise<void>;
|
|
14
|
+
export declare function _updateSend(context: Client, properties: CopilotSettingsResourceUpdate, options?: CopilotSettingsUpdateOptionalParams): StreamableMethod;
|
|
15
|
+
export declare function _updateDeserialize(result: PathUncheckedResponse): Promise<CopilotSettingsResource>;
|
|
16
|
+
/** Update a CopilotSettingsResource */
|
|
17
|
+
export declare function update(context: Client, properties: CopilotSettingsResourceUpdate, options?: CopilotSettingsUpdateOptionalParams): Promise<CopilotSettingsResource>;
|
|
18
|
+
export declare function _createOrUpdateSend(context: Client, resource: CopilotSettingsResource, options?: CopilotSettingsCreateOrUpdateOptionalParams): StreamableMethod;
|
|
19
|
+
export declare function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<CopilotSettingsResource>;
|
|
20
|
+
/** Create a CopilotSettingsResource */
|
|
21
|
+
export declare function createOrUpdate(context: Client, resource: CopilotSettingsResource, options?: CopilotSettingsCreateOrUpdateOptionalParams): Promise<CopilotSettingsResource>;
|
|
22
|
+
export declare function _getSend(context: Client, options?: CopilotSettingsGetOptionalParams): StreamableMethod;
|
|
23
|
+
export declare function _getDeserialize(result: PathUncheckedResponse): Promise<CopilotSettingsResource>;
|
|
24
|
+
/** Get a CopilotSettingsResource */
|
|
25
|
+
export declare function get(context: Client, options?: CopilotSettingsGetOptionalParams): Promise<CopilotSettingsResource>;
|
|
26
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/api/copilotSettings/operations.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAEL,uBAAuB,EAGvB,6BAA6B,EAE9B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,mCAAmC,EACnC,mCAAmC,EACnC,2CAA2C,EAC3C,gCAAgC,EACjC,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,YAAY,CAC1B,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,mCAA4D,GACpE,gBAAgB,CAiBlB;AAED,wBAAsB,mBAAmB,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAStF;AAED,uCAAuC;AACvC;;;;GAIG;AACH,wBAAsB,OAAO,CAC3B,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,mCAA4D,GACpE,OAAO,CAAC,IAAI,CAAC,CAGf;AAED,wBAAgB,WAAW,CACzB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,6BAA6B,EACzC,OAAO,GAAE,mCAA4D,GACpE,gBAAgB,CAmBlB;AAED,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,uBAAuB,CAAC,CASlC;AAED,uCAAuC;AACvC,wBAAsB,MAAM,CAC1B,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,6BAA6B,EACzC,OAAO,GAAE,mCAA4D,GACpE,OAAO,CAAC,uBAAuB,CAAC,CAGlC;AAED,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,uBAAuB,EACjC,OAAO,GAAE,2CAAoE,GAC5E,gBAAgB,CAmBlB;AAED,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,uBAAuB,CAAC,CASlC;AAED,uCAAuC;AACvC,wBAAsB,cAAc,CAClC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,uBAAuB,EACjC,OAAO,GAAE,2CAAoE,GAC5E,OAAO,CAAC,uBAAuB,CAAC,CAGlC;AAED,wBAAgB,QAAQ,CACtB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,gCAAyD,GACjE,gBAAgB,CAiBlB;AAED,wBAAsB,eAAe,CACnC,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,uBAAuB,CAAC,CASlC;AAED,oCAAoC;AACpC,wBAAsB,GAAG,CACvB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,gCAAyD,GACjE,OAAO,CAAC,uBAAuB,CAAC,CAGlC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { errorResponseDeserializer, copilotSettingsResourceSerializer, copilotSettingsResourceDeserializer, copilotSettingsResourceUpdateSerializer, } from "../../models/models.js";
|
|
4
|
+
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
|
|
5
|
+
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
6
|
+
export function _$deleteSend(context, options = { requestOptions: {} }) {
|
|
7
|
+
var _a, _b;
|
|
8
|
+
const path = expandUrlTemplate("/providers/Microsoft.PortalServices/copilotSettings/default{?api%2Dversion}", {
|
|
9
|
+
"api%2Dversion": context.apiVersion,
|
|
10
|
+
}, {
|
|
11
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
12
|
+
});
|
|
13
|
+
return context.path(path).delete(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
14
|
+
}
|
|
15
|
+
export async function _$deleteDeserialize(result) {
|
|
16
|
+
const expectedStatuses = ["200", "204"];
|
|
17
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
18
|
+
const error = createRestError(result);
|
|
19
|
+
error.details = errorResponseDeserializer(result.body);
|
|
20
|
+
throw error;
|
|
21
|
+
}
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
/** Delete a CopilotSettingsResource */
|
|
25
|
+
/**
|
|
26
|
+
* @fixme delete is a reserved word that cannot be used as an operation name.
|
|
27
|
+
* Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
|
|
28
|
+
* to the operation to override the generated name.
|
|
29
|
+
*/
|
|
30
|
+
export async function $delete(context, options = { requestOptions: {} }) {
|
|
31
|
+
const result = await _$deleteSend(context, options);
|
|
32
|
+
return _$deleteDeserialize(result);
|
|
33
|
+
}
|
|
34
|
+
export function _updateSend(context, properties, options = { requestOptions: {} }) {
|
|
35
|
+
var _a, _b;
|
|
36
|
+
const path = expandUrlTemplate("/providers/Microsoft.PortalServices/copilotSettings/default{?api%2Dversion}", {
|
|
37
|
+
"api%2Dversion": context.apiVersion,
|
|
38
|
+
}, {
|
|
39
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
40
|
+
});
|
|
41
|
+
return context.path(path).patch(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: copilotSettingsResourceUpdateSerializer(properties) }));
|
|
42
|
+
}
|
|
43
|
+
export async function _updateDeserialize(result) {
|
|
44
|
+
const expectedStatuses = ["200"];
|
|
45
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
46
|
+
const error = createRestError(result);
|
|
47
|
+
error.details = errorResponseDeserializer(result.body);
|
|
48
|
+
throw error;
|
|
49
|
+
}
|
|
50
|
+
return copilotSettingsResourceDeserializer(result.body);
|
|
51
|
+
}
|
|
52
|
+
/** Update a CopilotSettingsResource */
|
|
53
|
+
export async function update(context, properties, options = { requestOptions: {} }) {
|
|
54
|
+
const result = await _updateSend(context, properties, options);
|
|
55
|
+
return _updateDeserialize(result);
|
|
56
|
+
}
|
|
57
|
+
export function _createOrUpdateSend(context, resource, options = { requestOptions: {} }) {
|
|
58
|
+
var _a, _b;
|
|
59
|
+
const path = expandUrlTemplate("/providers/Microsoft.PortalServices/copilotSettings/default{?api%2Dversion}", {
|
|
60
|
+
"api%2Dversion": context.apiVersion,
|
|
61
|
+
}, {
|
|
62
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
63
|
+
});
|
|
64
|
+
return context.path(path).put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: copilotSettingsResourceSerializer(resource) }));
|
|
65
|
+
}
|
|
66
|
+
export async function _createOrUpdateDeserialize(result) {
|
|
67
|
+
const expectedStatuses = ["200", "201"];
|
|
68
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
69
|
+
const error = createRestError(result);
|
|
70
|
+
error.details = errorResponseDeserializer(result.body);
|
|
71
|
+
throw error;
|
|
72
|
+
}
|
|
73
|
+
return copilotSettingsResourceDeserializer(result.body);
|
|
74
|
+
}
|
|
75
|
+
/** Create a CopilotSettingsResource */
|
|
76
|
+
export async function createOrUpdate(context, resource, options = { requestOptions: {} }) {
|
|
77
|
+
const result = await _createOrUpdateSend(context, resource, options);
|
|
78
|
+
return _createOrUpdateDeserialize(result);
|
|
79
|
+
}
|
|
80
|
+
export function _getSend(context, options = { requestOptions: {} }) {
|
|
81
|
+
var _a, _b;
|
|
82
|
+
const path = expandUrlTemplate("/providers/Microsoft.PortalServices/copilotSettings/default{?api%2Dversion}", {
|
|
83
|
+
"api%2Dversion": context.apiVersion,
|
|
84
|
+
}, {
|
|
85
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
86
|
+
});
|
|
87
|
+
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
88
|
+
}
|
|
89
|
+
export async function _getDeserialize(result) {
|
|
90
|
+
const expectedStatuses = ["200"];
|
|
91
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
92
|
+
const error = createRestError(result);
|
|
93
|
+
error.details = errorResponseDeserializer(result.body);
|
|
94
|
+
throw error;
|
|
95
|
+
}
|
|
96
|
+
return copilotSettingsResourceDeserializer(result.body);
|
|
97
|
+
}
|
|
98
|
+
/** Get a CopilotSettingsResource */
|
|
99
|
+
export async function get(context, options = { requestOptions: {} }) {
|
|
100
|
+
const result = await _getSend(context, options);
|
|
101
|
+
return _getDeserialize(result);
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/copilotSettings/operations.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PortalServicesContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n CopilotSettingsResource,\n copilotSettingsResourceSerializer,\n copilotSettingsResourceDeserializer,\n CopilotSettingsResourceUpdate,\n copilotSettingsResourceUpdateSerializer,\n} from \"../../models/models.js\";\nimport {\n CopilotSettingsDeleteOptionalParams,\n CopilotSettingsUpdateOptionalParams,\n CopilotSettingsCreateOrUpdateOptionalParams,\n CopilotSettingsGetOptionalParams,\n} from \"./options.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _$deleteSend(\n context: Client,\n options: CopilotSettingsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.PortalServices/copilotSettings/default{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Delete a CopilotSettingsResource */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport async function $delete(\n context: Client,\n options: CopilotSettingsDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(context, options);\n return _$deleteDeserialize(result);\n}\n\nexport function _updateSend(\n context: Client,\n properties: CopilotSettingsResourceUpdate,\n options: CopilotSettingsUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.PortalServices/copilotSettings/default{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: copilotSettingsResourceUpdateSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(\n result: PathUncheckedResponse,\n): Promise<CopilotSettingsResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return copilotSettingsResourceDeserializer(result.body);\n}\n\n/** Update a CopilotSettingsResource */\nexport async function update(\n context: Client,\n properties: CopilotSettingsResourceUpdate,\n options: CopilotSettingsUpdateOptionalParams = { requestOptions: {} },\n): Promise<CopilotSettingsResource> {\n const result = await _updateSend(context, properties, options);\n return _updateDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resource: CopilotSettingsResource,\n options: CopilotSettingsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.PortalServices/copilotSettings/default{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: copilotSettingsResourceSerializer(resource),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<CopilotSettingsResource> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return copilotSettingsResourceDeserializer(result.body);\n}\n\n/** Create a CopilotSettingsResource */\nexport async function createOrUpdate(\n context: Client,\n resource: CopilotSettingsResource,\n options: CopilotSettingsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): Promise<CopilotSettingsResource> {\n const result = await _createOrUpdateSend(context, resource, options);\n return _createOrUpdateDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n options: CopilotSettingsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.PortalServices/copilotSettings/default{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(\n result: PathUncheckedResponse,\n): Promise<CopilotSettingsResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return copilotSettingsResourceDeserializer(result.body);\n}\n\n/** Get a CopilotSettingsResource */\nexport async function get(\n context: Client,\n options: CopilotSettingsGetOptionalParams = { requestOptions: {} },\n): Promise<CopilotSettingsResource> {\n const result = await _getSend(context, options);\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
2
|
+
/** Optional parameters. */
|
|
3
|
+
export interface CopilotSettingsDeleteOptionalParams extends OperationOptions {
|
|
4
|
+
}
|
|
5
|
+
/** Optional parameters. */
|
|
6
|
+
export interface CopilotSettingsUpdateOptionalParams extends OperationOptions {
|
|
7
|
+
}
|
|
8
|
+
/** Optional parameters. */
|
|
9
|
+
export interface CopilotSettingsCreateOrUpdateOptionalParams extends OperationOptions {
|
|
10
|
+
}
|
|
11
|
+
/** Optional parameters. */
|
|
12
|
+
export interface CopilotSettingsGetOptionalParams extends OperationOptions {
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/api/copilotSettings/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,2BAA2B;AAC3B,MAAM,WAAW,mCAAoC,SAAQ,gBAAgB;CAAG;AAEhF,2BAA2B;AAC3B,MAAM,WAAW,mCAAoC,SAAQ,gBAAgB;CAAG;AAEhF,2BAA2B;AAC3B,MAAM,WAAW,2CAA4C,SAAQ,gBAAgB;CAAG;AAExF,2BAA2B;AAC3B,MAAM,WAAW,gCAAiC,SAAQ,gBAAgB;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/copilotSettings/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface CopilotSettingsDeleteOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface CopilotSettingsUpdateOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface CopilotSettingsCreateOrUpdateOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface CopilotSettingsGetOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,kCAAkC,GACnC,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,oBAAoB,GAGrB,MAAM,4BAA4B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n createPortalServices,\n PortalServicesContext,\n PortalServicesClientOptionalParams,\n} from \"./portalServicesContext.js\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { list } from \"./operations.js\";\nexport { OperationsListOptionalParams } from \"./options.js\";\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PortalServicesContext as Client } from "../index.js";
|
|
2
|
+
import { _OperationListResult, Operation } from "../../models/models.js";
|
|
3
|
+
import { OperationsListOptionalParams } from "./options.js";
|
|
4
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
6
|
+
export declare function _listSend(context: Client, options?: OperationsListOptionalParams): StreamableMethod;
|
|
7
|
+
export declare function _listDeserialize(result: PathUncheckedResponse): Promise<_OperationListResult>;
|
|
8
|
+
/** List the operations for the provider */
|
|
9
|
+
export declare function list(context: Client, options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
10
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/operations.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EACL,oBAAoB,EAEpB,SAAS,EAEV,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,SAAS,CACvB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,gBAAgB,CAiBlB;AAED,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CAS/B;AAED,2CAA2C;AAC3C,wBAAgB,IAAI,CAClB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,0BAA0B,CAAC,SAAS,CAAC,CAQvC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { _operationListResultDeserializer, errorResponseDeserializer, } from "../../models/models.js";
|
|
4
|
+
import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
|
|
6
|
+
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
7
|
+
export function _listSend(context, options = { requestOptions: {} }) {
|
|
8
|
+
var _a, _b;
|
|
9
|
+
const path = expandUrlTemplate("/providers/Microsoft.PortalServices/operations{?api%2Dversion}", {
|
|
10
|
+
"api%2Dversion": context.apiVersion,
|
|
11
|
+
}, {
|
|
12
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
13
|
+
});
|
|
14
|
+
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
15
|
+
}
|
|
16
|
+
export async function _listDeserialize(result) {
|
|
17
|
+
const expectedStatuses = ["200"];
|
|
18
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
19
|
+
const error = createRestError(result);
|
|
20
|
+
error.details = errorResponseDeserializer(result.body);
|
|
21
|
+
throw error;
|
|
22
|
+
}
|
|
23
|
+
return _operationListResultDeserializer(result.body);
|
|
24
|
+
}
|
|
25
|
+
/** List the operations for the provider */
|
|
26
|
+
export function list(context, options = { requestOptions: {} }) {
|
|
27
|
+
return buildPagedAsyncIterator(context, () => _listSend(context, options), _listDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/operations/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAEL,gCAAgC,EAEhC,yBAAyB,GAC1B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;;IAE9D,MAAM,IAAI,GAAG,iBAAiB,CAC5B,gEAAgE,EAChE;QACE,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,0CAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,iCACxB,mCAAmC,CAAC,OAAO,CAAC,KAC/C,OAAO,kBACL,MAAM,EAAE,kBAAkB,IACvB,MAAA,OAAO,CAAC,cAAc,0CAAE,OAAO,KAEpC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,gCAAgC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,IAAI,CAClB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,EACjC,gBAAgB,EAChB,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PortalServicesContext as Client } from \"../index.js\";\nimport {\n _OperationListResult,\n _operationListResultDeserializer,\n Operation,\n errorResponseDeserializer,\n} from \"../../models/models.js\";\nimport { OperationsListOptionalParams } from \"./options.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.PortalServices/operations{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _operationListResultDeserializer(result.body);\n}\n\n/** List the operations for the provider */\nexport function list(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,2BAA2B;AAC3B,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/operations/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Client, ClientOptions } from "@azure-rest/core-client";
|
|
2
|
+
import { TokenCredential } from "@azure/core-auth";
|
|
3
|
+
/** Azure Portal Services API Reference */
|
|
4
|
+
export interface PortalServicesContext extends Client {
|
|
5
|
+
/** The API version to use for this operation. */
|
|
6
|
+
/** Known values of {@link KnownVersions} that the service accepts. */
|
|
7
|
+
apiVersion: string;
|
|
8
|
+
}
|
|
9
|
+
/** Optional parameters for the client. */
|
|
10
|
+
export interface PortalServicesClientOptionalParams extends ClientOptions {
|
|
11
|
+
/** The API version to use for this operation. */
|
|
12
|
+
/** Known values of {@link KnownVersions} that the service accepts. */
|
|
13
|
+
apiVersion?: string;
|
|
14
|
+
}
|
|
15
|
+
/** Azure Portal Services API Reference */
|
|
16
|
+
export declare function createPortalServices(credential: TokenCredential, options?: PortalServicesClientOptionalParams): PortalServicesContext;
|
|
17
|
+
//# sourceMappingURL=portalServicesContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portalServicesContext.d.ts","sourceRoot":"","sources":["../../../src/api/portalServicesContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAa,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,0CAA0C;AAC1C,MAAM,WAAW,qBAAsB,SAAQ,MAAM;IACnD,iDAAiD;IACjD,sEAAsE;IACtE,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,0CAA0C;AAC1C,MAAM,WAAW,kCAAmC,SAAQ,aAAa;IACvE,iDAAiD;IACjD,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,0CAA0C;AAC1C,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,kCAAuC,GAC/C,qBAAqB,CAkCvB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { __rest } from "tslib";
|
|
4
|
+
import { logger } from "../logger.js";
|
|
5
|
+
import { getClient } from "@azure-rest/core-client";
|
|
6
|
+
/** Azure Portal Services API Reference */
|
|
7
|
+
export function createPortalServices(credential, options = {}) {
|
|
8
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
9
|
+
const endpointUrl = (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUrl) !== null && _b !== void 0 ? _b : "https://management.azure.com";
|
|
10
|
+
const prefixFromOptions = (_c = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _c === void 0 ? void 0 : _c.userAgentPrefix;
|
|
11
|
+
const userAgentInfo = `azsdk-js-arm-portalservicescopilot/1.0.0-beta.1`;
|
|
12
|
+
const userAgentPrefix = prefixFromOptions
|
|
13
|
+
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
|
|
14
|
+
: `azsdk-js-api ${userAgentInfo}`;
|
|
15
|
+
const _j = Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix }, loggingOptions: { logger: (_e = (_d = options.loggingOptions) === null || _d === void 0 ? void 0 : _d.logger) !== null && _e !== void 0 ? _e : logger.info }, credentials: {
|
|
16
|
+
scopes: (_g = (_f = options.credentials) === null || _f === void 0 ? void 0 : _f.scopes) !== null && _g !== void 0 ? _g : [`${endpointUrl}/.default`],
|
|
17
|
+
} }), { apiVersion: _ } = _j, updatedOptions = __rest(_j, ["apiVersion"]);
|
|
18
|
+
const clientContext = getClient(endpointUrl, credential, updatedOptions);
|
|
19
|
+
clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
|
|
20
|
+
const apiVersion = (_h = options.apiVersion) !== null && _h !== void 0 ? _h : "2024-04-01-preview";
|
|
21
|
+
clientContext.pipeline.addPolicy({
|
|
22
|
+
name: "ClientApiVersionPolicy",
|
|
23
|
+
sendRequest: (req, next) => {
|
|
24
|
+
// Use the apiVersion defined in request url directly
|
|
25
|
+
// Append one if there is no apiVersion and we have one at client options
|
|
26
|
+
const url = new URL(req.url);
|
|
27
|
+
if (!url.searchParams.get("api-version")) {
|
|
28
|
+
req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?"}api-version=${apiVersion}`;
|
|
29
|
+
}
|
|
30
|
+
return next(req);
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
return Object.assign(Object.assign({}, clientContext), { apiVersion });
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=portalServicesContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portalServicesContext.js","sourceRoot":"","sources":["../../../src/api/portalServicesContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAiB3E,0CAA0C;AAC1C,MAAM,UAAU,oBAAoB,CAClC,UAA2B,EAC3B,UAA8C,EAAE;;IAEhD,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,8BAA8B,CAAC;IAC1F,MAAM,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,0CAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,iDAAiD,CAAC;IACxE,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,qCACD,OAAO,KACV,gBAAgB,EAAE,EAAE,eAAe,EAAE,EACrC,cAAc,EAAE,EAAE,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,MAAM,mCAAI,MAAM,CAAC,IAAI,EAAE,EACzE,WAAW,EAAE;YACX,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,MAAM,mCAAI,CAAC,GAAG,WAAW,WAAW,CAAC;SACnE,GACF,EAPK,EAAE,UAAU,EAAE,CAAC,OAOpB,EAPyB,cAAc,cAAlC,cAAoC,CAOzC,CAAC;IACF,MAAM,aAAa,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,aAAa,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAClE,MAAM,UAAU,GAAG,MAAA,OAAO,CAAC,UAAU,mCAAI,oBAAoB,CAAC;IAC9D,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC;QAC/B,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACzB,qDAAqD;YACrD,yEAAyE;YACzE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;gBACzC,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IACH,OAAO,gCAAK,aAAa,KAAE,UAAU,GAA2B,CAAC;AACnE,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\n/** Azure Portal Services API Reference */\nexport interface PortalServicesContext extends Client {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion: string;\n}\n\n/** Optional parameters for the client. */\nexport interface PortalServicesClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\n/** Azure Portal Services API Reference */\nexport function createPortalServices(\n credential: TokenCredential,\n options: PortalServicesClientOptionalParams = {},\n): PortalServicesContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-portalservicescopilot/1.0.0-beta.1`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"2024-04-01-preview\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return { ...clientContext, apiVersion } as PortalServicesContext;\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PortalServicesContext } from "../../api/portalServicesContext.js";
|
|
2
|
+
import { CopilotSettingsResource, CopilotSettingsResourceUpdate } from "../../models/models.js";
|
|
3
|
+
import { CopilotSettingsDeleteOptionalParams, CopilotSettingsUpdateOptionalParams, CopilotSettingsCreateOrUpdateOptionalParams, CopilotSettingsGetOptionalParams } from "../../api/copilotSettings/options.js";
|
|
4
|
+
/** Interface representing a CopilotSettings operations. */
|
|
5
|
+
export interface CopilotSettingsOperations {
|
|
6
|
+
/** Delete a CopilotSettingsResource */
|
|
7
|
+
/**
|
|
8
|
+
* @fixme delete is a reserved word that cannot be used as an operation name.
|
|
9
|
+
* Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
|
|
10
|
+
* to the operation to override the generated name.
|
|
11
|
+
*/
|
|
12
|
+
delete: (options?: CopilotSettingsDeleteOptionalParams) => Promise<void>;
|
|
13
|
+
/** Update a CopilotSettingsResource */
|
|
14
|
+
update: (properties: CopilotSettingsResourceUpdate, options?: CopilotSettingsUpdateOptionalParams) => Promise<CopilotSettingsResource>;
|
|
15
|
+
/** Create a CopilotSettingsResource */
|
|
16
|
+
createOrUpdate: (resource: CopilotSettingsResource, options?: CopilotSettingsCreateOrUpdateOptionalParams) => Promise<CopilotSettingsResource>;
|
|
17
|
+
/** Get a CopilotSettingsResource */
|
|
18
|
+
get: (options?: CopilotSettingsGetOptionalParams) => Promise<CopilotSettingsResource>;
|
|
19
|
+
}
|
|
20
|
+
export declare function _getCopilotSettingsOperations(context: PortalServicesContext): CopilotSettingsOperations;
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/copilotSettings/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,uBAAuB,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AAChG,OAAO,EACL,mCAAmC,EACnC,mCAAmC,EACnC,2CAA2C,EAC3C,gCAAgC,EACjC,MAAM,sCAAsC,CAAC;AAG9C,2DAA2D;AAC3D,MAAM,WAAW,yBAAyB;IACxC,uCAAuC;IACvC;;;;OAIG;IACH,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,mCAAmC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACzE,uCAAuC;IACvC,MAAM,EAAE,CACN,UAAU,EAAE,6BAA6B,EACzC,OAAO,CAAC,EAAE,mCAAmC,KAC1C,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACtC,uCAAuC;IACvC,cAAc,EAAE,CACd,QAAQ,EAAE,uBAAuB,EACjC,OAAO,CAAC,EAAE,2CAA2C,KAClD,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACtC,oCAAoC;IACpC,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,gCAAgC,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAC;CACvF;AAiBD,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,qBAAqB,GAC7B,yBAAyB,CAI3B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { $delete, update, createOrUpdate, get } from "../../api/copilotSettings/operations.js";
|
|
4
|
+
function _getCopilotSettings(context) {
|
|
5
|
+
return {
|
|
6
|
+
delete: (options) => $delete(context, options),
|
|
7
|
+
update: (properties, options) => update(context, properties, options),
|
|
8
|
+
createOrUpdate: (resource, options) => createOrUpdate(context, resource, options),
|
|
9
|
+
get: (options) => get(context, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export function _getCopilotSettingsOperations(context) {
|
|
13
|
+
return Object.assign({}, _getCopilotSettings(context));
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/copilotSettings/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,yCAAyC,CAAC;AAyB/F,SAAS,mBAAmB,CAAC,OAA8B;IACzD,OAAO;QACL,MAAM,EAAE,CAAC,OAA6C,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC;QACpF,MAAM,EAAE,CACN,UAAyC,EACzC,OAA6C,EAC7C,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC;QACzC,cAAc,EAAE,CACd,QAAiC,EACjC,OAAqD,EACrD,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;QAC/C,GAAG,EAAE,CAAC,OAA0C,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC;KAC3E,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,6BAA6B,CAC3C,OAA8B;IAE9B,yBACK,mBAAmB,CAAC,OAAO,CAAC,EAC/B;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PortalServicesContext } from \"../../api/portalServicesContext.js\";\nimport { CopilotSettingsResource, CopilotSettingsResourceUpdate } from \"../../models/models.js\";\nimport {\n CopilotSettingsDeleteOptionalParams,\n CopilotSettingsUpdateOptionalParams,\n CopilotSettingsCreateOrUpdateOptionalParams,\n CopilotSettingsGetOptionalParams,\n} from \"../../api/copilotSettings/options.js\";\nimport { $delete, update, createOrUpdate, get } from \"../../api/copilotSettings/operations.js\";\n\n/** Interface representing a CopilotSettings operations. */\nexport interface CopilotSettingsOperations {\n /** Delete a CopilotSettingsResource */\n /**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\n delete: (options?: CopilotSettingsDeleteOptionalParams) => Promise<void>;\n /** Update a CopilotSettingsResource */\n update: (\n properties: CopilotSettingsResourceUpdate,\n options?: CopilotSettingsUpdateOptionalParams,\n ) => Promise<CopilotSettingsResource>;\n /** Create a CopilotSettingsResource */\n createOrUpdate: (\n resource: CopilotSettingsResource,\n options?: CopilotSettingsCreateOrUpdateOptionalParams,\n ) => Promise<CopilotSettingsResource>;\n /** Get a CopilotSettingsResource */\n get: (options?: CopilotSettingsGetOptionalParams) => Promise<CopilotSettingsResource>;\n}\n\nfunction _getCopilotSettings(context: PortalServicesContext) {\n return {\n delete: (options?: CopilotSettingsDeleteOptionalParams) => $delete(context, options),\n update: (\n properties: CopilotSettingsResourceUpdate,\n options?: CopilotSettingsUpdateOptionalParams,\n ) => update(context, properties, options),\n createOrUpdate: (\n resource: CopilotSettingsResource,\n options?: CopilotSettingsCreateOrUpdateOptionalParams,\n ) => createOrUpdate(context, resource, options),\n get: (options?: CopilotSettingsGetOptionalParams) => get(context, options),\n };\n}\n\nexport function _getCopilotSettingsOperations(\n context: PortalServicesContext,\n): CopilotSettingsOperations {\n return {\n ..._getCopilotSettings(context),\n };\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/classic/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC"}
|