@azure/arm-databoundaries 1.0.0-beta.2 → 1.0.0-beta.3
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/LICENSE +1 -1
- package/README.md +9 -12
- package/dist/browser/api/dataBoundaries/index.d.ts +3 -0
- package/dist/browser/api/dataBoundaries/index.js +4 -0
- package/dist/browser/api/dataBoundaries/index.js.map +1 -0
- package/dist/browser/api/dataBoundaries/operations.d.ts +17 -0
- package/dist/browser/api/dataBoundaries/operations.js +87 -0
- package/dist/browser/api/dataBoundaries/operations.js.map +1 -0
- package/dist/browser/api/dataBoundaries/options.d.ts +11 -0
- package/dist/browser/api/dataBoundaries/options.js +4 -0
- package/dist/browser/api/dataBoundaries/options.js.map +1 -0
- package/dist/browser/api/databoundariesManegementContext.d.ts +20 -0
- package/dist/browser/api/databoundariesManegementContext.js +26 -0
- package/dist/browser/api/databoundariesManegementContext.js.map +1 -0
- package/dist/browser/api/index.d.ts +3 -0
- package/dist/browser/api/index.js +4 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/operations/index.d.ts +3 -0
- package/dist/browser/api/operations/index.js +4 -0
- package/dist/browser/api/operations/index.js.map +1 -0
- package/dist/browser/api/operations/operations.d.ts +10 -0
- package/dist/browser/api/operations/operations.js +31 -0
- package/dist/browser/api/operations/operations.js.map +1 -0
- package/dist/browser/api/operations/options.d.ts +5 -0
- package/dist/browser/api/operations/options.js +4 -0
- package/dist/browser/api/operations/options.js.map +1 -0
- package/dist/browser/classic/dataBoundaries/index.d.ts +14 -0
- package/dist/browser/classic/dataBoundaries/index.js +16 -0
- package/dist/browser/classic/dataBoundaries/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +3 -0
- package/dist/browser/classic/index.js +4 -0
- package/dist/browser/classic/index.js.map +1 -0
- package/dist/browser/classic/operations/index.d.ts +11 -0
- package/dist/browser/classic/operations/index.js +14 -0
- package/dist/browser/classic/operations/index.js.map +1 -0
- package/dist/browser/databoundariesManegementClient.d.ts +16 -16
- package/dist/browser/databoundariesManegementClient.js +24 -94
- package/dist/browser/databoundariesManegementClient.js.map +1 -1
- package/dist/browser/index.d.ts +12 -2
- package/dist/browser/index.js +6 -9
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models/index.d.ts +2 -212
- package/dist/browser/models/index.js +3 -53
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +236 -0
- package/dist/browser/models/models.js +198 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/browser/static-helpers/pagingHelpers.js +143 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.js +200 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/api/dataBoundaries/index.d.ts +3 -0
- package/dist/commonjs/api/dataBoundaries/index.js +32 -0
- package/dist/commonjs/api/dataBoundaries/index.js.map +7 -0
- package/dist/commonjs/api/dataBoundaries/operations.d.ts +17 -0
- package/dist/commonjs/api/dataBoundaries/operations.js +136 -0
- package/dist/commonjs/api/dataBoundaries/operations.js.map +7 -0
- package/dist/commonjs/api/dataBoundaries/options.d.ts +11 -0
- package/dist/commonjs/api/dataBoundaries/options.js +16 -0
- package/dist/commonjs/api/dataBoundaries/options.js.map +7 -0
- package/dist/commonjs/api/databoundariesManegementContext.d.ts +20 -0
- package/dist/commonjs/api/databoundariesManegementContext.js +47 -0
- package/dist/commonjs/api/databoundariesManegementContext.js.map +7 -0
- package/dist/commonjs/api/index.d.ts +3 -0
- package/dist/commonjs/api/index.js +28 -0
- package/dist/commonjs/api/index.js.map +7 -0
- package/dist/commonjs/api/operations/index.d.ts +3 -0
- package/dist/commonjs/api/operations/index.js +28 -0
- package/dist/commonjs/api/operations/index.js.map +7 -0
- package/dist/commonjs/api/operations/operations.d.ts +10 -0
- package/dist/commonjs/api/operations/operations.js +68 -0
- package/dist/commonjs/api/operations/operations.js.map +7 -0
- package/dist/commonjs/api/operations/options.d.ts +5 -0
- package/dist/commonjs/api/operations/options.js +16 -0
- package/dist/commonjs/api/operations/options.js.map +7 -0
- package/dist/commonjs/classic/dataBoundaries/index.d.ts +14 -0
- package/dist/commonjs/classic/dataBoundaries/index.js +40 -0
- package/dist/commonjs/classic/dataBoundaries/index.js.map +7 -0
- package/dist/commonjs/classic/index.d.ts +3 -0
- package/dist/commonjs/classic/index.js +16 -0
- package/dist/commonjs/classic/index.js.map +7 -0
- package/dist/commonjs/classic/operations/index.d.ts +11 -0
- package/dist/commonjs/classic/operations/index.js +38 -0
- package/dist/commonjs/classic/operations/index.js.map +7 -0
- package/dist/commonjs/databoundariesManegementClient.d.ts +16 -16
- package/dist/commonjs/databoundariesManegementClient.js +50 -103
- package/dist/commonjs/databoundariesManegementClient.js.map +7 -1
- package/dist/commonjs/index.d.ts +12 -2
- package/dist/commonjs/index.js +51 -16
- package/dist/commonjs/index.js.map +7 -1
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.js +29 -0
- package/dist/commonjs/logger.js.map +7 -0
- package/dist/commonjs/models/index.d.ts +2 -212
- package/dist/commonjs/models/index.js +40 -57
- package/dist/commonjs/models/index.js.map +7 -1
- package/dist/commonjs/models/models.d.ts +236 -0
- package/dist/commonjs/models/models.js +229 -0
- package/dist/commonjs/models/models.js.map +7 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +52 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +143 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +197 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -0
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/dataBoundaries/index.d.ts +3 -0
- package/dist/esm/api/dataBoundaries/index.js +4 -0
- package/dist/esm/api/dataBoundaries/index.js.map +1 -0
- package/dist/esm/api/dataBoundaries/operations.d.ts +17 -0
- package/dist/esm/api/dataBoundaries/operations.js +87 -0
- package/dist/esm/api/dataBoundaries/operations.js.map +1 -0
- package/dist/esm/api/dataBoundaries/options.d.ts +11 -0
- package/dist/esm/api/dataBoundaries/options.js +4 -0
- package/dist/esm/api/dataBoundaries/options.js.map +1 -0
- package/dist/esm/api/databoundariesManegementContext.d.ts +20 -0
- package/dist/esm/api/databoundariesManegementContext.js +26 -0
- package/dist/esm/api/databoundariesManegementContext.js.map +1 -0
- package/dist/esm/api/index.d.ts +3 -0
- package/dist/esm/api/index.js +4 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/operations/index.d.ts +3 -0
- package/dist/esm/api/operations/index.js +4 -0
- package/dist/esm/api/operations/index.js.map +1 -0
- package/dist/esm/api/operations/operations.d.ts +10 -0
- package/dist/esm/api/operations/operations.js +31 -0
- package/dist/esm/api/operations/operations.js.map +1 -0
- package/dist/esm/api/operations/options.d.ts +5 -0
- package/dist/esm/api/operations/options.js +4 -0
- package/dist/esm/api/operations/options.js.map +1 -0
- package/dist/esm/classic/dataBoundaries/index.d.ts +14 -0
- package/dist/esm/classic/dataBoundaries/index.js +16 -0
- package/dist/esm/classic/dataBoundaries/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +3 -0
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -0
- package/dist/esm/classic/operations/index.d.ts +11 -0
- package/dist/esm/classic/operations/index.js +14 -0
- package/dist/esm/classic/operations/index.js.map +1 -0
- package/dist/esm/databoundariesManegementClient.d.ts +16 -16
- package/dist/esm/databoundariesManegementClient.js +24 -94
- package/dist/esm/databoundariesManegementClient.js.map +1 -1
- package/dist/esm/index.d.ts +12 -2
- package/dist/esm/index.js +6 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models/index.d.ts +2 -212
- package/dist/esm/models/index.js +3 -53
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +236 -0
- package/dist/esm/models/models.js +198 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/esm/static-helpers/pagingHelpers.js +143 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.js +200 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/package.json +144 -91
- package/CHANGELOG.md +0 -17
- package/dist/browser/databoundariesManegementClient.d.ts.map +0 -1
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/models/index.d.ts.map +0 -1
- package/dist/browser/models/mappers.d.ts +0 -10
- package/dist/browser/models/mappers.d.ts.map +0 -1
- package/dist/browser/models/mappers.js +0 -227
- package/dist/browser/models/mappers.js.map +0 -1
- package/dist/browser/models/parameters.d.ts +0 -9
- package/dist/browser/models/parameters.d.ts.map +0 -1
- package/dist/browser/models/parameters.js +0 -81
- package/dist/browser/models/parameters.js.map +0 -1
- package/dist/browser/operations/dataBoundaries.d.ts +0 -33
- package/dist/browser/operations/dataBoundaries.d.ts.map +0 -1
- package/dist/browser/operations/dataBoundaries.js +0 -103
- package/dist/browser/operations/dataBoundaries.js.map +0 -1
- package/dist/browser/operations/index.d.ts +0 -2
- package/dist/browser/operations/index.d.ts.map +0 -1
- package/dist/browser/operations/index.js +0 -9
- package/dist/browser/operations/index.js.map +0 -1
- package/dist/browser/operationsInterfaces/dataBoundaries.d.ts +0 -25
- package/dist/browser/operationsInterfaces/dataBoundaries.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/dataBoundaries.js +0 -9
- package/dist/browser/operationsInterfaces/dataBoundaries.js.map +0 -1
- package/dist/browser/operationsInterfaces/index.d.ts +0 -2
- package/dist/browser/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/index.js +0 -9
- package/dist/browser/operationsInterfaces/index.js.map +0 -1
- package/dist/commonjs/databoundariesManegementClient.d.ts.map +0 -1
- package/dist/commonjs/index.d.ts.map +0 -1
- package/dist/commonjs/models/index.d.ts.map +0 -1
- package/dist/commonjs/models/mappers.d.ts +0 -10
- package/dist/commonjs/models/mappers.d.ts.map +0 -1
- package/dist/commonjs/models/mappers.js +0 -230
- package/dist/commonjs/models/mappers.js.map +0 -1
- package/dist/commonjs/models/parameters.d.ts +0 -9
- package/dist/commonjs/models/parameters.d.ts.map +0 -1
- package/dist/commonjs/models/parameters.js +0 -84
- package/dist/commonjs/models/parameters.js.map +0 -1
- package/dist/commonjs/operations/dataBoundaries.d.ts +0 -33
- package/dist/commonjs/operations/dataBoundaries.d.ts.map +0 -1
- package/dist/commonjs/operations/dataBoundaries.js +0 -108
- package/dist/commonjs/operations/dataBoundaries.js.map +0 -1
- package/dist/commonjs/operations/index.d.ts +0 -2
- package/dist/commonjs/operations/index.d.ts.map +0 -1
- package/dist/commonjs/operations/index.js +0 -12
- package/dist/commonjs/operations/index.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/dataBoundaries.d.ts +0 -25
- package/dist/commonjs/operationsInterfaces/dataBoundaries.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/dataBoundaries.js +0 -10
- package/dist/commonjs/operationsInterfaces/dataBoundaries.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +0 -2
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/index.js +0 -12
- package/dist/commonjs/operationsInterfaces/index.js.map +0 -1
- package/dist/esm/databoundariesManegementClient.d.ts.map +0 -1
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/models/index.d.ts.map +0 -1
- package/dist/esm/models/mappers.d.ts +0 -10
- package/dist/esm/models/mappers.d.ts.map +0 -1
- package/dist/esm/models/mappers.js +0 -227
- package/dist/esm/models/mappers.js.map +0 -1
- package/dist/esm/models/parameters.d.ts +0 -9
- package/dist/esm/models/parameters.d.ts.map +0 -1
- package/dist/esm/models/parameters.js +0 -81
- package/dist/esm/models/parameters.js.map +0 -1
- package/dist/esm/operations/dataBoundaries.d.ts +0 -33
- package/dist/esm/operations/dataBoundaries.d.ts.map +0 -1
- package/dist/esm/operations/dataBoundaries.js +0 -103
- package/dist/esm/operations/dataBoundaries.js.map +0 -1
- package/dist/esm/operations/index.d.ts +0 -2
- package/dist/esm/operations/index.d.ts.map +0 -1
- package/dist/esm/operations/index.js +0 -9
- package/dist/esm/operations/index.js.map +0 -1
- package/dist/esm/operationsInterfaces/dataBoundaries.d.ts +0 -25
- package/dist/esm/operationsInterfaces/dataBoundaries.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/dataBoundaries.js +0 -9
- package/dist/esm/operationsInterfaces/dataBoundaries.js.map +0 -1
- package/dist/esm/operationsInterfaces/index.d.ts +0 -2
- package/dist/esm/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/index.js +0 -9
- package/dist/esm/operationsInterfaces/index.js.map +0 -1
- package/dist/react-native/databoundariesManegementClient.d.ts +0 -18
- package/dist/react-native/databoundariesManegementClient.d.ts.map +0 -1
- package/dist/react-native/databoundariesManegementClient.js +0 -99
- package/dist/react-native/databoundariesManegementClient.js.map +0 -1
- package/dist/react-native/index.d.ts +0 -4
- package/dist/react-native/index.d.ts.map +0 -1
- package/dist/react-native/index.js +0 -11
- package/dist/react-native/index.js.map +0 -1
- package/dist/react-native/models/index.d.ts +0 -213
- package/dist/react-native/models/index.d.ts.map +0 -1
- package/dist/react-native/models/index.js +0 -54
- package/dist/react-native/models/index.js.map +0 -1
- package/dist/react-native/models/mappers.d.ts +0 -10
- package/dist/react-native/models/mappers.d.ts.map +0 -1
- package/dist/react-native/models/mappers.js +0 -227
- package/dist/react-native/models/mappers.js.map +0 -1
- package/dist/react-native/models/parameters.d.ts +0 -9
- package/dist/react-native/models/parameters.d.ts.map +0 -1
- package/dist/react-native/models/parameters.js +0 -81
- package/dist/react-native/models/parameters.js.map +0 -1
- package/dist/react-native/operations/dataBoundaries.d.ts +0 -33
- package/dist/react-native/operations/dataBoundaries.d.ts.map +0 -1
- package/dist/react-native/operations/dataBoundaries.js +0 -103
- package/dist/react-native/operations/dataBoundaries.js.map +0 -1
- package/dist/react-native/operations/index.d.ts +0 -2
- package/dist/react-native/operations/index.d.ts.map +0 -1
- package/dist/react-native/operations/index.js +0 -9
- package/dist/react-native/operations/index.js.map +0 -1
- package/dist/react-native/operationsInterfaces/dataBoundaries.d.ts +0 -25
- package/dist/react-native/operationsInterfaces/dataBoundaries.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/dataBoundaries.js +0 -9
- package/dist/react-native/operationsInterfaces/dataBoundaries.js.map +0 -1
- package/dist/react-native/operationsInterfaces/index.d.ts +0 -2
- package/dist/react-native/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/index.js +0 -9
- package/dist/react-native/operationsInterfaces/index.js.map +0 -1
- package/dist/react-native/package.json +0 -3
- package/review/arm-databoundaries-node.api.md +0 -154
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file contains only generated model types and their (de)serializers.
|
|
3
|
+
* Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.
|
|
4
|
+
*/
|
|
5
|
+
/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */
|
|
6
|
+
export interface _OperationListResult {
|
|
7
|
+
/** The Operation items on this page */
|
|
8
|
+
value: Operation[];
|
|
9
|
+
/** The link to the next page of items */
|
|
10
|
+
nextLink?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function _operationListResultDeserializer(item: any): _OperationListResult;
|
|
13
|
+
export declare function operationArrayDeserializer(result: Array<Operation>): any[];
|
|
14
|
+
/** Details of a REST API operation, returned from the Resource Provider Operations API */
|
|
15
|
+
export interface Operation {
|
|
16
|
+
/** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */
|
|
17
|
+
readonly name?: string;
|
|
18
|
+
/** Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure Resource Manager/control-plane operations. */
|
|
19
|
+
readonly isDataAction?: boolean;
|
|
20
|
+
/** Localized display information for this particular operation. */
|
|
21
|
+
display?: OperationDisplay;
|
|
22
|
+
/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */
|
|
23
|
+
readonly origin?: Origin;
|
|
24
|
+
/** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */
|
|
25
|
+
readonly actionType?: ActionType;
|
|
26
|
+
}
|
|
27
|
+
export declare function operationDeserializer(item: any): Operation;
|
|
28
|
+
/** Localized display information for an operation. */
|
|
29
|
+
export interface OperationDisplay {
|
|
30
|
+
/** The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". */
|
|
31
|
+
readonly provider?: string;
|
|
32
|
+
/** The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". */
|
|
33
|
+
readonly resource?: string;
|
|
34
|
+
/** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". */
|
|
35
|
+
readonly operation?: string;
|
|
36
|
+
/** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */
|
|
37
|
+
readonly description?: string;
|
|
38
|
+
}
|
|
39
|
+
export declare function operationDisplayDeserializer(item: any): OperationDisplay;
|
|
40
|
+
/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */
|
|
41
|
+
export declare enum KnownOrigin {
|
|
42
|
+
/** Indicates the operation is initiated by a user. */
|
|
43
|
+
User = "user",
|
|
44
|
+
/** Indicates the operation is initiated by a system. */
|
|
45
|
+
System = "system",
|
|
46
|
+
/** Indicates the operation is initiated by a user or system. */
|
|
47
|
+
UserSystem = "user,system"
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" \
|
|
51
|
+
* {@link KnownOrigin} can be used interchangeably with Origin,
|
|
52
|
+
* this enum contains the known values that the service supports.
|
|
53
|
+
* ### Known values supported by the service
|
|
54
|
+
* **user**: Indicates the operation is initiated by a user. \
|
|
55
|
+
* **system**: Indicates the operation is initiated by a system. \
|
|
56
|
+
* **user,system**: Indicates the operation is initiated by a user or system.
|
|
57
|
+
*/
|
|
58
|
+
export type Origin = string;
|
|
59
|
+
/** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */
|
|
60
|
+
export declare enum KnownActionType {
|
|
61
|
+
/** Actions are for internal-only APIs. */
|
|
62
|
+
Internal = "Internal"
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. \
|
|
66
|
+
* {@link KnownActionType} can be used interchangeably with ActionType,
|
|
67
|
+
* this enum contains the known values that the service supports.
|
|
68
|
+
* ### Known values supported by the service
|
|
69
|
+
* **Internal**: Actions are for internal-only APIs.
|
|
70
|
+
*/
|
|
71
|
+
export type ActionType = string;
|
|
72
|
+
/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */
|
|
73
|
+
export interface ErrorResponse {
|
|
74
|
+
/** The error object. */
|
|
75
|
+
error?: ErrorDetail;
|
|
76
|
+
}
|
|
77
|
+
export declare function errorResponseDeserializer(item: any): ErrorResponse;
|
|
78
|
+
/** The error detail. */
|
|
79
|
+
export interface ErrorDetail {
|
|
80
|
+
/** The error code. */
|
|
81
|
+
readonly code?: string;
|
|
82
|
+
/** The error message. */
|
|
83
|
+
readonly message?: string;
|
|
84
|
+
/** The error target. */
|
|
85
|
+
readonly target?: string;
|
|
86
|
+
/** The error details. */
|
|
87
|
+
readonly details?: ErrorDetail[];
|
|
88
|
+
/** The error additional info. */
|
|
89
|
+
readonly additionalInfo?: ErrorAdditionalInfo[];
|
|
90
|
+
}
|
|
91
|
+
export declare function errorDetailDeserializer(item: any): ErrorDetail;
|
|
92
|
+
export declare function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[];
|
|
93
|
+
export declare function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[];
|
|
94
|
+
/** The resource management error additional info. */
|
|
95
|
+
export interface ErrorAdditionalInfo {
|
|
96
|
+
/** The additional info type. */
|
|
97
|
+
readonly type?: string;
|
|
98
|
+
/** The additional info. */
|
|
99
|
+
readonly info?: any;
|
|
100
|
+
}
|
|
101
|
+
export declare function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo;
|
|
102
|
+
/** A data boundary definition. */
|
|
103
|
+
export interface DataBoundaryDefinition extends ProxyResource {
|
|
104
|
+
/** Data boundary properties */
|
|
105
|
+
properties?: DataBoundaryProperties;
|
|
106
|
+
}
|
|
107
|
+
export declare function dataBoundaryDefinitionSerializer(item: DataBoundaryDefinition): any;
|
|
108
|
+
export declare function dataBoundaryDefinitionDeserializer(item: any): DataBoundaryDefinition;
|
|
109
|
+
/** Data boundary properties */
|
|
110
|
+
export interface DataBoundaryProperties {
|
|
111
|
+
/** The data boundary definition. */
|
|
112
|
+
dataBoundary?: DataBoundary;
|
|
113
|
+
/** Denotes the state of provisioning. */
|
|
114
|
+
readonly provisioningState?: ProvisioningState;
|
|
115
|
+
}
|
|
116
|
+
export declare function dataBoundaryPropertiesSerializer(item: DataBoundaryProperties): any;
|
|
117
|
+
export declare function dataBoundaryPropertiesDeserializer(item: any): DataBoundaryProperties;
|
|
118
|
+
/** The data boundary definition. */
|
|
119
|
+
export declare enum KnownDataBoundary {
|
|
120
|
+
/** NotDefined */
|
|
121
|
+
NotDefined = "NotDefined",
|
|
122
|
+
/** Global */
|
|
123
|
+
Global = "Global",
|
|
124
|
+
/** EU */
|
|
125
|
+
EU = "EU"
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* The data boundary definition. \
|
|
129
|
+
* {@link KnownDataBoundary} can be used interchangeably with DataBoundary,
|
|
130
|
+
* this enum contains the known values that the service supports.
|
|
131
|
+
* ### Known values supported by the service
|
|
132
|
+
* **NotDefined**: NotDefined \
|
|
133
|
+
* **Global**: Global \
|
|
134
|
+
* **EU**: EU
|
|
135
|
+
*/
|
|
136
|
+
export type DataBoundary = string;
|
|
137
|
+
/** Denotes the state of provisioning. */
|
|
138
|
+
export declare enum KnownProvisioningState {
|
|
139
|
+
/** Accepted */
|
|
140
|
+
Accepted = "Accepted",
|
|
141
|
+
/** Running */
|
|
142
|
+
Running = "Running",
|
|
143
|
+
/** Creating */
|
|
144
|
+
Creating = "Creating",
|
|
145
|
+
/** Canceled */
|
|
146
|
+
Canceled = "Canceled",
|
|
147
|
+
/** Failed */
|
|
148
|
+
Failed = "Failed",
|
|
149
|
+
/** Succeeded */
|
|
150
|
+
Succeeded = "Succeeded",
|
|
151
|
+
/** Updating */
|
|
152
|
+
Updating = "Updating"
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Denotes the state of provisioning. \
|
|
156
|
+
* {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
|
|
157
|
+
* this enum contains the known values that the service supports.
|
|
158
|
+
* ### Known values supported by the service
|
|
159
|
+
* **Accepted**: Accepted \
|
|
160
|
+
* **Running**: Running \
|
|
161
|
+
* **Creating**: Creating \
|
|
162
|
+
* **Canceled**: Canceled \
|
|
163
|
+
* **Failed**: Failed \
|
|
164
|
+
* **Succeeded**: Succeeded \
|
|
165
|
+
* **Updating**: Updating
|
|
166
|
+
*/
|
|
167
|
+
export type ProvisioningState = string;
|
|
168
|
+
/** Known values of {@link DefaultName} that the service accepts. */
|
|
169
|
+
export declare enum KnownDefaultName {
|
|
170
|
+
/** default */
|
|
171
|
+
Default = "default"
|
|
172
|
+
}
|
|
173
|
+
/** Type of DefaultName */
|
|
174
|
+
export type DefaultName = string;
|
|
175
|
+
/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
|
|
176
|
+
export interface ProxyResource extends Resource {
|
|
177
|
+
}
|
|
178
|
+
export declare function proxyResourceSerializer(_item: ProxyResource): any;
|
|
179
|
+
export declare function proxyResourceDeserializer(item: any): ProxyResource;
|
|
180
|
+
/** Common fields that are returned in the response for all Azure Resource Manager resources */
|
|
181
|
+
export interface Resource {
|
|
182
|
+
/** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */
|
|
183
|
+
readonly id?: string;
|
|
184
|
+
/** The name of the resource */
|
|
185
|
+
readonly name?: string;
|
|
186
|
+
/** The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */
|
|
187
|
+
readonly type?: string;
|
|
188
|
+
/** Azure Resource Manager metadata containing createdBy and modifiedBy information. */
|
|
189
|
+
readonly systemData?: SystemData;
|
|
190
|
+
}
|
|
191
|
+
export declare function resourceSerializer(_item: Resource): any;
|
|
192
|
+
export declare function resourceDeserializer(item: any): Resource;
|
|
193
|
+
/** Metadata pertaining to creation and last modification of the resource. */
|
|
194
|
+
export interface SystemData {
|
|
195
|
+
/** The identity that created the resource. */
|
|
196
|
+
createdBy?: string;
|
|
197
|
+
/** The type of identity that created the resource. */
|
|
198
|
+
createdByType?: CreatedByType;
|
|
199
|
+
/** The timestamp of resource creation (UTC). */
|
|
200
|
+
createdAt?: Date;
|
|
201
|
+
/** The identity that last modified the resource. */
|
|
202
|
+
lastModifiedBy?: string;
|
|
203
|
+
/** The type of identity that last modified the resource. */
|
|
204
|
+
lastModifiedByType?: CreatedByType;
|
|
205
|
+
/** The timestamp of resource last modification (UTC) */
|
|
206
|
+
lastModifiedAt?: Date;
|
|
207
|
+
}
|
|
208
|
+
export declare function systemDataDeserializer(item: any): SystemData;
|
|
209
|
+
/** The kind of entity that created the resource. */
|
|
210
|
+
export declare enum KnownCreatedByType {
|
|
211
|
+
/** The entity was created by a user. */
|
|
212
|
+
User = "User",
|
|
213
|
+
/** The entity was created by an application. */
|
|
214
|
+
Application = "Application",
|
|
215
|
+
/** The entity was created by a managed identity. */
|
|
216
|
+
ManagedIdentity = "ManagedIdentity",
|
|
217
|
+
/** The entity was created by a key. */
|
|
218
|
+
Key = "Key"
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* The kind of entity that created the resource. \
|
|
222
|
+
* {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
|
|
223
|
+
* this enum contains the known values that the service supports.
|
|
224
|
+
* ### Known values supported by the service
|
|
225
|
+
* **User**: The entity was created by a user. \
|
|
226
|
+
* **Application**: The entity was created by an application. \
|
|
227
|
+
* **ManagedIdentity**: The entity was created by a managed identity. \
|
|
228
|
+
* **Key**: The entity was created by a key.
|
|
229
|
+
*/
|
|
230
|
+
export type CreatedByType = string;
|
|
231
|
+
/** The available API versions. */
|
|
232
|
+
export declare enum KnownVersions {
|
|
233
|
+
/** The 2024-08-01 API version. */
|
|
234
|
+
V20240801 = "2024-08-01"
|
|
235
|
+
}
|
|
236
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
export function _operationListResultDeserializer(item) {
|
|
4
|
+
return {
|
|
5
|
+
value: operationArrayDeserializer(item["value"]),
|
|
6
|
+
nextLink: item["nextLink"],
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export function operationArrayDeserializer(result) {
|
|
10
|
+
return result.map((item) => {
|
|
11
|
+
return operationDeserializer(item);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
export function operationDeserializer(item) {
|
|
15
|
+
return {
|
|
16
|
+
name: item["name"],
|
|
17
|
+
isDataAction: item["isDataAction"],
|
|
18
|
+
display: !item["display"] ? item["display"] : operationDisplayDeserializer(item["display"]),
|
|
19
|
+
origin: item["origin"],
|
|
20
|
+
actionType: item["actionType"],
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export function operationDisplayDeserializer(item) {
|
|
24
|
+
return {
|
|
25
|
+
provider: item["provider"],
|
|
26
|
+
resource: item["resource"],
|
|
27
|
+
operation: item["operation"],
|
|
28
|
+
description: item["description"],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */
|
|
32
|
+
export var KnownOrigin;
|
|
33
|
+
(function (KnownOrigin) {
|
|
34
|
+
/** Indicates the operation is initiated by a user. */
|
|
35
|
+
KnownOrigin["User"] = "user";
|
|
36
|
+
/** Indicates the operation is initiated by a system. */
|
|
37
|
+
KnownOrigin["System"] = "system";
|
|
38
|
+
/** Indicates the operation is initiated by a user or system. */
|
|
39
|
+
KnownOrigin["UserSystem"] = "user,system";
|
|
40
|
+
})(KnownOrigin || (KnownOrigin = {}));
|
|
41
|
+
/** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */
|
|
42
|
+
export var KnownActionType;
|
|
43
|
+
(function (KnownActionType) {
|
|
44
|
+
/** Actions are for internal-only APIs. */
|
|
45
|
+
KnownActionType["Internal"] = "Internal";
|
|
46
|
+
})(KnownActionType || (KnownActionType = {}));
|
|
47
|
+
export function errorResponseDeserializer(item) {
|
|
48
|
+
return {
|
|
49
|
+
error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function errorDetailDeserializer(item) {
|
|
53
|
+
return {
|
|
54
|
+
code: item["code"],
|
|
55
|
+
message: item["message"],
|
|
56
|
+
target: item["target"],
|
|
57
|
+
details: !item["details"] ? item["details"] : errorDetailArrayDeserializer(item["details"]),
|
|
58
|
+
additionalInfo: !item["additionalInfo"]
|
|
59
|
+
? item["additionalInfo"]
|
|
60
|
+
: errorAdditionalInfoArrayDeserializer(item["additionalInfo"]),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export function errorDetailArrayDeserializer(result) {
|
|
64
|
+
return result.map((item) => {
|
|
65
|
+
return errorDetailDeserializer(item);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
export function errorAdditionalInfoArrayDeserializer(result) {
|
|
69
|
+
return result.map((item) => {
|
|
70
|
+
return errorAdditionalInfoDeserializer(item);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
export function errorAdditionalInfoDeserializer(item) {
|
|
74
|
+
return {
|
|
75
|
+
type: item["type"],
|
|
76
|
+
info: item["info"],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
export function dataBoundaryDefinitionSerializer(item) {
|
|
80
|
+
return {
|
|
81
|
+
properties: !item["properties"]
|
|
82
|
+
? item["properties"]
|
|
83
|
+
: dataBoundaryPropertiesSerializer(item["properties"]),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
export function dataBoundaryDefinitionDeserializer(item) {
|
|
87
|
+
return {
|
|
88
|
+
id: item["id"],
|
|
89
|
+
name: item["name"],
|
|
90
|
+
type: item["type"],
|
|
91
|
+
systemData: !item["systemData"]
|
|
92
|
+
? item["systemData"]
|
|
93
|
+
: systemDataDeserializer(item["systemData"]),
|
|
94
|
+
properties: !item["properties"]
|
|
95
|
+
? item["properties"]
|
|
96
|
+
: dataBoundaryPropertiesDeserializer(item["properties"]),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
export function dataBoundaryPropertiesSerializer(item) {
|
|
100
|
+
return { dataBoundary: item["dataBoundary"] };
|
|
101
|
+
}
|
|
102
|
+
export function dataBoundaryPropertiesDeserializer(item) {
|
|
103
|
+
return {
|
|
104
|
+
dataBoundary: item["dataBoundary"],
|
|
105
|
+
provisioningState: item["provisioningState"],
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
/** The data boundary definition. */
|
|
109
|
+
export var KnownDataBoundary;
|
|
110
|
+
(function (KnownDataBoundary) {
|
|
111
|
+
/** NotDefined */
|
|
112
|
+
KnownDataBoundary["NotDefined"] = "NotDefined";
|
|
113
|
+
/** Global */
|
|
114
|
+
KnownDataBoundary["Global"] = "Global";
|
|
115
|
+
/** EU */
|
|
116
|
+
KnownDataBoundary["EU"] = "EU";
|
|
117
|
+
})(KnownDataBoundary || (KnownDataBoundary = {}));
|
|
118
|
+
/** Denotes the state of provisioning. */
|
|
119
|
+
export var KnownProvisioningState;
|
|
120
|
+
(function (KnownProvisioningState) {
|
|
121
|
+
/** Accepted */
|
|
122
|
+
KnownProvisioningState["Accepted"] = "Accepted";
|
|
123
|
+
/** Running */
|
|
124
|
+
KnownProvisioningState["Running"] = "Running";
|
|
125
|
+
/** Creating */
|
|
126
|
+
KnownProvisioningState["Creating"] = "Creating";
|
|
127
|
+
/** Canceled */
|
|
128
|
+
KnownProvisioningState["Canceled"] = "Canceled";
|
|
129
|
+
/** Failed */
|
|
130
|
+
KnownProvisioningState["Failed"] = "Failed";
|
|
131
|
+
/** Succeeded */
|
|
132
|
+
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
133
|
+
/** Updating */
|
|
134
|
+
KnownProvisioningState["Updating"] = "Updating";
|
|
135
|
+
})(KnownProvisioningState || (KnownProvisioningState = {}));
|
|
136
|
+
/** Known values of {@link DefaultName} that the service accepts. */
|
|
137
|
+
export var KnownDefaultName;
|
|
138
|
+
(function (KnownDefaultName) {
|
|
139
|
+
/** default */
|
|
140
|
+
KnownDefaultName["Default"] = "default";
|
|
141
|
+
})(KnownDefaultName || (KnownDefaultName = {}));
|
|
142
|
+
export function proxyResourceSerializer(_item) {
|
|
143
|
+
return {};
|
|
144
|
+
}
|
|
145
|
+
export function proxyResourceDeserializer(item) {
|
|
146
|
+
return {
|
|
147
|
+
id: item["id"],
|
|
148
|
+
name: item["name"],
|
|
149
|
+
type: item["type"],
|
|
150
|
+
systemData: !item["systemData"]
|
|
151
|
+
? item["systemData"]
|
|
152
|
+
: systemDataDeserializer(item["systemData"]),
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
export function resourceSerializer(_item) {
|
|
156
|
+
return {};
|
|
157
|
+
}
|
|
158
|
+
export function resourceDeserializer(item) {
|
|
159
|
+
return {
|
|
160
|
+
id: item["id"],
|
|
161
|
+
name: item["name"],
|
|
162
|
+
type: item["type"],
|
|
163
|
+
systemData: !item["systemData"]
|
|
164
|
+
? item["systemData"]
|
|
165
|
+
: systemDataDeserializer(item["systemData"]),
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
export function systemDataDeserializer(item) {
|
|
169
|
+
return {
|
|
170
|
+
createdBy: item["createdBy"],
|
|
171
|
+
createdByType: item["createdByType"],
|
|
172
|
+
createdAt: !item["createdAt"] ? item["createdAt"] : new Date(item["createdAt"]),
|
|
173
|
+
lastModifiedBy: item["lastModifiedBy"],
|
|
174
|
+
lastModifiedByType: item["lastModifiedByType"],
|
|
175
|
+
lastModifiedAt: !item["lastModifiedAt"]
|
|
176
|
+
? item["lastModifiedAt"]
|
|
177
|
+
: new Date(item["lastModifiedAt"]),
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
/** The kind of entity that created the resource. */
|
|
181
|
+
export var KnownCreatedByType;
|
|
182
|
+
(function (KnownCreatedByType) {
|
|
183
|
+
/** The entity was created by a user. */
|
|
184
|
+
KnownCreatedByType["User"] = "User";
|
|
185
|
+
/** The entity was created by an application. */
|
|
186
|
+
KnownCreatedByType["Application"] = "Application";
|
|
187
|
+
/** The entity was created by a managed identity. */
|
|
188
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
189
|
+
/** The entity was created by a key. */
|
|
190
|
+
KnownCreatedByType["Key"] = "Key";
|
|
191
|
+
})(KnownCreatedByType || (KnownCreatedByType = {}));
|
|
192
|
+
/** The available API versions. */
|
|
193
|
+
export var KnownVersions;
|
|
194
|
+
(function (KnownVersions) {
|
|
195
|
+
/** The 2024-08-01 API version. */
|
|
196
|
+
KnownVersions["V20240801"] = "2024-08-01";
|
|
197
|
+
})(KnownVersions || (KnownVersions = {}));
|
|
198
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAgBlC,MAAM,UAAU,gCAAgC,CAAC,IAAS;IACxD,OAAO;QACL,KAAK,EAAE,0BAA0B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChD,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,MAAwB;IACjE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC;AAgBD,MAAM,UAAU,qBAAqB,CAAC,IAAS;IAC7C,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,YAAY,EAAE,IAA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I,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC/E,cAAc,EAAE,IAAI,CAAC,gBAAgB,CAAC;QACtC,kBAAkB,EAAE,IAAI,CAAC,oBAAoB,CAAC;QAC9C,cAAc,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC;YACrC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC;YACxB,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;KACrC,CAAC;AACJ,CAAC;AAED,oDAAoD;AACpD,MAAM,CAAN,IAAY,kBASX;AATD,WAAY,kBAAkB;IAC5B,wCAAwC;IACxC,mCAAa,CAAA;IACb,gDAAgD;IAChD,iDAA2B,CAAA;IAC3B,oDAAoD;IACpD,yDAAmC,CAAA;IACnC,uCAAuC;IACvC,iCAAW,CAAA;AACb,CAAC,EATW,kBAAkB,KAAlB,kBAAkB,QAS7B;AAcD,kCAAkC;AAClC,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,kCAAkC;IAClC,yCAAwB,CAAA;AAC1B,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\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 /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n readonly actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for an operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\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 * {@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**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\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**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: any;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: item[\"info\"],\n };\n}\n\n/** A data boundary definition. */\nexport interface DataBoundaryDefinition extends ProxyResource {\n /** Data boundary properties */\n properties?: DataBoundaryProperties;\n}\n\nexport function dataBoundaryDefinitionSerializer(item: DataBoundaryDefinition): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : dataBoundaryPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function dataBoundaryDefinitionDeserializer(item: any): DataBoundaryDefinition {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : dataBoundaryPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Data boundary properties */\nexport interface DataBoundaryProperties {\n /** The data boundary definition. */\n dataBoundary?: DataBoundary;\n /** Denotes the state of provisioning. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function dataBoundaryPropertiesSerializer(item: DataBoundaryProperties): any {\n return { dataBoundary: item[\"dataBoundary\"] };\n}\n\nexport function dataBoundaryPropertiesDeserializer(item: any): DataBoundaryProperties {\n return {\n dataBoundary: item[\"dataBoundary\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The data boundary definition. */\nexport enum KnownDataBoundary {\n /** NotDefined */\n NotDefined = \"NotDefined\",\n /** Global */\n Global = \"Global\",\n /** EU */\n EU = \"EU\",\n}\n\n/**\n * The data boundary definition. \\\n * {@link KnownDataBoundary} can be used interchangeably with DataBoundary,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **NotDefined**: NotDefined \\\n * **Global**: Global \\\n * **EU**: EU\n */\nexport type DataBoundary = string;\n\n/** Denotes the state of provisioning. */\nexport enum KnownProvisioningState {\n /** Accepted */\n Accepted = \"Accepted\",\n /** Running */\n Running = \"Running\",\n /** Creating */\n Creating = \"Creating\",\n /** Canceled */\n Canceled = \"Canceled\",\n /** Failed */\n Failed = \"Failed\",\n /** Succeeded */\n Succeeded = \"Succeeded\",\n /** Updating */\n Updating = \"Updating\",\n}\n\n/**\n * Denotes the state of provisioning. \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Accepted**: Accepted \\\n * **Running**: Running \\\n * **Creating**: Creating \\\n * **Canceled**: Canceled \\\n * **Failed**: Failed \\\n * **Succeeded**: Succeeded \\\n * **Updating**: Updating\n */\nexport type ProvisioningState = string;\n\n/** Known values of {@link DefaultName} that the service accepts. */\nexport enum KnownDefaultName {\n /** default */\n Default = \"default\",\n}\n\n/** Type of DefaultName */\nexport type DefaultName = string;\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceSerializer(_item: ProxyResource): any {\n return {};\n}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(_item: Resource): any {\n return {};\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\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\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\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**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** The available API versions. */\nexport enum KnownVersions {\n /** The 2024-08-01 API version. */\n V20240801 = \"2024-08-01\",\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An enum to describe Azure Cloud environments.
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*/
|
|
5
|
+
export declare enum AzureClouds {
|
|
6
|
+
/** Azure public cloud, which is the default cloud for Azure SDKs. */
|
|
7
|
+
AZURE_PUBLIC_CLOUD = "AZURE_PUBLIC_CLOUD",
|
|
8
|
+
/** Azure China cloud */
|
|
9
|
+
AZURE_CHINA_CLOUD = "AZURE_CHINA_CLOUD",
|
|
10
|
+
/** Azure US government cloud */
|
|
11
|
+
AZURE_US_GOVERNMENT = "AZURE_US_GOVERNMENT"
|
|
12
|
+
}
|
|
13
|
+
/** The supported values for cloud setting as a string literal type */
|
|
14
|
+
export type AzureSupportedClouds = `${AzureClouds}`;
|
|
15
|
+
/**
|
|
16
|
+
* Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
|
|
17
|
+
* @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
|
|
18
|
+
* @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
|
|
19
|
+
* @throws {Error} Throws an error if an unknown cloud setting is provided.
|
|
20
|
+
*/
|
|
21
|
+
export declare function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined;
|
|
22
|
+
//# sourceMappingURL=cloudSettingHelpers.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
/**
|
|
4
|
+
* An enum to describe Azure Cloud environments.
|
|
5
|
+
* @enum {string}
|
|
6
|
+
*/
|
|
7
|
+
export var AzureClouds;
|
|
8
|
+
(function (AzureClouds) {
|
|
9
|
+
/** Azure public cloud, which is the default cloud for Azure SDKs. */
|
|
10
|
+
AzureClouds["AZURE_PUBLIC_CLOUD"] = "AZURE_PUBLIC_CLOUD";
|
|
11
|
+
/** Azure China cloud */
|
|
12
|
+
AzureClouds["AZURE_CHINA_CLOUD"] = "AZURE_CHINA_CLOUD";
|
|
13
|
+
/** Azure US government cloud */
|
|
14
|
+
AzureClouds["AZURE_US_GOVERNMENT"] = "AZURE_US_GOVERNMENT";
|
|
15
|
+
})(AzureClouds || (AzureClouds = {}));
|
|
16
|
+
/**
|
|
17
|
+
* Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
|
|
18
|
+
* @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
|
|
19
|
+
* @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
|
|
20
|
+
* @throws {Error} Throws an error if an unknown cloud setting is provided.
|
|
21
|
+
*/
|
|
22
|
+
export function getArmEndpoint(cloudSetting) {
|
|
23
|
+
if (cloudSetting === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
const cloudEndpoints = {
|
|
27
|
+
AZURE_CHINA_CLOUD: "https://management.chinacloudapi.cn/",
|
|
28
|
+
AZURE_US_GOVERNMENT: "https://management.usgovcloudapi.net/",
|
|
29
|
+
AZURE_PUBLIC_CLOUD: "https://management.azure.com/",
|
|
30
|
+
};
|
|
31
|
+
if (cloudSetting in cloudEndpoints) {
|
|
32
|
+
return cloudEndpoints[cloudSetting];
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
throw new Error(`Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=cloudSettingHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloudSettingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/cloudSettingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;GAGG;AACH,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,qEAAqE;IACrE,wDAAyC,CAAA;IACzC,wBAAwB;IACxB,sDAAuC,CAAA;IACvC,gCAAgC;IAChC,0DAA2C,CAAA;AAC7C,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAKD;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,YAAmC;IAChE,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,cAAc,GAA6C;QAC/D,iBAAiB,EAAE,sCAAsC;QACzD,mBAAmB,EAAE,uCAAuC;QAC5D,kBAAkB,EAAE,+BAA+B;KACpD,CAAC;IACF,IAAI,YAAY,IAAI,cAAc,EAAE,CAAC;QACnC,OAAO,cAAc,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CACb,0BAA0B,YAAY,6DAA6D,CACpG,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * An enum to describe Azure Cloud environments.\n * @enum {string}\n */\nexport enum AzureClouds {\n /** Azure public cloud, which is the default cloud for Azure SDKs. */\n AZURE_PUBLIC_CLOUD = \"AZURE_PUBLIC_CLOUD\",\n /** Azure China cloud */\n AZURE_CHINA_CLOUD = \"AZURE_CHINA_CLOUD\",\n /** Azure US government cloud */\n AZURE_US_GOVERNMENT = \"AZURE_US_GOVERNMENT\",\n}\n\n/** The supported values for cloud setting as a string literal type */\nexport type AzureSupportedClouds = `${AzureClouds}`;\n\n/**\n * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.\n * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.\n * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.\n * @throws {Error} Throws an error if an unknown cloud setting is provided.\n */\nexport function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined {\n if (cloudSetting === undefined) {\n return undefined;\n }\n const cloudEndpoints: Record<keyof typeof AzureClouds, string> = {\n AZURE_CHINA_CLOUD: \"https://management.chinacloudapi.cn/\",\n AZURE_US_GOVERNMENT: \"https://management.usgovcloudapi.net/\",\n AZURE_PUBLIC_CLOUD: \"https://management.azure.com/\",\n };\n if (cloudSetting in cloudEndpoints) {\n return cloudEndpoints[cloudSetting];\n } else {\n throw new Error(\n `Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`,\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
2
|
+
/**
|
|
3
|
+
* Options for the byPage method
|
|
4
|
+
*/
|
|
5
|
+
export interface PageSettings {
|
|
6
|
+
/**
|
|
7
|
+
* A reference to a specific page to start iterating from.
|
|
8
|
+
*/
|
|
9
|
+
continuationToken?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* An interface that describes a page of results.
|
|
13
|
+
*/
|
|
14
|
+
export type ContinuablePage<TElement, TPage = TElement[]> = TPage & {
|
|
15
|
+
/**
|
|
16
|
+
* The token that keeps track of where to continue the iterator
|
|
17
|
+
*/
|
|
18
|
+
continuationToken?: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* An interface that allows async iterable iteration both to completion and by page.
|
|
22
|
+
*/
|
|
23
|
+
export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
|
|
24
|
+
/**
|
|
25
|
+
* The next method, part of the iteration protocol
|
|
26
|
+
*/
|
|
27
|
+
next(): Promise<IteratorResult<TElement>>;
|
|
28
|
+
/**
|
|
29
|
+
* The connection to the async iterator, part of the iteration protocol
|
|
30
|
+
*/
|
|
31
|
+
[Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
32
|
+
/**
|
|
33
|
+
* Return an AsyncIterableIterator that works a page at a time
|
|
34
|
+
*/
|
|
35
|
+
byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* An interface that describes how to communicate with the service.
|
|
39
|
+
*/
|
|
40
|
+
export interface PagedResult<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
|
|
41
|
+
/**
|
|
42
|
+
* Link to the first page of results.
|
|
43
|
+
*/
|
|
44
|
+
firstPageLink?: string;
|
|
45
|
+
/**
|
|
46
|
+
* A method that returns a page of results.
|
|
47
|
+
*/
|
|
48
|
+
getPage: (pageLink?: string) => Promise<{
|
|
49
|
+
page: TPage;
|
|
50
|
+
nextPageLink?: string;
|
|
51
|
+
} | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* a function to implement the `byPage` method on the paged async iterator.
|
|
54
|
+
*/
|
|
55
|
+
byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
|
|
56
|
+
/**
|
|
57
|
+
* A function to extract elements from a page.
|
|
58
|
+
*/
|
|
59
|
+
toElements?: (page: TPage) => TElement[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Options for the paging helper
|
|
63
|
+
*/
|
|
64
|
+
export interface BuildPagedAsyncIteratorOptions {
|
|
65
|
+
itemName?: string;
|
|
66
|
+
nextLinkName?: string;
|
|
67
|
+
nextLinkMethod?: "GET" | "POST";
|
|
68
|
+
apiVersion?: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
|
|
72
|
+
*/
|
|
73
|
+
export declare function buildPagedAsyncIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings, TResponse extends PathUncheckedResponse = PathUncheckedResponse>(client: Client, getInitialResponse: () => PromiseLike<TResponse>, processResponseBody: (result: TResponse) => PromiseLike<unknown>, expectedStatuses: string[], options?: BuildPagedAsyncIteratorOptions): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
74
|
+
//# sourceMappingURL=pagingHelpers.d.ts.map
|