Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@azure/arm-azurestack

Package Overview
Dependencies
Maintainers
4
Versions
257
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/arm-azurestack - npm Package Compare versions

Comparing version 3.0.0-alpha.20221102.1 to 3.0.0-alpha.20221117.2

dist-esm/src/pagingHelper.d.ts

12

CHANGELOG.md
# Release History
## 3.0.0-beta.5 (2022-11-16)
## 3.0.0-beta.5 (Unreleased)
**Features**
### Features Added
- Exposes `getContinuationToken` helper function to extract continuation token
### Breaking Changes
**Bugs Fixed**
### Bugs Fixed
- A series of small bug fixs relevant to authentication and apiVersion policy
### Other Changes
## 3.0.0-beta.4 (2022-10-08)

@@ -14,0 +14,0 @@

@@ -17,2 +17,4 @@ import * as coreClient from "@azure/core-client";

constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureStackManagementClientOptionalParams);
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
private addCustomApiVersionPolicy;
operations: Operations;

@@ -19,0 +21,0 @@ cloudManifestFile: CloudManifestFile;

@@ -8,3 +8,5 @@ /*

*/
import { __awaiter } from "tslib";
import * as coreClient from "@azure/core-client";
import * as coreRestPipeline from "@azure/core-rest-pipeline";
import { OperationsImpl, CloudManifestFileImpl, CustomerSubscriptionsImpl, ProductsImpl, RegistrationsImpl, LinkedSubscriptionsImpl } from "./operations";

@@ -20,3 +22,3 @@ export class AzureStackManagementClient extends coreClient.ServiceClient {

constructor(credentials, subscriptionId, options) {
var _a, _b;
var _a, _b, _c;
if (credentials === undefined) {

@@ -40,9 +42,27 @@ throw new Error("'credentials' cannot be null");

: `${packageDetails}`;
if (!options.credentialScopes) {
options.credentialScopes = ["https://management.azure.com/.default"];
}
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
userAgentPrefix
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
super(optionsWithDefaults);
let bearerTokenAuthenticationPolicyFound = false;
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
const pipelinePolicies = options.pipeline.getOrderedPolicies();
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
coreRestPipeline.bearerTokenAuthenticationPolicyName);
}
if (!options ||
!options.pipeline ||
options.pipeline.getOrderedPolicies().length == 0 ||
!bearerTokenAuthenticationPolicyFound) {
this.pipeline.removePolicy({
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
});
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
credential: credentials,
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
challengeCallbacks: {
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
}
}));
}
// Parameter assignments

@@ -59,4 +79,32 @@ this.subscriptionId = subscriptionId;

this.linkedSubscriptions = new LinkedSubscriptionsImpl(this);
this.addCustomApiVersionPolicy(options.apiVersion);
}
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
addCustomApiVersionPolicy(apiVersion) {
if (!apiVersion) {
return;
}
const apiVersionPolicy = {
name: "CustomApiVersionPolicy",
sendRequest(request, next) {
return __awaiter(this, void 0, void 0, function* () {
const param = request.url.split("?");
if (param.length > 1) {
const newParams = param[1].split("&").map((item) => {
if (item.indexOf("api-version") > -1) {
return "api-version=" + apiVersion;
}
else {
return item;
}
});
request.url = param[0] + "?" + newParams.join("&");
}
return next(request);
});
}
};
this.pipeline.addPolicy(apiVersionPolicy);
}
}
//# sourceMappingURL=azureStackManagementClient.js.map
/// <reference lib="esnext.asynciterable" />
export { getContinuationToken } from "./pagingHelper";
export * from "./models";

@@ -3,0 +4,0 @@ export { AzureStackManagementClient } from "./azureStackManagementClient";

