@azure/arm-links 2.0.1-alpha.20220413.1 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -7
- package/LICENSE +1 -1
- package/README.md +11 -0
- package/dist/index.js +21 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/managementLinkClient.d.ts.map +1 -1
- package/dist-esm/src/managementLinkClient.js +20 -2
- package/dist-esm/src/managementLinkClient.js.map +1 -1
- package/package.json +16 -8
- package/rollup.config.js +6 -72
- package/src/managementLinkClient.ts +27 -2
- package/tsconfig.json +27 -5
package/CHANGELOG.md
CHANGED
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -16,6 +16,8 @@ Azure resources can be linked together to form logical relationships. You can es
|
|
|
16
16
|
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
|
|
17
17
|
- Latest versions of Safari, Chrome, Edge and Firefox.
|
|
18
18
|
|
|
19
|
+
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
|
|
20
|
+
|
|
19
21
|
### Prerequisites
|
|
20
22
|
|
|
21
23
|
- An [Azure subscription][azure_sub].
|
|
@@ -49,8 +51,17 @@ For more information about how to create an Azure AD Application check out [this
|
|
|
49
51
|
```javascript
|
|
50
52
|
const { ManagementLinkClient } = require("@azure/arm-links");
|
|
51
53
|
const { DefaultAzureCredential } = require("@azure/identity");
|
|
54
|
+
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
|
|
55
|
+
|
|
52
56
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
53
57
|
const client = new ManagementLinkClient(new DefaultAzureCredential(), subscriptionId);
|
|
58
|
+
|
|
59
|
+
// For client-side applications running in the browser, use this code instead:
|
|
60
|
+
// const credential = new InteractiveBrowserCredential({
|
|
61
|
+
// tenantId: "<YOUR_TENANT_ID>",
|
|
62
|
+
// clientId: "<YOUR_CLIENT_ID>"
|
|
63
|
+
// });
|
|
64
|
+
// const client = new ManagementLinkClient(credential, subscriptionId);
|
|
54
65
|
```
|
|
55
66
|
|
|
56
67
|
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var coreClient = require('@azure/core-client');
|
|
6
|
+
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
6
7
|
var tslib = require('tslib');
|
|
7
8
|
|
|
8
9
|
function _interopNamespace(e) {
|
|
@@ -24,6 +25,7 @@ function _interopNamespace(e) {
|
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
28
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
27
29
|
|
|
28
30
|
/*
|
|
29
31
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -758,6 +760,7 @@ class ManagementLinkClient extends coreClient__namespace.ServiceClient {
|
|
|
758
760
|
* @param options The parameter options
|
|
759
761
|
*/
|
|
760
762
|
constructor(credentials, subscriptionId, options) {
|
|
763
|
+
var _a, _b;
|
|
761
764
|
if (credentials === undefined) {
|
|
762
765
|
throw new Error("'credentials' cannot be null");
|
|
763
766
|
}
|
|
@@ -772,7 +775,7 @@ class ManagementLinkClient extends coreClient__namespace.ServiceClient {
|
|
|
772
775
|
requestContentType: "application/json; charset=utf-8",
|
|
773
776
|
credential: credentials
|
|
774
777
|
};
|
|
775
|
-
const packageDetails = `azsdk-js-arm-links/2.0.
|
|
778
|
+
const packageDetails = `azsdk-js-arm-links/2.0.2`;
|
|
776
779
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
777
780
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
778
781
|
: `${packageDetails}`;
|
|
@@ -781,8 +784,24 @@ class ManagementLinkClient extends coreClient__namespace.ServiceClient {
|
|
|
781
784
|
}
|
|
782
785
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
783
786
|
userAgentPrefix
|
|
784
|
-
}, baseUri: options.endpoint
|
|
787
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
785
788
|
super(optionsWithDefaults);
|
|
789
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
790
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
791
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
792
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
793
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
|
794
|
+
this.pipeline.removePolicy({
|
|
795
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
796
|
+
});
|
|
797
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
798
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
799
|
+
challengeCallbacks: {
|
|
800
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
801
|
+
}
|
|
802
|
+
}));
|
|
803
|
+
}
|
|
804
|
+
}
|
|
786
805
|
// Parameter assignments
|
|
787
806
|
this.subscriptionId = subscriptionId;
|
|
788
807
|
// Assigning values to Constant parameters
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/models/mappers.ts","../src/models/parameters.ts","../src/operations/operations.ts","../src/operations/resourceLinks.ts","../src/managementLinkClient.ts"],"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 * as coreClient from \"@azure/core-client\";\n\nexport const OperationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Operation\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Operation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\"\n }\n }\n }\n }\n};\n\nexport const OperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ResourceLink: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceLink\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Composite\",\n className: \"ResourceLinkProperties\"\n }\n }\n }\n }\n};\n\nexport const ResourceLinkProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceLinkProperties\",\n modelProperties: {\n sourceId: {\n serializedName: \"sourceId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n targetId: {\n serializedName: \"targetId\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n notes: {\n serializedName: \"notes\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ResourceLinkResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceLinkResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ResourceLink\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ResourceLinkFilter: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceLinkFilter\",\n modelProperties: {\n targetId: {\n serializedName: \"targetId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport { ResourceLink as ResourceLinkMapper } from \"../models/mappers\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2016-09-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const linkId: OperationURLParameter = {\n parameterPath: \"linkId\",\n mapper: {\n serializedName: \"linkId\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const parameters: OperationParameter = {\n parameterPath: \"parameters\",\n mapper: ResourceLinkMapper\n};\n\nexport const filter: OperationQueryParameter = {\n parameterPath: [\"options\", \"filter\"],\n mapper: {\n serializedName: \"$filter\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const subscriptionId: OperationURLParameter = {\n parameterPath: \"subscriptionId\",\n mapper: {\n serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const scope: OperationURLParameter = {\n parameterPath: \"scope\",\n mapper: {\n serializedName: \"scope\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const filter1: OperationQueryParameter = {\n parameterPath: [\"options\", \"filter\"],\n mapper: {\n defaultValue: \"atScope()\",\n isConstant: true,\n serializedName: \"$filter\",\n type: {\n name: \"String\"\n }\n }\n};\n","/*\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 { Operations } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ManagementLinkClient } from \"../managementLinkClient\";\nimport {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: ManagementLinkClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: ManagementLinkClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available Microsoft.Resources REST API operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listPagingPage(options);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation[]> {\n let result = await this._list(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available Microsoft.Resources REST API operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Resources/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\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 { ResourceLinks } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ManagementLinkClient } from \"../managementLinkClient\";\nimport {\n ResourceLink,\n ResourceLinksListAtSubscriptionNextOptionalParams,\n ResourceLinksListAtSubscriptionOptionalParams,\n ResourceLinksListAtSourceScopeNextOptionalParams,\n ResourceLinksListAtSourceScopeOptionalParams,\n ResourceLinksDeleteOptionalParams,\n ResourceLinksCreateOrUpdateOptionalParams,\n ResourceLinksCreateOrUpdateResponse,\n ResourceLinksGetOptionalParams,\n ResourceLinksGetResponse,\n ResourceLinksListAtSubscriptionResponse,\n ResourceLinksListAtSourceScopeResponse,\n ResourceLinksListAtSubscriptionNextResponse,\n ResourceLinksListAtSourceScopeNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ResourceLinks operations. */\nexport class ResourceLinksImpl implements ResourceLinks {\n private readonly client: ManagementLinkClient;\n\n /**\n * Initialize a new instance of the class ResourceLinks class.\n * @param client Reference to the service client\n */\n constructor(client: ManagementLinkClient) {\n this.client = client;\n }\n\n /**\n * Gets all the linked resources for the subscription.\n * @param options The options parameters.\n */\n public listAtSubscription(\n options?: ResourceLinksListAtSubscriptionOptionalParams\n ): PagedAsyncIterableIterator<ResourceLink> {\n const iter = this.listAtSubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listAtSubscriptionPagingPage(options);\n }\n };\n }\n\n private async *listAtSubscriptionPagingPage(\n options?: ResourceLinksListAtSubscriptionOptionalParams\n ): AsyncIterableIterator<ResourceLink[]> {\n let result = await this._listAtSubscription(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listAtSubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listAtSubscriptionPagingAll(\n options?: ResourceLinksListAtSubscriptionOptionalParams\n ): AsyncIterableIterator<ResourceLink> {\n for await (const page of this.listAtSubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of resource links at and below the specified source scope.\n * @param scope The fully qualified ID of the scope for getting the resource links. For example, to\n * list resource links at and under a resource group, set the scope to\n * /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup.\n * @param options The options parameters.\n */\n public listAtSourceScope(\n scope: string,\n options?: ResourceLinksListAtSourceScopeOptionalParams\n ): PagedAsyncIterableIterator<ResourceLink> {\n const iter = this.listAtSourceScopePagingAll(scope, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listAtSourceScopePagingPage(scope, options);\n }\n };\n }\n\n private async *listAtSourceScopePagingPage(\n scope: string,\n options?: ResourceLinksListAtSourceScopeOptionalParams\n ): AsyncIterableIterator<ResourceLink[]> {\n let result = await this._listAtSourceScope(scope, options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listAtSourceScopeNext(\n scope,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listAtSourceScopePagingAll(\n scope: string,\n options?: ResourceLinksListAtSourceScopeOptionalParams\n ): AsyncIterableIterator<ResourceLink> {\n for await (const page of this.listAtSourceScopePagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Deletes a resource link with the specified ID.\n * @param linkId The fully qualified ID of the resource link. Use the format,\n * /subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/{provider-namespace}/{resource-type}/{resource-name}/Microsoft.Resources/links/{link-name}.\n * For example,\n * /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink\n * @param options The options parameters.\n */\n delete(\n linkId: string,\n options?: ResourceLinksDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { linkId, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Creates or updates a resource link between the specified resources.\n * @param linkId The fully qualified ID of the resource link. Use the format,\n * /subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/{provider-namespace}/{resource-type}/{resource-name}/Microsoft.Resources/links/{link-name}.\n * For example,\n * /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink\n * @param parameters Parameters for creating or updating a resource link.\n * @param options The options parameters.\n */\n createOrUpdate(\n linkId: string,\n parameters: ResourceLink,\n options?: ResourceLinksCreateOrUpdateOptionalParams\n ): Promise<ResourceLinksCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { linkId, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Gets a resource link with the specified ID.\n * @param linkId The fully qualified Id of the resource link. For example,\n * /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink\n * @param options The options parameters.\n */\n get(\n linkId: string,\n options?: ResourceLinksGetOptionalParams\n ): Promise<ResourceLinksGetResponse> {\n return this.client.sendOperationRequest(\n { linkId, options },\n getOperationSpec\n );\n }\n\n /**\n * Gets all the linked resources for the subscription.\n * @param options The options parameters.\n */\n private _listAtSubscription(\n options?: ResourceLinksListAtSubscriptionOptionalParams\n ): Promise<ResourceLinksListAtSubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listAtSubscriptionOperationSpec\n );\n }\n\n /**\n * Gets a list of resource links at and below the specified source scope.\n * @param scope The fully qualified ID of the scope for getting the resource links. For example, to\n * list resource links at and under a resource group, set the scope to\n * /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup.\n * @param options The options parameters.\n */\n private _listAtSourceScope(\n scope: string,\n options?: ResourceLinksListAtSourceScopeOptionalParams\n ): Promise<ResourceLinksListAtSourceScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listAtSourceScopeOperationSpec\n );\n }\n\n /**\n * ListAtSubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListAtSubscription method.\n * @param options The options parameters.\n */\n private _listAtSubscriptionNext(\n nextLink: string,\n options?: ResourceLinksListAtSubscriptionNextOptionalParams\n ): Promise<ResourceLinksListAtSubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listAtSubscriptionNextOperationSpec\n );\n }\n\n /**\n * ListAtSourceScopeNext\n * @param scope The fully qualified ID of the scope for getting the resource links. For example, to\n * list resource links at and under a resource group, set the scope to\n * /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup.\n * @param nextLink The nextLink from the previous successful call to the ListAtSourceScope method.\n * @param options The options parameters.\n */\n private _listAtSourceScopeNext(\n scope: string,\n nextLink: string,\n options?: ResourceLinksListAtSourceScopeNextOptionalParams\n ): Promise<ResourceLinksListAtSourceScopeNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listAtSourceScopeNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/{linkId}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 204: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.linkId],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/{linkId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceLink\n },\n 201: {\n bodyMapper: Mappers.ResourceLink\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.linkId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{linkId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceLink\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.linkId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listAtSubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Resources/links\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceLinkResult\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listAtSourceScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Resources/links\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceLinkResult\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter1],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listAtSubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceLinkResult\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listAtSourceScopeNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceLinkResult\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter1],\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\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 * as coreClient from \"@azure/core-client\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { OperationsImpl, ResourceLinksImpl } from \"./operations\";\nimport { Operations, ResourceLinks } from \"./operationsInterfaces\";\nimport { ManagementLinkClientOptionalParams } from \"./models\";\n\nexport class ManagementLinkClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ManagementLinkClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ManagementLinkClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ManagementLinkClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-links/2.0.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n if (!options.credentialScopes) {\n options.credentialScopes = [\"https://management.azure.com/.default\"];\n }\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint || \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2016-09-01\";\n this.operations = new OperationsImpl(this);\n this.resourceLinks = new ResourceLinksImpl(this);\n }\n\n operations: Operations;\n resourceLinks: ResourceLinks;\n}\n"],"names":["ResourceLinkMapper","__await","__asyncValues","__asyncDelegator","serializer","coreClient","Mappers.OperationListResult","Parameters.apiVersion","Parameters.$host","Parameters.accept","Parameters.nextLink","Parameters.linkId","Mappers.ResourceLink","Parameters.parameters","Parameters.contentType","Mappers.ResourceLinkResult","Parameters.filter","Parameters.subscriptionId","Parameters.filter1","Parameters.scope"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAMG;AAII,MAAM,mBAAmB,GAA+B;AAC7D,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,WAAW;AACjB,QAAA,SAAS,EAAE,qBAAqB;AAChC,QAAA,eAAe,EAAE;AACf,YAAA,KAAK,EAAE;AACL,gBAAA,cAAc,EAAE,OAAO;AACvB,gBAAA,IAAI,EAAE;AACJ,oBAAA,IAAI,EAAE,UAAU;AAChB,oBAAA,OAAO,EAAE;AACP,wBAAA,IAAI,EAAE;AACJ,4BAAA,IAAI,EAAE,WAAW;AACjB,4BAAA,SAAS,EAAE,WAAW;AACvB,yBAAA;AACF,qBAAA;AACF,iBAAA;AACF,aAAA;AACD,YAAA,QAAQ,EAAE;AACR,gBAAA,cAAc,EAAE,UAAU;AAC1B,gBAAA,IAAI,EAAE;AACJ,oBAAA,IAAI,EAAE,QAAQ;AACf,iBAAA;AACF,aAAA;AACF,SAAA;AACF,KAAA;CACF,CAAC;AAEK,MAAM,SAAS,GAA+B;A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B,CAAC,CAAC;;AAE3B,QAAA,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;;QAGrC,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;QACrD,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,aAAa,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;KAClD;AAIF;;;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/models/mappers.ts","../src/models/parameters.ts","../src/operations/operations.ts","../src/operations/resourceLinks.ts","../src/managementLinkClient.ts"],"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 * as coreClient from \"@azure/core-client\";\n\nexport const OperationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Operation\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Operation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\"\n }\n }\n }\n }\n};\n\nexport const OperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ResourceLink: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceLink\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } }\n }\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Composite\",\n className: \"ResourceLinkProperties\"\n }\n }\n }\n }\n};\n\nexport const ResourceLinkProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceLinkProperties\",\n modelProperties: {\n sourceId: {\n serializedName: \"sourceId\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n targetId: {\n serializedName: \"targetId\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n notes: {\n serializedName: \"notes\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ResourceLinkResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceLinkResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ResourceLink\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ResourceLinkFilter: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceLinkFilter\",\n modelProperties: {\n targetId: {\n serializedName: \"targetId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport { ResourceLink as ResourceLinkMapper } from \"../models/mappers\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2016-09-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const linkId: OperationURLParameter = {\n parameterPath: \"linkId\",\n mapper: {\n serializedName: \"linkId\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const parameters: OperationParameter = {\n parameterPath: \"parameters\",\n mapper: ResourceLinkMapper\n};\n\nexport const filter: OperationQueryParameter = {\n parameterPath: [\"options\", \"filter\"],\n mapper: {\n serializedName: \"$filter\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const subscriptionId: OperationURLParameter = {\n parameterPath: \"subscriptionId\",\n mapper: {\n serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const scope: OperationURLParameter = {\n parameterPath: \"scope\",\n mapper: {\n serializedName: \"scope\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const filter1: OperationQueryParameter = {\n parameterPath: [\"options\", \"filter\"],\n mapper: {\n defaultValue: \"atScope()\",\n isConstant: true,\n serializedName: \"$filter\",\n type: {\n name: \"String\"\n }\n }\n};\n","/*\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 { Operations } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ManagementLinkClient } from \"../managementLinkClient\";\nimport {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: ManagementLinkClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: ManagementLinkClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available Microsoft.Resources REST API operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listPagingPage(options);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation[]> {\n let result = await this._list(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available Microsoft.Resources REST API operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Resources/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\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 { ResourceLinks } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ManagementLinkClient } from \"../managementLinkClient\";\nimport {\n ResourceLink,\n ResourceLinksListAtSubscriptionNextOptionalParams,\n ResourceLinksListAtSubscriptionOptionalParams,\n ResourceLinksListAtSourceScopeNextOptionalParams,\n ResourceLinksListAtSourceScopeOptionalParams,\n ResourceLinksDeleteOptionalParams,\n ResourceLinksCreateOrUpdateOptionalParams,\n ResourceLinksCreateOrUpdateResponse,\n ResourceLinksGetOptionalParams,\n ResourceLinksGetResponse,\n ResourceLinksListAtSubscriptionResponse,\n ResourceLinksListAtSourceScopeResponse,\n ResourceLinksListAtSubscriptionNextResponse,\n ResourceLinksListAtSourceScopeNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ResourceLinks operations. */\nexport class ResourceLinksImpl implements ResourceLinks {\n private readonly client: ManagementLinkClient;\n\n /**\n * Initialize a new instance of the class ResourceLinks class.\n * @param client Reference to the service client\n */\n constructor(client: ManagementLinkClient) {\n this.client = client;\n }\n\n /**\n * Gets all the linked resources for the subscription.\n * @param options The options parameters.\n */\n public listAtSubscription(\n options?: ResourceLinksListAtSubscriptionOptionalParams\n ): PagedAsyncIterableIterator<ResourceLink> {\n const iter = this.listAtSubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listAtSubscriptionPagingPage(options);\n }\n };\n }\n\n private async *listAtSubscriptionPagingPage(\n options?: ResourceLinksListAtSubscriptionOptionalParams\n ): AsyncIterableIterator<ResourceLink[]> {\n let result = await this._listAtSubscription(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listAtSubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listAtSubscriptionPagingAll(\n options?: ResourceLinksListAtSubscriptionOptionalParams\n ): AsyncIterableIterator<ResourceLink> {\n for await (const page of this.listAtSubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of resource links at and below the specified source scope.\n * @param scope The fully qualified ID of the scope for getting the resource links. For example, to\n * list resource links at and under a resource group, set the scope to\n * /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup.\n * @param options The options parameters.\n */\n public listAtSourceScope(\n scope: string,\n options?: ResourceLinksListAtSourceScopeOptionalParams\n ): PagedAsyncIterableIterator<ResourceLink> {\n const iter = this.listAtSourceScopePagingAll(scope, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listAtSourceScopePagingPage(scope, options);\n }\n };\n }\n\n private async *listAtSourceScopePagingPage(\n scope: string,\n options?: ResourceLinksListAtSourceScopeOptionalParams\n ): AsyncIterableIterator<ResourceLink[]> {\n let result = await this._listAtSourceScope(scope, options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listAtSourceScopeNext(\n scope,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listAtSourceScopePagingAll(\n scope: string,\n options?: ResourceLinksListAtSourceScopeOptionalParams\n ): AsyncIterableIterator<ResourceLink> {\n for await (const page of this.listAtSourceScopePagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Deletes a resource link with the specified ID.\n * @param linkId The fully qualified ID of the resource link. Use the format,\n * /subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/{provider-namespace}/{resource-type}/{resource-name}/Microsoft.Resources/links/{link-name}.\n * For example,\n * /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink\n * @param options The options parameters.\n */\n delete(\n linkId: string,\n options?: ResourceLinksDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { linkId, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Creates or updates a resource link between the specified resources.\n * @param linkId The fully qualified ID of the resource link. Use the format,\n * /subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/{provider-namespace}/{resource-type}/{resource-name}/Microsoft.Resources/links/{link-name}.\n * For example,\n * /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink\n * @param parameters Parameters for creating or updating a resource link.\n * @param options The options parameters.\n */\n createOrUpdate(\n linkId: string,\n parameters: ResourceLink,\n options?: ResourceLinksCreateOrUpdateOptionalParams\n ): Promise<ResourceLinksCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { linkId, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Gets a resource link with the specified ID.\n * @param linkId The fully qualified Id of the resource link. For example,\n * /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink\n * @param options The options parameters.\n */\n get(\n linkId: string,\n options?: ResourceLinksGetOptionalParams\n ): Promise<ResourceLinksGetResponse> {\n return this.client.sendOperationRequest(\n { linkId, options },\n getOperationSpec\n );\n }\n\n /**\n * Gets all the linked resources for the subscription.\n * @param options The options parameters.\n */\n private _listAtSubscription(\n options?: ResourceLinksListAtSubscriptionOptionalParams\n ): Promise<ResourceLinksListAtSubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listAtSubscriptionOperationSpec\n );\n }\n\n /**\n * Gets a list of resource links at and below the specified source scope.\n * @param scope The fully qualified ID of the scope for getting the resource links. For example, to\n * list resource links at and under a resource group, set the scope to\n * /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup.\n * @param options The options parameters.\n */\n private _listAtSourceScope(\n scope: string,\n options?: ResourceLinksListAtSourceScopeOptionalParams\n ): Promise<ResourceLinksListAtSourceScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listAtSourceScopeOperationSpec\n );\n }\n\n /**\n * ListAtSubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListAtSubscription method.\n * @param options The options parameters.\n */\n private _listAtSubscriptionNext(\n nextLink: string,\n options?: ResourceLinksListAtSubscriptionNextOptionalParams\n ): Promise<ResourceLinksListAtSubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listAtSubscriptionNextOperationSpec\n );\n }\n\n /**\n * ListAtSourceScopeNext\n * @param scope The fully qualified ID of the scope for getting the resource links. For example, to\n * list resource links at and under a resource group, set the scope to\n * /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup.\n * @param nextLink The nextLink from the previous successful call to the ListAtSourceScope method.\n * @param options The options parameters.\n */\n private _listAtSourceScopeNext(\n scope: string,\n nextLink: string,\n options?: ResourceLinksListAtSourceScopeNextOptionalParams\n ): Promise<ResourceLinksListAtSourceScopeNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listAtSourceScopeNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/{linkId}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 204: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.linkId],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/{linkId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceLink\n },\n 201: {\n bodyMapper: Mappers.ResourceLink\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.linkId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{linkId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceLink\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.linkId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listAtSubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Resources/links\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceLinkResult\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listAtSourceScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Resources/links\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceLinkResult\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter1],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listAtSubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceLinkResult\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listAtSourceScopeNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceLinkResult\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter1],\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\n","/*\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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { OperationsImpl, ResourceLinksImpl } from \"./operations\";\nimport { Operations, ResourceLinks } from \"./operationsInterfaces\";\nimport { ManagementLinkClientOptionalParams } from \"./models\";\n\nexport class ManagementLinkClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ManagementLinkClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ManagementLinkClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ManagementLinkClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-links/2.0.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n if (!options.credentialScopes) {\n options.credentialScopes = [\"https://management.azure.com/.default\"];\n }\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n if (!bearerTokenAuthenticationPolicyFound) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n scopes: `${optionsWithDefaults.baseUri}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2016-09-01\";\n this.operations = new OperationsImpl(this);\n this.resourceLinks = new ResourceLinksImpl(this);\n }\n\n operations: Operations;\n resourceLinks: ResourceLinks;\n}\n"],"names":["ResourceLinkMapper","__await","__asyncValues","__asyncDelegator","serializer","coreClient","Mappers.OperationListResult","Parameters.apiVersion","Parameters.$host","Parameters.accept","Parameters.nextLink","Parameters.linkId","Mappers.ResourceLink","Parameters.parameters","Parameters.contentType","Mappers.ResourceLinkResult","Parameters.filter","Parameters.subscriptionId","Parameters.filter1","Parameters.scope","coreRestPipeline"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAMG;AAII,MAAM,mBAAmB,GAA+B;AAC7D,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,WAAW;AACjB,QAAA,SAAS,EAAE,qBAAqB;AAChC,QAAA,eAAe,EAAE;AACf,YAAA,KAAK,EAAE;AACL,gBAAA,cAAc,EAAE,OAAO;AACvB,gBAAA,IAAI,EAAE;AACJ,oBAAA,IAAI,EAAE,UAAU;AAChB,oBAAA,OAAO,EAAE;AACP,wBAAA,IAAI,EAAE;AACJ,4BAAA,IAAI,EAAE,WAAW;AACjB,4BAAA,SAAS,EAAE,WAAW;AACvB,yBAAA;AACF,qBAAA;AACF,iBAAA;AACF,aAAA;AACD,YAAA,QAAQ,EAAE;AACR,gBAAA,cAAc,EAAE,UAAU;AAC1B,gBAAA,IAAI,EAAE;AACJ,oBAAA,IAAI,EAAE,QAAQ;AACf,iBAAA;AACF,aAAA;AACF,SAAA;AACF,KAAA;CACF,CAAC;AAEK,MAAM,SAAS,GAA+B;AACnD,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,WAAW;AACjB,QAAA,SAAS,EAAE,WAAW;AACtB,QAAA,eAAe,EAAE;AACf,YAAA,IAAI,EAAE;AACJ,gBAAA,cAAc,EAAE,MAAM;AACtB,gBAAA,IAAI,EAAE;AACJ,oBAAA,IAAI,EAAE,QAAQ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Module",{value:!0});var coreClient=require("@azure/core-client"),tslib=require("tslib");function _interopNamespace(i){if(i&&i.__esModule)return i;var r=Object.create(null);return i&&Object.keys(i).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(i,e),Object.defineProperty(r,e,t.get?t:{enumerable:!0,get:function(){return i[e]}}))}),r.default=i,Object.freeze(r)}var coreClient__namespace=_interopNamespace(coreClient);const OperationListResult={type:{name:"Composite",className:"OperationListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Operation"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},Operation={type:{name:"Composite",className:"Operation",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}}}}},ResourceLink={type:{name:"Composite",className:"ResourceLink",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"Dictionary",value:{type:{name:"any"}}}},properties:{serializedName:"properties",type:{name:"Composite",className:"ResourceLinkProperties"}}}}},ResourceLinkProperties={type:{name:"Composite",className:"ResourceLinkProperties",modelProperties:{sourceId:{serializedName:"sourceId",readOnly:!0,type:{name:"String"}},targetId:{serializedName:"targetId",required:!0,type:{name:"String"}},notes:{serializedName:"notes",type:{name:"String"}}}}},ResourceLinkResult={type:{name:"Composite",className:"ResourceLinkResult",modelProperties:{value:{serializedName:"value",required:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ResourceLink"}}}},nextLink:{serializedName:"nextLink",readOnly:!0,type:{name:"String"}}}}},ResourceLinkFilter={type:{name:"Composite",className:"ResourceLinkFilter",modelProperties:{targetId:{serializedName:"targetId",required:!0,type:{name:"String"}}}}};var Mappers=Object.freeze({__proto__:null,OperationListResult:OperationListResult,Operation:Operation,OperationDisplay:OperationDisplay,ResourceLink:ResourceLink,ResourceLinkProperties:ResourceLinkProperties,ResourceLinkResult:ResourceLinkResult,ResourceLinkFilter:ResourceLinkFilter});const accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2016-09-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0},linkId={parameterPath:"linkId",mapper:{serializedName:"linkId",required:!0,type:{name:"String"}},skipEncoding:!0},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},parameters={parameterPath:"parameters",mapper:ResourceLink},filter={parameterPath:["options","filter"],mapper:{serializedName:"$filter",type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},scope={parameterPath:"scope",mapper:{serializedName:"scope",required:!0,type:{name:"String"}},skipEncoding:!0},filter1={parameterPath:["options","filter"],mapper:{defaultValue:"atScope()",isConstant:!0,serializedName:"$filter",type:{name:"String"}}};class OperationsImpl{constructor(e){this.client=e}list(e){const t=this.listPagingAll(e);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(i));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listNext(t,i)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(s){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var i,r=tslib.__asyncValues(this.listPagingPage(s));!(i=yield tslib.__await(r.next())).done;){var a=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&(yield tslib.__await(e.call(r)))}finally{if(t)throw t.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listNextOperationSpec)}}const serializer$1=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.Resources/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$1};class ResourceLinksImpl{constructor(e){this.client=e}listAtSubscription(e){const t=this.listAtSubscriptionPagingAll(e);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listAtSubscriptionPagingPage(e)}}listAtSubscriptionPagingPage(i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listAtSubscription(i));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listAtSubscriptionNext(t,i)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listAtSubscriptionPagingAll(s){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var i,r=tslib.__asyncValues(this.listAtSubscriptionPagingPage(s));!(i=yield tslib.__await(r.next())).done;){var a=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&(yield tslib.__await(e.call(r)))}finally{if(t)throw t.error}}})}listAtSourceScope(e,t){const i=this.listAtSourceScopePagingAll(e,t);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listAtSourceScopePagingPage(e,t)}}listAtSourceScopePagingPage(i,r){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listAtSourceScope(i,r));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listAtSourceScopeNext(i,t,r)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listAtSourceScopePagingAll(s,n){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var i,r=tslib.__asyncValues(this.listAtSourceScopePagingPage(s,n));!(i=yield tslib.__await(r.next())).done;){var a=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&(yield tslib.__await(e.call(r)))}finally{if(t)throw t.error}}})}delete(e,t){return this.client.sendOperationRequest({linkId:e,options:t},deleteOperationSpec)}createOrUpdate(e,t,i){return this.client.sendOperationRequest({linkId:e,parameters:t,options:i},createOrUpdateOperationSpec)}get(e,t){return this.client.sendOperationRequest({linkId:e,options:t},getOperationSpec)}_listAtSubscription(e){return this.client.sendOperationRequest({options:e},listAtSubscriptionOperationSpec)}_listAtSourceScope(e,t){return this.client.sendOperationRequest({scope:e,options:t},listAtSourceScopeOperationSpec)}_listAtSubscriptionNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listAtSubscriptionNextOperationSpec)}_listAtSourceScopeNext(e,t,i){return this.client.sendOperationRequest({scope:e,nextLink:t,options:i},listAtSourceScopeNextOperationSpec)}}const serializer=coreClient__namespace.createSerializer(Mappers,!1),deleteOperationSpec={path:"/{linkId}",httpMethod:"DELETE",responses:{200:{},204:{}},queryParameters:[apiVersion],urlParameters:[$host,linkId],serializer:serializer},createOrUpdateOperationSpec={path:"/{linkId}",httpMethod:"PUT",responses:{200:{bodyMapper:ResourceLink},201:{bodyMapper:ResourceLink}},requestBody:parameters,queryParameters:[apiVersion],urlParameters:[$host,linkId],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},getOperationSpec={path:"/{linkId}",httpMethod:"GET",responses:{200:{bodyMapper:ResourceLink}},queryParameters:[apiVersion],urlParameters:[$host,linkId],headerParameters:[accept],serializer:serializer},listAtSubscriptionOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.Resources/links",httpMethod:"GET",responses:{200:{bodyMapper:ResourceLinkResult}},queryParameters:[apiVersion,filter],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer},listAtSourceScopeOperationSpec={path:"/{scope}/providers/Microsoft.Resources/links",httpMethod:"GET",responses:{200:{bodyMapper:ResourceLinkResult}},queryParameters:[apiVersion,filter1],urlParameters:[$host,scope],headerParameters:[accept],serializer:serializer},listAtSubscriptionNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ResourceLinkResult}},queryParameters:[apiVersion,filter],urlParameters:[$host,nextLink,subscriptionId],headerParameters:[accept],serializer:serializer},listAtSourceScopeNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ResourceLinkResult}},queryParameters:[apiVersion,filter1],urlParameters:[$host,nextLink,scope],headerParameters:[accept],serializer:serializer};class ManagementLinkClient extends coreClient__namespace.ServiceClient{constructor(e,t,i){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===t)throw new Error("'subscriptionId' cannot be null");var e={requestContentType:"application/json; charset=utf-8",credential:e},r="azsdk-js-arm-links/2.0.0",r=(i=i||{}).userAgentOptions&&i.userAgentOptions.userAgentPrefix?i.userAgentOptions.userAgentPrefix+" "+r:r,e=(i.credentialScopes||(i.credentialScopes=["https://management.azure.com/.default"]),Object.assign(Object.assign(Object.assign({},e),i),{userAgentOptions:{userAgentPrefix:r},baseUri:i.endpoint||"https://management.azure.com"}));super(e),this.subscriptionId=t,this.$host=i.$host||"https://management.azure.com",this.apiVersion=i.apiVersion||"2016-09-01",this.operations=new OperationsImpl(this),this.resourceLinks=new ResourceLinksImpl(this)}}exports.ManagementLinkClient=ManagementLinkClient;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var coreClient=require("@azure/core-client"),coreRestPipeline=require("@azure/core-rest-pipeline"),tslib=require("tslib");function _interopNamespace(i){if(i&&i.__esModule)return i;var r=Object.create(null);return i&&Object.keys(i).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(i,e),Object.defineProperty(r,e,t.get?t:{enumerable:!0,get:function(){return i[e]}}))}),r.default=i,Object.freeze(r)}var coreClient__namespace=_interopNamespace(coreClient),coreRestPipeline__namespace=_interopNamespace(coreRestPipeline);const OperationListResult={type:{name:"Composite",className:"OperationListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Operation"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},Operation={type:{name:"Composite",className:"Operation",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}}}}},ResourceLink={type:{name:"Composite",className:"ResourceLink",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"Dictionary",value:{type:{name:"any"}}}},properties:{serializedName:"properties",type:{name:"Composite",className:"ResourceLinkProperties"}}}}},ResourceLinkProperties={type:{name:"Composite",className:"ResourceLinkProperties",modelProperties:{sourceId:{serializedName:"sourceId",readOnly:!0,type:{name:"String"}},targetId:{serializedName:"targetId",required:!0,type:{name:"String"}},notes:{serializedName:"notes",type:{name:"String"}}}}},ResourceLinkResult={type:{name:"Composite",className:"ResourceLinkResult",modelProperties:{value:{serializedName:"value",required:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ResourceLink"}}}},nextLink:{serializedName:"nextLink",readOnly:!0,type:{name:"String"}}}}},ResourceLinkFilter={type:{name:"Composite",className:"ResourceLinkFilter",modelProperties:{targetId:{serializedName:"targetId",required:!0,type:{name:"String"}}}}};var Mappers=Object.freeze({__proto__:null,OperationListResult:OperationListResult,Operation:Operation,OperationDisplay:OperationDisplay,ResourceLink:ResourceLink,ResourceLinkProperties:ResourceLinkProperties,ResourceLinkResult:ResourceLinkResult,ResourceLinkFilter:ResourceLinkFilter});const accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2016-09-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0},linkId={parameterPath:"linkId",mapper:{serializedName:"linkId",required:!0,type:{name:"String"}},skipEncoding:!0},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},parameters={parameterPath:"parameters",mapper:ResourceLink},filter={parameterPath:["options","filter"],mapper:{serializedName:"$filter",type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},scope={parameterPath:"scope",mapper:{serializedName:"scope",required:!0,type:{name:"String"}},skipEncoding:!0},filter1={parameterPath:["options","filter"],mapper:{defaultValue:"atScope()",isConstant:!0,serializedName:"$filter",type:{name:"String"}}};class OperationsImpl{constructor(e){this.client=e}list(e){const t=this.listPagingAll(e);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(i));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listNext(t,i)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(s){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var i,r=tslib.__asyncValues(this.listPagingPage(s));!(i=yield tslib.__await(r.next())).done;){var a=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&(yield tslib.__await(e.call(r)))}finally{if(t)throw t.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listNextOperationSpec)}}const serializer$1=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.Resources/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$1};class ResourceLinksImpl{constructor(e){this.client=e}listAtSubscription(e){const t=this.listAtSubscriptionPagingAll(e);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listAtSubscriptionPagingPage(e)}}listAtSubscriptionPagingPage(i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listAtSubscription(i));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listAtSubscriptionNext(t,i)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listAtSubscriptionPagingAll(s){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var i,r=tslib.__asyncValues(this.listAtSubscriptionPagingPage(s));!(i=yield tslib.__await(r.next())).done;){var a=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&(yield tslib.__await(e.call(r)))}finally{if(t)throw t.error}}})}listAtSourceScope(e,t){const i=this.listAtSourceScopePagingAll(e,t);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listAtSourceScopePagingPage(e,t)}}listAtSourceScopePagingPage(i,r){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listAtSourceScope(i,r));yield yield tslib.__await(e.value||[]);let t=e.nextLink;for(;t;)e=yield tslib.__await(this._listAtSourceScopeNext(i,t,r)),t=e.nextLink,yield yield tslib.__await(e.value||[])})}listAtSourceScopePagingAll(s,n){return tslib.__asyncGenerator(this,arguments,function*(){var t,e;try{for(var i,r=tslib.__asyncValues(this.listAtSourceScopePagingPage(s,n));!(i=yield tslib.__await(r.next())).done;){var a=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&(yield tslib.__await(e.call(r)))}finally{if(t)throw t.error}}})}delete(e,t){return this.client.sendOperationRequest({linkId:e,options:t},deleteOperationSpec)}createOrUpdate(e,t,i){return this.client.sendOperationRequest({linkId:e,parameters:t,options:i},createOrUpdateOperationSpec)}get(e,t){return this.client.sendOperationRequest({linkId:e,options:t},getOperationSpec)}_listAtSubscription(e){return this.client.sendOperationRequest({options:e},listAtSubscriptionOperationSpec)}_listAtSourceScope(e,t){return this.client.sendOperationRequest({scope:e,options:t},listAtSourceScopeOperationSpec)}_listAtSubscriptionNext(e,t){return this.client.sendOperationRequest({nextLink:e,options:t},listAtSubscriptionNextOperationSpec)}_listAtSourceScopeNext(e,t,i){return this.client.sendOperationRequest({scope:e,nextLink:t,options:i},listAtSourceScopeNextOperationSpec)}}const serializer=coreClient__namespace.createSerializer(Mappers,!1),deleteOperationSpec={path:"/{linkId}",httpMethod:"DELETE",responses:{200:{},204:{}},queryParameters:[apiVersion],urlParameters:[$host,linkId],serializer:serializer},createOrUpdateOperationSpec={path:"/{linkId}",httpMethod:"PUT",responses:{200:{bodyMapper:ResourceLink},201:{bodyMapper:ResourceLink}},requestBody:parameters,queryParameters:[apiVersion],urlParameters:[$host,linkId],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},getOperationSpec={path:"/{linkId}",httpMethod:"GET",responses:{200:{bodyMapper:ResourceLink}},queryParameters:[apiVersion],urlParameters:[$host,linkId],headerParameters:[accept],serializer:serializer},listAtSubscriptionOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.Resources/links",httpMethod:"GET",responses:{200:{bodyMapper:ResourceLinkResult}},queryParameters:[apiVersion,filter],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer},listAtSourceScopeOperationSpec={path:"/{scope}/providers/Microsoft.Resources/links",httpMethod:"GET",responses:{200:{bodyMapper:ResourceLinkResult}},queryParameters:[apiVersion,filter1],urlParameters:[$host,scope],headerParameters:[accept],serializer:serializer},listAtSubscriptionNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ResourceLinkResult}},queryParameters:[apiVersion,filter],urlParameters:[$host,nextLink,subscriptionId],headerParameters:[accept],serializer:serializer},listAtSourceScopeNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ResourceLinkResult}},queryParameters:[apiVersion,filter1],urlParameters:[$host,nextLink,scope],headerParameters:[accept],serializer:serializer};class ManagementLinkClient extends coreClient__namespace.ServiceClient{constructor(e,t,i){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===t)throw new Error("'subscriptionId' cannot be null");var e={requestContentType:"application/json; charset=utf-8",credential:e},r="azsdk-js-arm-links/2.0.2",r=(i=i||{}).userAgentOptions&&i.userAgentOptions.userAgentPrefix?i.userAgentOptions.userAgentPrefix+" "+r:r,e=(i.credentialScopes||(i.credentialScopes=["https://management.azure.com/.default"]),Object.assign(Object.assign(Object.assign({},e),i),{userAgentOptions:{userAgentPrefix:r},baseUri:null!=(r=null!=(e=i.endpoint)?e:i.baseUri)?r:"https://management.azure.com"}));if(super(e),null!=i&&i.pipeline&&0<i.pipeline.getOrderedPolicies().length){const a=i.pipeline.getOrderedPolicies();a.some(e=>e.name===coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName)||(this.pipeline.removePolicy({name:coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName}),this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({scopes:e.baseUri+"/.default",challengeCallbacks:{authorizeRequestOnChallenge:coreClient__namespace.authorizeRequestOnClaimChallenge}})))}this.subscriptionId=t,this.$host=i.$host||"https://management.azure.com",this.apiVersion=i.apiVersion||"2016-09-01",this.operations=new OperationsImpl(this),this.resourceLinks=new ResourceLinksImpl(this)}}exports.ManagementLinkClient=ManagementLinkClient;
|
package/dist/index.min.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/models/mappers.ts","../src/models/parameters.ts","../src/operations/operations.ts","../src/operations/resourceLinks.ts","../src/managementLinkClient.ts"],"names":["OperationListResult","type","name","className","modelProperties","value","serializedName","element","nextLink","Operation","display","OperationDisplay","provider","resource","operation","description","ResourceLink","id","readOnly","properties","ResourceLinkProperties","sourceId","targetId","required","notes","ResourceLinkResult","ResourceLinkFilter","accept","parameterPath","mapper","defaultValue","isConstant","$host","skipEncoding","apiVersion","linkId","contentType","parameters","ResourceLinkMapper","filter","subscriptionId","scope","filter1","OperationsImpl","constructor","client","this","list","options","iter","listPagingAll","next","Symbol","asyncIterator","byPage","listPagingPage","let","result","__await","_list","continuationToken","_listNext","_c","_b","__asyncValues","done","page","__asyncDelegator","sendOperationRequest","listOperationSpec","listNextOperationSpec","serializer","coreClient","createSerializer","Mappers","path","httpMethod","responses","200","bodyMapper","Mappers.OperationListResult","queryParameters","Parameters.apiVersion","urlParameters","Parameters.$host","headerParameters","Parameters.accept","Parameters.nextLink","ResourceLinksImpl","listAtSubscription","listAtSubscriptionPagingAll","listAtSubscriptionPagingPage","_listAtSubscription","_listAtSubscriptionNext","listAtSourceScope","listAtSourceScopePagingAll","listAtSourceScopePagingPage","_listAtSourceScope","_listAtSourceScopeNext","delete","deleteOperationSpec","createOrUpdate","createOrUpdateOperationSpec","get","getOperationSpec","listAtSubscriptionOperationSpec","listAtSourceScopeOperationSpec","listAtSubscriptionNextOperationSpec","listAtSourceScopeNextOperationSpec","204","Parameters.linkId","Mappers.ResourceLink","201","requestBody","Parameters.parameters","Parameters.contentType","mediaType","Mappers.ResourceLinkResult","Parameters.filter","Parameters.subscriptionId","Parameters.filter1","Parameters.scope","ManagementLinkClient","ServiceClient","credentials","undefined","Error","defaults","requestContentType","credential","packageDetails","userAgentPrefix","userAgentOptions","optionsWithDefaults","credentialScopes","Object","assign","baseUri","endpoint","super","operations","resourceLinks"],"mappings":"6eAUO,MAAMA,oBAAkD,CAC7DC,KAAM,CACJC,KAAM,YACNC,UAAW,sBACXC,gBAAiB,CACfC,MAAO,CACLC,eAAgB,QAChBL,KAAM,CACJC,KAAM,WACNK,QAAS,CACPN,KAAM,CACJC,KAAM,YACNC,UAAW,gBAKnBK,SAAU,CACRF,eAAgB,WAChBL,KAAM,CACJC,KAAM,cAOHO,UAAwC,CACnDR,KAAM,CACJC,KAAM,YACNC,UAAW,YACXC,gBAAiB,CACfF,KAAM,CACJI,eAAgB,OAChBL,KAAM,CACJC,KAAM,WAGVQ,QAAS,CACPJ,eAAgB,UAChBL,KAAM,CACJC,KAAM,YACNC,UAAW,wBAORQ,iBAA+C,CAC1DV,KAAM,CACJC,KAAM,YACNC,UAAW,mBACXC,gBAAiB,CACfQ,SAAU,CACRN,eAAgB,WAChBL,KAAM,CACJC,KAAM,WAGVW,SAAU,CACRP,eAAgB,WAChBL,KAAM,CACJC,KAAM,WAGVY,UAAW,CACTR,eAAgB,YAChBL,KAAM,CACJC,KAAM,WAGVa,YAAa,CACXT,eAAgB,cAChBL,KAAM,CACJC,KAAM,cAOHc,aAA2C,CACtDf,KAAM,CACJC,KAAM,YACNC,UA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AQ0F,UAAY,kCAE/BC,MAAMN,GAENvF,KAAKN,eAAiBA,EAGtBM,KAAKd,MAAQgB,EAAQhB,OAAS,+BAC9Bc,KAAKZ,WAAac,EAAQd,YAAc,aACxCY,KAAK8F,WAAa,IAAIjG,eAAeG,MACrCA,KAAK+F,cAAgB,IAAIrD,kBAAkB1C,O"}
|
|
1
|
+
{"version":3,"sources":["../src/models/mappers.ts","../src/models/parameters.ts","../src/operations/operations.ts","../src/operations/resourceLinks.ts","../src/managementLinkClient.ts"],"names":["OperationListResult","type","name","className","modelProperties","value","serializedName","element","nextLink","Operation","display","OperationDisplay","provider","resource","operation","description","ResourceLink","id","readOnly","properties","ResourceLinkProperties","sourceId","targetId","required","notes","ResourceLinkResult","ResourceLinkFilter","accept","parameterPath","mapper","defaultValue","isConstant","$host","skipEncoding","apiVersion","linkId","contentType","parameters","ResourceLinkMapper","filter","subscriptionId","scope","filter1","OperationsImpl","constructor","client","this","list","options","iter","listPagingAll","next","Symbol","asyncIterator","byPage","listPagingPage","let","result","__await","_list","continuationToken","_listNext","_c","_b","__asyncValues","done","page","__asyncDelegator","sendOperationRequest","listOperationSpec","listNextOperationSpec","serializer","coreClient","createSerializer","Mappers","path","httpMethod","responses","200","bodyMapper","Mappers.OperationListResult","queryParameters","Parameters.apiVersion","urlParameters","Parameters.$host","headerParameters","Parameters.accept","Parameters.nextLink","ResourceLinksImpl","listAtSubscription","listAtSubscriptionPagingAll","listAtSubscriptionPagingPage","_listAtSubscription","_listAtSubscriptionNext","listAtSourceScope","listAtSourceScopePagingAll","listAtSourceScopePagingPage","_listAtSourceScope","_listAtSourceScopeNext","delete","deleteOperationSpec","createOrUpdate","createOrUpdateOperationSpec","get","getOperationSpec","listAtSubscriptionOperationSpec","listAtSourceScopeOperationSpec","listAtSubscriptionNextOperationSpec","listAtSourceScopeNextOperationSpec","204","Parameters.linkId","Mappers.ResourceLink","201","requestBody","Parameters.parameters","Parameters.contentType","mediaType","Mappers.ResourceLinkResult","Parameters.filter","Parameters.subscriptionId","Parameters.filter1","Parameters.scope","ManagementLinkClient","ServiceClient","credentials","undefined","Error","defaults","requestContentType","credential","packageDetails","userAgentPrefix","userAgentOptions","optionsWithDefaults","credentialScopes","Object","assign","baseUri","_a","endpoint","super","pipeline","getOrderedPolicies","length","pipelinePolicies","some","pipelinePolicy","coreRestPipeline","bearerTokenAuthenticationPolicyName","removePolicy","addPolicy","bearerTokenAuthenticationPolicy","scopes","challengeCallbacks","authorizeRequestOnChallenge","authorizeRequestOnClaimChallenge","operations","resourceLinks"],"mappings":"mmBAUO,MAAMA,oBAAkD,CAC7DC,KAAM,CACJC,KAAM,YACNC,UAAW,sBACXC,gBAAiB,CACfC,MAAO,CACLC,eAAgB,QAChBL,KAAM,CACJC,KAAM,WACNK,QAAS,CACPN,KAAM,CACJC,KAAM,YACNC,UAAW,gBAKnBK,SAAU,CACRF,eAAgB,WAChBL,KAAM,CACJC,KAAM,cAOHO,UAAwC,CACnDR,KAAM,CACJC,KAAM,YACNC,UAAW,YACXC,gBAAiB,CACfF,KAAM,CACJI,eAAgB,OAChBL,KAAM,CACJC,KAAM,WAGVQ,QAAS,CACPJ,eAAgB,UAChBL,KAAM,CACJC,KAAM,YACNC,UAAW,wBAORQ,iBAA+C,CAC1DV,KAAM,CACJC,KAAM,YACNC,UAAW,mBACXC,gBAAiB,CACfQ,SAAU,CACRN,eAAgB,WAChBL,KAAM,CACJC,KAAM,WAGVW,SAAU,CACRP,eAAgB,WAChBL,KAAM,CACJC,KAAM,WAGVY,UAAW,CACTR,eAAgB,YAChBL,KAAM,CACJC,KAAM,WAGVa,YAAa,CACXT,eAAgB,cAChBL,KAAM,CACJC,KAAM,cAOHc,aAA2C,CACtDf,KAAM,CACJC,KAAM,YACNC,UAAW,eACXC,gBAAiB,CACfa,GAAI,CACFX,eAAgB,KAChBY,UAAU,EACVjB,KAAM,CACJC,KAAM,WAGVA,KAAM,CACJI,eAAgB,OAChBY,UAAU,EACVjB,KAAM,CACJC,KAAM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F,EAAQ6F,SAASC,qBAAqBC,OAAY,CACzE,MAAMC,EAAsDhG,EAAQ6F,SAASC,qBAChCE,EAAiBC,KAC5D,GACEC,EAAehJ,OACfiJ,4BAAiBC,uCAGnBtG,KAAK+F,SAASQ,aAAa,CACzBnJ,KAAMiJ,4BAAiBC,sCAEzBtG,KAAK+F,SAASS,UACZH,4BAAiBI,gCAAgC,CAC/CC,OAAWnB,EAAoBI,QAAvB,YACRgB,mBAAoB,CAClBC,4BACElF,sBAAWmF,sCAOvB7G,KAAKN,eAAiBA,EAGtBM,KAAKd,MAAQgB,EAAQhB,OAAS,+BAC9Bc,KAAKZ,WAAac,EAAQd,YAAc,aACxCY,KAAK8G,WAAa,IAAIjH,eAAeG,MACrCA,KAAK+G,cAAgB,IAAIrE,kBAAkB1C,O"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managementLinkClient.d.ts","sourceRoot":"","sources":["../../src/managementLinkClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"managementLinkClient.d.ts","sourceRoot":"","sources":["../../src/managementLinkClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,kCAAkC,EAAE,MAAM,UAAU,CAAC;AAE9D,qBAAa,oBAAqB,SAAQ,UAAU,CAAC,aAAa;IAChE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,kCAAkC;IAsE9C,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,aAAa,CAAC;CAC9B"}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
import * as coreClient from "@azure/core-client";
|
|
9
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
9
10
|
import { OperationsImpl, ResourceLinksImpl } from "./operations";
|
|
10
11
|
export class ManagementLinkClient extends coreClient.ServiceClient {
|
|
11
12
|
/**
|
|
@@ -15,6 +16,7 @@ export class ManagementLinkClient extends coreClient.ServiceClient {
|
|
|
15
16
|
* @param options The parameter options
|
|
16
17
|
*/
|
|
17
18
|
constructor(credentials, subscriptionId, options) {
|
|
19
|
+
var _a, _b;
|
|
18
20
|
if (credentials === undefined) {
|
|
19
21
|
throw new Error("'credentials' cannot be null");
|
|
20
22
|
}
|
|
@@ -29,7 +31,7 @@ export class ManagementLinkClient extends coreClient.ServiceClient {
|
|
|
29
31
|
requestContentType: "application/json; charset=utf-8",
|
|
30
32
|
credential: credentials
|
|
31
33
|
};
|
|
32
|
-
const packageDetails = `azsdk-js-arm-links/2.0.
|
|
34
|
+
const packageDetails = `azsdk-js-arm-links/2.0.2`;
|
|
33
35
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
34
36
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
35
37
|
: `${packageDetails}`;
|
|
@@ -38,8 +40,24 @@ export class ManagementLinkClient extends coreClient.ServiceClient {
|
|
|
38
40
|
}
|
|
39
41
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
40
42
|
userAgentPrefix
|
|
41
|
-
}, baseUri: options.endpoint
|
|
43
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
42
44
|
super(optionsWithDefaults);
|
|
45
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
46
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
47
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
48
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
49
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
|
50
|
+
this.pipeline.removePolicy({
|
|
51
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
52
|
+
});
|
|
53
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
54
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
55
|
+
challengeCallbacks: {
|
|
56
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
57
|
+
}
|
|
58
|
+
}));
|
|
59
|
+
}
|
|
60
|
+
}
|
|
43
61
|
// Parameter assignments
|
|
44
62
|
this.subscriptionId = subscriptionId;
|
|
45
63
|
// Assigning values to Constant parameters
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managementLinkClient.js","sourceRoot":"","sources":["../../src/managementLinkClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"managementLinkClient.js","sourceRoot":"","sources":["../../src/managementLinkClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAIjE,MAAM,OAAO,oBAAqB,SAAQ,UAAU,CAAC,aAAa;IAKhE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA4C;;QAE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AAI;gBACnB,gBAAgB,CAAC,mCAAmC,CACvD,CAAC;YACF,IAAI,CAAC,oCAAoC,EAAE;gBACzC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC;oBACzB,IAAI,EAAE,gBAAgB,CAAC,mCAAmC;iBAC3D,CAAC,CAAC;gBACH,IAAI,CAAC,QAAQ,CAAC,SAAS,CACrB,gBAAgB,CAAC,+BAA+B,CAAC;oBAC/C,MAAM,EAAE,GAAG,mBAAmB,CAAC,OAAO,WAAW;oBACjD,kBAAkB,EAAE;wBAClB,2BAA2B,EACzB,UAAU,CAAC,gCAAgC;qBAC9C;iBACF,CAAC,CACH,CAAC;aACH;SACF;QACD,wBAAwB;QACxB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,0CAA0C;QAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;QACrD,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,aAAa,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;CAIF"}
|
package/package.json
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for ManagementLinkClient.",
|
|
6
|
-
"version": "2.0.1
|
|
6
|
+
"version": "2.0.1",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=12.0.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@azure/core-paging": "^1.2.0",
|
|
12
|
-
"@azure/core-client": "^1.
|
|
12
|
+
"@azure/core-client": "^1.5.0",
|
|
13
13
|
"@azure/core-auth": "^1.3.0",
|
|
14
|
-
"@azure/core-rest-pipeline": "^1.
|
|
14
|
+
"@azure/core-rest-pipeline": "^1.8.0",
|
|
15
15
|
"tslib": "^2.2.0"
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@microsoft/api-extractor": "^7.18.11",
|
|
30
30
|
"@rollup/plugin-commonjs": "^21.0.1",
|
|
31
|
-
"@rollup/plugin-json": "^4.
|
|
32
|
-
"@rollup/plugin-multi-entry": "^
|
|
33
|
-
"@rollup/plugin-node-resolve": "^
|
|
31
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
32
|
+
"@rollup/plugin-multi-entry": "^4.1.0",
|
|
33
|
+
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
34
34
|
"mkdirp": "^1.0.4",
|
|
35
|
-
"rollup": "^2.
|
|
36
|
-
"rollup-plugin-sourcemaps": "^0.
|
|
35
|
+
"rollup": "^2.66.1",
|
|
36
|
+
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
37
37
|
"typescript": "~4.2.0",
|
|
38
38
|
"uglify-js": "^3.4.9",
|
|
39
39
|
"rimraf": "^3.0.0",
|
|
@@ -97,5 +97,13 @@
|
|
|
97
97
|
"docs": "echo skipped"
|
|
98
98
|
},
|
|
99
99
|
"sideEffects": false,
|
|
100
|
+
"//metadata": {
|
|
101
|
+
"constantPaths": [
|
|
102
|
+
{
|
|
103
|
+
"path": "src/managementLinkClient.ts",
|
|
104
|
+
"prefix": "packageDetails"
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
},
|
|
100
108
|
"autoPublish": true
|
|
101
109
|
}
|
package/rollup.config.js
CHANGED
|
@@ -14,62 +14,14 @@ import json from "@rollup/plugin-json";
|
|
|
14
14
|
|
|
15
15
|
import nodeBuiltins from "builtin-modules";
|
|
16
16
|
|
|
17
|
-
/**
|
|
18
|
-
* Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
|
|
19
|
-
*
|
|
20
|
-
* NOTE: this manual configuration is only needed because OpenTelemetry uses an
|
|
21
|
-
* __exportStar downleveled helper function to declare its exports which confuses
|
|
22
|
-
* rollup's automatic discovery mechanism.
|
|
23
|
-
*
|
|
24
|
-
* @returns an object reference that can be `...`'d into your cjs() configuration.
|
|
25
|
-
*/
|
|
26
|
-
export function openTelemetryCommonJs() {
|
|
27
|
-
const namedExports = {};
|
|
28
|
-
|
|
29
|
-
for (const key of [
|
|
30
|
-
"@opentelemetry/api",
|
|
31
|
-
"@azure/core-tracing/node_modules/@opentelemetry/api"
|
|
32
|
-
]) {
|
|
33
|
-
namedExports[key] = [
|
|
34
|
-
"SpanKind",
|
|
35
|
-
"TraceFlags",
|
|
36
|
-
"getSpan",
|
|
37
|
-
"setSpan",
|
|
38
|
-
"SpanStatusCode",
|
|
39
|
-
"getSpanContext",
|
|
40
|
-
"setSpanContext"
|
|
41
|
-
];
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
|
|
45
|
-
|
|
46
|
-
for (const version of releasedOpenTelemetryVersions) {
|
|
47
|
-
namedExports[
|
|
48
|
-
// working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
|
|
49
|
-
`../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
|
|
50
|
-
] = [
|
|
51
|
-
"SpanKind",
|
|
52
|
-
"TraceFlags",
|
|
53
|
-
"getSpan",
|
|
54
|
-
"setSpan",
|
|
55
|
-
"StatusCode",
|
|
56
|
-
"CanonicalCode",
|
|
57
|
-
"getSpanContext",
|
|
58
|
-
"setSpanContext"
|
|
59
|
-
];
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return namedExports;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
17
|
// #region Warning Handler
|
|
66
18
|
|
|
67
19
|
/**
|
|
68
|
-
* A function that can determine whether a
|
|
20
|
+
* A function that can determine whether a rollup warning should be ignored. If
|
|
69
21
|
* the function returns `true`, then the warning will not be displayed.
|
|
70
22
|
*/
|
|
71
23
|
|
|
72
|
-
function
|
|
24
|
+
function ignoreNiseSinonEval(warning) {
|
|
73
25
|
return (
|
|
74
26
|
warning.code === "EVAL" &&
|
|
75
27
|
warning.id &&
|
|
@@ -78,17 +30,14 @@ function ignoreNiseSinonEvalWarnings(warning) {
|
|
|
78
30
|
);
|
|
79
31
|
}
|
|
80
32
|
|
|
81
|
-
function
|
|
33
|
+
function ignoreChaiCircularDependency(warning) {
|
|
82
34
|
return (
|
|
83
35
|
warning.code === "CIRCULAR_DEPENDENCY" &&
|
|
84
36
|
warning.importer && warning.importer.includes("node_modules/chai") === true
|
|
85
37
|
);
|
|
86
38
|
}
|
|
87
39
|
|
|
88
|
-
const warningInhibitors = [
|
|
89
|
-
ignoreChaiCircularDependencyWarnings,
|
|
90
|
-
ignoreNiseSinonEvalWarnings
|
|
91
|
-
];
|
|
40
|
+
const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
|
|
92
41
|
|
|
93
42
|
/**
|
|
94
43
|
* Construct a warning handler for the shared rollup configuration
|
|
@@ -122,22 +71,7 @@ function makeBrowserTestConfig() {
|
|
|
122
71
|
nodeResolve({
|
|
123
72
|
mainFields: ["module", "browser"]
|
|
124
73
|
}),
|
|
125
|
-
cjs(
|
|
126
|
-
namedExports: {
|
|
127
|
-
// Chai's strange internal architecture makes it impossible to statically
|
|
128
|
-
// analyze its exports.
|
|
129
|
-
chai: [
|
|
130
|
-
"version",
|
|
131
|
-
"use",
|
|
132
|
-
"util",
|
|
133
|
-
"config",
|
|
134
|
-
"expect",
|
|
135
|
-
"should",
|
|
136
|
-
"assert"
|
|
137
|
-
],
|
|
138
|
-
...openTelemetryCommonJs()
|
|
139
|
-
}
|
|
140
|
-
}),
|
|
74
|
+
cjs(),
|
|
141
75
|
json(),
|
|
142
76
|
sourcemaps()
|
|
143
77
|
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
|
|
@@ -173,7 +107,7 @@ export function makeConfig(pkg, options) {
|
|
|
173
107
|
],
|
|
174
108
|
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
|
|
175
109
|
preserveSymlinks: false,
|
|
176
|
-
plugins: [sourcemaps(), nodeResolve()
|
|
110
|
+
plugins: [sourcemaps(), nodeResolve()]
|
|
177
111
|
};
|
|
178
112
|
|
|
179
113
|
const config = [baseConfig];
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
11
|
import * as coreAuth from "@azure/core-auth";
|
|
11
12
|
import { OperationsImpl, ResourceLinksImpl } from "./operations";
|
|
12
13
|
import { Operations, ResourceLinks } from "./operationsInterfaces";
|
|
@@ -44,7 +45,7 @@ export class ManagementLinkClient extends coreClient.ServiceClient {
|
|
|
44
45
|
credential: credentials
|
|
45
46
|
};
|
|
46
47
|
|
|
47
|
-
const packageDetails = `azsdk-js-arm-links/2.0.
|
|
48
|
+
const packageDetails = `azsdk-js-arm-links/2.0.2`;
|
|
48
49
|
const userAgentPrefix =
|
|
49
50
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
50
51
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -59,9 +60,33 @@ export class ManagementLinkClient extends coreClient.ServiceClient {
|
|
|
59
60
|
userAgentOptions: {
|
|
60
61
|
userAgentPrefix
|
|
61
62
|
},
|
|
62
|
-
baseUri:
|
|
63
|
+
baseUri:
|
|
64
|
+
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
63
65
|
};
|
|
64
66
|
super(optionsWithDefaults);
|
|
67
|
+
|
|
68
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
69
|
+
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
|
|
70
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
71
|
+
(pipelinePolicy) =>
|
|
72
|
+
pipelinePolicy.name ===
|
|
73
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
74
|
+
);
|
|
75
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
|
76
|
+
this.pipeline.removePolicy({
|
|
77
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
78
|
+
});
|
|
79
|
+
this.pipeline.addPolicy(
|
|
80
|
+
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
81
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
82
|
+
challengeCallbacks: {
|
|
83
|
+
authorizeRequestOnChallenge:
|
|
84
|
+
coreClient.authorizeRequestOnClaimChallenge
|
|
85
|
+
}
|
|
86
|
+
})
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
65
90
|
// Parameter assignments
|
|
66
91
|
this.subscriptionId = subscriptionId;
|
|
67
92
|
|
package/tsconfig.json
CHANGED
|
@@ -9,11 +9,33 @@
|
|
|
9
9
|
"esModuleInterop": true,
|
|
10
10
|
"allowSyntheticDefaultImports": true,
|
|
11
11
|
"forceConsistentCasingInFileNames": true,
|
|
12
|
-
"lib": [
|
|
12
|
+
"lib": [
|
|
13
|
+
"es6",
|
|
14
|
+
"dom"
|
|
15
|
+
],
|
|
13
16
|
"declaration": true,
|
|
14
17
|
"outDir": "./dist-esm",
|
|
15
|
-
"importHelpers": true
|
|
18
|
+
"importHelpers": true,
|
|
19
|
+
"paths": {
|
|
20
|
+
"@azure/arm-links": [
|
|
21
|
+
"./src/index"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
16
24
|
},
|
|
17
|
-
"include": [
|
|
18
|
-
|
|
19
|
-
|
|
25
|
+
"include": [
|
|
26
|
+
"./src/**/*.ts",
|
|
27
|
+
"./test/**/*.ts",
|
|
28
|
+
"samples-dev/**/*.ts",
|
|
29
|
+
"./test/**/*.ts",
|
|
30
|
+
"samples-dev/**/*.ts",
|
|
31
|
+
"./test/**/*.ts",
|
|
32
|
+
"samples-dev/**/*.ts",
|
|
33
|
+
"./test/**/*.ts",
|
|
34
|
+
"samples-dev/**/*.ts",
|
|
35
|
+
"./test/**/*.ts",
|
|
36
|
+
"samples-dev/**/*.ts"
|
|
37
|
+
],
|
|
38
|
+
"exclude": [
|
|
39
|
+
"node_modules"
|
|
40
|
+
]
|
|
41
|
+
}
|