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
256
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-beta.1 to 3.0.0-beta.2

dist-esm/samples-dev/cloudManifestFileGetSample.d.ts

4

CHANGELOG.md
# Release History
## 3.0.0-beta.1 (2021-12-30)
## 3.0.0-beta.2 (2022-04-11)
The package of @azure/arm-azurestack is using our next generation design principles since version 3.0.0-beta.1, which contains breaking changes.
The package of @azure/arm-azurestack is using our next generation design principles since version 3.0.0-beta.2, which contains breaking changes.

@@ -7,0 +7,0 @@ To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).

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

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

@@ -34,3 +35,3 @@ throw new Error("'credentials' cannot be null");

};
const packageDetails = `azsdk-js-arm-azurestack/3.0.0-beta.1`;
const packageDetails = `azsdk-js-arm-azurestack/3.0.0-beta.2`;
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix

@@ -44,3 +45,3 @@ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`

userAgentPrefix
}, baseUri: options.endpoint || "https://management.azure.com" });
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
super(optionsWithDefaults);

@@ -47,0 +48,0 @@ // Parameter assignments

@@ -1,4 +0,2 @@

export declare const testPollingOptions: {
updateIntervalInMs: number | undefined;
};
export {};
//# sourceMappingURL=sampleTest.d.ts.map

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

import { __awaiter } from "tslib";
import { record, isPlaybackMode } from "@azure-tools/test-recorder";
import { record } from "@azure-tools/test-recorder";
const recorderEnvSetup = {

@@ -23,5 +23,2 @@ replaceableVariables: {

};
export const testPollingOptions = {
updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
};
describe("My test", () => {

@@ -28,0 +25,0 @@ let recorder;

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var coreClient=require("@azure/core-client"),tslib=require("tslib");!function(e){e.User="User",e.Application="Application",e.ManagedIdentity="ManagedIdentity",e.Key="Key"}(exports.KnownCreatedByType||(exports.KnownCreatedByType={})),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={})),function(e){e.None="None",e.IaaS="IaaS",e.PaaS="PaaS"}(exports.KnownComputeRole||(exports.KnownComputeRole={})),function(e){e.None="None",e.Windows="Windows",e.Linux="Linux"}(exports.KnownOperatingSystem||(exports.KnownOperatingSystem={})),function(e){e.AzureAD="AzureAD",e.Adfs="ADFS"}(exports.KnownCategory||(exports.KnownCategory={})),(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)}_listNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listNextOperationSpec)}}const serializer=coreClient.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.AzureStack/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:OperationList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer};class CloudManifestFileImpl{constructor(e){this.client=e}list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$1)}get(e,r){return this.client.sendOperationRequest({verificationVersion:e,options:r},getOperationSpec)}}const serializer$1=coreClient.createSerializer(Mappers,!1),listOperationSpec$1={path:"/providers/Microsoft.AzureStack/cloudManifestFiles",httpMethod:"GET",responses:{200:{bodyMapper:CloudManifestFileResponse},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$1},getOperationSpec={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$1};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$1)}delete(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,customerSubscriptionName:t,options:i},deleteOperationSpec)}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$1)}}const serializer$2=coreClient.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$2},getOperationSpec$1={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$2},deleteOperationSpec={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$2},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$2},listNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:CustomerSubscriptionList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink,subscriptionId,resourceGroup,registrationName],headerParameters:[accept],serializer:serializer$2};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$3)}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$2)}}const serializer$3=coreClient.createSerializer(Mappers,!1),listOperationSpec$3={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$3},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$3},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$3},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$3},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$3},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$3},listNextOperationSpec$2={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:ProductList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink,subscriptionId,resourceGroup,registrationName],headerParameters:[accept],serializer:serializer$3};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$4)}_listBySubscription(e){return this.client.sendOperationRequest({options:e},listBySubscriptionOperationSpec)}get(e,r,t){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,options:t},getOperationSpec$3)}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)}update(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,registrationName:r,token:t,options:i},updateOperationSpec)}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$3)}_listBySubscriptionNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listBySubscriptionNextOperationSpec)}}const serializer$4=coreClient.createSerializer(Mappers,!1),listOperationSpec$4={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$4},listBySubscriptionOperationSpec={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$4},getOperationSpec$3={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$4},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$4},createOrUpdateOperationSpec={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$4},updateOperationSpec={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$4},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$4},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$4},listNextOperationSpec$3={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:RegistrationList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink,subscriptionId,resourceGroup],headerParameters:[accept],serializer:serializer$4},listBySubscriptionNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:RegistrationList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink,subscriptionId],headerParameters:[accept],serializer:serializer$4};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$1)}get(e,r,t){return this.client.sendOperationRequest({resourceGroup:e,linkedSubscriptionName:r,options:t},getOperationSpec$4)}delete(e,r,t){return this.client.sendOperationRequest({resourceGroup:e,linkedSubscriptionName:r,options:t},deleteOperationSpec$2)}createOrUpdate(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,linkedSubscriptionName:r,resource:t,options:i},createOrUpdateOperationSpec$1)}update(e,r,t,i){return this.client.sendOperationRequest({resourceGroup:e,linkedSubscriptionName:r,resource:t,options:i},updateOperationSpec$1)}_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$1)}}const serializer$5=coreClient.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$5},listBySubscriptionOperationSpec$1={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$5},getOperationSpec$4={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$5},deleteOperationSpec$2={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$5},createOrUpdateOperationSpec$1={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$5},updateOperationSpec$1={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$5},listByResourceGroupNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:LinkedSubscriptionsList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink,subscriptionId,resourceGroup],headerParameters:[accept],serializer:serializer$5},listBySubscriptionNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:LinkedSubscriptionsList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink,subscriptionId],headerParameters:[accept],serializer:serializer$5};class AzureStackManagementClient extends coreClient.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={requestContentType:"application/json; charset=utf-8",credential:e},e="azsdk-js-arm-azurestack/3.0.0-beta.1",e=(t=t||{}).userAgentOptions&&t.userAgentOptions.userAgentPrefix?t.userAgentOptions.userAgentPrefix+" "+e:e;t.credentialScopes||(t.credentialScopes=["https://management.azure.com/.default"]),super(Object.assign(Object.assign(Object.assign({},i),t),{userAgentOptions:{userAgentPrefix:e},baseUri:t.endpoint||"https://management.azure.com"})),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 coreClient=require("@azure/core-client"),tslib=require("tslib");function _interopNamespace(t){if(t&&t.__esModule)return t;var i=Object.create(null);return 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.2",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;

@@ -6,4 +6,6 @@ {

"description": "A generated SDK for AzureStackManagementClient.",
"version": "3.0.0-beta.1",
"engines": { "node": ">=12.0.0" },
"version": "3.0.0-beta.2",
"engines": {
"node": ">=12.0.0"
},
"dependencies": {

@@ -16,3 +18,9 @@ "@azure/core-paging": "^1.2.0",

},
"keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
"keywords": [
"node",
"azure",
"typescript",
"browser",
"isomorphic"
],
"license": "MIT",

@@ -24,9 +32,9 @@ "main": "./dist/index.js",

"@microsoft/api-extractor": "^7.18.11",
"@rollup/plugin-commonjs": "11.0.2",
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-multi-entry": "^3.0.0",
"@rollup/plugin-node-resolve": "^8.0.0",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-multi-entry": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"mkdirp": "^1.0.4",
"rollup": "^1.16.3",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~4.2.0",

@@ -45,3 +53,5 @@ "uglify-js": "^3.4.9",

},
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [

@@ -93,3 +103,19 @@ "dist/**/*.js",

"sideEffects": false,
"autoPublish": true
}
"//metadata": {
"constantPaths": [
{
"path": "src/azureStackManagementClient.ts",
"prefix": "packageDetails"
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-azurestack?view=azure-node-preview"
}
}

@@ -19,2 +19,4 @@ # AzureStackManagement client library for JavaScript

See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
### Prerequisites

@@ -53,4 +55,13 @@

const { DefaultAzureCredential } = require("@azure/identity");
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new AzureStackManagementClient(new DefaultAzureCredential(), subscriptionId);
// For client-side applications running in the browser, use this code instead:
// const credential = new InteractiveBrowserCredential({
// tenantId: "<YOUR_TENANT_ID>",
// clientId: "<YOUR_CLIENT_ID>"
// });
// const client = new AzureStackManagementClient(credential, subscriptionId);
```

@@ -57,0 +68,0 @@

@@ -17,58 +17,10 @@ /*

/**
* Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
*
* NOTE: this manual configuration is only needed because OpenTelemetry uses an
* __exportStar downleveled helper function to declare its exports which confuses
* rollup's automatic discovery mechanism.
*
* @returns an object reference that can be `...`'d into your cjs() configuration.
*/
export function openTelemetryCommonJs() {
const namedExports = {};
for (const key of [
"@opentelemetry/api",
"@azure/core-tracing/node_modules/@opentelemetry/api"
]) {
namedExports[key] = [
"SpanKind",
"TraceFlags",
"getSpan",
"setSpan",
"SpanStatusCode",
"getSpanContext",
"setSpanContext"
];
}
const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
for (const version of releasedOpenTelemetryVersions) {
namedExports[
// working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
`../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
] = [
"SpanKind",
"TraceFlags",
"getSpan",
"setSpan",
"StatusCode",
"CanonicalCode",
"getSpanContext",
"setSpanContext"
];
}
return namedExports;
}
// #region Warning Handler
/**
* A function that can determine whether a rollupwarning should be ignored. If
* A function that can determine whether a rollup warning should be ignored. If
* the function returns `true`, then the warning will not be displayed.
*/
function ignoreNiseSinonEvalWarnings(warning) {
function ignoreNiseSinonEval(warning) {
return (

@@ -82,3 +34,3 @@ warning.code === "EVAL" &&

function ignoreChaiCircularDependencyWarnings(warning) {
function ignoreChaiCircularDependency(warning) {
return (

@@ -90,6 +42,3 @@ warning.code === "CIRCULAR_DEPENDENCY" &&

const warningInhibitors = [
ignoreChaiCircularDependencyWarnings,
ignoreNiseSinonEvalWarnings
];
const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];

@@ -128,18 +77,3 @@ /**

}),
cjs({
namedExports: {
// Chai's strange internal architecture makes it impossible to statically
// analyze its exports.
chai: [
"version",
"use",
"util",
"config",
"expect",
"should",
"assert"
],
...openTelemetryCommonJs()
}
}),
cjs(),
json(),

@@ -180,3 +114,3 @@ sourcemaps()

preserveSymlinks: false,
plugins: [sourcemaps(), nodeResolve(), cjs()]
plugins: [sourcemaps(), nodeResolve()]
};

@@ -183,0 +117,0 @@

@@ -62,3 +62,3 @@ /*

const packageDetails = `azsdk-js-arm-azurestack/3.0.0-beta.1`;
const packageDetails = `azsdk-js-arm-azurestack/3.0.0-beta.2`;
const userAgentPrefix =

@@ -78,3 +78,4 @@ options.userAgentOptions && options.userAgentOptions.userAgentPrefix

},
baseUri: options.endpoint || "https://management.azure.com"
baseUri:
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
};

@@ -81,0 +82,0 @@ super(optionsWithDefaults);

@@ -12,9 +12,23 @@ {

"forceConsistentCasingInFileNames": true,
"lib": ["es6", "dom"],
"lib": [
"es6",
"dom"
],
"declaration": true,
"outDir": "./dist-esm",
"importHelpers": true
"importHelpers": true,
"paths": {
"@azure/arm-azurestack": [
"./src/index"
]
}
},
"include": ["./src/**/*.ts", "./test/**/*.ts"],
"exclude": ["node_modules"]
}
"include": [
"./src/**/*.ts",
"./test/**/*.ts",
"samples-dev/**/*.ts"
],
"exclude": [
"node_modules"
]
}

@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.

"packageName": "@microsoft/api-extractor",
"packageVersion": "7.19.2"
"packageVersion": "7.22.1"
}
]
}

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

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