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

@azure/arm-servicelinker

Package Overview
Dependencies
Maintainers
1
Versions
216
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/arm-servicelinker - npm Package Compare versions

Comparing version 2.0.1-alpha.20221026.1 to 2.0.1-alpha.20221101.1

2

dist/index.min.js

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var coreClient=require("@azure/core-client"),coreRestPipeline=require("@azure/core-rest-pipeline"),tslib=require("tslib"),coreLro=require("@azure/core-lro");function _interopNamespace(t){if(t&&t.__esModule)return t;var i=Object.create(null);return t&&Object.keys(t).forEach(function(e){var r;"default"!==e&&(r=Object.getOwnPropertyDescriptor(t,e),Object.defineProperty(i,e,r.get?r:{enumerable:!0,get:function(){return t[e]}}))}),i.default=t,Object.freeze(i)}var coreClient__namespace=_interopNamespace(coreClient),coreRestPipeline__namespace=_interopNamespace(coreRestPipeline);exports.KnownTargetServiceType=void 0,function(e){e.AzureResource="AzureResource",e.ConfluentBootstrapServer="ConfluentBootstrapServer",e.ConfluentSchemaRegistry="ConfluentSchemaRegistry"}(exports.KnownTargetServiceType||(exports.KnownTargetServiceType={})),exports.KnownAuthType=void 0,function(e){e.SystemAssignedIdentity="systemAssignedIdentity",e.UserAssignedIdentity="userAssignedIdentity",e.ServicePrincipalSecret="servicePrincipalSecret",e.ServicePrincipalCertificate="servicePrincipalCertificate",e.Secret="secret"}(exports.KnownAuthType||(exports.KnownAuthType={})),exports.KnownClientType=void 0,function(e){e.None="none",e.Dotnet="dotnet",e.Java="java",e.Python="python",e.Go="go",e.Php="php",e.Ruby="ruby",e.Django="django",e.Nodejs="nodejs",e.SpringBoot="springBoot"}(exports.KnownClientType||(exports.KnownClientType={})),exports.KnownVNetSolutionType=void 0,function(e){e.ServiceEndpoint="serviceEndpoint",e.PrivateLink="privateLink"}(exports.KnownVNetSolutionType||(exports.KnownVNetSolutionType={})),exports.KnownCreatedByType=void 0,function(e){e.User="User",e.Application="Application",e.ManagedIdentity="ManagedIdentity",e.Key="Key"}(exports.KnownCreatedByType||(exports.KnownCreatedByType={})),exports.KnownValidationResultStatus=void 0,function(e){e.Success="success",e.Failure="failure",e.Warning="warning"}(exports.KnownValidationResultStatus||(exports.KnownValidationResultStatus={})),exports.KnownOrigin=void 0,function(e){e.User="user",e.System="system",e.UserSystem="user,system"}(exports.KnownOrigin||(exports.KnownOrigin={})),exports.KnownActionType=void 0,(exports.KnownActionType||(exports.KnownActionType={})).Internal="Internal",exports.KnownAzureResourceType=void 0,(exports.KnownAzureResourceType||(exports.KnownAzureResourceType={})).KeyVault="KeyVault",exports.KnownSecretType=void 0,function(e){e.RawValue="rawValue",e.KeyVaultSecretUri="keyVaultSecretUri",e.KeyVaultSecretReference="keyVaultSecretReference"}(exports.KnownSecretType||(exports.KnownSecretType={}));const LinkerList={type:{name:"Composite",className:"LinkerList",modelProperties:{nextLink:{serializedName:"nextLink",nullable:!0,type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"LinkerResource"}}}}}}},TargetServiceBase={type:{name:"Composite",className:"TargetServiceBase",uberParent:"TargetServiceBase",polymorphicDiscriminator:{serializedName:"type",clientName:"type"},modelProperties:{type:{serializedName:"type",required:!0,type:{name:"String"}}}}},AuthInfoBase={type:{name:"Composite",className:"AuthInfoBase",uberParent:"AuthInfoBase",polymorphicDiscriminator:{serializedName:"authType",clientName:"authType"},modelProperties:{authType:{serializedName:"authType",required:!0,type:{name:"String"}}}}},VNetSolution={type:{name:"Composite",className:"VNetSolution",modelProperties:{type:{serializedName:"type",nullable:!0,type:{name:"String"}}}}},SecretStore={type:{name:"Composite",className:"SecretStore",modelProperties:{keyVaultId:{serializedName:"keyVaultId",nullable:!0,type:{name:"String"}}}}},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"}}}}},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"}}}}},ErrorResponse={type:{name:"Composite",className:"ErrorResponse",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorDetail"}}}}},ErrorDetail={type:{name:"Composite",className:"ErrorDetail",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"}},details:{serializedName:"details",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ErrorDetail"}}}},additionalInfo:{serializedName:"additionalInfo",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ErrorAdditionalInfo"}}}}}}},ErrorAdditionalInfo={type:{name:"Composite",className:"ErrorAdditionalInfo",modelProperties:{type:{serializedName:"type",readOnly:!0,type:{name:"String"}},info:{serializedName:"info",readOnly:!0,type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},LinkerPatch={type:{name:"Composite",className:"LinkerPatch",modelProperties:{targetService:{serializedName:"properties.targetService",type:{name:"Composite",className:"TargetServiceBase"}},authInfo:{serializedName:"properties.authInfo",type:{name:"Composite",className:"AuthInfoBase"}},clientType:{serializedName:"properties.clientType",type:{name:"String"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}},vNetSolution:{serializedName:"properties.vNetSolution",type:{name:"Composite",className:"VNetSolution"}},secretStore:{serializedName:"properties.secretStore",type:{name:"Composite",className:"SecretStore"}},scope:{serializedName:"properties.scope",nullable:!0,type:{name:"String"}}}}},ValidateOperationResult={type:{name:"Composite",className:"ValidateOperationResult",modelProperties:{resourceId:{serializedName:"resourceId",nullable:!0,type:{name:"String"}},status:{serializedName:"status",nullable:!0,type:{name:"String"}},linkerName:{serializedName:"properties.linkerName",nullable:!0,type:{name:"String"}},isConnectionAvailable:{serializedName:"properties.isConnectionAvailable",nullable:!0,type:{name:"Boolean"}},reportStartTimeUtc:{serializedName:"properties.reportStartTimeUtc",nullable:!0,type:{name:"DateTime"}},reportEndTimeUtc:{serializedName:"properties.reportEndTimeUtc",nullable:!0,type:{name:"DateTime"}},sourceId:{serializedName:"properties.sourceId",nullable:!0,type:{name:"String"}},targetId:{serializedName:"properties.targetId",nullable:!0,type:{name:"String"}},authType:{serializedName:"properties.authType",nullable:!0,type:{name:"String"}},validationDetail:{serializedName:"properties.validationDetail",nullable:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ValidationResultItem"}}}}}}},ValidationResultItem={type:{name:"Composite",className:"ValidationResultItem",modelProperties:{name:{serializedName:"name",type:{name:"String"}},description:{serializedName:"description",nullable:!0,type:{name:"String"}},result:{serializedName:"result",nullable:!0,type:{name:"String"}},errorMessage:{serializedName:"errorMessage",nullable:!0,type:{name:"String"}},errorCode:{serializedName:"errorCode",nullable:!0,type:{name:"String"}}}}},SourceConfigurationResult={type:{name:"Composite",className:"SourceConfigurationResult",modelProperties:{configurations:{serializedName:"configurations",type:{name:"Sequence",element:{type:{name:"Composite",className:"SourceConfiguration"}}}}}}},SourceConfiguration={type:{name:"Composite",className:"SourceConfiguration",modelProperties:{name:{serializedName:"name",type:{name:"String"}},value:{serializedName:"value",nullable:!0,type:{name:"String"}}}}},OperationListResult={type:{name:"Composite",className:"OperationListResult",modelProperties:{value:{serializedName:"value",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"Operation"}}}},nextLink:{serializedName:"nextLink",readOnly:!0,type:{name:"String"}}}}},Operation={type:{name:"Composite",className:"Operation",modelProperties:{name:{serializedName:"name",readOnly:!0,type:{name:"String"}},isDataAction:{serializedName:"isDataAction",readOnly:!0,type:{name:"Boolean"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}},origin:{serializedName:"origin",readOnly:!0,type:{name:"String"}},actionType:{serializedName:"actionType",readOnly:!0,type:{name:"String"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",readOnly:!0,type:{name:"String"}},resource:{serializedName:"resource",readOnly:!0,type:{name:"String"}},operation:{serializedName:"operation",readOnly:!0,type:{name:"String"}},description:{serializedName:"description",readOnly:!0,type:{name:"String"}}}}},AzureResourcePropertiesBase={type:{name:"Composite",className:"AzureResourcePropertiesBase",uberParent:"AzureResourcePropertiesBase",polymorphicDiscriminator:{serializedName:"type",clientName:"type"},modelProperties:{type:{serializedName:"type",required:!0,type:{name:"String"}}}}},SecretInfoBase={type:{name:"Composite",className:"SecretInfoBase",uberParent:"SecretInfoBase",polymorphicDiscriminator:{serializedName:"secretType",clientName:"secretType"},modelProperties:{secretType:{serializedName:"secretType",required:!0,type:{name:"String"}}}}},AzureResource={serializedName:"AzureResource",type:{name:"Composite",className:"AzureResource",uberParent:"TargetServiceBase",polymorphicDiscriminator:TargetServiceBase.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},TargetServiceBase.type.modelProperties),{id:{serializedName:"id",type:{name:"String"}},resourceProperties:{serializedName:"resourceProperties",type:{name:"Composite",className:"AzureResourcePropertiesBase"}}})}},ConfluentBootstrapServer={serializedName:"ConfluentBootstrapServer",type:{name:"Composite",className:"ConfluentBootstrapServer",uberParent:"TargetServiceBase",polymorphicDiscriminator:TargetServiceBase.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},TargetServiceBase.type.modelProperties),{endpoint:{serializedName:"endpoint",type:{name:"String"}}})}},ConfluentSchemaRegistry={serializedName:"ConfluentSchemaRegistry",type:{name:"Composite",className:"ConfluentSchemaRegistry",uberParent:"TargetServiceBase",polymorphicDiscriminator:TargetServiceBase.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},TargetServiceBase.type.modelProperties),{endpoint:{serializedName:"endpoint",type:{name:"String"}}})}},SecretAuthInfo={serializedName:"secret",type:{name:"Composite",className:"SecretAuthInfo",uberParent:"AuthInfoBase",polymorphicDiscriminator:AuthInfoBase.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},AuthInfoBase.type.modelProperties),{name:{serializedName:"name",nullable:!0,type:{name:"String"}},secretInfo:{serializedName:"secretInfo",type:{name:"Composite",className:"SecretInfoBase"}}})}},UserAssignedIdentityAuthInfo={serializedName:"userAssignedIdentity",type:{name:"Composite",className:"UserAssignedIdentityAuthInfo",uberParent:"AuthInfoBase",polymorphicDiscriminator:AuthInfoBase.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},AuthInfoBase.type.modelProperties),{clientId:{serializedName:"clientId",type:{name:"String"}},subscriptionId:{serializedName:"subscriptionId",type:{name:"String"}}})}},SystemAssignedIdentityAuthInfo={serializedName:"systemAssignedIdentity",type:{name:"Composite",className:"SystemAssignedIdentityAuthInfo",uberParent:"AuthInfoBase",polymorphicDiscriminator:AuthInfoBase.type.polymorphicDiscriminator,modelProperties:Object.assign({},AuthInfoBase.type.modelProperties)}},ServicePrincipalSecretAuthInfo={serializedName:"servicePrincipalSecret",type:{name:"Composite",className:"ServicePrincipalSecretAuthInfo",uberParent:"AuthInfoBase",polymorphicDiscriminator:AuthInfoBase.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},AuthInfoBase.type.modelProperties),{clientId:{serializedName:"clientId",required:!0,type:{name:"String"}},principalId:{serializedName:"principalId",required:!0,type:{name:"String"}},secret:{serializedName:"secret",required:!0,type:{name:"String"}}})}},ServicePrincipalCertificateAuthInfo={serializedName:"servicePrincipalCertificate",type:{name:"Composite",className:"ServicePrincipalCertificateAuthInfo",uberParent:"AuthInfoBase",polymorphicDiscriminator:AuthInfoBase.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},AuthInfoBase.type.modelProperties),{clientId:{serializedName:"clientId",required:!0,type:{name:"String"}},principalId:{serializedName:"principalId",required:!0,type:{name:"String"}},certificate:{serializedName:"certificate",required:!0,type:{name:"String"}}})}},ProxyResource={type:{name:"Composite",className:"ProxyResource",modelProperties:Object.assign({},Resource.type.modelProperties)}},AzureKeyVaultProperties={serializedName:"KeyVault",type:{name:"Composite",className:"AzureKeyVaultProperties",uberParent:"AzureResourcePropertiesBase",polymorphicDiscriminator:AzureResourcePropertiesBase.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},AzureResourcePropertiesBase.type.modelProperties),{connectAsKubernetesCsiDriver:{serializedName:"connectAsKubernetesCsiDriver",nullable:!0,type:{name:"Boolean"}}})}},ValueSecretInfo={serializedName:"rawValue",type:{name:"Composite",className:"ValueSecretInfo",uberParent:"SecretInfoBase",polymorphicDiscriminator:SecretInfoBase.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},SecretInfoBase.type.modelProperties),{value:{serializedName:"value",nullable:!0,type:{name:"String"}}})}},KeyVaultSecretReferenceSecretInfo={serializedName:"keyVaultSecretReference",type:{name:"Composite",className:"KeyVaultSecretReferenceSecretInfo",uberParent:"SecretInfoBase",polymorphicDiscriminator:SecretInfoBase.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},SecretInfoBase.type.modelProperties),{name:{serializedName:"name",type:{name:"String"}},version:{serializedName:"version",nullable:!0,type:{name:"String"}}})}},KeyVaultSecretUriSecretInfo={serializedName:"keyVaultSecretUri",type:{name:"Composite",className:"KeyVaultSecretUriSecretInfo",uberParent:"SecretInfoBase",polymorphicDiscriminator:SecretInfoBase.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},SecretInfoBase.type.modelProperties),{value:{serializedName:"value",type:{name:"String"}}})}},LinkerResource={type:{name:"Composite",className:"LinkerResource",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}},targetService:{serializedName:"properties.targetService",type:{name:"Composite",className:"TargetServiceBase"}},authInfo:{serializedName:"properties.authInfo",type:{name:"Composite",className:"AuthInfoBase"}},clientType:{serializedName:"properties.clientType",type:{name:"String"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}},vNetSolution:{serializedName:"properties.vNetSolution",type:{name:"Composite",className:"VNetSolution"}},secretStore:{serializedName:"properties.secretStore",type:{name:"Composite",className:"SecretStore"}},scope:{serializedName:"properties.scope",nullable:!0,type:{name:"String"}}})}};let discriminators={TargetServiceBase:TargetServiceBase,AuthInfoBase:AuthInfoBase,AzureResourcePropertiesBase:AzureResourcePropertiesBase,SecretInfoBase:SecretInfoBase,"TargetServiceBase.AzureResource":AzureResource,"TargetServiceBase.ConfluentBootstrapServer":ConfluentBootstrapServer,"TargetServiceBase.ConfluentSchemaRegistry":ConfluentSchemaRegistry,"AuthInfoBase.secret":SecretAuthInfo,"AuthInfoBase.userAssignedIdentity":UserAssignedIdentityAuthInfo,"AuthInfoBase.systemAssignedIdentity":SystemAssignedIdentityAuthInfo,"AuthInfoBase.servicePrincipalSecret":ServicePrincipalSecretAuthInfo,"AuthInfoBase.servicePrincipalCertificate":ServicePrincipalCertificateAuthInfo,"AzureResourcePropertiesBase.KeyVault":AzureKeyVaultProperties,"SecretInfoBase.rawValue":ValueSecretInfo,"SecretInfoBase.keyVaultSecretReference":KeyVaultSecretReferenceSecretInfo,"SecretInfoBase.keyVaultSecretUri":KeyVaultSecretUriSecretInfo};var Mappers=Object.freeze({__proto__:null,LinkerList:LinkerList,TargetServiceBase:TargetServiceBase,AuthInfoBase:AuthInfoBase,VNetSolution:VNetSolution,SecretStore:SecretStore,SystemData:SystemData,Resource:Resource,ErrorResponse:ErrorResponse,ErrorDetail:ErrorDetail,ErrorAdditionalInfo:ErrorAdditionalInfo,LinkerPatch:LinkerPatch,ValidateOperationResult:ValidateOperationResult,ValidationResultItem:ValidationResultItem,SourceConfigurationResult:SourceConfigurationResult,SourceConfiguration:SourceConfiguration,OperationListResult:OperationListResult,Operation:Operation,OperationDisplay:OperationDisplay,AzureResourcePropertiesBase:AzureResourcePropertiesBase,SecretInfoBase:SecretInfoBase,AzureResource:AzureResource,ConfluentBootstrapServer:ConfluentBootstrapServer,ConfluentSchemaRegistry:ConfluentSchemaRegistry,SecretAuthInfo:SecretAuthInfo,UserAssignedIdentityAuthInfo:UserAssignedIdentityAuthInfo,SystemAssignedIdentityAuthInfo:SystemAssignedIdentityAuthInfo,ServicePrincipalSecretAuthInfo:ServicePrincipalSecretAuthInfo,ServicePrincipalCertificateAuthInfo:ServicePrincipalCertificateAuthInfo,ProxyResource:ProxyResource,AzureKeyVaultProperties:AzureKeyVaultProperties,ValueSecretInfo:ValueSecretInfo,KeyVaultSecretReferenceSecretInfo:KeyVaultSecretReferenceSecretInfo,KeyVaultSecretUriSecretInfo:KeyVaultSecretUriSecretInfo,LinkerResource:LinkerResource,discriminators:discriminators});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},resourceUri={parameterPath:"resourceUri",mapper:{serializedName:"resourceUri",required:!0,type:{name:"String"}},skipEncoding:!0},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2022-05-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},linkerName={parameterPath:"linkerName",mapper:{serializedName:"linkerName",required:!0,type:{name:"String"}}},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},parameters={parameterPath:"parameters",mapper:LinkerResource},parameters1={parameterPath:"parameters",mapper:LinkerPatch},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0};class LroImpl{constructor(e,r,t,i=t.path,a=t.httpMethod){this.sendOperationFn=e,this.args=r,this.spec=t,this.requestPath=i,this.requestMethod=a}sendInitialRequest(){return tslib.__awaiter(this,void 0,void 0,function*(){return this.sendOperationFn(this.args,this.spec)})}sendPollRequest(r){return tslib.__awaiter(this,void 0,void 0,function*(){var e=this.spec,e=tslib.__rest(e,["requestBody"]);return this.sendOperationFn(this.args,Object.assign(Object.assign({},e),{path:r,httpMethod:"GET"}))})}}class LinkerImpl{constructor(e){this.client=e}list(e,r){const t=this.listPagingAll(e,r);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e,r)}}listPagingPage(t,i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(t,i));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(t,r,i)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(s,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listPagingPage(s,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){return this.client.sendOperationRequest({resourceUri:e,options:r},listOperationSpec$1)}get(e,r,t){return this.client.sendOperationRequest({resourceUri:e,linkerName:r,options:t},getOperationSpec)}beginCreateOrUpdate(t,i,a,n){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield s(e,a),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceUri:t,linkerName:i,parameters:a,options:n},createOrUpdateOperationSpec);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs,lroResourceLocationConfig:"azure-async-operation"});return yield r.poll(),r})}beginCreateOrUpdateAndWait(r,t,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreateOrUpdate(r,t,i,a);return e.pollUntilDone()})}beginDelete(t,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield s(e,a),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceUri:t,linkerName:i,options:a},deleteOperationSpec);const r=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs,lroResourceLocationConfig:"azure-async-operation"});return yield r.poll(),r})}beginDeleteAndWait(r,t,i){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,t,i);return e.pollUntilDone()})}beginUpdate(t,i,a,n){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield s(e,a),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceUri:t,linkerName:i,parameters:a,options:n},updateOperationSpec);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs,lroResourceLocationConfig:"azure-async-operation"});return yield r.poll(),r})}beginUpdateAndWait(r,t,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(r,t,i,a);return e.pollUntilDone()})}beginValidate(t,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield s(e,a),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceUri:t,linkerName:i,options:a},validateOperationSpec);const r=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs,lroResourceLocationConfig:"azure-async-operation"});return yield r.poll(),r})}beginValidateAndWait(r,t,i){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginValidate(r,t,i);return e.pollUntilDone()})}listConfigurations(e,r,t){return this.client.sendOperationRequest({resourceUri:e,linkerName:r,options:t},listConfigurationsOperationSpec)}_listNext(e,r,t){return this.client.sendOperationRequest({resourceUri:e,nextLink:r,options:t},listNextOperationSpec$1)}}const serializer$1=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec$1={path:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers",httpMethod:"GET",responses:{200:{bodyMapper:LinkerList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceUri],headerParameters:[accept],serializer:serializer$1},getOperationSpec={path:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}",httpMethod:"GET",responses:{200:{bodyMapper:LinkerResource},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceUri,linkerName],headerParameters:[accept],serializer:serializer$1},createOrUpdateOperationSpec={path:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}",httpMethod:"PUT",responses:{200:{bodyMapper:LinkerResource},201:{bodyMapper:LinkerResource},202:{bodyMapper:LinkerResource},204:{bodyMapper:LinkerResource},default:{bodyMapper:ErrorResponse}},requestBody:parameters,queryParameters:[apiVersion],urlParameters:[$host,resourceUri,linkerName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$1},deleteOperationSpec={path:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceUri,linkerName],headerParameters:[accept],serializer:serializer$1},updateOperationSpec={path:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}",httpMethod:"PATCH",responses:{200:{bodyMapper:LinkerResource},201:{bodyMapper:LinkerResource},202:{bodyMapper:LinkerResource},204:{bodyMapper:LinkerResource},default:{bodyMapper:ErrorResponse}},requestBody:parameters1,queryParameters:[apiVersion],urlParameters:[$host,resourceUri,linkerName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$1},validateOperationSpec={path:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}/validateLinker",httpMethod:"POST",responses:{200:{bodyMapper:ValidateOperationResult},201:{bodyMapper:ValidateOperationResult},202:{bodyMapper:ValidateOperationResult},204:{bodyMapper:ValidateOperationResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceUri,linkerName],headerParameters:[accept],serializer:serializer$1},listConfigurationsOperationSpec={path:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}/listConfigurations",httpMethod:"POST",responses:{200:{bodyMapper:SourceConfigurationResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceUri,linkerName],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:LinkerList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceUri,nextLink],headerParameters:[accept],serializer:serializer$1};class OperationsImpl{constructor(e){this.client=e}list(e){const r=this.listPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(t));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(r,t)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(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)}_listNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listNextOperationSpec)}}const serializer=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.ServiceLinker/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer};class ServiceLinkerManagementClient extends coreClient__namespace.ServiceClient{constructor(e,r){if(void 0===e)throw new Error("'credentials' cannot be null");var e={requestContentType:"application/json; charset=utf-8",credential:e},t="azsdk-js-arm-servicelinker/2.0.1",t=(r=r||{}).userAgentOptions&&r.userAgentOptions.userAgentPrefix?r.userAgentOptions.userAgentPrefix+" "+t:t,e=(r.credentialScopes||(r.credentialScopes=["https://management.azure.com/.default"]),Object.assign(Object.assign(Object.assign({},e),r),{userAgentOptions:{userAgentPrefix:t},baseUri:null!=(t=null!=(e=r.endpoint)?e:r.baseUri)?t:"https://management.azure.com"}));if(super(e),null!=r&&r.pipeline&&0<r.pipeline.getOrderedPolicies().length){const i=r.pipeline.getOrderedPolicies();i.some(e=>e.name===coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName)||(this.pipeline.removePolicy({name:coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName}),this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({scopes:e.baseUri+"/.default",challengeCallbacks:{authorizeRequestOnChallenge:coreClient__namespace.authorizeRequestOnClaimChallenge}})))}this.$host=r.$host||"https://management.azure.com",this.apiVersion=r.apiVersion||"2022-05-01",this.linker=new LinkerImpl(this),this.operations=new OperationsImpl(this)}}exports.ServiceLinkerManagementClient=ServiceLinkerManagementClient;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var coreClient=require("@azure/core-client"),coreRestPipeline=require("@azure/core-rest-pipeline"),tslib=require("tslib"),coreLro=require("@azure/core-lro");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);exports.KnownTargetServiceType=void 0,function(e){e.AzureResource="AzureResource",e.ConfluentBootstrapServer="ConfluentBootstrapServer",e.ConfluentSchemaRegistry="ConfluentSchemaRegistry"}(exports.KnownTargetServiceType||(exports.KnownTargetServiceType={})),exports.KnownAuthType=void 0,function(e){e.SystemAssignedIdentity="systemAssignedIdentity",e.UserAssignedIdentity="userAssignedIdentity",e.ServicePrincipalSecret="servicePrincipalSecret",e.ServicePrincipalCertificate="servicePrincipalCertificate",e.Secret="secret"}(exports.KnownAuthType||(exports.KnownAuthType={})),exports.KnownClientType=void 0,function(e){e.None="none",e.Dotnet="dotnet",e.Java="java",e.Python="python",e.Go="go",e.Php="php",e.Ruby="ruby",e.Django="django",e.Nodejs="nodejs",e.SpringBoot="springBoot"}(exports.KnownClientType||(exports.KnownClientType={})),exports.KnownVNetSolutionType=void 0,function(e){e.ServiceEndpoint="serviceEndpoint",e.PrivateLink="privateLink"}(exports.KnownVNetSolutionType||(exports.KnownVNetSolutionType={})),exports.KnownCreatedByType=void 0,function(e){e.User="User",e.Application="Application",e.ManagedIdentity="ManagedIdentity",e.Key="Key"}(exports.KnownCreatedByType||(exports.KnownCreatedByType={})),exports.KnownValidationResultStatus=void 0,function(e){e.Success="success",e.Failure="failure",e.Warning="warning"}(exports.KnownValidationResultStatus||(exports.KnownValidationResultStatus={})),exports.KnownOrigin=void 0,function(e){e.User="user",e.System="system",e.UserSystem="user,system"}(exports.KnownOrigin||(exports.KnownOrigin={})),exports.KnownActionType=void 0,(exports.KnownActionType||(exports.KnownActionType={})).Internal="Internal",exports.KnownAzureResourceType=void 0,(exports.KnownAzureResourceType||(exports.KnownAzureResourceType={})).KeyVault="KeyVault",exports.KnownSecretType=void 0,function(e){e.RawValue="rawValue",e.KeyVaultSecretUri="keyVaultSecretUri",e.KeyVaultSecretReference="keyVaultSecretReference"}(exports.KnownSecretType||(exports.KnownSecretType={}));const LinkerList={type:{name:"Composite",className:"LinkerList",modelProperties:{nextLink:{serializedName:"nextLink",nullable:!0,type:{name:"String"}},value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"LinkerResource"}}}}}}},TargetServiceBase={type:{name:"Composite",className:"TargetServiceBase",uberParent:"TargetServiceBase",polymorphicDiscriminator:{serializedName:"type",clientName:"type"},modelProperties:{type:{serializedName:"type",required:!0,type:{name:"String"}}}}},AuthInfoBase={type:{name:"Composite",className:"AuthInfoBase",uberParent:"AuthInfoBase",polymorphicDiscriminator:{serializedName:"authType",clientName:"authType"},modelProperties:{authType:{serializedName:"authType",required:!0,type:{name:"String"}}}}},VNetSolution={type:{name:"Composite",className:"VNetSolution",modelProperties:{type:{serializedName:"type",nullable:!0,type:{name:"String"}}}}},SecretStore={type:{name:"Composite",className:"SecretStore",modelProperties:{keyVaultId:{serializedName:"keyVaultId",nullable:!0,type:{name:"String"}}}}},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"}}}}},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"}}}}},ErrorResponse={type:{name:"Composite",className:"ErrorResponse",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorDetail"}}}}},ErrorDetail={type:{name:"Composite",className:"ErrorDetail",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"}},details:{serializedName:"details",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ErrorDetail"}}}},additionalInfo:{serializedName:"additionalInfo",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ErrorAdditionalInfo"}}}}}}},ErrorAdditionalInfo={type:{name:"Composite",className:"ErrorAdditionalInfo",modelProperties:{type:{serializedName:"type",readOnly:!0,type:{name:"String"}},info:{serializedName:"info",readOnly:!0,type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},LinkerPatch={type:{name:"Composite",className:"LinkerPatch",modelProperties:{targetService:{serializedName:"properties.targetService",type:{name:"Composite",className:"TargetServiceBase"}},authInfo:{serializedName:"properties.authInfo",type:{name:"Composite",className:"AuthInfoBase"}},clientType:{serializedName:"properties.clientType",type:{name:"String"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}},vNetSolution:{serializedName:"properties.vNetSolution",type:{name:"Composite",className:"VNetSolution"}},secretStore:{serializedName:"properties.secretStore",type:{name:"Composite",className:"SecretStore"}},scope:{serializedName:"properties.scope",nullable:!0,type:{name:"String"}}}}},ValidateOperationResult={type:{name:"Composite",className:"ValidateOperationResult",modelProperties:{resourceId:{serializedName:"resourceId",nullable:!0,type:{name:"String"}},status:{serializedName:"status",nullable:!0,type:{name:"String"}},linkerName:{serializedName:"properties.linkerName",nullable:!0,type:{name:"String"}},isConnectionAvailable:{serializedName:"properties.isConnectionAvailable",nullable:!0,type:{name:"Boolean"}},reportStartTimeUtc:{serializedName:"properties.reportStartTimeUtc",nullable:!0,type:{name:"DateTime"}},reportEndTimeUtc:{serializedName:"properties.reportEndTimeUtc",nullable:!0,type:{name:"DateTime"}},sourceId:{serializedName:"properties.sourceId",nullable:!0,type:{name:"String"}},targetId:{serializedName:"properties.targetId",nullable:!0,type:{name:"String"}},authType:{serializedName:"properties.authType",nullable:!0,type:{name:"String"}},validationDetail:{serializedName:"properties.validationDetail",nullable:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ValidationResultItem"}}}}}}},ValidationResultItem={type:{name:"Composite",className:"ValidationResultItem",modelProperties:{name:{serializedName:"name",type:{name:"String"}},description:{serializedName:"description",nullable:!0,type:{name:"String"}},result:{serializedName:"result",nullable:!0,type:{name:"String"}},errorMessage:{serializedName:"errorMessage",nullable:!0,type:{name:"String"}},errorCode:{serializedName:"errorCode",nullable:!0,type:{name:"String"}}}}},SourceConfigurationResult={type:{name:"Composite",className:"SourceConfigurationResult",modelProperties:{configurations:{serializedName:"configurations",type:{name:"Sequence",element:{type:{name:"Composite",className:"SourceConfiguration"}}}}}}},SourceConfiguration={type:{name:"Composite",className:"SourceConfiguration",modelProperties:{name:{serializedName:"name",type:{name:"String"}},value:{serializedName:"value",nullable:!0,type:{name:"String"}}}}},OperationListResult={type:{name:"Composite",className:"OperationListResult",modelProperties:{value:{serializedName:"value",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"Operation"}}}},nextLink:{serializedName:"nextLink",readOnly:!0,type:{name:"String"}}}}},Operation={type:{name:"Composite",className:"Operation",modelProperties:{name:{serializedName:"name",readOnly:!0,type:{name:"String"}},isDataAction:{serializedName:"isDataAction",readOnly:!0,type:{name:"Boolean"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}},origin:{serializedName:"origin",readOnly:!0,type:{name:"String"}},actionType:{serializedName:"actionType",readOnly:!0,type:{name:"String"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",readOnly:!0,type:{name:"String"}},resource:{serializedName:"resource",readOnly:!0,type:{name:"String"}},operation:{serializedName:"operation",readOnly:!0,type:{name:"String"}},description:{serializedName:"description",readOnly:!0,type:{name:"String"}}}}},AzureResourcePropertiesBase={type:{name:"Composite",className:"AzureResourcePropertiesBase",uberParent:"AzureResourcePropertiesBase",polymorphicDiscriminator:{serializedName:"type",clientName:"type"},modelProperties:{type:{serializedName:"type",required:!0,type:{name:"String"}}}}},SecretInfoBase={type:{name:"Composite",className:"SecretInfoBase",uberParent:"SecretInfoBase",polymorphicDiscriminator:{serializedName:"secretType",clientName:"secretType"},modelProperties:{secretType:{serializedName:"secretType",required:!0,type:{name:"String"}}}}},AzureResource={serializedName:"AzureResource",type:{name:"Composite",className:"AzureResource",uberParent:"TargetServiceBase",polymorphicDiscriminator:TargetServiceBase.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},TargetServiceBase.type.modelProperties),{id:{serializedName:"id",type:{name:"String"}},resourceProperties:{serializedName:"resourceProperties",type:{name:"Composite",className:"AzureResourcePropertiesBase"}}})}},ConfluentBootstrapServer={serializedName:"ConfluentBootstrapServer",type:{name:"Composite",className:"ConfluentBootstrapServer",uberParent:"TargetServiceBase",polymorphicDiscriminator:TargetServiceBase.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},TargetServiceBase.type.modelProperties),{endpoint:{serializedName:"endpoint",type:{name:"String"}}})}},ConfluentSchemaRegistry={serializedName:"ConfluentSchemaRegistry",type:{name:"Composite",className:"ConfluentSchemaRegistry",uberParent:"TargetServiceBase",polymorphicDiscriminator:TargetServiceBase.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},TargetServiceBase.type.modelProperties),{endpoint:{serializedName:"endpoint",type:{name:"String"}}})}},SecretAuthInfo={serializedName:"secret",type:{name:"Composite",className:"SecretAuthInfo",uberParent:"AuthInfoBase",polymorphicDiscriminator:AuthInfoBase.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},AuthInfoBase.type.modelProperties),{name:{serializedName:"name",nullable:!0,type:{name:"String"}},secretInfo:{serializedName:"secretInfo",type:{name:"Composite",className:"SecretInfoBase"}}})}},UserAssignedIdentityAuthInfo={serializedName:"userAssignedIdentity",type:{name:"Composite",className:"UserAssignedIdentityAuthInfo",uberParent:"AuthInfoBase",polymorphicDiscriminator:AuthInfoBase.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},AuthInfoBase.type.modelProperties),{clientId:{serializedName:"clientId",type:{name:"String"}},subscriptionId:{serializedName:"subscriptionId",type:{name:"String"}}})}},SystemAssignedIdentityAuthInfo={serializedName:"systemAssignedIdentity",type:{name:"Composite",className:"SystemAssignedIdentityAuthInfo",uberParent:"AuthInfoBase",polymorphicDiscriminator:AuthInfoBase.type.polymorphicDiscriminator,modelProperties:Object.assign({},AuthInfoBase.type.modelProperties)}},ServicePrincipalSecretAuthInfo={serializedName:"servicePrincipalSecret",type:{name:"Composite",className:"ServicePrincipalSecretAuthInfo",uberParent:"AuthInfoBase",polymorphicDiscriminator:AuthInfoBase.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},AuthInfoBase.type.modelProperties),{clientId:{serializedName:"clientId",required:!0,type:{name:"String"}},principalId:{serializedName:"principalId",required:!0,type:{name:"String"}},secret:{serializedName:"secret",required:!0,type:{name:"String"}}})}},ServicePrincipalCertificateAuthInfo={serializedName:"servicePrincipalCertificate",type:{name:"Composite",className:"ServicePrincipalCertificateAuthInfo",uberParent:"AuthInfoBase",polymorphicDiscriminator:AuthInfoBase.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},AuthInfoBase.type.modelProperties),{clientId:{serializedName:"clientId",required:!0,type:{name:"String"}},principalId:{serializedName:"principalId",required:!0,type:{name:"String"}},certificate:{serializedName:"certificate",required:!0,type:{name:"String"}}})}},ProxyResource={type:{name:"Composite",className:"ProxyResource",modelProperties:Object.assign({},Resource.type.modelProperties)}},AzureKeyVaultProperties={serializedName:"KeyVault",type:{name:"Composite",className:"AzureKeyVaultProperties",uberParent:"AzureResourcePropertiesBase",polymorphicDiscriminator:AzureResourcePropertiesBase.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},AzureResourcePropertiesBase.type.modelProperties),{connectAsKubernetesCsiDriver:{serializedName:"connectAsKubernetesCsiDriver",nullable:!0,type:{name:"Boolean"}}})}},ValueSecretInfo={serializedName:"rawValue",type:{name:"Composite",className:"ValueSecretInfo",uberParent:"SecretInfoBase",polymorphicDiscriminator:SecretInfoBase.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},SecretInfoBase.type.modelProperties),{value:{serializedName:"value",nullable:!0,type:{name:"String"}}})}},KeyVaultSecretReferenceSecretInfo={serializedName:"keyVaultSecretReference",type:{name:"Composite",className:"KeyVaultSecretReferenceSecretInfo",uberParent:"SecretInfoBase",polymorphicDiscriminator:SecretInfoBase.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},SecretInfoBase.type.modelProperties),{name:{serializedName:"name",type:{name:"String"}},version:{serializedName:"version",nullable:!0,type:{name:"String"}}})}},KeyVaultSecretUriSecretInfo={serializedName:"keyVaultSecretUri",type:{name:"Composite",className:"KeyVaultSecretUriSecretInfo",uberParent:"SecretInfoBase",polymorphicDiscriminator:SecretInfoBase.type.polymorphicDiscriminator,modelProperties:Object.assign(Object.assign({},SecretInfoBase.type.modelProperties),{value:{serializedName:"value",type:{name:"String"}}})}},LinkerResource={type:{name:"Composite",className:"LinkerResource",modelProperties:Object.assign(Object.assign({},ProxyResource.type.modelProperties),{systemData:{serializedName:"systemData",type:{name:"Composite",className:"SystemData"}},targetService:{serializedName:"properties.targetService",type:{name:"Composite",className:"TargetServiceBase"}},authInfo:{serializedName:"properties.authInfo",type:{name:"Composite",className:"AuthInfoBase"}},clientType:{serializedName:"properties.clientType",type:{name:"String"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}},vNetSolution:{serializedName:"properties.vNetSolution",type:{name:"Composite",className:"VNetSolution"}},secretStore:{serializedName:"properties.secretStore",type:{name:"Composite",className:"SecretStore"}},scope:{serializedName:"properties.scope",nullable:!0,type:{name:"String"}}})}};let discriminators={TargetServiceBase:TargetServiceBase,AuthInfoBase:AuthInfoBase,AzureResourcePropertiesBase:AzureResourcePropertiesBase,SecretInfoBase:SecretInfoBase,"TargetServiceBase.AzureResource":AzureResource,"TargetServiceBase.ConfluentBootstrapServer":ConfluentBootstrapServer,"TargetServiceBase.ConfluentSchemaRegistry":ConfluentSchemaRegistry,"AuthInfoBase.secret":SecretAuthInfo,"AuthInfoBase.userAssignedIdentity":UserAssignedIdentityAuthInfo,"AuthInfoBase.systemAssignedIdentity":SystemAssignedIdentityAuthInfo,"AuthInfoBase.servicePrincipalSecret":ServicePrincipalSecretAuthInfo,"AuthInfoBase.servicePrincipalCertificate":ServicePrincipalCertificateAuthInfo,"AzureResourcePropertiesBase.KeyVault":AzureKeyVaultProperties,"SecretInfoBase.rawValue":ValueSecretInfo,"SecretInfoBase.keyVaultSecretReference":KeyVaultSecretReferenceSecretInfo,"SecretInfoBase.keyVaultSecretUri":KeyVaultSecretUriSecretInfo};var Mappers=Object.freeze({__proto__:null,LinkerList:LinkerList,TargetServiceBase:TargetServiceBase,AuthInfoBase:AuthInfoBase,VNetSolution:VNetSolution,SecretStore:SecretStore,SystemData:SystemData,Resource:Resource,ErrorResponse:ErrorResponse,ErrorDetail:ErrorDetail,ErrorAdditionalInfo:ErrorAdditionalInfo,LinkerPatch:LinkerPatch,ValidateOperationResult:ValidateOperationResult,ValidationResultItem:ValidationResultItem,SourceConfigurationResult:SourceConfigurationResult,SourceConfiguration:SourceConfiguration,OperationListResult:OperationListResult,Operation:Operation,OperationDisplay:OperationDisplay,AzureResourcePropertiesBase:AzureResourcePropertiesBase,SecretInfoBase:SecretInfoBase,AzureResource:AzureResource,ConfluentBootstrapServer:ConfluentBootstrapServer,ConfluentSchemaRegistry:ConfluentSchemaRegistry,SecretAuthInfo:SecretAuthInfo,UserAssignedIdentityAuthInfo:UserAssignedIdentityAuthInfo,SystemAssignedIdentityAuthInfo:SystemAssignedIdentityAuthInfo,ServicePrincipalSecretAuthInfo:ServicePrincipalSecretAuthInfo,ServicePrincipalCertificateAuthInfo:ServicePrincipalCertificateAuthInfo,ProxyResource:ProxyResource,AzureKeyVaultProperties:AzureKeyVaultProperties,ValueSecretInfo:ValueSecretInfo,KeyVaultSecretReferenceSecretInfo:KeyVaultSecretReferenceSecretInfo,KeyVaultSecretUriSecretInfo:KeyVaultSecretUriSecretInfo,LinkerResource:LinkerResource,discriminators:discriminators});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},resourceUri={parameterPath:"resourceUri",mapper:{serializedName:"resourceUri",required:!0,type:{name:"String"}},skipEncoding:!0},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2022-05-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},linkerName={parameterPath:"linkerName",mapper:{serializedName:"linkerName",required:!0,type:{name:"String"}}},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},parameters={parameterPath:"parameters",mapper:LinkerResource},parameters1={parameterPath:"parameters",mapper:LinkerPatch},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0};class LroImpl{constructor(e,r,t,i=t.path,a=t.httpMethod){this.sendOperationFn=e,this.args=r,this.spec=t,this.requestPath=i,this.requestMethod=a}sendInitialRequest(){return tslib.__awaiter(this,void 0,void 0,function*(){return this.sendOperationFn(this.args,this.spec)})}sendPollRequest(r){return tslib.__awaiter(this,void 0,void 0,function*(){var e=this.spec,e=tslib.__rest(e,["requestBody"]);return this.sendOperationFn(this.args,Object.assign(Object.assign({},e),{path:r,httpMethod:"GET"}))})}}class LinkerImpl{constructor(e){this.client=e}list(e,r){const t=this.listPagingAll(e,r);return{next(){return t.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e,r)}}listPagingPage(t,i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(t,i));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(t,r,i)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(s,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var t,i=tslib.__asyncValues(this.listPagingPage(s,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){return this.client.sendOperationRequest({resourceUri:e,options:r},listOperationSpec$1)}get(e,r,t){return this.client.sendOperationRequest({resourceUri:e,linkerName:r,options:t},getOperationSpec)}beginCreateOrUpdate(r,t,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield s(e,a),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceUri:r,linkerName:t,parameters:i,options:a},createOrUpdateOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs,lroResourceLocationConfig:"azure-async-operation"});return yield e.poll(),e})}beginCreateOrUpdateAndWait(e,r,t,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreateOrUpdate(e,r,t,i)).pollUntilDone()})}beginDelete(r,t,i){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield s(e,a),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceUri:r,linkerName:t,options:i},deleteOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==i?void 0:i.resumeFrom,intervalInMs:null==i?void 0:i.updateIntervalInMs,lroResourceLocationConfig:"azure-async-operation"});return yield e.poll(),e})}beginDeleteAndWait(e,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,r,t)).pollUntilDone()})}beginUpdate(r,t,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield s(e,a),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceUri:r,linkerName:t,parameters:i,options:a},updateOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs,lroResourceLocationConfig:"azure-async-operation"});return yield e.poll(),e})}beginUpdateAndWait(e,r,t,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,r,t,i)).pollUntilDone()})}beginValidate(r,t,i){return tslib.__awaiter(this,void 0,void 0,function*(){const s=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let t=void 0;const i=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{t=e,null!==i&&void 0!==i&&i(e,r)}})});return{flatResponse:yield s(e,a),rawResponse:{statusCode:t.status,body:t.parsedBody,headers:t.headers.toJSON()}}}),{resourceUri:r,linkerName:t,options:i},validateOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==i?void 0:i.resumeFrom,intervalInMs:null==i?void 0:i.updateIntervalInMs,lroResourceLocationConfig:"azure-async-operation"});return yield e.poll(),e})}beginValidateAndWait(e,r,t){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginValidate(e,r,t)).pollUntilDone()})}listConfigurations(e,r,t){return this.client.sendOperationRequest({resourceUri:e,linkerName:r,options:t},listConfigurationsOperationSpec)}_listNext(e,r,t){return this.client.sendOperationRequest({resourceUri:e,nextLink:r,options:t},listNextOperationSpec$1)}}const serializer$1=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec$1={path:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers",httpMethod:"GET",responses:{200:{bodyMapper:LinkerList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceUri],headerParameters:[accept],serializer:serializer$1},getOperationSpec={path:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}",httpMethod:"GET",responses:{200:{bodyMapper:LinkerResource},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceUri,linkerName],headerParameters:[accept],serializer:serializer$1},createOrUpdateOperationSpec={path:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}",httpMethod:"PUT",responses:{200:{bodyMapper:LinkerResource},201:{bodyMapper:LinkerResource},202:{bodyMapper:LinkerResource},204:{bodyMapper:LinkerResource},default:{bodyMapper:ErrorResponse}},requestBody:parameters,queryParameters:[apiVersion],urlParameters:[$host,resourceUri,linkerName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$1},deleteOperationSpec={path:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceUri,linkerName],headerParameters:[accept],serializer:serializer$1},updateOperationSpec={path:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}",httpMethod:"PATCH",responses:{200:{bodyMapper:LinkerResource},201:{bodyMapper:LinkerResource},202:{bodyMapper:LinkerResource},204:{bodyMapper:LinkerResource},default:{bodyMapper:ErrorResponse}},requestBody:parameters1,queryParameters:[apiVersion],urlParameters:[$host,resourceUri,linkerName],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$1},validateOperationSpec={path:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}/validateLinker",httpMethod:"POST",responses:{200:{bodyMapper:ValidateOperationResult},201:{bodyMapper:ValidateOperationResult},202:{bodyMapper:ValidateOperationResult},204:{bodyMapper:ValidateOperationResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceUri,linkerName],headerParameters:[accept],serializer:serializer$1},listConfigurationsOperationSpec={path:"/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}/listConfigurations",httpMethod:"POST",responses:{200:{bodyMapper:SourceConfigurationResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceUri,linkerName],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec$1={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:LinkerList},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceUri,nextLink],headerParameters:[accept],serializer:serializer$1};class OperationsImpl{constructor(e){this.client=e}list(e){const r=this.listPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(t){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(t));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(r,t)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(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)}_listNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listNextOperationSpec)}}const serializer=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.ServiceLinker/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer};class ServiceLinkerManagementClient extends coreClient__namespace.ServiceClient{constructor(e,r){if(void 0===e)throw new Error("'credentials' cannot be null");var e={requestContentType:"application/json; charset=utf-8",credential:e},t="azsdk-js-arm-servicelinker/2.0.1",t=(r=r||{}).userAgentOptions&&r.userAgentOptions.userAgentPrefix?r.userAgentOptions.userAgentPrefix+" "+t:t,e=(r.credentialScopes||(r.credentialScopes=["https://management.azure.com/.default"]),Object.assign(Object.assign(Object.assign({},e),r),{userAgentOptions:{userAgentPrefix:t},baseUri:null!=(t=null!=(e=r.endpoint)?e:r.baseUri)?t:"https://management.azure.com"}));super(e),null!=r&&r.pipeline&&0<r.pipeline.getOrderedPolicies().length&&(r.pipeline.getOrderedPolicies().some(e=>e.name===coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName)||(this.pipeline.removePolicy({name:coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName}),this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({scopes:e.baseUri+"/.default",challengeCallbacks:{authorizeRequestOnChallenge:coreClient__namespace.authorizeRequestOnClaimChallenge}})))),this.$host=r.$host||"https://management.azure.com",this.apiVersion=r.apiVersion||"2022-05-01",this.linker=new LinkerImpl(this),this.operations=new OperationsImpl(this)}}exports.ServiceLinkerManagementClient=ServiceLinkerManagementClient;

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

"description": "A generated SDK for ServiceLinkerManagementClient.",
"version": "2.0.1-alpha.20221026.1",
"version": "2.0.1-alpha.20221101.1",
"engines": {

@@ -9,0 +9,0 @@ "node": ">=14.0.0"

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

"packageName": "@microsoft/api-extractor",
"packageVersion": "7.31.2"
"packageVersion": "7.33.5"
}
]
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc