@azure/arm-features 3.1.1-alpha.20250124.1 → 3.1.1-alpha.20250128.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist-esm/src → dist/browser}/featureClient.d.ts +2 -2
- package/dist/browser/featureClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/featureClient.js +19 -21
- package/dist/browser/featureClient.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/features.d.ts +3 -3
- package/dist/browser/operations/features.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/features.js +3 -3
- package/dist/browser/operations/features.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/subscriptionFeatureRegistrations.d.ts +3 -3
- package/dist/browser/operations/subscriptionFeatureRegistrations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/subscriptionFeatureRegistrations.js +3 -3
- package/dist/browser/operations/subscriptionFeatureRegistrations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/features.d.ts +1 -1
- package/dist/browser/operationsInterfaces/features.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/features.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/browser/operationsInterfaces/index.js +10 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/subscriptionFeatureRegistrations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/subscriptionFeatureRegistrations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/subscriptionFeatureRegistrations.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/featureClient.d.ts +40 -0
- package/dist/commonjs/featureClient.d.ts.map +1 -0
- package/dist/commonjs/featureClient.js +217 -0
- package/dist/commonjs/featureClient.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/models/index.d.ts +323 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +39 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +15 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +427 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +13 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +122 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/features.d.ts +76 -0
- package/dist/commonjs/operations/features.d.ts.map +1 -0
- package/dist/commonjs/operations/features.js +354 -0
- package/dist/commonjs/operations/features.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/subscriptionFeatureRegistrations.d.ts +74 -0
- package/dist/commonjs/operations/subscriptionFeatureRegistrations.d.ts.map +1 -0
- package/dist/commonjs/operations/subscriptionFeatureRegistrations.js +353 -0
- package/dist/commonjs/operations/subscriptionFeatureRegistrations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/features.d.ts +39 -0
- package/dist/commonjs/operationsInterfaces/features.d.ts.map +1 -0
- package/{dist-esm/src/operationsInterfaces/index.js → dist/commonjs/operationsInterfaces/features.js} +3 -3
- package/dist/commonjs/operationsInterfaces/features.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/subscriptionFeatureRegistrations.d.ts +38 -0
- package/dist/commonjs/operationsInterfaces/subscriptionFeatureRegistrations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/subscriptionFeatureRegistrations.js +10 -0
- package/dist/commonjs/operationsInterfaces/subscriptionFeatureRegistrations.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/esm/featureClient.d.ts +40 -0
- package/dist/esm/featureClient.d.ts.map +1 -0
- package/dist/esm/featureClient.js +213 -0
- package/dist/esm/featureClient.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/models/index.d.ts +323 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +36 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +15 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +424 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +13 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +119 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/features.d.ts +76 -0
- package/dist/esm/operations/features.d.ts.map +1 -0
- package/dist/esm/operations/features.js +350 -0
- package/dist/esm/operations/features.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/subscriptionFeatureRegistrations.d.ts +74 -0
- package/dist/esm/operations/subscriptionFeatureRegistrations.d.ts.map +1 -0
- package/dist/esm/operations/subscriptionFeatureRegistrations.js +349 -0
- package/dist/esm/operations/subscriptionFeatureRegistrations.js.map +1 -0
- package/dist/esm/operationsInterfaces/features.d.ts +39 -0
- package/dist/esm/operationsInterfaces/features.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/esm/operationsInterfaces/features.js} +2 -3
- package/dist/esm/operationsInterfaces/features.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/subscriptionFeatureRegistrations.d.ts +38 -0
- package/dist/esm/operationsInterfaces/subscriptionFeatureRegistrations.d.ts.map +1 -0
- package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/subscriptionFeatureRegistrations.js} +2 -3
- package/dist/esm/operationsInterfaces/subscriptionFeatureRegistrations.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/featureClient.d.ts +40 -0
- package/dist/react-native/featureClient.d.ts.map +1 -0
- package/dist/react-native/featureClient.js +213 -0
- package/dist/react-native/featureClient.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/models/index.d.ts +323 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +36 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +15 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +424 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +13 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +119 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/features.d.ts +76 -0
- package/dist/react-native/operations/features.d.ts.map +1 -0
- package/dist/react-native/operations/features.js +350 -0
- package/dist/react-native/operations/features.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/subscriptionFeatureRegistrations.d.ts +74 -0
- package/dist/react-native/operations/subscriptionFeatureRegistrations.d.ts.map +1 -0
- package/dist/react-native/operations/subscriptionFeatureRegistrations.js +349 -0
- package/dist/react-native/operations/subscriptionFeatureRegistrations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/features.d.ts +39 -0
- package/dist/react-native/operationsInterfaces/features.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/features.js +9 -0
- package/dist/react-native/operationsInterfaces/features.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/subscriptionFeatureRegistrations.d.ts +38 -0
- package/dist/react-native/operationsInterfaces/subscriptionFeatureRegistrations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/subscriptionFeatureRegistrations.js +9 -0
- package/dist/react-native/operationsInterfaces/subscriptionFeatureRegistrations.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +64 -34
- package/dist/index.js +0 -1555
- 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/featuresGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/featuresGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/featuresGetSample.js +0 -29
- package/dist-esm/samples-dev/featuresGetSample.js.map +0 -1
- package/dist-esm/samples-dev/featuresListAllSample.d.ts +0 -2
- package/dist-esm/samples-dev/featuresListAllSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/featuresListAllSample.js +0 -43
- package/dist-esm/samples-dev/featuresListAllSample.js.map +0 -1
- package/dist-esm/samples-dev/featuresListSample.d.ts +0 -2
- package/dist-esm/samples-dev/featuresListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/featuresListSample.js +0 -44
- package/dist-esm/samples-dev/featuresListSample.js.map +0 -1
- package/dist-esm/samples-dev/featuresRegisterSample.d.ts +0 -2
- package/dist-esm/samples-dev/featuresRegisterSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/featuresRegisterSample.js +0 -29
- package/dist-esm/samples-dev/featuresRegisterSample.js.map +0 -1
- package/dist-esm/samples-dev/featuresUnregisterSample.d.ts +0 -2
- package/dist-esm/samples-dev/featuresUnregisterSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/featuresUnregisterSample.js +0 -29
- package/dist-esm/samples-dev/featuresUnregisterSample.js.map +0 -1
- package/dist-esm/samples-dev/listOperationsSample.d.ts +0 -2
- package/dist-esm/samples-dev/listOperationsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/listOperationsSample.js +0 -43
- package/dist-esm/samples-dev/listOperationsSample.js.map +0 -1
- package/dist-esm/samples-dev/subscriptionFeatureRegistrationsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/subscriptionFeatureRegistrationsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/subscriptionFeatureRegistrationsCreateOrUpdateSample.js +0 -28
- package/dist-esm/samples-dev/subscriptionFeatureRegistrationsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/subscriptionFeatureRegistrationsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/subscriptionFeatureRegistrationsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/subscriptionFeatureRegistrationsDeleteSample.js +0 -29
- package/dist-esm/samples-dev/subscriptionFeatureRegistrationsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/subscriptionFeatureRegistrationsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/subscriptionFeatureRegistrationsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/subscriptionFeatureRegistrationsGetSample.js +0 -29
- package/dist-esm/samples-dev/subscriptionFeatureRegistrationsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListAllBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListAllBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListAllBySubscriptionSample.js +0 -43
- package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListAllBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListBySubscriptionSample.js +0 -44
- package/dist-esm/samples-dev/subscriptionFeatureRegistrationsListBySubscriptionSample.js.map +0 -1
- package/dist-esm/src/featureClient.d.ts.map +0 -1
- package/dist-esm/src/featureClient.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/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/features.d.ts.map +0 -1
- package/dist-esm/src/operations/features.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/subscriptionFeatureRegistrations.d.ts.map +0 -1
- package/dist-esm/src/operations/subscriptionFeatureRegistrations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/features.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/features.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/subscriptionFeatureRegistrations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/subscriptionFeatureRegistrations.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/features_example.spec.d.ts +0 -4
- package/dist-esm/test/features_example.spec.d.ts.map +0 -1
- package/dist-esm/test/features_example.spec.js +0 -121
- package/dist-esm/test/features_example.spec.js.map +0 -1
- package/src/featureClient.ts +0 -276
- package/src/models/index.ts +0 -379
- package/src/models/mappers.ts +0 -441
- package/src/models/parameters.ts +0 -135
- package/src/operations/features.ts +0 -426
- package/src/operations/subscriptionFeatureRegistrations.ts +0 -434
- package/src/operationsInterfaces/features.ts +0 -75
- package/src/operationsInterfaces/subscriptionFeatureRegistrations.ts +0 -73
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- package/types/arm-features.d.ts +0 -492
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/features.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/subscriptionFeatureRegistrations.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
- /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
|
@@ -0,0 +1,119 @@
|
|
|
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
|
+
import { SubscriptionFeatureRegistration as SubscriptionFeatureRegistrationMapper } from "../models/mappers.js";
|
|
9
|
+
export const accept = {
|
|
10
|
+
parameterPath: "accept",
|
|
11
|
+
mapper: {
|
|
12
|
+
defaultValue: "application/json, text/json",
|
|
13
|
+
isConstant: true,
|
|
14
|
+
serializedName: "Accept",
|
|
15
|
+
type: {
|
|
16
|
+
name: "String"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
export const $host = {
|
|
21
|
+
parameterPath: "$host",
|
|
22
|
+
mapper: {
|
|
23
|
+
serializedName: "$host",
|
|
24
|
+
required: true,
|
|
25
|
+
type: {
|
|
26
|
+
name: "String"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
skipEncoding: true
|
|
30
|
+
};
|
|
31
|
+
export const apiVersion = {
|
|
32
|
+
parameterPath: "apiVersion",
|
|
33
|
+
mapper: {
|
|
34
|
+
defaultValue: "2021-07-01",
|
|
35
|
+
isConstant: true,
|
|
36
|
+
serializedName: "api-version",
|
|
37
|
+
type: {
|
|
38
|
+
name: "String"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
export const nextLink = {
|
|
43
|
+
parameterPath: "nextLink",
|
|
44
|
+
mapper: {
|
|
45
|
+
serializedName: "nextLink",
|
|
46
|
+
required: true,
|
|
47
|
+
type: {
|
|
48
|
+
name: "String"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
skipEncoding: true
|
|
52
|
+
};
|
|
53
|
+
export const subscriptionId = {
|
|
54
|
+
parameterPath: "subscriptionId",
|
|
55
|
+
mapper: {
|
|
56
|
+
serializedName: "subscriptionId",
|
|
57
|
+
required: true,
|
|
58
|
+
type: {
|
|
59
|
+
name: "String"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
export const resourceProviderNamespace = {
|
|
64
|
+
parameterPath: "resourceProviderNamespace",
|
|
65
|
+
mapper: {
|
|
66
|
+
serializedName: "resourceProviderNamespace",
|
|
67
|
+
required: true,
|
|
68
|
+
type: {
|
|
69
|
+
name: "String"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
export const featureName = {
|
|
74
|
+
parameterPath: "featureName",
|
|
75
|
+
mapper: {
|
|
76
|
+
serializedName: "featureName",
|
|
77
|
+
required: true,
|
|
78
|
+
type: {
|
|
79
|
+
name: "String"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
export const accept1 = {
|
|
84
|
+
parameterPath: "accept",
|
|
85
|
+
mapper: {
|
|
86
|
+
defaultValue: "application/json",
|
|
87
|
+
isConstant: true,
|
|
88
|
+
serializedName: "Accept",
|
|
89
|
+
type: {
|
|
90
|
+
name: "String"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
export const providerNamespace = {
|
|
95
|
+
parameterPath: "providerNamespace",
|
|
96
|
+
mapper: {
|
|
97
|
+
serializedName: "providerNamespace",
|
|
98
|
+
required: true,
|
|
99
|
+
type: {
|
|
100
|
+
name: "String"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
export const contentType = {
|
|
105
|
+
parameterPath: ["options", "contentType"],
|
|
106
|
+
mapper: {
|
|
107
|
+
defaultValue: "application/json",
|
|
108
|
+
isConstant: true,
|
|
109
|
+
serializedName: "Content-Type",
|
|
110
|
+
type: {
|
|
111
|
+
name: "String"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
export const subscriptionFeatureRegistrationType = {
|
|
116
|
+
parameterPath: ["options", "subscriptionFeatureRegistrationType"],
|
|
117
|
+
mapper: SubscriptionFeatureRegistrationMapper
|
|
118
|
+
};
|
|
119
|
+
//# sourceMappingURL=parameters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EAAE,+BAA+B,IAAI,qCAAqC,EAAE,MAAM,sBAAsB,CAAC;AAEhH,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,6BAA6B;QAC3C,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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M,OAAO,GAAuB;IACzC,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,iBAAiB,GAA0B;IACtD,aAAa,EAAE,mBAAmB;IAClC,MAAM,EAAE;QACN,cAAc,EAAE,mBAAmB;QACnC,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,mCAAmC,GAAuB;IACrE,aAAa,EAAE,CAAC,SAAS,EAAE,qCAAqC,CAAC;IACjE,MAAM,EAAE,qCAAqC;CAC9C,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 { SubscriptionFeatureRegistration as SubscriptionFeatureRegistrationMapper } from \"../models/mappers.js\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json, text/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: \"2021-07-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 serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const resourceProviderNamespace: OperationURLParameter = {\n parameterPath: \"resourceProviderNamespace\",\n mapper: {\n serializedName: \"resourceProviderNamespace\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const featureName: OperationURLParameter = {\n parameterPath: \"featureName\",\n mapper: {\n serializedName: \"featureName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const accept1: 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 providerNamespace: OperationURLParameter = {\n parameterPath: \"providerNamespace\",\n mapper: {\n serializedName: \"providerNamespace\",\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 subscriptionFeatureRegistrationType: OperationParameter = {\n parameterPath: [\"options\", \"subscriptionFeatureRegistrationType\"],\n mapper: SubscriptionFeatureRegistrationMapper\n};\n"]}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Features } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { FeatureClient } from "../featureClient.js";
|
|
4
|
+
import { FeatureResult, FeaturesListAllOptionalParams, FeaturesListOptionalParams, FeaturesGetOptionalParams, FeaturesGetResponse, FeaturesRegisterOptionalParams, FeaturesRegisterResponse, FeaturesUnregisterOptionalParams, FeaturesUnregisterResponse } from "../models/index.js";
|
|
5
|
+
/** Class containing Features operations. */
|
|
6
|
+
export declare class FeaturesImpl implements Features {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Features class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: FeatureClient);
|
|
13
|
+
/**
|
|
14
|
+
* Gets all the preview features that are available through AFEC for the subscription.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
listAll(options?: FeaturesListAllOptionalParams): PagedAsyncIterableIterator<FeatureResult>;
|
|
18
|
+
private listAllPagingPage;
|
|
19
|
+
private listAllPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* Gets all the preview features in a provider namespace that are available through AFEC for the
|
|
22
|
+
* subscription.
|
|
23
|
+
* @param resourceProviderNamespace The namespace of the resource provider for getting features.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
list(resourceProviderNamespace: string, options?: FeaturesListOptionalParams): PagedAsyncIterableIterator<FeatureResult>;
|
|
27
|
+
private listPagingPage;
|
|
28
|
+
private listPagingAll;
|
|
29
|
+
/**
|
|
30
|
+
* Gets all the preview features that are available through AFEC for the subscription.
|
|
31
|
+
* @param options The options parameters.
|
|
32
|
+
*/
|
|
33
|
+
private _listAll;
|
|
34
|
+
/**
|
|
35
|
+
* Gets all the preview features in a provider namespace that are available through AFEC for the
|
|
36
|
+
* subscription.
|
|
37
|
+
* @param resourceProviderNamespace The namespace of the resource provider for getting features.
|
|
38
|
+
* @param options The options parameters.
|
|
39
|
+
*/
|
|
40
|
+
private _list;
|
|
41
|
+
/**
|
|
42
|
+
* Gets the preview feature with the specified name.
|
|
43
|
+
* @param resourceProviderNamespace The resource provider namespace for the feature.
|
|
44
|
+
* @param featureName The name of the feature to get.
|
|
45
|
+
* @param options The options parameters.
|
|
46
|
+
*/
|
|
47
|
+
get(resourceProviderNamespace: string, featureName: string, options?: FeaturesGetOptionalParams): Promise<FeaturesGetResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Registers the preview feature for the subscription.
|
|
50
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
51
|
+
* @param featureName The name of the feature to register.
|
|
52
|
+
* @param options The options parameters.
|
|
53
|
+
*/
|
|
54
|
+
register(resourceProviderNamespace: string, featureName: string, options?: FeaturesRegisterOptionalParams): Promise<FeaturesRegisterResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* Unregisters the preview feature for the subscription.
|
|
57
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
58
|
+
* @param featureName The name of the feature to unregister.
|
|
59
|
+
* @param options The options parameters.
|
|
60
|
+
*/
|
|
61
|
+
unregister(resourceProviderNamespace: string, featureName: string, options?: FeaturesUnregisterOptionalParams): Promise<FeaturesUnregisterResponse>;
|
|
62
|
+
/**
|
|
63
|
+
* ListAllNext
|
|
64
|
+
* @param nextLink The nextLink from the previous successful call to the ListAll method.
|
|
65
|
+
* @param options The options parameters.
|
|
66
|
+
*/
|
|
67
|
+
private _listAllNext;
|
|
68
|
+
/**
|
|
69
|
+
* ListNext
|
|
70
|
+
* @param resourceProviderNamespace The namespace of the resource provider for getting features.
|
|
71
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
72
|
+
* @param options The options parameters.
|
|
73
|
+
*/
|
|
74
|
+
private _listNext;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=features.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../../src/operations/features.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAA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G;IACH,OAAO,CAAC,YAAY;IAUpB;;;;;OAKG;IACH,OAAO,CAAC,SAAS;CAUlB"}
|
|
@@ -0,0 +1,350 @@
|
|
|
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
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers.js";
|
|
12
|
+
import * as Parameters from "../models/parameters.js";
|
|
13
|
+
/// <reference lib="esnext.asynciterable" />
|
|
14
|
+
/** Class containing Features operations. */
|
|
15
|
+
export class FeaturesImpl {
|
|
16
|
+
/**
|
|
17
|
+
* Initialize a new instance of the class Features class.
|
|
18
|
+
* @param client Reference to the service client
|
|
19
|
+
*/
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Gets all the preview features that are available through AFEC for the subscription.
|
|
25
|
+
* @param options The options parameters.
|
|
26
|
+
*/
|
|
27
|
+
listAll(options) {
|
|
28
|
+
const iter = this.listAllPagingAll(options);
|
|
29
|
+
return {
|
|
30
|
+
next() {
|
|
31
|
+
return iter.next();
|
|
32
|
+
},
|
|
33
|
+
[Symbol.asyncIterator]() {
|
|
34
|
+
return this;
|
|
35
|
+
},
|
|
36
|
+
byPage: (settings) => {
|
|
37
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
38
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
|
+
}
|
|
40
|
+
return this.listAllPagingPage(options, settings);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
listAllPagingPage(options, settings) {
|
|
45
|
+
return __asyncGenerator(this, arguments, function* listAllPagingPage_1() {
|
|
46
|
+
let result;
|
|
47
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
48
|
+
if (!continuationToken) {
|
|
49
|
+
result = yield __await(this._listAll(options));
|
|
50
|
+
let page = result.value || [];
|
|
51
|
+
continuationToken = result.nextLink;
|
|
52
|
+
setContinuationToken(page, continuationToken);
|
|
53
|
+
yield yield __await(page);
|
|
54
|
+
}
|
|
55
|
+
while (continuationToken) {
|
|
56
|
+
result = yield __await(this._listAllNext(continuationToken, options));
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
let page = result.value || [];
|
|
59
|
+
setContinuationToken(page, continuationToken);
|
|
60
|
+
yield yield __await(page);
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
listAllPagingAll(options) {
|
|
65
|
+
return __asyncGenerator(this, arguments, function* listAllPagingAll_1() {
|
|
66
|
+
var _a, e_1, _b, _c;
|
|
67
|
+
try {
|
|
68
|
+
for (var _d = true, _e = __asyncValues(this.listAllPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
69
|
+
_c = _f.value;
|
|
70
|
+
_d = false;
|
|
71
|
+
const page = _c;
|
|
72
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
76
|
+
finally {
|
|
77
|
+
try {
|
|
78
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
79
|
+
}
|
|
80
|
+
finally { if (e_1) throw e_1.error; }
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Gets all the preview features in a provider namespace that are available through AFEC for the
|
|
86
|
+
* subscription.
|
|
87
|
+
* @param resourceProviderNamespace The namespace of the resource provider for getting features.
|
|
88
|
+
* @param options The options parameters.
|
|
89
|
+
*/
|
|
90
|
+
list(resourceProviderNamespace, options) {
|
|
91
|
+
const iter = this.listPagingAll(resourceProviderNamespace, options);
|
|
92
|
+
return {
|
|
93
|
+
next() {
|
|
94
|
+
return iter.next();
|
|
95
|
+
},
|
|
96
|
+
[Symbol.asyncIterator]() {
|
|
97
|
+
return this;
|
|
98
|
+
},
|
|
99
|
+
byPage: (settings) => {
|
|
100
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
101
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
102
|
+
}
|
|
103
|
+
return this.listPagingPage(resourceProviderNamespace, options, settings);
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
listPagingPage(resourceProviderNamespace, options, settings) {
|
|
108
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
109
|
+
let result;
|
|
110
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
111
|
+
if (!continuationToken) {
|
|
112
|
+
result = yield __await(this._list(resourceProviderNamespace, options));
|
|
113
|
+
let page = result.value || [];
|
|
114
|
+
continuationToken = result.nextLink;
|
|
115
|
+
setContinuationToken(page, continuationToken);
|
|
116
|
+
yield yield __await(page);
|
|
117
|
+
}
|
|
118
|
+
while (continuationToken) {
|
|
119
|
+
result = yield __await(this._listNext(resourceProviderNamespace, continuationToken, options));
|
|
120
|
+
continuationToken = result.nextLink;
|
|
121
|
+
let page = result.value || [];
|
|
122
|
+
setContinuationToken(page, continuationToken);
|
|
123
|
+
yield yield __await(page);
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
listPagingAll(resourceProviderNamespace, options) {
|
|
128
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
129
|
+
var _a, e_2, _b, _c;
|
|
130
|
+
try {
|
|
131
|
+
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceProviderNamespace, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
132
|
+
_c = _f.value;
|
|
133
|
+
_d = false;
|
|
134
|
+
const page = _c;
|
|
135
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
139
|
+
finally {
|
|
140
|
+
try {
|
|
141
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
142
|
+
}
|
|
143
|
+
finally { if (e_2) throw e_2.error; }
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Gets all the preview features that are available through AFEC for the subscription.
|
|
149
|
+
* @param options The options parameters.
|
|
150
|
+
*/
|
|
151
|
+
_listAll(options) {
|
|
152
|
+
return this.client.sendOperationRequest({ options }, listAllOperationSpec);
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Gets all the preview features in a provider namespace that are available through AFEC for the
|
|
156
|
+
* subscription.
|
|
157
|
+
* @param resourceProviderNamespace The namespace of the resource provider for getting features.
|
|
158
|
+
* @param options The options parameters.
|
|
159
|
+
*/
|
|
160
|
+
_list(resourceProviderNamespace, options) {
|
|
161
|
+
return this.client.sendOperationRequest({ resourceProviderNamespace, options }, listOperationSpec);
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Gets the preview feature with the specified name.
|
|
165
|
+
* @param resourceProviderNamespace The resource provider namespace for the feature.
|
|
166
|
+
* @param featureName The name of the feature to get.
|
|
167
|
+
* @param options The options parameters.
|
|
168
|
+
*/
|
|
169
|
+
get(resourceProviderNamespace, featureName, options) {
|
|
170
|
+
return this.client.sendOperationRequest({ resourceProviderNamespace, featureName, options }, getOperationSpec);
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Registers the preview feature for the subscription.
|
|
174
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
175
|
+
* @param featureName The name of the feature to register.
|
|
176
|
+
* @param options The options parameters.
|
|
177
|
+
*/
|
|
178
|
+
register(resourceProviderNamespace, featureName, options) {
|
|
179
|
+
return this.client.sendOperationRequest({ resourceProviderNamespace, featureName, options }, registerOperationSpec);
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Unregisters the preview feature for the subscription.
|
|
183
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
184
|
+
* @param featureName The name of the feature to unregister.
|
|
185
|
+
* @param options The options parameters.
|
|
186
|
+
*/
|
|
187
|
+
unregister(resourceProviderNamespace, featureName, options) {
|
|
188
|
+
return this.client.sendOperationRequest({ resourceProviderNamespace, featureName, options }, unregisterOperationSpec);
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* ListAllNext
|
|
192
|
+
* @param nextLink The nextLink from the previous successful call to the ListAll method.
|
|
193
|
+
* @param options The options parameters.
|
|
194
|
+
*/
|
|
195
|
+
_listAllNext(nextLink, options) {
|
|
196
|
+
return this.client.sendOperationRequest({ nextLink, options }, listAllNextOperationSpec);
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* ListNext
|
|
200
|
+
* @param resourceProviderNamespace The namespace of the resource provider for getting features.
|
|
201
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
202
|
+
* @param options The options parameters.
|
|
203
|
+
*/
|
|
204
|
+
_listNext(resourceProviderNamespace, nextLink, options) {
|
|
205
|
+
return this.client.sendOperationRequest({ resourceProviderNamespace, nextLink, options }, listNextOperationSpec);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
// Operation Specifications
|
|
209
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
210
|
+
const listAllOperationSpec = {
|
|
211
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/features",
|
|
212
|
+
httpMethod: "GET",
|
|
213
|
+
responses: {
|
|
214
|
+
200: {
|
|
215
|
+
bodyMapper: Mappers.FeatureOperationsListResult
|
|
216
|
+
},
|
|
217
|
+
default: {
|
|
218
|
+
bodyMapper: Mappers.ErrorResponse
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
queryParameters: [Parameters.apiVersion],
|
|
222
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
223
|
+
headerParameters: [Parameters.accept],
|
|
224
|
+
serializer
|
|
225
|
+
};
|
|
226
|
+
const listOperationSpec = {
|
|
227
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features",
|
|
228
|
+
httpMethod: "GET",
|
|
229
|
+
responses: {
|
|
230
|
+
200: {
|
|
231
|
+
bodyMapper: Mappers.FeatureOperationsListResult
|
|
232
|
+
},
|
|
233
|
+
default: {
|
|
234
|
+
bodyMapper: Mappers.ErrorResponse
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
queryParameters: [Parameters.apiVersion],
|
|
238
|
+
urlParameters: [
|
|
239
|
+
Parameters.$host,
|
|
240
|
+
Parameters.subscriptionId,
|
|
241
|
+
Parameters.resourceProviderNamespace
|
|
242
|
+
],
|
|
243
|
+
headerParameters: [Parameters.accept],
|
|
244
|
+
serializer
|
|
245
|
+
};
|
|
246
|
+
const getOperationSpec = {
|
|
247
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}",
|
|
248
|
+
httpMethod: "GET",
|
|
249
|
+
responses: {
|
|
250
|
+
200: {
|
|
251
|
+
bodyMapper: Mappers.FeatureResult
|
|
252
|
+
},
|
|
253
|
+
default: {
|
|
254
|
+
bodyMapper: Mappers.ErrorResponse
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
queryParameters: [Parameters.apiVersion],
|
|
258
|
+
urlParameters: [
|
|
259
|
+
Parameters.$host,
|
|
260
|
+
Parameters.subscriptionId,
|
|
261
|
+
Parameters.resourceProviderNamespace,
|
|
262
|
+
Parameters.featureName
|
|
263
|
+
],
|
|
264
|
+
headerParameters: [Parameters.accept],
|
|
265
|
+
serializer
|
|
266
|
+
};
|
|
267
|
+
const registerOperationSpec = {
|
|
268
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}/register",
|
|
269
|
+
httpMethod: "POST",
|
|
270
|
+
responses: {
|
|
271
|
+
200: {
|
|
272
|
+
bodyMapper: Mappers.FeatureResult
|
|
273
|
+
},
|
|
274
|
+
default: {
|
|
275
|
+
bodyMapper: Mappers.ErrorResponse
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
queryParameters: [Parameters.apiVersion],
|
|
279
|
+
urlParameters: [
|
|
280
|
+
Parameters.$host,
|
|
281
|
+
Parameters.subscriptionId,
|
|
282
|
+
Parameters.resourceProviderNamespace,
|
|
283
|
+
Parameters.featureName
|
|
284
|
+
],
|
|
285
|
+
headerParameters: [Parameters.accept],
|
|
286
|
+
serializer
|
|
287
|
+
};
|
|
288
|
+
const unregisterOperationSpec = {
|
|
289
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}/unregister",
|
|
290
|
+
httpMethod: "POST",
|
|
291
|
+
responses: {
|
|
292
|
+
200: {
|
|
293
|
+
bodyMapper: Mappers.FeatureResult
|
|
294
|
+
},
|
|
295
|
+
default: {
|
|
296
|
+
bodyMapper: Mappers.ErrorResponse
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
queryParameters: [Parameters.apiVersion],
|
|
300
|
+
urlParameters: [
|
|
301
|
+
Parameters.$host,
|
|
302
|
+
Parameters.subscriptionId,
|
|
303
|
+
Parameters.resourceProviderNamespace,
|
|
304
|
+
Parameters.featureName
|
|
305
|
+
],
|
|
306
|
+
headerParameters: [Parameters.accept],
|
|
307
|
+
serializer
|
|
308
|
+
};
|
|
309
|
+
const listAllNextOperationSpec = {
|
|
310
|
+
path: "{nextLink}",
|
|
311
|
+
httpMethod: "GET",
|
|
312
|
+
responses: {
|
|
313
|
+
200: {
|
|
314
|
+
bodyMapper: Mappers.FeatureOperationsListResult
|
|
315
|
+
},
|
|
316
|
+
default: {
|
|
317
|
+
bodyMapper: Mappers.ErrorResponse
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
queryParameters: [Parameters.apiVersion],
|
|
321
|
+
urlParameters: [
|
|
322
|
+
Parameters.$host,
|
|
323
|
+
Parameters.nextLink,
|
|
324
|
+
Parameters.subscriptionId
|
|
325
|
+
],
|
|
326
|
+
headerParameters: [Parameters.accept],
|
|
327
|
+
serializer
|
|
328
|
+
};
|
|
329
|
+
const listNextOperationSpec = {
|
|
330
|
+
path: "{nextLink}",
|
|
331
|
+
httpMethod: "GET",
|
|
332
|
+
responses: {
|
|
333
|
+
200: {
|
|
334
|
+
bodyMapper: Mappers.FeatureOperationsListResult
|
|
335
|
+
},
|
|
336
|
+
default: {
|
|
337
|
+
bodyMapper: Mappers.ErrorResponse
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
queryParameters: [Parameters.apiVersion],
|
|
341
|
+
urlParameters: [
|
|
342
|
+
Parameters.$host,
|
|
343
|
+
Parameters.nextLink,
|
|
344
|
+
Parameters.subscriptionId,
|
|
345
|
+
Parameters.resourceProviderNamespace
|
|
346
|
+
],
|
|
347
|
+
headerParameters: [Parameters.accept],
|
|
348
|
+
serializer
|
|
349
|
+
};
|
|
350
|
+
//# sourceMappingURL=features.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features.js","sourceRoot":"","sources":["../../../src/operations/features.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,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AE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2BAA2B;SAChD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,yBAAyB;KACrC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Features } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { FeatureClient } from \"../featureClient.js\";\nimport {\n FeatureResult,\n FeaturesListAllNextOptionalParams,\n FeaturesListAllOptionalParams,\n FeaturesListAllResponse,\n FeaturesListNextOptionalParams,\n FeaturesListOptionalParams,\n FeaturesListResponse,\n FeaturesGetOptionalParams,\n FeaturesGetResponse,\n FeaturesRegisterOptionalParams,\n FeaturesRegisterResponse,\n FeaturesUnregisterOptionalParams,\n FeaturesUnregisterResponse,\n FeaturesListAllNextResponse,\n FeaturesListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Features operations. */\nexport class FeaturesImpl implements Features {\n private readonly client: FeatureClient;\n\n /**\n * Initialize a new instance of the class Features class.\n * @param client Reference to the service client\n */\n constructor(client: FeatureClient) {\n this.client = client;\n }\n\n /**\n * Gets all the preview features that are available through AFEC for the subscription.\n * @param options The options parameters.\n */\n public listAll(\n options?: FeaturesListAllOptionalParams\n ): PagedAsyncIterableIterator<FeatureResult> {\n const iter = this.listAllPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listAllPagingPage(options, settings);\n }\n };\n }\n\n private async *listAllPagingPage(\n options?: FeaturesListAllOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<FeatureResult[]> {\n let result: FeaturesListAllResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAll(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listAllNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listAllPagingAll(\n options?: FeaturesListAllOptionalParams\n ): AsyncIterableIterator<FeatureResult> {\n for await (const page of this.listAllPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets all the preview features in a provider namespace that are available through AFEC for the\n * subscription.\n * @param resourceProviderNamespace The namespace of the resource provider for getting features.\n * @param options The options parameters.\n */\n public list(\n resourceProviderNamespace: string,\n options?: FeaturesListOptionalParams\n ): PagedAsyncIterableIterator<FeatureResult> {\n const iter = this.listPagingAll(resourceProviderNamespace, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceProviderNamespace,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceProviderNamespace: string,\n options?: FeaturesListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<FeatureResult[]> {\n let result: FeaturesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceProviderNamespace, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceProviderNamespace,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceProviderNamespace: string,\n options?: FeaturesListOptionalParams\n ): AsyncIterableIterator<FeatureResult> {\n for await (const page of this.listPagingPage(\n resourceProviderNamespace,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all the preview features that are available through AFEC for the subscription.\n * @param options The options parameters.\n */\n private _listAll(\n options?: FeaturesListAllOptionalParams\n ): Promise<FeaturesListAllResponse> {\n return this.client.sendOperationRequest({ options }, listAllOperationSpec);\n }\n\n /**\n * Gets all the preview features in a provider namespace that are available through AFEC for the\n * subscription.\n * @param resourceProviderNamespace The namespace of the resource provider for getting features.\n * @param options The options parameters.\n */\n private _list(\n resourceProviderNamespace: string,\n options?: FeaturesListOptionalParams\n ): Promise<FeaturesListResponse> {\n return this.client.sendOperationRequest(\n { resourceProviderNamespace, options },\n listOperationSpec\n );\n }\n\n /**\n * Gets the preview feature with the specified name.\n * @param resourceProviderNamespace The resource provider namespace for the feature.\n * @param featureName The name of the feature to get.\n * @param options The options parameters.\n */\n get(\n resourceProviderNamespace: string,\n featureName: string,\n options?: FeaturesGetOptionalParams\n ): Promise<FeaturesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceProviderNamespace, featureName, options },\n getOperationSpec\n );\n }\n\n /**\n * Registers the preview feature for the subscription.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param featureName The name of the feature to register.\n * @param options The options parameters.\n */\n register(\n resourceProviderNamespace: string,\n featureName: string,\n options?: FeaturesRegisterOptionalParams\n ): Promise<FeaturesRegisterResponse> {\n return this.client.sendOperationRequest(\n { resourceProviderNamespace, featureName, options },\n registerOperationSpec\n );\n }\n\n /**\n * Unregisters the preview feature for the subscription.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param featureName The name of the feature to unregister.\n * @param options The options parameters.\n */\n unregister(\n resourceProviderNamespace: string,\n featureName: string,\n options?: FeaturesUnregisterOptionalParams\n ): Promise<FeaturesUnregisterResponse> {\n return this.client.sendOperationRequest(\n { resourceProviderNamespace, featureName, options },\n unregisterOperationSpec\n );\n }\n\n /**\n * ListAllNext\n * @param nextLink The nextLink from the previous successful call to the ListAll method.\n * @param options The options parameters.\n */\n private _listAllNext(\n nextLink: string,\n options?: FeaturesListAllNextOptionalParams\n ): Promise<FeaturesListAllNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listAllNextOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceProviderNamespace The namespace of the resource provider for getting features.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceProviderNamespace: string,\n nextLink: string,\n options?: FeaturesListNextOptionalParams\n ): Promise<FeaturesListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceProviderNamespace, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listAllOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Features/features\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FeatureOperationsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FeatureOperationsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceProviderNamespace\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FeatureResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceProviderNamespace,\n Parameters.featureName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst registerOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}/register\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.FeatureResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceProviderNamespace,\n Parameters.featureName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst unregisterOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}/unregister\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.FeatureResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceProviderNamespace,\n Parameters.featureName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listAllNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FeatureOperationsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FeatureOperationsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceProviderNamespace\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,eAAe,CAAC;AAC9B,cAAc,uCAAuC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
export * from "./features.js";
|
|
9
|
+
export * from "./subscriptionFeatureRegistrations.js";
|
|
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,eAAe,CAAC;AAC9B,cAAc,uCAAuC,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 \"./features.js\";\nexport * from \"./subscriptionFeatureRegistrations.js\";\n"]}
|