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 1.0.0 to 2.0.0-alpha.20220518.3

12

CHANGELOG.md
# Release History
## 2.0.0 (2022-05-16)
**Features**
- Added Interface ValidateOperationResult
- Enum KnownValidationResultStatus has a new value Failure
**Breaking Changes**
- Enum KnownValidationResultStatus no longer has value Failed
## 1.0.0 (2022-04-27)
The package of @azure/arm-servicelinker is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).

14

dist-esm/src/models/index.d.ts

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

}
/** The validation result for a linker. */
export interface ValidateResult {
/** The validation operation result for a linker. */
export interface ValidateOperationResult {
/** Validated linker id. */
resourceId?: string;
/** Validation operation status. */
status?: string;
/** The linker name. */

@@ -474,3 +478,3 @@ linkerName?: string;

Success = "success",
Failed = "failed",
Failure = "failure",
Warning = "warning"

@@ -484,3 +488,3 @@ }

* **success** \
* **failed** \
* **failure** \
* **warning**

@@ -588,3 +592,3 @@ */

/** Contains response data for the validate operation. */
export declare type LinkerValidateResponse = ValidateResult;
export declare type LinkerValidateResponse = ValidateOperationResult;
/** Optional parameters. */

@@ -591,0 +595,0 @@ export interface LinkerListConfigurationsOptionalParams extends coreClient.OperationOptions {

@@ -56,3 +56,3 @@ /*

KnownValidationResultStatus["Success"] = "success";
KnownValidationResultStatus["Failed"] = "failed";
KnownValidationResultStatus["Failure"] = "failure";
KnownValidationResultStatus["Warning"] = "warning";

@@ -59,0 +59,0 @@ })(KnownValidationResultStatus || (KnownValidationResultStatus = {}));

@@ -13,3 +13,3 @@ import * as coreClient from "@azure/core-client";

export declare const LinkerPatch: coreClient.CompositeMapper;
export declare const ValidateResult: coreClient.CompositeMapper;
export declare const ValidateOperationResult: coreClient.CompositeMapper;
export declare const ValidationResultItem: coreClient.CompositeMapper;

@@ -16,0 +16,0 @@ export declare const SourceConfigurationResult: coreClient.CompositeMapper;

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

serializedName: "nextLink",
nullable: true,
type: {

@@ -82,2 +83,3 @@ name: "String"

serializedName: "type",
nullable: true,
type: {

@@ -97,2 +99,3 @@ name: "String"

serializedName: "keyVaultId",
nullable: true,
type: {

@@ -319,2 +322,3 @@ name: "String"

serializedName: "properties.scope",
nullable: true,
type: {

@@ -327,9 +331,24 @@ name: "String"

};
export const ValidateResult = {
export const ValidateOperationResult = {
type: {
name: "Composite",
className: "ValidateResult",
className: "ValidateOperationResult",
modelProperties: {
resourceId: {
serializedName: "resourceId",
nullable: true,
type: {
name: "String"
}
},
status: {
serializedName: "status",
nullable: true,
type: {
name: "String"
}
},
linkerName: {
serializedName: "linkerName",
serializedName: "properties.linkerName",
nullable: true,
type: {

@@ -340,3 +359,4 @@ name: "String"

isConnectionAvailable: {
serializedName: "isConnectionAvailable",
serializedName: "properties.isConnectionAvailable",
nullable: true,
type: {

@@ -347,3 +367,4 @@ name: "Boolean"

reportStartTimeUtc: {
serializedName: "reportStartTimeUtc",
serializedName: "properties.reportStartTimeUtc",
nullable: true,
type: {

@@ -354,3 +375,4 @@ name: "DateTime"

reportEndTimeUtc: {
serializedName: "reportEndTimeUtc",
serializedName: "properties.reportEndTimeUtc",
nullable: true,
type: {

@@ -361,3 +383,4 @@ name: "DateTime"

sourceId: {
serializedName: "sourceId",
serializedName: "properties.sourceId",
nullable: true,
type: {

@@ -368,3 +391,4 @@ name: "String"

targetId: {
serializedName: "targetId",
serializedName: "properties.targetId",
nullable: true,
type: {

@@ -375,3 +399,4 @@ name: "String"

authType: {
serializedName: "authType",
serializedName: "properties.authType",
nullable: true,
type: {

@@ -382,3 +407,4 @@ name: "String"

validationDetail: {
serializedName: "validationDetail",
serializedName: "properties.validationDetail",
nullable: true,
type: {

@@ -410,2 +436,3 @@ name: "Sequence",

serializedName: "description",
nullable: true,
type: {

@@ -417,2 +444,3 @@ name: "String"

serializedName: "result",
nullable: true,
type: {

@@ -424,2 +452,3 @@ name: "String"

serializedName: "errorMessage",
nullable: true,
type: {

@@ -431,2 +460,3 @@ name: "String"

serializedName: "errorCode",
nullable: true,
type: {

@@ -472,2 +502,3 @@ name: "String"

serializedName: "value",
nullable: true,
type: {

@@ -687,2 +718,3 @@ name: "String"

serializedName: "name",
nullable: true,
type: {

@@ -802,2 +834,3 @@ name: "String"

serializedName: "connectAsKubernetesCsiDriver",
nullable: true,
type: {

@@ -818,2 +851,3 @@ name: "Boolean"

serializedName: "value",
nullable: true,
type: {

@@ -839,2 +873,3 @@ name: "String"

serializedName: "version",
nullable: true,
type: {

@@ -908,2 +943,3 @@ name: "String"

serializedName: "properties.scope",
nullable: true,
type: {

@@ -910,0 +946,0 @@ name: "String"

@@ -460,12 +460,12 @@ /*

200: {
bodyMapper: Mappers.ValidateResult
bodyMapper: Mappers.ValidateOperationResult
},
201: {
bodyMapper: Mappers.ValidateResult
bodyMapper: Mappers.ValidateOperationResult
},
202: {
bodyMapper: Mappers.ValidateResult
bodyMapper: Mappers.ValidateOperationResult
},
204: {
bodyMapper: Mappers.ValidateResult
bodyMapper: Mappers.ValidateOperationResult
},

@@ -472,0 +472,0 @@ default: {

@@ -30,3 +30,3 @@ /*

};
const packageDetails = `azsdk-js-arm-servicelinker/1.0.0`;
const packageDetails = `azsdk-js-arm-servicelinker/2.0.0`;
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix

@@ -33,0 +33,0 @@ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`

@@ -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.Failed="failed",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",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",type:{name:"String"}}}}},SecretStore={type:{name:"Composite",className:"SecretStore",modelProperties:{keyVaultId:{serializedName:"keyVaultId",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",type:{name:"String"}}}}},ValidateResult={type:{name:"Composite",className:"ValidateResult",modelProperties:{linkerName:{serializedName:"linkerName",type:{name:"String"}},isConnectionAvailable:{serializedName:"isConnectionAvailable",type:{name:"Boolean"}},reportStartTimeUtc:{serializedName:"reportStartTimeUtc",type:{name:"DateTime"}},reportEndTimeUtc:{serializedName:"reportEndTimeUtc",type:{name:"DateTime"}},sourceId:{serializedName:"sourceId",type:{name:"String"}},targetId:{serializedName:"targetId",type:{name:"String"}},authType:{serializedName:"authType",type:{name:"String"}},validationDetail:{serializedName:"validationDetail",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",type:{name:"String"}},result:{serializedName:"result",type:{name:"String"}},errorMessage:{serializedName:"errorMessage",type:{name:"String"}},errorCode:{serializedName:"errorCode",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",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",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",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",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",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",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,ValidateResult:ValidateResult,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:ValidateResult},201:{bodyMapper:ValidateResult},202:{bodyMapper:ValidateResult},204:{bodyMapper:ValidateResult},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/1.0.0",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){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.0",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;

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

"description": "A generated SDK for ServiceLinkerManagementClient.",
"version": "1.0.0",
"version": "2.0.0-alpha.20220518.3",
"engines": {

@@ -32,3 +32,3 @@ "node": ">=12.0.0"

"devDependencies": {
"@microsoft/api-extractor": "^7.18.11",
"@microsoft/api-extractor": "7.18.11",
"@rollup/plugin-commonjs": "^21.0.1",

@@ -120,2 +120,2 @@ "@rollup/plugin-json": "^4.1.0",

}
}
}

@@ -197,3 +197,3 @@ ## API Report File for "@azure/arm-servicelinker"

// (undocumented)
Failed = "failed",
Failure = "failure",
// (undocumented)

@@ -316,3 +316,3 @@ Success = "success",

// @public
export type LinkerValidateResponse = ValidateResult;
export type LinkerValidateResponse = ValidateOperationResult;

@@ -478,3 +478,3 @@ // @public

// @public
export interface ValidateResult {
export interface ValidateOperationResult {
authType?: AuthType;

@@ -485,3 +485,5 @@ isConnectionAvailable?: boolean;

reportStartTimeUtc?: Date;
resourceId?: string;
sourceId?: string;
status?: string;
targetId?: string;

@@ -488,0 +490,0 @@ validationDetail?: ValidationResultItem[];

@@ -177,4 +177,8 @@ /*

/** The validation result for a linker. */
export interface ValidateResult {
/** The validation operation result for a linker. */
export interface ValidateOperationResult {
/** Validated linker id. */
resourceId?: string;
/** Validation operation status. */
status?: string;
/** The linker name. */

@@ -552,3 +556,3 @@ linkerName?: string;

Success = "success",
Failed = "failed",
Failure = "failure",
Warning = "warning"

@@ -563,3 +567,3 @@ }

* **success** \
* **failed** \
* **failure** \
* **warning**

@@ -688,3 +692,3 @@ */

/** Contains response data for the validate operation. */
export type LinkerValidateResponse = ValidateResult;
export type LinkerValidateResponse = ValidateOperationResult;

@@ -691,0 +695,0 @@ /** Optional parameters. */

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

serializedName: "nextLink",
nullable: true,
type: {

@@ -88,2 +89,3 @@ name: "String"

serializedName: "type",
nullable: true,
type: {

@@ -104,2 +106,3 @@ name: "String"

serializedName: "keyVaultId",
nullable: true,
type: {

@@ -332,2 +335,3 @@ name: "String"

serializedName: "properties.scope",
nullable: true,
type: {

@@ -341,9 +345,24 @@ name: "String"

export const ValidateResult: coreClient.CompositeMapper = {
export const ValidateOperationResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ValidateResult",
className: "ValidateOperationResult",
modelProperties: {
resourceId: {
serializedName: "resourceId",
nullable: true,
type: {
name: "String"
}
},
status: {
serializedName: "status",
nullable: true,
type: {
name: "String"
}
},
linkerName: {
serializedName: "linkerName",
serializedName: "properties.linkerName",
nullable: true,
type: {

@@ -354,3 +373,4 @@ name: "String"

isConnectionAvailable: {
serializedName: "isConnectionAvailable",
serializedName: "properties.isConnectionAvailable",
nullable: true,
type: {

@@ -361,3 +381,4 @@ name: "Boolean"

reportStartTimeUtc: {
serializedName: "reportStartTimeUtc",
serializedName: "properties.reportStartTimeUtc",
nullable: true,
type: {

@@ -368,3 +389,4 @@ name: "DateTime"

reportEndTimeUtc: {
serializedName: "reportEndTimeUtc",
serializedName: "properties.reportEndTimeUtc",
nullable: true,
type: {

@@ -375,3 +397,4 @@ name: "DateTime"

sourceId: {
serializedName: "sourceId",
serializedName: "properties.sourceId",
nullable: true,
type: {

@@ -382,3 +405,4 @@ name: "String"

targetId: {
serializedName: "targetId",
serializedName: "properties.targetId",
nullable: true,
type: {

@@ -389,3 +413,4 @@ name: "String"

authType: {
serializedName: "authType",
serializedName: "properties.authType",
nullable: true,
type: {

@@ -396,3 +421,4 @@ name: "String"

validationDetail: {
serializedName: "validationDetail",
serializedName: "properties.validationDetail",
nullable: true,
type: {

@@ -425,2 +451,3 @@ name: "Sequence",

serializedName: "description",
nullable: true,
type: {

@@ -432,2 +459,3 @@ name: "String"

serializedName: "result",
nullable: true,
type: {

@@ -439,2 +467,3 @@ name: "String"

serializedName: "errorMessage",
nullable: true,
type: {

@@ -446,2 +475,3 @@ name: "String"

serializedName: "errorCode",
nullable: true,
type: {

@@ -489,2 +519,3 @@ name: "String"

serializedName: "value",
nullable: true,
type: {

@@ -725,2 +756,3 @@ name: "String"

serializedName: "name",
nullable: true,
type: {

@@ -869,2 +901,3 @@ name: "String"

serializedName: "connectAsKubernetesCsiDriver",
nullable: true,
type: {

@@ -889,2 +922,3 @@ name: "Boolean"

serializedName: "value",
nullable: true,
type: {

@@ -915,2 +949,3 @@ name: "String"

serializedName: "version",
nullable: true,
type: {

@@ -999,2 +1034,3 @@ name: "String"

serializedName: "properties.scope",
nullable: true,
type: {

@@ -1001,0 +1037,0 @@ name: "String"

@@ -649,12 +649,12 @@ /*

200: {
bodyMapper: Mappers.ValidateResult
bodyMapper: Mappers.ValidateOperationResult
},
201: {
bodyMapper: Mappers.ValidateResult
bodyMapper: Mappers.ValidateOperationResult
},
202: {
bodyMapper: Mappers.ValidateResult
bodyMapper: Mappers.ValidateOperationResult
},
204: {
bodyMapper: Mappers.ValidateResult
bodyMapper: Mappers.ValidateOperationResult
},

@@ -661,0 +661,0 @@ default: {

@@ -42,3 +42,3 @@ /*

const packageDetails = `azsdk-js-arm-servicelinker/1.0.0`;
const packageDetails = `azsdk-js-arm-servicelinker/2.0.0`;
const userAgentPrefix =

@@ -45,0 +45,0 @@ options.userAgentOptions && options.userAgentOptions.userAgentPrefix

@@ -250,3 +250,3 @@ import * as coreAuth from '@azure/core-auth';

Success = "success",
Failed = "failed",
Failure = "failure",
Warning = "warning"

@@ -478,3 +478,3 @@ }

/** Contains response data for the validate operation. */
export declare type LinkerValidateResponse = ValidateResult;
export declare type LinkerValidateResponse = ValidateOperationResult;

@@ -748,4 +748,8 @@ /** Details of a REST API operation, returned from the Resource Provider Operations API */

/** The validation result for a linker. */
export declare interface ValidateResult {
/** The validation operation result for a linker. */
export declare interface ValidateOperationResult {
/** Validated linker id. */
resourceId?: string;
/** Validation operation status. */
status?: string;
/** The linker name. */

@@ -789,3 +793,3 @@ linkerName?: string;

* **success** \
* **failed** \
* **failure** \
* **warning**

@@ -792,0 +796,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.23.0"
"packageVersion": "7.18.11"
}
]
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc