@azure/arm-astro 1.0.0-beta.1 → 1.0.0-beta.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/CHANGELOG.md +11 -1
- package/LICENSE +4 -4
- package/README.md +26 -19
- package/{dist-esm/src → dist/browser}/astroManagementClient.d.ts +2 -2
- package/dist/browser/astroManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/astroManagementClient.js +31 -24
- package/dist/browser/astroManagementClient.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +1 -1
- package/dist/browser/lroImpl.js +18 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.js +14 -6
- 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/browser/operations/index.d.ts +3 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operations/index.js +2 -2
- package/dist/browser/operations/index.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 +26 -43
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/organizations.d.ts +3 -3
- package/dist/browser/operations/organizations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/organizations.js +175 -206
- package/dist/browser/operations/organizations.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +3 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +2 -2
- package/dist/browser/operationsInterfaces/index.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/organizations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/organizations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/organizations.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/{dist-esm/src → dist/browser}/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/astroManagementClient.d.ts +21 -0
- package/dist/commonjs/astroManagementClient.d.ts.map +1 -0
- package/dist/commonjs/astroManagementClient.js +113 -0
- package/dist/commonjs/astroManagementClient.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 +21 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/{types/arm-astro.d.ts → dist/commonjs/models/index.d.ts} +565 -736
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +89 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +28 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +868 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +12 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +117 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +3 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +13 -0
- package/dist/commonjs/operations/index.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 +121 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operations/organizations.d.ts +107 -0
- package/dist/commonjs/operations/organizations.d.ts.map +1 -0
- package/dist/commonjs/operations/organizations.js +528 -0
- package/dist/commonjs/operations/organizations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +13 -0
- package/dist/commonjs/operationsInterfaces/index.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/organizations.d.ts +71 -0
- package/dist/commonjs/operationsInterfaces/organizations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/organizations.js +10 -0
- package/dist/commonjs/operationsInterfaces/organizations.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 +34 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
- package/dist/esm/astroManagementClient.d.ts +21 -0
- package/dist/esm/astroManagementClient.d.ts.map +1 -0
- package/dist/esm/astroManagementClient.js +108 -0
- package/dist/esm/astroManagementClient.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 +18 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +565 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +86 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +28 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +865 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +12 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +114 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/index.d.ts +3 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +10 -0
- package/dist/esm/operations/index.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 +116 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operations/organizations.d.ts +107 -0
- package/dist/esm/operations/organizations.d.ts.map +1 -0
- package/dist/esm/operations/organizations.js +523 -0
- package/dist/esm/operations/organizations.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +3 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +10 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/esm/operationsInterfaces/operations.js} +2 -3
- package/dist/esm/operationsInterfaces/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/organizations.d.ts +71 -0
- package/dist/esm/operationsInterfaces/organizations.d.ts.map +1 -0
- package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/organizations.js} +2 -3
- package/dist/esm/operationsInterfaces/organizations.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 +30 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/astroManagementClient.d.ts +21 -0
- package/dist/react-native/astroManagementClient.d.ts.map +1 -0
- package/dist/react-native/astroManagementClient.js +108 -0
- package/dist/react-native/astroManagementClient.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 +18 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +565 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +86 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +28 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +865 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +12 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +114 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +3 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +10 -0
- package/dist/react-native/operations/index.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 +116 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operations/organizations.d.ts +107 -0
- package/dist/react-native/operations/organizations.d.ts.map +1 -0
- package/dist/react-native/operations/organizations.js +523 -0
- package/dist/react-native/operations/organizations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +10 -0
- package/dist/react-native/operationsInterfaces/index.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/organizations.d.ts +71 -0
- package/dist/react-native/operationsInterfaces/organizations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/organizations.js +9 -0
- package/dist/react-native/operationsInterfaces/organizations.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 +30 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +88 -74
- package/dist/index.js +0 -1942
- 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/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/organizationsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/organizationsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/organizationsCreateOrUpdateSample.js +0 -79
- package/dist-esm/samples-dev/organizationsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/organizationsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/organizationsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/organizationsDeleteSample.js +0 -39
- package/dist-esm/samples-dev/organizationsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/organizationsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/organizationsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/organizationsGetSample.js +0 -39
- package/dist-esm/samples-dev/organizationsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/organizationsListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/organizationsListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/organizationsListByResourceGroupSample.js +0 -54
- package/dist-esm/samples-dev/organizationsListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/organizationsListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/organizationsListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/organizationsListBySubscriptionSample.js +0 -53
- package/dist-esm/samples-dev/organizationsListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/organizationsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/organizationsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/organizationsUpdateSample.js +0 -65
- package/dist-esm/samples-dev/organizationsUpdateSample.js.map +0 -1
- package/dist-esm/src/astroManagementClient.d.ts.map +0 -1
- package/dist-esm/src/astroManagementClient.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -6
- package/dist-esm/src/index.d.ts.map +0 -1
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.js +0 -21
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -3
- package/dist-esm/src/operations/index.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/organizations.d.ts.map +0 -1
- package/dist-esm/src/operations/organizations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/organizations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/organizations.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/astro_operations_test.spec.d.ts +0 -4
- package/dist-esm/test/astro_operations_test.spec.d.ts.map +0 -1
- package/dist-esm/test/astro_operations_test.spec.js +0 -73
- package/dist-esm/test/astro_operations_test.spec.js.map +0 -1
- package/src/astroManagementClient.ts +0 -143
- package/src/lroImpl.ts +0 -42
- package/src/models/index.ts +0 -637
- package/src/models/mappers.ts +0 -899
- package/src/models/parameters.ts +0 -132
- package/src/operations/operations.ts +0 -149
- package/src/operations/organizations.ts +0 -728
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/organizations.ts +0 -145
- 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}/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/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/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/organizations.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/review/{arm-astro.api.md → arm-astro-node.api.md} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Release History
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
## 1.0.0-beta.2 (Unreleased)
|
|
4
|
+
|
|
5
|
+
### Features Added
|
|
6
|
+
|
|
7
|
+
### Breaking Changes
|
|
8
|
+
|
|
9
|
+
### Bugs Fixed
|
|
10
|
+
|
|
11
|
+
### Other Changes
|
|
12
|
+
|
|
3
13
|
## 1.0.0-beta.1 (2024-02-07)
|
|
4
14
|
|
|
5
15
|
The package of @azure/arm-astro is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
Copyright (c) Microsoft Corporation.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
MIT License
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -12,10 +12,10 @@ furnished to do so, subject to the following conditions:
|
|
|
12
12
|
The above copyright notice and this permission notice shall be included in all
|
|
13
13
|
copies or substantial portions of the Software.
|
|
14
14
|
|
|
15
|
-
THE SOFTWARE IS PROVIDED
|
|
15
|
+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
16
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
17
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure AstroManagement client.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
5
|
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/astro/arm-astro) |
|
|
8
6
|
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-astro) |
|
|
9
|
-
[API reference documentation](https://
|
|
7
|
+
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-astro?view=azure-node-preview) |
|
|
10
8
|
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
|
|
11
9
|
|
|
12
10
|
## Getting started
|
|
@@ -46,26 +44,34 @@ npm install @azure/identity
|
|
|
46
44
|
You will also need to **register a new AAD application and grant access to Azure AstroManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
|
|
47
45
|
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
|
|
48
46
|
|
|
49
|
-
For more information about how to create an Azure AD Application check out [this guide](https://
|
|
47
|
+
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).
|
|
48
|
+
|
|
49
|
+
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
|
|
50
50
|
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
|
|
51
|
+
```ts snippet:ReadmeSampleCreateClient_Node
|
|
52
|
+
import { AstroManagementClient } from "@azure/arm-astro";
|
|
53
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
55
54
|
|
|
56
55
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
57
56
|
const client = new AstroManagementClient(new DefaultAzureCredential(), subscriptionId);
|
|
58
|
-
|
|
59
|
-
// For client-side applications running in the browser, use this code instead:
|
|
60
|
-
// const credential = new InteractiveBrowserCredential({
|
|
61
|
-
// tenantId: "<YOUR_TENANT_ID>",
|
|
62
|
-
// clientId: "<YOUR_CLIENT_ID>"
|
|
63
|
-
// });
|
|
64
|
-
// const client = new AstroManagementClient(credential, subscriptionId);
|
|
65
57
|
```
|
|
66
58
|
|
|
59
|
+
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
|
|
60
|
+
|
|
61
|
+
```ts snippet:ReadmeSampleCreateClient_Browser
|
|
62
|
+
import { InteractiveBrowserCredential } from "@azure/identity";
|
|
63
|
+
import { AstroManagementClient } from "@azure/arm-astro";
|
|
64
|
+
|
|
65
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
66
|
+
const credential = new InteractiveBrowserCredential({
|
|
67
|
+
tenantId: "<YOUR_TENANT_ID>",
|
|
68
|
+
clientId: "<YOUR_CLIENT_ID>",
|
|
69
|
+
});
|
|
70
|
+
const client = new AstroManagementClient(credential, subscriptionId);
|
|
71
|
+
```
|
|
67
72
|
|
|
68
73
|
### JavaScript Bundle
|
|
74
|
+
|
|
69
75
|
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).
|
|
70
76
|
|
|
71
77
|
## Key concepts
|
|
@@ -80,8 +86,9 @@ To use this client library in the browser, first you need to use a bundler. For
|
|
|
80
86
|
|
|
81
87
|
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`:
|
|
82
88
|
|
|
83
|
-
```
|
|
84
|
-
|
|
89
|
+
```ts snippet:SetLogLevel
|
|
90
|
+
import { setLogLevel } from "@azure/logger";
|
|
91
|
+
|
|
85
92
|
setLogLevel("info");
|
|
86
93
|
```
|
|
87
94
|
|
|
@@ -99,9 +106,9 @@ If you'd like to contribute to this library, please read the [contributing guide
|
|
|
99
106
|
|
|
100
107
|
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
|
|
101
108
|
|
|
102
|
-