@@ -9,2 +9,3 @@ /*

/// <reference lib="esnext.asynciterable" />
export { getContinuationToken } from "./pagingHelper";
export * from "./models";

@@ -11,0 +12,0 @@ export { AzureStackManagementClient } from "./azureStackManagementClient";

@@ -466,8 +466,8 @@ import * as coreClient from "@azure/core-client";

/** Cloud specific manifest GET response. */
export declare type CloudManifestFileResponse = Resource & {
export interface CloudManifestFileResponse extends Resource {
/** Cloud specific manifest data. */
properties?: CloudManifestFileProperties;
};
}
/** Customer subscription. */
export declare type CustomerSubscription = Resource & {
export interface CustomerSubscription extends Resource {
/**

@@ -480,5 +480,5 @@ * Metadata pertaining to creation and last modification of the resource.

tenantId?: string;
};
}
/** Product information. */
export declare type Product = Resource & {
export interface Product extends Resource {
/**

@@ -525,7 +525,8 @@ * Metadata pertaining to creation and last modification of the resource.

compatibility?: Compatibility;
};
}
/** Product information. */
export declare type ExtendedProductProperties = VirtualMachineExtensionProductProperties & VirtualMachineProductProperties & {};
export interface ExtendedProductProperties extends VirtualMachineExtensionProductProperties, VirtualMachineProductProperties {
}
/** Registration information. */
export declare type Registration = TrackedResource & {
export interface Registration extends TrackedResource {
/** The object identifier associated with the Azure Stack connecting to Azure. */

@@ -537,5 +538,5 @@ objectId?: string;

billingModel?: string;
};
}
/** Linked Subscription information. */
export declare type LinkedSubscription = TrackedResource & {
export interface LinkedSubscription extends TrackedResource {
/** The identifier associated with the device subscription. */

@@ -570,8 +571,12 @@ linkedSubscriptionId?: string;

readonly deviceConnectionStatus?: string;
};
}
/** Known values of {@link CreatedByType} that the service accepts. */
export declare enum KnownCreatedByType {
/** User */
User = "User",
/** Application */
Application = "Application",
/** ManagedIdentity */
ManagedIdentity = "ManagedIdentity",
/** Key */
Key = "Key"

@@ -592,11 +597,21 @@ }

export declare enum KnownCompatibilityIssue {
/** HigherDeviceVersionRequired */
HigherDeviceVersionRequired = "HigherDeviceVersionRequired",
/** LowerDeviceVersionRequired */
LowerDeviceVersionRequired = "LowerDeviceVersionRequired",
/** CapacityBillingModelRequired */
CapacityBillingModelRequired = "CapacityBillingModelRequired",
/** PayAsYouGoBillingModelRequired */
PayAsYouGoBillingModelRequired = "PayAsYouGoBillingModelRequired",
/** DevelopmentBillingModelRequired */
DevelopmentBillingModelRequired = "DevelopmentBillingModelRequired",
/** AzureADIdentitySystemRequired */
AzureADIdentitySystemRequired = "AzureADIdentitySystemRequired",
/** AdfsIdentitySystemRequired */
AdfsIdentitySystemRequired = "ADFSIdentitySystemRequired",
/** ConnectionToInternetRequired */
ConnectionToInternetRequired = "ConnectionToInternetRequired",
/** ConnectionToAzureRequired */
ConnectionToAzureRequired = "ConnectionToAzureRequired",
/** DisconnectedEnvironmentRequired */
DisconnectedEnvironmentRequired = "DisconnectedEnvironmentRequired"

@@ -623,4 +638,7 @@ }

export declare enum KnownComputeRole {
/** None */
None = "None",
/** IaaS */
IaaS = "IaaS",
/** PaaS */
PaaS = "PaaS"

@@ -640,4 +658,7 @@ }

export declare enum KnownOperatingSystem {
/** None */
None = "None",
/** Windows */
Windows = "Windows",
/** Linux */
Linux = "Linux"

@@ -657,3 +678,5 @@ }

export declare enum KnownCategory {
/** AzureAD */
AzureAD = "AzureAD",
/** Adfs */
Adfs = "ADFS"

@@ -672,2 +695,3 @@ }

export declare enum KnownLocation {
/** Global */
Global = "global"

@@ -674,0 +698,0 @@ }

@@ -11,5 +11,9 @@ /*

(function (KnownCreatedByType) {
/** User */
KnownCreatedByType["User"] = "User";
/** Application */
KnownCreatedByType["Application"] = "Application";
/** ManagedIdentity */
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
/** Key */
KnownCreatedByType["Key"] = "Key";

@@ -20,11 +24,21 @@ })(KnownCreatedByType || (KnownCreatedByType = {}));

(function (KnownCompatibilityIssue) {
/** HigherDeviceVersionRequired */
KnownCompatibilityIssue["HigherDeviceVersionRequired"] = "HigherDeviceVersionRequired";
/** LowerDeviceVersionRequired */
KnownCompatibilityIssue["LowerDeviceVersionRequired"] = "LowerDeviceVersionRequired";
/** CapacityBillingModelRequired */
KnownCompatibilityIssue["CapacityBillingModelRequired"] = "CapacityBillingModelRequired";
/** PayAsYouGoBillingModelRequired */
KnownCompatibilityIssue["PayAsYouGoBillingModelRequired"] = "PayAsYouGoBillingModelRequired";
/** DevelopmentBillingModelRequired */
KnownCompatibilityIssue["DevelopmentBillingModelRequired"] = "DevelopmentBillingModelRequired";
/** AzureADIdentitySystemRequired */
KnownCompatibilityIssue["AzureADIdentitySystemRequired"] = "AzureADIdentitySystemRequired";
/** AdfsIdentitySystemRequired */
KnownCompatibilityIssue["AdfsIdentitySystemRequired"] = "ADFSIdentitySystemRequired";
/** ConnectionToInternetRequired */
KnownCompatibilityIssue["ConnectionToInternetRequired"] = "ConnectionToInternetRequired";
/** ConnectionToAzureRequired */
KnownCompatibilityIssue["ConnectionToAzureRequired"] = "ConnectionToAzureRequired";
/** DisconnectedEnvironmentRequired */
KnownCompatibilityIssue["DisconnectedEnvironmentRequired"] = "DisconnectedEnvironmentRequired";

@@ -35,4 +49,7 @@ })(KnownCompatibilityIssue || (KnownCompatibilityIssue = {}));

(function (KnownComputeRole) {
/** None */
KnownComputeRole["None"] = "None";
/** IaaS */
KnownComputeRole["IaaS"] = "IaaS";
/** PaaS */
KnownComputeRole["PaaS"] = "PaaS";

@@ -43,4 +60,7 @@ })(KnownComputeRole || (KnownComputeRole = {}));

(function (KnownOperatingSystem) {
/** None */
KnownOperatingSystem["None"] = "None";
/** Windows */
KnownOperatingSystem["Windows"] = "Windows";
/** Linux */
KnownOperatingSystem["Linux"] = "Linux";

@@ -51,3 +71,5 @@ })(KnownOperatingSystem || (KnownOperatingSystem = {}));

(function (KnownCategory) {
/** AzureAD */
KnownCategory["AzureAD"] = "AzureAD";
/** Adfs */
KnownCategory["Adfs"] = "ADFS";

@@ -58,4 +80,5 @@ })(KnownCategory || (KnownCategory = {}));

(function (KnownLocation) {
/** Global */
KnownLocation["Global"] = "global";
})(KnownLocation || (KnownLocation = {}));
//# sourceMappingURL=index.js.map

@@ -9,2 +9,3 @@ /*

import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import { setContinuationToken } from "../pagingHelper";
import * as coreClient from "@azure/core-client";

@@ -38,16 +39,27 @@ import * as Mappers from "../models/mappers";

},
byPage: () => {
return this.listPagingPage(resourceGroup, registrationName, options);
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(resourceGroup, registrationName, options, settings);
}
};
}
listPagingPage(resourceGroup, registrationName, options) {
listPagingPage(resourceGroup, registrationName, options, settings) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result = yield __await(this._list(resourceGroup, registrationName, options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._list(resourceGroup, registrationName, options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listNext(resourceGroup, registrationName, continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}

@@ -54,0 +66,0 @@ });

@@ -9,2 +9,3 @@ /*

import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import { setContinuationToken } from "../pagingHelper";
import * as coreClient from "@azure/core-client";

@@ -37,16 +38,27 @@ import * as Mappers from "../models/mappers";

},
byPage: () => {
return this.listByResourceGroupPagingPage(resourceGroup, options);
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listByResourceGroupPagingPage(resourceGroup, options, settings);
}
};
}
listByResourceGroupPagingPage(resourceGroup, options) {
listByResourceGroupPagingPage(resourceGroup, options, settings) {
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
let result = yield __await(this._listByResourceGroup(resourceGroup, options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listByResourceGroup(resourceGroup, options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listByResourceGroupNext(resourceGroup, continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}

@@ -86,16 +98,27 @@ });

},
byPage: () => {
return this.listBySubscriptionPagingPage(options);
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listBySubscriptionPagingPage(options, settings);
}
};
}
listBySubscriptionPagingPage(options) {
listBySubscriptionPagingPage(options, settings) {
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
let result = yield __await(this._listBySubscription(options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listBySubscription(options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listBySubscriptionNext(continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}

@@ -102,0 +125,0 @@ });

@@ -9,2 +9,3 @@ /*

import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import { setContinuationToken } from "../pagingHelper";
import * as coreClient from "@azure/core-client";

@@ -36,16 +37,27 @@ import * as Mappers from "../models/mappers";

},
byPage: () => {
return this.listPagingPage(options);
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(options, settings);
}
};
}
listPagingPage(options) {
listPagingPage(options, settings) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result = yield __await(this._list(options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._list(options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listNext(continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}

@@ -52,0 +64,0 @@ });

@@ -9,2 +9,3 @@ /*

import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import { setContinuationToken } from "../pagingHelper";
import * as coreClient from "@azure/core-client";

@@ -38,16 +39,27 @@ import * as Mappers from "../models/mappers";

},
byPage: () => {
return this.listPagingPage(resourceGroup, registrationName, options);
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(resourceGroup, registrationName, options, settings);
}
};
}
listPagingPage(resourceGroup, registrationName, options) {
listPagingPage(resourceGroup, registrationName, options, settings) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result = yield __await(this._list(resourceGroup, registrationName, options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._list(resourceGroup, registrationName, options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listNext(resourceGroup, registrationName, continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}

@@ -54,0 +66,0 @@ });

@@ -9,2 +9,3 @@ /*

import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import { setContinuationToken } from "../pagingHelper";
import * as coreClient from "@azure/core-client";

@@ -37,16 +38,27 @@ import * as Mappers from "../models/mappers";

},
byPage: () => {
return this.listPagingPage(resourceGroup, options);
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(resourceGroup, options, settings);
}
};
}
listPagingPage(resourceGroup, options) {
listPagingPage(resourceGroup, options, settings) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result = yield __await(this._list(resourceGroup, options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._list(resourceGroup, options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listNext(resourceGroup, continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}

@@ -86,16 +98,27 @@ });

},
byPage: () => {
return this.listBySubscriptionPagingPage(options);
byPage: (settings) => {
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listBySubscriptionPagingPage(options, settings);
}
};
}
listBySubscriptionPagingPage(options) {
listBySubscriptionPagingPage(options, settings) {
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
let result = yield __await(this._listBySubscription(options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
let result;
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
if (!continuationToken) {
result = yield __await(this._listBySubscription(options));
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield yield __await(page);
}
while (continuationToken) {
result = yield __await(this._listBySubscriptionNext(continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield yield __await(page);
}

@@ -102,0 +125,0 @@ });

@@ -9,15 +9,12 @@ /*

import { __awaiter } from "tslib";
import { record } from "@azure-tools/test-recorder";
const recorderEnvSetup = {
replaceableVariables: {
AZURE_CLIENT_ID: "azure_client_id",
AZURE_CLIENT_SECRET: "azure_client_secret",
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
SUBSCRIPTION_ID: "azure_subscription_id"
},
customizationsOnRecordings: [
(recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
],
queryParametersToSkip: []
import { Recorder } from "@azure-tools/test-recorder";
const replaceableVariables = {
AZURE_CLIENT_ID: "azure_client_id",
AZURE_CLIENT_SECRET: "azure_client_secret",
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
SUBSCRIPTION_ID: "azure_subscription_id"
};
const recorderOptions = {
envSetupForPlayback: replaceableVariables
};
describe("My test", () => {

@@ -27,3 +24,4 @@ let recorder;

return __awaiter(this, void 0, void 0, function* () {
recorder = record(this, recorderEnvSetup);
recorder = new Recorder(this.currentTest);
yield recorder.start(recorderOptions);
});

@@ -30,0 +28,0 @@ });

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var coreClient=require("@azure/core-client"),tslib=require("tslib");function _interopNamespace(t){var i;return t&&t.__esModule?t:(i=Object.create(null),t&&Object.keys(t).forEach(function(e){var r;"default"!==e&&(r=Object.getOwnPropertyDescriptor(t,e),Object.defineProperty(i,e,r.get?r:{enumerable:!0,get:function(){return t[e]}}))}),i.default=t,Object.freeze(i))}var coreClient__namespace=_interopNamespace(coreClient);exports.KnownCreatedByType=void 0,function(e){e.User="User",e.Application="Application",e.ManagedIdentity="ManagedIdentity",e.Key="Key"}(exports.KnownCreatedByType||(exports.KnownCreatedByType={})),exports.KnownCompatibilityIssue=void 0,function(e){e.HigherDeviceVersionRequired="HigherDeviceVersionRequired",e.LowerDeviceVersionRequired="LowerDeviceVersionRequired",e.CapacityBillingModelRequired="CapacityBillingModelRequired",e.PayAsYouGoBillingModelRequired="PayAsYouGoBillingModelRequired",e.DevelopmentBillingModelRequired="DevelopmentBillingModelRequired",e.AzureADIdentitySystemRequired="AzureADIdentitySystemRequired",e.AdfsIdentitySystemRequired="ADFSIdentitySystemRequired",e.ConnectionToInternetRequired="ConnectionToInternetRequired",e.ConnectionToAzureRequired="ConnectionToAzureRequired",e.DisconnectedEnvironmentRequired="DisconnectedEnvironmentRequired"}(exports.KnownCompatibilityIssue||(exports.KnownCompatibilityIssue={})),exports.KnownComputeRole=void 0,function(e){e.None="None",e.IaaS="IaaS",e.PaaS="PaaS"}(exports.KnownComputeRole||(exports.KnownComputeRole={})),exports.KnownOperatingSystem=void 0,function(e){e.None="None",e.Windows="Windows",e.Linux="Linux"}(exports.KnownOperatingSystem||(exports.KnownOperatingSystem={})),exports.KnownCategory=void 0,function(e){e.AzureAD="AzureAD",e.Adfs="ADFS"}(exports.KnownCategory||(exports.KnownCategory={})),exports.KnownLocation=void 0,(exports.KnownLocation||(exports.KnownLocation={})).Global="global";const OperationList={type:{name:"Composite",className:"OperationList",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:"Display"}},origin:{serializedName:"origin",type:{name:"String"}}}}},Display={type:{name:"Composite",className:"Display",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"}}}}},ErrorResponse={type:{name:"Composite",className:"ErrorResponse",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorDetails"}}}}},ErrorDetails={type:{name:"Composite",className:"ErrorDetails",modelProperties:{code:{serializedName:"code",readOnly:!0,type:{name:"String"}},message:{serializedName:"message",readOnly:!0,type:{name:"String"}},target:{serializedName:"target",readOnly:!0,type:{name:"String"}}}}},CloudManifestFileProperties={type:{name:"Composite",className:"CloudManifestFileProperties",modelProperties:{deploymentData:{serializedName:"deploymentData",type:{name:"Composite",className:"CloudManifestFileDeploymentData"}},signature:{serializedName:"signature",type:{name:"String"}}}}},CloudManifestFileDeploymentData={type:{name:"Composite",className:"CloudManifestFileDeploymentData",modelProperties:{externalDsmsCertificates:{serializedName:"externalDsmsCertificates",type:{name:"String"}},customCloudVerificationKey:{serializedName:"customCloudVerificationKey",type:{name:"String"}},customCloudArmEndpoint:{serializedName:"customEnvironmentEndpoints.customCloudArmEndpoint",type:{name:"String"}},externalDsmsEndpoint:{serializedName:"customEnvironmentEndpoints.externalDsmsEndpoint",type:{name:"String"}}}}},Resource={type:{name:"Composite",className:"Resource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},etag:{serializedName:"etag",type:{name:"String"}}}}},CustomerSubscriptionList={type:{name:"Composite",className:"CustomerSubscriptionList",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"CustomerSubscription"}}}}}}},SystemData={type:{name:"Composite",className:"SystemData",modelProperties:{createdBy:{serializedName:"createdBy",type:{name:"String"}},createdByType:{serializedName:"createdByType",type:{name:"String"}},createdAt:{serializedName:"createdAt",type:{name:"DateTime"}},lastModifiedBy:{serializedName:"lastModifiedBy",type:{name:"String"}},lastModifiedByType:{serializedName:"lastModifiedByType",type:{name:"String"}},lastModifiedAt:{serializedName:"lastModifiedAt",type:{name:"DateTime"}}}}},ProductList={type:{name:"Composite",className:"ProductList",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Product"}}}}}}},IconUris={type:{name:"Composite",className:"IconUris",modelProperties:{large:{serializedName:"large",type:{name:"String"}},wide:{serializedName:"wide",type:{name:"String"}},medium:{serializedName:"medium",type:{name:"String"}},small:{serializedName:"small",type:{name:"String"}},hero:{serializedName:"hero",type:{name:"String"}}}}},ProductLink={type:{name:"Composite",className:"ProductLink",modelProperties:{displayName:{serializedName:"displayName",type:{name:"String"}},uri:{serializedName:"uri",type:{name:"String"}}}}},ProductProperties={type:{name:"Composite",className:"ProductProperties",modelProperties:{version:{serializedName:"version",type:{name:"String"}}}}},Compatibility={type:{name:"Composite",className:"Compatibility",modelProperties:{isCompatible:{serializedName:"isCompatible",type:{name:"Boolean"}},message:{serializedName:"message",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}},issues:{serializedName:"issues",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},ExtendedProduct={type:{name:"Composite",className:"ExtendedProduct",modelProperties:{galleryPackageBlobSasUri:{serializedName:"galleryPackageBlobSasUri",readOnly:!0,type:{name:"String"}},productKind:{serializedName:"productKind",readOnly:!0,type:{name:"String"}},computeRole:{serializedName:"properties.computeRole",readOnly:!0,type:{name:"String"}},isSystemExtension:{serializedName:"properties.isSystemExtension",readOnly:!0,type:{name:"Boolean"}},supportMultipleExtensions:{serializedName:"properties.supportMultipleExtensions",readOnly:!0,type:{name:"Boolean"}},versionPropertiesVersion:{serializedName:"properties.version",readOnly:!0,type:{name:"String"}},vmOsType:{serializedName:"properties.vmOsType",readOnly:!0,type:{name:"String"}},vmScaleSetEnabled:{serializedName:"properties.vmScaleSetEnabled",readOnly:!0,type:{name:"Boolean"}},uri:{serializedName:"properties.sourceBlob.uri",readOnly:!0,type:{name:"String"}},version:{serializedName:"properties.version",readOnly:!0,type:{name:"String"}},osDiskImage:{serializedName:"properties.osDiskImage",type:{name:"Composite",className:"OsDiskImage"}},dataDiskImages:{serializedName:"properties.dataDiskImages",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"DataDiskImage"}}}}}}},VirtualMachineExtensionProductProperties={type:{name:"Composite",className:"VirtualMachineExtensionProductProperties",modelProperties:{computeRole:{serializedName:"computeRole",readOnly:!0,type:{name:"String"}},isSystemExtension:{serializedName:"isSystemExtension",readOnly:!0,type:{name:"Boolean"}},supportMultipleExtensions:{serializedName:"supportMultipleExtensions",readOnly:!0,type:{name:"Boolean"}},version:{serializedName:"version",readOnly:!0,type:{name:"String"}},vmOsType:{serializedName:"vmOsType",readOnly:!0,type:{name:"String"}},vmScaleSetEnabled:{serializedName:"vmScaleSetEnabled",readOnly:!0,type:{name:"Boolean"}},uri:{serializedName:"sourceBlob.uri",readOnly:!0,type:{name:"String"}}}}},VirtualMachineProductProperties={type:{name:"Composite",className:"VirtualMachineProductProperties",modelProperties:{version:{serializedName:"version",readOnly:!0,type:{name:"String"}},osDiskImage:{serializedName:"osDiskImage",type:{name:"Composite",className:"OsDiskImage"}},dataDiskImages:{serializedName:"dataDiskImages",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"DataDiskImage"}}}}}}},OsDiskImage={type:{name:"Composite",className:"OsDiskImage",modelProperties:{operatingSystem:{serializedName:"operatingSystem",readOnly:!0,type:{name:"String"}},sourceBlobSasUri:{serializedName:"sourceBlobSasUri",readOnly:!0,type:{name:"String"}}}}},DataDiskImage={type:{name:"Composite",className:"DataDiskImage",modelProperties:{lun:{serializedName:"lun",readOnly:!0,type:{name:"Number"}},sourceBlobSasUri:{serializedName:"sourceBlobSasUri",readOnly:!0,type:{name:"String"}}}}},DeviceConfiguration={type:{name:"Composite",className:"DeviceConfiguration",modelProperties:{deviceVersion:{serializedName:"deviceVersion",readOnly:!0,type:{name:"String"}},identitySystem:{serializedName:"identitySystem",readOnly:!0,type:{name:"String"}}}}},MarketplaceProductLogUpdate={type:{name:"Composite",className:"MarketplaceProductLogUpdate",modelProperties:{operation:{serializedName:"operation",readOnly:!0,type:{name:"String"}},status:{serializedName:"status",readOnly:!0,type:{name:"String"}},error:{serializedName:"error",readOnly:!0,type:{name:"String"}},details:{serializedName:"details",readOnly:!0,type:{name:"String"}}}}},ProductLog={type:{name:"Composite",className:"ProductLog",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},productId:{serializedName:"productId",readOnly:!0,type:{name:"String"}},subscriptionId:{serializedName:"subscriptionId",readOnly:!0,type:{name:"String"}},registrationName:{serializedName:"registrationName",readOnly:!0,type:{name:"String"}},resourceGroupName:{serializedName:"resourceGroupName",readOnly:!0,type:{name:"String"}},operation:{serializedName:"operation",readOnly:!0,type:{name:"String"}},startDate:{serializedName:"startDate",readOnly:!0,type:{name:"String"}},endDate:{serializedName:"endDate",readOnly:!0,type:{name:"String"}},status:{serializedName:"status",readOnly:!0,type:{name:"String"}},error:{serializedName:"error",readOnly:!0,type:{name:"String"}},details:{serializedName:"details",readOnly:!0,type:{name:"String"}}}}},RegistrationList={type:{name:"Composite",className:"RegistrationList",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Registration"}}}}}}},TrackedResource={type:{name:"Composite",className:"TrackedResource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},kind:{serializedName:"kind",readOnly:!0,type:{name:"String"}},systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}},location:{serializedName:"location",required:!0,type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",type:{name:"String"}}}}},RegistrationParameter={type:{name:"Composite",className:"RegistrationParameter",modelProperties:{location:{serializedName:"location",required:!0,type:{name:"String"}},registrationToken:{serializedName:"properties.registrationToken",required:!0,type:{name:"String"}}}}},ActivationKeyResult={type:{name:"Composite",className:"ActivationKeyResult",modelProperties:{activationKey:{serializedName:"activationKey",type:{name:"String"}}}}},LinkedSubscriptionsList={type:{name:"Composite",className:"LinkedSubscriptionsList",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"LinkedSubscription"}}}}}}},LinkedSubscriptionParameter={type:{name:"Composite",className:"LinkedSubscriptionParameter",modelProperties:{location:{serializedName:"location",required:!0,type:{name:"String"}},linkedSubscriptionId:{serializedName:"properties.linkedSubscriptionId",required:!0,type:{name:"String"}},registrationResourceId:{serializedName:"properties.registrationResourceId",required:!0,type:{name:"String"}}}}},CloudManifestFileResponse={type:{name:"Composite",className:"CloudManifestFileResponse",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"CloudManifestFileProperties"}}})}},CustomerSubscription={type:{name:"Composite",className:"CustomerSubscription",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}},tenantId:{serializedName:"properties.tenantId",type:{name:"String"}}})}},Product={type:{name:"Composite",className:"Product",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}},displayName:{serializedName:"properties.displayName",type:{name:"String"}},description:{serializedName:"properties.description",type:{name:"String"}},publisherDisplayName:{serializedName:"properties.publisherDisplayName",type:{name:"String"}},publisherIdentifier:{serializedName:"properties.publisherIdentifier",type:{name:"String"}},offer:{serializedName:"properties.offer",type:{name:"String"}},offerVersion:{serializedName:"properties.offerVersion",type:{name:"String"}},sku:{serializedName:"properties.sku",type:{name:"String"}},billingPartNumber:{serializedName:"properties.billingPartNumber",type:{name:"String"}},vmExtensionType:{serializedName:"properties.vmExtensionType",type:{name:"String"}},galleryItemIdentity:{serializedName:"properties.galleryItemIdentity",type:{name:"String"}},iconUris:{serializedName:"properties.iconUris",type:{name:"Composite",className:"IconUris"}},links:{serializedName:"properties.links",type:{name:"Sequence",element:{type:{name:"Composite",className:"ProductLink"}}}},legalTerms:{serializedName:"properties.legalTerms",type:{name:"String"}},privacyPolicy:{serializedName:"properties.privacyPolicy",type:{name:"String"}},payloadLength:{serializedName:"properties.payloadLength",type:{name:"Number"}},productKind:{serializedName:"properties.productKind",type:{name:"String"}},productProperties:{serializedName:"properties.productProperties",type:{name:"Composite",className:"ProductProperties"}},compatibility:{serializedName:"properties.compatibility",type:{name:"Composite",className:"Compatibility"}}})}},ExtendedProductProperties={type:{name:"Composite",className:"ExtendedProductProperties",modelProperties:Object.assign(Object.assign({},VirtualMachineExtensionProductProperties.type.modelProperties),VirtualMachineProductProperties.type.modelProperties)}},Registration={type:{name:"Composite",className:"Registration",modelProperties:Object.assign(Object.assign({},TrackedResource.type.modelProperties),{objectId:{serializedName:"properties.objectId",type:{name:"String"}},cloudId:{serializedName:"properties.cloudId",type:{name:"String"}},billingModel:{serializedName:"properties.billingModel",type:{name:"String"}}})}},LinkedSubscription={type:{name:"Composite",className:"LinkedSubscription",modelProperties:Object.assign(Object.assign({},TrackedResource.type.modelProperties),{linkedSubscriptionId:{serializedName:"properties.linkedSubscriptionId",type:{name:"String"}},registrationResourceId:{serializedName:"properties.registrationResourceId",type:{name:"String"}},deviceId:{serializedName:"properties.deviceId",readOnly:!0,type:{name:"String"}},deviceObjectId:{serializedName:"properties.deviceObjectId",readOnly:!0,type:{name:"String"}},deviceLinkState:{serializedName:"properties.deviceLinkState",readOnly:!0,type:{name:"String"}},lastConnectedTime:{serializedName:"properties.lastConnectedTime",readOnly:!0,type:{name:"String"}},deviceConnectionStatus:{serializedName:"properties.deviceConnectionStatus",readOnly:!0,type:{name:"String"}}})}};var Mappers=Object.freeze({__proto__:null,OperationList:OperationList,Operation:Operation,Display:Display,ErrorResponse:ErrorResponse,ErrorDetails:ErrorDetails,CloudManifestFileProperties:CloudManifestFileProperties,CloudManifestFileDeploymentData:CloudManifestFileDeploymentData,Resource:Resource,CustomerSubscriptionList:CustomerSubscriptionList,SystemData:SystemData,ProductList:ProductList,IconUris:IconUris,ProductLink:ProductLink,ProductProperties:ProductProperties,Compatibility:Compatibility,ExtendedProduct:ExtendedProduct,VirtualMachineExtensionProductProperties:VirtualMachineExtensionProductProperties,VirtualMachineProductProperties:VirtualMachineProductProperties,OsDiskImage:OsDiskImage,DataDiskImage:DataDiskImage,DeviceConfiguration:DeviceConfiguration,MarketplaceProductLogUpdate:MarketplaceProductLogUpdate,ProductLog:ProductLog,RegistrationList:RegistrationList,TrackedResource:TrackedResource,RegistrationParameter:RegistrationParameter,ActivationKeyResult:ActivationKeyResult,LinkedSubscriptionsList:LinkedSubscriptionsList,LinkedSubscriptionParameter:LinkedSubscriptionParameter,CloudManifestFileResponse:CloudManifestFileResponse,CustomerSubscription:CustomerSubscription,Product:Product,ExtendedProductProperties:ExtendedProductProperties,Registration:Registration,LinkedSubscription:LinkedSubscription});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:"2020-06-01-preview",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0},verificationVersion={parameterPath:"verificationVersion",mapper:{serializedName:"verificationVersion",required:!0,type:{name:"String"}}},versionCreationDate={parameterPath:["options","versionCreationDate"],mapper:{serializedName:"versionCreationDate",type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},resourceGroup={parameterPath:"resourceGroup",mapper:{serializedName:"resourceGroup",required:!0,type:{name:"String"}}},registrationName={parameterPath:"registrationName",mapper:{serializedName:"registrationName",required:!0,type:{name:"String"}}},customerSubscriptionName={parameterPath:"customerSubscriptionName",mapper:{serializedName:"customerSubscriptionName",required:!0,type:{name:"String"}}},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},customerCreationParameters={parameterPath:"customerCreationParameters",mapper:CustomerSubscription},productName={parameterPath:"productName",mapper:{serializedName:"productName",required:!0,type:{name:"String"}}},deviceConfiguration={parameterPath:["options","deviceConfiguration"],mapper:DeviceConfiguration},marketplaceProductLogUpdate={parameterPath:["options","marketplaceProductLogUpdate"],mapper:MarketplaceProductLogUpdate},token={parameterPath:"token",mapper:RegistrationParameter},linkedSubscriptionName={parameterPath:"linkedSubscriptionName",mapper:{serializedName:"linkedSubscriptionName",required:!0,type:{name:"String"}}},resource={parameterPath:"resource",mapper:LinkedSubscriptionParameter};class OperationsImpl{constructor(e){this.client=e}list(e){const r=this.listPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(t));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(r,t)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(a){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listPagingPage(a));!(t=yield tslib.__await(i.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$4)}_listNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listNextOperationSpec$3)}}const serializer$5=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec$4={path:"/providers/Microsoft.AzureStack/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$5},listNextOperationSpec$3={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:OperationList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$5};class CloudManifestFileImpl{constructor(e){this.client=e}list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$3)}get(e,r){return this.client.sendOperationRequest({verificationVersion:e,options:r},getOperationSpec$4)}}const serializer$4=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec$3={path:"/providers/Microsoft.AzureStack/cloudManifestFiles",httpMethod:"GET",responses:{200:{bodyMapper:CloudManifestFileResponse},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$4},getOperationSpec$4={path:"/providers/Microsoft.AzureStack/cloudManifestFiles/{verificationVersion}",httpMethod:"GET",responses:{200:{bodyMapper:CloudManifestFileResponse},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,versionCreationDate],urlParameters:[$host,verificationVersion],headerParameters:[accept],serializer:serializer$4};class CustomerSubscriptionsImpl{constructor(e){this.client=e}list(e,r,t){const i=this.listPagingAll(e,r,t);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e,r,t)}}listPagingPage(t,i,s){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(t,i,s));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(t,i,r,s)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(a,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listPagingPage(a,o,n));!(t=yield tslib.__await(i.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}_list(e,r,t){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,options:t},listOperationSpec$2)}get(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,customerSubscriptionName:t,options:i},getOperationSpec$3)}delete(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,customerSubscriptionName:t,options:i},deleteOperationSpec$2)}create(e,r,t,i,s){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,customerSubscriptionName:t,customerCreationParameters:i,options:s},createOperationSpec)}_listNext(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,nextLink:t,options:i},listNextOperationSpec$2)}}const serializer$3=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions",httpMethod:"GET",responses:{200:{bodyMapper:CustomerSubscriptionList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName],headerParameters:[accept],serializer:serializer$3},getOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions/{customerSubscriptionName}",httpMethod:"GET",responses:{200:{bodyMapper:CustomerSubscription},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName,customerSubscriptionName],headerParameters:[accept],serializer:serializer$3},deleteOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions/{customerSubscriptionName}",httpMethod:"DELETE",responses:{200:{},204:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName,customerSubscriptionName],headerParameters:[accept],serializer:serializer$3},createOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions/{customerSubscriptionName}",httpMethod:"PUT",responses:{200:{bodyMapper:CustomerSubscription},default:{bodyMapper:ErrorResponse}},requestBody:customerCreationParameters,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName,customerSubscriptionName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$3},listNextOperationSpec$2={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:CustomerSubscriptionList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink,subscriptionId,resourceGroup,registrationName],headerParameters:[accept],serializer:serializer$3};class ProductsImpl{constructor(e){this.client=e}list(e,r,t){const i=this.listPagingAll(e,r,t);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e,r,t)}}listPagingPage(t,i,s){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(t,i,s));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(t,i,r,s)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(a,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listPagingPage(a,o,n));!(t=yield tslib.__await(i.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}_list(e,r,t){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,options:t},listOperationSpec$1)}get(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,productName:t,options:i},getOperationSpec$2)}listDetails(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,productName:t,options:i},listDetailsOperationSpec)}getProducts(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,productName:t,options:i},getProductsOperationSpec)}getProduct(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,productName:t,options:i},getProductOperationSpec)}uploadLog(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,productName:t,options:i},uploadLogOperationSpec)}_listNext(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,nextLink:t,options:i},listNextOperationSpec$1)}}const serializer$2=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products",httpMethod:"GET",responses:{200:{bodyMapper:ProductList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName],headerParameters:[accept],serializer:serializer$2},getOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}",httpMethod:"GET",responses:{200:{bodyMapper:Product},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName,productName],headerParameters:[accept],serializer:serializer$2},listDetailsOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/listDetails",httpMethod:"POST",responses:{200:{bodyMapper:ExtendedProduct},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName,productName],headerParameters:[accept],serializer:serializer$2},getProductsOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/getProducts",httpMethod:"POST",responses:{200:{bodyMapper:ProductList},default:{bodyMapper:ErrorResponse}},requestBody:deviceConfiguration,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName,productName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$2},getProductOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/getProduct",httpMethod:"POST",responses:{200:{bodyMapper:Product},default:{bodyMapper:ErrorResponse}},requestBody:deviceConfiguration,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName,productName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$2},uploadLogOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/uploadProductLog",httpMethod:"POST",responses:{200:{bodyMapper:ProductLog},default:{bodyMapper:ErrorResponse}},requestBody:marketplaceProductLogUpdate,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName,productName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$2},listNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ProductList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink,subscriptionId,resourceGroup,registrationName],headerParameters:[accept],serializer:serializer$2};class RegistrationsImpl{constructor(e){this.client=e}list(e,r){const t=this.listPagingAll(e,r);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e,r)}}listPagingPage(t,i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(t,i));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(t,r,i)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(a,o){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listPagingPage(a,o));!(t=yield tslib.__await(i.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}listBySubscription(e){const r=this.listBySubscriptionPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listBySubscriptionPagingPage(e)}}listBySubscriptionPagingPage(t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listBySubscription(t));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listBySubscriptionNext(r,t)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listBySubscriptionPagingAll(a){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listBySubscriptionPagingPage(a));!(t=yield tslib.__await(i.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}_list(e,r){return this.client.sendOperationRequest({resourceGroup:e,options:r},listOperationSpec)}_listBySubscription(e){return this.client.sendOperationRequest({options:e},listBySubscriptionOperationSpec$1)}get(e,r,t){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,options:t},getOperationSpec$1)}delete(e,r,t){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,options:t},deleteOperationSpec$1)}createOrUpdate(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,token:t,options:i},createOrUpdateOperationSpec$1)}update(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,token:t,options:i},updateOperationSpec$1)}getActivationKey(e,r,t){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,options:t},getActivationKeyOperationSpec)}enableRemoteManagement(e,r,t){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,options:t},enableRemoteManagementOperationSpec)}_listNext(e,r,t){return this.client.sendOperationRequest({resourceGroup:e,nextLink:r,options:t},listNextOperationSpec)}_listBySubscriptionNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listBySubscriptionNextOperationSpec$1)}}const serializer$1=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations",httpMethod:"GET",responses:{200:{bodyMapper:RegistrationList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup],headerParameters:[accept],serializer:serializer$1},listBySubscriptionOperationSpec$1={path:"/subscriptions/{subscriptionId}/providers/Microsoft.AzureStack/registrations",httpMethod:"GET",responses:{200:{bodyMapper:RegistrationList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer$1},getOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",httpMethod:"GET",responses:{200:{bodyMapper:Registration},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName],headerParameters:[accept],serializer:serializer$1},deleteOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",httpMethod:"DELETE",responses:{200:{},204:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName],headerParameters:[accept],serializer:serializer$1},createOrUpdateOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",httpMethod:"PUT",responses:{200:{bodyMapper:Registration},201:{bodyMapper:Registration},default:{bodyMapper:ErrorResponse}},requestBody:token,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$1},updateOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",httpMethod:"PATCH",responses:{200:{bodyMapper:Registration},default:{bodyMapper:ErrorResponse}},requestBody:token,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$1},getActivationKeyOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/getactivationkey",httpMethod:"POST",responses:{200:{bodyMapper:ActivationKeyResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName],headerParameters:[accept],serializer:serializer$1},enableRemoteManagementOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/enableRemoteManagement",httpMethod:"POST",responses:{200:{},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,subscriptionId,resourceGroup,registrationName],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:RegistrationList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink,subscriptionId,resourceGroup],headerParameters:[accept],serializer:serializer$1},listBySubscriptionNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:RegistrationList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink,subscriptionId],headerParameters:[accept],serializer:serializer$1};class LinkedSubscriptionsImpl{constructor(e){this.client=e}listByResourceGroup(e,r){const t=this.listByResourceGroupPagingAll(e,r);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByResourceGroupPagingPage(e,r)}}listByResourceGroupPagingPage(t,i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByResourceGroup(t,i));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listByResourceGroupNext(t,r,i)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listByResourceGroupPagingAll(a,o){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listByResourceGroupPagingPage(a,o));!(t=yield tslib.__await(i.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}listBySubscription(e){const r=this.listBySubscriptionPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listBySubscriptionPagingPage(e)}}listBySubscriptionPagingPage(t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listBySubscription(t));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listBySubscriptionNext(r,t)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listBySubscriptionPagingAll(a){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listBySubscriptionPagingPage(a));!(t=yield tslib.__await(i.next())).done;){var s=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}_listByResourceGroup(e,r){return this.client.sendOperationRequest({resourceGroup:e,options:r},listByResourceGroupOperationSpec)}_listBySubscription(e){return this.client.sendOperationRequest({options:e},listBySubscriptionOperationSpec)}get(e,r,t){return this.client.sendOperationRequest({resourceGroup:e,linkedSubscriptionName:r,options:t},getOperationSpec)}delete(e,r,t){return this.client.sendOperationRequest({resourceGroup:e,linkedSubscriptionName:r,options:t},deleteOperationSpec)}createOrUpdate(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,linkedSubscriptionName:r,resource:t,options:i},createOrUpdateOperationSpec)}update(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,linkedSubscriptionName:r,resource:t,options:i},updateOperationSpec)}_listByResourceGroupNext(e,r,t){return this.client.sendOperationRequest({resourceGroup:e,nextLink:r,options:t},listByResourceGroupNextOperationSpec)}_listBySubscriptionNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listBySubscriptionNextOperationSpec)}}const serializer=coreClient__namespace.createSerializer(Mappers,!1),listByResourceGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions",httpMethod:"GET",responses:{200:{bodyMapper:LinkedSubscriptionsList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup],headerParameters:[accept],serializer:serializer},listBySubscriptionOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.AzureStack/linkedSubscriptions",httpMethod:"GET",responses:{200:{bodyMapper:LinkedSubscriptionsList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer},getOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",httpMethod:"GET",responses:{200:{bodyMapper:LinkedSubscription},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,linkedSubscriptionName],headerParameters:[accept],serializer:serializer},deleteOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",httpMethod:"DELETE",responses:{200:{},204:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,linkedSubscriptionName],headerParameters:[accept],serializer:serializer},createOrUpdateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",httpMethod:"PUT",responses:{200:{bodyMapper:LinkedSubscription},201:{bodyMapper:LinkedSubscription},default:{bodyMapper:ErrorResponse}},requestBody:resource,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,linkedSubscriptionName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},updateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",httpMethod:"PATCH",responses:{200:{bodyMapper:LinkedSubscription},default:{bodyMapper:ErrorResponse}},requestBody:resource,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,linkedSubscriptionName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},listByResourceGroupNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:LinkedSubscriptionsList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink,subscriptionId,resourceGroup],headerParameters:[accept],serializer:serializer},listBySubscriptionNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:LinkedSubscriptionsList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink,subscriptionId],headerParameters:[accept],serializer:serializer};class AzureStackManagementClient extends coreClient__namespace.ServiceClient{constructor(e,r,t){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===r)throw new Error("'subscriptionId' cannot be null");var e={requestContentType:"application/json; charset=utf-8",credential:e},i="azsdk-js-arm-azurestack/3.0.0-beta.5",i=(t=t||{}).userAgentOptions&&t.userAgentOptions.userAgentPrefix?t.userAgentOptions.userAgentPrefix+" "+i:i,e=(t.credentialScopes||(t.credentialScopes=["https://management.azure.com/.default"]),Object.assign(Object.assign(Object.assign({},e),t),{userAgentOptions:{userAgentPrefix:i},baseUri:null!=(i=null!=(e=t.endpoint)?e:t.baseUri)?i:"https://management.azure.com"}));super(e),this.subscriptionId=r,this.$host=t.$host||"https://management.azure.com",this.apiVersion=t.apiVersion||"2020-06-01-preview",this.operations=new OperationsImpl(this),this.cloudManifestFile=new CloudManifestFileImpl(this),this.customerSubscriptions=new CustomerSubscriptionsImpl(this),this.products=new ProductsImpl(this),this.registrations=new RegistrationsImpl(this),this.linkedSubscriptions=new LinkedSubscriptionsImpl(this)}}exports.AzureStackManagementClient=AzureStackManagementClient;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var tslib=require("tslib"),coreClient=require("@azure/core-client"),coreRestPipeline=require("@azure/core-rest-pipeline");function _interopNamespace(t){var i;return t&&t.__esModule?t:(i=Object.create(null),t&&Object.keys(t).forEach(function(e){var r;"default"!==e&&(r=Object.getOwnPropertyDescriptor(t,e),Object.defineProperty(i,e,r.get?r:{enumerable:!0,get:function(){return t[e]}}))}),i.default=t,Object.freeze(i))}var coreClient__namespace=_interopNamespace(coreClient),coreRestPipeline__namespace=_interopNamespace(coreRestPipeline);const pageMap=new WeakMap;function getContinuationToken(e){return"object"!=typeof e||null===e||null==(e=pageMap.get(e))?void 0:e.continuationToken}function setContinuationToken(e,r){var t;"object"==typeof e&&null!==e&&r&&((t=null!=(t=pageMap.get(e))?t:{}).continuationToken=r,pageMap.set(e,t))}exports.KnownCreatedByType=void 0,function(e){e.User="User",e.Application="Application",e.ManagedIdentity="ManagedIdentity",e.Key="Key"}(exports.KnownCreatedByType||(exports.KnownCreatedByType={})),exports.KnownCompatibilityIssue=void 0,function(e){e.HigherDeviceVersionRequired="HigherDeviceVersionRequired",e.LowerDeviceVersionRequired="LowerDeviceVersionRequired",e.CapacityBillingModelRequired="CapacityBillingModelRequired",e.PayAsYouGoBillingModelRequired="PayAsYouGoBillingModelRequired",e.DevelopmentBillingModelRequired="DevelopmentBillingModelRequired",e.AzureADIdentitySystemRequired="AzureADIdentitySystemRequired",e.AdfsIdentitySystemRequired="ADFSIdentitySystemRequired",e.ConnectionToInternetRequired="ConnectionToInternetRequired",e.ConnectionToAzureRequired="ConnectionToAzureRequired",e.DisconnectedEnvironmentRequired="DisconnectedEnvironmentRequired"}(exports.KnownCompatibilityIssue||(exports.KnownCompatibilityIssue={})),exports.KnownComputeRole=void 0,function(e){e.None="None",e.IaaS="IaaS",e.PaaS="PaaS"}(exports.KnownComputeRole||(exports.KnownComputeRole={})),exports.KnownOperatingSystem=void 0,function(e){e.None="None",e.Windows="Windows",e.Linux="Linux"}(exports.KnownOperatingSystem||(exports.KnownOperatingSystem={})),exports.KnownCategory=void 0,function(e){e.AzureAD="AzureAD",e.Adfs="ADFS"}(exports.KnownCategory||(exports.KnownCategory={})),exports.KnownLocation=void 0,(exports.KnownLocation||(exports.KnownLocation={})).Global="global";const OperationList={type:{name:"Composite",className:"OperationList",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:"Display"}},origin:{serializedName:"origin",type:{name:"String"}}}}},Display={type:{name:"Composite",className:"Display",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"}}}}},ErrorResponse={type:{name:"Composite",className:"ErrorResponse",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorDetails"}}}}},ErrorDetails={type:{name:"Composite",className:"ErrorDetails",modelProperties:{code:{serializedName:"code",readOnly:!0,type:{name:"String"}},message:{serializedName:"message",readOnly:!0,type:{name:"String"}},target:{serializedName:"target",readOnly:!0,type:{name:"String"}}}}},CloudManifestFileProperties={type:{name:"Composite",className:"CloudManifestFileProperties",modelProperties:{deploymentData:{serializedName:"deploymentData",type:{name:"Composite",className:"CloudManifestFileDeploymentData"}},signature:{serializedName:"signature",type:{name:"String"}}}}},CloudManifestFileDeploymentData={type:{name:"Composite",className:"CloudManifestFileDeploymentData",modelProperties:{externalDsmsCertificates:{serializedName:"externalDsmsCertificates",type:{name:"String"}},customCloudVerificationKey:{serializedName:"customCloudVerificationKey",type:{name:"String"}},customCloudArmEndpoint:{serializedName:"customEnvironmentEndpoints.customCloudArmEndpoint",type:{name:"String"}},externalDsmsEndpoint:{serializedName:"customEnvironmentEndpoints.externalDsmsEndpoint",type:{name:"String"}}}}},Resource={type:{name:"Composite",className:"Resource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},etag:{serializedName:"etag",type:{name:"String"}}}}},CustomerSubscriptionList={type:{name:"Composite",className:"CustomerSubscriptionList",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"CustomerSubscription"}}}}}}},SystemData={type:{name:"Composite",className:"SystemData",modelProperties:{createdBy:{serializedName:"createdBy",type:{name:"String"}},createdByType:{serializedName:"createdByType",type:{name:"String"}},createdAt:{serializedName:"createdAt",type:{name:"DateTime"}},lastModifiedBy:{serializedName:"lastModifiedBy",type:{name:"String"}},lastModifiedByType:{serializedName:"lastModifiedByType",type:{name:"String"}},lastModifiedAt:{serializedName:"lastModifiedAt",type:{name:"DateTime"}}}}},ProductList={type:{name:"Composite",className:"ProductList",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Product"}}}}}}},IconUris={type:{name:"Composite",className:"IconUris",modelProperties:{large:{serializedName:"large",type:{name:"String"}},wide:{serializedName:"wide",type:{name:"String"}},medium:{serializedName:"medium",type:{name:"String"}},small:{serializedName:"small",type:{name:"String"}},hero:{serializedName:"hero",type:{name:"String"}}}}},ProductLink={type:{name:"Composite",className:"ProductLink",modelProperties:{displayName:{serializedName:"displayName",type:{name:"String"}},uri:{serializedName:"uri",type:{name:"String"}}}}},ProductProperties={type:{name:"Composite",className:"ProductProperties",modelProperties:{version:{serializedName:"version",type:{name:"String"}}}}},Compatibility={type:{name:"Composite",className:"Compatibility",modelProperties:{isCompatible:{serializedName:"isCompatible",type:{name:"Boolean"}},message:{serializedName:"message",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}},issues:{serializedName:"issues",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},ExtendedProduct={type:{name:"Composite",className:"ExtendedProduct",modelProperties:{galleryPackageBlobSasUri:{serializedName:"galleryPackageBlobSasUri",readOnly:!0,type:{name:"String"}},productKind:{serializedName:"productKind",readOnly:!0,type:{name:"String"}},computeRole:{serializedName:"properties.computeRole",readOnly:!0,type:{name:"String"}},isSystemExtension:{serializedName:"properties.isSystemExtension",readOnly:!0,type:{name:"Boolean"}},supportMultipleExtensions:{serializedName:"properties.supportMultipleExtensions",readOnly:!0,type:{name:"Boolean"}},versionPropertiesVersion:{serializedName:"properties.version",readOnly:!0,type:{name:"String"}},vmOsType:{serializedName:"properties.vmOsType",readOnly:!0,type:{name:"String"}},vmScaleSetEnabled:{serializedName:"properties.vmScaleSetEnabled",readOnly:!0,type:{name:"Boolean"}},uri:{serializedName:"properties.sourceBlob.uri",readOnly:!0,type:{name:"String"}},version:{serializedName:"properties.version",readOnly:!0,type:{name:"String"}},osDiskImage:{serializedName:"properties.osDiskImage",type:{name:"Composite",className:"OsDiskImage"}},dataDiskImages:{serializedName:"properties.dataDiskImages",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"DataDiskImage"}}}}}}},VirtualMachineExtensionProductProperties={type:{name:"Composite",className:"VirtualMachineExtensionProductProperties",modelProperties:{computeRole:{serializedName:"computeRole",readOnly:!0,type:{name:"String"}},isSystemExtension:{serializedName:"isSystemExtension",readOnly:!0,type:{name:"Boolean"}},supportMultipleExtensions:{serializedName:"supportMultipleExtensions",readOnly:!0,type:{name:"Boolean"}},version:{serializedName:"version",readOnly:!0,type:{name:"String"}},vmOsType:{serializedName:"vmOsType",readOnly:!0,type:{name:"String"}},vmScaleSetEnabled:{serializedName:"vmScaleSetEnabled",readOnly:!0,type:{name:"Boolean"}},uri:{serializedName:"sourceBlob.uri",readOnly:!0,type:{name:"String"}}}}},VirtualMachineProductProperties={type:{name:"Composite",className:"VirtualMachineProductProperties",modelProperties:{version:{serializedName:"version",readOnly:!0,type:{name:"String"}},osDiskImage:{serializedName:"osDiskImage",type:{name:"Composite",className:"OsDiskImage"}},dataDiskImages:{serializedName:"dataDiskImages",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"DataDiskImage"}}}}}}},OsDiskImage={type:{name:"Composite",className:"OsDiskImage",modelProperties:{operatingSystem:{serializedName:"operatingSystem",readOnly:!0,type:{name:"String"}},sourceBlobSasUri:{serializedName:"sourceBlobSasUri",readOnly:!0,type:{name:"String"}}}}},DataDiskImage={type:{name:"Composite",className:"DataDiskImage",modelProperties:{lun:{serializedName:"lun",readOnly:!0,type:{name:"Number"}},sourceBlobSasUri:{serializedName:"sourceBlobSasUri",readOnly:!0,type:{name:"String"}}}}},DeviceConfiguration={type:{name:"Composite",className:"DeviceConfiguration",modelProperties:{deviceVersion:{serializedName:"deviceVersion",readOnly:!0,type:{name:"String"}},identitySystem:{serializedName:"identitySystem",readOnly:!0,type:{name:"String"}}}}},MarketplaceProductLogUpdate={type:{name:"Composite",className:"MarketplaceProductLogUpdate",modelProperties:{operation:{serializedName:"operation",readOnly:!0,type:{name:"String"}},status:{serializedName:"status",readOnly:!0,type:{name:"String"}},error:{serializedName:"error",readOnly:!0,type:{name:"String"}},details:{serializedName:"details",readOnly:!0,type:{name:"String"}}}}},ProductLog={type:{name:"Composite",className:"ProductLog",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},productId:{serializedName:"productId",readOnly:!0,type:{name:"String"}},subscriptionId:{serializedName:"subscriptionId",readOnly:!0,type:{name:"String"}},registrationName:{serializedName:"registrationName",readOnly:!0,type:{name:"String"}},resourceGroupName:{serializedName:"resourceGroupName",readOnly:!0,type:{name:"String"}},operation:{serializedName:"operation",readOnly:!0,type:{name:"String"}},startDate:{serializedName:"startDate",readOnly:!0,type:{name:"String"}},endDate:{serializedName:"endDate",readOnly:!0,type:{name:"String"}},status:{serializedName:"status",readOnly:!0,type:{name:"String"}},error:{serializedName:"error",readOnly:!0,type:{name:"String"}},details:{serializedName:"details",readOnly:!0,type:{name:"String"}}}}},RegistrationList={type:{name:"Composite",className:"RegistrationList",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Registration"}}}}}}},TrackedResource={type:{name:"Composite",className:"TrackedResource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},kind:{serializedName:"kind",readOnly:!0,type:{name:"String"}},systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}},location:{serializedName:"location",required:!0,type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",type:{name:"String"}}}}},RegistrationParameter={type:{name:"Composite",className:"RegistrationParameter",modelProperties:{location:{serializedName:"location",required:!0,type:{name:"String"}},registrationToken:{serializedName:"properties.registrationToken",required:!0,type:{name:"String"}}}}},ActivationKeyResult={type:{name:"Composite",className:"ActivationKeyResult",modelProperties:{activationKey:{serializedName:"activationKey",type:{name:"String"}}}}},LinkedSubscriptionsList={type:{name:"Composite",className:"LinkedSubscriptionsList",modelProperties:{nextLink:{serializedName:"nextLink",type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"LinkedSubscription"}}}}}}},LinkedSubscriptionParameter={type:{name:"Composite",className:"LinkedSubscriptionParameter",modelProperties:{location:{serializedName:"location",required:!0,type:{name:"String"}},linkedSubscriptionId:{serializedName:"properties.linkedSubscriptionId",required:!0,type:{name:"String"}},registrationResourceId:{serializedName:"properties.registrationResourceId",required:!0,type:{name:"String"}}}}},CloudManifestFileResponse={type:{name:"Composite",className:"CloudManifestFileResponse",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{properties:{serializedName:"properties",type:{name:"Composite",className:"CloudManifestFileProperties"}}})}},CustomerSubscription={type:{name:"Composite",className:"CustomerSubscription",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}},tenantId:{serializedName:"properties.tenantId",type:{name:"String"}}})}},Product={type:{name:"Composite",className:"Product",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}},displayName:{serializedName:"properties.displayName",type:{name:"String"}},description:{serializedName:"properties.description",type:{name:"String"}},publisherDisplayName:{serializedName:"properties.publisherDisplayName",type:{name:"String"}},publisherIdentifier:{serializedName:"properties.publisherIdentifier",type:{name:"String"}},offer:{serializedName:"properties.offer",type:{name:"String"}},offerVersion:{serializedName:"properties.offerVersion",type:{name:"String"}},sku:{serializedName:"properties.sku",type:{name:"String"}},billingPartNumber:{serializedName:"properties.billingPartNumber",type:{name:"String"}},vmExtensionType:{serializedName:"properties.vmExtensionType",type:{name:"String"}},galleryItemIdentity:{serializedName:"properties.galleryItemIdentity",type:{name:"String"}},iconUris:{serializedName:"properties.iconUris",type:{name:"Composite",className:"IconUris"}},links:{serializedName:"properties.links",type:{name:"Sequence",element:{type:{name:"Composite",className:"ProductLink"}}}},legalTerms:{serializedName:"properties.legalTerms",type:{name:"String"}},privacyPolicy:{serializedName:"properties.privacyPolicy",type:{name:"String"}},payloadLength:{serializedName:"properties.payloadLength",type:{name:"Number"}},productKind:{serializedName:"properties.productKind",type:{name:"String"}},productProperties:{serializedName:"properties.productProperties",type:{name:"Composite",className:"ProductProperties"}},compatibility:{serializedName:"properties.compatibility",type:{name:"Composite",className:"Compatibility"}}})}},ExtendedProductProperties={type:{name:"Composite",className:"ExtendedProductProperties",modelProperties:Object.assign(Object.assign({},VirtualMachineExtensionProductProperties.type.modelProperties),VirtualMachineProductProperties.type.modelProperties)}},Registration={type:{name:"Composite",className:"Registration",modelProperties:Object.assign(Object.assign({},TrackedResource.type.modelProperties),{objectId:{serializedName:"properties.objectId",type:{name:"String"}},cloudId:{serializedName:"properties.cloudId",type:{name:"String"}},billingModel:{serializedName:"properties.billingModel",type:{name:"String"}}})}},LinkedSubscription={type:{name:"Composite",className:"LinkedSubscription",modelProperties:Object.assign(Object.assign({},TrackedResource.type.modelProperties),{linkedSubscriptionId:{serializedName:"properties.linkedSubscriptionId",type:{name:"String"}},registrationResourceId:{serializedName:"properties.registrationResourceId",type:{name:"String"}},deviceId:{serializedName:"properties.deviceId",readOnly:!0,type:{name:"String"}},deviceObjectId:{serializedName:"properties.deviceObjectId",readOnly:!0,type:{name:"String"}},deviceLinkState:{serializedName:"properties.deviceLinkState",readOnly:!0,type:{name:"String"}},lastConnectedTime:{serializedName:"properties.lastConnectedTime",readOnly:!0,type:{name:"String"}},deviceConnectionStatus:{serializedName:"properties.deviceConnectionStatus",readOnly:!0,type:{name:"String"}}})}};var Mappers=Object.freeze({__proto__:null,OperationList:OperationList,Operation:Operation,Display:Display,ErrorResponse:ErrorResponse,ErrorDetails:ErrorDetails,CloudManifestFileProperties:CloudManifestFileProperties,CloudManifestFileDeploymentData:CloudManifestFileDeploymentData,Resource:Resource,CustomerSubscriptionList:CustomerSubscriptionList,SystemData:SystemData,ProductList:ProductList,IconUris:IconUris,ProductLink:ProductLink,ProductProperties:ProductProperties,Compatibility:Compatibility,ExtendedProduct:ExtendedProduct,VirtualMachineExtensionProductProperties:VirtualMachineExtensionProductProperties,VirtualMachineProductProperties:VirtualMachineProductProperties,OsDiskImage:OsDiskImage,DataDiskImage:DataDiskImage,DeviceConfiguration:DeviceConfiguration,MarketplaceProductLogUpdate:MarketplaceProductLogUpdate,ProductLog:ProductLog,RegistrationList:RegistrationList,TrackedResource:TrackedResource,RegistrationParameter:RegistrationParameter,ActivationKeyResult:ActivationKeyResult,LinkedSubscriptionsList:LinkedSubscriptionsList,LinkedSubscriptionParameter:LinkedSubscriptionParameter,CloudManifestFileResponse:CloudManifestFileResponse,CustomerSubscription:CustomerSubscription,Product:Product,ExtendedProductProperties:ExtendedProductProperties,Registration:Registration,LinkedSubscription:LinkedSubscription});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:"2020-06-01-preview",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0},verificationVersion={parameterPath:"verificationVersion",mapper:{serializedName:"verificationVersion",required:!0,type:{name:"String"}}},versionCreationDate={parameterPath:["options","versionCreationDate"],mapper:{serializedName:"versionCreationDate",type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},resourceGroup={parameterPath:"resourceGroup",mapper:{serializedName:"resourceGroup",required:!0,type:{name:"String"}}},registrationName={parameterPath:"registrationName",mapper:{serializedName:"registrationName",required:!0,type:{name:"String"}}},customerSubscriptionName={parameterPath:"customerSubscriptionName",mapper:{serializedName:"customerSubscriptionName",required:!0,type:{name:"String"}}},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},customerCreationParameters={parameterPath:"customerCreationParameters",mapper:CustomerSubscription},productName={parameterPath:"productName",mapper:{serializedName:"productName",required:!0,type:{name:"String"}}},deviceConfiguration={parameterPath:["options","deviceConfiguration"],mapper:DeviceConfiguration},marketplaceProductLogUpdate={parameterPath:["options","marketplaceProductLogUpdate"],mapper:MarketplaceProductLogUpdate},token={parameterPath:"token",mapper:RegistrationParameter},linkedSubscriptionName={parameterPath:"linkedSubscriptionName",mapper:{serializedName:"linkedSubscriptionName",required:!0,type:{name:"String"}}},resource={parameterPath:"resource",mapper:LinkedSubscriptionParameter};class OperationsImpl{constructor(e){this.client=e}list(r){const e=this.listPagingAll(r);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(r,e)}}}listPagingPage(a,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,r=null==s?void 0:s.continuationToken;var t;for(r||(setContinuationToken(t=(e=yield tslib.__await(this._list(a))).value||[],r=e.nextLink),yield yield tslib.__await(t));r;){e=yield tslib.__await(this._listNext(r,a)),r=e.nextLink;var i=e.value||[];setContinuationToken(i,r),yield yield tslib.__await(i)}})}listPagingAll(s){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listPagingPage(s));!(t=yield tslib.__await(i.next())).done;){var a=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$4)}_listNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listNextOperationSpec$3)}}const serializer$5=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec$4={path:"/providers/Microsoft.AzureStack/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$5},listNextOperationSpec$3={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:OperationList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$5};class CloudManifestFileImpl{constructor(e){this.client=e}list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$3)}get(e,r){return this.client.sendOperationRequest({verificationVersion:e,options:r},getOperationSpec$4)}}const serializer$4=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec$3={path:"/providers/Microsoft.AzureStack/cloudManifestFiles",httpMethod:"GET",responses:{200:{bodyMapper:CloudManifestFileResponse},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$4},getOperationSpec$4={path:"/providers/Microsoft.AzureStack/cloudManifestFiles/{verificationVersion}",httpMethod:"GET",responses:{200:{bodyMapper:CloudManifestFileResponse},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion,versionCreationDate],urlParameters:[$host,verificationVersion],headerParameters:[accept],serializer:serializer$4};class CustomerSubscriptionsImpl{constructor(e){this.client=e}list(r,t,i){const e=this.listPagingAll(r,t,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(r,t,i,e)}}}listPagingPage(a,s,o,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,r=null==n?void 0:n.continuationToken;var t;for(r||(setContinuationToken(t=(e=yield tslib.__await(this._list(a,s,o))).value||[],r=e.nextLink),yield yield tslib.__await(t));r;){e=yield tslib.__await(this._listNext(a,s,r,o)),r=e.nextLink;var i=e.value||[];setContinuationToken(i,r),yield yield tslib.__await(i)}})}listPagingAll(s,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listPagingPage(s,o,n));!(t=yield tslib.__await(i.next())).done;){var a=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}_list(e,r,t){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,options:t},listOperationSpec$2)}get(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,customerSubscriptionName:t,options:i},getOperationSpec$3)}delete(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,customerSubscriptionName:t,options:i},deleteOperationSpec$2)}create(e,r,t,i,a){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,customerSubscriptionName:t,customerCreationParameters:i,options:a},createOperationSpec)}_listNext(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,nextLink:t,options:i},listNextOperationSpec$2)}}const serializer$3=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions",httpMethod:"GET",responses:{200:{bodyMapper:CustomerSubscriptionList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName],headerParameters:[accept],serializer:serializer$3},getOperationSpec$3={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions/{customerSubscriptionName}",httpMethod:"GET",responses:{200:{bodyMapper:CustomerSubscription},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName,customerSubscriptionName],headerParameters:[accept],serializer:serializer$3},deleteOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions/{customerSubscriptionName}",httpMethod:"DELETE",responses:{200:{},204:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName,customerSubscriptionName],headerParameters:[accept],serializer:serializer$3},createOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions/{customerSubscriptionName}",httpMethod:"PUT",responses:{200:{bodyMapper:CustomerSubscription},default:{bodyMapper:ErrorResponse}},requestBody:customerCreationParameters,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName,customerSubscriptionName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$3},listNextOperationSpec$2={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:CustomerSubscriptionList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink,subscriptionId,resourceGroup,registrationName],headerParameters:[accept],serializer:serializer$3};class ProductsImpl{constructor(e){this.client=e}list(r,t,i){const e=this.listPagingAll(r,t,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(r,t,i,e)}}}listPagingPage(a,s,o,n){return tslib.__asyncGenerator(this,arguments,function*(){let e,r=null==n?void 0:n.continuationToken;var t;for(r||(setContinuationToken(t=(e=yield tslib.__await(this._list(a,s,o))).value||[],r=e.nextLink),yield yield tslib.__await(t));r;){e=yield tslib.__await(this._listNext(a,s,r,o)),r=e.nextLink;var i=e.value||[];setContinuationToken(i,r),yield yield tslib.__await(i)}})}listPagingAll(s,o,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listPagingPage(s,o,n));!(t=yield tslib.__await(i.next())).done;){var a=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}_list(e,r,t){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,options:t},listOperationSpec$1)}get(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,productName:t,options:i},getOperationSpec$2)}listDetails(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,productName:t,options:i},listDetailsOperationSpec)}getProducts(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,productName:t,options:i},getProductsOperationSpec)}getProduct(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,productName:t,options:i},getProductOperationSpec)}uploadLog(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,productName:t,options:i},uploadLogOperationSpec)}_listNext(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,nextLink:t,options:i},listNextOperationSpec$1)}}const serializer$2=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products",httpMethod:"GET",responses:{200:{bodyMapper:ProductList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName],headerParameters:[accept],serializer:serializer$2},getOperationSpec$2={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}",httpMethod:"GET",responses:{200:{bodyMapper:Product},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName,productName],headerParameters:[accept],serializer:serializer$2},listDetailsOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/listDetails",httpMethod:"POST",responses:{200:{bodyMapper:ExtendedProduct},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName,productName],headerParameters:[accept],serializer:serializer$2},getProductsOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/getProducts",httpMethod:"POST",responses:{200:{bodyMapper:ProductList},default:{bodyMapper:ErrorResponse}},requestBody:deviceConfiguration,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName,productName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$2},getProductOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/getProduct",httpMethod:"POST",responses:{200:{bodyMapper:Product},default:{bodyMapper:ErrorResponse}},requestBody:deviceConfiguration,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName,productName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$2},uploadLogOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/uploadProductLog",httpMethod:"POST",responses:{200:{bodyMapper:ProductLog},default:{bodyMapper:ErrorResponse}},requestBody:marketplaceProductLogUpdate,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName,productName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$2},listNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ProductList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink,subscriptionId,resourceGroup,registrationName],headerParameters:[accept],serializer:serializer$2};class RegistrationsImpl{constructor(e){this.client=e}list(r,t){const e=this.listPagingAll(r,t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(r,t,e)}}}listPagingPage(a,s,o){return tslib.__asyncGenerator(this,arguments,function*(){let e,r=null==o?void 0:o.continuationToken;var t;for(r||(setContinuationToken(t=(e=yield tslib.__await(this._list(a,s))).value||[],r=e.nextLink),yield yield tslib.__await(t));r;){e=yield tslib.__await(this._listNext(a,r,s)),r=e.nextLink;var i=e.value||[];setContinuationToken(i,r),yield yield tslib.__await(i)}})}listPagingAll(s,o){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listPagingPage(s,o));!(t=yield tslib.__await(i.next())).done;){var a=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}listBySubscription(r){const e=this.listBySubscriptionPagingAll(r);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listBySubscriptionPagingPage(r,e)}}}listBySubscriptionPagingPage(a,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,r=null==s?void 0:s.continuationToken;var t;for(r||(setContinuationToken(t=(e=yield tslib.__await(this._listBySubscription(a))).value||[],r=e.nextLink),yield yield tslib.__await(t));r;){e=yield tslib.__await(this._listBySubscriptionNext(r,a)),r=e.nextLink;var i=e.value||[];setContinuationToken(i,r),yield yield tslib.__await(i)}})}listBySubscriptionPagingAll(s){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listBySubscriptionPagingPage(s));!(t=yield tslib.__await(i.next())).done;){var a=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}_list(e,r){return this.client.sendOperationRequest({resourceGroup:e,options:r},listOperationSpec)}_listBySubscription(e){return this.client.sendOperationRequest({options:e},listBySubscriptionOperationSpec$1)}get(e,r,t){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,options:t},getOperationSpec$1)}delete(e,r,t){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,options:t},deleteOperationSpec$1)}createOrUpdate(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,token:t,options:i},createOrUpdateOperationSpec$1)}update(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,token:t,options:i},updateOperationSpec$1)}getActivationKey(e,r,t){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,options:t},getActivationKeyOperationSpec)}enableRemoteManagement(e,r,t){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,options:t},enableRemoteManagementOperationSpec)}_listNext(e,r,t){return this.client.sendOperationRequest({resourceGroup:e,nextLink:r,options:t},listNextOperationSpec)}_listBySubscriptionNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listBySubscriptionNextOperationSpec$1)}}const serializer$1=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations",httpMethod:"GET",responses:{200:{bodyMapper:RegistrationList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup],headerParameters:[accept],serializer:serializer$1},listBySubscriptionOperationSpec$1={path:"/subscriptions/{subscriptionId}/providers/Microsoft.AzureStack/registrations",httpMethod:"GET",responses:{200:{bodyMapper:RegistrationList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer$1},getOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",httpMethod:"GET",responses:{200:{bodyMapper:Registration},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName],headerParameters:[accept],serializer:serializer$1},deleteOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",httpMethod:"DELETE",responses:{200:{},204:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName],headerParameters:[accept],serializer:serializer$1},createOrUpdateOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",httpMethod:"PUT",responses:{200:{bodyMapper:Registration},201:{bodyMapper:Registration},default:{bodyMapper:ErrorResponse}},requestBody:token,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$1},updateOperationSpec$1={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",httpMethod:"PATCH",responses:{200:{bodyMapper:Registration},default:{bodyMapper:ErrorResponse}},requestBody:token,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$1},getActivationKeyOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/getactivationkey",httpMethod:"POST",responses:{200:{bodyMapper:ActivationKeyResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,registrationName],headerParameters:[accept],serializer:serializer$1},enableRemoteManagementOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/enableRemoteManagement",httpMethod:"POST",responses:{200:{},default:{bodyMapper:ErrorResponse}},urlParameters:[$host,subscriptionId,resourceGroup,registrationName],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:RegistrationList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink,subscriptionId,resourceGroup],headerParameters:[accept],serializer:serializer$1},listBySubscriptionNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:RegistrationList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink,subscriptionId],headerParameters:[accept],serializer:serializer$1};class LinkedSubscriptionsImpl{constructor(e){this.client=e}listByResourceGroup(r,t){const e=this.listByResourceGroupPagingAll(r,t);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByResourceGroupPagingPage(r,t,e)}}}listByResourceGroupPagingPage(a,s,o){return tslib.__asyncGenerator(this,arguments,function*(){let e,r=null==o?void 0:o.continuationToken;var t;for(r||(setContinuationToken(t=(e=yield tslib.__await(this._listByResourceGroup(a,s))).value||[],r=e.nextLink),yield yield tslib.__await(t));r;){e=yield tslib.__await(this._listByResourceGroupNext(a,r,s)),r=e.nextLink;var i=e.value||[];setContinuationToken(i,r),yield yield tslib.__await(i)}})}listByResourceGroupPagingAll(s,o){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listByResourceGroupPagingPage(s,o));!(t=yield tslib.__await(i.next())).done;){var a=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}listBySubscription(r){const e=this.listBySubscriptionPagingAll(r);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listBySubscriptionPagingPage(r,e)}}}listBySubscriptionPagingPage(a,s){return tslib.__asyncGenerator(this,arguments,function*(){let e,r=null==s?void 0:s.continuationToken;var t;for(r||(setContinuationToken(t=(e=yield tslib.__await(this._listBySubscription(a))).value||[],r=e.nextLink),yield yield tslib.__await(t));r;){e=yield tslib.__await(this._listBySubscriptionNext(r,a)),r=e.nextLink;var i=e.value||[];setContinuationToken(i,r),yield yield tslib.__await(i)}})}listBySubscriptionPagingAll(s){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listBySubscriptionPagingPage(s));!(t=yield tslib.__await(i.next())).done;){var a=t.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){r={error:e}}finally{try{t&&!t.done&&(e=i.return)&&(yield tslib.__await(e.call(i)))}finally{if(r)throw r.error}}})}_listByResourceGroup(e,r){return this.client.sendOperationRequest({resourceGroup:e,options:r},listByResourceGroupOperationSpec)}_listBySubscription(e){return this.client.sendOperationRequest({options:e},listBySubscriptionOperationSpec)}get(e,r,t){return this.client.sendOperationRequest({resourceGroup:e,linkedSubscriptionName:r,options:t},getOperationSpec)}delete(e,r,t){return this.client.sendOperationRequest({resourceGroup:e,linkedSubscriptionName:r,options:t},deleteOperationSpec)}createOrUpdate(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,linkedSubscriptionName:r,resource:t,options:i},createOrUpdateOperationSpec)}update(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,linkedSubscriptionName:r,resource:t,options:i},updateOperationSpec)}_listByResourceGroupNext(e,r,t){return this.client.sendOperationRequest({resourceGroup:e,nextLink:r,options:t},listByResourceGroupNextOperationSpec)}_listBySubscriptionNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listBySubscriptionNextOperationSpec)}}const serializer=coreClient__namespace.createSerializer(Mappers,!1),listByResourceGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions",httpMethod:"GET",responses:{200:{bodyMapper:LinkedSubscriptionsList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup],headerParameters:[accept],serializer:serializer},listBySubscriptionOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.AzureStack/linkedSubscriptions",httpMethod:"GET",responses:{200:{bodyMapper:LinkedSubscriptionsList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer},getOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",httpMethod:"GET",responses:{200:{bodyMapper:LinkedSubscription},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,linkedSubscriptionName],headerParameters:[accept],serializer:serializer},deleteOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",httpMethod:"DELETE",responses:{200:{},204:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,linkedSubscriptionName],headerParameters:[accept],serializer:serializer},createOrUpdateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",httpMethod:"PUT",responses:{200:{bodyMapper:LinkedSubscription},201:{bodyMapper:LinkedSubscription},default:{bodyMapper:ErrorResponse}},requestBody:resource,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,linkedSubscriptionName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},updateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",httpMethod:"PATCH",responses:{200:{bodyMapper:LinkedSubscription},default:{bodyMapper:ErrorResponse}},requestBody:resource,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,resourceGroup,linkedSubscriptionName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer},listByResourceGroupNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:LinkedSubscriptionsList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink,subscriptionId,resourceGroup],headerParameters:[accept],serializer:serializer},listBySubscriptionNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:LinkedSubscriptionsList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink,subscriptionId],headerParameters:[accept],serializer:serializer};class AzureStackManagementClient extends coreClient__namespace.ServiceClient{constructor(e,r,t){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===r)throw new Error("'subscriptionId' cannot be null");var i,a="azsdk-js-arm-azurestack/3.0.0-beta.5",a=(t=t||{}).userAgentOptions&&t.userAgentOptions.userAgentPrefix?t.userAgentOptions.userAgentPrefix+" "+a:a,a=Object.assign(Object.assign(Object.assign({},{requestContentType:"application/json; charset=utf-8",credential:e}),t),{userAgentOptions:{userAgentPrefix:a},endpoint:null!=(a=null!=(a=t.endpoint)?a:t.baseUri)?a:"https://management.azure.com"});super(a);let s=!1;null!=t&&t.pipeline&&0<t.pipeline.getOrderedPolicies().length&&(i=t.pipeline.getOrderedPolicies(),s=i.some(e=>e.name===coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName)),t&&t.pipeline&&0!=t.pipeline.getOrderedPolicies().length&&s||(this.pipeline.removePolicy({name:coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName}),this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({credential:e,scopes:null!=(i=a.credentialScopes)?i:a.endpoint+"/.default",challengeCallbacks:{authorizeRequestOnChallenge:coreClient__namespace.authorizeRequestOnClaimChallenge}}))),this.subscriptionId=r,this.$host=t.$host||"https://management.azure.com",this.apiVersion=t.apiVersion||"2020-06-01-preview",this.operations=new OperationsImpl(this),this.cloudManifestFile=new CloudManifestFileImpl(this),this.customerSubscriptions=new CustomerSubscriptionsImpl(this),this.products=new ProductsImpl(this),this.registrations=new RegistrationsImpl(this),this.linkedSubscriptions=new LinkedSubscriptionsImpl(this),this.addCustomApiVersionPolicy(t.apiVersion)}addCustomApiVersionPolicy(a){a&&this.pipeline.addPolicy({name:"CustomApiVersionPolicy",sendRequest(t,i){return tslib.__awaiter(this,void 0,void 0,function*(){var e,r=t.url.split("?");return 1<r.length&&(e=r[1].split("&").map(e=>-1<e.indexOf("api-version")?"api-version="+a:e),t.url=r[0]+"?"+e.join("&")),i(t)})}})}}exports.AzureStackManagementClient=AzureStackManagementClient,exports.getContinuationToken=getContinuationToken;

@@ -6,3 +6,3 @@ {

"description": "A generated SDK for AzureStackManagementClient.",
"version": "3.0.0-alpha.20221102.1",
"version": "3.0.0-alpha.20221117.2",
"engines": {

@@ -13,5 +13,5 @@ "node": ">=14.0.0"

"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.0.0",
"@azure/core-client": "^1.6.1",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.1.0",
"@azure/core-rest-pipeline": "^1.8.0",
"tslib": "^2.2.0"

@@ -39,9 +39,14 @@ },

"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~4.2.0",
"typescript": "~4.8.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^1.0.0",
"@azure-tools/test-recorder": "^2.0.0",
"@azure-tools/test-credential": ">=1.0.0-alpha <1.0.0-alphb",
"mocha": "^7.1.1",
"cross-env": "^7.0.2"
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^14.0.0",
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb"
},

@@ -97,5 +102,4 @@ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/azurestack/arm-azurestack",

"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
"integration-test:browser": "echo skipped",
"docs": "echo skipped"
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"integration-test:browser": "echo skipped"
},

@@ -102,0 +106,0 @@ "sideEffects": false,

@@ -85,5 +85,5 @@ ## API Report File for "@azure/arm-azurestack"

// @public
export type CloudManifestFileResponse = Resource & {
export interface CloudManifestFileResponse extends Resource {
properties?: CloudManifestFileProperties;
};
}

@@ -108,6 +108,6 @@ // @public

// @public
export type CustomerSubscription = Resource & {
export interface CustomerSubscription extends Resource {
readonly systemData?: SystemData;
tenantId?: string;
};
}

@@ -209,5 +209,9 @@ // @public

// @public
export type ExtendedProductProperties = VirtualMachineExtensionProductProperties & VirtualMachineProductProperties & {};
export interface ExtendedProductProperties extends VirtualMachineExtensionProductProperties, VirtualMachineProductProperties {
}
// @public
export function getContinuationToken(page: unknown): string | undefined;
// @public
export interface IconUris {

@@ -223,5 +227,3 @@ hero?: string;

export enum KnownCategory {
// (undocumented)
Adfs = "ADFS",
// (undocumented)
AzureAD = "AzureAD"

@@ -232,21 +234,11 @@ }

export enum KnownCompatibilityIssue {
// (undocumented)
AdfsIdentitySystemRequired = "ADFSIdentitySystemRequired",
// (undocumented)
AzureADIdentitySystemRequired = "AzureADIdentitySystemRequired",
// (undocumented)
CapacityBillingModelRequired = "CapacityBillingModelRequired",
// (undocumented)
ConnectionToAzureRequired = "ConnectionToAzureRequired",
// (undocumented)
ConnectionToInternetRequired = "ConnectionToInternetRequired",
// (undocumented)
DevelopmentBillingModelRequired = "DevelopmentBillingModelRequired",
// (undocumented)
DisconnectedEnvironmentRequired = "DisconnectedEnvironmentRequired",
// (undocumented)
HigherDeviceVersionRequired = "HigherDeviceVersionRequired",
// (undocumented)
LowerDeviceVersionRequired = "LowerDeviceVersionRequired",
// (undocumented)
PayAsYouGoBillingModelRequired = "PayAsYouGoBillingModelRequired"

@@ -257,7 +249,4 @@ }

export enum KnownComputeRole {
// (undocumented)
IaaS = "IaaS",
// (undocumented)
None = "None",
// (undocumented)
PaaS = "PaaS"

@@ -268,9 +257,5 @@ }

export enum KnownCreatedByType {
// (undocumented)
Application = "Application",
// (undocumented)
Key = "Key",
// (undocumented)
ManagedIdentity = "ManagedIdentity",
// (undocumented)
User = "User"

@@ -281,3 +266,2 @@ }

export enum KnownLocation {
// (undocumented)
Global = "global"

@@ -288,7 +272,4 @@ }

export enum KnownOperatingSystem {
// (undocumented)
Linux = "Linux",
// (undocumented)
None = "None",
// (undocumented)
Windows = "Windows"

@@ -298,11 +279,11 @@ }

// @public
export type LinkedSubscription = TrackedResource & {
linkedSubscriptionId?: string;
registrationResourceId?: string;
export interface LinkedSubscription extends TrackedResource {
readonly deviceConnectionStatus?: string;
readonly deviceId?: string;
readonly deviceLinkState?: string;
readonly deviceObjectId?: string;
readonly deviceLinkState?: string;
readonly lastConnectedTime?: string;
readonly deviceConnectionStatus?: string;
};
linkedSubscriptionId?: string;
registrationResourceId?: string;
}

@@ -439,23 +420,23 @@ // @public

// @public
export type Product = Resource & {
readonly systemData?: SystemData;
export interface Product extends Resource {
billingPartNumber?: string;
compatibility?: Compatibility;
description?: string;
displayName?: string;
description?: string;
publisherDisplayName?: string;
publisherIdentifier?: string;
offer?: string;
offerVersion?: string;
sku?: string;
billingPartNumber?: string;
vmExtensionType?: string;
galleryItemIdentity?: string;
iconUris?: IconUris;
legalTerms?: string;
links?: ProductLink[];
legalTerms?: string;
offer?: string;
offerVersion?: string;
payloadLength?: number;
privacyPolicy?: string;
payloadLength?: number;
productKind?: string;
productProperties?: ProductProperties;
compatibility?: Compatibility;
};
publisherDisplayName?: string;
publisherIdentifier?: string;
sku?: string;
readonly systemData?: SystemData;
vmExtensionType?: string;
}

@@ -560,7 +541,7 @@ // @public

// @public
export type Registration = TrackedResource & {
export interface Registration extends TrackedResource {
billingModel?: string;
cloudId?: string;
objectId?: string;
cloudId?: string;
billingModel?: string;
};
}

@@ -567,0 +548,0 @@ // @public

@@ -10,2 +10,8 @@ /*

import * as coreClient from "@azure/core-client";
import * as coreRestPipeline from "@azure/core-rest-pipeline";
import {
PipelineRequest,
PipelineResponse,
SendRequest
} from "@azure/core-rest-pipeline";
import * as coreAuth from "@azure/core-auth";

@@ -69,5 +75,2 @@ import {

if (!options.credentialScopes) {
options.credentialScopes = ["https://management.azure.com/.default"];
}
const optionsWithDefaults = {

@@ -79,6 +82,38 @@ ...defaults,

},
baseUri:
endpoint:
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
};
super(optionsWithDefaults);
let bearerTokenAuthenticationPolicyFound: boolean = false;
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
(pipelinePolicy) =>
pipelinePolicy.name ===
coreRestPipeline.bearerTokenAuthenticationPolicyName
);
}
if (
!options ||
!options.pipeline ||
options.pipeline.getOrderedPolicies().length == 0 ||
!bearerTokenAuthenticationPolicyFound
) {
this.pipeline.removePolicy({
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
});
this.pipeline.addPolicy(
coreRestPipeline.bearerTokenAuthenticationPolicy({
credential: credentials,
scopes:
optionsWithDefaults.credentialScopes ??
`${optionsWithDefaults.endpoint}/.default`,
challengeCallbacks: {
authorizeRequestOnChallenge:
coreClient.authorizeRequestOnClaimChallenge
}
})
);
}
// Parameter assignments

@@ -96,4 +131,33 @@ this.subscriptionId = subscriptionId;

this.linkedSubscriptions = new LinkedSubscriptionsImpl(this);
this.addCustomApiVersionPolicy(options.apiVersion);
}
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
private addCustomApiVersionPolicy(apiVersion?: string) {
if (!apiVersion) {
return;
}
const apiVersionPolicy = {
name: "CustomApiVersionPolicy",
async sendRequest(
request: PipelineRequest,
next: SendRequest
): Promise<PipelineResponse> {
const param = request.url.split("?");
if (param.length > 1) {
const newParams = param[1].split("&").map((item) => {
if (item.indexOf("api-version") > -1) {
return "api-version=" + apiVersion;
} else {
return item;
}
});
request.url = param[0] + "?" + newParams.join("&");
}
return next(request);
}
};
this.pipeline.addPolicy(apiVersionPolicy);
}
operations: Operations;

@@ -100,0 +164,0 @@ cloudManifestFile: CloudManifestFile;

@@ -10,4 +10,5 @@ /*

/// <reference lib="esnext.asynciterable" />
export { getContinuationToken } from "./pagingHelper";
export * from "./models";
export { AzureStackManagementClient } from "./azureStackManagementClient";
export * from "./operationsInterfaces";

@@ -502,9 +502,9 @@ /*

/** Cloud specific manifest GET response. */
export type CloudManifestFileResponse = Resource & {
export interface CloudManifestFileResponse extends Resource {
/** Cloud specific manifest data. */
properties?: CloudManifestFileProperties;
};
}
/** Customer subscription. */
export type CustomerSubscription = Resource & {
export interface CustomerSubscription extends Resource {
/**

@@ -517,6 +517,6 @@ * Metadata pertaining to creation and last modification of the resource.

tenantId?: string;
};
}
/** Product information. */
export type Product = Resource & {
export interface Product extends Resource {
/**

@@ -563,10 +563,11 @@ * Metadata pertaining to creation and last modification of the resource.

compatibility?: Compatibility;
};
}
/** Product information. */
export type ExtendedProductProperties = VirtualMachineExtensionProductProperties &
VirtualMachineProductProperties & {};
export interface ExtendedProductProperties
extends VirtualMachineExtensionProductProperties,
VirtualMachineProductProperties {}
/** Registration information. */
export type Registration = TrackedResource & {
export interface Registration extends TrackedResource {
/** The object identifier associated with the Azure Stack connecting to Azure. */

@@ -578,6 +579,6 @@ objectId?: string;

billingModel?: string;
};
}
/** Linked Subscription information. */
export type LinkedSubscription = TrackedResource & {
export interface LinkedSubscription extends TrackedResource {
/** The identifier associated with the device subscription. */

@@ -612,9 +613,13 @@ linkedSubscriptionId?: string;

readonly deviceConnectionStatus?: string;
};
}
/** Known values of {@link CreatedByType} that the service accepts. */
export enum KnownCreatedByType {
/** User */
User = "User",
/** Application */
Application = "Application",
/** ManagedIdentity */
ManagedIdentity = "ManagedIdentity",
/** Key */
Key = "Key"

@@ -637,11 +642,21 @@ }

export enum KnownCompatibilityIssue {
/** HigherDeviceVersionRequired */
HigherDeviceVersionRequired = "HigherDeviceVersionRequired",
/** LowerDeviceVersionRequired */
LowerDeviceVersionRequired = "LowerDeviceVersionRequired",
/** CapacityBillingModelRequired */
CapacityBillingModelRequired = "CapacityBillingModelRequired",
/** PayAsYouGoBillingModelRequired */
PayAsYouGoBillingModelRequired = "PayAsYouGoBillingModelRequired",
/** DevelopmentBillingModelRequired */
DevelopmentBillingModelRequired = "DevelopmentBillingModelRequired",
/** AzureADIdentitySystemRequired */
AzureADIdentitySystemRequired = "AzureADIdentitySystemRequired",
/** AdfsIdentitySystemRequired */
AdfsIdentitySystemRequired = "ADFSIdentitySystemRequired",
/** ConnectionToInternetRequired */
ConnectionToInternetRequired = "ConnectionToInternetRequired",
/** ConnectionToAzureRequired */
ConnectionToAzureRequired = "ConnectionToAzureRequired",
/** DisconnectedEnvironmentRequired */
DisconnectedEnvironmentRequired = "DisconnectedEnvironmentRequired"

@@ -670,4 +685,7 @@ }

export enum KnownComputeRole {
/** None */
None = "None",
/** IaaS */
IaaS = "IaaS",
/** PaaS */
PaaS = "PaaS"

@@ -689,4 +707,7 @@ }

export enum KnownOperatingSystem {
/** None */
None = "None",
/** Windows */
Windows = "Windows",
/** Linux */
Linux = "Linux"

@@ -708,3 +729,5 @@ }

export enum KnownCategory {
/** AzureAD */
AzureAD = "AzureAD",
/** Adfs */
Adfs = "ADFS"

@@ -725,2 +748,3 @@ }

export enum KnownLocation {
/** Global */
Global = "global"

@@ -727,0 +751,0 @@ }

@@ -9,3 +9,4 @@ /*

import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { CustomerSubscriptions } from "../operationsInterfaces";

@@ -61,4 +62,12 @@ import * as coreClient from "@azure/core-client";

},
byPage: () => {
return this.listPagingPage(resourceGroup, registrationName, options);
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(
resourceGroup,
registrationName,
options,
settings
);
}

@@ -71,7 +80,14 @@ };

registrationName: string,
options?: CustomerSubscriptionsListOptionalParams
options?: CustomerSubscriptionsListOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<CustomerSubscription[]> {
let result = await this._list(resourceGroup, registrationName, options);
yield result.value || [];
let continuationToken = result.nextLink;
let result: CustomerSubscriptionsListResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._list(resourceGroup, registrationName, options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {

@@ -85,3 +101,5 @@ result = await this._listNext(

continuationToken = result.nextLink;
yield result.value || [];
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}

@@ -88,0 +106,0 @@ }

@@ -9,3 +9,4 @@ /*

import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { LinkedSubscriptions } from "../operationsInterfaces";

@@ -20,5 +21,5 @@ import * as coreClient from "@azure/core-client";

LinkedSubscriptionsListByResourceGroupOptionalParams,
LinkedSubscriptionsListByResourceGroupResponse,
LinkedSubscriptionsListBySubscriptionNextOptionalParams,
LinkedSubscriptionsListBySubscriptionOptionalParams,
LinkedSubscriptionsListByResourceGroupResponse,
LinkedSubscriptionsListBySubscriptionResponse,

@@ -67,4 +68,11 @@ LinkedSubscriptionsGetOptionalParams,

},
byPage: () => {
return this.listByResourceGroupPagingPage(resourceGroup, options);
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listByResourceGroupPagingPage(
resourceGroup,
options,
settings
);
}

@@ -76,7 +84,14 @@ };

resourceGroup: string,
options?: LinkedSubscriptionsListByResourceGroupOptionalParams
options?: LinkedSubscriptionsListByResourceGroupOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<LinkedSubscription[]> {
let result = await this._listByResourceGroup(resourceGroup, options);
yield result.value || [];
let continuationToken = result.nextLink;
let result: LinkedSubscriptionsListByResourceGroupResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._listByResourceGroup(resourceGroup, options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {

@@ -89,3 +104,5 @@ result = await this._listByResourceGroupNext(

continuationToken = result.nextLink;
yield result.value || [];
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}

@@ -121,4 +138,7 @@ }

},
byPage: () => {
return this.listBySubscriptionPagingPage(options);
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listBySubscriptionPagingPage(options, settings);
}

@@ -129,11 +149,20 @@ };

private async *listBySubscriptionPagingPage(
options?: LinkedSubscriptionsListBySubscriptionOptionalParams
options?: LinkedSubscriptionsListBySubscriptionOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<LinkedSubscription[]> {
let result = await this._listBySubscription(options);
yield result.value || [];
let continuationToken = result.nextLink;
let result: LinkedSubscriptionsListBySubscriptionResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._listBySubscription(options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listBySubscriptionNext(continuationToken, options);
continuationToken = result.nextLink;
yield result.value || [];
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}

@@ -140,0 +169,0 @@ }

@@ -9,3 +9,4 @@ /*

import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { Operations } from "../operationsInterfaces";

@@ -52,4 +53,7 @@ import * as coreClient from "@azure/core-client";

},
byPage: () => {
return this.listPagingPage(options);
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(options, settings);
}

@@ -60,11 +64,20 @@ };

private async *listPagingPage(
options?: OperationsListOptionalParams
options?: OperationsListOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<Operation[]> {
let result = await this._list(options);
yield result.value || [];
let continuationToken = result.nextLink;
let result: OperationsListResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._list(options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listNext(continuationToken, options);
continuationToken = result.nextLink;
yield result.value || [];
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}

@@ -71,0 +84,0 @@ }

@@ -9,3 +9,4 @@ /*

import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { Products } from "../operationsInterfaces";

@@ -66,4 +67,12 @@ import * as coreClient from "@azure/core-client";

},
byPage: () => {
return this.listPagingPage(resourceGroup, registrationName, options);
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(
resourceGroup,
registrationName,
options,
settings
);
}

@@ -76,7 +85,14 @@ };

registrationName: string,
options?: ProductsListOptionalParams
options?: ProductsListOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<Product[]> {
let result = await this._list(resourceGroup, registrationName, options);
yield result.value || [];
let continuationToken = result.nextLink;
let result: ProductsListResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._list(resourceGroup, registrationName, options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {

@@ -90,3 +106,5 @@ result = await this._listNext(

continuationToken = result.nextLink;
yield result.value || [];
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}

@@ -93,0 +111,0 @@ }

@@ -9,3 +9,4 @@ /*

import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import { setContinuationToken } from "../pagingHelper";
import { Registrations } from "../operationsInterfaces";

@@ -20,5 +21,5 @@ import * as coreClient from "@azure/core-client";

RegistrationsListOptionalParams,
RegistrationsListResponse,
RegistrationsListBySubscriptionNextOptionalParams,
RegistrationsListBySubscriptionOptionalParams,
RegistrationsListResponse,
RegistrationsListBySubscriptionResponse,

@@ -70,4 +71,7 @@ RegistrationsGetOptionalParams,

},
byPage: () => {
return this.listPagingPage(resourceGroup, options);
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listPagingPage(resourceGroup, options, settings);
}

@@ -79,11 +83,20 @@ };

resourceGroup: string,
options?: RegistrationsListOptionalParams
options?: RegistrationsListOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<Registration[]> {
let result = await this._list(resourceGroup, options);
yield result.value || [];
let continuationToken = result.nextLink;
let result: RegistrationsListResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._list(resourceGroup, options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listNext(resourceGroup, continuationToken, options);
continuationToken = result.nextLink;
yield result.value || [];
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}

@@ -116,4 +129,7 @@ }

},
byPage: () => {
return this.listBySubscriptionPagingPage(options);
byPage: (settings?: PageSettings) => {
if (settings?.maxPageSize) {
throw new Error("maxPageSize is not supported by this operation.");
}
return this.listBySubscriptionPagingPage(options, settings);
}

@@ -124,11 +140,20 @@ };

private async *listBySubscriptionPagingPage(
options?: RegistrationsListBySubscriptionOptionalParams
options?: RegistrationsListBySubscriptionOptionalParams,
settings?: PageSettings
): AsyncIterableIterator<Registration[]> {
let result = await this._listBySubscription(options);
yield result.value || [];
let continuationToken = result.nextLink;
let result: RegistrationsListBySubscriptionResponse;
let continuationToken = settings?.continuationToken;
if (!continuationToken) {
result = await this._listBySubscription(options);
let page = result.value || [];
continuationToken = result.nextLink;
setContinuationToken(page, continuationToken);
yield page;
}
while (continuationToken) {
result = await this._listBySubscriptionNext(continuationToken, options);
continuationToken = result.nextLink;
yield result.value || [];
let page = result.value || [];
setContinuationToken(page, continuationToken);
yield page;
}

@@ -135,0 +160,0 @@ }

@@ -23,2 +23,4 @@ import * as coreAuth from '@azure/core-auth';

constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureStackManagementClientOptionalParams);
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
private addCustomApiVersionPolicy;
operations: Operations;

@@ -104,6 +106,6 @@ cloudManifestFile: CloudManifestFile;

/** Cloud specific manifest GET response. */
export declare type CloudManifestFileResponse = Resource & {
export declare interface CloudManifestFileResponse extends Resource {
/** Cloud specific manifest data. */
properties?: CloudManifestFileProperties;
};
}

@@ -164,3 +166,3 @@ /** Product compatibility */

/** Customer subscription. */
export declare type CustomerSubscription = Resource & {
export declare interface CustomerSubscription extends Resource {
/**

@@ -173,3 +175,3 @@ * Metadata pertaining to creation and last modification of the resource.

tenantId?: string;
};
}

@@ -382,4 +384,14 @@ /** Pageable list of customer subscriptions. */

/** Product information. */
export declare type ExtendedProductProperties = VirtualMachineExtensionProductProperties & VirtualMachineProductProperties & {};
export declare interface ExtendedProductProperties extends VirtualMachineExtensionProductProperties, VirtualMachineProductProperties {
}
/**
* Given a result page from a pageable operation, returns a
* continuation token that can be used to begin paging from
* that point later.
* @param page A result object from calling .byPage() on a paged operation.
* @returns The continuation token that can be passed into byPage().
*/
export declare function getContinuationToken(page: unknown): string | undefined;
/** Links to product icons. */

@@ -401,3 +413,5 @@ export declare interface IconUris {

export declare enum KnownCategory {
/** AzureAD */
AzureAD = "AzureAD",
/** Adfs */
Adfs = "ADFS"

@@ -408,11 +422,21 @@ }

export declare enum KnownCompatibilityIssue {
/** HigherDeviceVersionRequired */
HigherDeviceVersionRequired = "HigherDeviceVersionRequired",
/** LowerDeviceVersionRequired */
LowerDeviceVersionRequired = "LowerDeviceVersionRequired",
/** CapacityBillingModelRequired */
CapacityBillingModelRequired = "CapacityBillingModelRequired",
/** PayAsYouGoBillingModelRequired */
PayAsYouGoBillingModelRequired = "PayAsYouGoBillingModelRequired",
/** DevelopmentBillingModelRequired */
DevelopmentBillingModelRequired = "DevelopmentBillingModelRequired",
/** AzureADIdentitySystemRequired */
AzureADIdentitySystemRequired = "AzureADIdentitySystemRequired",
/** AdfsIdentitySystemRequired */
AdfsIdentitySystemRequired = "ADFSIdentitySystemRequired",
/** ConnectionToInternetRequired */
ConnectionToInternetRequired = "ConnectionToInternetRequired",
/** ConnectionToAzureRequired */
ConnectionToAzureRequired = "ConnectionToAzureRequired",
/** DisconnectedEnvironmentRequired */
DisconnectedEnvironmentRequired = "DisconnectedEnvironmentRequired"

@@ -423,4 +447,7 @@ }

export declare enum KnownComputeRole {
/** None */
None = "None",
/** IaaS */
IaaS = "IaaS",
/** PaaS */
PaaS = "PaaS"

@@ -431,5 +458,9 @@ }

export declare enum KnownCreatedByType {
/** User */
User = "User",
/** Application */
Application = "Application",
/** ManagedIdentity */
ManagedIdentity = "ManagedIdentity",
/** Key */
Key = "Key"

@@ -440,2 +471,3 @@ }

export declare enum KnownLocation {
/** Global */
Global = "global"

@@ -446,4 +478,7 @@ }

export declare enum KnownOperatingSystem {
/** None */
None = "None",
/** Windows */
Windows = "Windows",
/** Linux */
Linux = "Linux"

@@ -453,3 +488,3 @@ }

/** Linked Subscription information. */
export declare type LinkedSubscription = TrackedResource & {
export declare interface LinkedSubscription extends TrackedResource {
/** The identifier associated with the device subscription. */

@@ -484,3 +519,3 @@ linkedSubscriptionId?: string;

readonly deviceConnectionStatus?: string;
};
}

@@ -704,3 +739,3 @@ /** Linked Subscription resource */

/** Product information. */
export declare type Product = Resource & {
export declare interface Product extends Resource {
/**

@@ -747,3 +782,3 @@ * Metadata pertaining to creation and last modification of the resource.

compatibility?: Compatibility;
};
}

@@ -941,3 +976,3 @@ /** Link with additional information about a product. */

/** Registration information. */
export declare type Registration = TrackedResource & {
export declare interface Registration extends TrackedResource {
/** The object identifier associated with the Azure Stack connecting to Azure. */

@@ -949,3 +984,3 @@ objectId?: string;

billingModel?: string;
};
}

@@ -952,0 +987,0 @@ /** Pageable list of registrations. */

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc