@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/src/models/parameters.ts
DELETED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import {
|
|
10
|
-
OperationParameter,
|
|
11
|
-
OperationURLParameter,
|
|
12
|
-
OperationQueryParameter,
|
|
13
|
-
} from "@azure/core-client";
|
|
14
|
-
import {
|
|
15
|
-
OrganizationResource as OrganizationResourceMapper,
|
|
16
|
-
OrganizationResourceUpdate as OrganizationResourceUpdateMapper,
|
|
17
|
-
} from "../models/mappers";
|
|
18
|
-
|
|
19
|
-
export const accept: OperationParameter = {
|
|
20
|
-
parameterPath: "accept",
|
|
21
|
-
mapper: {
|
|
22
|
-
defaultValue: "application/json",
|
|
23
|
-
isConstant: true,
|
|
24
|
-
serializedName: "Accept",
|
|
25
|
-
type: {
|
|
26
|
-
name: "String",
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export const $host: OperationURLParameter = {
|
|
32
|
-
parameterPath: "$host",
|
|
33
|
-
mapper: {
|
|
34
|
-
serializedName: "$host",
|
|
35
|
-
required: true,
|
|
36
|
-
type: {
|
|
37
|
-
name: "String",
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
skipEncoding: true,
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export const apiVersion: OperationQueryParameter = {
|
|
44
|
-
parameterPath: "apiVersion",
|
|
45
|
-
mapper: {
|
|
46
|
-
defaultValue: "2023-08-01",
|
|
47
|
-
isConstant: true,
|
|
48
|
-
serializedName: "api-version",
|
|
49
|
-
type: {
|
|
50
|
-
name: "String",
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export const nextLink: OperationURLParameter = {
|
|
56
|
-
parameterPath: "nextLink",
|
|
57
|
-
mapper: {
|
|
58
|
-
serializedName: "nextLink",
|
|
59
|
-
required: true,
|
|
60
|
-
type: {
|
|
61
|
-
name: "String",
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
skipEncoding: true,
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
export const subscriptionId: OperationURLParameter = {
|
|
68
|
-
parameterPath: "subscriptionId",
|
|
69
|
-
mapper: {
|
|
70
|
-
constraints: {
|
|
71
|
-
MinLength: 1,
|
|
72
|
-
},
|
|
73
|
-
serializedName: "subscriptionId",
|
|
74
|
-
required: true,
|
|
75
|
-
type: {
|
|
76
|
-
name: "String",
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
export const resourceGroupName: OperationURLParameter = {
|
|
82
|
-
parameterPath: "resourceGroupName",
|
|
83
|
-
mapper: {
|
|
84
|
-
constraints: {
|
|
85
|
-
MaxLength: 90,
|
|
86
|
-
MinLength: 1,
|
|
87
|
-
},
|
|
88
|
-
serializedName: "resourceGroupName",
|
|
89
|
-
required: true,
|
|
90
|
-
type: {
|
|
91
|
-
name: "String",
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
export const organizationName: OperationURLParameter = {
|
|
97
|
-
parameterPath: "organizationName",
|
|
98
|
-
mapper: {
|
|
99
|
-
constraints: {
|
|
100
|
-
Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_\\-.: ]*$"),
|
|
101
|
-
MaxLength: 50,
|
|
102
|
-
MinLength: 1,
|
|
103
|
-
},
|
|
104
|
-
serializedName: "organizationName",
|
|
105
|
-
required: true,
|
|
106
|
-
type: {
|
|
107
|
-
name: "String",
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
export const contentType: OperationParameter = {
|
|
113
|
-
parameterPath: ["options", "contentType"],
|
|
114
|
-
mapper: {
|
|
115
|
-
defaultValue: "application/json",
|
|
116
|
-
isConstant: true,
|
|
117
|
-
serializedName: "Content-Type",
|
|
118
|
-
type: {
|
|
119
|
-
name: "String",
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
export const resource: OperationParameter = {
|
|
125
|
-
parameterPath: "resource",
|
|
126
|
-
mapper: OrganizationResourceMapper,
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
export const properties: OperationParameter = {
|
|
130
|
-
parameterPath: "properties",
|
|
131
|
-
mapper: OrganizationResourceUpdateMapper,
|
|
132
|
-
};
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
-
import { Operations } from "../operationsInterfaces";
|
|
12
|
-
import * as coreClient from "@azure/core-client";
|
|
13
|
-
import * as Mappers from "../models/mappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { AstroManagementClient } from "../astroManagementClient";
|
|
16
|
-
import {
|
|
17
|
-
Operation,
|
|
18
|
-
OperationsListNextOptionalParams,
|
|
19
|
-
OperationsListOptionalParams,
|
|
20
|
-
OperationsListResponse,
|
|
21
|
-
OperationsListNextResponse,
|
|
22
|
-
} from "../models";
|
|
23
|
-
|
|
24
|
-
/// <reference lib="esnext.asynciterable" />
|
|
25
|
-
/** Class containing Operations operations. */
|
|
26
|
-
export class OperationsImpl implements Operations {
|
|
27
|
-
private readonly client: AstroManagementClient;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Initialize a new instance of the class Operations class.
|
|
31
|
-
* @param client Reference to the service client
|
|
32
|
-
*/
|
|
33
|
-
constructor(client: AstroManagementClient) {
|
|
34
|
-
this.client = client;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* List the operations for the provider
|
|
39
|
-
* @param options The options parameters.
|
|
40
|
-
*/
|
|
41
|
-
public list(
|
|
42
|
-
options?: OperationsListOptionalParams,
|
|
43
|
-
): PagedAsyncIterableIterator<Operation> {
|
|
44
|
-
const iter = this.listPagingAll(options);
|
|
45
|
-
return {
|
|
46
|
-
next() {
|
|
47
|
-
return iter.next();
|
|
48
|
-
},
|
|
49
|
-
[Symbol.asyncIterator]() {
|
|
50
|
-
return this;
|
|
51
|
-
},
|
|
52
|
-
byPage: (settings?: PageSettings) => {
|
|
53
|
-
if (settings?.maxPageSize) {
|
|
54
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
55
|
-
}
|
|
56
|
-
return this.listPagingPage(options, settings);
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
private async *listPagingPage(
|
|
62
|
-
options?: OperationsListOptionalParams,
|
|
63
|
-
settings?: PageSettings,
|
|
64
|
-
): AsyncIterableIterator<Operation[]> {
|
|
65
|
-
let result: OperationsListResponse;
|
|
66
|
-
let continuationToken = settings?.continuationToken;
|
|
67
|
-
if (!continuationToken) {
|
|
68
|
-
result = await this._list(options);
|
|
69
|
-
let page = result.value || [];
|
|
70
|
-
continuationToken = result.nextLink;
|
|
71
|
-
setContinuationToken(page, continuationToken);
|
|
72
|
-
yield page;
|
|
73
|
-
}
|
|
74
|
-
while (continuationToken) {
|
|
75
|
-
result = await this._listNext(continuationToken, options);
|
|
76
|
-
continuationToken = result.nextLink;
|
|
77
|
-
let page = result.value || [];
|
|
78
|
-
setContinuationToken(page, continuationToken);
|
|
79
|
-
yield page;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
private async *listPagingAll(
|
|
84
|
-
options?: OperationsListOptionalParams,
|
|
85
|
-
): AsyncIterableIterator<Operation> {
|
|
86
|
-
for await (const page of this.listPagingPage(options)) {
|
|
87
|
-
yield* page;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* List the operations for the provider
|
|
93
|
-
* @param options The options parameters.
|
|
94
|
-
*/
|
|
95
|
-
private _list(
|
|
96
|
-
options?: OperationsListOptionalParams,
|
|
97
|
-
): Promise<OperationsListResponse> {
|
|
98
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* ListNext
|
|
103
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
104
|
-
* @param options The options parameters.
|
|
105
|
-
*/
|
|
106
|
-
private _listNext(
|
|
107
|
-
nextLink: string,
|
|
108
|
-
options?: OperationsListNextOptionalParams,
|
|
109
|
-
): Promise<OperationsListNextResponse> {
|
|
110
|
-
return this.client.sendOperationRequest(
|
|
111
|
-
{ nextLink, options },
|
|
112
|
-
listNextOperationSpec,
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
// Operation Specifications
|
|
117
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
118
|
-
|
|
119
|
-
const listOperationSpec: coreClient.OperationSpec = {
|
|
120
|
-
path: "/providers/Astronomer.Astro/operations",
|
|
121
|
-
httpMethod: "GET",
|
|
122
|
-
responses: {
|
|
123
|
-
200: {
|
|
124
|
-
bodyMapper: Mappers.OperationListResult,
|
|
125
|
-
},
|
|
126
|
-
default: {
|
|
127
|
-
bodyMapper: Mappers.ErrorResponse,
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
queryParameters: [Parameters.apiVersion],
|
|
131
|
-
urlParameters: [Parameters.$host],
|
|
132
|
-
headerParameters: [Parameters.accept],
|
|
133
|
-
serializer,
|
|
134
|
-
};
|
|
135
|
-
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
136
|
-
path: "{nextLink}",
|
|
137
|
-
httpMethod: "GET",
|
|
138
|
-
responses: {
|
|
139
|
-
200: {
|
|
140
|
-
bodyMapper: Mappers.OperationListResult,
|
|
141
|
-
},
|
|
142
|
-
default: {
|
|
143
|
-
bodyMapper: Mappers.ErrorResponse,
|
|
144
|
-
},
|
|
145
|
-
},
|
|
146
|
-
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
147
|
-
headerParameters: [Parameters.accept],
|
|
148
|
-
serializer,
|
|
149
|
-
};
|