@azure/arm-mariadb
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -1,1 +0,1 @@ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@azure/ms-rest-azure-js"),require("@azure/ms-rest-js")):"function"==typeof define&&define.amd?define(["exports","@azure/ms-rest-azure-js","@azure/ms-rest-js"],r):r((e.Azure=e.Azure||{},e.Azure.ArmMariadb={}),e.msRestAzure,e.msRest)}(this,function(e,o,r){"use strict";var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var a in r)r.hasOwnProperty(a)&&(e[a]=r[a])})(e,r)};function a(e,r){function a(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)}var i=function(){return(i=Object.assign||function(e){for(var r,a=1,t=arguments.length;a<t;a++)for(var i in r=arguments[a])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e}).apply(this,arguments)},s=Object.freeze({}),n=o.CloudErrorMapper,p=o.BaseResourceMapper,l={serializedName:"ProxyResource",type:{name:"Composite",className:"ProxyResource",modelProperties:{id:{readOnly:!0,serializedName:"id",type:{name:"String"}},name:{readOnly:!0,serializedName:"name",type:{name:"String"}},type:{readOnly:!0,serializedName:"type",type:{name:"String"}}}}},u={serializedName:"TrackedResource",type:{name:"Composite",className:"TrackedResource",modelProperties:i({},l.type.modelProperties,{location:{required:!0,serializedName:"location",type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}}})}},m={serializedName:"StorageProfile",type:{name:"Composite",className:"StorageProfile",modelProperties:{backupRetentionDays:{serializedName:"backupRetentionDays",type:{name:"Number"}},geoRedundantBackup:{serializedName:"geoRedundantBackup",type:{name:"String"}},storageMB:{serializedName:"storageMB",type:{name:"Number"}}}}},d={serializedName:"ServerPropertiesForCreate",type:{name:"Composite",polymorphicDiscriminator:{serializedName:"createMode",clientName:"createMode"},uberParent:"ServerPropertiesForCreate",className:"ServerPropertiesForCreate",modelProperties:{version:{serializedName:"version",type:{name:"String"}},sslEnforcement:{serializedName:"sslEnforcement",type:{name:"Enum",allowedValues:["Enabled","Disabled"]}},storageProfile:{serializedName:"storageProfile",type:{name:"Composite",className:"StorageProfile"}},createMode:{required:!0,serializedName:"createMode",type:{name:"String"}}}}},c={serializedName:"Default",type:{name:"Composite",polymorphicDiscriminator:d.type.polymorphicDiscriminator,uberParent:"ServerPropertiesForCreate",className:"ServerPropertiesForDefaultCreate",modelProperties:i({},d.type.modelProperties,{administratorLogin:{required:!0,serializedName:"administratorLogin",type:{name:"String"}},administratorLoginPassword:{required:!0,serializedName:"administratorLoginPassword",type:{name:"String"}}})}},y={serializedName:"PointInTimeRestore",type:{name:"Composite",polymorphicDiscriminator:d.type.polymorphicDiscriminator,uberParent:"ServerPropertiesForCreate",className:"ServerPropertiesForRestore",modelProperties:i({},d.type.modelProperties,{sourceServerId:{required:!0,serializedName:"sourceServerId",type:{name:"String"}},restorePointInTime:{required:!0,serializedName:"restorePointInTime",type:{name:"DateTime"}}})}},N={serializedName:"GeoRestore",type:{name:"Composite",polymorphicDiscriminator:d.type.polymorphicDiscriminator,uberParent:"ServerPropertiesForCreate",className:"ServerPropertiesForGeoRestore",modelProperties:i({},d.type.modelProperties,{sourceServerId:{required:!0,serializedName:"sourceServerId",type:{name:"String"}}})}},f={serializedName:"Sku",type:{name:"Composite",className:"Sku",modelProperties:{name:{serializedName:"name",type:{name:"String"}},tier:{serializedName:"tier",type:{name:"String"}},capacity:{serializedName:"capacity",constraints:{InclusiveMinimum:0},type:{name:"Number"}},size:{serializedName:"size",type:{name:"String"}},family:{serializedName:"family",type:{name:"String"}}}}},P={serializedName:"Server",type:{name:"Composite",className:"Server",modelProperties:i({},u.type.modelProperties,{sku:{serializedName:"sku",type:{name:"Composite",className:"Sku"}},administratorLogin:{serializedName:"properties.administratorLogin",type:{name:"String"}},version:{serializedName:"properties.version",type:{name:"String"}},sslEnforcement:{serializedName:"properties.sslEnforcement",type:{name:"Enum",allowedValues:["Enabled","Disabled"]}},userVisibleState:{serializedName:"properties.userVisibleState",type:{name:"String"}},fullyQualifiedDomainName:{serializedName:"properties.fullyQualifiedDomainName",type:{name:"String"}},earliestRestoreDate:{serializedName:"properties.earliestRestoreDate",type:{name:"DateTime"}},storageProfile:{serializedName:"properties.storageProfile",type:{name:"Composite",className:"StorageProfile"}}})}},v={serializedName:"ServerForCreate",type:{name:"Composite",className:"ServerForCreate",modelProperties:{sku:{serializedName:"sku",type:{name:"Composite",className:"Sku"}},properties:{required:!0,serializedName:"properties",type:{name:"Composite",className:"ServerPropertiesForCreate"}},location:{required:!0,serializedName:"location",type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},h={serializedName:"ServerUpdateParameters",type:{name:"Composite",className:"ServerUpdateParameters",modelProperties:{sku:{serializedName:"sku",type:{name:"Composite",className:"Sku"}},storageProfile:{serializedName:"properties.storageProfile",type:{name:"Composite",className:"StorageProfile"}},administratorLoginPassword:{serializedName:"properties.administratorLoginPassword",type:{name:"String"}},version:{serializedName:"properties.version",type:{name:"String"}},sslEnforcement:{serializedName:"properties.sslEnforcement",type:{name:"Enum",allowedValues:["Enabled","Disabled"]}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},b={serializedName:"FirewallRule",type:{name:"Composite",className:"FirewallRule",modelProperties:i({},l.type.modelProperties,{startIpAddress:{required:!0,serializedName:"properties.startIpAddress",constraints:{Pattern:/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/},type:{name:"String"}},endIpAddress:{required:!0,serializedName:"properties.endIpAddress",constraints:{Pattern:/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/},type:{name:"String"}}})}},g={serializedName:"VirtualNetworkRule",type:{name:"Composite",className:"VirtualNetworkRule",modelProperties:i({},l.type.modelProperties,{virtualNetworkSubnetId:{required:!0,serializedName:"properties.virtualNetworkSubnetId",type:{name:"String"}},ignoreMissingVnetServiceEndpoint:{serializedName:"properties.ignoreMissingVnetServiceEndpoint",type:{name:"Boolean"}},state:{readOnly:!0,serializedName:"properties.state",type:{name:"String"}}})}},S={serializedName:"Database",type:{name:"Composite",className:"Database",modelProperties:i({},l.type.modelProperties,{charset:{serializedName:"properties.charset",type:{name:"String"}},collation:{serializedName:"properties.collation",type:{name:"String"}}})}},z={serializedName:"Configuration",type:{name:"Composite",className:"Configuration",modelProperties:i({},l.type.modelProperties,{value:{serializedName:"properties.value",type:{name:"String"}},description:{readOnly:!0,serializedName:"properties.description",type:{name:"String"}},defaultValue:{readOnly:!0,serializedName:"properties.defaultValue",type:{name:"String"}},dataType:{readOnly:!0,serializedName:"properties.dataType",type:{name:"String"}},allowedValues:{readOnly:!0,serializedName:"properties.allowedValues",type:{name:"String"}},source:{serializedName:"properties.source",type:{name:"String"}}})}},R={serializedName:"OperationDisplay",type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{readOnly:!0,serializedName:"provider",type:{name:"String"}},resource:{readOnly:!0,serializedName:"resource",type:{name:"String"}},operation:{readOnly:!0,serializedName:"operation",type:{name:"String"}},description:{readOnly:!0,serializedName:"description",type:{name:"String"}}}}},M={serializedName:"Operation",type:{name:"Composite",className:"Operation",modelProperties:{name:{readOnly:!0,serializedName:"name",type:{name:"String"}},display:{readOnly:!0,serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}},origin:{readOnly:!0,serializedName:"origin",type:{name:"String"}},properties:{readOnly:!0,serializedName:"properties",type:{name:"Dictionary",value:{type:{name:"Object"}}}}}}},D={serializedName:"OperationListResult",type:{name:"Composite",className:"OperationListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Operation"}}}}}}},C={serializedName:"LogFile",type:{name:"Composite",className:"LogFile",modelProperties:i({},l.type.modelProperties,{sizeInKB:{serializedName:"properties.sizeInKB",type:{name:"Number"}},createdTime:{readOnly:!0,serializedName:"properties.createdTime",type:{name:"DateTime"}},lastModifiedTime:{readOnly:!0,serializedName:"properties.lastModifiedTime",type:{name:"DateTime"}},logFileType:{serializedName:"properties.type",type:{name:"String"}},url:{readOnly:!0,serializedName:"properties.url",type:{name:"String"}}})}},q={serializedName:"PerformanceTierServiceLevelObjectives",type:{name:"Composite",className:"PerformanceTierServiceLevelObjectives",modelProperties:{id:{serializedName:"id",type:{name:"String"}},edition:{serializedName:"edition",type:{name:"String"}},vCore:{serializedName:"vCore",type:{name:"Number"}},hardwareGeneration:{serializedName:"hardwareGeneration",type:{name:"String"}},maxBackupRetentionDays:{serializedName:"maxBackupRetentionDays",type:{name:"Number"}},minBackupRetentionDays:{serializedName:"minBackupRetentionDays",type:{name:"Number"}},maxStorageMB:{serializedName:"maxStorageMB",type:{name:"Number"}},minStorageMB:{serializedName:"minStorageMB",type:{name:"Number"}}}}},O={serializedName:"PerformanceTierProperties",type:{name:"Composite",className:"PerformanceTierProperties",modelProperties:{id:{serializedName:"id",type:{name:"String"}},serviceLevelObjectives:{serializedName:"serviceLevelObjectives",type:{name:"Sequence",element:{type:{name:"Composite",className:"PerformanceTierServiceLevelObjectives"}}}}}}},B={serializedName:"NameAvailabilityRequest",type:{name:"Composite",className:"NameAvailabilityRequest",modelProperties:{name:{required:!0,serializedName:"name",type:{name:"String"}},type:{serializedName:"type",type:{name:"String"}}}}},w={serializedName:"NameAvailability",type:{name:"Composite",className:"NameAvailability",modelProperties:{message:{serializedName:"message",type:{name:"String"}},nameAvailable:{serializedName:"nameAvailable",type:{name:"Boolean"}},reason:{serializedName:"reason",type:{name:"String"}}}}},G={serializedName:"ServerSecurityAlertPolicy",type:{name:"Composite",className:"ServerSecurityAlertPolicy",modelProperties:i({},l.type.modelProperties,{state:{required:!0,serializedName:"properties.state",type:{name:"Enum",allowedValues:["Enabled","Disabled"]}},disabledAlerts:{serializedName:"properties.disabledAlerts",type:{name:"Sequence",element:{type:{name:"String"}}}},emailAddresses:{serializedName:"properties.emailAddresses",type:{name:"Sequence",element:{type:{name:"String"}}}},emailAccountAdmins:{serializedName:"properties.emailAccountAdmins",type:{name:"Boolean"}},storageEndpoint:{serializedName:"properties.storageEndpoint",type:{name:"String"}},storageAccountAccessKey:{serializedName:"properties.storageAccountAccessKey",type:{name:"String"}},retentionDays:{serializedName:"properties.retentionDays",type:{name:"Number"}}})}},L={serializedName:"ServerListResult",type:{name:"Composite",className:"ServerListResult",modelProperties:{value:{serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"Server"}}}}}}},k={serializedName:"FirewallRuleListResult",type:{name:"Composite",className:"FirewallRuleListResult",modelProperties:{value:{serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"FirewallRule"}}}}}}},T={serializedName:"VirtualNetworkRuleListResult",type:{name:"Composite",className:"VirtualNetworkRuleListResult",modelProperties:{value:{readOnly:!0,serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"VirtualNetworkRule"}}}},nextLink:{readOnly:!0,serializedName:"nextLink",type:{name:"String"}}}}},F={serializedName:"DatabaseListResult",type:{name:"Composite",className:"DatabaseListResult",modelProperties:{value:{serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"Database"}}}}}}},E={serializedName:"ConfigurationListResult",type:{name:"Composite",className:"ConfigurationListResult",modelProperties:{value:{serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"Configuration"}}}}}}},A={serializedName:"LogFileListResult",type:{name:"Composite",className:"LogFileListResult",modelProperties:{value:{serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"LogFile"}}}}}}},I={serializedName:"PerformanceTierListResult",type:{name:"Composite",className:"PerformanceTierListResult",modelProperties:{value:{serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"PerformanceTierProperties"}}}}}}},U={ServerPropertiesForCreate:d,"ServerPropertiesForCreate.Default":c,"ServerPropertiesForCreate.PointInTimeRestore":y,"ServerPropertiesForCreate.GeoRestore":N},V=Object.freeze({CloudError:n,BaseResource:p,ProxyResource:l,TrackedResource:u,StorageProfile:m,ServerPropertiesForCreate:d,ServerPropertiesForDefaultCreate:c,ServerPropertiesForRestore:y,ServerPropertiesForGeoRestore:N,Sku:f,Server:P,ServerForCreate:v,ServerUpdateParameters:h,FirewallRule:b,VirtualNetworkRule:g,Database:S,Configuration:z,OperationDisplay:R,Operation:M,OperationListResult:D,LogFile:C,PerformanceTierServiceLevelObjectives:q,PerformanceTierProperties:O,NameAvailabilityRequest:B,NameAvailability:w,ServerSecurityAlertPolicy:G,ServerListResult:L,FirewallRuleListResult:k,VirtualNetworkRuleListResult:T,DatabaseListResult:F,ConfigurationListResult:E,LogFileListResult:A,PerformanceTierListResult:I,discriminators:U}),j=Object.freeze({discriminators:U,ServerForCreate:v,Sku:f,ServerPropertiesForCreate:d,StorageProfile:m,Server:P,TrackedResource:u,ProxyResource:l,BaseResource:p,CloudError:n,ServerUpdateParameters:h,ServerListResult:L,ServerPropertiesForDefaultCreate:c,ServerPropertiesForRestore:y,ServerPropertiesForGeoRestore:N,FirewallRule:b,VirtualNetworkRule:g,Database:S,Configuration:z,LogFile:C,ServerSecurityAlertPolicy:G}),x={parameterPath:"acceptLanguage",mapper:{serializedName:"accept-language",defaultValue:"en-US",type:{name:"String"}}},_={parameterPath:"apiVersion",mapper:{required:!0,serializedName:"api-version",type:{name:"String"}}},K={parameterPath:"configurationName",mapper:{required:!0,serializedName:"configurationName",type:{name:"String"}}},Q={parameterPath:"databaseName",mapper:{required:!0,serializedName:"databaseName",type:{name:"String"}}},$={parameterPath:"firewallRuleName",mapper:{required:!0,serializedName:"firewallRuleName",type:{name:"String"}}},H={parameterPath:"resourceGroupName",mapper:{required:!0,serializedName:"resourceGroupName",type:{name:"String"}}},J={parameterPath:"securityAlertPolicyName",mapper:{required:!0,isConstant:!0,serializedName:"securityAlertPolicyName",defaultValue:"Default",type:{name:"String"}}},W={parameterPath:"serverName",mapper:{required:!0,serializedName:"serverName",type:{name:"String"}}},X={parameterPath:"subscriptionId",mapper:{required:!0,serializedName:"subscriptionId",type:{name:"String"}}},Y={parameterPath:"virtualNetworkRuleName",mapper:{required:!0,serializedName:"virtualNetworkRuleName",type:{name:"String"}}},Z=function(){function e(e){this.client=e}return e.prototype.create=function(e,r,a,t){return this.beginCreate(e,r,a,t).then(function(e){return e.pollUntilFinished()})},e.prototype.update=function(e,r,a,t){return this.beginUpdate(e,r,a,t).then(function(e){return e.pollUntilFinished()})},e.prototype.deleteMethod=function(e,r,a){return this.beginDeleteMethod(e,r,a).then(function(e){return e.pollUntilFinished()})},e.prototype.get=function(e,r,a,t){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:a},re,t)},e.prototype.listByResourceGroup=function(e,r,a){return this.client.sendOperationRequest({resourceGroupName:e,options:r},ae,a)},e.prototype.list=function(e,r){return this.client.sendOperationRequest({options:e},te,r)},e.prototype.beginCreate=function(e,r,a,t){return this.client.sendLRORequest({resourceGroupName:e,serverName:r,parameters:a,options:t},ie,t)},e.prototype.beginUpdate=function(e,r,a,t){return this.client.sendLRORequest({resourceGroupName:e,serverName:r,parameters:a,options:t},se,t)},e.prototype.beginDeleteMethod=function(e,r,a){return this.client.sendLRORequest({resourceGroupName:e,serverName:r,options:a},oe,a)},e}(),ee=new r.Serializer(j),re={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}",urlParameters:[X,H,W],queryParameters:[_],headerParameters:[x],responses:{200:{bodyMapper:P},default:{bodyMapper:n}},serializer:ee},ae={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers",urlParameters:[X,H],queryParameters:[_],headerParameters:[x],responses:{200:{bodyMapper:L},default:{bodyMapper:n}},serializer:ee},te={httpMethod:"GET",path:"subscriptions/{subscriptionId}/providers/Microsoft.DBforMariaDB/servers",urlParameters:[X],queryParameters:[_],headerParameters:[x],responses:{200:{bodyMapper:L},default:{bodyMapper:n}},serializer:ee},ie={httpMethod:"PUT",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}",urlParameters:[X,H,W],queryParameters:[_],headerParameters:[x],requestBody:{parameterPath:"parameters",mapper:i({},v,{required:!0})},responses:{200:{bodyMapper:P},201:{bodyMapper:P},202:{},default:{bodyMapper:n}},serializer:ee},se={httpMethod:"PATCH",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}",urlParameters:[X,H,W],queryParameters:[_],headerParameters:[x],requestBody:{parameterPath:"parameters",mapper:i({},h,{required:!0})},responses:{200:{bodyMapper:P},202:{},default:{bodyMapper:n}},serializer:ee},oe={httpMethod:"DELETE",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}",urlParameters:[X,H,W],queryParameters:[_],headerParameters:[x],responses:{200:{},202:{},204:{},default:{bodyMapper:n}},serializer:ee},ne=Object.freeze({discriminators:U,FirewallRule:b,ProxyResource:l,BaseResource:p,CloudError:n,FirewallRuleListResult:k,TrackedResource:u,Server:P,Sku:f,StorageProfile:m,VirtualNetworkRule:g,Database:S,Configuration:z,LogFile:C,ServerSecurityAlertPolicy:G}),pe=function(){function e(e){this.client=e}return e.prototype.createOrUpdate=function(e,r,a,t,i){return this.beginCreateOrUpdate(e,r,a,t,i).then(function(e){return e.pollUntilFinished()})},e.prototype.deleteMethod=function(e,r,a,t){return this.beginDeleteMethod(e,r,a,t).then(function(e){return e.pollUntilFinished()})},e.prototype.get=function(e,r,a,t,i){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,firewallRuleName:a,options:t},ue,i)},e.prototype.listByServer=function(e,r,a,t){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:a},me,t)},e.prototype.beginCreateOrUpdate=function(e,r,a,t,i){return this.client.sendLRORequest({resourceGroupName:e,serverName:r,firewallRuleName:a,parameters:t,options:i},de,i)},e.prototype.beginDeleteMethod=function(e,r,a,t){return this.client.sendLRORequest({resourceGroupName:e,serverName:r,firewallRuleName:a,options:t},ce,t)},e}(),le=new r.Serializer(ne),ue={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/firewallRules/{firewallRuleName}",urlParameters:[X,H,W,$],queryParameters:[_],headerParameters:[x],responses:{200:{bodyMapper:b},default:{bodyMapper:n}},serializer:le},me={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/firewallRules",urlParameters:[X,H,W],queryParameters:[_],headerParameters:[x],responses:{200:{bodyMapper:k},default:{bodyMapper:n}},serializer:le},de={httpMethod:"PUT",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/firewallRules/{firewallRuleName}",urlParameters:[X,H,W,$],queryParameters:[_],headerParameters:[x],requestBody:{parameterPath:"parameters",mapper:i({},b,{required:!0})},responses:{200:{bodyMapper:b},201:{bodyMapper:b},202:{},default:{bodyMapper:n}},serializer:le},ce={httpMethod:"DELETE",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/firewallRules/{firewallRuleName}",urlParameters:[X,H,W,$],queryParameters:[_],headerParameters:[x],responses:{200:{},202:{},204:{},default:{bodyMapper:n}},serializer:le},ye=Object.freeze({discriminators:U,VirtualNetworkRule:g,ProxyResource:l,BaseResource:p,CloudError:n,VirtualNetworkRuleListResult:T,TrackedResource:u,Server:P,Sku:f,StorageProfile:m,FirewallRule:b,Database:S,Configuration:z,LogFile:C,ServerSecurityAlertPolicy:G}),Ne=function(){function e(e){this.client=e}return e.prototype.get=function(e,r,a,t,i){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,virtualNetworkRuleName:a,options:t},Pe,i)},e.prototype.createOrUpdate=function(e,r,a,t,i){return this.beginCreateOrUpdate(e,r,a,t,i).then(function(e){return e.pollUntilFinished()})},e.prototype.deleteMethod=function(e,r,a,t){return this.beginDeleteMethod(e,r,a,t).then(function(e){return e.pollUntilFinished()})},e.prototype.listByServer=function(e,r,a,t){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:a},ve,t)},e.prototype.beginCreateOrUpdate=function(e,r,a,t,i){return this.client.sendLRORequest({resourceGroupName:e,serverName:r,virtualNetworkRuleName:a,parameters:t,options:i},he,i)},e.prototype.beginDeleteMethod=function(e,r,a,t){return this.client.sendLRORequest({resourceGroupName:e,serverName:r,virtualNetworkRuleName:a,options:t},be,t)},e.prototype.listByServerNext=function(e,r,a){return this.client.sendOperationRequest({nextPageLink:e,options:r},ge,a)},e}(),fe=new r.Serializer(ye),Pe={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}",urlParameters:[H,W,X,Y],queryParameters:[_],headerParameters:[x],responses:{200:{bodyMapper:g},default:{bodyMapper:n}},serializer:fe},ve={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/virtualNetworkRules",urlParameters:[H,W,X],queryParameters:[_],headerParameters:[x],responses:{200:{bodyMapper:T},default:{bodyMapper:n}},serializer:fe},he={httpMethod:"PUT",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}",urlParameters:[H,W,X,Y],queryParameters:[_],headerParameters:[x],requestBody:{parameterPath:"parameters",mapper:i({},g,{required:!0})},responses:{200:{bodyMapper:g},201:{bodyMapper:g},202:{},default:{bodyMapper:n}},serializer:fe},be={httpMethod:"DELETE",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}",urlParameters:[H,W,Y,X],queryParameters:[_],headerParameters:[x],responses:{200:{},202:{},204:{},default:{bodyMapper:n}},serializer:fe},ge={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[{parameterPath:"nextPageLink",mapper:{required:!0,serializedName:"nextLink",type:{name:"String"}},skipEncoding:!0}],headerParameters:[x],responses:{200:{bodyMapper:T},default:{bodyMapper:n}},serializer:fe},Se=Object.freeze({discriminators:U,Database:S,ProxyResource:l,BaseResource:p,CloudError:n,DatabaseListResult:F,TrackedResource:u,Server:P,Sku:f,StorageProfile:m,FirewallRule:b,VirtualNetworkRule:g,Configuration:z,LogFile:C,ServerSecurityAlertPolicy:G}),ze=function(){function e(e){this.client=e}return e.prototype.createOrUpdate=function(e,r,a,t,i){return this.beginCreateOrUpdate(e,r,a,t,i).then(function(e){return e.pollUntilFinished()})},e.prototype.deleteMethod=function(e,r,a,t){return this.beginDeleteMethod(e,r,a,t).then(function(e){return e.pollUntilFinished()})},e.prototype.get=function(e,r,a,t,i){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,databaseName:a,options:t},Me,i)},e.prototype.listByServer=function(e,r,a,t){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:a},De,t)},e.prototype.beginCreateOrUpdate=function(e,r,a,t,i){return this.client.sendLRORequest({resourceGroupName:e,serverName:r,databaseName:a,parameters:t,options:i},Ce,i)},e.prototype.beginDeleteMethod=function(e,r,a,t){return this.client.sendLRORequest({resourceGroupName:e,serverName:r,databaseName:a,options:t},qe,t)},e}(),Re=new r.Serializer(Se),Me={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/databases/{databaseName}",urlParameters:[X,H,W,Q],queryParameters:[_],headerParameters:[x],responses:{200:{bodyMapper:S},default:{bodyMapper:n}},serializer:Re},De={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/databases",urlParameters:[X,H,W],queryParameters:[_],headerParameters:[x],responses:{200:{bodyMapper:F},default:{bodyMapper:n}},serializer:Re},Ce={httpMethod:"PUT",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/databases/{databaseName}",urlParameters:[X,H,W,Q],queryParameters:[_],headerParameters:[x],requestBody:{parameterPath:"parameters",mapper:i({},S,{required:!0})},responses:{200:{bodyMapper:S},201:{bodyMapper:S},202:{},default:{bodyMapper:n}},serializer:Re},qe={httpMethod:"DELETE",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/databases/{databaseName}",urlParameters:[X,H,W,Q],queryParameters:[_],headerParameters:[x],responses:{200:{},202:{},204:{},default:{bodyMapper:n}},serializer:Re},Oe=Object.freeze({discriminators:U,Configuration:z,ProxyResource:l,BaseResource:p,CloudError:n,ConfigurationListResult:E,TrackedResource:u,Server:P,Sku:f,StorageProfile:m,FirewallRule:b,VirtualNetworkRule:g,Database:S,LogFile:C,ServerSecurityAlertPolicy:G}),Be=function(){function e(e){this.client=e}return e.prototype.createOrUpdate=function(e,r,a,t,i){return this.beginCreateOrUpdate(e,r,a,t,i).then(function(e){return e.pollUntilFinished()})},e.prototype.get=function(e,r,a,t,i){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,configurationName:a,options:t},Ge,i)},e.prototype.listByServer=function(e,r,a,t){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:a},Le,t)},e.prototype.beginCreateOrUpdate=function(e,r,a,t,i){return this.client.sendLRORequest({resourceGroupName:e,serverName:r,configurationName:a,parameters:t,options:i},ke,i)},e}(),we=new r.Serializer(Oe),Ge={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/configurations/{configurationName}",urlParameters:[X,H,W,K],queryParameters:[_],headerParameters:[x],responses:{200:{bodyMapper:z},default:{bodyMapper:n}},serializer:we},Le={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/configurations",urlParameters:[X,H,W],queryParameters:[_],headerParameters:[x],responses:{200:{bodyMapper:E},default:{bodyMapper:n}},serializer:we},ke={httpMethod:"PUT",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/configurations/{configurationName}",urlParameters:[X,H,W,K],queryParameters:[_],headerParameters:[x],requestBody:{parameterPath:"parameters",mapper:i({},z,{required:!0})},responses:{200:{bodyMapper:z},202:{},default:{bodyMapper:n}},serializer:we},Te=Object.freeze({discriminators:U,LogFileListResult:A,LogFile:C,ProxyResource:l,BaseResource:p,CloudError:n,TrackedResource:u,Server:P,Sku:f,StorageProfile:m,FirewallRule:b,VirtualNetworkRule:g,Database:S,Configuration:z,ServerSecurityAlertPolicy:G}),Fe=function(){function e(e){this.client=e}return e.prototype.listByServer=function(e,r,a,t){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:a},Ee,t)},e}(),Ee={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/logFiles",urlParameters:[X,H,W],queryParameters:[_],headerParameters:[x],responses:{200:{bodyMapper:A},default:{bodyMapper:n}},serializer:new r.Serializer(Te)},Ae=Object.freeze({discriminators:U,PerformanceTierListResult:I,PerformanceTierProperties:O,PerformanceTierServiceLevelObjectives:q,CloudError:n}),Ie=function(){function e(e){this.client=e}return e.prototype.list=function(e,r,a){return this.client.sendOperationRequest({locationName:e,options:r},Ue,a)},e}(),Ue={httpMethod:"GET",path:"subscriptions/{subscriptionId}/providers/Microsoft.DBforMariaDB/locations/{locationName}/performanceTiers",urlParameters:[X,{parameterPath:"locationName",mapper:{required:!0,serializedName:"locationName",type:{name:"String"}}}],queryParameters:[_],headerParameters:[x],responses:{200:{bodyMapper:I},default:{bodyMapper:n}},serializer:new r.Serializer(Ae)},Ve=Object.freeze({discriminators:U,NameAvailabilityRequest:B,NameAvailability:w,CloudError:n}),je=function(){function e(e){this.client=e}return e.prototype.execute=function(e,r,a){return this.client.sendOperationRequest({nameAvailabilityRequest:e,options:r},_e,a)},e}(),xe=new r.Serializer(Ve),_e={httpMethod:"POST",path:"subscriptions/{subscriptionId}/providers/Microsoft.DBforMariaDB/checkNameAvailability",urlParameters:[X],queryParameters:[_],headerParameters:[x],requestBody:{parameterPath:"nameAvailabilityRequest",mapper:i({},B,{required:!0})},responses:{200:{bodyMapper:w},default:{bodyMapper:n}},serializer:xe},Ke=Object.freeze({discriminators:U,ServerSecurityAlertPolicy:G,ProxyResource:l,BaseResource:p,CloudError:n,TrackedResource:u,Server:P,Sku:f,StorageProfile:m,FirewallRule:b,VirtualNetworkRule:g,Database:S,Configuration:z,LogFile:C}),Qe=function(){function e(e){this.client=e}return e.prototype.get=function(e,r,a,t){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:a},He,t)},e.prototype.createOrUpdate=function(e,r,a,t){return this.beginCreateOrUpdate(e,r,a,t).then(function(e){return e.pollUntilFinished()})},e.prototype.beginCreateOrUpdate=function(e,r,a,t){return this.client.sendLRORequest({resourceGroupName:e,serverName:r,parameters:a,options:t},Je,t)},e}(),$e=new r.Serializer(Ke),He={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}",urlParameters:[H,W,J,X],queryParameters:[_],headerParameters:[x],responses:{200:{bodyMapper:G},default:{bodyMapper:n}},serializer:$e},Je={httpMethod:"PUT",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}",urlParameters:[H,W,J,X],queryParameters:[_],headerParameters:[x],requestBody:{parameterPath:"parameters",mapper:i({},G,{required:!0})},responses:{200:{bodyMapper:G},202:{},default:{bodyMapper:n}},serializer:$e},We=Object.freeze({discriminators:U,OperationListResult:D,Operation:M,OperationDisplay:R,CloudError:n}),Xe=function(){function e(e){this.client=e}return e.prototype.list=function(e,r){return this.client.sendOperationRequest({options:e},Ye,r)},e}(),Ye={httpMethod:"GET",path:"providers/Microsoft.DBforMariaDB/operations",queryParameters:[_],headerParameters:[x],responses:{200:{bodyMapper:D},default:{bodyMapper:n}},serializer:new r.Serializer(We)},Ze=function(s){function e(e,r,a){var t=this;if(null==e)throw new Error("'credentials' cannot be null.");if(null==r)throw new Error("'subscriptionId' cannot be null.");if(a||(a={}),!a.userAgent){var i=o.getDefaultUserAgentValue();a.userAgent="@azure/arm-mariadb/0.1.0 "+i}return(t=s.call(this,e,a)||this).apiVersion="2018-06-01-preview",t.acceptLanguage="en-US",t.longRunningOperationRetryTimeout=30,t.baseUri=a.baseUri||t.baseUri||"https://management.azure.com",t.requestContentType="application/json; charset=utf-8",t.credentials=e,t.subscriptionId=r,null!==a.acceptLanguage&&void 0!==a.acceptLanguage&&(t.acceptLanguage=a.acceptLanguage),null!==a.longRunningOperationRetryTimeout&&void 0!==a.longRunningOperationRetryTimeout&&(t.longRunningOperationRetryTimeout=a.longRunningOperationRetryTimeout),t}return a(e,s),e}(o.AzureServiceClient),er=function(i){function e(e,r,a){var t=i.call(this,e,r,a)||this;return t.servers=new Z(t),t.firewallRules=new pe(t),t.virtualNetworkRules=new Ne(t),t.databases=new ze(t),t.configurations=new Be(t),t.logFiles=new Fe(t),t.locationBasedPerformanceTier=new Ie(t),t.checkNameAvailability=new je(t),t.serverSecurityAlertPolicies=new Qe(t),t.operations=new Xe(t),t}return a(e,i),e}(Ze);e.MariaDBManagementClient=er,e.MariaDBManagementClientContext=Ze,e.MariaDBManagementModels=s,e.MariaDBManagementMappers=V,e.Servers=Z,e.FirewallRules=pe,e.VirtualNetworkRules=Ne,e.Databases=ze,e.Configurations=Be,e.LogFiles=Fe,e.LocationBasedPerformanceTier=Ie,e.CheckNameAvailability=je,e.ServerSecurityAlertPolicies=Qe,e.Operations=Xe,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@azure/ms-rest-azure-js"),require("@azure/ms-rest-js")):"function"==typeof define&&define.amd?define(["exports","@azure/ms-rest-azure-js","@azure/ms-rest-js"],r):r((e.Azure=e.Azure||{},e.Azure.ArmMariadb={}),e.msRestAzure,e.msRest)}(this,function(e,o,r){"use strict";var a=function(e,r){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(e,r)};function t(e,r){function t(){this.constructor=e}a(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}var i=function(){return(i=Object.assign||function(e){for(var r,t=1,a=arguments.length;t<a;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e}).apply(this,arguments)},s=Object.freeze({}),n=o.CloudErrorMapper,p=o.BaseResourceMapper,l={serializedName:"ProxyResource",type:{name:"Composite",className:"ProxyResource",modelProperties:{id:{readOnly:!0,serializedName:"id",type:{name:"String"}},name:{readOnly:!0,serializedName:"name",type:{name:"String"}},type:{readOnly:!0,serializedName:"type",type:{name:"String"}}}}},u={serializedName:"TrackedResource",type:{name:"Composite",className:"TrackedResource",modelProperties:i({},l.type.modelProperties,{location:{required:!0,serializedName:"location",type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}}})}},m={serializedName:"StorageProfile",type:{name:"Composite",className:"StorageProfile",modelProperties:{backupRetentionDays:{serializedName:"backupRetentionDays",type:{name:"Number"}},geoRedundantBackup:{serializedName:"geoRedundantBackup",type:{name:"String"}},storageMB:{serializedName:"storageMB",type:{name:"Number"}}}}},d={serializedName:"ServerPropertiesForCreate",type:{name:"Composite",polymorphicDiscriminator:{serializedName:"createMode",clientName:"createMode"},uberParent:"ServerPropertiesForCreate",className:"ServerPropertiesForCreate",modelProperties:{version:{serializedName:"version",type:{name:"String"}},sslEnforcement:{serializedName:"sslEnforcement",type:{name:"Enum",allowedValues:["Enabled","Disabled"]}},storageProfile:{serializedName:"storageProfile",type:{name:"Composite",className:"StorageProfile"}},createMode:{required:!0,serializedName:"createMode",type:{name:"String"}}}}},c={serializedName:"Default",type:{name:"Composite",polymorphicDiscriminator:d.type.polymorphicDiscriminator,uberParent:"ServerPropertiesForCreate",className:"ServerPropertiesForDefaultCreate",modelProperties:i({},d.type.modelProperties,{administratorLogin:{required:!0,serializedName:"administratorLogin",type:{name:"String"}},administratorLoginPassword:{required:!0,serializedName:"administratorLoginPassword",type:{name:"String"}}})}},y={serializedName:"PointInTimeRestore",type:{name:"Composite",polymorphicDiscriminator:d.type.polymorphicDiscriminator,uberParent:"ServerPropertiesForCreate",className:"ServerPropertiesForRestore",modelProperties:i({},d.type.modelProperties,{sourceServerId:{required:!0,serializedName:"sourceServerId",type:{name:"String"}},restorePointInTime:{required:!0,serializedName:"restorePointInTime",type:{name:"DateTime"}}})}},N={serializedName:"GeoRestore",type:{name:"Composite",polymorphicDiscriminator:d.type.polymorphicDiscriminator,uberParent:"ServerPropertiesForCreate",className:"ServerPropertiesForGeoRestore",modelProperties:i({},d.type.modelProperties,{sourceServerId:{required:!0,serializedName:"sourceServerId",type:{name:"String"}}})}},f={serializedName:"Replica",type:{name:"Composite",polymorphicDiscriminator:d.type.polymorphicDiscriminator,uberParent:"ServerPropertiesForCreate",className:"ServerPropertiesForReplica",modelProperties:i({},d.type.modelProperties,{sourceServerId:{required:!0,serializedName:"sourceServerId",type:{name:"String"}}})}},P={serializedName:"Sku",type:{name:"Composite",className:"Sku",modelProperties:{name:{serializedName:"name",type:{name:"String"}},tier:{serializedName:"tier",type:{name:"String"}},capacity:{serializedName:"capacity",constraints:{InclusiveMinimum:0},type:{name:"Number"}},size:{serializedName:"size",type:{name:"String"}},family:{serializedName:"family",type:{name:"String"}}}}},v={serializedName:"Server",type:{name:"Composite",className:"Server",modelProperties:i({},u.type.modelProperties,{sku:{serializedName:"sku",type:{name:"Composite",className:"Sku"}},administratorLogin:{serializedName:"properties.administratorLogin",type:{name:"String"}},version:{serializedName:"properties.version",type:{name:"String"}},sslEnforcement:{serializedName:"properties.sslEnforcement",type:{name:"Enum",allowedValues:["Enabled","Disabled"]}},userVisibleState:{serializedName:"properties.userVisibleState",type:{name:"String"}},fullyQualifiedDomainName:{serializedName:"properties.fullyQualifiedDomainName",type:{name:"String"}},earliestRestoreDate:{serializedName:"properties.earliestRestoreDate",type:{name:"DateTime"}},storageProfile:{serializedName:"properties.storageProfile",type:{name:"Composite",className:"StorageProfile"}},replicationRole:{serializedName:"properties.replicationRole",type:{name:"String"}},masterServerId:{serializedName:"properties.masterServerId",type:{name:"String"}},replicaCapacity:{serializedName:"properties.replicaCapacity",constraints:{InclusiveMinimum:0},type:{name:"Number"}}})}},h={serializedName:"ServerForCreate",type:{name:"Composite",className:"ServerForCreate",modelProperties:{sku:{serializedName:"sku",type:{name:"Composite",className:"Sku"}},properties:{required:!0,serializedName:"properties",type:{name:"Composite",className:"ServerPropertiesForCreate"}},location:{required:!0,serializedName:"location",type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},b={serializedName:"ServerUpdateParameters",type:{name:"Composite",className:"ServerUpdateParameters",modelProperties:{sku:{serializedName:"sku",type:{name:"Composite",className:"Sku"}},storageProfile:{serializedName:"properties.storageProfile",type:{name:"Composite",className:"StorageProfile"}},administratorLoginPassword:{serializedName:"properties.administratorLoginPassword",type:{name:"String"}},version:{serializedName:"properties.version",type:{name:"String"}},sslEnforcement:{serializedName:"properties.sslEnforcement",type:{name:"Enum",allowedValues:["Enabled","Disabled"]}},replicationRole:{serializedName:"properties.replicationRole",type:{name:"String"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},g={serializedName:"FirewallRule",type:{name:"Composite",className:"FirewallRule",modelProperties:i({},l.type.modelProperties,{startIpAddress:{required:!0,serializedName:"properties.startIpAddress",constraints:{Pattern:/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/},type:{name:"String"}},endIpAddress:{required:!0,serializedName:"properties.endIpAddress",constraints:{Pattern:/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/},type:{name:"String"}}})}},S={serializedName:"VirtualNetworkRule",type:{name:"Composite",className:"VirtualNetworkRule",modelProperties:i({},l.type.modelProperties,{virtualNetworkSubnetId:{required:!0,serializedName:"properties.virtualNetworkSubnetId",type:{name:"String"}},ignoreMissingVnetServiceEndpoint:{serializedName:"properties.ignoreMissingVnetServiceEndpoint",type:{name:"Boolean"}},state:{readOnly:!0,serializedName:"properties.state",type:{name:"String"}}})}},z={serializedName:"Database",type:{name:"Composite",className:"Database",modelProperties:i({},l.type.modelProperties,{charset:{serializedName:"properties.charset",type:{name:"String"}},collation:{serializedName:"properties.collation",type:{name:"String"}}})}},R={serializedName:"Configuration",type:{name:"Composite",className:"Configuration",modelProperties:i({},l.type.modelProperties,{value:{serializedName:"properties.value",type:{name:"String"}},description:{readOnly:!0,serializedName:"properties.description",type:{name:"String"}},defaultValue:{readOnly:!0,serializedName:"properties.defaultValue",type:{name:"String"}},dataType:{readOnly:!0,serializedName:"properties.dataType",type:{name:"String"}},allowedValues:{readOnly:!0,serializedName:"properties.allowedValues",type:{name:"String"}},source:{serializedName:"properties.source",type:{name:"String"}}})}},M={serializedName:"OperationDisplay",type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{readOnly:!0,serializedName:"provider",type:{name:"String"}},resource:{readOnly:!0,serializedName:"resource",type:{name:"String"}},operation:{readOnly:!0,serializedName:"operation",type:{name:"String"}},description:{readOnly:!0,serializedName:"description",type:{name:"String"}}}}},D={serializedName:"Operation",type:{name:"Composite",className:"Operation",modelProperties:{name:{readOnly:!0,serializedName:"name",type:{name:"String"}},display:{readOnly:!0,serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}},origin:{readOnly:!0,serializedName:"origin",type:{name:"String"}},properties:{readOnly:!0,serializedName:"properties",type:{name:"Dictionary",value:{type:{name:"Object"}}}}}}},C={serializedName:"OperationListResult",type:{name:"Composite",className:"OperationListResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Operation"}}}}}}},q={serializedName:"LogFile",type:{name:"Composite",className:"LogFile",modelProperties:i({},l.type.modelProperties,{sizeInKB:{serializedName:"properties.sizeInKB",type:{name:"Number"}},createdTime:{readOnly:!0,serializedName:"properties.createdTime",type:{name:"DateTime"}},lastModifiedTime:{readOnly:!0,serializedName:"properties.lastModifiedTime",type:{name:"DateTime"}},logFileType:{serializedName:"properties.type",type:{name:"String"}},url:{readOnly:!0,serializedName:"properties.url",type:{name:"String"}}})}},O={serializedName:"PerformanceTierServiceLevelObjectives",type:{name:"Composite",className:"PerformanceTierServiceLevelObjectives",modelProperties:{id:{serializedName:"id",type:{name:"String"}},edition:{serializedName:"edition",type:{name:"String"}},vCore:{serializedName:"vCore",type:{name:"Number"}},hardwareGeneration:{serializedName:"hardwareGeneration",type:{name:"String"}},maxBackupRetentionDays:{serializedName:"maxBackupRetentionDays",type:{name:"Number"}},minBackupRetentionDays:{serializedName:"minBackupRetentionDays",type:{name:"Number"}},maxStorageMB:{serializedName:"maxStorageMB",type:{name:"Number"}},minStorageMB:{serializedName:"minStorageMB",type:{name:"Number"}}}}},B={serializedName:"PerformanceTierProperties",type:{name:"Composite",className:"PerformanceTierProperties",modelProperties:{id:{serializedName:"id",type:{name:"String"}},serviceLevelObjectives:{serializedName:"serviceLevelObjectives",type:{name:"Sequence",element:{type:{name:"Composite",className:"PerformanceTierServiceLevelObjectives"}}}}}}},w={serializedName:"NameAvailabilityRequest",type:{name:"Composite",className:"NameAvailabilityRequest",modelProperties:{name:{required:!0,serializedName:"name",type:{name:"String"}},type:{serializedName:"type",type:{name:"String"}}}}},G={serializedName:"NameAvailability",type:{name:"Composite",className:"NameAvailability",modelProperties:{message:{serializedName:"message",type:{name:"String"}},nameAvailable:{serializedName:"nameAvailable",type:{name:"Boolean"}},reason:{serializedName:"reason",type:{name:"String"}}}}},L={serializedName:"ServerSecurityAlertPolicy",type:{name:"Composite",className:"ServerSecurityAlertPolicy",modelProperties:i({},l.type.modelProperties,{state:{required:!0,serializedName:"properties.state",type:{name:"Enum",allowedValues:["Enabled","Disabled"]}},disabledAlerts:{serializedName:"properties.disabledAlerts",type:{name:"Sequence",element:{type:{name:"String"}}}},emailAddresses:{serializedName:"properties.emailAddresses",type:{name:"Sequence",element:{type:{name:"String"}}}},emailAccountAdmins:{serializedName:"properties.emailAccountAdmins",type:{name:"Boolean"}},storageEndpoint:{serializedName:"properties.storageEndpoint",type:{name:"String"}},storageAccountAccessKey:{serializedName:"properties.storageAccountAccessKey",type:{name:"String"}},retentionDays:{serializedName:"properties.retentionDays",type:{name:"Number"}}})}},k={serializedName:"ServerListResult",type:{name:"Composite",className:"ServerListResult",modelProperties:{value:{serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"Server"}}}}}}},F={serializedName:"FirewallRuleListResult",type:{name:"Composite",className:"FirewallRuleListResult",modelProperties:{value:{serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"FirewallRule"}}}}}}},T={serializedName:"VirtualNetworkRuleListResult",type:{name:"Composite",className:"VirtualNetworkRuleListResult",modelProperties:{value:{readOnly:!0,serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"VirtualNetworkRule"}}}},nextLink:{readOnly:!0,serializedName:"nextLink",type:{name:"String"}}}}},E={serializedName:"DatabaseListResult",type:{name:"Composite",className:"DatabaseListResult",modelProperties:{value:{serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"Database"}}}}}}},A={serializedName:"ConfigurationListResult",type:{name:"Composite",className:"ConfigurationListResult",modelProperties:{value:{serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"Configuration"}}}}}}},I={serializedName:"LogFileListResult",type:{name:"Composite",className:"LogFileListResult",modelProperties:{value:{serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"LogFile"}}}}}}},U={serializedName:"PerformanceTierListResult",type:{name:"Composite",className:"PerformanceTierListResult",modelProperties:{value:{serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"PerformanceTierProperties"}}}}}}},V={ServerPropertiesForCreate:d,"ServerPropertiesForCreate.Default":c,"ServerPropertiesForCreate.PointInTimeRestore":y,"ServerPropertiesForCreate.GeoRestore":N,"ServerPropertiesForCreate.Replica":f},j=Object.freeze({CloudError:n,BaseResource:p,ProxyResource:l,TrackedResource:u,StorageProfile:m,ServerPropertiesForCreate:d,ServerPropertiesForDefaultCreate:c,ServerPropertiesForRestore:y,ServerPropertiesForGeoRestore:N,ServerPropertiesForReplica:f,Sku:P,Server:v,ServerForCreate:h,ServerUpdateParameters:b,FirewallRule:g,VirtualNetworkRule:S,Database:z,Configuration:R,OperationDisplay:M,Operation:D,OperationListResult:C,LogFile:q,PerformanceTierServiceLevelObjectives:O,PerformanceTierProperties:B,NameAvailabilityRequest:w,NameAvailability:G,ServerSecurityAlertPolicy:L,ServerListResult:k,FirewallRuleListResult:F,VirtualNetworkRuleListResult:T,DatabaseListResult:E,ConfigurationListResult:A,LogFileListResult:I,PerformanceTierListResult:U,discriminators:V}),x=Object.freeze({discriminators:V,BaseResource:p,CloudError:n,Configuration:R,Database:z,FirewallRule:g,LogFile:q,ProxyResource:l,Server:v,ServerForCreate:h,ServerListResult:k,ServerPropertiesForCreate:d,ServerPropertiesForDefaultCreate:c,ServerPropertiesForGeoRestore:N,ServerPropertiesForReplica:f,ServerPropertiesForRestore:y,ServerSecurityAlertPolicy:L,ServerUpdateParameters:b,Sku:P,StorageProfile:m,TrackedResource:u,VirtualNetworkRule:S}),_={parameterPath:"acceptLanguage",mapper:{serializedName:"accept-language",defaultValue:"en-US",type:{name:"String"}}},K={parameterPath:"apiVersion",mapper:{required:!0,serializedName:"api-version",type:{name:"String"}}},Q={parameterPath:"configurationName",mapper:{required:!0,serializedName:"configurationName",type:{name:"String"}}},$={parameterPath:"databaseName",mapper:{required:!0,serializedName:"databaseName",type:{name:"String"}}},H={parameterPath:"firewallRuleName",mapper:{required:!0,serializedName:"firewallRuleName",type:{name:"String"}}},J={parameterPath:"resourceGroupName",mapper:{required:!0,serializedName:"resourceGroupName",type:{name:"String"}}},W={parameterPath:"securityAlertPolicyName",mapper:{required:!0,isConstant:!0,serializedName:"securityAlertPolicyName",defaultValue:"Default",type:{name:"String"}}},X={parameterPath:"serverName",mapper:{required:!0,serializedName:"serverName",type:{name:"String"}}},Y={parameterPath:"subscriptionId",mapper:{required:!0,serializedName:"subscriptionId",type:{name:"String"}}},Z={parameterPath:"virtualNetworkRuleName",mapper:{required:!0,serializedName:"virtualNetworkRuleName",type:{name:"String"}}},ee=function(){function e(e){this.client=e}return e.prototype.create=function(e,r,t,a){return this.beginCreate(e,r,t,a).then(function(e){return e.pollUntilFinished()})},e.prototype.update=function(e,r,t,a){return this.beginUpdate(e,r,t,a).then(function(e){return e.pollUntilFinished()})},e.prototype.deleteMethod=function(e,r,t){return this.beginDeleteMethod(e,r,t).then(function(e){return e.pollUntilFinished()})},e.prototype.get=function(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:t},te,a)},e.prototype.listByResourceGroup=function(e,r,t){return this.client.sendOperationRequest({resourceGroupName:e,options:r},ae,t)},e.prototype.list=function(e,r){return this.client.sendOperationRequest({options:e},ie,r)},e.prototype.restart=function(e,r,t){return this.beginRestart(e,r,t).then(function(e){return e.pollUntilFinished()})},e.prototype.beginCreate=function(e,r,t,a){return this.client.sendLRORequest({resourceGroupName:e,serverName:r,parameters:t,options:a},se,a)},e.prototype.beginUpdate=function(e,r,t,a){return this.client.sendLRORequest({resourceGroupName:e,serverName:r,parameters:t,options:a},oe,a)},e.prototype.beginDeleteMethod=function(e,r,t){return this.client.sendLRORequest({resourceGroupName:e,serverName:r,options:t},ne,t)},e.prototype.beginRestart=function(e,r,t){return this.client.sendLRORequest({resourceGroupName:e,serverName:r,options:t},pe,t)},e}(),re=new r.Serializer(x),te={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}",urlParameters:[Y,J,X],queryParameters:[K],headerParameters:[_],responses:{200:{bodyMapper:v},default:{bodyMapper:n}},serializer:re},ae={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers",urlParameters:[Y,J],queryParameters:[K],headerParameters:[_],responses:{200:{bodyMapper:k},default:{bodyMapper:n}},serializer:re},ie={httpMethod:"GET",path:"subscriptions/{subscriptionId}/providers/Microsoft.DBforMariaDB/servers",urlParameters:[Y],queryParameters:[K],headerParameters:[_],responses:{200:{bodyMapper:k},default:{bodyMapper:n}},serializer:re},se={httpMethod:"PUT",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}",urlParameters:[Y,J,X],queryParameters:[K],headerParameters:[_],requestBody:{parameterPath:"parameters",mapper:i({},h,{required:!0})},responses:{200:{bodyMapper:v},201:{bodyMapper:v},202:{},default:{bodyMapper:n}},serializer:re},oe={httpMethod:"PATCH",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}",urlParameters:[Y,J,X],queryParameters:[K],headerParameters:[_],requestBody:{parameterPath:"parameters",mapper:i({},b,{required:!0})},responses:{200:{bodyMapper:v},202:{},default:{bodyMapper:n}},serializer:re},ne={httpMethod:"DELETE",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}",urlParameters:[Y,J,X],queryParameters:[K],headerParameters:[_],responses:{200:{},202:{},204:{},default:{bodyMapper:n}},serializer:re},pe={httpMethod:"POST",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/restart",urlParameters:[Y,J,X],queryParameters:[K],headerParameters:[_],responses:{200:{},202:{},default:{bodyMapper:n}},serializer:re},le=Object.freeze({discriminators:V,BaseResource:p,CloudError:n,Configuration:R,Database:z,FirewallRule:g,LogFile:q,ProxyResource:l,Server:v,ServerListResult:k,ServerSecurityAlertPolicy:L,Sku:P,StorageProfile:m,TrackedResource:u,VirtualNetworkRule:S}),ue=function(){function e(e){this.client=e}return e.prototype.listByServer=function(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:t},me,a)},e}(),me={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/replicas",urlParameters:[Y,J,X],queryParameters:[K],headerParameters:[_],responses:{200:{bodyMapper:k},default:{bodyMapper:n}},serializer:new r.Serializer(le)},de=Object.freeze({discriminators:V,BaseResource:p,CloudError:n,Configuration:R,Database:z,FirewallRule:g,FirewallRuleListResult:F,LogFile:q,ProxyResource:l,Server:v,ServerSecurityAlertPolicy:L,Sku:P,StorageProfile:m,TrackedResource:u,VirtualNetworkRule:S}),ce=function(){function e(e){this.client=e}return e.prototype.createOrUpdate=function(e,r,t,a,i){return this.beginCreateOrUpdate(e,r,t,a,i).then(function(e){return e.pollUntilFinished()})},e.prototype.deleteMethod=function(e,r,t,a){return this.beginDeleteMethod(e,r,t,a).then(function(e){return e.pollUntilFinished()})},e.prototype.get=function(e,r,t,a,i){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,firewallRuleName:t,options:a},Ne,i)},e.prototype.listByServer=function(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:t},fe,a)},e.prototype.beginCreateOrUpdate=function(e,r,t,a,i){return this.client.sendLRORequest({resourceGroupName:e,serverName:r,firewallRuleName:t,parameters:a,options:i},Pe,i)},e.prototype.beginDeleteMethod=function(e,r,t,a){return this.client.sendLRORequest({resourceGroupName:e,serverName:r,firewallRuleName:t,options:a},ve,a)},e}(),ye=new r.Serializer(de),Ne={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/firewallRules/{firewallRuleName}",urlParameters:[Y,J,X,H],queryParameters:[K],headerParameters:[_],responses:{200:{bodyMapper:g},default:{bodyMapper:n}},serializer:ye},fe={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/firewallRules",urlParameters:[Y,J,X],queryParameters:[K],headerParameters:[_],responses:{200:{bodyMapper:F},default:{bodyMapper:n}},serializer:ye},Pe={httpMethod:"PUT",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/firewallRules/{firewallRuleName}",urlParameters:[Y,J,X,H],queryParameters:[K],headerParameters:[_],requestBody:{parameterPath:"parameters",mapper:i({},g,{required:!0})},responses:{200:{bodyMapper:g},201:{bodyMapper:g},202:{},default:{bodyMapper:n}},serializer:ye},ve={httpMethod:"DELETE",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/firewallRules/{firewallRuleName}",urlParameters:[Y,J,X,H],queryParameters:[K],headerParameters:[_],responses:{200:{},202:{},204:{},default:{bodyMapper:n}},serializer:ye},he=Object.freeze({discriminators:V,BaseResource:p,CloudError:n,Configuration:R,Database:z,FirewallRule:g,LogFile:q,ProxyResource:l,Server:v,ServerSecurityAlertPolicy:L,Sku:P,StorageProfile:m,TrackedResource:u,VirtualNetworkRule:S,VirtualNetworkRuleListResult:T}),be=function(){function e(e){this.client=e}return e.prototype.get=function(e,r,t,a,i){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,virtualNetworkRuleName:t,options:a},Se,i)},e.prototype.createOrUpdate=function(e,r,t,a,i){return this.beginCreateOrUpdate(e,r,t,a,i).then(function(e){return e.pollUntilFinished()})},e.prototype.deleteMethod=function(e,r,t,a){return this.beginDeleteMethod(e,r,t,a).then(function(e){return e.pollUntilFinished()})},e.prototype.listByServer=function(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:t},ze,a)},e.prototype.beginCreateOrUpdate=function(e,r,t,a,i){return this.client.sendLRORequest({resourceGroupName:e,serverName:r,virtualNetworkRuleName:t,parameters:a,options:i},Re,i)},e.prototype.beginDeleteMethod=function(e,r,t,a){return this.client.sendLRORequest({resourceGroupName:e,serverName:r,virtualNetworkRuleName:t,options:a},Me,a)},e.prototype.listByServerNext=function(e,r,t){return this.client.sendOperationRequest({nextPageLink:e,options:r},De,t)},e}(),ge=new r.Serializer(he),Se={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}",urlParameters:[J,X,Y,Z],queryParameters:[K],headerParameters:[_],responses:{200:{bodyMapper:S},default:{bodyMapper:n}},serializer:ge},ze={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/virtualNetworkRules",urlParameters:[J,X,Y],queryParameters:[K],headerParameters:[_],responses:{200:{bodyMapper:T},default:{bodyMapper:n}},serializer:ge},Re={httpMethod:"PUT",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}",urlParameters:[J,X,Y,Z],queryParameters:[K],headerParameters:[_],requestBody:{parameterPath:"parameters",mapper:i({},S,{required:!0})},responses:{200:{bodyMapper:S},201:{bodyMapper:S},202:{},default:{bodyMapper:n}},serializer:ge},Me={httpMethod:"DELETE",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}",urlParameters:[J,X,Z,Y],queryParameters:[K],headerParameters:[_],responses:{200:{},202:{},204:{},default:{bodyMapper:n}},serializer:ge},De={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[{parameterPath:"nextPageLink",mapper:{required:!0,serializedName:"nextLink",type:{name:"String"}},skipEncoding:!0}],headerParameters:[_],responses:{200:{bodyMapper:T},default:{bodyMapper:n}},serializer:ge},Ce=Object.freeze({discriminators:V,BaseResource:p,CloudError:n,Configuration:R,Database:z,DatabaseListResult:E,FirewallRule:g,LogFile:q,ProxyResource:l,Server:v,ServerSecurityAlertPolicy:L,Sku:P,StorageProfile:m,TrackedResource:u,VirtualNetworkRule:S}),qe=function(){function e(e){this.client=e}return e.prototype.createOrUpdate=function(e,r,t,a,i){return this.beginCreateOrUpdate(e,r,t,a,i).then(function(e){return e.pollUntilFinished()})},e.prototype.deleteMethod=function(e,r,t,a){return this.beginDeleteMethod(e,r,t,a).then(function(e){return e.pollUntilFinished()})},e.prototype.get=function(e,r,t,a,i){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,databaseName:t,options:a},Be,i)},e.prototype.listByServer=function(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:t},we,a)},e.prototype.beginCreateOrUpdate=function(e,r,t,a,i){return this.client.sendLRORequest({resourceGroupName:e,serverName:r,databaseName:t,parameters:a,options:i},Ge,i)},e.prototype.beginDeleteMethod=function(e,r,t,a){return this.client.sendLRORequest({resourceGroupName:e,serverName:r,databaseName:t,options:a},Le,a)},e}(),Oe=new r.Serializer(Ce),Be={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/databases/{databaseName}",urlParameters:[Y,J,X,$],queryParameters:[K],headerParameters:[_],responses:{200:{bodyMapper:z},default:{bodyMapper:n}},serializer:Oe},we={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/databases",urlParameters:[Y,J,X],queryParameters:[K],headerParameters:[_],responses:{200:{bodyMapper:E},default:{bodyMapper:n}},serializer:Oe},Ge={httpMethod:"PUT",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/databases/{databaseName}",urlParameters:[Y,J,X,$],queryParameters:[K],headerParameters:[_],requestBody:{parameterPath:"parameters",mapper:i({},z,{required:!0})},responses:{200:{bodyMapper:z},201:{bodyMapper:z},202:{},default:{bodyMapper:n}},serializer:Oe},Le={httpMethod:"DELETE",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/databases/{databaseName}",urlParameters:[Y,J,X,$],queryParameters:[K],headerParameters:[_],responses:{200:{},202:{},204:{},default:{bodyMapper:n}},serializer:Oe},ke=Object.freeze({discriminators:V,BaseResource:p,CloudError:n,Configuration:R,ConfigurationListResult:A,Database:z,FirewallRule:g,LogFile:q,ProxyResource:l,Server:v,ServerSecurityAlertPolicy:L,Sku:P,StorageProfile:m,TrackedResource:u,VirtualNetworkRule:S}),Fe=function(){function e(e){this.client=e}return e.prototype.createOrUpdate=function(e,r,t,a,i){return this.beginCreateOrUpdate(e,r,t,a,i).then(function(e){return e.pollUntilFinished()})},e.prototype.get=function(e,r,t,a,i){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,configurationName:t,options:a},Ee,i)},e.prototype.listByServer=function(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:t},Ae,a)},e.prototype.beginCreateOrUpdate=function(e,r,t,a,i){return this.client.sendLRORequest({resourceGroupName:e,serverName:r,configurationName:t,parameters:a,options:i},Ie,i)},e}(),Te=new r.Serializer(ke),Ee={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/configurations/{configurationName}",urlParameters:[Y,J,X,Q],queryParameters:[K],headerParameters:[_],responses:{200:{bodyMapper:R},default:{bodyMapper:n}},serializer:Te},Ae={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/configurations",urlParameters:[Y,J,X],queryParameters:[K],headerParameters:[_],responses:{200:{bodyMapper:A},default:{bodyMapper:n}},serializer:Te},Ie={httpMethod:"PUT",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/configurations/{configurationName}",urlParameters:[Y,J,X,Q],queryParameters:[K],headerParameters:[_],requestBody:{parameterPath:"parameters",mapper:i({},R,{required:!0})},responses:{200:{bodyMapper:R},202:{},default:{bodyMapper:n}},serializer:Te},Ue=Object.freeze({discriminators:V,BaseResource:p,CloudError:n,Configuration:R,Database:z,FirewallRule:g,LogFile:q,LogFileListResult:I,ProxyResource:l,Server:v,ServerSecurityAlertPolicy:L,Sku:P,StorageProfile:m,TrackedResource:u,VirtualNetworkRule:S}),Ve=function(){function e(e){this.client=e}return e.prototype.listByServer=function(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:t},je,a)},e}(),je={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/logFiles",urlParameters:[Y,J,X],queryParameters:[K],headerParameters:[_],responses:{200:{bodyMapper:I},default:{bodyMapper:n}},serializer:new r.Serializer(Ue)},xe=Object.freeze({discriminators:V,CloudError:n,PerformanceTierListResult:U,PerformanceTierProperties:B,PerformanceTierServiceLevelObjectives:O}),_e=function(){function e(e){this.client=e}return e.prototype.list=function(e,r,t){return this.client.sendOperationRequest({locationName:e,options:r},Ke,t)},e}(),Ke={httpMethod:"GET",path:"subscriptions/{subscriptionId}/providers/Microsoft.DBforMariaDB/locations/{locationName}/performanceTiers",urlParameters:[Y,{parameterPath:"locationName",mapper:{required:!0,serializedName:"locationName",type:{name:"String"}}}],queryParameters:[K],headerParameters:[_],responses:{200:{bodyMapper:U},default:{bodyMapper:n}},serializer:new r.Serializer(xe)},Qe=Object.freeze({discriminators:V,CloudError:n,NameAvailability:G,NameAvailabilityRequest:w}),$e=function(){function e(e){this.client=e}return e.prototype.execute=function(e,r,t){return this.client.sendOperationRequest({nameAvailabilityRequest:e,options:r},Je,t)},e}(),He=new r.Serializer(Qe),Je={httpMethod:"POST",path:"subscriptions/{subscriptionId}/providers/Microsoft.DBforMariaDB/checkNameAvailability",urlParameters:[Y],queryParameters:[K],headerParameters:[_],requestBody:{parameterPath:"nameAvailabilityRequest",mapper:i({},w,{required:!0})},responses:{200:{bodyMapper:G},default:{bodyMapper:n}},serializer:He},We=Object.freeze({discriminators:V,BaseResource:p,CloudError:n,Configuration:R,Database:z,FirewallRule:g,LogFile:q,ProxyResource:l,Server:v,ServerSecurityAlertPolicy:L,Sku:P,StorageProfile:m,TrackedResource:u,VirtualNetworkRule:S}),Xe=function(){function e(e){this.client=e}return e.prototype.get=function(e,r,t,a){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:t},Ze,a)},e.prototype.createOrUpdate=function(e,r,t,a){return this.beginCreateOrUpdate(e,r,t,a).then(function(e){return e.pollUntilFinished()})},e.prototype.beginCreateOrUpdate=function(e,r,t,a){return this.client.sendLRORequest({resourceGroupName:e,serverName:r,parameters:t,options:a},er,a)},e}(),Ye=new r.Serializer(We),Ze={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}",urlParameters:[J,X,W,Y],queryParameters:[K],headerParameters:[_],responses:{200:{bodyMapper:L},default:{bodyMapper:n}},serializer:Ye},er={httpMethod:"PUT",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}",urlParameters:[J,X,W,Y],queryParameters:[K],headerParameters:[_],requestBody:{parameterPath:"parameters",mapper:i({},L,{required:!0})},responses:{200:{bodyMapper:L},202:{},default:{bodyMapper:n}},serializer:Ye},rr=Object.freeze({discriminators:V,CloudError:n,Operation:D,OperationDisplay:M,OperationListResult:C}),tr=function(){function e(e){this.client=e}return e.prototype.list=function(e,r){return this.client.sendOperationRequest({options:e},ar,r)},e}(),ar={httpMethod:"GET",path:"providers/Microsoft.DBforMariaDB/operations",queryParameters:[K],headerParameters:[_],responses:{200:{bodyMapper:C},default:{bodyMapper:n}},serializer:new r.Serializer(rr)},ir=function(s){function e(e,r,t){var a=this;if(null==e)throw new Error("'credentials' cannot be null.");if(null==r)throw new Error("'subscriptionId' cannot be null.");if(t||(t={}),!t.userAgent){var i=o.getDefaultUserAgentValue();t.userAgent="@azure/arm-mariadb/1.3.0 "+i}return(a=s.call(this,e,t)||this).apiVersion="2018-06-01",a.acceptLanguage="en-US",a.longRunningOperationRetryTimeout=30,a.baseUri=t.baseUri||a.baseUri||"https://management.azure.com",a.requestContentType="application/json; charset=utf-8",a.credentials=e,a.subscriptionId=r,null!==t.acceptLanguage&&void 0!==t.acceptLanguage&&(a.acceptLanguage=t.acceptLanguage),null!==t.longRunningOperationRetryTimeout&&void 0!==t.longRunningOperationRetryTimeout&&(a.longRunningOperationRetryTimeout=t.longRunningOperationRetryTimeout),a}return t(e,s),e}(o.AzureServiceClient),sr=function(i){function e(e,r,t){var a=i.call(this,e,r,t)||this;return a.servers=new ee(a),a.replicas=new ue(a),a.firewallRules=new ce(a),a.virtualNetworkRules=new be(a),a.databases=new qe(a),a.configurations=new Fe(a),a.logFiles=new Ve(a),a.locationBasedPerformanceTier=new _e(a),a.checkNameAvailability=new $e(a),a.serverSecurityAlertPolicies=new Xe(a),a.operations=new tr(a),a}return t(e,i),e}(ir);e.MariaDBManagementClient=sr,e.MariaDBManagementClientContext=ir,e.MariaDBManagementModels=s,e.MariaDBManagementMappers=j,e.Servers=ee,e.Replicas=ue,e.FirewallRules=ce,e.VirtualNetworkRules=be,e.Databases=qe,e.Configurations=Fe,e.LogFiles=Ve,e.LocationBasedPerformanceTier=_e,e.CheckNameAvailability=$e,e.ServerSecurityAlertPolicies=Xe,e.Operations=tr,Object.defineProperty(e,"__esModule",{value:!0})}); |
@@ -8,2 +8,3 @@ import * as msRest from "@azure/ms-rest-js"; | ||
servers: operations.Servers; | ||
replicas: operations.Replicas; | ||
firewallRules: operations.FirewallRules; | ||
@@ -10,0 +11,0 @@ virtualNetworkRules: operations.VirtualNetworkRules; |
@@ -26,2 +26,3 @@ /* | ||
_this.servers = new operations.Servers(_this); | ||
_this.replicas = new operations.Replicas(_this); | ||
_this.firewallRules = new operations.FirewallRules(_this); | ||
@@ -28,0 +29,0 @@ _this.virtualNetworkRules = new operations.VirtualNetworkRules(_this); |
@@ -13,3 +13,3 @@ /* | ||
var packageName = "@azure/arm-mariadb"; | ||
var packageVersion = "0.1.0"; | ||
var packageVersion = "1.3.0"; | ||
var MariaDBManagementClientContext = /** @class */ (function (_super) { | ||
@@ -39,3 +39,3 @@ tslib_1.__extends(MariaDBManagementClientContext, _super); | ||
_this = _super.call(this, credentials, options) || this; | ||
_this.apiVersion = '2018-06-01-preview'; | ||
_this.apiVersion = '2018-06-01'; | ||
_this.acceptLanguage = 'en-US'; | ||
@@ -42,0 +42,0 @@ _this.longRunningOperationRetryTimeout = 30; |
@@ -1,2 +0,2 @@ | ||
export { discriminators, NameAvailabilityRequest, NameAvailability, CloudError } from "../models/mappers"; | ||
export { discriminators, CloudError, NameAvailability, NameAvailabilityRequest } from "../models/mappers"; | ||
//# sourceMappingURL=checkNameAvailabilityMappers.d.ts.map |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
export { discriminators, NameAvailabilityRequest, NameAvailability, CloudError } from "../models/mappers"; | ||
export { discriminators, CloudError, NameAvailability, NameAvailabilityRequest } from "../models/mappers"; | ||
//# sourceMappingURL=checkNameAvailabilityMappers.js.map |
@@ -1,2 +0,2 @@ | ||
export { discriminators, Configuration, ProxyResource, BaseResource, CloudError, ConfigurationListResult, TrackedResource, Server, Sku, StorageProfile, FirewallRule, VirtualNetworkRule, Database, LogFile, ServerSecurityAlertPolicy } from "../models/mappers"; | ||
export { discriminators, BaseResource, CloudError, Configuration, ConfigurationListResult, Database, FirewallRule, LogFile, ProxyResource, Server, ServerSecurityAlertPolicy, Sku, StorageProfile, TrackedResource, VirtualNetworkRule } from "../models/mappers"; | ||
//# sourceMappingURL=configurationsMappers.d.ts.map |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
export { discriminators, Configuration, ProxyResource, BaseResource, CloudError, ConfigurationListResult, TrackedResource, Server, Sku, StorageProfile, FirewallRule, VirtualNetworkRule, Database, LogFile, ServerSecurityAlertPolicy } from "../models/mappers"; | ||
export { discriminators, BaseResource, CloudError, Configuration, ConfigurationListResult, Database, FirewallRule, LogFile, ProxyResource, Server, ServerSecurityAlertPolicy, Sku, StorageProfile, TrackedResource, VirtualNetworkRule } from "../models/mappers"; | ||
//# sourceMappingURL=configurationsMappers.js.map |
@@ -1,2 +0,2 @@ | ||
export { discriminators, Database, ProxyResource, BaseResource, CloudError, DatabaseListResult, TrackedResource, Server, Sku, StorageProfile, FirewallRule, VirtualNetworkRule, Configuration, LogFile, ServerSecurityAlertPolicy } from "../models/mappers"; | ||
export { discriminators, BaseResource, CloudError, Configuration, Database, DatabaseListResult, FirewallRule, LogFile, ProxyResource, Server, ServerSecurityAlertPolicy, Sku, StorageProfile, TrackedResource, VirtualNetworkRule } from "../models/mappers"; | ||
//# sourceMappingURL=databasesMappers.d.ts.map |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
export { discriminators, Database, ProxyResource, BaseResource, CloudError, DatabaseListResult, TrackedResource, Server, Sku, StorageProfile, FirewallRule, VirtualNetworkRule, Configuration, LogFile, ServerSecurityAlertPolicy } from "../models/mappers"; | ||
export { discriminators, BaseResource, CloudError, Configuration, Database, DatabaseListResult, FirewallRule, LogFile, ProxyResource, Server, ServerSecurityAlertPolicy, Sku, StorageProfile, TrackedResource, VirtualNetworkRule } from "../models/mappers"; | ||
//# sourceMappingURL=databasesMappers.js.map |
@@ -1,2 +0,2 @@ | ||
export { discriminators, FirewallRule, ProxyResource, BaseResource, CloudError, FirewallRuleListResult, TrackedResource, Server, Sku, StorageProfile, VirtualNetworkRule, Database, Configuration, LogFile, ServerSecurityAlertPolicy } from "../models/mappers"; | ||
export { discriminators, BaseResource, CloudError, Configuration, Database, FirewallRule, FirewallRuleListResult, LogFile, ProxyResource, Server, ServerSecurityAlertPolicy, Sku, StorageProfile, TrackedResource, VirtualNetworkRule } from "../models/mappers"; | ||
//# sourceMappingURL=firewallRulesMappers.d.ts.map |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
export { discriminators, FirewallRule, ProxyResource, BaseResource, CloudError, FirewallRuleListResult, TrackedResource, Server, Sku, StorageProfile, VirtualNetworkRule, Database, Configuration, LogFile, ServerSecurityAlertPolicy } from "../models/mappers"; | ||
export { discriminators, BaseResource, CloudError, Configuration, Database, FirewallRule, FirewallRuleListResult, LogFile, ProxyResource, Server, ServerSecurityAlertPolicy, Sku, StorageProfile, TrackedResource, VirtualNetworkRule } from "../models/mappers"; | ||
//# sourceMappingURL=firewallRulesMappers.js.map |
@@ -5,25 +5,18 @@ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; | ||
/** | ||
* @interface | ||
* An interface representing ProxyResource. | ||
* Resource properties. | ||
* | ||
* @extends BaseResource | ||
*/ | ||
export interface ProxyResource extends BaseResource { | ||
/** | ||
* @member {string} [id] Resource ID | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Resource ID | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly id?: string; | ||
/** | ||
* @member {string} [name] Resource name. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Resource name. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly name?: string; | ||
/** | ||
* @member {string} [type] Resource type. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Resource type. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
@@ -33,16 +26,11 @@ readonly type?: string; | ||
/** | ||
* @interface | ||
* An interface representing TrackedResource. | ||
* Resource properties including location and tags for track resources. | ||
* | ||
* @extends ProxyResource | ||
*/ | ||
export interface TrackedResource extends ProxyResource { | ||
/** | ||
* @member {string} location The location the resource resides in. | ||
* The location the resource resides in. | ||
*/ | ||
location: string; | ||
/** | ||
* @member {{ [propertyName: string]: string }} [tags] Application-specific | ||
* metadata in the form of key-value pairs. | ||
* Application-specific metadata in the form of key-value pairs. | ||
*/ | ||
@@ -54,20 +42,15 @@ tags?: { | ||
/** | ||
* @interface | ||
* An interface representing StorageProfile. | ||
* Storage Profile properties of a server | ||
* | ||
*/ | ||
export interface StorageProfile { | ||
/** | ||
* @member {number} [backupRetentionDays] Backup retention days for the | ||
* server. | ||
* Backup retention days for the server. | ||
*/ | ||
backupRetentionDays?: number; | ||
/** | ||
* @member {GeoRedundantBackup} [geoRedundantBackup] Enable Geo-redundant or | ||
* not for server backup. Possible values include: 'Enabled', 'Disabled' | ||
* Enable Geo-redundant or not for server backup. Possible values include: 'Enabled', 'Disabled' | ||
*/ | ||
geoRedundantBackup?: GeoRedundantBackup; | ||
/** | ||
* @member {number} [storageMB] Max storage allowed for a server. | ||
* Max storage allowed for a server. | ||
*/ | ||
@@ -79,26 +62,22 @@ storageMB?: number; | ||
*/ | ||
export declare type ServerPropertiesForCreateUnion = ServerPropertiesForCreate | ServerPropertiesForDefaultCreate | ServerPropertiesForRestore | ServerPropertiesForGeoRestore; | ||
export declare type ServerPropertiesForCreateUnion = ServerPropertiesForCreate | ServerPropertiesForDefaultCreate | ServerPropertiesForRestore | ServerPropertiesForGeoRestore | ServerPropertiesForReplica; | ||
/** | ||
* @interface | ||
* An interface representing ServerPropertiesForCreate. | ||
* The properties used to create a new server. | ||
* | ||
*/ | ||
export interface ServerPropertiesForCreate { | ||
/** | ||
* @member {string} createMode Polymorphic Discriminator | ||
* Polymorphic Discriminator | ||
*/ | ||
createMode: "ServerPropertiesForCreate"; | ||
/** | ||
* @member {ServerVersion} [version] Server version. Possible values include: | ||
* '5.6', '5.7' | ||
* Server version. Possible values include: '5.6', '5.7' | ||
*/ | ||
version?: ServerVersion; | ||
/** | ||
* @member {SslEnforcementEnum} [sslEnforcement] Enable ssl enforcement or | ||
* not when connect to server. Possible values include: 'Enabled', 'Disabled' | ||
* Enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', | ||
* 'Disabled' | ||
*/ | ||
sslEnforcement?: SslEnforcementEnum; | ||
/** | ||
* @member {StorageProfile} [storageProfile] Storage profile of a server. | ||
* Storage profile of a server. | ||
*/ | ||
@@ -108,35 +87,29 @@ storageProfile?: StorageProfile; | ||
/** | ||
* @interface | ||
* An interface representing ServerPropertiesForDefaultCreate. | ||
* The properties used to create a new server. | ||
* | ||
*/ | ||
export interface ServerPropertiesForDefaultCreate { | ||
/** | ||
* @member {string} createMode Polymorphic Discriminator | ||
* Polymorphic Discriminator | ||
*/ | ||
createMode: "Default"; | ||
/** | ||
* @member {ServerVersion} [version] Server version. Possible values include: | ||
* '5.6', '5.7' | ||
* Server version. Possible values include: '5.6', '5.7' | ||
*/ | ||
version?: ServerVersion; | ||
/** | ||
* @member {SslEnforcementEnum} [sslEnforcement] Enable ssl enforcement or | ||
* not when connect to server. Possible values include: 'Enabled', 'Disabled' | ||
* Enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', | ||
* 'Disabled' | ||
*/ | ||
sslEnforcement?: SslEnforcementEnum; | ||
/** | ||
* @member {StorageProfile} [storageProfile] Storage profile of a server. | ||
* Storage profile of a server. | ||
*/ | ||
storageProfile?: StorageProfile; | ||
/** | ||
* @member {string} administratorLogin The administrator's login name of a | ||
* server. Can only be specified when the server is being created (and is | ||
* required for creation). | ||
* The administrator's login name of a server. Can only be specified when the server is being | ||
* created (and is required for creation). | ||
*/ | ||
administratorLogin: string; | ||
/** | ||
* @member {string} administratorLoginPassword The password of the | ||
* administrator login. | ||
* The password of the administrator login. | ||
*/ | ||
@@ -146,33 +119,28 @@ administratorLoginPassword: string; | ||
/** | ||
* @interface | ||
* An interface representing ServerPropertiesForRestore. | ||
* The properties used to create a new server by restoring from a backup. | ||
* | ||
*/ | ||
export interface ServerPropertiesForRestore { | ||
/** | ||
* @member {string} createMode Polymorphic Discriminator | ||
* Polymorphic Discriminator | ||
*/ | ||
createMode: "PointInTimeRestore"; | ||
/** | ||
* @member {ServerVersion} [version] Server version. Possible values include: | ||
* '5.6', '5.7' | ||
* Server version. Possible values include: '5.6', '5.7' | ||
*/ | ||
version?: ServerVersion; | ||
/** | ||
* @member {SslEnforcementEnum} [sslEnforcement] Enable ssl enforcement or | ||
* not when connect to server. Possible values include: 'Enabled', 'Disabled' | ||
* Enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', | ||
* 'Disabled' | ||
*/ | ||
sslEnforcement?: SslEnforcementEnum; | ||
/** | ||
* @member {StorageProfile} [storageProfile] Storage profile of a server. | ||
* Storage profile of a server. | ||
*/ | ||
storageProfile?: StorageProfile; | ||
/** | ||
* @member {string} sourceServerId The source server id to restore from. | ||
* The source server id to restore from. | ||
*/ | ||
sourceServerId: string; | ||
/** | ||
* @member {Date} restorePointInTime Restore point creation time (ISO8601 | ||
* format), specifying the time to restore from. | ||
* Restore point creation time (ISO8601 format), specifying the time to restore from. | ||
*/ | ||
@@ -182,29 +150,25 @@ restorePointInTime: Date; | ||
/** | ||
* @interface | ||
* An interface representing ServerPropertiesForGeoRestore. | ||
* The properties used to create a new server by restoring to a different | ||
* region from a geo replicated backup. | ||
* | ||
* The properties used to create a new server by restoring to a different region from a geo | ||
* replicated backup. | ||
*/ | ||
export interface ServerPropertiesForGeoRestore { | ||
/** | ||
* @member {string} createMode Polymorphic Discriminator | ||
* Polymorphic Discriminator | ||
*/ | ||
createMode: "GeoRestore"; | ||
/** | ||
* @member {ServerVersion} [version] Server version. Possible values include: | ||
* '5.6', '5.7' | ||
* Server version. Possible values include: '5.6', '5.7' | ||
*/ | ||
version?: ServerVersion; | ||
/** | ||
* @member {SslEnforcementEnum} [sslEnforcement] Enable ssl enforcement or | ||
* not when connect to server. Possible values include: 'Enabled', 'Disabled' | ||
* Enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', | ||
* 'Disabled' | ||
*/ | ||
sslEnforcement?: SslEnforcementEnum; | ||
/** | ||
* @member {StorageProfile} [storageProfile] Storage profile of a server. | ||
* Storage profile of a server. | ||
*/ | ||
storageProfile?: StorageProfile; | ||
/** | ||
* @member {string} sourceServerId The source server id to restore from. | ||
* The source server id to restore from. | ||
*/ | ||
@@ -214,30 +178,50 @@ sourceServerId: string; | ||
/** | ||
* @interface | ||
* An interface representing Sku. | ||
* The properties to create a new replica. | ||
*/ | ||
export interface ServerPropertiesForReplica { | ||
/** | ||
* Polymorphic Discriminator | ||
*/ | ||
createMode: "Replica"; | ||
/** | ||
* Server version. Possible values include: '5.6', '5.7' | ||
*/ | ||
version?: ServerVersion; | ||
/** | ||
* Enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', | ||
* 'Disabled' | ||
*/ | ||
sslEnforcement?: SslEnforcementEnum; | ||
/** | ||
* Storage profile of a server. | ||
*/ | ||
storageProfile?: StorageProfile; | ||
/** | ||
* The master server id to create replica from. | ||
*/ | ||
sourceServerId: string; | ||
} | ||
/** | ||
* Billing information related properties of a server. | ||
* | ||
*/ | ||
export interface Sku { | ||
/** | ||
* @member {string} [name] The name of the sku, typically, tier + family + | ||
* cores, e.g. B_Gen4_1, GP_Gen5_8. | ||
* The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. | ||
*/ | ||
name?: string; | ||
/** | ||
* @member {SkuTier} [tier] The tier of the particular SKU, e.g. Basic. | ||
* Possible values include: 'Basic', 'GeneralPurpose', 'MemoryOptimized' | ||
* The tier of the particular SKU, e.g. Basic. Possible values include: 'Basic', | ||
* 'GeneralPurpose', 'MemoryOptimized' | ||
*/ | ||
tier?: SkuTier; | ||
/** | ||
* @member {number} [capacity] The scale up/out capacity, representing | ||
* server's compute units. | ||
* The scale up/out capacity, representing server's compute units. | ||
*/ | ||
capacity?: number; | ||
/** | ||
* @member {string} [size] The size code, to be interpreted by resource as | ||
* appropriate. | ||
* The size code, to be interpreted by resource as appropriate. | ||
*/ | ||
size?: string; | ||
/** | ||
* @member {string} [family] The family of hardware. | ||
* The family of hardware. | ||
*/ | ||
@@ -247,72 +231,71 @@ family?: string; | ||
/** | ||
* @interface | ||
* An interface representing Server. | ||
* Represents a server. | ||
* | ||
* @extends TrackedResource | ||
*/ | ||
export interface Server extends TrackedResource { | ||
/** | ||
* @member {Sku} [sku] The SKU (pricing tier) of the server. | ||
* The SKU (pricing tier) of the server. | ||
*/ | ||
sku?: Sku; | ||
/** | ||
* @member {string} [administratorLogin] The administrator's login name of a | ||
* server. Can only be specified when the server is being created (and is | ||
* required for creation). | ||
* The administrator's login name of a server. Can only be specified when the server is being | ||
* created (and is required for creation). | ||
*/ | ||
administratorLogin?: string; | ||
/** | ||
* @member {ServerVersion} [version] Server version. Possible values include: | ||
* '5.6', '5.7' | ||
* Server version. Possible values include: '5.6', '5.7' | ||
*/ | ||
version?: ServerVersion; | ||
/** | ||
* @member {SslEnforcementEnum} [sslEnforcement] Enable ssl enforcement or | ||
* not when connect to server. Possible values include: 'Enabled', 'Disabled' | ||
* Enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', | ||
* 'Disabled' | ||
*/ | ||
sslEnforcement?: SslEnforcementEnum; | ||
/** | ||
* @member {ServerState} [userVisibleState] A state of a server that is | ||
* visible to user. Possible values include: 'Ready', 'Dropping', 'Disabled' | ||
* A state of a server that is visible to user. Possible values include: 'Ready', 'Dropping', | ||
* 'Disabled' | ||
*/ | ||
userVisibleState?: ServerState; | ||
/** | ||
* @member {string} [fullyQualifiedDomainName] The fully qualified domain | ||
* name of a server. | ||
* The fully qualified domain name of a server. | ||
*/ | ||
fullyQualifiedDomainName?: string; | ||
/** | ||
* @member {Date} [earliestRestoreDate] Earliest restore point creation time | ||
* (ISO8601 format) | ||
* Earliest restore point creation time (ISO8601 format) | ||
*/ | ||
earliestRestoreDate?: Date; | ||
/** | ||
* @member {StorageProfile} [storageProfile] Storage profile of a server. | ||
* Storage profile of a server. | ||
*/ | ||
storageProfile?: StorageProfile; | ||
/** | ||
* The replication role of the server. | ||
*/ | ||
replicationRole?: string; | ||
/** | ||
* The master server id of a replica server. | ||
*/ | ||
masterServerId?: string; | ||
/** | ||
* The maximum number of replicas that a master server can have. | ||
*/ | ||
replicaCapacity?: number; | ||
} | ||
/** | ||
* @interface | ||
* An interface representing ServerForCreate. | ||
* Represents a server to be created. | ||
* | ||
*/ | ||
export interface ServerForCreate { | ||
/** | ||
* @member {Sku} [sku] The SKU (pricing tier) of the server. | ||
* The SKU (pricing tier) of the server. | ||
*/ | ||
sku?: Sku; | ||
/** | ||
* @member {ServerPropertiesForCreateUnion} properties Properties of the | ||
* server. | ||
* Properties of the server. | ||
*/ | ||
properties: ServerPropertiesForCreateUnion; | ||
/** | ||
* @member {string} location The location the resource resides in. | ||
* The location the resource resides in. | ||
*/ | ||
location: string; | ||
/** | ||
* @member {{ [propertyName: string]: string }} [tags] Application-specific | ||
* metadata in the form of key-value pairs. | ||
* Application-specific metadata in the form of key-value pairs. | ||
*/ | ||
@@ -324,35 +307,33 @@ tags?: { | ||
/** | ||
* @interface | ||
* An interface representing ServerUpdateParameters. | ||
* Parameters allowd to update for a server. | ||
* | ||
* Parameters allowed to update for a server. | ||
*/ | ||
export interface ServerUpdateParameters { | ||
/** | ||
* @member {Sku} [sku] The SKU (pricing tier) of the server. | ||
* The SKU (pricing tier) of the server. | ||
*/ | ||
sku?: Sku; | ||
/** | ||
* @member {StorageProfile} [storageProfile] Storage profile of a server. | ||
* Storage profile of a server. | ||
*/ | ||
storageProfile?: StorageProfile; | ||
/** | ||
* @member {string} [administratorLoginPassword] The password of the | ||
* administrator login. | ||
* The password of the administrator login. | ||
*/ | ||
administratorLoginPassword?: string; | ||
/** | ||
* @member {ServerVersion} [version] The version of a server. Possible values | ||
* include: '5.6', '5.7' | ||
* The version of a server. Possible values include: '5.6', '5.7' | ||
*/ | ||
version?: ServerVersion; | ||
/** | ||
* @member {SslEnforcementEnum} [sslEnforcement] Enable ssl enforcement or | ||
* not when connect to server. Possible values include: 'Enabled', 'Disabled' | ||
* Enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', | ||
* 'Disabled' | ||
*/ | ||
sslEnforcement?: SslEnforcementEnum; | ||
/** | ||
* @member {{ [propertyName: string]: string }} [tags] Application-specific | ||
* metadata in the form of key-value pairs. | ||
* The replication role of the server. | ||
*/ | ||
replicationRole?: string; | ||
/** | ||
* Application-specific metadata in the form of key-value pairs. | ||
*/ | ||
tags?: { | ||
@@ -363,17 +344,11 @@ [propertyName: string]: string; | ||
/** | ||
* @interface | ||
* An interface representing FirewallRule. | ||
* Represents a server firewall rule. | ||
* | ||
* @extends ProxyResource | ||
*/ | ||
export interface FirewallRule extends ProxyResource { | ||
/** | ||
* @member {string} startIpAddress The start IP address of the server | ||
* firewall rule. Must be IPv4 format. | ||
* The start IP address of the server firewall rule. Must be IPv4 format. | ||
*/ | ||
startIpAddress: string; | ||
/** | ||
* @member {string} endIpAddress The end IP address of the server firewall | ||
* rule. Must be IPv4 format. | ||
* The end IP address of the server firewall rule. Must be IPv4 format. | ||
*/ | ||
@@ -383,25 +358,17 @@ endIpAddress: string; | ||
/** | ||
* @interface | ||
* An interface representing VirtualNetworkRule. | ||
* A virtual network rule. | ||
* | ||
* @extends ProxyResource | ||
*/ | ||
export interface VirtualNetworkRule extends ProxyResource { | ||
/** | ||
* @member {string} virtualNetworkSubnetId The ARM resource id of the virtual | ||
* network subnet. | ||
* The ARM resource id of the virtual network subnet. | ||
*/ | ||
virtualNetworkSubnetId: string; | ||
/** | ||
* @member {boolean} [ignoreMissingVnetServiceEndpoint] Create firewall rule | ||
* before the virtual network has vnet service endpoint enabled. | ||
* Create firewall rule before the virtual network has vnet service endpoint enabled. | ||
*/ | ||
ignoreMissingVnetServiceEndpoint?: boolean; | ||
/** | ||
* @member {VirtualNetworkRuleState} [state] Virtual Network Rule State. | ||
* Possible values include: 'Initializing', 'InProgress', 'Ready', | ||
* Virtual Network Rule State. Possible values include: 'Initializing', 'InProgress', 'Ready', | ||
* 'Deleting', 'Unknown' | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
@@ -411,15 +378,11 @@ readonly state?: VirtualNetworkRuleState; | ||
/** | ||
* @interface | ||
* An interface representing Database. | ||
* Represents a Database. | ||
* | ||
* @extends ProxyResource | ||
*/ | ||
export interface Database extends ProxyResource { | ||
/** | ||
* @member {string} [charset] The charset of the database. | ||
* The charset of the database. | ||
*/ | ||
charset?: string; | ||
/** | ||
* @member {string} [collation] The collation of the database. | ||
* The collation of the database. | ||
*/ | ||
@@ -429,39 +392,31 @@ collation?: string; | ||
/** | ||
* @interface | ||
* An interface representing Configuration. | ||
* Represents a Configuration. | ||
* | ||
* @extends ProxyResource | ||
*/ | ||
export interface Configuration extends ProxyResource { | ||
/** | ||
* @member {string} [value] Value of the configuration. | ||
* Value of the configuration. | ||
*/ | ||
value?: string; | ||
/** | ||
* @member {string} [description] Description of the configuration. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Description of the configuration. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly description?: string; | ||
/** | ||
* @member {string} [defaultValue] Default value of the configuration. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Default value of the configuration. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly defaultValue?: string; | ||
/** | ||
* @member {string} [dataType] Data type of the configuration. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Data type of the configuration. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly dataType?: string; | ||
/** | ||
* @member {string} [allowedValues] Allowed values of the configuration. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Allowed values of the configuration. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly allowedValues?: string; | ||
/** | ||
* @member {string} [source] Source of the configuration. | ||
* Source of the configuration. | ||
*/ | ||
@@ -471,30 +426,23 @@ source?: string; | ||
/** | ||
* @interface | ||
* An interface representing OperationDisplay. | ||
* Display metadata associated with the operation. | ||
* | ||
*/ | ||
export interface OperationDisplay { | ||
/** | ||
* @member {string} [provider] Operation resource provider name. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Operation resource provider name. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly provider?: string; | ||
/** | ||
* @member {string} [resource] Resource on which the operation is performed. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Resource on which the operation is performed. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly resource?: string; | ||
/** | ||
* @member {string} [operation] Localized friendly name for the operation. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Localized friendly name for the operation. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly operation?: string; | ||
/** | ||
* @member {string} [description] Operation description. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Operation description. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
@@ -504,34 +452,24 @@ readonly description?: string; | ||
/** | ||
* @interface | ||
* An interface representing Operation. | ||
* REST API operation definition. | ||
* | ||
*/ | ||
export interface Operation { | ||
/** | ||
* @member {string} [name] The name of the operation being performed on this | ||
* particular object. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* The name of the operation being performed on this particular object. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly name?: string; | ||
/** | ||
* @member {OperationDisplay} [display] The localized display information for | ||
* this particular operation or action. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* The localized display information for this particular operation or action. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly display?: OperationDisplay; | ||
/** | ||
* @member {OperationOrigin} [origin] The intended executor of the operation. | ||
* Possible values include: 'NotSpecified', 'user', 'system' | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* The intended executor of the operation. Possible values include: 'NotSpecified', 'user', | ||
* 'system' | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly origin?: OperationOrigin; | ||
/** | ||
* @member {{ [propertyName: string]: any }} [properties] Additional | ||
* descriptions for the operation. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Additional descriptions for the operation. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
@@ -543,10 +481,7 @@ readonly properties?: { | ||
/** | ||
* @interface | ||
* An interface representing OperationListResult. | ||
* A list of resource provider operations. | ||
* | ||
*/ | ||
export interface OperationListResult { | ||
/** | ||
* @member {Operation[]} [value] The list of resource provider operations. | ||
* The list of resource provider operations. | ||
*/ | ||
@@ -556,33 +491,26 @@ value?: Operation[]; | ||
/** | ||
* @interface | ||
* An interface representing LogFile. | ||
* Represents a log file. | ||
* | ||
* @extends ProxyResource | ||
*/ | ||
export interface LogFile extends ProxyResource { | ||
/** | ||
* @member {number} [sizeInKB] Size of the log file. | ||
* Size of the log file. | ||
*/ | ||
sizeInKB?: number; | ||
/** | ||
* @member {Date} [createdTime] Creation timestamp of the log file. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Creation timestamp of the log file. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly createdTime?: Date; | ||
/** | ||
* @member {Date} [lastModifiedTime] Last modified timestamp of the log file. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Last modified timestamp of the log file. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly lastModifiedTime?: Date; | ||
/** | ||
* @member {string} [logFileType] Type of the log file. | ||
* Type of the log file. | ||
*/ | ||
logFileType?: string; | ||
/** | ||
* @member {string} [url] The url to download the log file from. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* The url to download the log file from. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
@@ -592,41 +520,35 @@ readonly url?: string; | ||
/** | ||
* @interface | ||
* An interface representing PerformanceTierServiceLevelObjectives. | ||
* Service level objectives for performance tier. | ||
* | ||
*/ | ||
export interface PerformanceTierServiceLevelObjectives { | ||
/** | ||
* @member {string} [id] ID for the service level objective. | ||
* ID for the service level objective. | ||
*/ | ||
id?: string; | ||
/** | ||
* @member {string} [edition] Edition of the performance tier. | ||
* Edition of the performance tier. | ||
*/ | ||
edition?: string; | ||
/** | ||
* @member {number} [vCore] vCore associated with the service level objective | ||
* vCore associated with the service level objective | ||
*/ | ||
vCore?: number; | ||
/** | ||
* @member {string} [hardwareGeneration] Hardware generation associated with | ||
* the service level objective | ||
* Hardware generation associated with the service level objective | ||
*/ | ||
hardwareGeneration?: string; | ||
/** | ||
* @member {number} [maxBackupRetentionDays] Maximum Backup retention in days | ||
* for the performance tier edition | ||
* Maximum Backup retention in days for the performance tier edition | ||
*/ | ||
maxBackupRetentionDays?: number; | ||
/** | ||
* @member {number} [minBackupRetentionDays] Minimum Backup retention in days | ||
* for the performance tier edition | ||
* Minimum Backup retention in days for the performance tier edition | ||
*/ | ||
minBackupRetentionDays?: number; | ||
/** | ||
* @member {number} [maxStorageMB] Max storage allowed for a server. | ||
* Max storage allowed for a server. | ||
*/ | ||
maxStorageMB?: number; | ||
/** | ||
* @member {number} [minStorageMB] Max storage allowed for a server. | ||
* Max storage allowed for a server. | ||
*/ | ||
@@ -636,14 +558,10 @@ minStorageMB?: number; | ||
/** | ||
* @interface | ||
* An interface representing PerformanceTierProperties. | ||
* Performance tier properties | ||
* | ||
*/ | ||
export interface PerformanceTierProperties { | ||
/** | ||
* @member {string} [id] ID of the performance tier. | ||
* ID of the performance tier. | ||
*/ | ||
id?: string; | ||
/** | ||
* @member {PerformanceTierServiceLevelObjectives[]} [serviceLevelObjectives] | ||
* Service level objectives associated with the performance tier | ||
@@ -654,14 +572,11 @@ */ | ||
/** | ||
* @interface | ||
* An interface representing NameAvailabilityRequest. | ||
* Request from client to check resource name availability. | ||
* | ||
*/ | ||
export interface NameAvailabilityRequest { | ||
/** | ||
* @member {string} name Resource name to verify. | ||
* Resource name to verify. | ||
*/ | ||
name: string; | ||
/** | ||
* @member {string} [type] Resource type used for verification. | ||
* Resource type used for verification. | ||
*/ | ||
@@ -671,19 +586,15 @@ type?: string; | ||
/** | ||
* @interface | ||
* An interface representing NameAvailability. | ||
* Represents a resource name availability. | ||
* | ||
*/ | ||
export interface NameAvailability { | ||
/** | ||
* @member {string} [message] Error Message. | ||
* Error Message. | ||
*/ | ||
message?: string; | ||
/** | ||
* @member {boolean} [nameAvailable] Indicates whether the resource name is | ||
* available. | ||
* Indicates whether the resource name is available. | ||
*/ | ||
nameAvailable?: boolean; | ||
/** | ||
* @member {string} [reason] Reason for name being unavailable. | ||
* Reason for name being unavailable. | ||
*/ | ||
@@ -693,12 +604,7 @@ reason?: string; | ||
/** | ||
* @interface | ||
* An interface representing ServerSecurityAlertPolicy. | ||
* A server security alert policy. | ||
* | ||
* @extends ProxyResource | ||
*/ | ||
export interface ServerSecurityAlertPolicy extends ProxyResource { | ||
/** | ||
* @member {ServerSecurityAlertPolicyState} state Specifies the state of the | ||
* policy, whether it is enabled or disabled. Possible values include: | ||
* Specifies the state of the policy, whether it is enabled or disabled. Possible values include: | ||
* 'Enabled', 'Disabled' | ||
@@ -708,31 +614,25 @@ */ | ||
/** | ||
* @member {string[]} [disabledAlerts] Specifies an array of alerts that are | ||
* disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, | ||
* Access_Anomaly | ||
* Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, | ||
* Sql_Injection_Vulnerability, Access_Anomaly | ||
*/ | ||
disabledAlerts?: string[]; | ||
/** | ||
* @member {string[]} [emailAddresses] Specifies an array of e-mail addresses | ||
* to which the alert is sent. | ||
* Specifies an array of e-mail addresses to which the alert is sent. | ||
*/ | ||
emailAddresses?: string[]; | ||
/** | ||
* @member {boolean} [emailAccountAdmins] Specifies that the alert is sent to | ||
* the account administrators. | ||
* Specifies that the alert is sent to the account administrators. | ||
*/ | ||
emailAccountAdmins?: boolean; | ||
/** | ||
* @member {string} [storageEndpoint] Specifies the blob storage endpoint | ||
* (e.g. https://MyAccount.blob.core.windows.net). This blob storage will | ||
* hold all Threat Detection audit logs. | ||
* Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob | ||
* storage will hold all Threat Detection audit logs. | ||
*/ | ||
storageEndpoint?: string; | ||
/** | ||
* @member {string} [storageAccountAccessKey] Specifies the identifier key of | ||
* the Threat Detection audit storage account. | ||
* Specifies the identifier key of the Threat Detection audit storage account. | ||
*/ | ||
storageAccountAccessKey?: string; | ||
/** | ||
* @member {number} [retentionDays] Specifies the number of days to keep in | ||
* the Threat Detection audit logs. | ||
* Specifies the number of days to keep in the Threat Detection audit logs. | ||
*/ | ||
@@ -742,10 +642,5 @@ retentionDays?: number; | ||
/** | ||
* @interface | ||
* An interface representing MariaDBManagementClientOptions. | ||
* @extends AzureServiceClientOptions | ||
*/ | ||
export interface MariaDBManagementClientOptions extends AzureServiceClientOptions { | ||
/** | ||
* @member {string} [baseUri] | ||
*/ | ||
baseUri?: string; | ||
@@ -755,5 +650,3 @@ } | ||
* @interface | ||
* An interface representing the ServerListResult. | ||
* A list of servers. | ||
* | ||
* @extends Array<Server> | ||
@@ -765,5 +658,3 @@ */ | ||
* @interface | ||
* An interface representing the FirewallRuleListResult. | ||
* A list of firewall rules. | ||
* | ||
* @extends Array<FirewallRule> | ||
@@ -775,5 +666,3 @@ */ | ||
* @interface | ||
* An interface representing the VirtualNetworkRuleListResult. | ||
* A list of virtual network rules. | ||
* | ||
* @extends Array<VirtualNetworkRule> | ||
@@ -783,5 +672,4 @@ */ | ||
/** | ||
* @member {string} [nextLink] Link to retrieve next page of results. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Link to retrieve next page of results. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
@@ -792,5 +680,3 @@ readonly nextLink?: string; | ||
* @interface | ||
* An interface representing the DatabaseListResult. | ||
* A List of databases. | ||
* | ||
* @extends Array<Database> | ||
@@ -802,5 +688,3 @@ */ | ||
* @interface | ||
* An interface representing the ConfigurationListResult. | ||
* A list of server configurations. | ||
* | ||
* @extends Array<Configuration> | ||
@@ -812,5 +696,3 @@ */ | ||
* @interface | ||
* An interface representing the LogFileListResult. | ||
* A list of log files. | ||
* | ||
* @extends Array<LogFile> | ||
@@ -822,5 +704,3 @@ */ | ||
* @interface | ||
* An interface representing the PerformanceTierListResult. | ||
* A list of performance tiers. | ||
* | ||
* @extends Array<PerformanceTierProperties> | ||
@@ -1013,2 +893,20 @@ */ | ||
/** | ||
* Contains response data for the listByServer operation. | ||
*/ | ||
export declare type ReplicasListByServerResponse = ServerListResult & { | ||
/** | ||
* The underlying HTTP response. | ||
*/ | ||
_response: msRest.HttpResponse & { | ||
/** | ||
* The response body as text (string format) | ||
*/ | ||
bodyAsText: string; | ||
/** | ||
* The response body as parsed JSON or XML | ||
*/ | ||
parsedBody: ServerListResult; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the createOrUpdate operation. | ||
@@ -1015,0 +913,0 @@ */ |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
export { discriminators, PerformanceTierListResult, PerformanceTierProperties, PerformanceTierServiceLevelObjectives, CloudError } from "../models/mappers"; | ||
export { discriminators, CloudError, PerformanceTierListResult, PerformanceTierProperties, PerformanceTierServiceLevelObjectives } from "../models/mappers"; | ||
//# sourceMappingURL=locationBasedPerformanceTierMappers.d.ts.map |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
export { discriminators, PerformanceTierListResult, PerformanceTierProperties, PerformanceTierServiceLevelObjectives, CloudError } from "../models/mappers"; | ||
export { discriminators, CloudError, PerformanceTierListResult, PerformanceTierProperties, PerformanceTierServiceLevelObjectives } from "../models/mappers"; | ||
//# sourceMappingURL=locationBasedPerformanceTierMappers.js.map |
@@ -1,2 +0,2 @@ | ||
export { discriminators, LogFileListResult, LogFile, ProxyResource, BaseResource, CloudError, TrackedResource, Server, Sku, StorageProfile, FirewallRule, VirtualNetworkRule, Database, Configuration, ServerSecurityAlertPolicy } from "../models/mappers"; | ||
export { discriminators, BaseResource, CloudError, Configuration, Database, FirewallRule, LogFile, LogFileListResult, ProxyResource, Server, ServerSecurityAlertPolicy, Sku, StorageProfile, TrackedResource, VirtualNetworkRule } from "../models/mappers"; | ||
//# sourceMappingURL=logFilesMappers.d.ts.map |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
export { discriminators, LogFileListResult, LogFile, ProxyResource, BaseResource, CloudError, TrackedResource, Server, Sku, StorageProfile, FirewallRule, VirtualNetworkRule, Database, Configuration, ServerSecurityAlertPolicy } from "../models/mappers"; | ||
export { discriminators, BaseResource, CloudError, Configuration, Database, FirewallRule, LogFile, LogFileListResult, ProxyResource, Server, ServerSecurityAlertPolicy, Sku, StorageProfile, TrackedResource, VirtualNetworkRule } from "../models/mappers"; | ||
//# sourceMappingURL=logFilesMappers.js.map |
@@ -11,2 +11,3 @@ import * as msRest from "@azure/ms-rest-js"; | ||
export declare const ServerPropertiesForGeoRestore: msRest.CompositeMapper; | ||
export declare const ServerPropertiesForReplica: msRest.CompositeMapper; | ||
export declare const Sku: msRest.CompositeMapper; | ||
@@ -41,3 +42,4 @@ export declare const Server: msRest.CompositeMapper; | ||
'ServerPropertiesForCreate.GeoRestore': msRest.CompositeMapper; | ||
'ServerPropertiesForCreate.Replica': msRest.CompositeMapper; | ||
}; | ||
//# sourceMappingURL=mappers.d.ts.map |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
@@ -199,2 +197,18 @@ import * as tslib_1 from "tslib"; | ||
}; | ||
export var ServerPropertiesForReplica = { | ||
serializedName: "Replica", | ||
type: { | ||
name: "Composite", | ||
polymorphicDiscriminator: ServerPropertiesForCreate.type.polymorphicDiscriminator, | ||
uberParent: "ServerPropertiesForCreate", | ||
className: "ServerPropertiesForReplica", | ||
modelProperties: tslib_1.__assign({}, ServerPropertiesForCreate.type.modelProperties, { sourceServerId: { | ||
required: true, | ||
serializedName: "sourceServerId", | ||
type: { | ||
name: "String" | ||
} | ||
} }) | ||
} | ||
}; | ||
export var Sku = { | ||
@@ -293,2 +307,20 @@ serializedName: "Sku", | ||
} | ||
}, replicationRole: { | ||
serializedName: "properties.replicationRole", | ||
type: { | ||
name: "String" | ||
} | ||
}, masterServerId: { | ||
serializedName: "properties.masterServerId", | ||
type: { | ||
name: "String" | ||
} | ||
}, replicaCapacity: { | ||
serializedName: "properties.replicaCapacity", | ||
constraints: { | ||
InclusiveMinimum: 0 | ||
}, | ||
type: { | ||
name: "Number" | ||
} | ||
} }) | ||
@@ -381,2 +413,8 @@ } | ||
}, | ||
replicationRole: { | ||
serializedName: "properties.replicationRole", | ||
type: { | ||
name: "String" | ||
} | ||
}, | ||
tags: { | ||
@@ -994,4 +1032,5 @@ serializedName: "tags", | ||
'ServerPropertiesForCreate.PointInTimeRestore': ServerPropertiesForRestore, | ||
'ServerPropertiesForCreate.GeoRestore': ServerPropertiesForGeoRestore | ||
'ServerPropertiesForCreate.GeoRestore': ServerPropertiesForGeoRestore, | ||
'ServerPropertiesForCreate.Replica': ServerPropertiesForReplica | ||
}; | ||
//# sourceMappingURL=mappers.js.map |
@@ -1,2 +0,2 @@ | ||
export { discriminators, OperationListResult, Operation, OperationDisplay, CloudError } from "../models/mappers"; | ||
export { discriminators, CloudError, Operation, OperationDisplay, OperationListResult } from "../models/mappers"; | ||
//# sourceMappingURL=operationsMappers.d.ts.map |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
export { discriminators, OperationListResult, Operation, OperationDisplay, CloudError } from "../models/mappers"; | ||
export { discriminators, CloudError, Operation, OperationDisplay, OperationListResult } from "../models/mappers"; | ||
//# sourceMappingURL=operationsMappers.js.map |
@@ -1,2 +0,2 @@ | ||
export { discriminators, ServerSecurityAlertPolicy, ProxyResource, BaseResource, CloudError, TrackedResource, Server, Sku, StorageProfile, FirewallRule, VirtualNetworkRule, Database, Configuration, LogFile } from "../models/mappers"; | ||
export { discriminators, BaseResource, CloudError, Configuration, Database, FirewallRule, LogFile, ProxyResource, Server, ServerSecurityAlertPolicy, Sku, StorageProfile, TrackedResource, VirtualNetworkRule } from "../models/mappers"; | ||
//# sourceMappingURL=serverSecurityAlertPoliciesMappers.d.ts.map |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
export { discriminators, ServerSecurityAlertPolicy, ProxyResource, BaseResource, CloudError, TrackedResource, Server, Sku, StorageProfile, FirewallRule, VirtualNetworkRule, Database, Configuration, LogFile } from "../models/mappers"; | ||
export { discriminators, BaseResource, CloudError, Configuration, Database, FirewallRule, LogFile, ProxyResource, Server, ServerSecurityAlertPolicy, Sku, StorageProfile, TrackedResource, VirtualNetworkRule } from "../models/mappers"; | ||
//# sourceMappingURL=serverSecurityAlertPoliciesMappers.js.map |
@@ -1,2 +0,2 @@ | ||
export { discriminators, ServerForCreate, Sku, ServerPropertiesForCreate, StorageProfile, Server, TrackedResource, ProxyResource, BaseResource, CloudError, ServerUpdateParameters, ServerListResult, ServerPropertiesForDefaultCreate, ServerPropertiesForRestore, ServerPropertiesForGeoRestore, FirewallRule, VirtualNetworkRule, Database, Configuration, LogFile, ServerSecurityAlertPolicy } from "../models/mappers"; | ||
export { discriminators, BaseResource, CloudError, Configuration, Database, FirewallRule, LogFile, ProxyResource, Server, ServerForCreate, ServerListResult, ServerPropertiesForCreate, ServerPropertiesForDefaultCreate, ServerPropertiesForGeoRestore, ServerPropertiesForReplica, ServerPropertiesForRestore, ServerSecurityAlertPolicy, ServerUpdateParameters, Sku, StorageProfile, TrackedResource, VirtualNetworkRule } from "../models/mappers"; | ||
//# sourceMappingURL=serversMappers.d.ts.map |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
export { discriminators, ServerForCreate, Sku, ServerPropertiesForCreate, StorageProfile, Server, TrackedResource, ProxyResource, BaseResource, CloudError, ServerUpdateParameters, ServerListResult, ServerPropertiesForDefaultCreate, ServerPropertiesForRestore, ServerPropertiesForGeoRestore, FirewallRule, VirtualNetworkRule, Database, Configuration, LogFile, ServerSecurityAlertPolicy } from "../models/mappers"; | ||
export { discriminators, BaseResource, CloudError, Configuration, Database, FirewallRule, LogFile, ProxyResource, Server, ServerForCreate, ServerListResult, ServerPropertiesForCreate, ServerPropertiesForDefaultCreate, ServerPropertiesForGeoRestore, ServerPropertiesForReplica, ServerPropertiesForRestore, ServerSecurityAlertPolicy, ServerUpdateParameters, Sku, StorageProfile, TrackedResource, VirtualNetworkRule } from "../models/mappers"; | ||
//# sourceMappingURL=serversMappers.js.map |
@@ -1,2 +0,2 @@ | ||
export { discriminators, VirtualNetworkRule, ProxyResource, BaseResource, CloudError, VirtualNetworkRuleListResult, TrackedResource, Server, Sku, StorageProfile, FirewallRule, Database, Configuration, LogFile, ServerSecurityAlertPolicy } from "../models/mappers"; | ||
export { discriminators, BaseResource, CloudError, Configuration, Database, FirewallRule, LogFile, ProxyResource, Server, ServerSecurityAlertPolicy, Sku, StorageProfile, TrackedResource, VirtualNetworkRule, VirtualNetworkRuleListResult } from "../models/mappers"; | ||
//# sourceMappingURL=virtualNetworkRulesMappers.d.ts.map |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
export { discriminators, VirtualNetworkRule, ProxyResource, BaseResource, CloudError, VirtualNetworkRuleListResult, TrackedResource, Server, Sku, StorageProfile, FirewallRule, Database, Configuration, LogFile, ServerSecurityAlertPolicy } from "../models/mappers"; | ||
export { discriminators, BaseResource, CloudError, Configuration, Database, FirewallRule, LogFile, ProxyResource, Server, ServerSecurityAlertPolicy, Sku, StorageProfile, TrackedResource, VirtualNetworkRule, VirtualNetworkRuleListResult } from "../models/mappers"; | ||
//# sourceMappingURL=virtualNetworkRulesMappers.js.map |
export * from "./servers"; | ||
export * from "./replicas"; | ||
export * from "./firewallRules"; | ||
@@ -3,0 +4,0 @@ export * from "./virtualNetworkRules"; |
@@ -11,2 +11,3 @@ /* | ||
export * from "./servers"; | ||
export * from "./replicas"; | ||
export * from "./firewallRules"; | ||
@@ -13,0 +14,0 @@ export * from "./virtualNetworkRules"; |
@@ -105,2 +105,11 @@ import * as msRest from "@azure/ms-rest-js"; | ||
/** | ||
* Restarts a server. | ||
* @param resourceGroupName The name of the resource group that contains the resource. You can | ||
* obtain this value from the Azure Resource Manager API or the portal. | ||
* @param serverName The name of the server. | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRest.RestResponse> | ||
*/ | ||
restart(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
/** | ||
* Creates a new server or updates an existing server. The update action will overwrite the | ||
@@ -136,3 +145,12 @@ * existing server. | ||
beginDeleteMethod(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>; | ||
/** | ||
* Restarts a server. | ||
* @param resourceGroupName The name of the resource group that contains the resource. You can | ||
* obtain this value from the Azure Resource Manager API or the portal. | ||
* @param serverName The name of the server. | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRestAzure.LROPoller> | ||
*/ | ||
beginRestart(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>; | ||
} | ||
//# sourceMappingURL=servers.d.ts.map |
@@ -82,2 +82,14 @@ /* | ||
/** | ||
* Restarts a server. | ||
* @param resourceGroupName The name of the resource group that contains the resource. You can | ||
* obtain this value from the Azure Resource Manager API or the portal. | ||
* @param serverName The name of the server. | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRest.RestResponse> | ||
*/ | ||
Servers.prototype.restart = function (resourceGroupName, serverName, options) { | ||
return this.beginRestart(resourceGroupName, serverName, options) | ||
.then(function (lroPoller) { return lroPoller.pollUntilFinished(); }); | ||
}; | ||
/** | ||
* Creates a new server or updates an existing server. The update action will overwrite the | ||
@@ -133,2 +145,17 @@ * existing server. | ||
}; | ||
/** | ||
* Restarts a server. | ||
* @param resourceGroupName The name of the resource group that contains the resource. You can | ||
* obtain this value from the Azure Resource Manager API or the portal. | ||
* @param serverName The name of the server. | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRestAzure.LROPoller> | ||
*/ | ||
Servers.prototype.beginRestart = function (resourceGroupName, serverName, options) { | ||
return this.client.sendLRORequest({ | ||
resourceGroupName: resourceGroupName, | ||
serverName: serverName, | ||
options: options | ||
}, beginRestartOperationSpec, options); | ||
}; | ||
return Servers; | ||
@@ -293,2 +320,25 @@ }()); | ||
}; | ||
var beginRestartOperationSpec = { | ||
httpMethod: "POST", | ||
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/restart", | ||
urlParameters: [ | ||
Parameters.subscriptionId, | ||
Parameters.resourceGroupName, | ||
Parameters.serverName | ||
], | ||
queryParameters: [ | ||
Parameters.apiVersion | ||
], | ||
headerParameters: [ | ||
Parameters.acceptLanguage | ||
], | ||
responses: { | ||
200: {}, | ||
202: {}, | ||
default: { | ||
bodyMapper: Mappers.CloudError | ||
} | ||
}, | ||
serializer: serializer | ||
}; | ||
//# sourceMappingURL=servers.js.map |
@@ -21,2 +21,3 @@ /* | ||
servers: operations.Servers; | ||
replicas: operations.Replicas; | ||
firewallRules: operations.FirewallRules; | ||
@@ -41,2 +42,3 @@ virtualNetworkRules: operations.VirtualNetworkRules; | ||
this.servers = new operations.Servers(this); | ||
this.replicas = new operations.Replicas(this); | ||
this.firewallRules = new operations.FirewallRules(this); | ||
@@ -43,0 +45,0 @@ this.virtualNetworkRules = new operations.VirtualNetworkRules(this); |
@@ -16,3 +16,3 @@ /* | ||
const packageName = "@azure/arm-mariadb"; | ||
const packageVersion = "0.1.0"; | ||
const packageVersion = "1.3.0"; | ||
@@ -48,3 +48,3 @@ export class MariaDBManagementClientContext extends msRestAzure.AzureServiceClient { | ||
this.apiVersion = '2018-06-01-preview'; | ||
this.apiVersion = '2018-06-01'; | ||
this.acceptLanguage = 'en-US'; | ||
@@ -51,0 +51,0 @@ this.longRunningOperationRetryTimeout = 30; |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
@@ -13,6 +11,5 @@ | ||
discriminators, | ||
NameAvailabilityRequest, | ||
CloudError, | ||
NameAvailability, | ||
CloudError | ||
NameAvailabilityRequest | ||
} from "../models/mappers"; | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
@@ -13,17 +11,16 @@ | ||
discriminators, | ||
Configuration, | ||
ProxyResource, | ||
BaseResource, | ||
CloudError, | ||
Configuration, | ||
ConfigurationListResult, | ||
TrackedResource, | ||
Database, | ||
FirewallRule, | ||
LogFile, | ||
ProxyResource, | ||
Server, | ||
ServerSecurityAlertPolicy, | ||
Sku, | ||
StorageProfile, | ||
FirewallRule, | ||
VirtualNetworkRule, | ||
Database, | ||
LogFile, | ||
ServerSecurityAlertPolicy | ||
TrackedResource, | ||
VirtualNetworkRule | ||
} from "../models/mappers"; | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
@@ -13,17 +11,16 @@ | ||
discriminators, | ||
Database, | ||
ProxyResource, | ||
BaseResource, | ||
CloudError, | ||
Configuration, | ||
Database, | ||
DatabaseListResult, | ||
TrackedResource, | ||
FirewallRule, | ||
LogFile, | ||
ProxyResource, | ||
Server, | ||
ServerSecurityAlertPolicy, | ||
Sku, | ||
StorageProfile, | ||
FirewallRule, | ||
VirtualNetworkRule, | ||
Configuration, | ||
LogFile, | ||
ServerSecurityAlertPolicy | ||
TrackedResource, | ||
VirtualNetworkRule | ||
} from "../models/mappers"; | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
@@ -13,17 +11,16 @@ | ||
discriminators, | ||
FirewallRule, | ||
ProxyResource, | ||
BaseResource, | ||
CloudError, | ||
Configuration, | ||
Database, | ||
FirewallRule, | ||
FirewallRuleListResult, | ||
TrackedResource, | ||
LogFile, | ||
ProxyResource, | ||
Server, | ||
ServerSecurityAlertPolicy, | ||
Sku, | ||
StorageProfile, | ||
VirtualNetworkRule, | ||
Database, | ||
Configuration, | ||
LogFile, | ||
ServerSecurityAlertPolicy | ||
TrackedResource, | ||
VirtualNetworkRule | ||
} from "../models/mappers"; | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
@@ -16,27 +14,19 @@ | ||
/** | ||
* @interface | ||
* An interface representing ProxyResource. | ||
* Resource properties. | ||
* | ||
* @extends BaseResource | ||
*/ | ||
export interface ProxyResource extends BaseResource { | ||
/** | ||
* @member {string} [id] Resource ID | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Resource ID | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly id?: string; | ||
/** | ||
* @member {string} [name] Resource name. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Resource name. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly name?: string; | ||
/** | ||
* @member {string} [type] Resource type. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Resource type. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
@@ -47,16 +37,11 @@ readonly type?: string; | ||
/** | ||
* @interface | ||
* An interface representing TrackedResource. | ||
* Resource properties including location and tags for track resources. | ||
* | ||
* @extends ProxyResource | ||
*/ | ||
export interface TrackedResource extends ProxyResource { | ||
/** | ||
* @member {string} location The location the resource resides in. | ||
* The location the resource resides in. | ||
*/ | ||
location: string; | ||
/** | ||
* @member {{ [propertyName: string]: string }} [tags] Application-specific | ||
* metadata in the form of key-value pairs. | ||
* Application-specific metadata in the form of key-value pairs. | ||
*/ | ||
@@ -67,20 +52,15 @@ tags?: { [propertyName: string]: string }; | ||
/** | ||
* @interface | ||
* An interface representing StorageProfile. | ||
* Storage Profile properties of a server | ||
* | ||
*/ | ||
export interface StorageProfile { | ||
/** | ||
* @member {number} [backupRetentionDays] Backup retention days for the | ||
* server. | ||
* Backup retention days for the server. | ||
*/ | ||
backupRetentionDays?: number; | ||
/** | ||
* @member {GeoRedundantBackup} [geoRedundantBackup] Enable Geo-redundant or | ||
* not for server backup. Possible values include: 'Enabled', 'Disabled' | ||
* Enable Geo-redundant or not for server backup. Possible values include: 'Enabled', 'Disabled' | ||
*/ | ||
geoRedundantBackup?: GeoRedundantBackup; | ||
/** | ||
* @member {number} [storageMB] Max storage allowed for a server. | ||
* Max storage allowed for a server. | ||
*/ | ||
@@ -93,27 +73,23 @@ storageMB?: number; | ||
*/ | ||
export type ServerPropertiesForCreateUnion = ServerPropertiesForCreate | ServerPropertiesForDefaultCreate | ServerPropertiesForRestore | ServerPropertiesForGeoRestore; | ||
export type ServerPropertiesForCreateUnion = ServerPropertiesForCreate | ServerPropertiesForDefaultCreate | ServerPropertiesForRestore | ServerPropertiesForGeoRestore | ServerPropertiesForReplica; | ||
/** | ||
* @interface | ||
* An interface representing ServerPropertiesForCreate. | ||
* The properties used to create a new server. | ||
* | ||
*/ | ||
export interface ServerPropertiesForCreate { | ||
/** | ||
* @member {string} createMode Polymorphic Discriminator | ||
* Polymorphic Discriminator | ||
*/ | ||
createMode: "ServerPropertiesForCreate"; | ||
/** | ||
* @member {ServerVersion} [version] Server version. Possible values include: | ||
* '5.6', '5.7' | ||
* Server version. Possible values include: '5.6', '5.7' | ||
*/ | ||
version?: ServerVersion; | ||
/** | ||
* @member {SslEnforcementEnum} [sslEnforcement] Enable ssl enforcement or | ||
* not when connect to server. Possible values include: 'Enabled', 'Disabled' | ||
* Enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', | ||
* 'Disabled' | ||
*/ | ||
sslEnforcement?: SslEnforcementEnum; | ||
/** | ||
* @member {StorageProfile} [storageProfile] Storage profile of a server. | ||
* Storage profile of a server. | ||
*/ | ||
@@ -124,35 +100,29 @@ storageProfile?: StorageProfile; | ||
/** | ||
* @interface | ||
* An interface representing ServerPropertiesForDefaultCreate. | ||
* The properties used to create a new server. | ||
* | ||
*/ | ||
export interface ServerPropertiesForDefaultCreate { | ||
/** | ||
* @member {string} createMode Polymorphic Discriminator | ||
* Polymorphic Discriminator | ||
*/ | ||
createMode: "Default"; | ||
/** | ||
* @member {ServerVersion} [version] Server version. Possible values include: | ||
* '5.6', '5.7' | ||
* Server version. Possible values include: '5.6', '5.7' | ||
*/ | ||
version?: ServerVersion; | ||
/** | ||
* @member {SslEnforcementEnum} [sslEnforcement] Enable ssl enforcement or | ||
* not when connect to server. Possible values include: 'Enabled', 'Disabled' | ||
* Enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', | ||
* 'Disabled' | ||
*/ | ||
sslEnforcement?: SslEnforcementEnum; | ||
/** | ||
* @member {StorageProfile} [storageProfile] Storage profile of a server. | ||
* Storage profile of a server. | ||
*/ | ||
storageProfile?: StorageProfile; | ||
/** | ||
* @member {string} administratorLogin The administrator's login name of a | ||
* server. Can only be specified when the server is being created (and is | ||
* required for creation). | ||
* The administrator's login name of a server. Can only be specified when the server is being | ||
* created (and is required for creation). | ||
*/ | ||
administratorLogin: string; | ||
/** | ||
* @member {string} administratorLoginPassword The password of the | ||
* administrator login. | ||
* The password of the administrator login. | ||
*/ | ||
@@ -163,33 +133,28 @@ administratorLoginPassword: string; | ||
/** | ||
* @interface | ||
* An interface representing ServerPropertiesForRestore. | ||
* The properties used to create a new server by restoring from a backup. | ||
* | ||
*/ | ||
export interface ServerPropertiesForRestore { | ||
/** | ||
* @member {string} createMode Polymorphic Discriminator | ||
* Polymorphic Discriminator | ||
*/ | ||
createMode: "PointInTimeRestore"; | ||
/** | ||
* @member {ServerVersion} [version] Server version. Possible values include: | ||
* '5.6', '5.7' | ||
* Server version. Possible values include: '5.6', '5.7' | ||
*/ | ||
version?: ServerVersion; | ||
/** | ||
* @member {SslEnforcementEnum} [sslEnforcement] Enable ssl enforcement or | ||
* not when connect to server. Possible values include: 'Enabled', 'Disabled' | ||
* Enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', | ||
* 'Disabled' | ||
*/ | ||
sslEnforcement?: SslEnforcementEnum; | ||
/** | ||
* @member {StorageProfile} [storageProfile] Storage profile of a server. | ||
* Storage profile of a server. | ||
*/ | ||
storageProfile?: StorageProfile; | ||
/** | ||
* @member {string} sourceServerId The source server id to restore from. | ||
* The source server id to restore from. | ||
*/ | ||
sourceServerId: string; | ||
/** | ||
* @member {Date} restorePointInTime Restore point creation time (ISO8601 | ||
* format), specifying the time to restore from. | ||
* Restore point creation time (ISO8601 format), specifying the time to restore from. | ||
*/ | ||
@@ -200,29 +165,25 @@ restorePointInTime: Date; | ||
/** | ||
* @interface | ||
* An interface representing ServerPropertiesForGeoRestore. | ||
* The properties used to create a new server by restoring to a different | ||
* region from a geo replicated backup. | ||
* | ||
* The properties used to create a new server by restoring to a different region from a geo | ||
* replicated backup. | ||
*/ | ||
export interface ServerPropertiesForGeoRestore { | ||
/** | ||
* @member {string} createMode Polymorphic Discriminator | ||
* Polymorphic Discriminator | ||
*/ | ||
createMode: "GeoRestore"; | ||
/** | ||
* @member {ServerVersion} [version] Server version. Possible values include: | ||
* '5.6', '5.7' | ||
* Server version. Possible values include: '5.6', '5.7' | ||
*/ | ||
version?: ServerVersion; | ||
/** | ||
* @member {SslEnforcementEnum} [sslEnforcement] Enable ssl enforcement or | ||
* not when connect to server. Possible values include: 'Enabled', 'Disabled' | ||
* Enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', | ||
* 'Disabled' | ||
*/ | ||
sslEnforcement?: SslEnforcementEnum; | ||
/** | ||
* @member {StorageProfile} [storageProfile] Storage profile of a server. | ||
* Storage profile of a server. | ||
*/ | ||
storageProfile?: StorageProfile; | ||
/** | ||
* @member {string} sourceServerId The source server id to restore from. | ||
* The source server id to restore from. | ||
*/ | ||
@@ -233,30 +194,51 @@ sourceServerId: string; | ||
/** | ||
* @interface | ||
* An interface representing Sku. | ||
* The properties to create a new replica. | ||
*/ | ||
export interface ServerPropertiesForReplica { | ||
/** | ||
* Polymorphic Discriminator | ||
*/ | ||
createMode: "Replica"; | ||
/** | ||
* Server version. Possible values include: '5.6', '5.7' | ||
*/ | ||
version?: ServerVersion; | ||
/** | ||
* Enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', | ||
* 'Disabled' | ||
*/ | ||
sslEnforcement?: SslEnforcementEnum; | ||
/** | ||
* Storage profile of a server. | ||
*/ | ||
storageProfile?: StorageProfile; | ||
/** | ||
* The master server id to create replica from. | ||
*/ | ||
sourceServerId: string; | ||
} | ||
/** | ||
* Billing information related properties of a server. | ||
* | ||
*/ | ||
export interface Sku { | ||
/** | ||
* @member {string} [name] The name of the sku, typically, tier + family + | ||
* cores, e.g. B_Gen4_1, GP_Gen5_8. | ||
* The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. | ||
*/ | ||
name?: string; | ||
/** | ||
* @member {SkuTier} [tier] The tier of the particular SKU, e.g. Basic. | ||
* Possible values include: 'Basic', 'GeneralPurpose', 'MemoryOptimized' | ||
* The tier of the particular SKU, e.g. Basic. Possible values include: 'Basic', | ||
* 'GeneralPurpose', 'MemoryOptimized' | ||
*/ | ||
tier?: SkuTier; | ||
/** | ||
* @member {number} [capacity] The scale up/out capacity, representing | ||
* server's compute units. | ||
* The scale up/out capacity, representing server's compute units. | ||
*/ | ||
capacity?: number; | ||
/** | ||
* @member {string} [size] The size code, to be interpreted by resource as | ||
* appropriate. | ||
* The size code, to be interpreted by resource as appropriate. | ||
*/ | ||
size?: string; | ||
/** | ||
* @member {string} [family] The family of hardware. | ||
* The family of hardware. | ||
*/ | ||
@@ -267,73 +249,72 @@ family?: string; | ||
/** | ||
* @interface | ||
* An interface representing Server. | ||
* Represents a server. | ||
* | ||
* @extends TrackedResource | ||
*/ | ||
export interface Server extends TrackedResource { | ||
/** | ||
* @member {Sku} [sku] The SKU (pricing tier) of the server. | ||
* The SKU (pricing tier) of the server. | ||
*/ | ||
sku?: Sku; | ||
/** | ||
* @member {string} [administratorLogin] The administrator's login name of a | ||
* server. Can only be specified when the server is being created (and is | ||
* required for creation). | ||
* The administrator's login name of a server. Can only be specified when the server is being | ||
* created (and is required for creation). | ||
*/ | ||
administratorLogin?: string; | ||
/** | ||
* @member {ServerVersion} [version] Server version. Possible values include: | ||
* '5.6', '5.7' | ||
* Server version. Possible values include: '5.6', '5.7' | ||
*/ | ||
version?: ServerVersion; | ||
/** | ||
* @member {SslEnforcementEnum} [sslEnforcement] Enable ssl enforcement or | ||
* not when connect to server. Possible values include: 'Enabled', 'Disabled' | ||
* Enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', | ||
* 'Disabled' | ||
*/ | ||
sslEnforcement?: SslEnforcementEnum; | ||
/** | ||
* @member {ServerState} [userVisibleState] A state of a server that is | ||
* visible to user. Possible values include: 'Ready', 'Dropping', 'Disabled' | ||
* A state of a server that is visible to user. Possible values include: 'Ready', 'Dropping', | ||
* 'Disabled' | ||
*/ | ||
userVisibleState?: ServerState; | ||
/** | ||
* @member {string} [fullyQualifiedDomainName] The fully qualified domain | ||
* name of a server. | ||
* The fully qualified domain name of a server. | ||
*/ | ||
fullyQualifiedDomainName?: string; | ||
/** | ||
* @member {Date} [earliestRestoreDate] Earliest restore point creation time | ||
* (ISO8601 format) | ||
* Earliest restore point creation time (ISO8601 format) | ||
*/ | ||
earliestRestoreDate?: Date; | ||
/** | ||
* @member {StorageProfile} [storageProfile] Storage profile of a server. | ||
* Storage profile of a server. | ||
*/ | ||
storageProfile?: StorageProfile; | ||
/** | ||
* The replication role of the server. | ||
*/ | ||
replicationRole?: string; | ||
/** | ||
* The master server id of a replica server. | ||
*/ | ||
masterServerId?: string; | ||
/** | ||
* The maximum number of replicas that a master server can have. | ||
*/ | ||
replicaCapacity?: number; | ||
} | ||
/** | ||
* @interface | ||
* An interface representing ServerForCreate. | ||
* Represents a server to be created. | ||
* | ||
*/ | ||
export interface ServerForCreate { | ||
/** | ||
* @member {Sku} [sku] The SKU (pricing tier) of the server. | ||
* The SKU (pricing tier) of the server. | ||
*/ | ||
sku?: Sku; | ||
/** | ||
* @member {ServerPropertiesForCreateUnion} properties Properties of the | ||
* server. | ||
* Properties of the server. | ||
*/ | ||
properties: ServerPropertiesForCreateUnion; | ||
/** | ||
* @member {string} location The location the resource resides in. | ||
* The location the resource resides in. | ||
*/ | ||
location: string; | ||
/** | ||
* @member {{ [propertyName: string]: string }} [tags] Application-specific | ||
* metadata in the form of key-value pairs. | ||
* Application-specific metadata in the form of key-value pairs. | ||
*/ | ||
@@ -344,35 +325,33 @@ tags?: { [propertyName: string]: string }; | ||
/** | ||
* @interface | ||
* An interface representing ServerUpdateParameters. | ||
* Parameters allowd to update for a server. | ||
* | ||
* Parameters allowed to update for a server. | ||
*/ | ||
export interface ServerUpdateParameters { | ||
/** | ||
* @member {Sku} [sku] The SKU (pricing tier) of the server. | ||
* The SKU (pricing tier) of the server. | ||
*/ | ||
sku?: Sku; | ||
/** | ||
* @member {StorageProfile} [storageProfile] Storage profile of a server. | ||
* Storage profile of a server. | ||
*/ | ||
storageProfile?: StorageProfile; | ||
/** | ||
* @member {string} [administratorLoginPassword] The password of the | ||
* administrator login. | ||
* The password of the administrator login. | ||
*/ | ||
administratorLoginPassword?: string; | ||
/** | ||
* @member {ServerVersion} [version] The version of a server. Possible values | ||
* include: '5.6', '5.7' | ||
* The version of a server. Possible values include: '5.6', '5.7' | ||
*/ | ||
version?: ServerVersion; | ||
/** | ||
* @member {SslEnforcementEnum} [sslEnforcement] Enable ssl enforcement or | ||
* not when connect to server. Possible values include: 'Enabled', 'Disabled' | ||
* Enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', | ||
* 'Disabled' | ||
*/ | ||
sslEnforcement?: SslEnforcementEnum; | ||
/** | ||
* @member {{ [propertyName: string]: string }} [tags] Application-specific | ||
* metadata in the form of key-value pairs. | ||
* The replication role of the server. | ||
*/ | ||
replicationRole?: string; | ||
/** | ||
* Application-specific metadata in the form of key-value pairs. | ||
*/ | ||
tags?: { [propertyName: string]: string }; | ||
@@ -382,17 +361,11 @@ } | ||
/** | ||
* @interface | ||
* An interface representing FirewallRule. | ||
* Represents a server firewall rule. | ||
* | ||
* @extends ProxyResource | ||
*/ | ||
export interface FirewallRule extends ProxyResource { | ||
/** | ||
* @member {string} startIpAddress The start IP address of the server | ||
* firewall rule. Must be IPv4 format. | ||
* The start IP address of the server firewall rule. Must be IPv4 format. | ||
*/ | ||
startIpAddress: string; | ||
/** | ||
* @member {string} endIpAddress The end IP address of the server firewall | ||
* rule. Must be IPv4 format. | ||
* The end IP address of the server firewall rule. Must be IPv4 format. | ||
*/ | ||
@@ -403,25 +376,17 @@ endIpAddress: string; | ||
/** | ||
* @interface | ||
* An interface representing VirtualNetworkRule. | ||
* A virtual network rule. | ||
* | ||
* @extends ProxyResource | ||
*/ | ||
export interface VirtualNetworkRule extends ProxyResource { | ||
/** | ||
* @member {string} virtualNetworkSubnetId The ARM resource id of the virtual | ||
* network subnet. | ||
* The ARM resource id of the virtual network subnet. | ||
*/ | ||
virtualNetworkSubnetId: string; | ||
/** | ||
* @member {boolean} [ignoreMissingVnetServiceEndpoint] Create firewall rule | ||
* before the virtual network has vnet service endpoint enabled. | ||
* Create firewall rule before the virtual network has vnet service endpoint enabled. | ||
*/ | ||
ignoreMissingVnetServiceEndpoint?: boolean; | ||
/** | ||
* @member {VirtualNetworkRuleState} [state] Virtual Network Rule State. | ||
* Possible values include: 'Initializing', 'InProgress', 'Ready', | ||
* Virtual Network Rule State. Possible values include: 'Initializing', 'InProgress', 'Ready', | ||
* 'Deleting', 'Unknown' | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
@@ -432,15 +397,11 @@ readonly state?: VirtualNetworkRuleState; | ||
/** | ||
* @interface | ||
* An interface representing Database. | ||
* Represents a Database. | ||
* | ||
* @extends ProxyResource | ||
*/ | ||
export interface Database extends ProxyResource { | ||
/** | ||
* @member {string} [charset] The charset of the database. | ||
* The charset of the database. | ||
*/ | ||
charset?: string; | ||
/** | ||
* @member {string} [collation] The collation of the database. | ||
* The collation of the database. | ||
*/ | ||
@@ -451,39 +412,31 @@ collation?: string; | ||
/** | ||
* @interface | ||
* An interface representing Configuration. | ||
* Represents a Configuration. | ||
* | ||
* @extends ProxyResource | ||
*/ | ||
export interface Configuration extends ProxyResource { | ||
/** | ||
* @member {string} [value] Value of the configuration. | ||
* Value of the configuration. | ||
*/ | ||
value?: string; | ||
/** | ||
* @member {string} [description] Description of the configuration. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Description of the configuration. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly description?: string; | ||
/** | ||
* @member {string} [defaultValue] Default value of the configuration. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Default value of the configuration. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly defaultValue?: string; | ||
/** | ||
* @member {string} [dataType] Data type of the configuration. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Data type of the configuration. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly dataType?: string; | ||
/** | ||
* @member {string} [allowedValues] Allowed values of the configuration. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Allowed values of the configuration. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly allowedValues?: string; | ||
/** | ||
* @member {string} [source] Source of the configuration. | ||
* Source of the configuration. | ||
*/ | ||
@@ -494,30 +447,23 @@ source?: string; | ||
/** | ||
* @interface | ||
* An interface representing OperationDisplay. | ||
* Display metadata associated with the operation. | ||
* | ||
*/ | ||
export interface OperationDisplay { | ||
/** | ||
* @member {string} [provider] Operation resource provider name. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Operation resource provider name. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly provider?: string; | ||
/** | ||
* @member {string} [resource] Resource on which the operation is performed. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Resource on which the operation is performed. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly resource?: string; | ||
/** | ||
* @member {string} [operation] Localized friendly name for the operation. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Localized friendly name for the operation. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly operation?: string; | ||
/** | ||
* @member {string} [description] Operation description. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Operation description. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
@@ -528,34 +474,24 @@ readonly description?: string; | ||
/** | ||
* @interface | ||
* An interface representing Operation. | ||
* REST API operation definition. | ||
* | ||
*/ | ||
export interface Operation { | ||
/** | ||
* @member {string} [name] The name of the operation being performed on this | ||
* particular object. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* The name of the operation being performed on this particular object. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly name?: string; | ||
/** | ||
* @member {OperationDisplay} [display] The localized display information for | ||
* this particular operation or action. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* The localized display information for this particular operation or action. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly display?: OperationDisplay; | ||
/** | ||
* @member {OperationOrigin} [origin] The intended executor of the operation. | ||
* Possible values include: 'NotSpecified', 'user', 'system' | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* The intended executor of the operation. Possible values include: 'NotSpecified', 'user', | ||
* 'system' | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly origin?: OperationOrigin; | ||
/** | ||
* @member {{ [propertyName: string]: any }} [properties] Additional | ||
* descriptions for the operation. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Additional descriptions for the operation. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
@@ -566,10 +502,7 @@ readonly properties?: { [propertyName: string]: any }; | ||
/** | ||
* @interface | ||
* An interface representing OperationListResult. | ||
* A list of resource provider operations. | ||
* | ||
*/ | ||
export interface OperationListResult { | ||
/** | ||
* @member {Operation[]} [value] The list of resource provider operations. | ||
* The list of resource provider operations. | ||
*/ | ||
@@ -580,33 +513,26 @@ value?: Operation[]; | ||
/** | ||
* @interface | ||
* An interface representing LogFile. | ||
* Represents a log file. | ||
* | ||
* @extends ProxyResource | ||
*/ | ||
export interface LogFile extends ProxyResource { | ||
/** | ||
* @member {number} [sizeInKB] Size of the log file. | ||
* Size of the log file. | ||
*/ | ||
sizeInKB?: number; | ||
/** | ||
* @member {Date} [createdTime] Creation timestamp of the log file. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Creation timestamp of the log file. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly createdTime?: Date; | ||
/** | ||
* @member {Date} [lastModifiedTime] Last modified timestamp of the log file. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Last modified timestamp of the log file. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
readonly lastModifiedTime?: Date; | ||
/** | ||
* @member {string} [logFileType] Type of the log file. | ||
* Type of the log file. | ||
*/ | ||
logFileType?: string; | ||
/** | ||
* @member {string} [url] The url to download the log file from. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* The url to download the log file from. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
@@ -617,41 +543,35 @@ readonly url?: string; | ||
/** | ||
* @interface | ||
* An interface representing PerformanceTierServiceLevelObjectives. | ||
* Service level objectives for performance tier. | ||
* | ||
*/ | ||
export interface PerformanceTierServiceLevelObjectives { | ||
/** | ||
* @member {string} [id] ID for the service level objective. | ||
* ID for the service level objective. | ||
*/ | ||
id?: string; | ||
/** | ||
* @member {string} [edition] Edition of the performance tier. | ||
* Edition of the performance tier. | ||
*/ | ||
edition?: string; | ||
/** | ||
* @member {number} [vCore] vCore associated with the service level objective | ||
* vCore associated with the service level objective | ||
*/ | ||
vCore?: number; | ||
/** | ||
* @member {string} [hardwareGeneration] Hardware generation associated with | ||
* the service level objective | ||
* Hardware generation associated with the service level objective | ||
*/ | ||
hardwareGeneration?: string; | ||
/** | ||
* @member {number} [maxBackupRetentionDays] Maximum Backup retention in days | ||
* for the performance tier edition | ||
* Maximum Backup retention in days for the performance tier edition | ||
*/ | ||
maxBackupRetentionDays?: number; | ||
/** | ||
* @member {number} [minBackupRetentionDays] Minimum Backup retention in days | ||
* for the performance tier edition | ||
* Minimum Backup retention in days for the performance tier edition | ||
*/ | ||
minBackupRetentionDays?: number; | ||
/** | ||
* @member {number} [maxStorageMB] Max storage allowed for a server. | ||
* Max storage allowed for a server. | ||
*/ | ||
maxStorageMB?: number; | ||
/** | ||
* @member {number} [minStorageMB] Max storage allowed for a server. | ||
* Max storage allowed for a server. | ||
*/ | ||
@@ -662,14 +582,10 @@ minStorageMB?: number; | ||
/** | ||
* @interface | ||
* An interface representing PerformanceTierProperties. | ||
* Performance tier properties | ||
* | ||
*/ | ||
export interface PerformanceTierProperties { | ||
/** | ||
* @member {string} [id] ID of the performance tier. | ||
* ID of the performance tier. | ||
*/ | ||
id?: string; | ||
/** | ||
* @member {PerformanceTierServiceLevelObjectives[]} [serviceLevelObjectives] | ||
* Service level objectives associated with the performance tier | ||
@@ -681,14 +597,11 @@ */ | ||
/** | ||
* @interface | ||
* An interface representing NameAvailabilityRequest. | ||
* Request from client to check resource name availability. | ||
* | ||
*/ | ||
export interface NameAvailabilityRequest { | ||
/** | ||
* @member {string} name Resource name to verify. | ||
* Resource name to verify. | ||
*/ | ||
name: string; | ||
/** | ||
* @member {string} [type] Resource type used for verification. | ||
* Resource type used for verification. | ||
*/ | ||
@@ -699,19 +612,15 @@ type?: string; | ||
/** | ||
* @interface | ||
* An interface representing NameAvailability. | ||
* Represents a resource name availability. | ||
* | ||
*/ | ||
export interface NameAvailability { | ||
/** | ||
* @member {string} [message] Error Message. | ||
* Error Message. | ||
*/ | ||
message?: string; | ||
/** | ||
* @member {boolean} [nameAvailable] Indicates whether the resource name is | ||
* available. | ||
* Indicates whether the resource name is available. | ||
*/ | ||
nameAvailable?: boolean; | ||
/** | ||
* @member {string} [reason] Reason for name being unavailable. | ||
* Reason for name being unavailable. | ||
*/ | ||
@@ -722,12 +631,7 @@ reason?: string; | ||
/** | ||
* @interface | ||
* An interface representing ServerSecurityAlertPolicy. | ||
* A server security alert policy. | ||
* | ||
* @extends ProxyResource | ||
*/ | ||
export interface ServerSecurityAlertPolicy extends ProxyResource { | ||
/** | ||
* @member {ServerSecurityAlertPolicyState} state Specifies the state of the | ||
* policy, whether it is enabled or disabled. Possible values include: | ||
* Specifies the state of the policy, whether it is enabled or disabled. Possible values include: | ||
* 'Enabled', 'Disabled' | ||
@@ -737,31 +641,25 @@ */ | ||
/** | ||
* @member {string[]} [disabledAlerts] Specifies an array of alerts that are | ||
* disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, | ||
* Access_Anomaly | ||
* Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, | ||
* Sql_Injection_Vulnerability, Access_Anomaly | ||
*/ | ||
disabledAlerts?: string[]; | ||
/** | ||
* @member {string[]} [emailAddresses] Specifies an array of e-mail addresses | ||
* to which the alert is sent. | ||
* Specifies an array of e-mail addresses to which the alert is sent. | ||
*/ | ||
emailAddresses?: string[]; | ||
/** | ||
* @member {boolean} [emailAccountAdmins] Specifies that the alert is sent to | ||
* the account administrators. | ||
* Specifies that the alert is sent to the account administrators. | ||
*/ | ||
emailAccountAdmins?: boolean; | ||
/** | ||
* @member {string} [storageEndpoint] Specifies the blob storage endpoint | ||
* (e.g. https://MyAccount.blob.core.windows.net). This blob storage will | ||
* hold all Threat Detection audit logs. | ||
* Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob | ||
* storage will hold all Threat Detection audit logs. | ||
*/ | ||
storageEndpoint?: string; | ||
/** | ||
* @member {string} [storageAccountAccessKey] Specifies the identifier key of | ||
* the Threat Detection audit storage account. | ||
* Specifies the identifier key of the Threat Detection audit storage account. | ||
*/ | ||
storageAccountAccessKey?: string; | ||
/** | ||
* @member {number} [retentionDays] Specifies the number of days to keep in | ||
* the Threat Detection audit logs. | ||
* Specifies the number of days to keep in the Threat Detection audit logs. | ||
*/ | ||
@@ -772,19 +670,11 @@ retentionDays?: number; | ||
/** | ||
* @interface | ||
* An interface representing MariaDBManagementClientOptions. | ||
* @extends AzureServiceClientOptions | ||
*/ | ||
export interface MariaDBManagementClientOptions extends AzureServiceClientOptions { | ||
/** | ||
* @member {string} [baseUri] | ||
*/ | ||
baseUri?: string; | ||
} | ||
/** | ||
* @interface | ||
* An interface representing the ServerListResult. | ||
* A list of servers. | ||
* | ||
* @extends Array<Server> | ||
@@ -797,5 +687,3 @@ */ | ||
* @interface | ||
* An interface representing the FirewallRuleListResult. | ||
* A list of firewall rules. | ||
* | ||
* @extends Array<FirewallRule> | ||
@@ -808,5 +696,3 @@ */ | ||
* @interface | ||
* An interface representing the VirtualNetworkRuleListResult. | ||
* A list of virtual network rules. | ||
* | ||
* @extends Array<VirtualNetworkRule> | ||
@@ -816,5 +702,4 @@ */ | ||
/** | ||
* @member {string} [nextLink] Link to retrieve next page of results. | ||
* **NOTE: This property will not be serialized. It can only be populated by | ||
* the server.** | ||
* Link to retrieve next page of results. | ||
* **NOTE: This property will not be serialized. It can only be populated by the server.** | ||
*/ | ||
@@ -826,5 +711,3 @@ readonly nextLink?: string; | ||
* @interface | ||
* An interface representing the DatabaseListResult. | ||
* A List of databases. | ||
* | ||
* @extends Array<Database> | ||
@@ -837,5 +720,3 @@ */ | ||
* @interface | ||
* An interface representing the ConfigurationListResult. | ||
* A list of server configurations. | ||
* | ||
* @extends Array<Configuration> | ||
@@ -848,5 +729,3 @@ */ | ||
* @interface | ||
* An interface representing the LogFileListResult. | ||
* A list of log files. | ||
* | ||
* @extends Array<LogFile> | ||
@@ -859,5 +738,3 @@ */ | ||
* @interface | ||
* An interface representing the PerformanceTierListResult. | ||
* A list of performance tiers. | ||
* | ||
* @extends Array<PerformanceTierProperties> | ||
@@ -944,2 +821,3 @@ */ | ||
bodyAsText: string; | ||
/** | ||
@@ -964,2 +842,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -984,2 +863,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1004,2 +884,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1024,2 +905,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1044,2 +926,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1064,2 +947,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1073,2 +957,22 @@ * The response body as parsed JSON or XML | ||
/** | ||
* Contains response data for the listByServer operation. | ||
*/ | ||
export type ReplicasListByServerResponse = ServerListResult & { | ||
/** | ||
* The underlying HTTP response. | ||
*/ | ||
_response: msRest.HttpResponse & { | ||
/** | ||
* The response body as text (string format) | ||
*/ | ||
bodyAsText: string; | ||
/** | ||
* The response body as parsed JSON or XML | ||
*/ | ||
parsedBody: ServerListResult; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the createOrUpdate operation. | ||
@@ -1085,2 +989,3 @@ */ | ||
bodyAsText: string; | ||
/** | ||
@@ -1105,2 +1010,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1125,2 +1031,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1145,2 +1052,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1165,2 +1073,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1185,2 +1094,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1205,2 +1115,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1225,2 +1136,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1245,2 +1157,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1265,2 +1178,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1285,2 +1199,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1305,2 +1220,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1325,2 +1241,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1345,2 +1262,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1365,2 +1283,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1385,2 +1304,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1405,2 +1325,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1425,2 +1346,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1445,2 +1367,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1465,2 +1388,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1485,2 +1409,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1505,2 +1430,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1525,2 +1451,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1545,2 +1472,3 @@ * The response body as parsed JSON or XML | ||
bodyAsText: string; | ||
/** | ||
@@ -1547,0 +1475,0 @@ * The response body as parsed JSON or XML |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
@@ -13,7 +11,6 @@ | ||
discriminators, | ||
CloudError, | ||
PerformanceTierListResult, | ||
PerformanceTierProperties, | ||
PerformanceTierServiceLevelObjectives, | ||
CloudError | ||
PerformanceTierServiceLevelObjectives | ||
} from "../models/mappers"; | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
@@ -13,17 +11,16 @@ | ||
discriminators, | ||
BaseResource, | ||
CloudError, | ||
Configuration, | ||
Database, | ||
FirewallRule, | ||
LogFile, | ||
LogFileListResult, | ||
LogFile, | ||
ProxyResource, | ||
BaseResource, | ||
CloudError, | ||
TrackedResource, | ||
Server, | ||
ServerSecurityAlertPolicy, | ||
Sku, | ||
StorageProfile, | ||
FirewallRule, | ||
VirtualNetworkRule, | ||
Database, | ||
Configuration, | ||
ServerSecurityAlertPolicy | ||
TrackedResource, | ||
VirtualNetworkRule | ||
} from "../models/mappers"; | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
@@ -224,2 +222,22 @@ | ||
export const ServerPropertiesForReplica: msRest.CompositeMapper = { | ||
serializedName: "Replica", | ||
type: { | ||
name: "Composite", | ||
polymorphicDiscriminator: ServerPropertiesForCreate.type.polymorphicDiscriminator, | ||
uberParent: "ServerPropertiesForCreate", | ||
className: "ServerPropertiesForReplica", | ||
modelProperties: { | ||
...ServerPropertiesForCreate.type.modelProperties, | ||
sourceServerId: { | ||
required: true, | ||
serializedName: "sourceServerId", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
export const Sku: msRest.CompositeMapper = { | ||
@@ -328,2 +346,23 @@ serializedName: "Sku", | ||
} | ||
}, | ||
replicationRole: { | ||
serializedName: "properties.replicationRole", | ||
type: { | ||
name: "String" | ||
} | ||
}, | ||
masterServerId: { | ||
serializedName: "properties.masterServerId", | ||
type: { | ||
name: "String" | ||
} | ||
}, | ||
replicaCapacity: { | ||
serializedName: "properties.replicaCapacity", | ||
constraints: { | ||
InclusiveMinimum: 0 | ||
}, | ||
type: { | ||
name: "Number" | ||
} | ||
} | ||
@@ -419,2 +458,8 @@ } | ||
}, | ||
replicationRole: { | ||
serializedName: "properties.replicationRole", | ||
type: { | ||
name: "String" | ||
} | ||
}, | ||
tags: { | ||
@@ -1090,3 +1135,5 @@ serializedName: "tags", | ||
'ServerPropertiesForCreate.PointInTimeRestore' : ServerPropertiesForRestore, | ||
'ServerPropertiesForCreate.GeoRestore' : ServerPropertiesForGeoRestore | ||
'ServerPropertiesForCreate.GeoRestore' : ServerPropertiesForGeoRestore, | ||
'ServerPropertiesForCreate.Replica' : ServerPropertiesForReplica | ||
}; |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
@@ -13,7 +11,6 @@ | ||
discriminators, | ||
OperationListResult, | ||
CloudError, | ||
Operation, | ||
OperationDisplay, | ||
CloudError | ||
OperationListResult | ||
} from "../models/mappers"; | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
@@ -13,16 +11,15 @@ | ||
discriminators, | ||
ServerSecurityAlertPolicy, | ||
ProxyResource, | ||
BaseResource, | ||
CloudError, | ||
TrackedResource, | ||
Configuration, | ||
Database, | ||
FirewallRule, | ||
LogFile, | ||
ProxyResource, | ||
Server, | ||
ServerSecurityAlertPolicy, | ||
Sku, | ||
StorageProfile, | ||
FirewallRule, | ||
VirtualNetworkRule, | ||
Database, | ||
Configuration, | ||
LogFile | ||
TrackedResource, | ||
VirtualNetworkRule | ||
} from "../models/mappers"; | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
@@ -13,23 +11,23 @@ | ||
discriminators, | ||
ServerForCreate, | ||
Sku, | ||
ServerPropertiesForCreate, | ||
StorageProfile, | ||
Server, | ||
TrackedResource, | ||
ProxyResource, | ||
BaseResource, | ||
CloudError, | ||
ServerUpdateParameters, | ||
Configuration, | ||
Database, | ||
FirewallRule, | ||
LogFile, | ||
ProxyResource, | ||
Server, | ||
ServerForCreate, | ||
ServerListResult, | ||
ServerPropertiesForCreate, | ||
ServerPropertiesForDefaultCreate, | ||
ServerPropertiesForGeoRestore, | ||
ServerPropertiesForReplica, | ||
ServerPropertiesForRestore, | ||
ServerPropertiesForGeoRestore, | ||
FirewallRule, | ||
VirtualNetworkRule, | ||
Database, | ||
Configuration, | ||
LogFile, | ||
ServerSecurityAlertPolicy | ||
ServerSecurityAlertPolicy, | ||
ServerUpdateParameters, | ||
Sku, | ||
StorageProfile, | ||
TrackedResource, | ||
VirtualNetworkRule | ||
} from "../models/mappers"; | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
@@ -13,17 +11,16 @@ | ||
discriminators, | ||
VirtualNetworkRule, | ||
ProxyResource, | ||
BaseResource, | ||
CloudError, | ||
VirtualNetworkRuleListResult, | ||
TrackedResource, | ||
Configuration, | ||
Database, | ||
FirewallRule, | ||
LogFile, | ||
ProxyResource, | ||
Server, | ||
ServerSecurityAlertPolicy, | ||
Sku, | ||
StorageProfile, | ||
FirewallRule, | ||
Database, | ||
Configuration, | ||
LogFile, | ||
ServerSecurityAlertPolicy | ||
TrackedResource, | ||
VirtualNetworkRule, | ||
VirtualNetworkRuleListResult | ||
} from "../models/mappers"; | ||
@@ -12,2 +12,3 @@ /* | ||
export * from "./servers"; | ||
export * from "./replicas"; | ||
export * from "./firewallRules"; | ||
@@ -14,0 +15,0 @@ export * from "./virtualNetworkRules"; |
@@ -164,2 +164,15 @@ /* | ||
/** | ||
* Restarts a server. | ||
* @param resourceGroupName The name of the resource group that contains the resource. You can | ||
* obtain this value from the Azure Resource Manager API or the portal. | ||
* @param serverName The name of the server. | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRest.RestResponse> | ||
*/ | ||
restart(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> { | ||
return this.beginRestart(resourceGroupName,serverName,options) | ||
.then(lroPoller => lroPoller.pollUntilFinished()); | ||
} | ||
/** | ||
* Creates a new server or updates an existing server. The update action will overwrite the | ||
@@ -226,2 +239,21 @@ * existing server. | ||
} | ||
/** | ||
* Restarts a server. | ||
* @param resourceGroupName The name of the resource group that contains the resource. You can | ||
* obtain this value from the Azure Resource Manager API or the portal. | ||
* @param serverName The name of the server. | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRestAzure.LROPoller> | ||
*/ | ||
beginRestart(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> { | ||
return this.client.sendLRORequest( | ||
{ | ||
resourceGroupName, | ||
serverName, | ||
options | ||
}, | ||
beginRestartOperationSpec, | ||
options); | ||
} | ||
} | ||
@@ -396,1 +428,25 @@ | ||
}; | ||
const beginRestartOperationSpec: msRest.OperationSpec = { | ||
httpMethod: "POST", | ||
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/restart", | ||
urlParameters: [ | ||
Parameters.subscriptionId, | ||
Parameters.resourceGroupName, | ||
Parameters.serverName | ||
], | ||
queryParameters: [ | ||
Parameters.apiVersion | ||
], | ||
headerParameters: [ | ||
Parameters.acceptLanguage | ||
], | ||
responses: { | ||
200: {}, | ||
202: {}, | ||
default: { | ||
bodyMapper: Mappers.CloudError | ||
} | ||
}, | ||
serializer | ||
}; |
The MIT License (MIT) | ||
Copyright (c) 2018 Microsoft | ||
Copyright (c) 2019 Microsoft | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
@@ -5,6 +5,6 @@ { | ||
"description": "MariaDBManagementClient Library with typescript type definitions for node.js and browser.", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"dependencies": { | ||
"@azure/ms-rest-azure-js": "^1.1.0", | ||
"@azure/ms-rest-js": "^1.1.0", | ||
"@azure/ms-rest-azure-js": "^1.3.2", | ||
"@azure/ms-rest-js": "^1.6.0", | ||
"tslib": "^1.9.3" | ||
@@ -27,2 +27,3 @@ }, | ||
"rollup-plugin-node-resolve": "^3.4.0", | ||
"rollup-plugin-sourcemaps": "^0.4.2", | ||
"uglify-js": "^3.4.9" | ||
@@ -48,2 +49,3 @@ }, | ||
"lib/**/*.ts", | ||
"README.md", | ||
"rollup.config.js", | ||
@@ -58,3 +60,3 @@ "tsconfig.json" | ||
"sideEffects": false, | ||
"authPublish": true | ||
"autoPublish": true | ||
} |
@@ -12,3 +12,3 @@ ## Azure MariaDBManagementClient SDK for JavaScript | ||
``` | ||
```bash | ||
npm install @azure/arm-mariadb | ||
@@ -23,3 +23,3 @@ ``` | ||
``` | ||
```bash | ||
npm install @azure/ms-rest-nodeauth | ||
@@ -30,3 +30,3 @@ ``` | ||
```ts | ||
```typescript | ||
import * as msRest from "@azure/ms-rest-js"; | ||
@@ -55,3 +55,3 @@ import * as msRestAzure from "@azure/ms-rest-azure-js"; | ||
``` | ||
```bash | ||
npm install @azure/ms-rest-browserauth | ||
@@ -58,0 +58,0 @@ ``` |
@@ -0,8 +1,14 @@ | ||
import rollup from "rollup"; | ||
import nodeResolve from "rollup-plugin-node-resolve"; | ||
import sourcemaps from "rollup-plugin-sourcemaps"; | ||
/** | ||
* @type {import('rollup').RollupFileOptions} | ||
* @type {rollup.RollupFileOptions} | ||
*/ | ||
const config = { | ||
input: './esm/mariaDBManagementClient.js', | ||
external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], | ||
input: "./esm/mariaDBManagementClient.js", | ||
external: [ | ||
"@azure/ms-rest-js", | ||
"@azure/ms-rest-azure-js" | ||
], | ||
output: { | ||
@@ -19,14 +25,14 @@ file: "./dist/arm-mariadb.js", | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/` | ||
}, | ||
plugins: [ | ||
nodeResolve({ module: true }) | ||
nodeResolve({ module: true }), | ||
sourcemaps() | ||
] | ||
}; | ||
export default config; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
854954
149
13312
0
5
Updated@azure/ms-rest-js@^1.6.0