@azure/arm-features 3.1.1-alpha.20250124.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 -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,74 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { SubscriptionFeatureRegistrations } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { FeatureClient } from "../featureClient.js";
|
|
4
|
+
import { SubscriptionFeatureRegistration, SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams, SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams, SubscriptionFeatureRegistrationsGetOptionalParams, SubscriptionFeatureRegistrationsGetResponse, SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams, SubscriptionFeatureRegistrationsCreateOrUpdateResponse, SubscriptionFeatureRegistrationsDeleteOptionalParams } from "../models/index.js";
|
|
5
|
+
/** Class containing SubscriptionFeatureRegistrations operations. */
|
|
6
|
+
export declare class SubscriptionFeatureRegistrationsImpl implements SubscriptionFeatureRegistrations {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class SubscriptionFeatureRegistrations class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: FeatureClient);
|
|
13
|
+
/**
|
|
14
|
+
* Returns subscription feature registrations for given subscription and provider namespace.
|
|
15
|
+
* @param providerNamespace The provider namespace.
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
listBySubscription(providerNamespace: string, options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<SubscriptionFeatureRegistration>;
|
|
19
|
+
private listBySubscriptionPagingPage;
|
|
20
|
+
private listBySubscriptionPagingAll;
|
|
21
|
+
/**
|
|
22
|
+
* Returns subscription feature registrations for given subscription.
|
|
23
|
+
* @param options The options parameters.
|
|
24
|
+
*/
|
|
25
|
+
listAllBySubscription(options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams): PagedAsyncIterableIterator<SubscriptionFeatureRegistration>;
|
|
26
|
+
private listAllBySubscriptionPagingPage;
|
|
27
|
+
private listAllBySubscriptionPagingAll;
|
|
28
|
+
/**
|
|
29
|
+
* Returns a feature registration
|
|
30
|
+
* @param providerNamespace The provider namespace.
|
|
31
|
+
* @param featureName The feature name.
|
|
32
|
+
* @param options The options parameters.
|
|
33
|
+
*/
|
|
34
|
+
get(providerNamespace: string, featureName: string, options?: SubscriptionFeatureRegistrationsGetOptionalParams): Promise<SubscriptionFeatureRegistrationsGetResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Create or update a feature registration.
|
|
37
|
+
* @param providerNamespace The provider namespace.
|
|
38
|
+
* @param featureName The feature name.
|
|
39
|
+
* @param options The options parameters.
|
|
40
|
+
*/
|
|
41
|
+
createOrUpdate(providerNamespace: string, featureName: string, options?: SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams): Promise<SubscriptionFeatureRegistrationsCreateOrUpdateResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Deletes a feature registration
|
|
44
|
+
* @param providerNamespace The provider namespace.
|
|
45
|
+
* @param featureName The feature name.
|
|
46
|
+
* @param options The options parameters.
|
|
47
|
+
*/
|
|
48
|
+
delete(providerNamespace: string, featureName: string, options?: SubscriptionFeatureRegistrationsDeleteOptionalParams): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Returns subscription feature registrations for given subscription and provider namespace.
|
|
51
|
+
* @param providerNamespace The provider namespace.
|
|
52
|
+
* @param options The options parameters.
|
|
53
|
+
*/
|
|
54
|
+
private _listBySubscription;
|
|
55
|
+
/**
|
|
56
|
+
* Returns subscription feature registrations for given subscription.
|
|
57
|
+
* @param options The options parameters.
|
|
58
|
+
*/
|
|
59
|
+
private _listAllBySubscription;
|
|
60
|
+
/**
|
|
61
|
+
* ListBySubscriptionNext
|
|
62
|
+
* @param providerNamespace The provider namespace.
|
|
63
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
64
|
+
* @param options The options parameters.
|
|
65
|
+
*/
|
|
66
|
+
private _listBySubscriptionNext;
|
|
67
|
+
/**
|
|
68
|
+
* ListAllBySubscriptionNext
|
|
69
|
+
* @param nextLink The nextLink from the previous successful call to the ListAllBySubscription method.
|
|
70
|
+
* @param options The options parameters.
|
|
71
|
+
*/
|
|
72
|
+
private _listAllBySubscriptionNext;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=subscriptionFeatureRegistrations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptionFeatureRegistrations.d.ts","sourceRoot":"","sources":["../../../src/operations/subscriptionFeatureRegistrations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,gCAAgC,EAAE,MAAM,kCAAkC,CAAC;AAIpF,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,+BAA+B,EAE/B,gEAAgE,EA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|
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 SubscriptionFeatureRegistrations operations. */
|
|
15
|
+
export class SubscriptionFeatureRegistrationsImpl {
|
|
16
|
+
/**
|
|
17
|
+
* Initialize a new instance of the class SubscriptionFeatureRegistrations class.
|
|
18
|
+
* @param client Reference to the service client
|
|
19
|
+
*/
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns subscription feature registrations for given subscription and provider namespace.
|
|
25
|
+
* @param providerNamespace The provider namespace.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
listBySubscription(providerNamespace, options) {
|
|
29
|
+
const iter = this.listBySubscriptionPagingAll(providerNamespace, options);
|
|
30
|
+
return {
|
|
31
|
+
next() {
|
|
32
|
+
return iter.next();
|
|
33
|
+
},
|
|
34
|
+
[Symbol.asyncIterator]() {
|
|
35
|
+
return this;
|
|
36
|
+
},
|
|
37
|
+
byPage: (settings) => {
|
|
38
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
39
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
40
|
+
}
|
|
41
|
+
return this.listBySubscriptionPagingPage(providerNamespace, options, settings);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
listBySubscriptionPagingPage(providerNamespace, options, settings) {
|
|
46
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = yield __await(this._listBySubscription(providerNamespace, options));
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield yield __await(page);
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = yield __await(this._listBySubscriptionNext(providerNamespace, continuationToken, options));
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield yield __await(page);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
listBySubscriptionPagingAll(providerNamespace, options) {
|
|
66
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
67
|
+
var _a, e_1, _b, _c;
|
|
68
|
+
try {
|
|
69
|
+
for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(providerNamespace, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
70
|
+
_c = _f.value;
|
|
71
|
+
_d = false;
|
|
72
|
+
const page = _c;
|
|
73
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
77
|
+
finally {
|
|
78
|
+
try {
|
|
79
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
80
|
+
}
|
|
81
|
+
finally { if (e_1) throw e_1.error; }
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Returns subscription feature registrations for given subscription.
|
|
87
|
+
* @param options The options parameters.
|
|
88
|
+
*/
|
|
89
|
+
listAllBySubscription(options) {
|
|
90
|
+
const iter = this.listAllBySubscriptionPagingAll(options);
|
|
91
|
+
return {
|
|
92
|
+
next() {
|
|
93
|
+
return iter.next();
|
|
94
|
+
},
|
|
95
|
+
[Symbol.asyncIterator]() {
|
|
96
|
+
return this;
|
|
97
|
+
},
|
|
98
|
+
byPage: (settings) => {
|
|
99
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
100
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
101
|
+
}
|
|
102
|
+
return this.listAllBySubscriptionPagingPage(options, settings);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
listAllBySubscriptionPagingPage(options, settings) {
|
|
107
|
+
return __asyncGenerator(this, arguments, function* listAllBySubscriptionPagingPage_1() {
|
|
108
|
+
let result;
|
|
109
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
110
|
+
if (!continuationToken) {
|
|
111
|
+
result = yield __await(this._listAllBySubscription(options));
|
|
112
|
+
let page = result.value || [];
|
|
113
|
+
continuationToken = result.nextLink;
|
|
114
|
+
setContinuationToken(page, continuationToken);
|
|
115
|
+
yield yield __await(page);
|
|
116
|
+
}
|
|
117
|
+
while (continuationToken) {
|
|
118
|
+
result = yield __await(this._listAllBySubscriptionNext(continuationToken, options));
|
|
119
|
+
continuationToken = result.nextLink;
|
|
120
|
+
let page = result.value || [];
|
|
121
|
+
setContinuationToken(page, continuationToken);
|
|
122
|
+
yield yield __await(page);
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
listAllBySubscriptionPagingAll(options) {
|
|
127
|
+
return __asyncGenerator(this, arguments, function* listAllBySubscriptionPagingAll_1() {
|
|
128
|
+
var _a, e_2, _b, _c;
|
|
129
|
+
try {
|
|
130
|
+
for (var _d = true, _e = __asyncValues(this.listAllBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
131
|
+
_c = _f.value;
|
|
132
|
+
_d = false;
|
|
133
|
+
const page = _c;
|
|
134
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
138
|
+
finally {
|
|
139
|
+
try {
|
|
140
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
141
|
+
}
|
|
142
|
+
finally { if (e_2) throw e_2.error; }
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Returns a feature registration
|
|
148
|
+
* @param providerNamespace The provider namespace.
|
|
149
|
+
* @param featureName The feature name.
|
|
150
|
+
* @param options The options parameters.
|
|
151
|
+
*/
|
|
152
|
+
get(providerNamespace, featureName, options) {
|
|
153
|
+
return this.client.sendOperationRequest({ providerNamespace, featureName, options }, getOperationSpec);
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Create or update a feature registration.
|
|
157
|
+
* @param providerNamespace The provider namespace.
|
|
158
|
+
* @param featureName The feature name.
|
|
159
|
+
* @param options The options parameters.
|
|
160
|
+
*/
|
|
161
|
+
createOrUpdate(providerNamespace, featureName, options) {
|
|
162
|
+
return this.client.sendOperationRequest({ providerNamespace, featureName, options }, createOrUpdateOperationSpec);
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Deletes a feature registration
|
|
166
|
+
* @param providerNamespace The provider namespace.
|
|
167
|
+
* @param featureName The feature name.
|
|
168
|
+
* @param options The options parameters.
|
|
169
|
+
*/
|
|
170
|
+
delete(providerNamespace, featureName, options) {
|
|
171
|
+
return this.client.sendOperationRequest({ providerNamespace, featureName, options }, deleteOperationSpec);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Returns subscription feature registrations for given subscription and provider namespace.
|
|
175
|
+
* @param providerNamespace The provider namespace.
|
|
176
|
+
* @param options The options parameters.
|
|
177
|
+
*/
|
|
178
|
+
_listBySubscription(providerNamespace, options) {
|
|
179
|
+
return this.client.sendOperationRequest({ providerNamespace, options }, listBySubscriptionOperationSpec);
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Returns subscription feature registrations for given subscription.
|
|
183
|
+
* @param options The options parameters.
|
|
184
|
+
*/
|
|
185
|
+
_listAllBySubscription(options) {
|
|
186
|
+
return this.client.sendOperationRequest({ options }, listAllBySubscriptionOperationSpec);
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* ListBySubscriptionNext
|
|
190
|
+
* @param providerNamespace The provider namespace.
|
|
191
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
192
|
+
* @param options The options parameters.
|
|
193
|
+
*/
|
|
194
|
+
_listBySubscriptionNext(providerNamespace, nextLink, options) {
|
|
195
|
+
return this.client.sendOperationRequest({ providerNamespace, nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* ListAllBySubscriptionNext
|
|
199
|
+
* @param nextLink The nextLink from the previous successful call to the ListAllBySubscription method.
|
|
200
|
+
* @param options The options parameters.
|
|
201
|
+
*/
|
|
202
|
+
_listAllBySubscriptionNext(nextLink, options) {
|
|
203
|
+
return this.client.sendOperationRequest({ nextLink, options }, listAllBySubscriptionNextOperationSpec);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
// Operation Specifications
|
|
207
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
208
|
+
const getOperationSpec = {
|
|
209
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}",
|
|
210
|
+
httpMethod: "GET",
|
|
211
|
+
responses: {
|
|
212
|
+
200: {
|
|
213
|
+
bodyMapper: Mappers.SubscriptionFeatureRegistration
|
|
214
|
+
},
|
|
215
|
+
default: {
|
|
216
|
+
bodyMapper: Mappers.ErrorResponse
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
queryParameters: [Parameters.apiVersion],
|
|
220
|
+
urlParameters: [
|
|
221
|
+
Parameters.$host,
|
|
222
|
+
Parameters.subscriptionId,
|
|
223
|
+
Parameters.featureName,
|
|
224
|
+
Parameters.providerNamespace
|
|
225
|
+
],
|
|
226
|
+
headerParameters: [Parameters.accept1],
|
|
227
|
+
serializer
|
|
228
|
+
};
|
|
229
|
+
const createOrUpdateOperationSpec = {
|
|
230
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}",
|
|
231
|
+
httpMethod: "PUT",
|
|
232
|
+
responses: {
|
|
233
|
+
200: {
|
|
234
|
+
bodyMapper: Mappers.SubscriptionFeatureRegistration
|
|
235
|
+
},
|
|
236
|
+
default: {
|
|
237
|
+
bodyMapper: Mappers.ErrorResponse
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
requestBody: Parameters.subscriptionFeatureRegistrationType,
|
|
241
|
+
queryParameters: [Parameters.apiVersion],
|
|
242
|
+
urlParameters: [
|
|
243
|
+
Parameters.$host,
|
|
244
|
+
Parameters.subscriptionId,
|
|
245
|
+
Parameters.featureName,
|
|
246
|
+
Parameters.providerNamespace
|
|
247
|
+
],
|
|
248
|
+
headerParameters: [Parameters.accept1, Parameters.contentType],
|
|
249
|
+
mediaType: "json",
|
|
250
|
+
serializer
|
|
251
|
+
};
|
|
252
|
+
const deleteOperationSpec = {
|
|
253
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}",
|
|
254
|
+
httpMethod: "DELETE",
|
|
255
|
+
responses: {
|
|
256
|
+
200: {},
|
|
257
|
+
204: {},
|
|
258
|
+
default: {
|
|
259
|
+
bodyMapper: Mappers.ErrorResponse
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
queryParameters: [Parameters.apiVersion],
|
|
263
|
+
urlParameters: [
|
|
264
|
+
Parameters.$host,
|
|
265
|
+
Parameters.subscriptionId,
|
|
266
|
+
Parameters.featureName,
|
|
267
|
+
Parameters.providerNamespace
|
|
268
|
+
],
|
|
269
|
+
headerParameters: [Parameters.accept1],
|
|
270
|
+
serializer
|
|
271
|
+
};
|
|
272
|
+
const listBySubscriptionOperationSpec = {
|
|
273
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations",
|
|
274
|
+
httpMethod: "GET",
|
|
275
|
+
responses: {
|
|
276
|
+
200: {
|
|
277
|
+
bodyMapper: Mappers.SubscriptionFeatureRegistrationList
|
|
278
|
+
},
|
|
279
|
+
default: {
|
|
280
|
+
bodyMapper: Mappers.ErrorResponse
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
queryParameters: [Parameters.apiVersion],
|
|
284
|
+
urlParameters: [
|
|
285
|
+
Parameters.$host,
|
|
286
|
+
Parameters.subscriptionId,
|
|
287
|
+
Parameters.providerNamespace
|
|
288
|
+
],
|
|
289
|
+
headerParameters: [Parameters.accept1],
|
|
290
|
+
serializer
|
|
291
|
+
};
|
|
292
|
+
const listAllBySubscriptionOperationSpec = {
|
|
293
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Features/subscriptionFeatureRegistrations",
|
|
294
|
+
httpMethod: "GET",
|
|
295
|
+
responses: {
|
|
296
|
+
200: {
|
|
297
|
+
bodyMapper: Mappers.SubscriptionFeatureRegistrationList
|
|
298
|
+
},
|
|
299
|
+
default: {
|
|
300
|
+
bodyMapper: Mappers.ErrorResponse
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
queryParameters: [Parameters.apiVersion],
|
|
304
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
305
|
+
headerParameters: [Parameters.accept1],
|
|
306
|
+
serializer
|
|
307
|
+
};
|
|
308
|
+
const listBySubscriptionNextOperationSpec = {
|
|
309
|
+
path: "{nextLink}",
|
|
310
|
+
httpMethod: "GET",
|
|
311
|
+
responses: {
|
|
312
|
+
200: {
|
|
313
|
+
bodyMapper: Mappers.SubscriptionFeatureRegistrationList
|
|
314
|
+
},
|
|
315
|
+
default: {
|
|
316
|
+
bodyMapper: Mappers.ErrorResponse
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
queryParameters: [Parameters.apiVersion],
|
|
320
|
+
urlParameters: [
|
|
321
|
+
Parameters.$host,
|
|
322
|
+
Parameters.nextLink,
|
|
323
|
+
Parameters.subscriptionId,
|
|
324
|
+
Parameters.providerNamespace
|
|
325
|
+
],
|
|
326
|
+
headerParameters: [Parameters.accept1],
|
|
327
|
+
serializer
|
|
328
|
+
};
|
|
329
|
+
const listAllBySubscriptionNextOperationSpec = {
|
|
330
|
+
path: "{nextLink}",
|
|
331
|
+
httpMethod: "GET",
|
|
332
|
+
responses: {
|
|
333
|
+
200: {
|
|
334
|
+
bodyMapper: Mappers.SubscriptionFeatureRegistrationList
|
|
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
|
+
],
|
|
346
|
+
headerParameters: [Parameters.accept1],
|
|
347
|
+
serializer
|
|
348
|
+
};
|
|
349
|
+
//# sourceMappingURL=subscriptionFeatureRegistrations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptionFeatureRegistrations.js","sourceRoot":"","sources":["../../../src/operations/subscriptionFeatureRegistrations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;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,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC;IACtC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mCAAmC;SACxD;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,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC;IACtC,UAAU;CACX,CAAC;AACF,MAAM,sCAAsC,GAA6B;IACvE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mCAAmC;SACxD;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;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC;IACtC,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 { SubscriptionFeatureRegistrations } 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 SubscriptionFeatureRegistration,\n SubscriptionFeatureRegistrationsListBySubscriptionNextOptionalParams,\n SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams,\n SubscriptionFeatureRegistrationsListBySubscriptionResponse,\n SubscriptionFeatureRegistrationsListAllBySubscriptionNextOptionalParams,\n SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams,\n SubscriptionFeatureRegistrationsListAllBySubscriptionResponse,\n SubscriptionFeatureRegistrationsGetOptionalParams,\n SubscriptionFeatureRegistrationsGetResponse,\n SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams,\n SubscriptionFeatureRegistrationsCreateOrUpdateResponse,\n SubscriptionFeatureRegistrationsDeleteOptionalParams,\n SubscriptionFeatureRegistrationsListBySubscriptionNextResponse,\n SubscriptionFeatureRegistrationsListAllBySubscriptionNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SubscriptionFeatureRegistrations operations. */\nexport class SubscriptionFeatureRegistrationsImpl\n implements SubscriptionFeatureRegistrations {\n private readonly client: FeatureClient;\n\n /**\n * Initialize a new instance of the class SubscriptionFeatureRegistrations class.\n * @param client Reference to the service client\n */\n constructor(client: FeatureClient) {\n this.client = client;\n }\n\n /**\n * Returns subscription feature registrations for given subscription and provider namespace.\n * @param providerNamespace The provider namespace.\n * @param options The options parameters.\n */\n public listBySubscription(\n providerNamespace: string,\n options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<SubscriptionFeatureRegistration> {\n const iter = this.listBySubscriptionPagingAll(providerNamespace, 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.listBySubscriptionPagingPage(\n providerNamespace,\n options,\n settings\n );\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n providerNamespace: string,\n options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SubscriptionFeatureRegistration[]> {\n let result: SubscriptionFeatureRegistrationsListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(providerNamespace, 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._listBySubscriptionNext(\n providerNamespace,\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 *listBySubscriptionPagingAll(\n providerNamespace: string,\n options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams\n ): AsyncIterableIterator<SubscriptionFeatureRegistration> {\n for await (const page of this.listBySubscriptionPagingPage(\n providerNamespace,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns subscription feature registrations for given subscription.\n * @param options The options parameters.\n */\n public listAllBySubscription(\n options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<SubscriptionFeatureRegistration> {\n const iter = this.listAllBySubscriptionPagingAll(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.listAllBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listAllBySubscriptionPagingPage(\n options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SubscriptionFeatureRegistration[]> {\n let result: SubscriptionFeatureRegistrationsListAllBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAllBySubscription(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._listAllBySubscriptionNext(\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 *listAllBySubscriptionPagingAll(\n options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams\n ): AsyncIterableIterator<SubscriptionFeatureRegistration> {\n for await (const page of this.listAllBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Returns a feature registration\n * @param providerNamespace The provider namespace.\n * @param featureName The feature name.\n * @param options The options parameters.\n */\n get(\n providerNamespace: string,\n featureName: string,\n options?: SubscriptionFeatureRegistrationsGetOptionalParams\n ): Promise<SubscriptionFeatureRegistrationsGetResponse> {\n return this.client.sendOperationRequest(\n { providerNamespace, featureName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create or update a feature registration.\n * @param providerNamespace The provider namespace.\n * @param featureName The feature name.\n * @param options The options parameters.\n */\n createOrUpdate(\n providerNamespace: string,\n featureName: string,\n options?: SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams\n ): Promise<SubscriptionFeatureRegistrationsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { providerNamespace, featureName, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes a feature registration\n * @param providerNamespace The provider namespace.\n * @param featureName The feature name.\n * @param options The options parameters.\n */\n delete(\n providerNamespace: string,\n featureName: string,\n options?: SubscriptionFeatureRegistrationsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { providerNamespace, featureName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Returns subscription feature registrations for given subscription and provider namespace.\n * @param providerNamespace The provider namespace.\n * @param options The options parameters.\n */\n private _listBySubscription(\n providerNamespace: string,\n options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams\n ): Promise<SubscriptionFeatureRegistrationsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { providerNamespace, options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Returns subscription feature registrations for given subscription.\n * @param options The options parameters.\n */\n private _listAllBySubscription(\n options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams\n ): Promise<SubscriptionFeatureRegistrationsListAllBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listAllBySubscriptionOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param providerNamespace The provider namespace.\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n providerNamespace: string,\n nextLink: string,\n options?: SubscriptionFeatureRegistrationsListBySubscriptionNextOptionalParams\n ): Promise<SubscriptionFeatureRegistrationsListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { providerNamespace, nextLink, options },\n listBySubscriptionNextOperationSpec\n );\n }\n\n /**\n * ListAllBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListAllBySubscription method.\n * @param options The options parameters.\n */\n private _listAllBySubscriptionNext(\n nextLink: string,\n options?: SubscriptionFeatureRegistrationsListAllBySubscriptionNextOptionalParams\n ): Promise<\n SubscriptionFeatureRegistrationsListAllBySubscriptionNextResponse\n > {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listAllBySubscriptionNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionFeatureRegistration\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.featureName,\n Parameters.providerNamespace\n ],\n headerParameters: [Parameters.accept1],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionFeatureRegistration\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.subscriptionFeatureRegistrationType,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.featureName,\n Parameters.providerNamespace\n ],\n headerParameters: [Parameters.accept1, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.featureName,\n Parameters.providerNamespace\n ],\n headerParameters: [Parameters.accept1],\n serializer\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionFeatureRegistrationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.providerNamespace\n ],\n headerParameters: [Parameters.accept1],\n serializer\n};\nconst listAllBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Features/subscriptionFeatureRegistrations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionFeatureRegistrationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept1],\n serializer\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionFeatureRegistrationList\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.providerNamespace\n ],\n headerParameters: [Parameters.accept1],\n serializer\n};\nconst listAllBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionFeatureRegistrationList\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.accept1],\n serializer\n};\n"]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { FeatureResult, FeaturesListAllOptionalParams, FeaturesListOptionalParams, FeaturesGetOptionalParams, FeaturesGetResponse, FeaturesRegisterOptionalParams, FeaturesRegisterResponse, FeaturesUnregisterOptionalParams, FeaturesUnregisterResponse } from "../models/index.js";
|
|
3
|
+
/** Interface representing a Features. */
|
|
4
|
+
export interface Features {
|
|
5
|
+
/**
|
|
6
|
+
* Gets all the preview features that are available through AFEC for the subscription.
|
|
7
|
+
* @param options The options parameters.
|
|
8
|
+
*/
|
|
9
|
+
listAll(options?: FeaturesListAllOptionalParams): PagedAsyncIterableIterator<FeatureResult>;
|
|
10
|
+
/**
|
|
11
|
+
* Gets all the preview features in a provider namespace that are available through AFEC for the
|
|
12
|
+
* subscription.
|
|
13
|
+
* @param resourceProviderNamespace The namespace of the resource provider for getting features.
|
|
14
|
+
* @param options The options parameters.
|
|
15
|
+
*/
|
|
16
|
+
list(resourceProviderNamespace: string, options?: FeaturesListOptionalParams): PagedAsyncIterableIterator<FeatureResult>;
|
|
17
|
+
/**
|
|
18
|
+
* Gets the preview feature with the specified name.
|
|
19
|
+
* @param resourceProviderNamespace The resource provider namespace for the feature.
|
|
20
|
+
* @param featureName The name of the feature to get.
|
|
21
|
+
* @param options The options parameters.
|
|
22
|
+
*/
|
|
23
|
+
get(resourceProviderNamespace: string, featureName: string, options?: FeaturesGetOptionalParams): Promise<FeaturesGetResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Registers the preview feature for the subscription.
|
|
26
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
27
|
+
* @param featureName The name of the feature to register.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
register(resourceProviderNamespace: string, featureName: string, options?: FeaturesRegisterOptionalParams): Promise<FeaturesRegisterResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Unregisters the preview feature for the subscription.
|
|
33
|
+
* @param resourceProviderNamespace The namespace of the resource provider.
|
|
34
|
+
* @param featureName The name of the feature to unregister.
|
|
35
|
+
* @param options The options parameters.
|
|
36
|
+
*/
|
|
37
|
+
unregister(resourceProviderNamespace: string, featureName: string, options?: FeaturesUnregisterOptionalParams): Promise<FeaturesUnregisterResponse>;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=features.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/features.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,aAAa,EACb,6BAA6B,EAC7B,0BAA0B,EAC1B,yBAAyB,EACzB,mBAAmB,EACnB,8BAA8B,EAC9B,wBAAwB,EACxB,gCAAgC,EAChC,0BAA0B,EAC3B,MAAM,oBAAoB,CAAC;AAG5B,yCAAyC;AACzC,MAAM,WAAW,QAAQ;IACvB;;;OAGG;IACH,OAAO,CACL,OAAO,CAAC,EAAE,6BAA6B,GACtC,0BAA0B,CAAC,aAAa,CAAC,CAAC;IAC7C;;;;;OAKG;IACH,IAAI,CACF,yBAAyB,EAAE,MAAM,EACjC,OAAO,CAAC,EAAE,0BAA0B,GACnC,0BAA0B,CAAC,aAAa,CAAC,CAAC;IAC7C;;;;;OAKG;IACH,GAAG,CACD,yBAAyB,EAAE,MAAM,EACjC,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAChC;;;;;OAKG;IACH,QAAQ,CACN,yBAAyB,EAAE,MAAM,EACjC,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACrC;;;;;OAKG;IACH,UAAU,CACR,yBAAyB,EAAE,MAAM,EACjC,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC,CAAC;CACxC"}
|
|
@@ -5,6 +5,5 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export * from "./subscriptionFeatureRegistrations";
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=features.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/features.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 } from \"@azure/core-paging\";\nimport {\n FeatureResult,\n FeaturesListAllOptionalParams,\n FeaturesListOptionalParams,\n FeaturesGetOptionalParams,\n FeaturesGetResponse,\n FeaturesRegisterOptionalParams,\n FeaturesRegisterResponse,\n FeaturesUnregisterOptionalParams,\n FeaturesUnregisterResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Features. */\nexport interface Features {\n /**\n * Gets all the preview features that are available through AFEC for the subscription.\n * @param options The options parameters.\n */\n listAll(\n options?: FeaturesListAllOptionalParams\n ): PagedAsyncIterableIterator<FeatureResult>;\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 list(\n resourceProviderNamespace: string,\n options?: FeaturesListOptionalParams\n ): PagedAsyncIterableIterator<FeatureResult>;\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 /**\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 /**\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}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/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/operationsInterfaces/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"]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { SubscriptionFeatureRegistration, SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams, SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams, SubscriptionFeatureRegistrationsGetOptionalParams, SubscriptionFeatureRegistrationsGetResponse, SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams, SubscriptionFeatureRegistrationsCreateOrUpdateResponse, SubscriptionFeatureRegistrationsDeleteOptionalParams } from "../models/index.js";
|
|
3
|
+
/** Interface representing a SubscriptionFeatureRegistrations. */
|
|
4
|
+
export interface SubscriptionFeatureRegistrations {
|
|
5
|
+
/**
|
|
6
|
+
* Returns subscription feature registrations for given subscription and provider namespace.
|
|
7
|
+
* @param providerNamespace The provider namespace.
|
|
8
|
+
* @param options The options parameters.
|
|
9
|
+
*/
|
|
10
|
+
listBySubscription(providerNamespace: string, options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<SubscriptionFeatureRegistration>;
|
|
11
|
+
/**
|
|
12
|
+
* Returns subscription feature registrations for given subscription.
|
|
13
|
+
* @param options The options parameters.
|
|
14
|
+
*/
|
|
15
|
+
listAllBySubscription(options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams): PagedAsyncIterableIterator<SubscriptionFeatureRegistration>;
|
|
16
|
+
/**
|
|
17
|
+
* Returns a feature registration
|
|
18
|
+
* @param providerNamespace The provider namespace.
|
|
19
|
+
* @param featureName The feature name.
|
|
20
|
+
* @param options The options parameters.
|
|
21
|
+
*/
|
|
22
|
+
get(providerNamespace: string, featureName: string, options?: SubscriptionFeatureRegistrationsGetOptionalParams): Promise<SubscriptionFeatureRegistrationsGetResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Create or update a feature registration.
|
|
25
|
+
* @param providerNamespace The provider namespace.
|
|
26
|
+
* @param featureName The feature name.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
createOrUpdate(providerNamespace: string, featureName: string, options?: SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams): Promise<SubscriptionFeatureRegistrationsCreateOrUpdateResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Deletes a feature registration
|
|
32
|
+
* @param providerNamespace The provider namespace.
|
|
33
|
+
* @param featureName The feature name.
|
|
34
|
+
* @param options The options parameters.
|
|
35
|
+
*/
|
|
36
|
+
delete(providerNamespace: string, featureName: string, options?: SubscriptionFeatureRegistrationsDeleteOptionalParams): Promise<void>;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=subscriptionFeatureRegistrations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptionFeatureRegistrations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/subscriptionFeatureRegistrations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,+BAA+B,EAC/B,gEAAgE,EAChE,mEAAmE,EACnE,iDAAiD,EACjD,2CAA2C,EAC3C,4DAA4D,EAC5D,sDAAsD,EACtD,oDAAoD,EACrD,MAAM,oBAAoB,CAAC;AAG5B,iEAAiE;AACjE,MAAM,WAAW,gCAAgC;IAC/C;;;;OAIG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,gEAAgE,GACzE,0BAA0B,CAAC,+BAA+B,CAAC,CAAC;IAC/D;;;OAGG;IACH,qBAAqB,CACnB,OAAO,CAAC,EAAE,mEAAmE,GAC5E,0BAA0B,CAAC,+BAA+B,CAAC,CAAC;IAC/D;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,iDAAiD,GAC1D,OAAO,CAAC,2CAA2C,CAAC,CAAC;IACxD;;;;;OAKG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,4DAA4D,GACrE,OAAO,CAAC,sDAAsD,CAAC,CAAC;IACnE;;;;;OAKG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,oDAAoD,GAC7D,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -5,6 +5,5 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export * from "./subscriptionFeatureRegistrations";
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=subscriptionFeatureRegistrations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptionFeatureRegistrations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/subscriptionFeatureRegistrations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 } from \"@azure/core-paging\";\nimport {\n SubscriptionFeatureRegistration,\n SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams,\n SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams,\n SubscriptionFeatureRegistrationsGetOptionalParams,\n SubscriptionFeatureRegistrationsGetResponse,\n SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams,\n SubscriptionFeatureRegistrationsCreateOrUpdateResponse,\n SubscriptionFeatureRegistrationsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a SubscriptionFeatureRegistrations. */\nexport interface SubscriptionFeatureRegistrations {\n /**\n * Returns subscription feature registrations for given subscription and provider namespace.\n * @param providerNamespace The provider namespace.\n * @param options The options parameters.\n */\n listBySubscription(\n providerNamespace: string,\n options?: SubscriptionFeatureRegistrationsListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<SubscriptionFeatureRegistration>;\n /**\n * Returns subscription feature registrations for given subscription.\n * @param options The options parameters.\n */\n listAllBySubscription(\n options?: SubscriptionFeatureRegistrationsListAllBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<SubscriptionFeatureRegistration>;\n /**\n * Returns a feature registration\n * @param providerNamespace The provider namespace.\n * @param featureName The feature name.\n * @param options The options parameters.\n */\n get(\n providerNamespace: string,\n featureName: string,\n options?: SubscriptionFeatureRegistrationsGetOptionalParams\n ): Promise<SubscriptionFeatureRegistrationsGetResponse>;\n /**\n * Create or update a feature registration.\n * @param providerNamespace The provider namespace.\n * @param featureName The feature name.\n * @param options The options parameters.\n */\n createOrUpdate(\n providerNamespace: string,\n featureName: string,\n options?: SubscriptionFeatureRegistrationsCreateOrUpdateOptionalParams\n ): Promise<SubscriptionFeatureRegistrationsCreateOrUpdateResponse>;\n /**\n * Deletes a feature registration\n * @param providerNamespace The provider namespace.\n * @param featureName The feature name.\n * @param options The options parameters.\n */\n delete(\n providerNamespace: string,\n featureName: string,\n options?: SubscriptionFeatureRegistrationsDeleteOptionalParams\n ): Promise<void>;\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface PageInfo {
|
|
2
|
+
continuationToken?: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Given a result page from a pageable operation, returns a
|
|
6
|
+
* continuation token that can be used to begin paging from
|
|
7
|
+
* that point later.
|
|
8
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
9
|
+
* @returns The continuation token that can be passed into byPage().
|
|
10
|
+
*/
|
|
11
|
+
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
12
|
+
export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
|
|
13
|
+
//# sourceMappingURL=pagingHelper.d.ts.map
|