1 Star 5 Fork 0

tencentcloud / tencentcloud-sdk-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
client.go 207.36 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2024-04-26 04:17 . release v1.0.910
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804
// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package v20170312
import (
"context"
"errors"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"
tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile"
)
const APIVersion = "2017-03-12"
type Client struct {
common.Client
}
// Deprecated
func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error) {
cpf := profile.NewClientProfile()
client = &Client{}
client.Init(region).WithSecretId(secretId, secretKey).WithProfile(cpf)
return
}
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error) {
client = &Client{}
client.Init(region).
WithCredential(credential).
WithProfile(clientProfile)
return
}
func NewActivateHourDBInstanceRequest() (request *ActivateHourDBInstanceRequest) {
request = &ActivateHourDBInstanceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "ActivateHourDBInstance")
return
}
func NewActivateHourDBInstanceResponse() (response *ActivateHourDBInstanceResponse) {
response = &ActivateHourDBInstanceResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ActivateHourDBInstance
// 解隔离MariaDB按量计费实例
//
// 可能返回的错误码:
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETERVALUE_ILLEGALINSTANCEID = "InvalidParameterValue.IllegalInstanceId"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ActivateHourDBInstance(request *ActivateHourDBInstanceRequest) (response *ActivateHourDBInstanceResponse, err error) {
return c.ActivateHourDBInstanceWithContext(context.Background(), request)
}
// ActivateHourDBInstance
// 解隔离MariaDB按量计费实例
//
// 可能返回的错误码:
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETERVALUE_ILLEGALINSTANCEID = "InvalidParameterValue.IllegalInstanceId"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ActivateHourDBInstanceWithContext(ctx context.Context, request *ActivateHourDBInstanceRequest) (response *ActivateHourDBInstanceResponse, err error) {
if request == nil {
request = NewActivateHourDBInstanceRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ActivateHourDBInstance require credential")
}
request.SetContext(ctx)
response = NewActivateHourDBInstanceResponse()
err = c.Send(request, response)
return
}
func NewAssociateSecurityGroupsRequest() (request *AssociateSecurityGroupsRequest) {
request = &AssociateSecurityGroupsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "AssociateSecurityGroups")
return
}
func NewAssociateSecurityGroupsResponse() (response *AssociateSecurityGroupsResponse) {
response = &AssociateSecurityGroupsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// AssociateSecurityGroups
// 本接口 (AssociateSecurityGroups) 用于安全组批量绑定云资源。
//
// 可能返回的错误码:
// FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed"
// FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed"
// FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy"
// FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed"
// FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed"
// FAILEDOPERATION_SETRULELOCATIONFAILED = "FailedOperation.SetRuleLocationFailed"
// FAILEDOPERATION_SETSVCLOCATIONFAILED = "FailedOperation.SetSvcLocationFailed"
// FAILEDOPERATION_UPDATEINSTANCEINFOFAILED = "FailedOperation.UpdateInstanceInfoFailed"
// INTERNALERROR_DBROWSAFFECTEDERROR = "InternalError.DBRowsAffectedError"
// INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed"
// INTERNALERROR_GETUSGQUOTAERROR = "InternalError.GetUsgQuotaError"
// INTERNALERROR_INSERTFAIL = "InternalError.InsertFail"
// INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError"
// INTERNALERROR_INSTANCESGOVERLIMITERROR = "InternalError.InstanceSGOverLimitError"
// INTERNALERROR_LISTINSTANCERESPRESOURCECOUNTNOTMATCHERROR = "InternalError.ListInstanceRespResourceCountNotMatchError"
// INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError"
// INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed"
// INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed"
// INTERNALERROR_SETSVCLOCATIONFAILED = "InternalError.SetSvcLocationFailed"
// INTERNALERROR_UPDATEDATABASEFAILED = "InternalError.UpdateDatabaseFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
// INVALIDPARAMETER_SGCHECKFAIL = "InvalidParameter.SGCheckFail"
// RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// RESOURCEUNAVAILABLE_SGCHECKFAIL = "ResourceUnavailable.SGCheckFail"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) AssociateSecurityGroups(request *AssociateSecurityGroupsRequest) (response *AssociateSecurityGroupsResponse, err error) {
return c.AssociateSecurityGroupsWithContext(context.Background(), request)
}
// AssociateSecurityGroups
// 本接口 (AssociateSecurityGroups) 用于安全组批量绑定云资源。
//
// 可能返回的错误码:
// FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed"
// FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed"
// FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy"
// FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed"
// FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed"
// FAILEDOPERATION_SETRULELOCATIONFAILED = "FailedOperation.SetRuleLocationFailed"
// FAILEDOPERATION_SETSVCLOCATIONFAILED = "FailedOperation.SetSvcLocationFailed"
// FAILEDOPERATION_UPDATEINSTANCEINFOFAILED = "FailedOperation.UpdateInstanceInfoFailed"
// INTERNALERROR_DBROWSAFFECTEDERROR = "InternalError.DBRowsAffectedError"
// INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed"
// INTERNALERROR_GETUSGQUOTAERROR = "InternalError.GetUsgQuotaError"
// INTERNALERROR_INSERTFAIL = "InternalError.InsertFail"
// INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError"
// INTERNALERROR_INSTANCESGOVERLIMITERROR = "InternalError.InstanceSGOverLimitError"
// INTERNALERROR_LISTINSTANCERESPRESOURCECOUNTNOTMATCHERROR = "InternalError.ListInstanceRespResourceCountNotMatchError"
// INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError"
// INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed"
// INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed"
// INTERNALERROR_SETSVCLOCATIONFAILED = "InternalError.SetSvcLocationFailed"
// INTERNALERROR_UPDATEDATABASEFAILED = "InternalError.UpdateDatabaseFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
// INVALIDPARAMETER_SGCHECKFAIL = "InvalidParameter.SGCheckFail"
// RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// RESOURCEUNAVAILABLE_SGCHECKFAIL = "ResourceUnavailable.SGCheckFail"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) AssociateSecurityGroupsWithContext(ctx context.Context, request *AssociateSecurityGroupsRequest) (response *AssociateSecurityGroupsResponse, err error) {
if request == nil {
request = NewAssociateSecurityGroupsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("AssociateSecurityGroups require credential")
}
request.SetContext(ctx)
response = NewAssociateSecurityGroupsResponse()
err = c.Send(request, response)
return
}
func NewCancelDcnJobRequest() (request *CancelDcnJobRequest) {
request = &CancelDcnJobRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "CancelDcnJob")
return
}
func NewCancelDcnJobResponse() (response *CancelDcnJobResponse) {
response = &CancelDcnJobResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CancelDcnJob
// 本接口(CancelDcnJob)用于取消DCN同步
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR = "InternalError"
// INTERNALERROR_CREATEFLOWFAILED = "InternalError.CreateFlowFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) CancelDcnJob(request *CancelDcnJobRequest) (response *CancelDcnJobResponse, err error) {
return c.CancelDcnJobWithContext(context.Background(), request)
}
// CancelDcnJob
// 本接口(CancelDcnJob)用于取消DCN同步
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR = "InternalError"
// INTERNALERROR_CREATEFLOWFAILED = "InternalError.CreateFlowFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) CancelDcnJobWithContext(ctx context.Context, request *CancelDcnJobRequest) (response *CancelDcnJobResponse, err error) {
if request == nil {
request = NewCancelDcnJobRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CancelDcnJob require credential")
}
request.SetContext(ctx)
response = NewCancelDcnJobResponse()
err = c.Send(request, response)
return
}
func NewCloneAccountRequest() (request *CloneAccountRequest) {
request = &CloneAccountRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "CloneAccount")
return
}
func NewCloneAccountResponse() (response *CloneAccountResponse) {
response = &CloneAccountResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CloneAccount
// 本接口(CloneAccount)用于克隆实例账户。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETUSERLISTFAILED = "InternalError.GetUserListFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETERVALUE_ACCOUNTALREADYEXISTS = "InvalidParameterValue.AccountAlreadyExists"
// INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden"
// RESOURCENOTFOUND_ACCOUNTDOESNOTEXIST = "ResourceNotFound.AccountDoesNotExist"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"
func (c *Client) CloneAccount(request *CloneAccountRequest) (response *CloneAccountResponse, err error) {
return c.CloneAccountWithContext(context.Background(), request)
}
// CloneAccount
// 本接口(CloneAccount)用于克隆实例账户。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETUSERLISTFAILED = "InternalError.GetUserListFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETERVALUE_ACCOUNTALREADYEXISTS = "InvalidParameterValue.AccountAlreadyExists"
// INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden"
// RESOURCENOTFOUND_ACCOUNTDOESNOTEXIST = "ResourceNotFound.AccountDoesNotExist"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"
func (c *Client) CloneAccountWithContext(ctx context.Context, request *CloneAccountRequest) (response *CloneAccountResponse, err error) {
if request == nil {
request = NewCloneAccountRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CloneAccount require credential")
}
request.SetContext(ctx)
response = NewCloneAccountResponse()
err = c.Send(request, response)
return
}
func NewCloseDBExtranetAccessRequest() (request *CloseDBExtranetAccessRequest) {
request = &CloseDBExtranetAccessRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "CloseDBExtranetAccess")
return
}
func NewCloseDBExtranetAccessResponse() (response *CloseDBExtranetAccessResponse) {
response = &CloseDBExtranetAccessResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CloseDBExtranetAccess
// 本接口(CloseDBExtranetAccess)用于关闭云数据库实例的外网访问。关闭外网访问后,外网地址将不可访问,查询实例列表接口将不返回对应实例的外网域名和端口信息。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INTERNALERROR_WANSERVICEFAILED = "InternalError.WanServiceFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) CloseDBExtranetAccess(request *CloseDBExtranetAccessRequest) (response *CloseDBExtranetAccessResponse, err error) {
return c.CloseDBExtranetAccessWithContext(context.Background(), request)
}
// CloseDBExtranetAccess
// 本接口(CloseDBExtranetAccess)用于关闭云数据库实例的外网访问。关闭外网访问后,外网地址将不可访问,查询实例列表接口将不返回对应实例的外网域名和端口信息。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INTERNALERROR_WANSERVICEFAILED = "InternalError.WanServiceFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) CloseDBExtranetAccessWithContext(ctx context.Context, request *CloseDBExtranetAccessRequest) (response *CloseDBExtranetAccessResponse, err error) {
if request == nil {
request = NewCloseDBExtranetAccessRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CloseDBExtranetAccess require credential")
}
request.SetContext(ctx)
response = NewCloseDBExtranetAccessResponse()
err = c.Send(request, response)
return
}
func NewCopyAccountPrivilegesRequest() (request *CopyAccountPrivilegesRequest) {
request = &CopyAccountPrivilegesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "CopyAccountPrivileges")
return
}
func NewCopyAccountPrivilegesResponse() (response *CopyAccountPrivilegesResponse) {
response = &CopyAccountPrivilegesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CopyAccountPrivileges
// 本接口(CopyAccountPrivileges)用于复制云数据库账号的权限。
//
// 注意:相同用户名,不同Host是不同的账号,Readonly属性相同的账号之间才能复制权限。
//
// 可能返回的错误码:
// FAILEDOPERATION_COPYRIGHTERROR = "FailedOperation.CopyRightError"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETERVALUE_BADUSERTYPE = "InvalidParameterValue.BadUserType"
// RESOURCENOTFOUND_ACCOUNTDOESNOTEXIST = "ResourceNotFound.AccountDoesNotExist"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) CopyAccountPrivileges(request *CopyAccountPrivilegesRequest) (response *CopyAccountPrivilegesResponse, err error) {
return c.CopyAccountPrivilegesWithContext(context.Background(), request)
}
// CopyAccountPrivileges
// 本接口(CopyAccountPrivileges)用于复制云数据库账号的权限。
//
// 注意:相同用户名,不同Host是不同的账号,Readonly属性相同的账号之间才能复制权限。
//
// 可能返回的错误码:
// FAILEDOPERATION_COPYRIGHTERROR = "FailedOperation.CopyRightError"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETERVALUE_BADUSERTYPE = "InvalidParameterValue.BadUserType"
// RESOURCENOTFOUND_ACCOUNTDOESNOTEXIST = "ResourceNotFound.AccountDoesNotExist"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) CopyAccountPrivilegesWithContext(ctx context.Context, request *CopyAccountPrivilegesRequest) (response *CopyAccountPrivilegesResponse, err error) {
if request == nil {
request = NewCopyAccountPrivilegesRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CopyAccountPrivileges require credential")
}
request.SetContext(ctx)
response = NewCopyAccountPrivilegesResponse()
err = c.Send(request, response)
return
}
func NewCreateAccountRequest() (request *CreateAccountRequest) {
request = &CreateAccountRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "CreateAccount")
return
}
func NewCreateAccountResponse() (response *CreateAccountResponse) {
response = &CreateAccountResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateAccount
// 本接口(CreateAccount)用于创建云数据库账号。一个实例可以创建多个不同的账号,相同的用户名+不同的host是不同的账号。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEUSERFAILED = "FailedOperation.CreateUserFailed"
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETUSERLISTFAILED = "InternalError.GetUserListFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_CHARACTERERROR = "InvalidParameter.CharacterError"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETERVALUE_ACCOUNTALREADYEXISTS = "InvalidParameterValue.AccountAlreadyExists"
// INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_OLDPROXYVERSION = "UnsupportedOperation.OldProxyVersion"
func (c *Client) CreateAccount(request *CreateAccountRequest) (response *CreateAccountResponse, err error) {
return c.CreateAccountWithContext(context.Background(), request)
}
// CreateAccount
// 本接口(CreateAccount)用于创建云数据库账号。一个实例可以创建多个不同的账号,相同的用户名+不同的host是不同的账号。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEUSERFAILED = "FailedOperation.CreateUserFailed"
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETUSERLISTFAILED = "InternalError.GetUserListFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_CHARACTERERROR = "InvalidParameter.CharacterError"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETERVALUE_ACCOUNTALREADYEXISTS = "InvalidParameterValue.AccountAlreadyExists"
// INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_OLDPROXYVERSION = "UnsupportedOperation.OldProxyVersion"
func (c *Client) CreateAccountWithContext(ctx context.Context, request *CreateAccountRequest) (response *CreateAccountResponse, err error) {
if request == nil {
request = NewCreateAccountRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateAccount require credential")
}
request.SetContext(ctx)
response = NewCreateAccountResponse()
err = c.Send(request, response)
return
}
func NewCreateDBInstanceRequest() (request *CreateDBInstanceRequest) {
request = &CreateDBInstanceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "CreateDBInstance")
return
}
func NewCreateDBInstanceResponse() (response *CreateDBInstanceResponse) {
response = &CreateDBInstanceResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateDBInstance
// 本接口(CreateDBInstance)用于创建包年包月的MariaDB云数据库实例,可通过传入实例规格、数据库版本号、购买时长和数量等信息创建云数据库实例。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed"
// FAILEDOPERATION_PAYFAILED = "FailedOperation.PayFailed"
// FAILEDOPERATION_TAGDRYRUNERROR = "FailedOperation.TagDryRunError"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_CHECKVIPSTATUSFAILED = "InternalError.CheckVipStatusFailed"
// INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
// INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER_CHECKPARAMNOTPASS = "InvalidParameter.CheckParamNotPass"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_SUBNETNOTFOUND = "InvalidParameter.SubnetNotFound"
// INVALIDPARAMETER_VPCNOTFOUND = "InvalidParameter.VpcNotFound"
// INVALIDPARAMETERVALUE_ILLEGALCOUNT = "InvalidParameterValue.IllegalCount"
// INVALIDPARAMETERVALUE_ILLEGALQUANTITY = "InvalidParameterValue.IllegalQuantity"
// INVALIDPARAMETERVALUE_ILLEGALZONE = "InvalidParameterValue.IllegalZone"
// INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_DBVERSIONNOTSUPPORTED = "UnsupportedOperation.DbVersionNotSupported"
func (c *Client) CreateDBInstance(request *CreateDBInstanceRequest) (response *CreateDBInstanceResponse, err error) {
return c.CreateDBInstanceWithContext(context.Background(), request)
}
// CreateDBInstance
// 本接口(CreateDBInstance)用于创建包年包月的MariaDB云数据库实例,可通过传入实例规格、数据库版本号、购买时长和数量等信息创建云数据库实例。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed"
// FAILEDOPERATION_PAYFAILED = "FailedOperation.PayFailed"
// FAILEDOPERATION_TAGDRYRUNERROR = "FailedOperation.TagDryRunError"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_CHECKVIPSTATUSFAILED = "InternalError.CheckVipStatusFailed"
// INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
// INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER_CHECKPARAMNOTPASS = "InvalidParameter.CheckParamNotPass"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_SUBNETNOTFOUND = "InvalidParameter.SubnetNotFound"
// INVALIDPARAMETER_VPCNOTFOUND = "InvalidParameter.VpcNotFound"
// INVALIDPARAMETERVALUE_ILLEGALCOUNT = "InvalidParameterValue.IllegalCount"
// INVALIDPARAMETERVALUE_ILLEGALQUANTITY = "InvalidParameterValue.IllegalQuantity"
// INVALIDPARAMETERVALUE_ILLEGALZONE = "InvalidParameterValue.IllegalZone"
// INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_DBVERSIONNOTSUPPORTED = "UnsupportedOperation.DbVersionNotSupported"
func (c *Client) CreateDBInstanceWithContext(ctx context.Context, request *CreateDBInstanceRequest) (response *CreateDBInstanceResponse, err error) {
if request == nil {
request = NewCreateDBInstanceRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateDBInstance require credential")
}
request.SetContext(ctx)
response = NewCreateDBInstanceResponse()
err = c.Send(request, response)
return
}
func NewCreateDedicatedClusterDBInstanceRequest() (request *CreateDedicatedClusterDBInstanceRequest) {
request = &CreateDedicatedClusterDBInstanceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "CreateDedicatedClusterDBInstance")
return
}
func NewCreateDedicatedClusterDBInstanceResponse() (response *CreateDedicatedClusterDBInstanceResponse) {
response = &CreateDedicatedClusterDBInstanceResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateDedicatedClusterDBInstance
// 创建Mariadb独享集群实例
//
// 可能返回的错误码:
// FAILEDOPERATION_TAGQUOTAEXCEEDLIMIT = "FailedOperation.TagQuotaExceedLimit"
// INTERNALERROR_CHECKVIPSTATUSFAILED = "InternalError.CheckVipStatusFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_FENCEERROR = "InternalError.FenceError"
// INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
// INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER_CHECKPARAMNOTPASS = "InvalidParameter.CheckParamNotPass"
// INVALIDPARAMETER_VPCNOTFOUND = "InvalidParameter.VpcNotFound"
// INVALIDPARAMETERVALUE_ILLEGALEXCLUSTERID = "InvalidParameterValue.IllegalExclusterID"
// INVALIDPARAMETERVALUE_ILLEGALZONE = "InvalidParameterValue.IllegalZone"
// INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCEUNAVAILABLE_EXCLUSTERSTATUSABNORMAL = "ResourceUnavailable.ExclusterStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) CreateDedicatedClusterDBInstance(request *CreateDedicatedClusterDBInstanceRequest) (response *CreateDedicatedClusterDBInstanceResponse, err error) {
return c.CreateDedicatedClusterDBInstanceWithContext(context.Background(), request)
}
// CreateDedicatedClusterDBInstance
// 创建Mariadb独享集群实例
//
// 可能返回的错误码:
// FAILEDOPERATION_TAGQUOTAEXCEEDLIMIT = "FailedOperation.TagQuotaExceedLimit"
// INTERNALERROR_CHECKVIPSTATUSFAILED = "InternalError.CheckVipStatusFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_FENCEERROR = "InternalError.FenceError"
// INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
// INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER_CHECKPARAMNOTPASS = "InvalidParameter.CheckParamNotPass"
// INVALIDPARAMETER_VPCNOTFOUND = "InvalidParameter.VpcNotFound"
// INVALIDPARAMETERVALUE_ILLEGALEXCLUSTERID = "InvalidParameterValue.IllegalExclusterID"
// INVALIDPARAMETERVALUE_ILLEGALZONE = "InvalidParameterValue.IllegalZone"
// INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCEUNAVAILABLE_EXCLUSTERSTATUSABNORMAL = "ResourceUnavailable.ExclusterStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) CreateDedicatedClusterDBInstanceWithContext(ctx context.Context, request *CreateDedicatedClusterDBInstanceRequest) (response *CreateDedicatedClusterDBInstanceResponse, err error) {
if request == nil {
request = NewCreateDedicatedClusterDBInstanceRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateDedicatedClusterDBInstance require credential")
}
request.SetContext(ctx)
response = NewCreateDedicatedClusterDBInstanceResponse()
err = c.Send(request, response)
return
}
func NewCreateHourDBInstanceRequest() (request *CreateHourDBInstanceRequest) {
request = &CreateHourDBInstanceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "CreateHourDBInstance")
return
}
func NewCreateHourDBInstanceResponse() (response *CreateHourDBInstanceResponse) {
response = &CreateHourDBInstanceResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateHourDBInstance
// 创建MariaDB按量计费实例
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed"
// FAILEDOPERATION_TAGDRYRUNERROR = "FailedOperation.TagDryRunError"
// FAILEDOPERATION_USERNOTAUTHED = "FailedOperation.UserNotAuthed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_CHECKVIPSTATUSFAILED = "InternalError.CheckVipStatusFailed"
// INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
// INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
// INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_CHECKPARAMNOTPASS = "InvalidParameter.CheckParamNotPass"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_SUBNETNOTFOUND = "InvalidParameter.SubnetNotFound"
// INVALIDPARAMETER_VPCNOTFOUND = "InvalidParameter.VpcNotFound"
// INVALIDPARAMETERVALUE_ILLEGALQUANTITY = "InvalidParameterValue.IllegalQuantity"
// INVALIDPARAMETERVALUE_ILLEGALZONE = "InvalidParameterValue.IllegalZone"
// INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_DBVERSIONNOTSUPPORTED = "UnsupportedOperation.DbVersionNotSupported"
func (c *Client) CreateHourDBInstance(request *CreateHourDBInstanceRequest) (response *CreateHourDBInstanceResponse, err error) {
return c.CreateHourDBInstanceWithContext(context.Background(), request)
}
// CreateHourDBInstance
// 创建MariaDB按量计费实例
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed"
// FAILEDOPERATION_TAGDRYRUNERROR = "FailedOperation.TagDryRunError"
// FAILEDOPERATION_USERNOTAUTHED = "FailedOperation.UserNotAuthed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_CHECKVIPSTATUSFAILED = "InternalError.CheckVipStatusFailed"
// INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
// INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
// INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_CHECKPARAMNOTPASS = "InvalidParameter.CheckParamNotPass"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_SUBNETNOTFOUND = "InvalidParameter.SubnetNotFound"
// INVALIDPARAMETER_VPCNOTFOUND = "InvalidParameter.VpcNotFound"
// INVALIDPARAMETERVALUE_ILLEGALQUANTITY = "InvalidParameterValue.IllegalQuantity"
// INVALIDPARAMETERVALUE_ILLEGALZONE = "InvalidParameterValue.IllegalZone"
// INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_DBVERSIONNOTSUPPORTED = "UnsupportedOperation.DbVersionNotSupported"
func (c *Client) CreateHourDBInstanceWithContext(ctx context.Context, request *CreateHourDBInstanceRequest) (response *CreateHourDBInstanceResponse, err error) {
if request == nil {
request = NewCreateHourDBInstanceRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateHourDBInstance require credential")
}
request.SetContext(ctx)
response = NewCreateHourDBInstanceResponse()
err = c.Send(request, response)
return
}
func NewCreateTmpInstancesRequest() (request *CreateTmpInstancesRequest) {
request = &CreateTmpInstancesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "CreateTmpInstances")
return
}
func NewCreateTmpInstancesResponse() (response *CreateTmpInstancesResponse) {
response = &CreateTmpInstancesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateTmpInstances
// 本接口(CreateTmpInstances)用于创建临时实例。
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR = "InternalError"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
// INTERNALERROR_RETREATETIME = "InternalError.RetreateTime"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound"
// INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
// RESOURCEINUSE_TEMPINSTANCEEXIST = "ResourceInUse.TempInstanceExist"
// RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) CreateTmpInstances(request *CreateTmpInstancesRequest) (response *CreateTmpInstancesResponse, err error) {
return c.CreateTmpInstancesWithContext(context.Background(), request)
}
// CreateTmpInstances
// 本接口(CreateTmpInstances)用于创建临时实例。
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR = "InternalError"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
// INTERNALERROR_RETREATETIME = "InternalError.RetreateTime"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound"
// INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
// RESOURCEINUSE_TEMPINSTANCEEXIST = "ResourceInUse.TempInstanceExist"
// RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) CreateTmpInstancesWithContext(ctx context.Context, request *CreateTmpInstancesRequest) (response *CreateTmpInstancesResponse, err error) {
if request == nil {
request = NewCreateTmpInstancesRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateTmpInstances require credential")
}
request.SetContext(ctx)
response = NewCreateTmpInstancesResponse()
err = c.Send(request, response)
return
}
func NewDeleteAccountRequest() (request *DeleteAccountRequest) {
request = &DeleteAccountRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DeleteAccount")
return
}
func NewDeleteAccountResponse() (response *DeleteAccountResponse) {
response = &DeleteAccountResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteAccount
// 本接口(DeleteAccount)用于删除云数据库账号。用户名+host唯一确定一个账号。
//
// 可能返回的错误码:
// FAILEDOPERATION_DELETEUSERFAILED = "FailedOperation.DeleteUserFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DeleteAccount(request *DeleteAccountRequest) (response *DeleteAccountResponse, err error) {
return c.DeleteAccountWithContext(context.Background(), request)
}
// DeleteAccount
// 本接口(DeleteAccount)用于删除云数据库账号。用户名+host唯一确定一个账号。
//
// 可能返回的错误码:
// FAILEDOPERATION_DELETEUSERFAILED = "FailedOperation.DeleteUserFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DeleteAccountWithContext(ctx context.Context, request *DeleteAccountRequest) (response *DeleteAccountResponse, err error) {
if request == nil {
request = NewDeleteAccountRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeleteAccount require credential")
}
request.SetContext(ctx)
response = NewDeleteAccountResponse()
err = c.Send(request, response)
return
}
func NewDescribeAccountPrivilegesRequest() (request *DescribeAccountPrivilegesRequest) {
request = &DescribeAccountPrivilegesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeAccountPrivileges")
return
}
func NewDescribeAccountPrivilegesResponse() (response *DescribeAccountPrivilegesResponse) {
response = &DescribeAccountPrivilegesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeAccountPrivileges
// 本接口(DescribeAccountPrivileges)用于查询云数据库账号权限。
//
// 注意:注意:相同用户名,不同Host是不同的账号。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETRIGHTFAILED = "InternalError.GetRightFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeAccountPrivileges(request *DescribeAccountPrivilegesRequest) (response *DescribeAccountPrivilegesResponse, err error) {
return c.DescribeAccountPrivilegesWithContext(context.Background(), request)
}
// DescribeAccountPrivileges
// 本接口(DescribeAccountPrivileges)用于查询云数据库账号权限。
//
// 注意:注意:相同用户名,不同Host是不同的账号。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETRIGHTFAILED = "InternalError.GetRightFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeAccountPrivilegesWithContext(ctx context.Context, request *DescribeAccountPrivilegesRequest) (response *DescribeAccountPrivilegesResponse, err error) {
if request == nil {
request = NewDescribeAccountPrivilegesRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeAccountPrivileges require credential")
}
request.SetContext(ctx)
response = NewDescribeAccountPrivilegesResponse()
err = c.Send(request, response)
return
}
func NewDescribeAccountsRequest() (request *DescribeAccountsRequest) {
request = &DescribeAccountsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeAccounts")
return
}
func NewDescribeAccountsResponse() (response *DescribeAccountsResponse) {
response = &DescribeAccountsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeAccounts
// 本接口(DescribeAccounts)用于查询指定云数据库实例的账号列表。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETUSERLISTFAILED = "InternalError.GetUserListFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeAccounts(request *DescribeAccountsRequest) (response *DescribeAccountsResponse, err error) {
return c.DescribeAccountsWithContext(context.Background(), request)
}
// DescribeAccounts
// 本接口(DescribeAccounts)用于查询指定云数据库实例的账号列表。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETUSERLISTFAILED = "InternalError.GetUserListFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeAccountsWithContext(ctx context.Context, request *DescribeAccountsRequest) (response *DescribeAccountsResponse, err error) {
if request == nil {
request = NewDescribeAccountsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeAccounts require credential")
}
request.SetContext(ctx)
response = NewDescribeAccountsResponse()
err = c.Send(request, response)
return
}
func NewDescribeBackupFilesRequest() (request *DescribeBackupFilesRequest) {
request = &DescribeBackupFilesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeBackupFiles")
return
}
func NewDescribeBackupFilesResponse() (response *DescribeBackupFilesResponse) {
response = &DescribeBackupFilesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeBackupFiles
// 本接口(DescribeBackupFiles)用于查看备份文件列表。
//
// 可能返回的错误码:
// INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeBackupFiles(request *DescribeBackupFilesRequest) (response *DescribeBackupFilesResponse, err error) {
return c.DescribeBackupFilesWithContext(context.Background(), request)
}
// DescribeBackupFiles
// 本接口(DescribeBackupFiles)用于查看备份文件列表。
//
// 可能返回的错误码:
// INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeBackupFilesWithContext(ctx context.Context, request *DescribeBackupFilesRequest) (response *DescribeBackupFilesResponse, err error) {
if request == nil {
request = NewDescribeBackupFilesRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeBackupFiles require credential")
}
request.SetContext(ctx)
response = NewDescribeBackupFilesResponse()
err = c.Send(request, response)
return
}
func NewDescribeBackupTimeRequest() (request *DescribeBackupTimeRequest) {
request = &DescribeBackupTimeRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeBackupTime")
return
}
func NewDescribeBackupTimeResponse() (response *DescribeBackupTimeResponse) {
response = &DescribeBackupTimeResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeBackupTime
// 本接口(DescribeBackupTime)用于获取云数据库的备份时间。后台系统将根据此配置定期进行实例备份。
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETINSTANCEDETAILFAILED = "InternalError.GetInstanceDetailFailed"
// INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeBackupTime(request *DescribeBackupTimeRequest) (response *DescribeBackupTimeResponse, err error) {
return c.DescribeBackupTimeWithContext(context.Background(), request)
}
// DescribeBackupTime
// 本接口(DescribeBackupTime)用于获取云数据库的备份时间。后台系统将根据此配置定期进行实例备份。
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETINSTANCEDETAILFAILED = "InternalError.GetInstanceDetailFailed"
// INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeBackupTimeWithContext(ctx context.Context, request *DescribeBackupTimeRequest) (response *DescribeBackupTimeResponse, err error) {
if request == nil {
request = NewDescribeBackupTimeRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeBackupTime require credential")
}
request.SetContext(ctx)
response = NewDescribeBackupTimeResponse()
err = c.Send(request, response)
return
}
func NewDescribeDBEncryptAttributesRequest() (request *DescribeDBEncryptAttributesRequest) {
request = &DescribeDBEncryptAttributesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeDBEncryptAttributes")
return
}
func NewDescribeDBEncryptAttributesResponse() (response *DescribeDBEncryptAttributesResponse) {
response = &DescribeDBEncryptAttributesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDBEncryptAttributes
// 本接口(DescribeDBEncryptAttributes)用于查询实例数据加密状态。
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR = "InternalError"
// INTERNALERROR_GETCIPHERTEXTFAILED = "InternalError.GetCipherTextFailed"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"
func (c *Client) DescribeDBEncryptAttributes(request *DescribeDBEncryptAttributesRequest) (response *DescribeDBEncryptAttributesResponse, err error) {
return c.DescribeDBEncryptAttributesWithContext(context.Background(), request)
}
// DescribeDBEncryptAttributes
// 本接口(DescribeDBEncryptAttributes)用于查询实例数据加密状态。
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR = "InternalError"
// INTERNALERROR_GETCIPHERTEXTFAILED = "InternalError.GetCipherTextFailed"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"
func (c *Client) DescribeDBEncryptAttributesWithContext(ctx context.Context, request *DescribeDBEncryptAttributesRequest) (response *DescribeDBEncryptAttributesResponse, err error) {
if request == nil {
request = NewDescribeDBEncryptAttributesRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeDBEncryptAttributes require credential")
}
request.SetContext(ctx)
response = NewDescribeDBEncryptAttributesResponse()
err = c.Send(request, response)
return
}
func NewDescribeDBInstanceDetailRequest() (request *DescribeDBInstanceDetailRequest) {
request = &DescribeDBInstanceDetailRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeDBInstanceDetail")
return
}
func NewDescribeDBInstanceDetailResponse() (response *DescribeDBInstanceDetailResponse) {
response = &DescribeDBInstanceDetailResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDBInstanceDetail
// 本接口(DescribeDBInstanceDetail)用于查询指定实例的详细信息。
//
// 可能返回的错误码:
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETINSTANCEDETAILFAILED = "InternalError.GetInstanceDetailFailed"
// INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDBInstanceDetail(request *DescribeDBInstanceDetailRequest) (response *DescribeDBInstanceDetailResponse, err error) {
return c.DescribeDBInstanceDetailWithContext(context.Background(), request)
}
// DescribeDBInstanceDetail
// 本接口(DescribeDBInstanceDetail)用于查询指定实例的详细信息。
//
// 可能返回的错误码:
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETINSTANCEDETAILFAILED = "InternalError.GetInstanceDetailFailed"
// INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDBInstanceDetailWithContext(ctx context.Context, request *DescribeDBInstanceDetailRequest) (response *DescribeDBInstanceDetailResponse, err error) {
if request == nil {
request = NewDescribeDBInstanceDetailRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeDBInstanceDetail require credential")
}
request.SetContext(ctx)
response = NewDescribeDBInstanceDetailResponse()
err = c.Send(request, response)
return
}
func NewDescribeDBInstanceSpecsRequest() (request *DescribeDBInstanceSpecsRequest) {
request = &DescribeDBInstanceSpecsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeDBInstanceSpecs")
return
}
func NewDescribeDBInstanceSpecsResponse() (response *DescribeDBInstanceSpecsResponse) {
response = &DescribeDBInstanceSpecsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDBInstanceSpecs
// 本接口(DescribeDBInstanceSpecs)用于查询可创建的云数据库可售卖的规格配置。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDBInstanceSpecs(request *DescribeDBInstanceSpecsRequest) (response *DescribeDBInstanceSpecsResponse, err error) {
return c.DescribeDBInstanceSpecsWithContext(context.Background(), request)
}
// DescribeDBInstanceSpecs
// 本接口(DescribeDBInstanceSpecs)用于查询可创建的云数据库可售卖的规格配置。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDBInstanceSpecsWithContext(ctx context.Context, request *DescribeDBInstanceSpecsRequest) (response *DescribeDBInstanceSpecsResponse, err error) {
if request == nil {
request = NewDescribeDBInstanceSpecsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeDBInstanceSpecs require credential")
}
request.SetContext(ctx)
response = NewDescribeDBInstanceSpecsResponse()
err = c.Send(request, response)
return
}
func NewDescribeDBInstancesRequest() (request *DescribeDBInstancesRequest) {
request = &DescribeDBInstancesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeDBInstances")
return
}
func NewDescribeDBInstancesResponse() (response *DescribeDBInstancesResponse) {
response = &DescribeDBInstancesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDBInstances
// 本接口(DescribeDBInstances)用于查询云数据库实例列表,支持通过项目ID、实例ID、内网地址、实例名称等来筛选实例。
//
// 如果不指定任何筛选条件,则默认返回20条实例记录,单次请求最多支持返回100条实例记录。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_FENCEERROR = "InternalError.FenceError"
// INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_SUBNETNOTFOUND = "InvalidParameter.SubnetNotFound"
// INVALIDPARAMETERVALUE_ILLEGALEXCLUSTERID = "InvalidParameterValue.IllegalExclusterID"
// INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDBInstances(request *DescribeDBInstancesRequest) (response *DescribeDBInstancesResponse, err error) {
return c.DescribeDBInstancesWithContext(context.Background(), request)
}
// DescribeDBInstances
// 本接口(DescribeDBInstances)用于查询云数据库实例列表,支持通过项目ID、实例ID、内网地址、实例名称等来筛选实例。
//
// 如果不指定任何筛选条件,则默认返回20条实例记录,单次请求最多支持返回100条实例记录。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_FENCEERROR = "InternalError.FenceError"
// INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_SUBNETNOTFOUND = "InvalidParameter.SubnetNotFound"
// INVALIDPARAMETERVALUE_ILLEGALEXCLUSTERID = "InvalidParameterValue.IllegalExclusterID"
// INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDBInstancesWithContext(ctx context.Context, request *DescribeDBInstancesRequest) (response *DescribeDBInstancesResponse, err error) {
if request == nil {
request = NewDescribeDBInstancesRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeDBInstances require credential")
}
request.SetContext(ctx)
response = NewDescribeDBInstancesResponse()
err = c.Send(request, response)
return
}
func NewDescribeDBLogFilesRequest() (request *DescribeDBLogFilesRequest) {
request = &DescribeDBLogFilesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeDBLogFiles")
return
}
func NewDescribeDBLogFilesResponse() (response *DescribeDBLogFilesResponse) {
response = &DescribeDBLogFilesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDBLogFiles
// 本接口(DescribeDBLogFiles)用于获取数据库的各种日志列表,包括冷备、binlog、errlog和slowlog。
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR_COSCONFIGURATION = "InternalError.CosConfiguration"
// INTERNALERROR_COSSIGNURL = "InternalError.CosSignUrl"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed"
// INTERNALERROR_HDFSERROR = "InternalError.HDFSError"
// INTERNALERROR_INNERCONFIGURATIONMISSING = "InternalError.InnerConfigurationMissing"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_SHARDRESOURCEIDNOTFOUND = "InvalidParameter.ShardResourceIdNotFound"
// RESOURCEUNAVAILABLE_COSAPIFAILED = "ResourceUnavailable.CosApiFailed"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDBLogFiles(request *DescribeDBLogFilesRequest) (response *DescribeDBLogFilesResponse, err error) {
return c.DescribeDBLogFilesWithContext(context.Background(), request)
}
// DescribeDBLogFiles
// 本接口(DescribeDBLogFiles)用于获取数据库的各种日志列表,包括冷备、binlog、errlog和slowlog。
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR_COSCONFIGURATION = "InternalError.CosConfiguration"
// INTERNALERROR_COSSIGNURL = "InternalError.CosSignUrl"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed"
// INTERNALERROR_HDFSERROR = "InternalError.HDFSError"
// INTERNALERROR_INNERCONFIGURATIONMISSING = "InternalError.InnerConfigurationMissing"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_SHARDRESOURCEIDNOTFOUND = "InvalidParameter.ShardResourceIdNotFound"
// RESOURCEUNAVAILABLE_COSAPIFAILED = "ResourceUnavailable.CosApiFailed"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDBLogFilesWithContext(ctx context.Context, request *DescribeDBLogFilesRequest) (response *DescribeDBLogFilesResponse, err error) {
if request == nil {
request = NewDescribeDBLogFilesRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeDBLogFiles require credential")
}
request.SetContext(ctx)
response = NewDescribeDBLogFilesResponse()
err = c.Send(request, response)
return
}
func NewDescribeDBParametersRequest() (request *DescribeDBParametersRequest) {
request = &DescribeDBParametersRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeDBParameters")
return
}
func NewDescribeDBParametersResponse() (response *DescribeDBParametersResponse) {
response = &DescribeDBParametersResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDBParameters
// 本接口(DescribeDBParameters)用于获取数据库的当前参数设置。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETDBCONFIGFAILED = "InternalError.GetDbConfigFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDBParameters(request *DescribeDBParametersRequest) (response *DescribeDBParametersResponse, err error) {
return c.DescribeDBParametersWithContext(context.Background(), request)
}
// DescribeDBParameters
// 本接口(DescribeDBParameters)用于获取数据库的当前参数设置。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETDBCONFIGFAILED = "InternalError.GetDbConfigFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDBParametersWithContext(ctx context.Context, request *DescribeDBParametersRequest) (response *DescribeDBParametersResponse, err error) {
if request == nil {
request = NewDescribeDBParametersRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeDBParameters require credential")
}
request.SetContext(ctx)
response = NewDescribeDBParametersResponse()
err = c.Send(request, response)
return
}
func NewDescribeDBSecurityGroupsRequest() (request *DescribeDBSecurityGroupsRequest) {
request = &DescribeDBSecurityGroupsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeDBSecurityGroups")
return
}
func NewDescribeDBSecurityGroupsResponse() (response *DescribeDBSecurityGroupsResponse) {
response = &DescribeDBSecurityGroupsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDBSecurityGroups
// 本接口(DescribeDBSecurityGroups)用于查询实例安全组信息
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy"
// FAILEDOPERATION_GETSECURITYGROUPDETAILFAILED = "FailedOperation.GetSecurityGroupDetailFailed"
// INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed"
// INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError"
// INTERNALERROR_LISTINSTANCERESPRESOURCECOUNTNOTMATCHERROR = "InternalError.ListInstanceRespResourceCountNotMatchError"
// INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError"
// INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed"
// INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed"
// INTERNALERROR_ROUTENOTFOUND = "InternalError.RouteNotFound"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
// RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDBSecurityGroups(request *DescribeDBSecurityGroupsRequest) (response *DescribeDBSecurityGroupsResponse, err error) {
return c.DescribeDBSecurityGroupsWithContext(context.Background(), request)
}
// DescribeDBSecurityGroups
// 本接口(DescribeDBSecurityGroups)用于查询实例安全组信息
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy"
// FAILEDOPERATION_GETSECURITYGROUPDETAILFAILED = "FailedOperation.GetSecurityGroupDetailFailed"
// INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed"
// INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError"
// INTERNALERROR_LISTINSTANCERESPRESOURCECOUNTNOTMATCHERROR = "InternalError.ListInstanceRespResourceCountNotMatchError"
// INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError"
// INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed"
// INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed"
// INTERNALERROR_ROUTENOTFOUND = "InternalError.RouteNotFound"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
// INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
// RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
// RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDBSecurityGroupsWithContext(ctx context.Context, request *DescribeDBSecurityGroupsRequest) (response *DescribeDBSecurityGroupsResponse, err error) {
if request == nil {
request = NewDescribeDBSecurityGroupsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeDBSecurityGroups require credential")
}
request.SetContext(ctx)
response = NewDescribeDBSecurityGroupsResponse()
err = c.Send(request, response)
return
}
func NewDescribeDBSlowLogsRequest() (request *DescribeDBSlowLogsRequest) {
request = &DescribeDBSlowLogsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeDBSlowLogs")
return
}
func NewDescribeDBSlowLogsResponse() (response *DescribeDBSlowLogsResponse) {
response = &DescribeDBSlowLogsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDBSlowLogs
// 本接口(DescribeDBSlowLogs)用于查询慢查询日志列表。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed"
// INTERNALERROR_GETSLOWLOGFAILED = "InternalError.GetSlowLogFailed"
// INTERNALERROR_LOGDBFAILED = "InternalError.LogDBFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_ILLEGALTIME = "InvalidParameter.IllegalTime"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDBSlowLogs(request *DescribeDBSlowLogsRequest) (response *DescribeDBSlowLogsResponse, err error) {
return c.DescribeDBSlowLogsWithContext(context.Background(), request)
}
// DescribeDBSlowLogs
// 本接口(DescribeDBSlowLogs)用于查询慢查询日志列表。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed"
// INTERNALERROR_GETSLOWLOGFAILED = "InternalError.GetSlowLogFailed"
// INTERNALERROR_LOGDBFAILED = "InternalError.LogDBFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_ILLEGALTIME = "InvalidParameter.IllegalTime"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDBSlowLogsWithContext(ctx context.Context, request *DescribeDBSlowLogsRequest) (response *DescribeDBSlowLogsResponse, err error) {
if request == nil {
request = NewDescribeDBSlowLogsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeDBSlowLogs require credential")
}
request.SetContext(ctx)
response = NewDescribeDBSlowLogsResponse()
err = c.Send(request, response)
return
}
func NewDescribeDBTmpInstancesRequest() (request *DescribeDBTmpInstancesRequest) {
request = &DescribeDBTmpInstancesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeDBTmpInstances")
return
}
func NewDescribeDBTmpInstancesResponse() (response *DescribeDBTmpInstancesResponse) {
response = &DescribeDBTmpInstancesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDBTmpInstances
// 本接口(DescribeDBTmpInstances)用于获取实例回档生成的临时实例
//
// 可能返回的错误码:
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDBTmpInstances(request *DescribeDBTmpInstancesRequest) (response *DescribeDBTmpInstancesResponse, err error) {
return c.DescribeDBTmpInstancesWithContext(context.Background(), request)
}
// DescribeDBTmpInstances
// 本接口(DescribeDBTmpInstances)用于获取实例回档生成的临时实例
//
// 可能返回的错误码:
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDBTmpInstancesWithContext(ctx context.Context, request *DescribeDBTmpInstancesRequest) (response *DescribeDBTmpInstancesResponse, err error) {
if request == nil {
request = NewDescribeDBTmpInstancesRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeDBTmpInstances require credential")
}
request.SetContext(ctx)
response = NewDescribeDBTmpInstancesResponse()
err = c.Send(request, response)
return
}
func NewDescribeDatabaseObjectsRequest() (request *DescribeDatabaseObjectsRequest) {
request = &DescribeDatabaseObjectsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeDatabaseObjects")
return
}
func NewDescribeDatabaseObjectsResponse() (response *DescribeDatabaseObjectsResponse) {
response = &DescribeDatabaseObjectsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDatabaseObjects
// 本接口(DescribeDatabaseObjects)用于查询云数据库实例的数据库中的对象列表,包含表、存储过程、视图和函数。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETDBOBJECTFAILED = "InternalError.GetDbObjectFailed"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDatabaseObjects(request *DescribeDatabaseObjectsRequest) (response *DescribeDatabaseObjectsResponse, err error) {
return c.DescribeDatabaseObjectsWithContext(context.Background(), request)
}
// DescribeDatabaseObjects
// 本接口(DescribeDatabaseObjects)用于查询云数据库实例的数据库中的对象列表,包含表、存储过程、视图和函数。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETDBOBJECTFAILED = "InternalError.GetDbObjectFailed"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDatabaseObjectsWithContext(ctx context.Context, request *DescribeDatabaseObjectsRequest) (response *DescribeDatabaseObjectsResponse, err error) {
if request == nil {
request = NewDescribeDatabaseObjectsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeDatabaseObjects require credential")
}
request.SetContext(ctx)
response = NewDescribeDatabaseObjectsResponse()
err = c.Send(request, response)
return
}
func NewDescribeDatabaseTableRequest() (request *DescribeDatabaseTableRequest) {
request = &DescribeDatabaseTableRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeDatabaseTable")
return
}
func NewDescribeDatabaseTableResponse() (response *DescribeDatabaseTableResponse) {
response = &DescribeDatabaseTableResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDatabaseTable
// 本接口(DescribeDatabaseTable)用于查询云数据库实例的表信息。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETTABLEINFOFAILED = "InternalError.GetTableInfoFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDatabaseTable(request *DescribeDatabaseTableRequest) (response *DescribeDatabaseTableResponse, err error) {
return c.DescribeDatabaseTableWithContext(context.Background(), request)
}
// DescribeDatabaseTable
// 本接口(DescribeDatabaseTable)用于查询云数据库实例的表信息。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETTABLEINFOFAILED = "InternalError.GetTableInfoFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDatabaseTableWithContext(ctx context.Context, request *DescribeDatabaseTableRequest) (response *DescribeDatabaseTableResponse, err error) {
if request == nil {
request = NewDescribeDatabaseTableRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeDatabaseTable require credential")
}
request.SetContext(ctx)
response = NewDescribeDatabaseTableResponse()
err = c.Send(request, response)
return
}
func NewDescribeDatabasesRequest() (request *DescribeDatabasesRequest) {
request = &DescribeDatabasesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeDatabases")
return
}
func NewDescribeDatabasesResponse() (response *DescribeDatabasesResponse) {
response = &DescribeDatabasesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDatabases
// 本接口(DescribeDatabases)用于查询云数据库实例的数据库列表。
//
// 可能返回的错误码:
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETDBLISTFAILED = "InternalError.GetDbListFailed"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDatabases(request *DescribeDatabasesRequest) (response *DescribeDatabasesResponse, err error) {
return c.DescribeDatabasesWithContext(context.Background(), request)
}
// DescribeDatabases
// 本接口(DescribeDatabases)用于查询云数据库实例的数据库列表。
//
// 可能返回的错误码:
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETDBLISTFAILED = "InternalError.GetDbListFailed"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDatabasesWithContext(ctx context.Context, request *DescribeDatabasesRequest) (response *DescribeDatabasesResponse, err error) {
if request == nil {
request = NewDescribeDatabasesRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeDatabases require credential")
}
request.SetContext(ctx)
response = NewDescribeDatabasesResponse()
err = c.Send(request, response)
return
}
func NewDescribeDcnDetailRequest() (request *DescribeDcnDetailRequest) {
request = &DescribeDcnDetailRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeDcnDetail")
return
}
func NewDescribeDcnDetailResponse() (response *DescribeDcnDetailResponse) {
response = &DescribeDcnDetailResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDcnDetail
// 获取实例灾备详情
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDcnDetail(request *DescribeDcnDetailRequest) (response *DescribeDcnDetailResponse, err error) {
return c.DescribeDcnDetailWithContext(context.Background(), request)
}
// DescribeDcnDetail
// 获取实例灾备详情
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeDcnDetailWithContext(ctx context.Context, request *DescribeDcnDetailRequest) (response *DescribeDcnDetailResponse, err error) {
if request == nil {
request = NewDescribeDcnDetailRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeDcnDetail require credential")
}
request.SetContext(ctx)
response = NewDescribeDcnDetailResponse()
err = c.Send(request, response)
return
}
func NewDescribeFileDownloadUrlRequest() (request *DescribeFileDownloadUrlRequest) {
request = &DescribeFileDownloadUrlRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeFileDownloadUrl")
return
}
func NewDescribeFileDownloadUrlResponse() (response *DescribeFileDownloadUrlResponse) {
response = &DescribeFileDownloadUrlResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeFileDownloadUrl
// 本接口(DescribeFileDownloadUrl)用于获取数据库指定备份或日志文件的下载连接。
//
// 可能返回的错误码:
// INTERNALERROR_COSSIGNURL = "InternalError.CosSignUrl"
// INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
func (c *Client) DescribeFileDownloadUrl(request *DescribeFileDownloadUrlRequest) (response *DescribeFileDownloadUrlResponse, err error) {
return c.DescribeFileDownloadUrlWithContext(context.Background(), request)
}
// DescribeFileDownloadUrl
// 本接口(DescribeFileDownloadUrl)用于获取数据库指定备份或日志文件的下载连接。
//
// 可能返回的错误码:
// INTERNALERROR_COSSIGNURL = "InternalError.CosSignUrl"
// INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
func (c *Client) DescribeFileDownloadUrlWithContext(ctx context.Context, request *DescribeFileDownloadUrlRequest) (response *DescribeFileDownloadUrlResponse, err error) {
if request == nil {
request = NewDescribeFileDownloadUrlRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeFileDownloadUrl require credential")
}
request.SetContext(ctx)
response = NewDescribeFileDownloadUrlResponse()
err = c.Send(request, response)
return
}
func NewDescribeFlowRequest() (request *DescribeFlowRequest) {
request = &DescribeFlowRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeFlow")
return
}
func NewDescribeFlowResponse() (response *DescribeFlowResponse) {
response = &DescribeFlowResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeFlow
// 本接口(DescribeFlow)用于查询流程状态。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_FLOWNOTFOUND = "InvalidParameter.FlowNotFound"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeFlow(request *DescribeFlowRequest) (response *DescribeFlowResponse, err error) {
return c.DescribeFlowWithContext(context.Background(), request)
}
// DescribeFlow
// 本接口(DescribeFlow)用于查询流程状态。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_FLOWNOTFOUND = "InvalidParameter.FlowNotFound"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeFlowWithContext(ctx context.Context, request *DescribeFlowRequest) (response *DescribeFlowResponse, err error) {
if request == nil {
request = NewDescribeFlowRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeFlow require credential")
}
request.SetContext(ctx)
response = NewDescribeFlowResponse()
err = c.Send(request, response)
return
}
func NewDescribeInstanceNodeInfoRequest() (request *DescribeInstanceNodeInfoRequest) {
request = &DescribeInstanceNodeInfoRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeInstanceNodeInfo")
return
}
func NewDescribeInstanceNodeInfoResponse() (response *DescribeInstanceNodeInfoResponse) {
response = &DescribeInstanceNodeInfoResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeInstanceNodeInfo
// 本接口(DescribeInstanceNodeInfo)用于获取数据库实例主备节点信息
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
func (c *Client) DescribeInstanceNodeInfo(request *DescribeInstanceNodeInfoRequest) (response *DescribeInstanceNodeInfoResponse, err error) {
return c.DescribeInstanceNodeInfoWithContext(context.Background(), request)
}
// DescribeInstanceNodeInfo
// 本接口(DescribeInstanceNodeInfo)用于获取数据库实例主备节点信息
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
func (c *Client) DescribeInstanceNodeInfoWithContext(ctx context.Context, request *DescribeInstanceNodeInfoRequest) (response *DescribeInstanceNodeInfoResponse, err error) {
if request == nil {
request = NewDescribeInstanceNodeInfoRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeInstanceNodeInfo require credential")
}
request.SetContext(ctx)
response = NewDescribeInstanceNodeInfoResponse()
err = c.Send(request, response)
return
}
func NewDescribeLogFileRetentionPeriodRequest() (request *DescribeLogFileRetentionPeriodRequest) {
request = &DescribeLogFileRetentionPeriodRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeLogFileRetentionPeriod")
return
}
func NewDescribeLogFileRetentionPeriodResponse() (response *DescribeLogFileRetentionPeriodResponse) {
response = &DescribeLogFileRetentionPeriodResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeLogFileRetentionPeriod
// 本接口(DescribeLogFileRetentionPeriod)用于查看数据库备份日志的备份天数的设置情况。
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeLogFileRetentionPeriod(request *DescribeLogFileRetentionPeriodRequest) (response *DescribeLogFileRetentionPeriodResponse, err error) {
return c.DescribeLogFileRetentionPeriodWithContext(context.Background(), request)
}
// DescribeLogFileRetentionPeriod
// 本接口(DescribeLogFileRetentionPeriod)用于查看数据库备份日志的备份天数的设置情况。
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeLogFileRetentionPeriodWithContext(ctx context.Context, request *DescribeLogFileRetentionPeriodRequest) (response *DescribeLogFileRetentionPeriodResponse, err error) {
if request == nil {
request = NewDescribeLogFileRetentionPeriodRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeLogFileRetentionPeriod require credential")
}
request.SetContext(ctx)
response = NewDescribeLogFileRetentionPeriodResponse()
err = c.Send(request, response)
return
}
func NewDescribeOrdersRequest() (request *DescribeOrdersRequest) {
request = &DescribeOrdersRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeOrders")
return
}
func NewDescribeOrdersResponse() (response *DescribeOrdersResponse) {
response = &DescribeOrdersResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeOrders
// 本接口(DescribeOrders)用于查询云数据库订单信息。传入订单ID来查询订单关联的云数据库实例,和对应的任务流程ID。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_QUERYORDERFAILED = "InternalError.QueryOrderFailed"
// INVALIDPARAMETER_DEALNAMENOTGIVEN = "InvalidParameter.DealNameNotGiven"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeOrders(request *DescribeOrdersRequest) (response *DescribeOrdersResponse, err error) {
return c.DescribeOrdersWithContext(context.Background(), request)
}
// DescribeOrders
// 本接口(DescribeOrders)用于查询云数据库订单信息。传入订单ID来查询订单关联的云数据库实例,和对应的任务流程ID。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_QUERYORDERFAILED = "InternalError.QueryOrderFailed"
// INVALIDPARAMETER_DEALNAMENOTGIVEN = "InvalidParameter.DealNameNotGiven"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeOrdersWithContext(ctx context.Context, request *DescribeOrdersRequest) (response *DescribeOrdersResponse, err error) {
if request == nil {
request = NewDescribeOrdersRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeOrders require credential")
}
request.SetContext(ctx)
response = NewDescribeOrdersResponse()
err = c.Send(request, response)
return
}
func NewDescribePriceRequest() (request *DescribePriceRequest) {
request = &DescribePriceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribePrice")
return
}
func NewDescribePriceResponse() (response *DescribePriceResponse) {
response = &DescribePriceResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribePrice
// 本接口(DescribePrice)用于在购买实例前,查询实例的价格。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_QUERYPRICEFAILED = "InternalError.QueryPriceFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_SPECNOTFOUND = "InvalidParameter.SpecNotFound"
// INVALIDPARAMETERVALUE_ILLEGALCOUNT = "InvalidParameterValue.IllegalCount"
// INVALIDPARAMETERVALUE_ILLEGALZONE = "InvalidParameterValue.IllegalZone"
// INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribePrice(request *DescribePriceRequest) (response *DescribePriceResponse, err error) {
return c.DescribePriceWithContext(context.Background(), request)
}
// DescribePrice
// 本接口(DescribePrice)用于在购买实例前,查询实例的价格。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_QUERYPRICEFAILED = "InternalError.QueryPriceFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_SPECNOTFOUND = "InvalidParameter.SpecNotFound"
// INVALIDPARAMETERVALUE_ILLEGALCOUNT = "InvalidParameterValue.IllegalCount"
// INVALIDPARAMETERVALUE_ILLEGALZONE = "InvalidParameterValue.IllegalZone"
// INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribePriceWithContext(ctx context.Context, request *DescribePriceRequest) (response *DescribePriceResponse, err error) {
if request == nil {
request = NewDescribePriceRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribePrice require credential")
}
request.SetContext(ctx)
response = NewDescribePriceResponse()
err = c.Send(request, response)
return
}
func NewDescribeProjectSecurityGroupsRequest() (request *DescribeProjectSecurityGroupsRequest) {
request = &DescribeProjectSecurityGroupsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeProjectSecurityGroups")
return
}
func NewDescribeProjectSecurityGroupsResponse() (response *DescribeProjectSecurityGroupsResponse) {
response = &DescribeProjectSecurityGroupsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeProjectSecurityGroups
// 本接口(DescribeProjectSecurityGroups)用于查询项目安全组信息
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_GETSECURITYGROUPDETAILFAILED = "FailedOperation.GetSecurityGroupDetailFailed"
// INTERNALERROR_GETUSERSGCOUNTFAILED = "InternalError.GetUserSGCountFailed"
// INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError"
func (c *Client) DescribeProjectSecurityGroups(request *DescribeProjectSecurityGroupsRequest) (response *DescribeProjectSecurityGroupsResponse, err error) {
return c.DescribeProjectSecurityGroupsWithContext(context.Background(), request)
}
// DescribeProjectSecurityGroups
// 本接口(DescribeProjectSecurityGroups)用于查询项目安全组信息
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_GETSECURITYGROUPDETAILFAILED = "FailedOperation.GetSecurityGroupDetailFailed"
// INTERNALERROR_GETUSERSGCOUNTFAILED = "InternalError.GetUserSGCountFailed"
// INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError"
func (c *Client) DescribeProjectSecurityGroupsWithContext(ctx context.Context, request *DescribeProjectSecurityGroupsRequest) (response *DescribeProjectSecurityGroupsResponse, err error) {
if request == nil {
request = NewDescribeProjectSecurityGroupsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeProjectSecurityGroups require credential")
}
request.SetContext(ctx)
response = NewDescribeProjectSecurityGroupsResponse()
err = c.Send(request, response)
return
}
func NewDescribeRenewalPriceRequest() (request *DescribeRenewalPriceRequest) {
request = &DescribeRenewalPriceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeRenewalPrice")
return
}
func NewDescribeRenewalPriceResponse() (response *DescribeRenewalPriceResponse) {
response = &DescribeRenewalPriceResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeRenewalPrice
// 本接口(DescribeRenewalPrice)用于在续费云数据库实例时,查询续费的价格。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_QUERYPRICEFAILED = "InternalError.QueryPriceFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeRenewalPrice(request *DescribeRenewalPriceRequest) (response *DescribeRenewalPriceResponse, err error) {
return c.DescribeRenewalPriceWithContext(context.Background(), request)
}
// DescribeRenewalPrice
// 本接口(DescribeRenewalPrice)用于在续费云数据库实例时,查询续费的价格。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_QUERYPRICEFAILED = "InternalError.QueryPriceFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeRenewalPriceWithContext(ctx context.Context, request *DescribeRenewalPriceRequest) (response *DescribeRenewalPriceResponse, err error) {
if request == nil {
request = NewDescribeRenewalPriceRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeRenewalPrice require credential")
}
request.SetContext(ctx)
response = NewDescribeRenewalPriceResponse()
err = c.Send(request, response)
return
}
func NewDescribeSaleInfoRequest() (request *DescribeSaleInfoRequest) {
request = &DescribeSaleInfoRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeSaleInfo")
return
}
func NewDescribeSaleInfoResponse() (response *DescribeSaleInfoResponse) {
response = &DescribeSaleInfoResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeSaleInfo
// 本接口(DescribeSaleInfo)用于查询云数据库可售卖的地域和可用区信息。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeSaleInfo(request *DescribeSaleInfoRequest) (response *DescribeSaleInfoResponse, err error) {
return c.DescribeSaleInfoWithContext(context.Background(), request)
}
// DescribeSaleInfo
// 本接口(DescribeSaleInfo)用于查询云数据库可售卖的地域和可用区信息。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeSaleInfoWithContext(ctx context.Context, request *DescribeSaleInfoRequest) (response *DescribeSaleInfoResponse, err error) {
if request == nil {
request = NewDescribeSaleInfoRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeSaleInfo require credential")
}
request.SetContext(ctx)
response = NewDescribeSaleInfoResponse()
err = c.Send(request, response)
return
}
func NewDescribeUpgradePriceRequest() (request *DescribeUpgradePriceRequest) {
request = &DescribeUpgradePriceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DescribeUpgradePrice")
return
}
func NewDescribeUpgradePriceResponse() (response *DescribeUpgradePriceResponse) {
response = &DescribeUpgradePriceResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeUpgradePrice
// 本接口(DescribeUpgradePrice)用于在扩容云数据库实例时,查询变配的价格。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_QUERYPRICEFAILED = "InternalError.QueryPriceFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_NOTSUPPORTEDPAYMODE = "InvalidParameter.NotSupportedPayMode"
// INVALIDPARAMETER_SPECNOTFOUND = "InvalidParameter.SpecNotFound"
// INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeUpgradePrice(request *DescribeUpgradePriceRequest) (response *DescribeUpgradePriceResponse, err error) {
return c.DescribeUpgradePriceWithContext(context.Background(), request)
}
// DescribeUpgradePrice
// 本接口(DescribeUpgradePrice)用于在扩容云数据库实例时,查询变配的价格。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_QUERYPRICEFAILED = "InternalError.QueryPriceFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_NOTSUPPORTEDPAYMODE = "InvalidParameter.NotSupportedPayMode"
// INVALIDPARAMETER_SPECNOTFOUND = "InvalidParameter.SpecNotFound"
// INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DescribeUpgradePriceWithContext(ctx context.Context, request *DescribeUpgradePriceRequest) (response *DescribeUpgradePriceResponse, err error) {
if request == nil {
request = NewDescribeUpgradePriceRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeUpgradePrice require credential")
}
request.SetContext(ctx)
response = NewDescribeUpgradePriceResponse()
err = c.Send(request, response)
return
}
func NewDestroyDBInstanceRequest() (request *DestroyDBInstanceRequest) {
request = &DestroyDBInstanceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DestroyDBInstance")
return
}
func NewDestroyDBInstanceResponse() (response *DestroyDBInstanceResponse) {
response = &DestroyDBInstanceResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DestroyDBInstance
// 本接口(DestroyDBInstance)用于销毁已隔离的包年包月实例。
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DestroyDBInstance(request *DestroyDBInstanceRequest) (response *DestroyDBInstanceResponse, err error) {
return c.DestroyDBInstanceWithContext(context.Background(), request)
}
// DestroyDBInstance
// 本接口(DestroyDBInstance)用于销毁已隔离的包年包月实例。
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DestroyDBInstanceWithContext(ctx context.Context, request *DestroyDBInstanceRequest) (response *DestroyDBInstanceResponse, err error) {
if request == nil {
request = NewDestroyDBInstanceRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DestroyDBInstance require credential")
}
request.SetContext(ctx)
response = NewDestroyDBInstanceResponse()
err = c.Send(request, response)
return
}
func NewDestroyHourDBInstanceRequest() (request *DestroyHourDBInstanceRequest) {
request = &DestroyHourDBInstanceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DestroyHourDBInstance")
return
}
func NewDestroyHourDBInstanceResponse() (response *DestroyHourDBInstanceResponse) {
response = &DestroyHourDBInstanceResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DestroyHourDBInstance
// 本接口(DestroyHourDBInstance)用于销毁MariaDB按量计费实例。
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
// FAILEDOPERATION_INSTANCERETURNFAILED = "FailedOperation.InstanceReturnFailed"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DestroyHourDBInstance(request *DestroyHourDBInstanceRequest) (response *DestroyHourDBInstanceResponse, err error) {
return c.DestroyHourDBInstanceWithContext(context.Background(), request)
}
// DestroyHourDBInstance
// 本接口(DestroyHourDBInstance)用于销毁MariaDB按量计费实例。
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
// FAILEDOPERATION_INSTANCERETURNFAILED = "FailedOperation.InstanceReturnFailed"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DestroyHourDBInstanceWithContext(ctx context.Context, request *DestroyHourDBInstanceRequest) (response *DestroyHourDBInstanceResponse, err error) {
if request == nil {
request = NewDestroyHourDBInstanceRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DestroyHourDBInstance require credential")
}
request.SetContext(ctx)
response = NewDestroyHourDBInstanceResponse()
err = c.Send(request, response)
return
}
func NewDisassociateSecurityGroupsRequest() (request *DisassociateSecurityGroupsRequest) {
request = &DisassociateSecurityGroupsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "DisassociateSecurityGroups")
return
}
func NewDisassociateSecurityGroupsResponse() (response *DisassociateSecurityGroupsResponse) {
response = &DisassociateSecurityGroupsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DisassociateSecurityGroups
// 本接口(DisassociateSecurityGroups)用于安全组批量解绑实例。
//
// 可能返回的错误码:
// FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed"
// FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed"
// FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy"
// FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed"
// FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed"
// FAILEDOPERATION_SETRULELOCATIONFAILED = "FailedOperation.SetRuleLocationFailed"
// FAILEDOPERATION_UPDATEINSTANCEINFOFAILED = "FailedOperation.UpdateInstanceInfoFailed"
// INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError"
// INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError"
// INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed"
// INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed"
// INTERNALERROR_ROUTENOTFOUND = "InternalError.RouteNotFound"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
// RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DisassociateSecurityGroups(request *DisassociateSecurityGroupsRequest) (response *DisassociateSecurityGroupsResponse, err error) {
return c.DisassociateSecurityGroupsWithContext(context.Background(), request)
}
// DisassociateSecurityGroups
// 本接口(DisassociateSecurityGroups)用于安全组批量解绑实例。
//
// 可能返回的错误码:
// FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed"
// FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed"
// FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy"
// FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed"
// FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed"
// FAILEDOPERATION_SETRULELOCATIONFAILED = "FailedOperation.SetRuleLocationFailed"
// FAILEDOPERATION_UPDATEINSTANCEINFOFAILED = "FailedOperation.UpdateInstanceInfoFailed"
// INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError"
// INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError"
// INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed"
// INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed"
// INTERNALERROR_ROUTENOTFOUND = "InternalError.RouteNotFound"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
// RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) DisassociateSecurityGroupsWithContext(ctx context.Context, request *DisassociateSecurityGroupsRequest) (response *DisassociateSecurityGroupsResponse, err error) {
if request == nil {
request = NewDisassociateSecurityGroupsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DisassociateSecurityGroups require credential")
}
request.SetContext(ctx)
response = NewDisassociateSecurityGroupsResponse()
err = c.Send(request, response)
return
}
func NewFlushBinlogRequest() (request *FlushBinlogRequest) {
request = &FlushBinlogRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "FlushBinlog")
return
}
func NewFlushBinlogResponse() (response *FlushBinlogResponse) {
response = &FlushBinlogResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// FlushBinlog
// 相当于在mysqld中执行flush logs,完成切分的binlog将展示在实例控制台binlog列表里。
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR = "InternalError"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound"
// LIMITEXCEEDED_TOOFREQUENTLYCALLED = "LimitExceeded.TooFrequentlyCalled"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_DBVERSIONNOTSUPPORTED = "UnsupportedOperation.DbVersionNotSupported"
func (c *Client) FlushBinlog(request *FlushBinlogRequest) (response *FlushBinlogResponse, err error) {
return c.FlushBinlogWithContext(context.Background(), request)
}
// FlushBinlog
// 相当于在mysqld中执行flush logs,完成切分的binlog将展示在实例控制台binlog列表里。
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR = "InternalError"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound"
// LIMITEXCEEDED_TOOFREQUENTLYCALLED = "LimitExceeded.TooFrequentlyCalled"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_DBVERSIONNOTSUPPORTED = "UnsupportedOperation.DbVersionNotSupported"
func (c *Client) FlushBinlogWithContext(ctx context.Context, request *FlushBinlogRequest) (response *FlushBinlogResponse, err error) {
if request == nil {
request = NewFlushBinlogRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("FlushBinlog require credential")
}
request.SetContext(ctx)
response = NewFlushBinlogResponse()
err = c.Send(request, response)
return
}
func NewGrantAccountPrivilegesRequest() (request *GrantAccountPrivilegesRequest) {
request = &GrantAccountPrivilegesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "GrantAccountPrivileges")
return
}
func NewGrantAccountPrivilegesResponse() (response *GrantAccountPrivilegesResponse) {
response = &GrantAccountPrivilegesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// GrantAccountPrivileges
// 本接口(GrantAccountPrivileges)用于给云数据库账号赋权。
//
// 注意:相同用户名,不同Host是不同的账号。
//
// 可能返回的错误码:
// FAILEDOPERATION_MODIFYRIGHTFAILED = "FailedOperation.ModifyRightFailed"
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETRIGHTFAILED = "InternalError.GetRightFailed"
// INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETERVALUE_BADUSERRIGHT = "InvalidParameterValue.BadUserRight"
// INVALIDPARAMETERVALUE_ILLEGALRIGHTPARAM = "InvalidParameterValue.IllegalRightParam"
// INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) GrantAccountPrivileges(request *GrantAccountPrivilegesRequest) (response *GrantAccountPrivilegesResponse, err error) {
return c.GrantAccountPrivilegesWithContext(context.Background(), request)
}
// GrantAccountPrivileges
// 本接口(GrantAccountPrivileges)用于给云数据库账号赋权。
//
// 注意:相同用户名,不同Host是不同的账号。
//
// 可能返回的错误码:
// FAILEDOPERATION_MODIFYRIGHTFAILED = "FailedOperation.ModifyRightFailed"
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETRIGHTFAILED = "InternalError.GetRightFailed"
// INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETERVALUE_BADUSERRIGHT = "InvalidParameterValue.BadUserRight"
// INVALIDPARAMETERVALUE_ILLEGALRIGHTPARAM = "InvalidParameterValue.IllegalRightParam"
// INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) GrantAccountPrivilegesWithContext(ctx context.Context, request *GrantAccountPrivilegesRequest) (response *GrantAccountPrivilegesResponse, err error) {
if request == nil {
request = NewGrantAccountPrivilegesRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("GrantAccountPrivileges require credential")
}
request.SetContext(ctx)
response = NewGrantAccountPrivilegesResponse()
err = c.Send(request, response)
return
}
func NewInitDBInstancesRequest() (request *InitDBInstancesRequest) {
request = &InitDBInstancesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "InitDBInstances")
return
}
func NewInitDBInstancesResponse() (response *InitDBInstancesResponse) {
response = &InitDBInstancesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// InitDBInstances
// 本接口(InitDBInstances)用于初始化云数据库实例,包括设置默认字符集、表名大小写敏感等。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETERVALUE_ILLEGALINITPARAM = "InvalidParameterValue.IllegalInitParam"
// INVALIDPARAMETERVALUE_SYNCMODENOTALLOWED = "InvalidParameterValue.SyncModeNotAllowed"
// RESOURCEUNAVAILABLE_BADINSTANCESTATUS = "ResourceUnavailable.BadInstanceStatus"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) InitDBInstances(request *InitDBInstancesRequest) (response *InitDBInstancesResponse, err error) {
return c.InitDBInstancesWithContext(context.Background(), request)
}
// InitDBInstances
// 本接口(InitDBInstances)用于初始化云数据库实例,包括设置默认字符集、表名大小写敏感等。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETERVALUE_ILLEGALINITPARAM = "InvalidParameterValue.IllegalInitParam"
// INVALIDPARAMETERVALUE_SYNCMODENOTALLOWED = "InvalidParameterValue.SyncModeNotAllowed"
// RESOURCEUNAVAILABLE_BADINSTANCESTATUS = "ResourceUnavailable.BadInstanceStatus"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) InitDBInstancesWithContext(ctx context.Context, request *InitDBInstancesRequest) (response *InitDBInstancesResponse, err error) {
if request == nil {
request = NewInitDBInstancesRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("InitDBInstances require credential")
}
request.SetContext(ctx)
response = NewInitDBInstancesResponse()
err = c.Send(request, response)
return
}
func NewIsolateDBInstanceRequest() (request *IsolateDBInstanceRequest) {
request = &IsolateDBInstanceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "IsolateDBInstance")
return
}
func NewIsolateDBInstanceResponse() (response *IsolateDBInstanceResponse) {
response = &IsolateDBInstanceResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// IsolateDBInstance
// 本接口(IsolateDBInstance)用于隔离云数据库MariaDB实例(包年包月),隔离后不能通过IP和端口访问数据库。隔离的实例可在回收站中进行开机。若为欠费隔离,请尽快进行充值。
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed"
// FAILEDOPERATION_INSTANCECANNOTRETURN = "FailedOperation.InstanceCanNotReturn"
// FAILEDOPERATION_INSTANCERETURNFAILED = "FailedOperation.InstanceReturnFailed"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
func (c *Client) IsolateDBInstance(request *IsolateDBInstanceRequest) (response *IsolateDBInstanceResponse, err error) {
return c.IsolateDBInstanceWithContext(context.Background(), request)
}
// IsolateDBInstance
// 本接口(IsolateDBInstance)用于隔离云数据库MariaDB实例(包年包月),隔离后不能通过IP和端口访问数据库。隔离的实例可在回收站中进行开机。若为欠费隔离,请尽快进行充值。
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed"
// FAILEDOPERATION_INSTANCECANNOTRETURN = "FailedOperation.InstanceCanNotReturn"
// FAILEDOPERATION_INSTANCERETURNFAILED = "FailedOperation.InstanceReturnFailed"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_ACTIONNOTFOUND = "InvalidParameter.ActionNotFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
func (c *Client) IsolateDBInstanceWithContext(ctx context.Context, request *IsolateDBInstanceRequest) (response *IsolateDBInstanceResponse, err error) {
if request == nil {
request = NewIsolateDBInstanceRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("IsolateDBInstance require credential")
}
request.SetContext(ctx)
response = NewIsolateDBInstanceResponse()
err = c.Send(request, response)
return
}
func NewIsolateDedicatedDBInstanceRequest() (request *IsolateDedicatedDBInstanceRequest) {
request = &IsolateDedicatedDBInstanceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "IsolateDedicatedDBInstance")
return
}
func NewIsolateDedicatedDBInstanceResponse() (response *IsolateDedicatedDBInstanceResponse) {
response = &IsolateDedicatedDBInstanceResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// IsolateDedicatedDBInstance
// 本接口(IsolateDedicatedDBInstance)用于隔离独享云数据库实例。
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSISOLATEINSTANCEFAILED = "FailedOperation.OssIsolateInstanceFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"
func (c *Client) IsolateDedicatedDBInstance(request *IsolateDedicatedDBInstanceRequest) (response *IsolateDedicatedDBInstanceResponse, err error) {
return c.IsolateDedicatedDBInstanceWithContext(context.Background(), request)
}
// IsolateDedicatedDBInstance
// 本接口(IsolateDedicatedDBInstance)用于隔离独享云数据库实例。
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSISOLATEINSTANCEFAILED = "FailedOperation.OssIsolateInstanceFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"
func (c *Client) IsolateDedicatedDBInstanceWithContext(ctx context.Context, request *IsolateDedicatedDBInstanceRequest) (response *IsolateDedicatedDBInstanceResponse, err error) {
if request == nil {
request = NewIsolateDedicatedDBInstanceRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("IsolateDedicatedDBInstance require credential")
}
request.SetContext(ctx)
response = NewIsolateDedicatedDBInstanceResponse()
err = c.Send(request, response)
return
}
func NewIsolateHourDBInstanceRequest() (request *IsolateHourDBInstanceRequest) {
request = &IsolateHourDBInstanceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "IsolateHourDBInstance")
return
}
func NewIsolateHourDBInstanceResponse() (response *IsolateHourDBInstanceResponse) {
response = &IsolateHourDBInstanceResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// IsolateHourDBInstance
// 隔离MariaDB按量计费实例
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETERVALUE_ILLEGALINSTANCEID = "InvalidParameterValue.IllegalInstanceId"
// RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) IsolateHourDBInstance(request *IsolateHourDBInstanceRequest) (response *IsolateHourDBInstanceResponse, err error) {
return c.IsolateHourDBInstanceWithContext(context.Background(), request)
}
// IsolateHourDBInstance
// 隔离MariaDB按量计费实例
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETERVALUE_ILLEGALINSTANCEID = "InvalidParameterValue.IllegalInstanceId"
// RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) IsolateHourDBInstanceWithContext(ctx context.Context, request *IsolateHourDBInstanceRequest) (response *IsolateHourDBInstanceResponse, err error) {
if request == nil {
request = NewIsolateHourDBInstanceRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("IsolateHourDBInstance require credential")
}
request.SetContext(ctx)
response = NewIsolateHourDBInstanceResponse()
err = c.Send(request, response)
return
}
func NewKillSessionRequest() (request *KillSessionRequest) {
request = &KillSessionRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "KillSession")
return
}
func NewKillSessionResponse() (response *KillSessionResponse) {
response = &KillSessionResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// KillSession
// 本接口(KillSession)用于杀死指定会话。
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) KillSession(request *KillSessionRequest) (response *KillSessionResponse, err error) {
return c.KillSessionWithContext(context.Background(), request)
}
// KillSession
// 本接口(KillSession)用于杀死指定会话。
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) KillSessionWithContext(ctx context.Context, request *KillSessionRequest) (response *KillSessionResponse, err error) {
if request == nil {
request = NewKillSessionRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("KillSession require credential")
}
request.SetContext(ctx)
response = NewKillSessionResponse()
err = c.Send(request, response)
return
}
func NewModifyAccountDescriptionRequest() (request *ModifyAccountDescriptionRequest) {
request = &ModifyAccountDescriptionRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "ModifyAccountDescription")
return
}
func NewModifyAccountDescriptionResponse() (response *ModifyAccountDescriptionResponse) {
response = &ModifyAccountDescriptionResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyAccountDescription
// 本接口(ModifyAccountDescription)用于修改云数据库账号备注。
//
// 注意:相同用户名,不同Host是不同的账号。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// RESOURCENOTFOUND_ACCOUNTDOESNOTEXIST = "ResourceNotFound.AccountDoesNotExist"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyAccountDescription(request *ModifyAccountDescriptionRequest) (response *ModifyAccountDescriptionResponse, err error) {
return c.ModifyAccountDescriptionWithContext(context.Background(), request)
}
// ModifyAccountDescription
// 本接口(ModifyAccountDescription)用于修改云数据库账号备注。
//
// 注意:相同用户名,不同Host是不同的账号。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// RESOURCENOTFOUND_ACCOUNTDOESNOTEXIST = "ResourceNotFound.AccountDoesNotExist"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyAccountDescriptionWithContext(ctx context.Context, request *ModifyAccountDescriptionRequest) (response *ModifyAccountDescriptionResponse, err error) {
if request == nil {
request = NewModifyAccountDescriptionRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifyAccountDescription require credential")
}
request.SetContext(ctx)
response = NewModifyAccountDescriptionResponse()
err = c.Send(request, response)
return
}
func NewModifyAccountPrivilegesRequest() (request *ModifyAccountPrivilegesRequest) {
request = &ModifyAccountPrivilegesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "ModifyAccountPrivileges")
return
}
func NewModifyAccountPrivilegesResponse() (response *ModifyAccountPrivilegesResponse) {
response = &ModifyAccountPrivilegesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyAccountPrivileges
// 本接口(ModifyAccountPrivileges)用于修改云数据库的账户的权限信息。
//
//
//
// **注意**
//
// - 系统保留库:"mysql",只开放["SELECT"]权限
//
// - 只读账号授予读写权限会报错
//
// - 不传权限参数表示保留现有权限,如需清除,请在复杂类型Privileges字段传空数组
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETERVALUE_BADUSERRIGHT = "InvalidParameterValue.BadUserRight"
// RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyAccountPrivileges(request *ModifyAccountPrivilegesRequest) (response *ModifyAccountPrivilegesResponse, err error) {
return c.ModifyAccountPrivilegesWithContext(context.Background(), request)
}
// ModifyAccountPrivileges
// 本接口(ModifyAccountPrivileges)用于修改云数据库的账户的权限信息。
//
//
//
// **注意**
//
// - 系统保留库:"mysql",只开放["SELECT"]权限
//
// - 只读账号授予读写权限会报错
//
// - 不传权限参数表示保留现有权限,如需清除,请在复杂类型Privileges字段传空数组
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETERVALUE_BADUSERRIGHT = "InvalidParameterValue.BadUserRight"
// RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyAccountPrivilegesWithContext(ctx context.Context, request *ModifyAccountPrivilegesRequest) (response *ModifyAccountPrivilegesResponse, err error) {
if request == nil {
request = NewModifyAccountPrivilegesRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifyAccountPrivileges require credential")
}
request.SetContext(ctx)
response = NewModifyAccountPrivilegesResponse()
err = c.Send(request, response)
return
}
func NewModifyBackupTimeRequest() (request *ModifyBackupTimeRequest) {
request = &ModifyBackupTimeRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "ModifyBackupTime")
return
}
func NewModifyBackupTimeResponse() (response *ModifyBackupTimeResponse) {
response = &ModifyBackupTimeResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyBackupTime
// 本接口(ModifyBackupTime)用于设置云数据库实例的备份时间。后台系统将根据此配置定期进行实例备份。
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyBackupTime(request *ModifyBackupTimeRequest) (response *ModifyBackupTimeResponse, err error) {
return c.ModifyBackupTimeWithContext(context.Background(), request)
}
// ModifyBackupTime
// 本接口(ModifyBackupTime)用于设置云数据库实例的备份时间。后台系统将根据此配置定期进行实例备份。
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyBackupTimeWithContext(ctx context.Context, request *ModifyBackupTimeRequest) (response *ModifyBackupTimeResponse, err error) {
if request == nil {
request = NewModifyBackupTimeRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifyBackupTime require credential")
}
request.SetContext(ctx)
response = NewModifyBackupTimeResponse()
err = c.Send(request, response)
return
}
func NewModifyDBEncryptAttributesRequest() (request *ModifyDBEncryptAttributesRequest) {
request = &ModifyDBEncryptAttributesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "ModifyDBEncryptAttributes")
return
}
func NewModifyDBEncryptAttributesResponse() (response *ModifyDBEncryptAttributesResponse) {
response = &ModifyDBEncryptAttributesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyDBEncryptAttributes
// 本接口(ModifyDBEncryptAttributes)用于修改实例数据加密。
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER = "InvalidParameter"
// RESOURCEUNAVAILABLE_BADINSTANCESTATUS = "ResourceUnavailable.BadInstanceStatus"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"
func (c *Client) ModifyDBEncryptAttributes(request *ModifyDBEncryptAttributesRequest) (response *ModifyDBEncryptAttributesResponse, err error) {
return c.ModifyDBEncryptAttributesWithContext(context.Background(), request)
}
// ModifyDBEncryptAttributes
// 本接口(ModifyDBEncryptAttributes)用于修改实例数据加密。
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER = "InvalidParameter"
// RESOURCEUNAVAILABLE_BADINSTANCESTATUS = "ResourceUnavailable.BadInstanceStatus"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"
func (c *Client) ModifyDBEncryptAttributesWithContext(ctx context.Context, request *ModifyDBEncryptAttributesRequest) (response *ModifyDBEncryptAttributesResponse, err error) {
if request == nil {
request = NewModifyDBEncryptAttributesRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifyDBEncryptAttributes require credential")
}
request.SetContext(ctx)
response = NewModifyDBEncryptAttributesResponse()
err = c.Send(request, response)
return
}
func NewModifyDBInstanceNameRequest() (request *ModifyDBInstanceNameRequest) {
request = &ModifyDBInstanceNameRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "ModifyDBInstanceName")
return
}
func NewModifyDBInstanceNameResponse() (response *ModifyDBInstanceNameResponse) {
response = &ModifyDBInstanceNameResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyDBInstanceName
// 本接口(ModifyDBInstanceName)用于修改云数据库实例的名称。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETERVALUE_INSTANCENAMEILLEGAL = "InvalidParameterValue.InstanceNameIllegal"
// RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyDBInstanceName(request *ModifyDBInstanceNameRequest) (response *ModifyDBInstanceNameResponse, err error) {
return c.ModifyDBInstanceNameWithContext(context.Background(), request)
}
// ModifyDBInstanceName
// 本接口(ModifyDBInstanceName)用于修改云数据库实例的名称。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETERVALUE_INSTANCENAMEILLEGAL = "InvalidParameterValue.InstanceNameIllegal"
// RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyDBInstanceNameWithContext(ctx context.Context, request *ModifyDBInstanceNameRequest) (response *ModifyDBInstanceNameResponse, err error) {
if request == nil {
request = NewModifyDBInstanceNameRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifyDBInstanceName require credential")
}
request.SetContext(ctx)
response = NewModifyDBInstanceNameResponse()
err = c.Send(request, response)
return
}
func NewModifyDBInstanceSecurityGroupsRequest() (request *ModifyDBInstanceSecurityGroupsRequest) {
request = &ModifyDBInstanceSecurityGroupsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "ModifyDBInstanceSecurityGroups")
return
}
func NewModifyDBInstanceSecurityGroupsResponse() (response *ModifyDBInstanceSecurityGroupsResponse) {
response = &ModifyDBInstanceSecurityGroupsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyDBInstanceSecurityGroups
// 本接口(ModifyDBInstanceSecurityGroups)用于修改云数据库安全组
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed"
// FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy"
// FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed"
// FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed"
// FAILEDOPERATION_SETRULELOCATIONFAILED = "FailedOperation.SetRuleLocationFailed"
// FAILEDOPERATION_UPDATEINSTANCEINFOFAILED = "FailedOperation.UpdateInstanceInfoFailed"
// INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed"
// INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError"
// INTERNALERROR_INSTANCESGOVERLIMITERROR = "InternalError.InstanceSGOverLimitError"
// INTERNALERROR_LISTINSTANCERESPRESOURCECOUNTNOTMATCHERROR = "InternalError.ListInstanceRespResourceCountNotMatchError"
// INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError"
// INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed"
// INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed"
// INTERNALERROR_SETSVCLOCATIONFAILED = "InternalError.SetSvcLocationFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
// RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// RESOURCEUNAVAILABLE_SGCHECKFAIL = "ResourceUnavailable.SGCheckFail"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyDBInstanceSecurityGroups(request *ModifyDBInstanceSecurityGroupsRequest) (response *ModifyDBInstanceSecurityGroupsResponse, err error) {
return c.ModifyDBInstanceSecurityGroupsWithContext(context.Background(), request)
}
// ModifyDBInstanceSecurityGroups
// 本接口(ModifyDBInstanceSecurityGroups)用于修改云数据库安全组
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed"
// FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy"
// FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed"
// FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed"
// FAILEDOPERATION_SETRULELOCATIONFAILED = "FailedOperation.SetRuleLocationFailed"
// FAILEDOPERATION_UPDATEINSTANCEINFOFAILED = "FailedOperation.UpdateInstanceInfoFailed"
// INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed"
// INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError"
// INTERNALERROR_INSTANCESGOVERLIMITERROR = "InternalError.InstanceSGOverLimitError"
// INTERNALERROR_LISTINSTANCERESPRESOURCECOUNTNOTMATCHERROR = "InternalError.ListInstanceRespResourceCountNotMatchError"
// INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError"
// INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed"
// INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed"
// INTERNALERROR_SETSVCLOCATIONFAILED = "InternalError.SetSvcLocationFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
// RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// RESOURCEUNAVAILABLE_SGCHECKFAIL = "ResourceUnavailable.SGCheckFail"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyDBInstanceSecurityGroupsWithContext(ctx context.Context, request *ModifyDBInstanceSecurityGroupsRequest) (response *ModifyDBInstanceSecurityGroupsResponse, err error) {
if request == nil {
request = NewModifyDBInstanceSecurityGroupsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifyDBInstanceSecurityGroups require credential")
}
request.SetContext(ctx)
response = NewModifyDBInstanceSecurityGroupsResponse()
err = c.Send(request, response)
return
}
func NewModifyDBInstancesProjectRequest() (request *ModifyDBInstancesProjectRequest) {
request = &ModifyDBInstancesProjectRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "ModifyDBInstancesProject")
return
}
func NewModifyDBInstancesProjectResponse() (response *ModifyDBInstancesProjectResponse) {
response = &ModifyDBInstancesProjectResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyDBInstancesProject
// 本接口(ModifyDBInstancesProject)用于修改云数据库实例所属项目。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyDBInstancesProject(request *ModifyDBInstancesProjectRequest) (response *ModifyDBInstancesProjectResponse, err error) {
return c.ModifyDBInstancesProjectWithContext(context.Background(), request)
}
// ModifyDBInstancesProject
// 本接口(ModifyDBInstancesProject)用于修改云数据库实例所属项目。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyDBInstancesProjectWithContext(ctx context.Context, request *ModifyDBInstancesProjectRequest) (response *ModifyDBInstancesProjectResponse, err error) {
if request == nil {
request = NewModifyDBInstancesProjectRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifyDBInstancesProject require credential")
}
request.SetContext(ctx)
response = NewModifyDBInstancesProjectResponse()
err = c.Send(request, response)
return
}
func NewModifyDBParametersRequest() (request *ModifyDBParametersRequest) {
request = &ModifyDBParametersRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "ModifyDBParameters")
return
}
func NewModifyDBParametersResponse() (response *ModifyDBParametersResponse) {
response = &ModifyDBParametersResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyDBParameters
// 本接口(ModifyDBParameters)用于修改数据库参数。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETDBCONFIGFAILED = "InternalError.GetDbConfigFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyDBParameters(request *ModifyDBParametersRequest) (response *ModifyDBParametersResponse, err error) {
return c.ModifyDBParametersWithContext(context.Background(), request)
}
// ModifyDBParameters
// 本接口(ModifyDBParameters)用于修改数据库参数。
//
// 可能返回的错误码:
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETDBCONFIGFAILED = "InternalError.GetDbConfigFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyDBParametersWithContext(ctx context.Context, request *ModifyDBParametersRequest) (response *ModifyDBParametersResponse, err error) {
if request == nil {
request = NewModifyDBParametersRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifyDBParameters require credential")
}
request.SetContext(ctx)
response = NewModifyDBParametersResponse()
err = c.Send(request, response)
return
}
func NewModifyDBSyncModeRequest() (request *ModifyDBSyncModeRequest) {
request = &ModifyDBSyncModeRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "ModifyDBSyncMode")
return
}
func NewModifyDBSyncModeResponse() (response *ModifyDBSyncModeResponse) {
response = &ModifyDBSyncModeResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyDBSyncMode
// 本接口(ModifyDBSyncMode)用于修改云数据库实例的同步模式。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETERVALUE_BADSYNCMODE = "InvalidParameterValue.BadSyncMode"
// RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"
func (c *Client) ModifyDBSyncMode(request *ModifyDBSyncModeRequest) (response *ModifyDBSyncModeResponse, err error) {
return c.ModifyDBSyncModeWithContext(context.Background(), request)
}
// ModifyDBSyncMode
// 本接口(ModifyDBSyncMode)用于修改云数据库实例的同步模式。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETERVALUE_BADSYNCMODE = "InvalidParameterValue.BadSyncMode"
// RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"
func (c *Client) ModifyDBSyncModeWithContext(ctx context.Context, request *ModifyDBSyncModeRequest) (response *ModifyDBSyncModeResponse, err error) {
if request == nil {
request = NewModifyDBSyncModeRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifyDBSyncMode require credential")
}
request.SetContext(ctx)
response = NewModifyDBSyncModeResponse()
err = c.Send(request, response)
return
}
func NewModifyInstanceNetworkRequest() (request *ModifyInstanceNetworkRequest) {
request = &ModifyInstanceNetworkRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "ModifyInstanceNetwork")
return
}
func NewModifyInstanceNetworkResponse() (response *ModifyInstanceNetworkResponse) {
response = &ModifyInstanceNetworkResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyInstanceNetwork
// 本接口(ModifyInstanceNetwork)用于修改实例所属网络
//
// 可能返回的错误码:
// FAILEDOPERATION_APPLYVIPFAILED = "FailedOperation.ApplyVipFailed"
// FAILEDOPERATION_WANSTATUSABNORMAL = "FailedOperation.WanStatusAbnormal"
// INTERNALERROR_CHECKVIPSTATUSFAILED = "InternalError.CheckVipStatusFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
// INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
// INTERNALERROR_VPCOPERATIONFAILED = "InternalError.VpcOperationFailed"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_SUBNETUNAVAILABLE = "InvalidParameter.SubnetUnavailable"
// INVALIDPARAMETER_VIPNOTINSUBNET = "InvalidParameter.VipNotInSubnet"
// INVALIDPARAMETER_VIPUSED = "InvalidParameter.VipUsed"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyInstanceNetwork(request *ModifyInstanceNetworkRequest) (response *ModifyInstanceNetworkResponse, err error) {
return c.ModifyInstanceNetworkWithContext(context.Background(), request)
}
// ModifyInstanceNetwork
// 本接口(ModifyInstanceNetwork)用于修改实例所属网络
//
// 可能返回的错误码:
// FAILEDOPERATION_APPLYVIPFAILED = "FailedOperation.ApplyVipFailed"
// FAILEDOPERATION_WANSTATUSABNORMAL = "FailedOperation.WanStatusAbnormal"
// INTERNALERROR_CHECKVIPSTATUSFAILED = "InternalError.CheckVipStatusFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
// INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
// INTERNALERROR_VPCOPERATIONFAILED = "InternalError.VpcOperationFailed"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_SUBNETUNAVAILABLE = "InvalidParameter.SubnetUnavailable"
// INVALIDPARAMETER_VIPNOTINSUBNET = "InvalidParameter.VipNotInSubnet"
// INVALIDPARAMETER_VIPUSED = "InvalidParameter.VipUsed"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyInstanceNetworkWithContext(ctx context.Context, request *ModifyInstanceNetworkRequest) (response *ModifyInstanceNetworkResponse, err error) {
if request == nil {
request = NewModifyInstanceNetworkRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifyInstanceNetwork require credential")
}
request.SetContext(ctx)
response = NewModifyInstanceNetworkResponse()
err = c.Send(request, response)
return
}
func NewModifyInstanceVipRequest() (request *ModifyInstanceVipRequest) {
request = &ModifyInstanceVipRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "ModifyInstanceVip")
return
}
func NewModifyInstanceVipResponse() (response *ModifyInstanceVipResponse) {
response = &ModifyInstanceVipResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyInstanceVip
// 本接口(ModifyInstanceVip)用于修改实例VIP
//
// 可能返回的错误码:
// FAILEDOPERATION_APPLYVIPFAILED = "FailedOperation.ApplyVipFailed"
// FAILEDOPERATION_VIPNOTCHANGE = "FailedOperation.VipNotChange"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_VIPNOTINSUBNET = "InvalidParameter.VipNotInSubnet"
// INVALIDPARAMETER_VIPUSED = "InvalidParameter.VipUsed"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyInstanceVip(request *ModifyInstanceVipRequest) (response *ModifyInstanceVipResponse, err error) {
return c.ModifyInstanceVipWithContext(context.Background(), request)
}
// ModifyInstanceVip
// 本接口(ModifyInstanceVip)用于修改实例VIP
//
// 可能返回的错误码:
// FAILEDOPERATION_APPLYVIPFAILED = "FailedOperation.ApplyVipFailed"
// FAILEDOPERATION_VIPNOTCHANGE = "FailedOperation.VipNotChange"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_VIPNOTINSUBNET = "InvalidParameter.VipNotInSubnet"
// INVALIDPARAMETER_VIPUSED = "InvalidParameter.VipUsed"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyInstanceVipWithContext(ctx context.Context, request *ModifyInstanceVipRequest) (response *ModifyInstanceVipResponse, err error) {
if request == nil {
request = NewModifyInstanceVipRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifyInstanceVip require credential")
}
request.SetContext(ctx)
response = NewModifyInstanceVipResponse()
err = c.Send(request, response)
return
}
func NewModifyInstanceVportRequest() (request *ModifyInstanceVportRequest) {
request = &ModifyInstanceVportRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "ModifyInstanceVport")
return
}
func NewModifyInstanceVportResponse() (response *ModifyInstanceVportResponse) {
response = &ModifyInstanceVportResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyInstanceVport
// 本接口(ModifyInstanceVport)用于修改实例VPORT
//
// 可能返回的错误码:
// FAILEDOPERATION_SGCHANGEVIP = "FailedOperation.SGChangeVip"
// FAILEDOPERATION_VPCADDSERVICEFAILED = "FailedOperation.VpcAddServiceFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_VIPUSED = "InvalidParameter.VipUsed"
// INVALIDPARAMETER_VPORTUSED = "InvalidParameter.VportUsed"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyInstanceVport(request *ModifyInstanceVportRequest) (response *ModifyInstanceVportResponse, err error) {
return c.ModifyInstanceVportWithContext(context.Background(), request)
}
// ModifyInstanceVport
// 本接口(ModifyInstanceVport)用于修改实例VPORT
//
// 可能返回的错误码:
// FAILEDOPERATION_SGCHANGEVIP = "FailedOperation.SGChangeVip"
// FAILEDOPERATION_VPCADDSERVICEFAILED = "FailedOperation.VpcAddServiceFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_VIPUSED = "InvalidParameter.VipUsed"
// INVALIDPARAMETER_VPORTUSED = "InvalidParameter.VportUsed"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyInstanceVportWithContext(ctx context.Context, request *ModifyInstanceVportRequest) (response *ModifyInstanceVportResponse, err error) {
if request == nil {
request = NewModifyInstanceVportRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifyInstanceVport require credential")
}
request.SetContext(ctx)
response = NewModifyInstanceVportResponse()
err = c.Send(request, response)
return
}
func NewModifyLogFileRetentionPeriodRequest() (request *ModifyLogFileRetentionPeriodRequest) {
request = &ModifyLogFileRetentionPeriodRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "ModifyLogFileRetentionPeriod")
return
}
func NewModifyLogFileRetentionPeriodResponse() (response *ModifyLogFileRetentionPeriodResponse) {
response = &ModifyLogFileRetentionPeriodResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyLogFileRetentionPeriod
// 本接口(ModifyLogFileRetentionPeriod)用于修改数据库备份日志保存天数。
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETERVALUE_ILLEGALLOGSAVEDAYS = "InvalidParameterValue.IllegalLogSaveDays"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyLogFileRetentionPeriod(request *ModifyLogFileRetentionPeriodRequest) (response *ModifyLogFileRetentionPeriodResponse, err error) {
return c.ModifyLogFileRetentionPeriodWithContext(context.Background(), request)
}
// ModifyLogFileRetentionPeriod
// 本接口(ModifyLogFileRetentionPeriod)用于修改数据库备份日志保存天数。
//
// 可能返回的错误码:
// FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETERVALUE_ILLEGALLOGSAVEDAYS = "InvalidParameterValue.IllegalLogSaveDays"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyLogFileRetentionPeriodWithContext(ctx context.Context, request *ModifyLogFileRetentionPeriodRequest) (response *ModifyLogFileRetentionPeriodResponse, err error) {
if request == nil {
request = NewModifyLogFileRetentionPeriodRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifyLogFileRetentionPeriod require credential")
}
request.SetContext(ctx)
response = NewModifyLogFileRetentionPeriodResponse()
err = c.Send(request, response)
return
}
func NewModifyRealServerAccessStrategyRequest() (request *ModifyRealServerAccessStrategyRequest) {
request = &ModifyRealServerAccessStrategyRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "ModifyRealServerAccessStrategy")
return
}
func NewModifyRealServerAccessStrategyResponse() (response *ModifyRealServerAccessStrategyResponse) {
response = &ModifyRealServerAccessStrategyResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyRealServerAccessStrategy
// 本接口(ModifyRealServerAccessStrategy)用于修改云数据库的VPCGW到RS的访问策略。
//
//
//
// **注意**
//
// - 修改策略后只对新建立的连接生效,老连接不受影响
//
// - 就近访问只针对实例是跨可用区部署有用,单可用区部署实例就近与否并无作用
//
// - DB每个Node对应一个proxy,如果开启就近访问,将会把连接集中到对应可用区的proxy上,可能造成热点问题,这种情况下如果是线上业务,请务必根据自己的业务请求量测试符合预期后再进行就近策略变更
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_VPCUPDATEROUTEFAILED = "FailedOperation.VpcUpdateRouteFailed"
// INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_SUBNETUNAVAILABLE = "InvalidParameter.SubnetUnavailable"
// INVALIDPARAMETER_VPCNOTFOUND = "InvalidParameter.VpcNotFound"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyRealServerAccessStrategy(request *ModifyRealServerAccessStrategyRequest) (response *ModifyRealServerAccessStrategyResponse, err error) {
return c.ModifyRealServerAccessStrategyWithContext(context.Background(), request)
}
// ModifyRealServerAccessStrategy
// 本接口(ModifyRealServerAccessStrategy)用于修改云数据库的VPCGW到RS的访问策略。
//
//
//
// **注意**
//
// - 修改策略后只对新建立的连接生效,老连接不受影响
//
// - 就近访问只针对实例是跨可用区部署有用,单可用区部署实例就近与否并无作用
//
// - DB每个Node对应一个proxy,如果开启就近访问,将会把连接集中到对应可用区的proxy上,可能造成热点问题,这种情况下如果是线上业务,请务必根据自己的业务请求量测试符合预期后再进行就近策略变更
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_VPCUPDATEROUTEFAILED = "FailedOperation.VpcUpdateRouteFailed"
// INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_SUBNETUNAVAILABLE = "InvalidParameter.SubnetUnavailable"
// INVALIDPARAMETER_VPCNOTFOUND = "InvalidParameter.VpcNotFound"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ModifyRealServerAccessStrategyWithContext(ctx context.Context, request *ModifyRealServerAccessStrategyRequest) (response *ModifyRealServerAccessStrategyResponse, err error) {
if request == nil {
request = NewModifyRealServerAccessStrategyRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifyRealServerAccessStrategy require credential")
}
request.SetContext(ctx)
response = NewModifyRealServerAccessStrategyResponse()
err = c.Send(request, response)
return
}
func NewModifySyncTaskAttributeRequest() (request *ModifySyncTaskAttributeRequest) {
request = &ModifySyncTaskAttributeRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "ModifySyncTaskAttribute")
return
}
func NewModifySyncTaskAttributeResponse() (response *ModifySyncTaskAttributeResponse) {
response = &ModifySyncTaskAttributeResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifySyncTaskAttribute
// 本接口 (ModifySyncTaskAttribute) 用于修改同步任务的属性(目前只支持修改任务名称)
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// RESOURCENOTFOUND_SYNCTASKDELETED = "ResourceNotFound.SyncTaskDeleted"
func (c *Client) ModifySyncTaskAttribute(request *ModifySyncTaskAttributeRequest) (response *ModifySyncTaskAttributeResponse, err error) {
return c.ModifySyncTaskAttributeWithContext(context.Background(), request)
}
// ModifySyncTaskAttribute
// 本接口 (ModifySyncTaskAttribute) 用于修改同步任务的属性(目前只支持修改任务名称)
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// RESOURCENOTFOUND_SYNCTASKDELETED = "ResourceNotFound.SyncTaskDeleted"
func (c *Client) ModifySyncTaskAttributeWithContext(ctx context.Context, request *ModifySyncTaskAttributeRequest) (response *ModifySyncTaskAttributeResponse, err error) {
if request == nil {
request = NewModifySyncTaskAttributeRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifySyncTaskAttribute require credential")
}
request.SetContext(ctx)
response = NewModifySyncTaskAttributeResponse()
err = c.Send(request, response)
return
}
func NewOpenDBExtranetAccessRequest() (request *OpenDBExtranetAccessRequest) {
request = &OpenDBExtranetAccessRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "OpenDBExtranetAccess")
return
}
func NewOpenDBExtranetAccessResponse() (response *OpenDBExtranetAccessResponse) {
response = &OpenDBExtranetAccessResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// OpenDBExtranetAccess
// 本接口(OpenDBExtranetAccess)用于开通云数据库实例的外网访问。开通外网访问后,您可通过外网域名和端口访问实例,可使用查询实例列表接口获取外网域名和端口信息。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_CREATEFLOWFAILED = "InternalError.CreateFlowFailed"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"
func (c *Client) OpenDBExtranetAccess(request *OpenDBExtranetAccessRequest) (response *OpenDBExtranetAccessResponse, err error) {
return c.OpenDBExtranetAccessWithContext(context.Background(), request)
}
// OpenDBExtranetAccess
// 本接口(OpenDBExtranetAccess)用于开通云数据库实例的外网访问。开通外网访问后,您可通过外网域名和端口访问实例,可使用查询实例列表接口获取外网域名和端口信息。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_CREATEFLOWFAILED = "InternalError.CreateFlowFailed"
// INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"
func (c *Client) OpenDBExtranetAccessWithContext(ctx context.Context, request *OpenDBExtranetAccessRequest) (response *OpenDBExtranetAccessResponse, err error) {
if request == nil {
request = NewOpenDBExtranetAccessRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("OpenDBExtranetAccess require credential")
}
request.SetContext(ctx)
response = NewOpenDBExtranetAccessResponse()
err = c.Send(request, response)
return
}
func NewRenewDBInstanceRequest() (request *RenewDBInstanceRequest) {
request = &RenewDBInstanceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "RenewDBInstance")
return
}
func NewRenewDBInstanceResponse() (response *RenewDBInstanceResponse) {
response = &RenewDBInstanceResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// RenewDBInstance
// 本接口(RenewDBInstance)用于续费云数据库实例。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed"
// FAILEDOPERATION_PAYFAILED = "FailedOperation.PayFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_NOTSUPPORTEDPAYMODE = "InvalidParameter.NotSupportedPayMode"
// INVALIDPARAMETER_SPECNOTFOUND = "InvalidParameter.SpecNotFound"
// INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
// RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) RenewDBInstance(request *RenewDBInstanceRequest) (response *RenewDBInstanceResponse, err error) {
return c.RenewDBInstanceWithContext(context.Background(), request)
}
// RenewDBInstance
// 本接口(RenewDBInstance)用于续费云数据库实例。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed"
// FAILEDOPERATION_PAYFAILED = "FailedOperation.PayFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// INVALIDPARAMETER_NOTSUPPORTEDPAYMODE = "InvalidParameter.NotSupportedPayMode"
// INVALIDPARAMETER_SPECNOTFOUND = "InvalidParameter.SpecNotFound"
// INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
// RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) RenewDBInstanceWithContext(ctx context.Context, request *RenewDBInstanceRequest) (response *RenewDBInstanceResponse, err error) {
if request == nil {
request = NewRenewDBInstanceRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("RenewDBInstance require credential")
}
request.SetContext(ctx)
response = NewRenewDBInstanceResponse()
err = c.Send(request, response)
return
}
func NewResetAccountPasswordRequest() (request *ResetAccountPasswordRequest) {
request = &ResetAccountPasswordRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "ResetAccountPassword")
return
}
func NewResetAccountPasswordResponse() (response *ResetAccountPasswordResponse) {
response = &ResetAccountPasswordResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ResetAccountPassword
// 本接口(ResetAccountPassword)用于重置云数据库账号的密码。
//
// 注意:相同用户名,不同Host是不同的账号。
//
// 可能返回的错误码:
// FAILEDOPERATION_RESETPASSWORDFAILED = "FailedOperation.ResetPasswordFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_CHARACTERERROR = "InvalidParameter.CharacterError"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ResetAccountPassword(request *ResetAccountPasswordRequest) (response *ResetAccountPasswordResponse, err error) {
return c.ResetAccountPasswordWithContext(context.Background(), request)
}
// ResetAccountPassword
// 本接口(ResetAccountPassword)用于重置云数据库账号的密码。
//
// 注意:相同用户名,不同Host是不同的账号。
//
// 可能返回的错误码:
// FAILEDOPERATION_RESETPASSWORDFAILED = "FailedOperation.ResetPasswordFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_CHARACTERERROR = "InvalidParameter.CharacterError"
// INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) ResetAccountPasswordWithContext(ctx context.Context, request *ResetAccountPasswordRequest) (response *ResetAccountPasswordResponse, err error) {
if request == nil {
request = NewResetAccountPasswordRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ResetAccountPassword require credential")
}
request.SetContext(ctx)
response = NewResetAccountPasswordResponse()
err = c.Send(request, response)
return
}
func NewRestartDBInstancesRequest() (request *RestartDBInstancesRequest) {
request = &RestartDBInstancesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "RestartDBInstances")
return
}
func NewRestartDBInstancesResponse() (response *RestartDBInstancesResponse) {
response = &RestartDBInstancesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// RestartDBInstances
// 本接口(RestartDBInstances)用于重启数据库实例
//
// 可能返回的错误码:
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER = "InvalidParameter"
// RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) RestartDBInstances(request *RestartDBInstancesRequest) (response *RestartDBInstancesResponse, err error) {
return c.RestartDBInstancesWithContext(context.Background(), request)
}
// RestartDBInstances
// 本接口(RestartDBInstances)用于重启数据库实例
//
// 可能返回的错误码:
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER = "InvalidParameter"
// RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) RestartDBInstancesWithContext(ctx context.Context, request *RestartDBInstancesRequest) (response *RestartDBInstancesResponse, err error) {
if request == nil {
request = NewRestartDBInstancesRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("RestartDBInstances require credential")
}
request.SetContext(ctx)
response = NewRestartDBInstancesResponse()
err = c.Send(request, response)
return
}
func NewSwitchDBInstanceHARequest() (request *SwitchDBInstanceHARequest) {
request = &SwitchDBInstanceHARequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "SwitchDBInstanceHA")
return
}
func NewSwitchDBInstanceHAResponse() (response *SwitchDBInstanceHAResponse) {
response = &SwitchDBInstanceHAResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// SwitchDBInstanceHA
// 本接口(SwitchDBInstanceHA)用于发起实例主备切换。
//
// 可能返回的错误码:
// INTERNALERROR_CREATEFLOWFAILED = "InternalError.CreateFlowFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETINSTANCEDETAILFAILED = "InternalError.GetInstanceDetailFailed"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_ZONEIDILLEGAL = "InvalidParameter.ZoneIdIllegal"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"
// UNSUPPORTEDOPERATION_OPERATIONNOTAPPLICABLE = "UnsupportedOperation.OperationNotApplicable"
func (c *Client) SwitchDBInstanceHA(request *SwitchDBInstanceHARequest) (response *SwitchDBInstanceHAResponse, err error) {
return c.SwitchDBInstanceHAWithContext(context.Background(), request)
}
// SwitchDBInstanceHA
// 本接口(SwitchDBInstanceHA)用于发起实例主备切换。
//
// 可能返回的错误码:
// INTERNALERROR_CREATEFLOWFAILED = "InternalError.CreateFlowFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INTERNALERROR_GETINSTANCEDETAILFAILED = "InternalError.GetInstanceDetailFailed"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETER_ZONEIDILLEGAL = "InvalidParameter.ZoneIdIllegal"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"
// UNSUPPORTEDOPERATION_OPERATIONNOTAPPLICABLE = "UnsupportedOperation.OperationNotApplicable"
func (c *Client) SwitchDBInstanceHAWithContext(ctx context.Context, request *SwitchDBInstanceHARequest) (response *SwitchDBInstanceHAResponse, err error) {
if request == nil {
request = NewSwitchDBInstanceHARequest()
}
if c.GetCredential() == nil {
return nil, errors.New("SwitchDBInstanceHA require credential")
}
request.SetContext(ctx)
response = NewSwitchDBInstanceHAResponse()
err = c.Send(request, response)
return
}
func NewTerminateDedicatedDBInstanceRequest() (request *TerminateDedicatedDBInstanceRequest) {
request = &TerminateDedicatedDBInstanceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "TerminateDedicatedDBInstance")
return
}
func NewTerminateDedicatedDBInstanceResponse() (response *TerminateDedicatedDBInstanceResponse) {
response = &TerminateDedicatedDBInstanceResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// TerminateDedicatedDBInstance
// 本接口(TerminateDedicatedDBInstance)用于销毁已隔离的独享云数据库实例。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_CREATEFLOWFAILED = "InternalError.CreateFlowFailed"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) TerminateDedicatedDBInstance(request *TerminateDedicatedDBInstanceRequest) (response *TerminateDedicatedDBInstanceResponse, err error) {
return c.TerminateDedicatedDBInstanceWithContext(context.Background(), request)
}
// TerminateDedicatedDBInstance
// 本接口(TerminateDedicatedDBInstance)用于销毁已隔离的独享云数据库实例。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
// INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
// INTERNALERROR_CREATEFLOWFAILED = "InternalError.CreateFlowFailed"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) TerminateDedicatedDBInstanceWithContext(ctx context.Context, request *TerminateDedicatedDBInstanceRequest) (response *TerminateDedicatedDBInstanceResponse, err error) {
if request == nil {
request = NewTerminateDedicatedDBInstanceRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("TerminateDedicatedDBInstance require credential")
}
request.SetContext(ctx)
response = NewTerminateDedicatedDBInstanceResponse()
err = c.Send(request, response)
return
}
func NewUpgradeDBInstanceRequest() (request *UpgradeDBInstanceRequest) {
request = &UpgradeDBInstanceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "UpgradeDBInstance")
return
}
func NewUpgradeDBInstanceResponse() (response *UpgradeDBInstanceResponse) {
response = &UpgradeDBInstanceResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// UpgradeDBInstance
// 本接口(UpgradeDBInstance)用于扩容云数据库实例。本接口完成下单和支付两个动作,如果发生支付失败的错误,调用用户账户相关接口中的支付订单接口(PayDeals)重新支付即可。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed"
// FAILEDOPERATION_PAYFAILED = "FailedOperation.PayFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_SPECNOTFOUND = "InvalidParameter.SpecNotFound"
// INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
// RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) UpgradeDBInstance(request *UpgradeDBInstanceRequest) (response *UpgradeDBInstanceResponse, err error) {
return c.UpgradeDBInstanceWithContext(context.Background(), request)
}
// UpgradeDBInstance
// 本接口(UpgradeDBInstance)用于扩容云数据库实例。本接口完成下单和支付两个动作,如果发生支付失败的错误,调用用户账户相关接口中的支付订单接口(PayDeals)重新支付即可。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed"
// FAILEDOPERATION_PAYFAILED = "FailedOperation.PayFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER_SPECNOTFOUND = "InvalidParameter.SpecNotFound"
// INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
// RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
func (c *Client) UpgradeDBInstanceWithContext(ctx context.Context, request *UpgradeDBInstanceRequest) (response *UpgradeDBInstanceResponse, err error) {
if request == nil {
request = NewUpgradeDBInstanceRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("UpgradeDBInstance require credential")
}
request.SetContext(ctx)
response = NewUpgradeDBInstanceResponse()
err = c.Send(request, response)
return
}
func NewUpgradeDedicatedDBInstanceRequest() (request *UpgradeDedicatedDBInstanceRequest) {
request = &UpgradeDedicatedDBInstanceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("mariadb", APIVersion, "UpgradeDedicatedDBInstance")
return
}
func NewUpgradeDedicatedDBInstanceResponse() (response *UpgradeDedicatedDBInstanceResponse) {
response = &UpgradeDedicatedDBInstanceResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// UpgradeDedicatedDBInstance
// 本接口(UpgradeDedicatedDBInstance)用于扩容独享云数据库实例。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETERVALUE_ILLEGALEXCLUSTERID = "InvalidParameterValue.IllegalExclusterID"
// INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
// RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"
func (c *Client) UpgradeDedicatedDBInstance(request *UpgradeDedicatedDBInstanceRequest) (response *UpgradeDedicatedDBInstanceResponse, err error) {
return c.UpgradeDedicatedDBInstanceWithContext(context.Background(), request)
}
// UpgradeDedicatedDBInstance
// 本接口(UpgradeDedicatedDBInstance)用于扩容独享云数据库实例。
//
// 可能返回的错误码:
// FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
// INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
// INVALIDPARAMETERVALUE_ILLEGALEXCLUSTERID = "InvalidParameterValue.IllegalExclusterID"
// INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
// RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
// RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
// RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
// UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
// UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"
func (c *Client) UpgradeDedicatedDBInstanceWithContext(ctx context.Context, request *UpgradeDedicatedDBInstanceRequest) (response *UpgradeDedicatedDBInstanceResponse, err error) {
if request == nil {
request = NewUpgradeDedicatedDBInstanceRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("UpgradeDedicatedDBInstance require credential")
}
request.SetContext(ctx)
response = NewUpgradeDedicatedDBInstanceResponse()
err = c.Send(request, response)
return
}
1
https://gitee.com/tencentcloud/tencentcloud-sdk-go.git
git@gitee.com:tencentcloud/tencentcloud-sdk-go.git
tencentcloud
tencentcloud-sdk-go
tencentcloud-sdk-go
master

搜索帮助