@azure/arm-features 3.1.1-alpha.20250123.1 → 3.1.1-alpha.20250127.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{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 -31
- 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 -45
- 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 -46
- 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 -31
- 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 -31
- 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 -45
- 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 -37
- 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 -31
- 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 -31
- 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 -45
- 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 -46
- 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
|
@@ -1,434 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
-
import { SubscriptionFeatureRegistrations } from "../operationsInterfaces";
|
|
12
|
-
import * as coreClient from "@azure/core-client";
|
|
13
|
-
import * as Mappers from "../models/mappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { FeatureClient } from "../featureClient";
|
|
16
|
-
import {
|
|
17
|
-
SubscriptionFeatureRegistration,
|
|
18
|
-
SubscriptionFeatureRegistrationsListBySubscriptionNextOptionalParams,
|
|
19
|
-
SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams,
|
|
20
|
-
SubscriptionFeatureRegistrationsListBySubscriptionResponse,
|
|
21
|
-
SubscriptionFeatureRegistrationsListAllBySubscriptionNextOptionalParams,
|
|
22
|
-
SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams,
|
|
23
|
-
SubscriptionFeatureRegistrationsListAllBySubscriptionResponse,
|
|
24
|
-
SubscriptionFeatureRegistrationsGetOptionalParams,
|
|
25
|
-
SubscriptionFeatureRegistrationsGetResponse,
|
|
26
|
-
SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams,
|
|
27
|
-
SubscriptionFeatureRegistrationsCreateOrUpdateResponse,
|
|
28
|
-
SubscriptionFeatureRegistrationsDeleteOptionalParams,
|
|
29
|
-
SubscriptionFeatureRegistrationsListBySubscriptionNextResponse,
|
|
30
|
-
SubscriptionFeatureRegistrationsListAllBySubscriptionNextResponse
|
|
31
|
-
} from "../models";
|
|
32
|
-
|
|
33
|
-
/// <reference lib="esnext.asynciterable" />
|
|
34
|
-
/** Class containing SubscriptionFeatureRegistrations operations. */
|
|
35
|
-
export class SubscriptionFeatureRegistrationsImpl
|
|
36
|
-
implements SubscriptionFeatureRegistrations {
|
|
37
|
-
private readonly client: FeatureClient;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Initialize a new instance of the class SubscriptionFeatureRegistrations class.
|
|
41
|
-
* @param client Reference to the service client
|
|
42
|
-
*/
|
|
43
|
-
constructor(client: FeatureClient) {
|
|
44
|
-
this.client = client;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Returns subscription feature registrations for given subscription and provider namespace.
|
|
49
|
-
* @param providerNamespace The provider namespace.
|
|
50
|
-
* @param options The options parameters.
|
|
51
|
-
*/
|
|
52
|
-
public listBySubscription(
|
|
53
|
-
providerNamespace: string,
|
|
54
|
-
options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams
|
|
55
|
-
): PagedAsyncIterableIterator<SubscriptionFeatureRegistration> {
|
|
56
|
-
const iter = this.listBySubscriptionPagingAll(providerNamespace, options);
|
|
57
|
-
return {
|
|
58
|
-
next() {
|
|
59
|
-
return iter.next();
|
|
60
|
-
},
|
|
61
|
-
[Symbol.asyncIterator]() {
|
|
62
|
-
return this;
|
|
63
|
-
},
|
|
64
|
-
byPage: (settings?: PageSettings) => {
|
|
65
|
-
if (settings?.maxPageSize) {
|
|
66
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
67
|
-
}
|
|
68
|
-
return this.listBySubscriptionPagingPage(
|
|
69
|
-
providerNamespace,
|
|
70
|
-
options,
|
|
71
|
-
settings
|
|
72
|
-
);
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
private async *listBySubscriptionPagingPage(
|
|
78
|
-
providerNamespace: string,
|
|
79
|
-
options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams,
|
|
80
|
-
settings?: PageSettings
|
|
81
|
-
): AsyncIterableIterator<SubscriptionFeatureRegistration[]> {
|
|
82
|
-
let result: SubscriptionFeatureRegistrationsListBySubscriptionResponse;
|
|
83
|
-
let continuationToken = settings?.continuationToken;
|
|
84
|
-
if (!continuationToken) {
|
|
85
|
-
result = await this._listBySubscription(providerNamespace, options);
|
|
86
|
-
let page = result.value || [];
|
|
87
|
-
continuationToken = result.nextLink;
|
|
88
|
-
setContinuationToken(page, continuationToken);
|
|
89
|
-
yield page;
|
|
90
|
-
}
|
|
91
|
-
while (continuationToken) {
|
|
92
|
-
result = await this._listBySubscriptionNext(
|
|
93
|
-
providerNamespace,
|
|
94
|
-
continuationToken,
|
|
95
|
-
options
|
|
96
|
-
);
|
|
97
|
-
continuationToken = result.nextLink;
|
|
98
|
-
let page = result.value || [];
|
|
99
|
-
setContinuationToken(page, continuationToken);
|
|
100
|
-
yield page;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
private async *listBySubscriptionPagingAll(
|
|
105
|
-
providerNamespace: string,
|
|
106
|
-
options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams
|
|
107
|
-
): AsyncIterableIterator<SubscriptionFeatureRegistration> {
|
|
108
|
-
for await (const page of this.listBySubscriptionPagingPage(
|
|
109
|
-
providerNamespace,
|
|
110
|
-
options
|
|
111
|
-
)) {
|
|
112
|
-
yield* page;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Returns subscription feature registrations for given subscription.
|
|
118
|
-
* @param options The options parameters.
|
|
119
|
-
*/
|
|
120
|
-
public listAllBySubscription(
|
|
121
|
-
options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams
|
|
122
|
-
): PagedAsyncIterableIterator<SubscriptionFeatureRegistration> {
|
|
123
|
-
const iter = this.listAllBySubscriptionPagingAll(options);
|
|
124
|
-
return {
|
|
125
|
-
next() {
|
|
126
|
-
return iter.next();
|
|
127
|
-
},
|
|
128
|
-
[Symbol.asyncIterator]() {
|
|
129
|
-
return this;
|
|
130
|
-
},
|
|
131
|
-
byPage: (settings?: PageSettings) => {
|
|
132
|
-
if (settings?.maxPageSize) {
|
|
133
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
134
|
-
}
|
|
135
|
-
return this.listAllBySubscriptionPagingPage(options, settings);
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
private async *listAllBySubscriptionPagingPage(
|
|
141
|
-
options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams,
|
|
142
|
-
settings?: PageSettings
|
|
143
|
-
): AsyncIterableIterator<SubscriptionFeatureRegistration[]> {
|
|
144
|
-
let result: SubscriptionFeatureRegistrationsListAllBySubscriptionResponse;
|
|
145
|
-
let continuationToken = settings?.continuationToken;
|
|
146
|
-
if (!continuationToken) {
|
|
147
|
-
result = await this._listAllBySubscription(options);
|
|
148
|
-
let page = result.value || [];
|
|
149
|
-
continuationToken = result.nextLink;
|
|
150
|
-
setContinuationToken(page, continuationToken);
|
|
151
|
-
yield page;
|
|
152
|
-
}
|
|
153
|
-
while (continuationToken) {
|
|
154
|
-
result = await this._listAllBySubscriptionNext(
|
|
155
|
-
continuationToken,
|
|
156
|
-
options
|
|
157
|
-
);
|
|
158
|
-
continuationToken = result.nextLink;
|
|
159
|
-
let page = result.value || [];
|
|
160
|
-
setContinuationToken(page, continuationToken);
|
|
161
|
-
yield page;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
private async *listAllBySubscriptionPagingAll(
|
|
166
|
-
options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams
|
|
167
|
-
): AsyncIterableIterator<SubscriptionFeatureRegistration> {
|
|
168
|
-
for await (const page of this.listAllBySubscriptionPagingPage(options)) {
|
|
169
|
-
yield* page;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Returns a feature registration
|
|
175
|
-
* @param providerNamespace The provider namespace.
|
|
176
|
-
* @param featureName The feature name.
|
|
177
|
-
* @param options The options parameters.
|
|
178
|
-
*/
|
|
179
|
-
get(
|
|
180
|
-
providerNamespace: string,
|
|
181
|
-
featureName: string,
|
|
182
|
-
options?: SubscriptionFeatureRegistrationsGetOptionalParams
|
|
183
|
-
): Promise<SubscriptionFeatureRegistrationsGetResponse> {
|
|
184
|
-
return this.client.sendOperationRequest(
|
|
185
|
-
{ providerNamespace, featureName, options },
|
|
186
|
-
getOperationSpec
|
|
187
|
-
);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* Create or update a feature registration.
|
|
192
|
-
* @param providerNamespace The provider namespace.
|
|
193
|
-
* @param featureName The feature name.
|
|
194
|
-
* @param options The options parameters.
|
|
195
|
-
*/
|
|
196
|
-
createOrUpdate(
|
|
197
|
-
providerNamespace: string,
|
|
198
|
-
featureName: string,
|
|
199
|
-
options?: SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams
|
|
200
|
-
): Promise<SubscriptionFeatureRegistrationsCreateOrUpdateResponse> {
|
|
201
|
-
return this.client.sendOperationRequest(
|
|
202
|
-
{ providerNamespace, featureName, options },
|
|
203
|
-
createOrUpdateOperationSpec
|
|
204
|
-
);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Deletes a feature registration
|
|
209
|
-
* @param providerNamespace The provider namespace.
|
|
210
|
-
* @param featureName The feature name.
|
|
211
|
-
* @param options The options parameters.
|
|
212
|
-
*/
|
|
213
|
-
delete(
|
|
214
|
-
providerNamespace: string,
|
|
215
|
-
featureName: string,
|
|
216
|
-
options?: SubscriptionFeatureRegistrationsDeleteOptionalParams
|
|
217
|
-
): Promise<void> {
|
|
218
|
-
return this.client.sendOperationRequest(
|
|
219
|
-
{ providerNamespace, featureName, options },
|
|
220
|
-
deleteOperationSpec
|
|
221
|
-
);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* Returns subscription feature registrations for given subscription and provider namespace.
|
|
226
|
-
* @param providerNamespace The provider namespace.
|
|
227
|
-
* @param options The options parameters.
|
|
228
|
-
*/
|
|
229
|
-
private _listBySubscription(
|
|
230
|
-
providerNamespace: string,
|
|
231
|
-
options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams
|
|
232
|
-
): Promise<SubscriptionFeatureRegistrationsListBySubscriptionResponse> {
|
|
233
|
-
return this.client.sendOperationRequest(
|
|
234
|
-
{ providerNamespace, options },
|
|
235
|
-
listBySubscriptionOperationSpec
|
|
236
|
-
);
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* Returns subscription feature registrations for given subscription.
|
|
241
|
-
* @param options The options parameters.
|
|
242
|
-
*/
|
|
243
|
-
private _listAllBySubscription(
|
|
244
|
-
options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams
|
|
245
|
-
): Promise<SubscriptionFeatureRegistrationsListAllBySubscriptionResponse> {
|
|
246
|
-
return this.client.sendOperationRequest(
|
|
247
|
-
{ options },
|
|
248
|
-
listAllBySubscriptionOperationSpec
|
|
249
|
-
);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* ListBySubscriptionNext
|
|
254
|
-
* @param providerNamespace The provider namespace.
|
|
255
|
-
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
256
|
-
* @param options The options parameters.
|
|
257
|
-
*/
|
|
258
|
-
private _listBySubscriptionNext(
|
|
259
|
-
providerNamespace: string,
|
|
260
|
-
nextLink: string,
|
|
261
|
-
options?: SubscriptionFeatureRegistrationsListBySubscriptionNextOptionalParams
|
|
262
|
-
): Promise<SubscriptionFeatureRegistrationsListBySubscriptionNextResponse> {
|
|
263
|
-
return this.client.sendOperationRequest(
|
|
264
|
-
{ providerNamespace, nextLink, options },
|
|
265
|
-
listBySubscriptionNextOperationSpec
|
|
266
|
-
);
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* ListAllBySubscriptionNext
|
|
271
|
-
* @param nextLink The nextLink from the previous successful call to the ListAllBySubscription method.
|
|
272
|
-
* @param options The options parameters.
|
|
273
|
-
*/
|
|
274
|
-
private _listAllBySubscriptionNext(
|
|
275
|
-
nextLink: string,
|
|
276
|
-
options?: SubscriptionFeatureRegistrationsListAllBySubscriptionNextOptionalParams
|
|
277
|
-
): Promise<
|
|
278
|
-
SubscriptionFeatureRegistrationsListAllBySubscriptionNextResponse
|
|
279
|
-
> {
|
|
280
|
-
return this.client.sendOperationRequest(
|
|
281
|
-
{ nextLink, options },
|
|
282
|
-
listAllBySubscriptionNextOperationSpec
|
|
283
|
-
);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
// Operation Specifications
|
|
287
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
288
|
-
|
|
289
|
-
const getOperationSpec: coreClient.OperationSpec = {
|
|
290
|
-
path:
|
|
291
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}",
|
|
292
|
-
httpMethod: "GET",
|
|
293
|
-
responses: {
|
|
294
|
-
200: {
|
|
295
|
-
bodyMapper: Mappers.SubscriptionFeatureRegistration
|
|
296
|
-
},
|
|
297
|
-
default: {
|
|
298
|
-
bodyMapper: Mappers.ErrorResponse
|
|
299
|
-
}
|
|
300
|
-
},
|
|
301
|
-
queryParameters: [Parameters.apiVersion],
|
|
302
|
-
urlParameters: [
|
|
303
|
-
Parameters.$host,
|
|
304
|
-
Parameters.subscriptionId,
|
|
305
|
-
Parameters.featureName,
|
|
306
|
-
Parameters.providerNamespace
|
|
307
|
-
],
|
|
308
|
-
headerParameters: [Parameters.accept1],
|
|
309
|
-
serializer
|
|
310
|
-
};
|
|
311
|
-
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
312
|
-
path:
|
|
313
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}",
|
|
314
|
-
httpMethod: "PUT",
|
|
315
|
-
responses: {
|
|
316
|
-
200: {
|
|
317
|
-
bodyMapper: Mappers.SubscriptionFeatureRegistration
|
|
318
|
-
},
|
|
319
|
-
default: {
|
|
320
|
-
bodyMapper: Mappers.ErrorResponse
|
|
321
|
-
}
|
|
322
|
-
},
|
|
323
|
-
requestBody: Parameters.subscriptionFeatureRegistrationType,
|
|
324
|
-
queryParameters: [Parameters.apiVersion],
|
|
325
|
-
urlParameters: [
|
|
326
|
-
Parameters.$host,
|
|
327
|
-
Parameters.subscriptionId,
|
|
328
|
-
Parameters.featureName,
|
|
329
|
-
Parameters.providerNamespace
|
|
330
|
-
],
|
|
331
|
-
headerParameters: [Parameters.accept1, Parameters.contentType],
|
|
332
|
-
mediaType: "json",
|
|
333
|
-
serializer
|
|
334
|
-
};
|
|
335
|
-
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
336
|
-
path:
|
|
337
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}",
|
|
338
|
-
httpMethod: "DELETE",
|
|
339
|
-
responses: {
|
|
340
|
-
200: {},
|
|
341
|
-
204: {},
|
|
342
|
-
default: {
|
|
343
|
-
bodyMapper: Mappers.ErrorResponse
|
|
344
|
-
}
|
|
345
|
-
},
|
|
346
|
-
queryParameters: [Parameters.apiVersion],
|
|
347
|
-
urlParameters: [
|
|
348
|
-
Parameters.$host,
|
|
349
|
-
Parameters.subscriptionId,
|
|
350
|
-
Parameters.featureName,
|
|
351
|
-
Parameters.providerNamespace
|
|
352
|
-
],
|
|
353
|
-
headerParameters: [Parameters.accept1],
|
|
354
|
-
serializer
|
|
355
|
-
};
|
|
356
|
-
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
357
|
-
path:
|
|
358
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations",
|
|
359
|
-
httpMethod: "GET",
|
|
360
|
-
responses: {
|
|
361
|
-
200: {
|
|
362
|
-
bodyMapper: Mappers.SubscriptionFeatureRegistrationList
|
|
363
|
-
},
|
|
364
|
-
default: {
|
|
365
|
-
bodyMapper: Mappers.ErrorResponse
|
|
366
|
-
}
|
|
367
|
-
},
|
|
368
|
-
queryParameters: [Parameters.apiVersion],
|
|
369
|
-
urlParameters: [
|
|
370
|
-
Parameters.$host,
|
|
371
|
-
Parameters.subscriptionId,
|
|
372
|
-
Parameters.providerNamespace
|
|
373
|
-
],
|
|
374
|
-
headerParameters: [Parameters.accept1],
|
|
375
|
-
serializer
|
|
376
|
-
};
|
|
377
|
-
const listAllBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
378
|
-
path:
|
|
379
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.Features/subscriptionFeatureRegistrations",
|
|
380
|
-
httpMethod: "GET",
|
|
381
|
-
responses: {
|
|
382
|
-
200: {
|
|
383
|
-
bodyMapper: Mappers.SubscriptionFeatureRegistrationList
|
|
384
|
-
},
|
|
385
|
-
default: {
|
|
386
|
-
bodyMapper: Mappers.ErrorResponse
|
|
387
|
-
}
|
|
388
|
-
},
|
|
389
|
-
queryParameters: [Parameters.apiVersion],
|
|
390
|
-
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
391
|
-
headerParameters: [Parameters.accept1],
|
|
392
|
-
serializer
|
|
393
|
-
};
|
|
394
|
-
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
395
|
-
path: "{nextLink}",
|
|
396
|
-
httpMethod: "GET",
|
|
397
|
-
responses: {
|
|
398
|
-
200: {
|
|
399
|
-
bodyMapper: Mappers.SubscriptionFeatureRegistrationList
|
|
400
|
-
},
|
|
401
|
-
default: {
|
|
402
|
-
bodyMapper: Mappers.ErrorResponse
|
|
403
|
-
}
|
|
404
|
-
},
|
|
405
|
-
queryParameters: [Parameters.apiVersion],
|
|
406
|
-
urlParameters: [
|
|
407
|
-
Parameters.$host,
|
|
408
|
-
Parameters.nextLink,
|
|
409
|
-
Parameters.subscriptionId,
|
|
410
|
-
Parameters.providerNamespace
|
|
411
|
-
],
|
|
412
|
-
headerParameters: [Parameters.accept1],
|
|
413
|
-
serializer
|
|
414
|
-
};
|
|
415
|
-
const listAllBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
416
|
-
path: "{nextLink}",
|
|
417
|
-
httpMethod: "GET",
|
|
418
|
-
responses: {
|
|
419
|
-
200: {
|
|
420
|
-
bodyMapper: Mappers.SubscriptionFeatureRegistrationList
|
|
421
|
-
},
|
|
422
|
-
default: {
|
|
423
|
-
bodyMapper: Mappers.ErrorResponse
|
|
424
|
-
}
|
|
425
|
-
},
|
|
426
|
-
queryParameters: [Parameters.apiVersion],
|
|
427
|
-
urlParameters: [
|
|
428
|
-
Parameters.$host,
|
|
429
|
-
Parameters.nextLink,
|
|
430
|
-
Parameters.subscriptionId
|
|
431
|
-
],
|
|
432
|
-
headerParameters: [Parameters.accept1],
|
|
433
|
-
serializer
|
|
434
|
-
};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
11
|
-
FeatureResult,
|
|
12
|
-
FeaturesListAllOptionalParams,
|
|
13
|
-
FeaturesListOptionalParams,
|
|
14
|
-
FeaturesGetOptionalParams,
|
|
15
|
-
FeaturesGetResponse,
|
|
16
|
-
FeaturesRegisterOptionalParams,
|
|
17
|
-
FeaturesRegisterResponse,
|
|
18
|
-
FeaturesUnregisterOptionalParams,
|
|
19
|
-
FeaturesUnregisterResponse
|
|
20
|
-
} from "../models";
|
|
21
|
-
|
|
22
|
-
/// <reference lib="esnext.asynciterable" />
|
|
23
|
-
/** Interface representing a Features. */
|
|
24
|
-
export interface Features {
|
|
25
|
-
/**
|
|
26
|
-
* Gets all the preview features that are available through AFEC for the subscription.
|
|
27
|
-
* @param options The options parameters.
|
|
28
|
-
*/
|
|
29
|
-
listAll(
|
|
30
|
-
options?: FeaturesListAllOptionalParams
|
|
31
|
-
): PagedAsyncIterableIterator<FeatureResult>;
|
|
32
|
-
/**
|
|
33
|
-
* Gets all the preview features in a provider namespace that are available through AFEC for the
|
|
34
|
-
* subscription.
|
|
35
|
-
* @param resourceProviderNamespace The namespace of the resource provider for getting features.
|
|
36
|
-
* @param options The options parameters.
|
|
37
|
-
*/
|
|
38
|
-
list(
|
|
39
|
-
resourceProviderNamespace: string,
|
|
40
|
-
options?: FeaturesListOptionalParams
|
|
41
|
-
): PagedAsyncIterableIterator<FeatureResult>;
|
|
42
|
-
/**
|
|
43
|
-
* Gets the preview feature with the specified name.
|
|
44
|
-
* @param resourceProviderNamespace The resource provider namespace for the feature.
|
|
45
|
-
* @param featureName The name of the feature to get.
|
|
46
|
-
* @param options The options parameters.
|
|
47
|
-
*/
|
|
48
|
-
get(
|
|
49
|
-
resourceProviderNamespace: string,
|
|
50
|
-
featureName: string,
|
|
51
|
-
options?: FeaturesGetOptionalParams
|
|
52
|
-
): Promise<FeaturesGetResponse>;
|
|
53
|
-
/**
|
|
54
|
-
* Registers the preview feature for the subscription.
|
|
55
|
-
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
56
|
-
* @param featureName The name of the feature to register.
|
|
57
|
-
* @param options The options parameters.
|
|
58
|
-
*/
|
|
59
|
-
register(
|
|
60
|
-
resourceProviderNamespace: string,
|
|
61
|
-
featureName: string,
|
|
62
|
-
options?: FeaturesRegisterOptionalParams
|
|
63
|
-
): Promise<FeaturesRegisterResponse>;
|
|
64
|
-
/**
|
|
65
|
-
* Unregisters the preview feature for the subscription.
|
|
66
|
-
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
67
|
-
* @param featureName The name of the feature to unregister.
|
|
68
|
-
* @param options The options parameters.
|
|
69
|
-
*/
|
|
70
|
-
unregister(
|
|
71
|
-
resourceProviderNamespace: string,
|
|
72
|
-
featureName: string,
|
|
73
|
-
options?: FeaturesUnregisterOptionalParams
|
|
74
|
-
): Promise<FeaturesUnregisterResponse>;
|
|
75
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
11
|
-
SubscriptionFeatureRegistration,
|
|
12
|
-
SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams,
|
|
13
|
-
SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams,
|
|
14
|
-
SubscriptionFeatureRegistrationsGetOptionalParams,
|
|
15
|
-
SubscriptionFeatureRegistrationsGetResponse,
|
|
16
|
-
SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams,
|
|
17
|
-
SubscriptionFeatureRegistrationsCreateOrUpdateResponse,
|
|
18
|
-
SubscriptionFeatureRegistrationsDeleteOptionalParams
|
|
19
|
-
} from "../models";
|
|
20
|
-
|
|
21
|
-
/// <reference lib="esnext.asynciterable" />
|
|
22
|
-
/** Interface representing a SubscriptionFeatureRegistrations. */
|
|
23
|
-
export interface SubscriptionFeatureRegistrations {
|
|
24
|
-
/**
|
|
25
|
-
* Returns subscription feature registrations for given subscription and provider namespace.
|
|
26
|
-
* @param providerNamespace The provider namespace.
|
|
27
|
-
* @param options The options parameters.
|
|
28
|
-
*/
|
|
29
|
-
listBySubscription(
|
|
30
|
-
providerNamespace: string,
|
|
31
|
-
options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams
|
|
32
|
-
): PagedAsyncIterableIterator<SubscriptionFeatureRegistration>;
|
|
33
|
-
/**
|
|
34
|
-
* Returns subscription feature registrations for given subscription.
|
|
35
|
-
* @param options The options parameters.
|
|
36
|
-
*/
|
|
37
|
-
listAllBySubscription(
|
|
38
|
-
options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams
|
|
39
|
-
): PagedAsyncIterableIterator<SubscriptionFeatureRegistration>;
|
|
40
|
-
/**
|
|
41
|
-
* Returns a feature registration
|
|
42
|
-
* @param providerNamespace The provider namespace.
|
|
43
|
-
* @param featureName The feature name.
|
|
44
|
-
* @param options The options parameters.
|
|
45
|
-
*/
|
|
46
|
-
get(
|
|
47
|
-
providerNamespace: string,
|
|
48
|
-
featureName: string,
|
|
49
|
-
options?: SubscriptionFeatureRegistrationsGetOptionalParams
|
|
50
|
-
): Promise<SubscriptionFeatureRegistrationsGetResponse>;
|
|
51
|
-
/**
|
|
52
|
-
* Create or update a feature registration.
|
|
53
|
-
* @param providerNamespace The provider namespace.
|
|
54
|
-
* @param featureName The feature name.
|
|
55
|
-
* @param options The options parameters.
|
|
56
|
-
*/
|
|
57
|
-
createOrUpdate(
|
|
58
|
-
providerNamespace: string,
|
|
59
|
-
featureName: string,
|
|
60
|
-
options?: SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams
|
|
61
|
-
): Promise<SubscriptionFeatureRegistrationsCreateOrUpdateResponse>;
|
|
62
|
-
/**
|
|
63
|
-
* Deletes a feature registration
|
|
64
|
-
* @param providerNamespace The provider namespace.
|
|
65
|
-
* @param featureName The feature name.
|
|
66
|
-
* @param options The options parameters.
|
|
67
|
-
*/
|
|
68
|
-
delete(
|
|
69
|
-
providerNamespace: string,
|
|
70
|
-
featureName: string,
|
|
71
|
-
options?: SubscriptionFeatureRegistrationsDeleteOptionalParams
|
|
72
|
-
): Promise<void>;
|
|
73
|
-
}
|
package/src/pagingHelper.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
export interface PageInfo {
|
|
10
|
-
continuationToken?: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const pageMap = new WeakMap<object, PageInfo>();
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Given a result page from a pageable operation, returns a
|
|
17
|
-
* continuation token that can be used to begin paging from
|
|
18
|
-
* that point later.
|
|
19
|
-
* @param page A result object from calling .byPage() on a paged operation.
|
|
20
|
-
* @returns The continuation token that can be passed into byPage().
|
|
21
|
-
*/
|
|
22
|
-
export function getContinuationToken(page: unknown): string | undefined {
|
|
23
|
-
if (typeof page !== "object" || page === null) {
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
26
|
-
return pageMap.get(page)?.continuationToken;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export function setContinuationToken(
|
|
30
|
-
page: unknown,
|
|
31
|
-
continuationToken: string | undefined
|
|
32
|
-
): void {
|
|
33
|
-
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
const pageInfo = pageMap.get(page) ?? {};
|
|
37
|
-
pageInfo.continuationToken = continuationToken;
|
|
38
|
-
pageMap.set(page, pageInfo);
|
|
39
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"module": "es6",
|
|
4
|
-
"moduleResolution": "node",
|
|
5
|
-
"strict": true,
|
|
6
|
-
"target": "es6",
|
|
7
|
-
"sourceMap": true,
|
|
8
|
-
"declarationMap": true,
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"allowSyntheticDefaultImports": true,
|
|
11
|
-
"forceConsistentCasingInFileNames": true,
|
|
12
|
-
"lib": [
|
|
13
|
-
"es6",
|
|
14
|
-
"dom"
|
|
15
|
-
],
|
|
16
|
-
"declaration": true,
|
|
17
|
-
"outDir": "./dist-esm",
|
|
18
|
-
"importHelpers": true,
|
|
19
|
-
"paths": {
|
|
20
|
-
"@azure/arm-features": [
|
|
21
|
-
"./src/index"
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"include": [
|
|
26
|
-
"./src/**/*.ts",
|
|
27
|
-
"./test/**/*.ts",
|
|
28
|
-
"samples-dev/**/*.ts"
|
|
29
|
-
],
|
|
30
|
-
"exclude": [
|
|
31
|
-
"node_modules"
|
|
32
|
-
]
|
|
33
|
-
}
|