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