|
|
103
109
|
|
|
104
|
-
|
|
110
|
+
|
|
111
|
+
[azure_cli]: https://learn.microsoft.com/cli/azure
|
|
105
112
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
106
113
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
107
114
|
[azure_portal]: https://portal.azure.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as coreClient from "@azure/core-client";
|
|
2
2
|
import * as coreAuth from "@azure/core-auth";
|
|
3
|
-
import { Operations, Organizations } from "./operationsInterfaces";
|
|
4
|
-
import { AstroManagementClientOptionalParams } from "./models";
|
|
3
|
+
import { Operations, Organizations } from "./operationsInterfaces/index.js";
|
|
4
|
+
import { AstroManagementClientOptionalParams } from "./models/index.js";
|
|
5
5
|
export declare class AstroManagementClient extends coreClient.ServiceClient {
|
|
6
6
|
$host: string;
|
|
7
7
|
apiVersion: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"astroManagementClient.d.ts","sourceRoot":"","sources":["../../src/astroManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,mCAAmC,EAAE,MAAM,mBAAmB,CAAC;AAExE,qBAAa,qBAAsB,SAAQ,UAAU,CAAC,aAAa;IACjE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,mCAAmC;IA8E/C,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,aAAa,CAAC;CAC9B"}
|
|
@@ -5,11 +5,13 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
8
|
import * as coreClient from "@azure/core-client";
|
|
10
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
-
import { OperationsImpl, OrganizationsImpl } from "./operations";
|
|
10
|
+
import { OperationsImpl, OrganizationsImpl } from "./operations/index.js";
|
|
12
11
|
export class AstroManagementClient extends coreClient.ServiceClient {
|
|
12
|
+
$host;
|
|
13
|
+
apiVersion;
|
|
14
|
+
subscriptionId;
|
|
13
15
|
/**
|
|
14
16
|
* Initializes a new instance of the AstroManagementClient class.
|
|
15
17
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -17,7 +19,6 @@ export class AstroManagementClient extends coreClient.ServiceClient {
|
|
|
17
19
|
* @param options The parameter options
|
|
18
20
|
*/
|
|
19
21
|
constructor(credentials, subscriptionId, options) {
|
|
20
|
-
var _a, _b, _c;
|
|
21
22
|
if (credentials === undefined) {
|
|
22
23
|
throw new Error("'credentials' cannot be null");
|
|
23
24
|
}
|
|
@@ -32,16 +33,21 @@ export class AstroManagementClient extends coreClient.ServiceClient {
|
|
|
32
33
|
requestContentType: "application/json; charset=utf-8",
|
|
33
34
|
credential: credentials,
|
|
34
35
|
};
|
|
35
|
-
const packageDetails = `azsdk-js-arm-astro/1.0.0-beta.
|
|
36
|
+
const packageDetails = `azsdk-js-arm-astro/1.0.0-beta.2`;
|
|
36
37
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
37
38
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
38
39
|
: `${packageDetails}`;
|
|
39
|
-
const optionsWithDefaults =
|
|
40
|
+
const optionsWithDefaults = {
|
|
41
|
+
...defaults,
|
|
42
|
+
...options,
|
|
43
|
+
userAgentOptions: {
|
|
40
44
|
userAgentPrefix,
|
|
41
|
-
},
|
|
45
|
+
},
|
|
46
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
|
47
|
+
};
|
|
42
48
|
super(optionsWithDefaults);
|
|
43
49
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
44
|
-
if (
|
|
50
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
45
51
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
46
52
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
47
53
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -55,7 +61,8 @@ export class AstroManagementClient extends coreClient.ServiceClient {
|
|
|
55
61
|
});
|
|
56
62
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
57
63
|
credential: credentials,
|
|
58
|
-
scopes:
|
|
64
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
65
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
59
66
|
challengeCallbacks: {
|
|
60
67
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
|
61
68
|
},
|
|
@@ -77,25 +84,25 @@ export class AstroManagementClient extends coreClient.ServiceClient {
|
|
|
77
84
|
}
|
|
78
85
|
const apiVersionPolicy = {
|
|
79
86
|
name: "CustomApiVersionPolicy",
|
|
80
|
-
sendRequest(request, next) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
return next(request);
|
|
95
|
-
});
|
|
87
|
+
async sendRequest(request, next) {
|
|
88
|
+
const param = request.url.split("?");
|
|
89
|
+
if (param.length > 1) {
|
|
90
|
+
const newParams = param[1].split("&").map((item) => {
|
|
91
|
+
if (item.indexOf("api-version") > -1) {
|
|
92
|
+
return "api-version=" + apiVersion;
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
return item;
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
99
|
+
}
|
|
100
|
+
return next(request);
|
|
96
101
|
},
|
|
97
102
|
};
|
|
98
103
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
99
104
|
}
|
|
105
|
+
operations;
|
|
106
|
+
organizations;
|
|
100
107
|
}
|
|
101
108
|
//# sourceMappingURL=astroManagementClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"astroManagementClient.js","sourceRoot":"","sources":["../../src/astroManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAI1E,MAAM,OAAO,qBAAsB,SAAQ,UAAU,CAAC,aAAa;IACjE,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA6C;QAE7C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAA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AAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,UAAU,CAAa;IACvB,aAAa,CAAgB;CAC9B","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { OperationsImpl, OrganizationsImpl } from \"./operations/index.js\";\nimport { Operations, Organizations } from \"./operationsInterfaces/index.js\";\nimport { AstroManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class AstroManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AstroManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AstroManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AstroManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-astro/1.0.0-beta.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2023-08-01\";\n this.operations = new OperationsImpl(this);\n this.organizations = new OrganizationsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n operations: Operations;\n organizations: Organizations;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,cAAc,iCAAiC,CAAC"}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
/// <reference lib="esnext.asynciterable" />
|
|
9
|
-
export { getContinuationToken } from "./pagingHelper";
|
|
10
|
-
export * from "./models";
|
|
11
|
-
export { AstroManagementClient } from "./astroManagementClient";
|
|
12
|
-
export * from "./operationsInterfaces";
|
|
9
|
+
export { getContinuationToken } from "./pagingHelper.js";
|
|
10
|
+
export * from "./models/index.js";
|
|
11
|
+
export { AstroManagementClient } from "./astroManagementClient.js";
|
|
12
|
+
export * from "./operationsInterfaces/index.js";
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { AstroManagementClient } from \"./astroManagementClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export function createLroSpec(inputs) {
|
|
2
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
3
|
+
return {
|
|
4
|
+
requestMethod: spec.httpMethod,
|
|
5
|
+
requestPath: spec.path,
|
|
6
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
7
|
+
sendPollRequest: (path, options) => {
|
|
8
|
+
const { requestBody, ...restSpec } = spec;
|
|
9
|
+
return sendOperationFn(args, {
|
|
10
|
+
...restSpec,
|
|
11
|
+
httpMethod: "GET",
|
|
12
|
+
path,
|
|
13
|
+
abortSignal: options?.abortSignal,
|
|
14
|
+
});
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=lroImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAUA,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA+WH,+DAA+D;AAC/D,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,WAAW;IACX,4BAAa,CAAA;IACb,aAAa;IACb,gCAAiB,CAAA;IACjB,iBAAiB;IACjB,yCAA0B,CAAA;AAC5B,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAaD,mEAAmE;AACnE,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,eAAe;IACf,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAWD,sFAAsF;AACtF,MAAM,CAAN,IAAY,kCASX;AATD,WAAY,kCAAkC;IAC5C,sCAAsC;IACtC,yFAAmD,CAAA;IACnD,4CAA4C;IAC5C,+DAAyB,CAA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\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface OperationListResult {\n /**\n * List of operations supported by the resource provider\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly value?: Operation[];\n /**\n * URL to get the next set of operation list results (if there are any).\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /**\n * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\"\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for ARM/control-plane operations.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\"\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly origin?: Origin;\n /**\n * Enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly actionType?: ActionType;\n}\n\n/** Localized display information for this particular operation. */\nexport interface OperationDisplay {\n /**\n * The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\".\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provider?: string;\n /**\n * The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\".\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly resource?: string;\n /**\n * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\".\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly operation?: string;\n /**\n * The short, localized friendly description of the operation; suitable for tool tips and detailed views.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly description?: string;\n}\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /**\n * The error code.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly code?: string;\n /**\n * The error message.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly message?: string;\n /**\n * The error target.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly target?: string;\n /**\n * The error details.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly details?: ErrorDetail[];\n /**\n * The error additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /**\n * The additional info type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /**\n * The additional info.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly info?: Record<string, unknown>;\n}\n\n/** The response of a OrganizationResource list operation. */\nexport interface OrganizationResourceListResult {\n /** The OrganizationResource items on this page */\n value: OrganizationResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\n/** Properties specific to Data Organization resource */\nexport interface LiftrBaseDataOrganizationProperties {\n /** Marketplace details of the resource. */\n marketplace: LiftrBaseMarketplaceDetails;\n /** Details of the user. */\n user: LiftrBaseUserDetails;\n /**\n * Provisioning state of the resource.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provisioningState?: ResourceProvisioningState;\n /** Organization properties */\n partnerOrganizationProperties?: LiftrBaseDataPartnerOrganizationProperties;\n}\n\n/** Marketplace details for an organization */\nexport interface LiftrBaseMarketplaceDetails {\n /** Azure subscription id for the the marketplace offer is purchased from */\n subscriptionId: string;\n /** Marketplace subscription status */\n subscriptionStatus?: MarketplaceSubscriptionStatus;\n /** Offer details for the marketplace that is selected by the user */\n offerDetails: LiftrBaseOfferDetails;\n}\n\n/** Offer details for the marketplace that is selected by the user */\nexport interface LiftrBaseOfferDetails {\n /** Publisher Id for the marketplace offer */\n publisherId: string;\n /** Offer Id for the marketplace offer */\n offerId: string;\n /** Plan Id for the marketplace offer */\n planId: string;\n /** Plan Name for the marketplace offer */\n planName?: string;\n /** Plan Display Name for the marketplace offer */\n termUnit?: string;\n /** Plan Display Name for the marketplace offer */\n termId?: string;\n}\n\n/** User details for an organization */\nexport interface LiftrBaseUserDetails {\n /** First name of the user */\n firstName: string;\n /** Last name of the user */\n lastName: string;\n /** Email address of the user */\n emailAddress: string;\n /** User's principal name */\n upn?: string;\n /** User's phone number */\n phoneNumber?: string;\n}\n\n/** Properties specific to Partner's organization */\nexport interface LiftrBaseDataPartnerOrganizationProperties {\n /** Organization Id in partner's system */\n organizationId?: string;\n /** Workspace Id in partner's system */\n workspaceId?: string;\n /** Organization name in partner's system */\n organizationName: string;\n /** Workspace name in partner's system */\n workspaceName?: string;\n /** Single Sign On properties for the organization */\n singleSignOnProperties?: LiftrBaseSingleSignOnProperties;\n}\n\n/** Properties specific to Single Sign On Resource */\nexport interface LiftrBaseSingleSignOnProperties {\n /** State of the Single Sign On for the organization */\n singleSignOnState?: SingleSignOnStates;\n /** AAD enterprise application Id used to setup SSO */\n enterpriseAppId?: string;\n /** URL for SSO to be used by the partner to redirect the user to their system */\n singleSignOnUrl?: string;\n /** List of AAD domains fetched from Microsoft Graph for user. */\n aadDomains?: string[];\n /**\n * Provisioning State of the resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provisioningState?: ResourceProvisioningState;\n}\n\n/** Managed service identity (system assigned and/or user assigned identities) */\nexport interface ManagedServiceIdentity {\n /**\n * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly principalId?: string;\n /**\n * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly tenantId?: string;\n /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */\n type: ManagedServiceIdentityType;\n /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */\n userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity };\n}\n\n/** User assigned identity properties */\nexport interface UserAssignedIdentity {\n /**\n * The principal ID of the assigned identity.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly principalId?: string;\n /**\n * The client ID of the assigned identity.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly clientId?: string;\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /**\n * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The name of the resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /**\n * Azure Resource Manager metadata containing createdBy and modifiedBy information.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly systemData?: SystemData;\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\n/** The type used for update operations of the OrganizationResource. */\nexport interface OrganizationResourceUpdate {\n /** The managed service identities assigned to this resource. */\n identity?: ManagedServiceIdentity;\n /** Resource tags. */\n tags?: { [propertyName: string]: string };\n /** The updatable properties of the OrganizationResource. */\n properties?: OrganizationResourceUpdateProperties;\n}\n\n/** The updatable properties of the OrganizationResource. */\nexport interface OrganizationResourceUpdateProperties {\n /** Details of the user. */\n user?: LiftrBaseUserDetailsUpdate;\n /** Organization properties */\n partnerOrganizationProperties?: LiftrBaseDataPartnerOrganizationPropertiesUpdate;\n}\n\n/** User details for an organization */\nexport interface LiftrBaseUserDetailsUpdate {\n /** First name of the user */\n firstName?: string;\n /** Last name of the user */\n lastName?: string;\n /** Email address of the user */\n emailAddress?: string;\n /** User's principal name */\n upn?: string;\n /** User's phone number */\n phoneNumber?: string;\n}\n\n/** Properties specific to Partner's organization */\nexport interface LiftrBaseDataPartnerOrganizationPropertiesUpdate {\n /** Organization Id in partner's system */\n organizationId?: string;\n /** Workspace Id in partner's system */\n workspaceId?: string;\n /** Organization name in partner's system */\n organizationName?: string;\n /** Workspace name in partner's system */\n workspaceName?: string;\n /** Single Sign On properties for the organization */\n singleSignOnProperties?: LiftrBaseSingleSignOnProperties;\n}\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: { [propertyName: string]: string };\n /** The geo-location where the resource lives */\n location: string;\n}\n\n/** Organization Resource by Astronomer */\nexport interface OrganizationResource extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: LiftrBaseDataOrganizationProperties;\n /** The managed service identities assigned to this resource. */\n identity?: ManagedServiceIdentity;\n}\n\n/** Defines headers for Organizations_createOrUpdate operation. */\nexport interface OrganizationsCreateOrUpdateHeaders {\n /** The Retry-After header can indicate how long the client should wait before polling the operation status. */\n retryAfter?: number;\n}\n\n/** Defines headers for Organizations_update operation. */\nexport interface OrganizationsUpdateHeaders {\n /** The Retry-After header can indicate how long the client should wait before polling the operation status. */\n retryAfter?: number;\n /** The Location header contains the URL where the status of the long running operation can be checked. */\n location?: string;\n}\n\n/** Defines headers for Organizations_delete operation. */\nexport interface OrganizationsDeleteHeaders {\n /** The Retry-After header can indicate how long the client should wait before polling the operation status. */\n retryAfter?: number;\n /** The Location header contains the URL where the status of the long running operation can be checked. */\n location?: string;\n}\n\n/** Known values of {@link Origin} that the service accepts. */\nexport enum KnownOrigin {\n /** User */\n User = \"user\",\n /** System */\n System = \"system\",\n /** UserSystem */\n UserSystem = \"user,system\",\n}\n\n/**\n * Defines values for Origin. \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user** \\\n * **system** \\\n * **user,system**\n */\nexport type Origin = string;\n\n/** Known values of {@link ActionType} that the service accepts. */\nexport enum KnownActionType {\n /** Internal */\n Internal = \"Internal\",\n}\n\n/**\n * Defines values for ActionType. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**\n */\nexport type ActionType = string;\n\n/** Known values of {@link MarketplaceSubscriptionStatus} that the service accepts. */\nexport enum KnownMarketplaceSubscriptionStatus {\n /** Purchased but not yet activated */\n PendingFulfillmentStart = \"PendingFulfillmentStart\",\n /** Marketplace subscription is activated */\n Subscribed = \"Subscribed\",\n /** This state indicates that a customer's payment for the Marketplace service was not received */\n Suspended = \"Suspended\",\n /** Customer has cancelled the subscription */\n Unsubscribed = \"Unsubscribed\",\n}\n\n/**\n * Defines values for MarketplaceSubscriptionStatus. \\\n * {@link KnownMarketplaceSubscriptionStatus} can be used interchangeably with MarketplaceSubscriptionStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **PendingFulfillmentStart**: Purchased but not yet activated \\\n * **Subscribed**: Marketplace subscription is activated \\\n * **Suspended**: This state indicates that a customer's payment for the Marketplace service was not received \\\n * **Unsubscribed**: Customer has cancelled the subscription\n */\nexport type MarketplaceSubscriptionStatus = string;\n\n/** Known values of {@link ResourceProvisioningState} that the service accepts. */\nexport enum KnownResourceProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n}\n\n/**\n * Defines values for ResourceProvisioningState. \\\n * {@link KnownResourceProvisioningState} can be used interchangeably with ResourceProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled.\n */\nexport type ResourceProvisioningState = string;\n\n/** Known values of {@link SingleSignOnStates} that the service accepts. */\nexport enum KnownSingleSignOnStates {\n /** Initial state of the SSO resource */\n Initial = \"Initial\",\n /** State of the SSO resource when it is enabled */\n Enable = \"Enable\",\n /** State of the SSO resource when it is disabled */\n Disable = \"Disable\",\n}\n\n/**\n * Defines values for SingleSignOnStates. \\\n * {@link KnownSingleSignOnStates} can be used interchangeably with SingleSignOnStates,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Initial**: Initial state of the SSO resource \\\n * **Enable**: State of the SSO resource when it is enabled \\\n * **Disable**: State of the SSO resource when it is disabled\n */\nexport type SingleSignOnStates = string;\n\n/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */\nexport enum KnownManagedServiceIdentityType {\n /** None */\n None = \"None\",\n /** SystemAssigned */\n SystemAssigned = \"SystemAssigned\",\n /** UserAssigned */\n UserAssigned = \"UserAssigned\",\n /** SystemAssignedUserAssigned */\n SystemAssignedUserAssigned = \"SystemAssigned, UserAssigned\",\n}\n\n/**\n * Defines values for ManagedServiceIdentityType. \\\n * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **None** \\\n * **SystemAssigned** \\\n * **UserAssigned** \\\n * **SystemAssigned, UserAssigned**\n */\nexport type ManagedServiceIdentityType = string;\n\n/** Known values of {@link CreatedByType} that the service accepts. */\nexport enum KnownCreatedByType {\n /** User */\n User = \"User\",\n /** Application */\n Application = \"Application\",\n /** ManagedIdentity */\n ManagedIdentity = \"ManagedIdentity\",\n /** Key */\n Key = \"Key\",\n}\n\n/**\n * Defines values for CreatedByType. \\\n * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User** \\\n * **Application** \\\n * **ManagedIdentity** \\\n * **Key**\n */\nexport type CreatedByType = string;\n\n/** Known values of {@link Versions} that the service accepts. */\nexport enum KnownVersions {\n /** Dependent on Azure.ResourceManager.Versions.v1_0_Preview_1, LiftrBase.Versions.v1_preview, LiftrBase.Data.Versions.v1_preview */\n V1Preview = \"2023-08-01\",\n}\n\n/**\n * Defines values for Versions. \\\n * {@link KnownVersions} can be used interchangeably with Versions,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **2023-08-01**: Dependent on Azure.ResourceManager.Versions.v1_0_Preview_1, LiftrBase.Versions.v1_preview, LiftrBase.Data.Versions.v1_preview\n */\nexport type Versions = string;\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams\n extends coreClient.OperationOptions { }\n\n/** Contains response data for the list operation. */\nexport type OperationsListResponse = OperationListResult;\n\n/** Optional parameters. */\nexport interface OperationsListNextOptionalParams\n extends coreClient.OperationOptions { }\n\n/** Contains response data for the listNext operation. */\nexport type OperationsListNextResponse = OperationListResult;\n\n/** Optional parameters. */\nexport interface OrganizationsListBySubscriptionOptionalParams\n extends coreClient.OperationOptions { }\n\n/** Contains response data for the listBySubscription operation. */\nexport type OrganizationsListBySubscriptionResponse =\n OrganizationResourceListResult;\n\n/** Optional parameters. */\nexport interface OrganizationsListByResourceGroupOptionalParams\n extends coreClient.OperationOptions { }\n\n/** Contains response data for the listByResourceGroup operation. */\nexport type OrganizationsListByResourceGroupResponse =\n OrganizationResourceListResult;\n\n/** Optional parameters. */\nexport interface OrganizationsGetOptionalParams\n extends coreClient.OperationOptions { }\n\n/** Contains response data for the get operation. */\nexport type OrganizationsGetResponse = OrganizationResource;\n\n/** Optional parameters. */\nexport interface OrganizationsCreateOrUpdateOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the createOrUpdate operation. */\nexport type OrganizationsCreateOrUpdateResponse = OrganizationResource;\n\n/** Optional parameters. */\nexport interface OrganizationsUpdateOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the update operation. */\nexport type OrganizationsUpdateResponse = OrganizationResource;\n\n/** Optional parameters. */\nexport interface OrganizationsDeleteOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the delete operation. */\nexport type OrganizationsDeleteResponse = OrganizationsDeleteHeaders;\n\n/** Optional parameters. */\nexport interface OrganizationsListBySubscriptionNextOptionalParams\n extends coreClient.OperationOptions { }\n\n/** Contains response data for the listBySubscriptionNext operation. */\nexport type OrganizationsListBySubscriptionNextResponse =\n OrganizationResourceListResult;\n\n/** Optional parameters. */\nexport interface OrganizationsListByResourceGroupNextOptionalParams\n extends coreClient.OperationOptions { }\n\n/** Contains response data for the listByResourceGroupNext operation. */\nexport type OrganizationsListByResourceGroupNextResponse =\n OrganizationResourceListResult;\n\n/** Optional parameters. */\nexport interface AstroManagementClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
|
|
@@ -766,38 +766,46 @@ export const TrackedResource = {
|
|
|
766
766
|
type: {
|
|
767
767
|
name: "Composite",
|
|
768
768
|
className: "TrackedResource",
|
|
769
|
-
modelProperties:
|
|
769
|
+
modelProperties: {
|
|
770
|
+
...Resource.type.modelProperties,
|
|
771
|
+
tags: {
|
|
770
772
|
serializedName: "tags",
|
|
771
773
|
type: {
|
|
772
774
|
name: "Dictionary",
|
|
773
775
|
value: { type: { name: "String" } },
|
|
774
776
|
},
|
|
775
|
-
},
|
|
777
|
+
},
|
|
778
|
+
location: {
|
|
776
779
|
serializedName: "location",
|
|
777
780
|
required: true,
|
|
778
781
|
type: {
|
|
779
782
|
name: "String",
|
|
780
783
|
},
|
|
781
|
-
}
|
|
784
|
+
},
|
|
785
|
+
},
|
|
782
786
|
},
|
|
783
787
|
};
|
|
784
788
|
export const OrganizationResource = {
|
|
785
789
|
type: {
|
|
786
790
|
name: "Composite",
|
|
787
791
|
className: "OrganizationResource",
|
|
788
|
-
modelProperties:
|
|
792
|
+
modelProperties: {
|
|
793
|
+
...TrackedResource.type.modelProperties,
|
|
794
|
+
properties: {
|
|
789
795
|
serializedName: "properties",
|
|
790
796
|
type: {
|
|
791
797
|
name: "Composite",
|
|
792
798
|
className: "LiftrBaseDataOrganizationProperties",
|
|
793
799
|
},
|
|
794
|
-
},
|
|
800
|
+
},
|
|
801
|
+
identity: {
|
|
795
802
|
serializedName: "identity",
|
|
796
803
|
type: {
|
|
797
804
|
name: "Composite",
|
|
798
805
|
className: "ManagedServiceIdentity",
|
|
799
806
|
},
|
|
800
|
-
}
|
|
807
|
+
},
|
|
808
|
+
},
|
|
801
809
|
},
|
|
802
810
|
};
|
|
803
811
|
export const OrganizationsCreateOrUpdateHeaders = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,mBAAmB,GAA+B;IAC7D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,qBAAqB;QAChC,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,WAAW;yBACvB;qBACF;iBACF;aACF;YACD,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAA+B;IACnD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,WAAW;QACtB,eAAe,EAAE;YACf,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,YAAY,EAAE;gBACZ,cAAc,EAAE,cAAc;gBAC9B,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,SAAS;iBAChB;aACF;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,SAAS;gBACzB,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,kBAAkB;iBAC9B;aACF;YACD,MAAM,EAAE;gBACN,cAAc,EAAE,QAAQ;gBACxB,QAAQ,EAAE,IAAI;gBACd,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AAM,CAAC,MAAM,kCAAkC,GAA+B;IAC5E,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,oCAAoC;QAC/C,eAAe,EAAE;YACf,UAAU,EAAE;gBACV,cAAc,EAAE,aAAa;gBAC7B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAA+B;IACpE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,4BAA4B;QACvC,eAAe,EAAE;YACf,UAAU,EAAE;gBACV,cAAc,EAAE,aAAa;gBAC7B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAA+B;IACpE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,4BAA4B;QACvC,eAAe,EAAE;YACf,UAAU,EAAE;gBACV,cAAc,EAAE,aAAa;gBAC7B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const OperationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n },\n },\n },\n },\n nextLink: {\n serializedName: \"nextLink\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const Operation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n isDataAction: {\n serializedName: \"isDataAction\",\n readOnly: true,\n type: {\n name: \"Boolean\",\n },\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\",\n },\n },\n origin: {\n serializedName: \"origin\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n actionType: {\n serializedName: \"actionType\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const OperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n resource: {\n serializedName: \"resource\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n operation: {\n serializedName: \"operation\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n description: {\n serializedName: \"description\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\",\n },\n },\n },\n },\n};\n\nexport const ErrorDetail: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n target: {\n serializedName: \"target\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\",\n },\n },\n },\n },\n additionalInfo: {\n serializedName: \"additionalInfo\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const ErrorAdditionalInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\",\n modelProperties: {\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n info: {\n serializedName: \"info\",\n readOnly: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } },\n },\n },\n },\n },\n};\n\nexport const OrganizationResourceListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OrganizationResourceListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"OrganizationResource\",\n },\n },\n },\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const LiftrBaseDataOrganizationProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LiftrBaseDataOrganizationProperties\",\n modelProperties: {\n marketplace: {\n serializedName: \"marketplace\",\n type: {\n name: \"Composite\",\n className: \"LiftrBaseMarketplaceDetails\",\n },\n },\n user: {\n serializedName: \"user\",\n type: {\n name: \"Composite\",\n className: \"LiftrBaseUserDetails\",\n },\n },\n provisioningState: {\n serializedName: \"provisioningState\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n partnerOrganizationProperties: {\n serializedName: \"partnerOrganizationProperties\",\n type: {\n name: \"Composite\",\n className: \"LiftrBaseDataPartnerOrganizationProperties\",\n },\n },\n },\n },\n};\n\nexport const LiftrBaseMarketplaceDetails: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LiftrBaseMarketplaceDetails\",\n modelProperties: {\n subscriptionId: {\n serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n subscriptionStatus: {\n serializedName: \"subscriptionStatus\",\n type: {\n name: \"String\",\n },\n },\n offerDetails: {\n serializedName: \"offerDetails\",\n type: {\n name: \"Composite\",\n className: \"LiftrBaseOfferDetails\",\n },\n },\n },\n },\n};\n\nexport const LiftrBaseOfferDetails: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LiftrBaseOfferDetails\",\n modelProperties: {\n publisherId: {\n serializedName: \"publisherId\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n offerId: {\n serializedName: \"offerId\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n planId: {\n serializedName: \"planId\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n planName: {\n serializedName: \"planName\",\n type: {\n name: \"String\",\n },\n },\n termUnit: {\n serializedName: \"termUnit\",\n type: {\n name: \"String\",\n },\n },\n termId: {\n serializedName: \"termId\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const LiftrBaseUserDetails: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LiftrBaseUserDetails\",\n modelProperties: {\n firstName: {\n serializedName: \"firstName\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n lastName: {\n serializedName: \"lastName\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n emailAddress: {\n constraints: {\n Pattern: new RegExp(\n \"^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\\\.)+[A-Za-z]{2,}$\",\n ),\n },\n serializedName: \"emailAddress\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n upn: {\n serializedName: \"upn\",\n type: {\n name: \"String\",\n },\n },\n phoneNumber: {\n serializedName: \"phoneNumber\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const LiftrBaseDataPartnerOrganizationProperties: coreClient.CompositeMapper =\n {\n type: {\n name: \"Composite\",\n className: \"LiftrBaseDataPartnerOrganizationProperties\",\n modelProperties: {\n organizationId: {\n serializedName: \"organizationId\",\n type: {\n name: \"String\",\n },\n },\n workspaceId: {\n serializedName: \"workspaceId\",\n type: {\n name: \"String\",\n },\n },\n organizationName: {\n constraints: {\n Pattern: new RegExp(\"^[a-zA-Z0-9][a-zA-Z0-9_\\\\-.: ]*$\"),\n MaxLength: 50,\n MinLength: 1,\n },\n serializedName: \"organizationName\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n workspaceName: {\n constraints: {\n Pattern: new RegExp(\"^[a-zA-Z0-9][a-zA-Z0-9_\\\\-.: ]*$\"),\n MaxLength: 50,\n MinLength: 1,\n },\n serializedName: \"workspaceName\",\n type: {\n name: \"String\",\n },\n },\n singleSignOnProperties: {\n serializedName: \"singleSignOnProperties\",\n type: {\n name: \"Composite\",\n className: \"LiftrBaseSingleSignOnProperties\",\n },\n },\n },\n },\n };\n\nexport const LiftrBaseSingleSignOnProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LiftrBaseSingleSignOnProperties\",\n modelProperties: {\n singleSignOnState: {\n serializedName: \"singleSignOnState\",\n type: {\n name: \"String\",\n },\n },\n enterpriseAppId: {\n serializedName: \"enterpriseAppId\",\n type: {\n name: \"String\",\n },\n },\n singleSignOnUrl: {\n serializedName: \"singleSignOnUrl\",\n type: {\n name: \"String\",\n },\n },\n aadDomains: {\n serializedName: \"aadDomains\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n provisioningState: {\n serializedName: \"provisioningState\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ManagedServiceIdentity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ManagedServiceIdentity\",\n modelProperties: {\n principalId: {\n serializedName: \"principalId\",\n readOnly: true,\n type: {\n name: \"Uuid\",\n },\n },\n tenantId: {\n serializedName: \"tenantId\",\n readOnly: true,\n type: {\n name: \"Uuid\",\n },\n },\n type: {\n serializedName: \"type\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n userAssignedIdentities: {\n serializedName: \"userAssignedIdentities\",\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Composite\", className: \"UserAssignedIdentity\" },\n },\n },\n },\n },\n },\n};\n\nexport const UserAssignedIdentity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"UserAssignedIdentity\",\n modelProperties: {\n principalId: {\n serializedName: \"principalId\",\n readOnly: true,\n type: {\n name: \"Uuid\",\n },\n },\n clientId: {\n serializedName: \"clientId\",\n readOnly: true,\n type: {\n name: \"Uuid\",\n },\n },\n },\n },\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n systemData: {\n serializedName: \"systemData\",\n type: {\n name: \"Composite\",\n className: \"SystemData\",\n },\n },\n },\n },\n};\n\nexport const SystemData: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SystemData\",\n modelProperties: {\n createdBy: {\n serializedName: \"createdBy\",\n type: {\n name: \"String\",\n },\n },\n createdByType: {\n serializedName: \"createdByType\",\n type: {\n name: \"String\",\n },\n },\n createdAt: {\n serializedName: \"createdAt\",\n type: {\n name: \"DateTime\",\n },\n },\n lastModifiedBy: {\n serializedName: \"lastModifiedBy\",\n type: {\n name: \"String\",\n },\n },\n lastModifiedByType: {\n serializedName: \"lastModifiedByType\",\n type: {\n name: \"String\",\n },\n },\n lastModifiedAt: {\n serializedName: \"lastModifiedAt\",\n type: {\n name: \"DateTime\",\n },\n },\n },\n },\n};\n\nexport const OrganizationResourceUpdate: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OrganizationResourceUpdate\",\n modelProperties: {\n identity: {\n serializedName: \"identity\",\n type: {\n name: \"Composite\",\n className: \"ManagedServiceIdentity\",\n },\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } },\n },\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Composite\",\n className: \"OrganizationResourceUpdateProperties\",\n },\n },\n },\n },\n};\n\nexport const OrganizationResourceUpdateProperties: coreClient.CompositeMapper =\n {\n type: {\n name: \"Composite\",\n className: \"OrganizationResourceUpdateProperties\",\n modelProperties: {\n user: {\n serializedName: \"user\",\n type: {\n name: \"Composite\",\n className: \"LiftrBaseUserDetailsUpdate\",\n },\n },\n partnerOrganizationProperties: {\n serializedName: \"partnerOrganizationProperties\",\n type: {\n name: \"Composite\",\n className: \"LiftrBaseDataPartnerOrganizationPropertiesUpdate\",\n },\n },\n },\n },\n };\n\nexport const LiftrBaseUserDetailsUpdate: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LiftrBaseUserDetailsUpdate\",\n modelProperties: {\n firstName: {\n serializedName: \"firstName\",\n type: {\n name: \"String\",\n },\n },\n lastName: {\n serializedName: \"lastName\",\n type: {\n name: \"String\",\n },\n },\n emailAddress: {\n constraints: {\n Pattern: new RegExp(\n \"^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\\\.)+[A-Za-z]{2,}$\",\n ),\n },\n serializedName: \"emailAddress\",\n type: {\n name: \"String\",\n },\n },\n upn: {\n serializedName: \"upn\",\n type: {\n name: \"String\",\n },\n },\n phoneNumber: {\n serializedName: \"phoneNumber\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const LiftrBaseDataPartnerOrganizationPropertiesUpdate: coreClient.CompositeMapper =\n {\n type: {\n name: \"Composite\",\n className: \"LiftrBaseDataPartnerOrganizationPropertiesUpdate\",\n modelProperties: {\n organizationId: {\n serializedName: \"organizationId\",\n type: {\n name: \"String\",\n },\n },\n workspaceId: {\n serializedName: \"workspaceId\",\n type: {\n name: \"String\",\n },\n },\n organizationName: {\n constraints: {\n Pattern: new RegExp(\"^[a-zA-Z0-9][a-zA-Z0-9_\\\\-.: ]*$\"),\n MaxLength: 50,\n MinLength: 1,\n },\n serializedName: \"organizationName\",\n type: {\n name: \"String\",\n },\n },\n workspaceName: {\n constraints: {\n Pattern: new RegExp(\"^[a-zA-Z0-9][a-zA-Z0-9_\\\\-.: ]*$\"),\n MaxLength: 50,\n MinLength: 1,\n },\n serializedName: \"workspaceName\",\n type: {\n name: \"String\",\n },\n },\n singleSignOnProperties: {\n serializedName: \"singleSignOnProperties\",\n type: {\n name: \"Composite\",\n className: \"LiftrBaseSingleSignOnProperties\",\n },\n },\n },\n },\n };\n\nexport const TrackedResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TrackedResource\",\n modelProperties: {\n ...Resource.type.modelProperties,\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } },\n },\n },\n location: {\n serializedName: \"location\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const OrganizationResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OrganizationResource\",\n modelProperties: {\n ...TrackedResource.type.modelProperties,\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Composite\",\n className: \"LiftrBaseDataOrganizationProperties\",\n },\n },\n identity: {\n serializedName: \"identity\",\n type: {\n name: \"Composite\",\n className: \"ManagedServiceIdentity\",\n },\n },\n },\n },\n};\n\nexport const OrganizationsCreateOrUpdateHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OrganizationsCreateOrUpdateHeaders\",\n modelProperties: {\n retryAfter: {\n serializedName: \"retry-after\",\n type: {\n name: \"Number\",\n },\n },\n },\n },\n};\n\nexport const OrganizationsUpdateHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OrganizationsUpdateHeaders\",\n modelProperties: {\n retryAfter: {\n serializedName: \"retry-after\",\n type: {\n name: \"Number\",\n },\n },\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const OrganizationsDeleteHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OrganizationsDeleteHeaders\",\n modelProperties: {\n retryAfter: {\n serializedName: \"retry-after\",\n type: {\n name: \"Number\",\n },\n },\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n"]}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { OrganizationResource as OrganizationResourceMapper, OrganizationResourceUpdate as OrganizationResourceUpdateMapper, } from "../models/mappers";
|
|
8
|
+
import { OrganizationResource as OrganizationResourceMapper, OrganizationResourceUpdate as OrganizationResourceUpdateMapper, } from "../models/mappers.js";
|
|
9
9
|
export const accept = {
|
|
10
10
|
parameterPath: "accept",
|
|
11
11
|
mapper: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EACL,oBAAoB,IAAI,0BAA0B,EAClD,0BAA0B,IAAI,gCAAgC,GAC/D,MAAM,sBAAsB,CAAC;AAE9B,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK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,OAAO,EAAE,IAAI,MAAM,CAAC,kCAAkC,CAAC;YACvD,SAAS,EAAE,EAAE;YACb,SAAS,EAAE,CAAC;SACb;QACD,cAAc,EAAE,kBAAkB;QAClC,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,cAAc;QAC9B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAuB;IAC1C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE,0BAA0B;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAuB;IAC5C,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE,gCAAgC;CACzC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter,\n} from \"@azure/core-client\";\nimport {\n OrganizationResource as OrganizationResourceMapper,\n OrganizationResourceUpdate as OrganizationResourceUpdateMapper,\n} from \"../models/mappers.js\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n skipEncoding: true,\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2023-08-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n skipEncoding: true,\n};\n\nexport const subscriptionId: OperationURLParameter = {\n parameterPath: \"subscriptionId\",\n mapper: {\n constraints: {\n MinLength: 1,\n },\n serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const resourceGroupName: OperationURLParameter = {\n parameterPath: \"resourceGroupName\",\n mapper: {\n constraints: {\n MaxLength: 90,\n MinLength: 1,\n },\n serializedName: \"resourceGroupName\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const organizationName: OperationURLParameter = {\n parameterPath: \"organizationName\",\n mapper: {\n constraints: {\n Pattern: new RegExp(\"^[a-zA-Z0-9][a-zA-Z0-9_\\\\-.: ]*$\"),\n MaxLength: 50,\n MinLength: 1,\n },\n serializedName: \"organizationName\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const resource: OperationParameter = {\n parameterPath: \"resource\",\n mapper: OrganizationResourceMapper,\n};\n\nexport const properties: OperationParameter = {\n parameterPath: \"properties\",\n mapper: OrganizationResourceUpdateMapper,\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC"}
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
export * from "./operations";
|
|
9
|
-
export * from "./organizations";
|
|
8
|
+
export * from "./operations.js";
|
|
9
|
+
export * from "./organizations.js";
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./operations.js\";\nexport * from \"./organizations.js\";\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { Operations } from "../operationsInterfaces";
|
|
3
|
-
import { AstroManagementClient } from "../astroManagementClient";
|
|
4
|
-
import { Operation, OperationsListOptionalParams } from "../models";
|
|
2
|
+
import { Operations } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { AstroManagementClient } from "../astroManagementClient.js";
|
|
4
|
+
import { Operation, OperationsListOptionalParams } from "../models/index.js";
|
|
5
5
|
/** Class containing Operations operations. */
|
|
6
6
|
export declare class OperationsImpl implements Operations {
|
|
7
7
|
private readonly client;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EACL,SAAS,EAET,4BAA4B,EAG7B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAwB;IAE/C;;;OAGG;gBACS,MAAM,EAAE,qBAAqB;IAIzC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAkBzB,cAAc;YAsBd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
|