|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695 |
- // 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 v20180525
-
- import (
- "encoding/json"
- tcerr "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors"
- tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http"
- )
-
- type AcquireClusterAdminRoleRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
- }
-
- func (r *AcquireClusterAdminRoleRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *AcquireClusterAdminRoleRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "AcquireClusterAdminRoleRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type AcquireClusterAdminRoleResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *AcquireClusterAdminRoleResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *AcquireClusterAdminRoleResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type AddClusterCIDRRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 增加的ClusterCIDR
- ClusterCIDRs []*string `json:"ClusterCIDRs,omitempty" name:"ClusterCIDRs"`
-
- // 是否忽略ClusterCIDR与VPC路由表的冲突
- IgnoreClusterCIDRConflict *bool `json:"IgnoreClusterCIDRConflict,omitempty" name:"IgnoreClusterCIDRConflict"`
- }
-
- func (r *AddClusterCIDRRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *AddClusterCIDRRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "ClusterCIDRs")
- delete(f, "IgnoreClusterCIDRConflict")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "AddClusterCIDRRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type AddClusterCIDRResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *AddClusterCIDRResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *AddClusterCIDRResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type AddExistedInstancesRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 实例列表,不支持竞价实例
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
-
- // 实例额外需要设置参数信息(默认值)
- InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"`
-
- // 增强服务。通过该参数可以指定是否开启云安全、云监控等服务。若不指定该参数,则默认开启云监控、云安全服务。
- EnhancedService *EnhancedService `json:"EnhancedService,omitempty" name:"EnhancedService"`
-
- // 节点登录信息(目前仅支持使用Password或者单个KeyIds)
- LoginSettings *LoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"`
-
- // 重装系统时,可以指定修改实例的HostName(集群为HostName模式时,此参数必传,规则名称除不支持大写字符外与[CVM创建实例](https://cloud.tencent.com/document/product/213/15730)接口HostName一致)
- HostName *string `json:"HostName,omitempty" name:"HostName"`
-
- // 实例所属安全组。该参数可以通过调用 DescribeSecurityGroups 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。(目前仅支持设置单个sgId)
- SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
-
- // 节点池选项
- NodePool *NodePoolOption `json:"NodePool,omitempty" name:"NodePool"`
-
- // 校验规则相关选项,可配置跳过某些校验规则。目前支持GlobalRouteCIDRCheck(跳过GlobalRouter的相关校验),VpcCniCIDRCheck(跳过VpcCni相关校验)
- SkipValidateOptions []*string `json:"SkipValidateOptions,omitempty" name:"SkipValidateOptions"`
-
- // 参数InstanceAdvancedSettingsOverride数组用于定制化地配置各台instance,与InstanceIds顺序对应。当传入InstanceAdvancedSettingsOverrides数组时,将覆盖默认参数InstanceAdvancedSettings;当没有传入参数InstanceAdvancedSettingsOverrides时,InstanceAdvancedSettings参数对每台instance生效。
- //
- // 参数InstanceAdvancedSettingsOverride数组的长度应与InstanceIds数组一致;当长度大于InstanceIds数组长度时将报错;当长度小于InstanceIds数组时,没有对应配置的instace将使用默认配置。
- InstanceAdvancedSettingsOverrides []*InstanceAdvancedSettings `json:"InstanceAdvancedSettingsOverrides,omitempty" name:"InstanceAdvancedSettingsOverrides"`
- }
-
- func (r *AddExistedInstancesRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *AddExistedInstancesRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "InstanceIds")
- delete(f, "InstanceAdvancedSettings")
- delete(f, "EnhancedService")
- delete(f, "LoginSettings")
- delete(f, "HostName")
- delete(f, "SecurityGroupIds")
- delete(f, "NodePool")
- delete(f, "SkipValidateOptions")
- delete(f, "InstanceAdvancedSettingsOverrides")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "AddExistedInstancesRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type AddExistedInstancesResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 失败的节点ID
- // 注意:此字段可能返回 null,表示取不到有效值。
- FailedInstanceIds []*string `json:"FailedInstanceIds,omitempty" name:"FailedInstanceIds"`
-
- // 成功的节点ID
- // 注意:此字段可能返回 null,表示取不到有效值。
- SuccInstanceIds []*string `json:"SuccInstanceIds,omitempty" name:"SuccInstanceIds"`
-
- // 超时未返回出来节点的ID(可能失败,也可能成功)
- // 注意:此字段可能返回 null,表示取不到有效值。
- TimeoutInstanceIds []*string `json:"TimeoutInstanceIds,omitempty" name:"TimeoutInstanceIds"`
-
- // 失败的节点的失败原因
- // 注意:此字段可能返回 null,表示取不到有效值。
- FailedReasons []*string `json:"FailedReasons,omitempty" name:"FailedReasons"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *AddExistedInstancesResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *AddExistedInstancesResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type AddNodeToNodePoolRequest struct {
- *tchttp.BaseRequest
-
- // 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 节点池id
- NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"`
-
- // 节点id
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
- }
-
- func (r *AddNodeToNodePoolRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *AddNodeToNodePoolRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "NodePoolId")
- delete(f, "InstanceIds")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "AddNodeToNodePoolRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type AddNodeToNodePoolResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *AddNodeToNodePoolResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *AddNodeToNodePoolResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type AddVpcCniSubnetsRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 为集群容器网络增加的子网列表
- SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds"`
-
- // 集群所属的VPC的ID
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
- }
-
- func (r *AddVpcCniSubnetsRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *AddVpcCniSubnetsRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "SubnetIds")
- delete(f, "VpcId")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "AddVpcCniSubnetsRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type AddVpcCniSubnetsResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *AddVpcCniSubnetsResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *AddVpcCniSubnetsResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type AppChart struct {
-
- // chart名称
- Name *string `json:"Name,omitempty" name:"Name"`
-
- // chart的标签
- // 注意:此字段可能返回 null,表示取不到有效值。
- Label *string `json:"Label,omitempty" name:"Label"`
-
- // chart的版本
- LatestVersion *string `json:"LatestVersion,omitempty" name:"LatestVersion"`
- }
-
- type AutoScalingGroupRange struct {
-
- // 伸缩组最小实例数
- MinSize *int64 `json:"MinSize,omitempty" name:"MinSize"`
-
- // 伸缩组最大实例数
- MaxSize *int64 `json:"MaxSize,omitempty" name:"MaxSize"`
- }
-
- type AutoUpgradeClusterLevel struct {
-
- // 是否开启自动变配集群等级
- IsAutoUpgrade *bool `json:"IsAutoUpgrade,omitempty" name:"IsAutoUpgrade"`
- }
-
- type AutoscalingAdded struct {
-
- // 正在加入中的节点数量
- Joining *int64 `json:"Joining,omitempty" name:"Joining"`
-
- // 初始化中的节点数量
- Initializing *int64 `json:"Initializing,omitempty" name:"Initializing"`
-
- // 正常的节点数量
- Normal *int64 `json:"Normal,omitempty" name:"Normal"`
-
- // 节点总数
- Total *int64 `json:"Total,omitempty" name:"Total"`
- }
-
- type Capabilities struct {
-
- // 启用安全能力项列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- Add []*string `json:"Add,omitempty" name:"Add"`
-
- // 禁用安全能力向列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- Drop []*string `json:"Drop,omitempty" name:"Drop"`
- }
-
- type CbsVolume struct {
-
- // cbs volume 数据卷名称
- Name *string `json:"Name,omitempty" name:"Name"`
-
- // 腾讯云cbs盘Id
- CbsDiskId *string `json:"CbsDiskId,omitempty" name:"CbsDiskId"`
- }
-
- type CheckInstancesUpgradeAbleRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 节点列表,空为全部节点
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
-
- // 升级类型
- UpgradeType *string `json:"UpgradeType,omitempty" name:"UpgradeType"`
-
- // 分页Offset
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
-
- // 分页Limit
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
-
- // 过滤
- Filter []*Filter `json:"Filter,omitempty" name:"Filter"`
- }
-
- func (r *CheckInstancesUpgradeAbleRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CheckInstancesUpgradeAbleRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "InstanceIds")
- delete(f, "UpgradeType")
- delete(f, "Offset")
- delete(f, "Limit")
- delete(f, "Filter")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CheckInstancesUpgradeAbleRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CheckInstancesUpgradeAbleResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 集群master当前小版本
- ClusterVersion *string `json:"ClusterVersion,omitempty" name:"ClusterVersion"`
-
- // 集群master对应的大版本目前最新小版本
- LatestVersion *string `json:"LatestVersion,omitempty" name:"LatestVersion"`
-
- // 可升级节点列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- UpgradeAbleInstances []*UpgradeAbleInstancesItem `json:"UpgradeAbleInstances,omitempty" name:"UpgradeAbleInstances"`
-
- // 总数
- // 注意:此字段可能返回 null,表示取不到有效值。
- Total *int64 `json:"Total,omitempty" name:"Total"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *CheckInstancesUpgradeAbleResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CheckInstancesUpgradeAbleResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type Cluster struct {
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 集群名称
- ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"`
-
- // 集群描述
- ClusterDescription *string `json:"ClusterDescription,omitempty" name:"ClusterDescription"`
-
- // 集群版本(默认值为1.10.5)
- ClusterVersion *string `json:"ClusterVersion,omitempty" name:"ClusterVersion"`
-
- // 集群系统。centos7.2x86_64 或者 ubuntu16.04.1 LTSx86_64,默认取值为ubuntu16.04.1 LTSx86_64
- ClusterOs *string `json:"ClusterOs,omitempty" name:"ClusterOs"`
-
- // 集群类型,托管集群:MANAGED_CLUSTER,独立集群:INDEPENDENT_CLUSTER。
- ClusterType *string `json:"ClusterType,omitempty" name:"ClusterType"`
-
- // 集群网络相关参数
- ClusterNetworkSettings *ClusterNetworkSettings `json:"ClusterNetworkSettings,omitempty" name:"ClusterNetworkSettings"`
-
- // 集群当前node数量
- ClusterNodeNum *uint64 `json:"ClusterNodeNum,omitempty" name:"ClusterNodeNum"`
-
- // 集群所属的项目ID
- ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"`
-
- // 标签描述列表。
- // 注意:此字段可能返回 null,表示取不到有效值。
- TagSpecification []*TagSpecification `json:"TagSpecification,omitempty" name:"TagSpecification"`
-
- // 集群状态 (Running 运行中 Creating 创建中 Idling 闲置中 Abnormal 异常 )
- ClusterStatus *string `json:"ClusterStatus,omitempty" name:"ClusterStatus"`
-
- // 集群属性(包括集群不同属性的MAP,属性字段包括NodeNameType (lan-ip模式和hostname 模式,默认无lan-ip模式))
- // 注意:此字段可能返回 null,表示取不到有效值。
- Property *string `json:"Property,omitempty" name:"Property"`
-
- // 集群当前master数量
- ClusterMaterNodeNum *uint64 `json:"ClusterMaterNodeNum,omitempty" name:"ClusterMaterNodeNum"`
-
- // 集群使用镜像id
- // 注意:此字段可能返回 null,表示取不到有效值。
- ImageId *string `json:"ImageId,omitempty" name:"ImageId"`
-
- // OsCustomizeType 系统定制类型
- // 注意:此字段可能返回 null,表示取不到有效值。
- OsCustomizeType *string `json:"OsCustomizeType,omitempty" name:"OsCustomizeType"`
-
- // 集群运行环境docker或container
- // 注意:此字段可能返回 null,表示取不到有效值。
- ContainerRuntime *string `json:"ContainerRuntime,omitempty" name:"ContainerRuntime"`
-
- // 创建时间
- // 注意:此字段可能返回 null,表示取不到有效值。
- CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"`
-
- // 删除保护开关
- // 注意:此字段可能返回 null,表示取不到有效值。
- DeletionProtection *bool `json:"DeletionProtection,omitempty" name:"DeletionProtection"`
-
- // 集群是否开启第三方节点支持
- // 注意:此字段可能返回 null,表示取不到有效值。
- EnableExternalNode *bool `json:"EnableExternalNode,omitempty" name:"EnableExternalNode"`
- }
-
- type ClusterAdvancedSettings struct {
-
- // 是否启用IPVS
- IPVS *bool `json:"IPVS,omitempty" name:"IPVS"`
-
- // 是否启用集群节点自动扩缩容(创建集群流程不支持开启此功能)
- AsEnabled *bool `json:"AsEnabled,omitempty" name:"AsEnabled"`
-
- // 集群使用的runtime类型,包括"docker"和"containerd"两种类型,默认为"docker"
- ContainerRuntime *string `json:"ContainerRuntime,omitempty" name:"ContainerRuntime"`
-
- // 集群中节点NodeName类型(包括 hostname,lan-ip两种形式,默认为lan-ip。如果开启了hostname模式,创建节点时需要设置HostName参数,并且InstanceName需要和HostName一致)
- NodeNameType *string `json:"NodeNameType,omitempty" name:"NodeNameType"`
-
- // 集群自定义参数
- ExtraArgs *ClusterExtraArgs `json:"ExtraArgs,omitempty" name:"ExtraArgs"`
-
- // 集群网络类型(包括GR(全局路由)和VPC-CNI两种模式,默认为GR。
- NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"`
-
- // 集群VPC-CNI模式是否为非固定IP,默认: FALSE 固定IP。
- IsNonStaticIpMode *bool `json:"IsNonStaticIpMode,omitempty" name:"IsNonStaticIpMode"`
-
- // 是否启用集群删除保护
- DeletionProtection *bool `json:"DeletionProtection,omitempty" name:"DeletionProtection"`
-
- // 集群的网络代理模型,目前tke集群支持的网络代理模式有三种:iptables,ipvs,ipvs-bpf,此参数仅在使用ipvs-bpf模式时使用,三种网络模式的参数设置关系如下:
- // iptables模式:IPVS和KubeProxyMode都不设置
- // ipvs模式: 设置IPVS为true, KubeProxyMode不设置
- // ipvs-bpf模式: 设置KubeProxyMode为kube-proxy-bpf
- // 使用ipvs-bpf的网络模式需要满足以下条件:
- // 1. 集群版本必须为1.14及以上;
- // 2. 系统镜像必须是: Tencent Linux 2.4;
- KubeProxyMode *string `json:"KubeProxyMode,omitempty" name:"KubeProxyMode"`
-
- // 是否开启审计开关
- AuditEnabled *bool `json:"AuditEnabled,omitempty" name:"AuditEnabled"`
-
- // 审计日志上传到的logset日志集
- AuditLogsetId *string `json:"AuditLogsetId,omitempty" name:"AuditLogsetId"`
-
- // 审计日志上传到的topic
- AuditLogTopicId *string `json:"AuditLogTopicId,omitempty" name:"AuditLogTopicId"`
-
- // 区分共享网卡多IP模式和独立网卡模式,共享网卡多 IP 模式填写"tke-route-eni",独立网卡模式填写"tke-direct-eni",默认为共享网卡模式
- VpcCniType *string `json:"VpcCniType,omitempty" name:"VpcCniType"`
-
- // 运行时版本
- RuntimeVersion *string `json:"RuntimeVersion,omitempty" name:"RuntimeVersion"`
-
- // 是否开节点podCIDR大小的自定义模式
- EnableCustomizedPodCIDR *bool `json:"EnableCustomizedPodCIDR,omitempty" name:"EnableCustomizedPodCIDR"`
-
- // 自定义模式下的基础pod数量
- BasePodNumber *int64 `json:"BasePodNumber,omitempty" name:"BasePodNumber"`
-
- // 启用 CiliumMode 的模式,空值表示不启用,“clusterIP” 表示启用 Cilium 支持 ClusterIP
- CiliumMode *string `json:"CiliumMode,omitempty" name:"CiliumMode"`
- }
-
- type ClusterAsGroup struct {
-
- // 伸缩组ID
- AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"`
-
- // 伸缩组状态(开启 enabled 开启中 enabling 关闭 disabled 关闭中 disabling 更新中 updating 删除中 deleting 开启缩容中 scaleDownEnabling 关闭缩容中 scaleDownDisabling)
- Status *string `json:"Status,omitempty" name:"Status"`
-
- // 节点是否设置成不可调度
- // 注意:此字段可能返回 null,表示取不到有效值。
- IsUnschedulable *bool `json:"IsUnschedulable,omitempty" name:"IsUnschedulable"`
-
- // 伸缩组的label列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- Labels []*Label `json:"Labels,omitempty" name:"Labels"`
-
- // 创建时间
- CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"`
- }
-
- type ClusterAsGroupAttribute struct {
-
- // 伸缩组ID
- AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"`
-
- // 是否开启
- AutoScalingGroupEnabled *bool `json:"AutoScalingGroupEnabled,omitempty" name:"AutoScalingGroupEnabled"`
-
- // 伸缩组最大最小实例数
- AutoScalingGroupRange *AutoScalingGroupRange `json:"AutoScalingGroupRange,omitempty" name:"AutoScalingGroupRange"`
- }
-
- type ClusterAsGroupOption struct {
-
- // 是否开启缩容
- // 注意:此字段可能返回 null,表示取不到有效值。
- IsScaleDownEnabled *bool `json:"IsScaleDownEnabled,omitempty" name:"IsScaleDownEnabled"`
-
- // 多伸缩组情况下扩容选择算法(random 随机选择,most-pods 最多类型的Pod least-waste 最少的资源浪费,默认为random)
- // 注意:此字段可能返回 null,表示取不到有效值。
- Expander *string `json:"Expander,omitempty" name:"Expander"`
-
- // 最大并发缩容数
- // 注意:此字段可能返回 null,表示取不到有效值。
- MaxEmptyBulkDelete *int64 `json:"MaxEmptyBulkDelete,omitempty" name:"MaxEmptyBulkDelete"`
-
- // 集群扩容后多少分钟开始判断缩容(默认为10分钟)
- // 注意:此字段可能返回 null,表示取不到有效值。
- ScaleDownDelay *int64 `json:"ScaleDownDelay,omitempty" name:"ScaleDownDelay"`
-
- // 节点连续空闲多少分钟后被缩容(默认为 10分钟)
- // 注意:此字段可能返回 null,表示取不到有效值。
- ScaleDownUnneededTime *int64 `json:"ScaleDownUnneededTime,omitempty" name:"ScaleDownUnneededTime"`
-
- // 节点资源使用量低于多少(百分比)时认为空闲(默认: 50(百分比))
- // 注意:此字段可能返回 null,表示取不到有效值。
- ScaleDownUtilizationThreshold *int64 `json:"ScaleDownUtilizationThreshold,omitempty" name:"ScaleDownUtilizationThreshold"`
-
- // 含有本地存储Pod的节点是否不缩容(默认: FALSE)
- // 注意:此字段可能返回 null,表示取不到有效值。
- SkipNodesWithLocalStorage *bool `json:"SkipNodesWithLocalStorage,omitempty" name:"SkipNodesWithLocalStorage"`
-
- // 含有kube-system namespace下非DaemonSet管理的Pod的节点是否不缩容 (默认: FALSE)
- // 注意:此字段可能返回 null,表示取不到有效值。
- SkipNodesWithSystemPods *bool `json:"SkipNodesWithSystemPods,omitempty" name:"SkipNodesWithSystemPods"`
-
- // 计算资源使用量时是否默认忽略DaemonSet的实例(默认值: False,不忽略)
- // 注意:此字段可能返回 null,表示取不到有效值。
- IgnoreDaemonSetsUtilization *bool `json:"IgnoreDaemonSetsUtilization,omitempty" name:"IgnoreDaemonSetsUtilization"`
-
- // CA做健康性判断的个数,默认3,即超过OkTotalUnreadyCount个数后,CA会进行健康性判断。
- // 注意:此字段可能返回 null,表示取不到有效值。
- OkTotalUnreadyCount *int64 `json:"OkTotalUnreadyCount,omitempty" name:"OkTotalUnreadyCount"`
-
- // 未就绪节点的最大百分比,此后CA会停止操作
- // 注意:此字段可能返回 null,表示取不到有效值。
- MaxTotalUnreadyPercentage *int64 `json:"MaxTotalUnreadyPercentage,omitempty" name:"MaxTotalUnreadyPercentage"`
-
- // 表示未准备就绪的节点在有资格进行缩减之前应该停留多长时间
- // 注意:此字段可能返回 null,表示取不到有效值。
- ScaleDownUnreadyTime *int64 `json:"ScaleDownUnreadyTime,omitempty" name:"ScaleDownUnreadyTime"`
-
- // CA删除未在Kubernetes中注册的节点之前等待的时间
- // 注意:此字段可能返回 null,表示取不到有效值。
- UnregisteredNodeRemovalTime *int64 `json:"UnregisteredNodeRemovalTime,omitempty" name:"UnregisteredNodeRemovalTime"`
- }
-
- type ClusterBasicSettings struct {
-
- // 集群系统。centos7.2x86_64 或者 ubuntu16.04.1 LTSx86_64,默认取值为ubuntu16.04.1 LTSx86_64
- ClusterOs *string `json:"ClusterOs,omitempty" name:"ClusterOs"`
-
- // 集群版本,默认值为1.10.5
- ClusterVersion *string `json:"ClusterVersion,omitempty" name:"ClusterVersion"`
-
- // 集群名称
- ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"`
-
- // 集群描述
- ClusterDescription *string `json:"ClusterDescription,omitempty" name:"ClusterDescription"`
-
- // 私有网络ID,形如vpc-xxx。创建托管空集群时必传。
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
-
- // 集群内新增资源所属项目ID。
- ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
-
- // 标签描述列表。通过指定该参数可以同时绑定标签到相应的资源实例,当前仅支持绑定标签到集群实例。
- TagSpecification []*TagSpecification `json:"TagSpecification,omitempty" name:"TagSpecification"`
-
- // 容器的镜像版本,"DOCKER_CUSTOMIZE"(容器定制版),"GENERAL"(普通版本,默认值)
- OsCustomizeType *string `json:"OsCustomizeType,omitempty" name:"OsCustomizeType"`
-
- // 是否开启节点的默认安全组(默认: 否,Aphla特性)
- NeedWorkSecurityGroup *bool `json:"NeedWorkSecurityGroup,omitempty" name:"NeedWorkSecurityGroup"`
-
- // 当选择Cilium Overlay网络插件时,TKE会从该子网获取2个IP用来创建内网负载均衡
- SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
-
- // 集群等级,针对托管集群生效
- ClusterLevel *string `json:"ClusterLevel,omitempty" name:"ClusterLevel"`
-
- // 自动变配集群等级,针对托管集群生效
- AutoUpgradeClusterLevel *AutoUpgradeClusterLevel `json:"AutoUpgradeClusterLevel,omitempty" name:"AutoUpgradeClusterLevel"`
- }
-
- type ClusterCIDRSettings struct {
-
- // 用于分配集群容器和服务 IP 的 CIDR,不得与 VPC CIDR 冲突,也不得与同 VPC 内其他集群 CIDR 冲突。且网段范围必须在内网网段内,例如:10.1.0.0/14, 192.168.0.1/18,172.16.0.0/16。
- ClusterCIDR *string `json:"ClusterCIDR,omitempty" name:"ClusterCIDR"`
-
- // 是否忽略 ClusterCIDR 冲突错误, 默认不忽略
- IgnoreClusterCIDRConflict *bool `json:"IgnoreClusterCIDRConflict,omitempty" name:"IgnoreClusterCIDRConflict"`
-
- // 集群中每个Node上最大的Pod数量。取值范围4~256。不为2的幂值时会向上取最接近的2的幂值。
- MaxNodePodNum *uint64 `json:"MaxNodePodNum,omitempty" name:"MaxNodePodNum"`
-
- // 集群最大的service数量。取值范围32~32768,不为2的幂值时会向上取最接近的2的幂值。默认值256
- MaxClusterServiceNum *uint64 `json:"MaxClusterServiceNum,omitempty" name:"MaxClusterServiceNum"`
-
- // 用于分配集群服务 IP 的 CIDR,不得与 VPC CIDR 冲突,也不得与同 VPC 内其他集群 CIDR 冲突。且网段范围必须在内网网段内,例如:10.1.0.0/14, 192.168.0.1/18,172.16.0.0/16。
- ServiceCIDR *string `json:"ServiceCIDR,omitempty" name:"ServiceCIDR"`
-
- // VPC-CNI网络模式下,弹性网卡的子网Id。
- EniSubnetIds []*string `json:"EniSubnetIds,omitempty" name:"EniSubnetIds"`
-
- // VPC-CNI网络模式下,弹性网卡IP的回收时间,取值范围[300,15768000)
- ClaimExpiredSeconds *int64 `json:"ClaimExpiredSeconds,omitempty" name:"ClaimExpiredSeconds"`
- }
-
- type ClusterCredential struct {
-
- // CA 根证书
- CACert *string `json:"CACert,omitempty" name:"CACert"`
-
- // 认证用的Token
- Token *string `json:"Token,omitempty" name:"Token"`
- }
-
- type ClusterExtraArgs struct {
-
- // kube-apiserver自定义参数,参数格式为["k1=v1", "k1=v2"], 例如["max-requests-inflight=500","feature-gates=PodShareProcessNamespace=true,DynamicKubeletConfig=true"]
- // 注意:此字段可能返回 null,表示取不到有效值。
- KubeAPIServer []*string `json:"KubeAPIServer,omitempty" name:"KubeAPIServer"`
-
- // kube-controller-manager自定义参数
- // 注意:此字段可能返回 null,表示取不到有效值。
- KubeControllerManager []*string `json:"KubeControllerManager,omitempty" name:"KubeControllerManager"`
-
- // kube-scheduler自定义参数
- // 注意:此字段可能返回 null,表示取不到有效值。
- KubeScheduler []*string `json:"KubeScheduler,omitempty" name:"KubeScheduler"`
-
- // etcd自定义参数,只支持独立集群
- // 注意:此字段可能返回 null,表示取不到有效值。
- Etcd []*string `json:"Etcd,omitempty" name:"Etcd"`
- }
-
- type ClusterInternalLB struct {
-
- // 是否开启内网访问LB
- Enabled *bool `json:"Enabled,omitempty" name:"Enabled"`
-
- // 内网访问LB关联的子网Id
- SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
- }
-
- type ClusterNetworkSettings struct {
-
- // 用于分配集群容器和服务 IP 的 CIDR,不得与 VPC CIDR 冲突,也不得与同 VPC 内其他集群 CIDR 冲突
- ClusterCIDR *string `json:"ClusterCIDR,omitempty" name:"ClusterCIDR"`
-
- // 是否忽略 ClusterCIDR 冲突错误, 默认不忽略
- IgnoreClusterCIDRConflict *bool `json:"IgnoreClusterCIDRConflict,omitempty" name:"IgnoreClusterCIDRConflict"`
-
- // 集群中每个Node上最大的Pod数量(默认为256)
- MaxNodePodNum *uint64 `json:"MaxNodePodNum,omitempty" name:"MaxNodePodNum"`
-
- // 集群最大的service数量(默认为256)
- MaxClusterServiceNum *uint64 `json:"MaxClusterServiceNum,omitempty" name:"MaxClusterServiceNum"`
-
- // 是否启用IPVS(默认不开启)
- Ipvs *bool `json:"Ipvs,omitempty" name:"Ipvs"`
-
- // 集群的VPCID(如果创建空集群,为必传值,否则自动设置为和集群的节点保持一致)
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
-
- // 网络插件是否启用CNI(默认开启)
- Cni *bool `json:"Cni,omitempty" name:"Cni"`
-
- // service的网络模式,当前参数只适用于ipvs+bpf模式
- // 注意:此字段可能返回 null,表示取不到有效值。
- KubeProxyMode *string `json:"KubeProxyMode,omitempty" name:"KubeProxyMode"`
-
- // 用于分配service的IP range,不得与 VPC CIDR 冲突,也不得与同 VPC 内其他集群 CIDR 冲突
- // 注意:此字段可能返回 null,表示取不到有效值。
- ServiceCIDR *string `json:"ServiceCIDR,omitempty" name:"ServiceCIDR"`
-
- // 集群关联的容器子网
- // 注意:此字段可能返回 null,表示取不到有效值。
- Subnets []*string `json:"Subnets,omitempty" name:"Subnets"`
- }
-
- type ClusterPublicLB struct {
-
- // 是否开启公网访问LB
- Enabled *bool `json:"Enabled,omitempty" name:"Enabled"`
-
- // 允许访问的来源CIDR列表
- AllowFromCidrs []*string `json:"AllowFromCidrs,omitempty" name:"AllowFromCidrs"`
-
- // 安全策略放通单个IP或CIDR(例如: "192.168.1.0/24",默认为拒绝所有)
- SecurityPolicies []*string `json:"SecurityPolicies,omitempty" name:"SecurityPolicies"`
-
- // 外网访问相关的扩展参数,格式为json
- ExtraParam *string `json:"ExtraParam,omitempty" name:"ExtraParam"`
-
- // 新内外网功能,需要传递安全组
- SecurityGroup *string `json:"SecurityGroup,omitempty" name:"SecurityGroup"`
- }
-
- type ClusterStatus struct {
-
- // 集群Id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 集群状态
- ClusterState *string `json:"ClusterState,omitempty" name:"ClusterState"`
-
- // 集群下机器实例的状态
- ClusterInstanceState *string `json:"ClusterInstanceState,omitempty" name:"ClusterInstanceState"`
-
- // 集群是否开启监控
- ClusterBMonitor *bool `json:"ClusterBMonitor,omitempty" name:"ClusterBMonitor"`
-
- // 集群创建中的节点数,-1表示获取节点状态超时,-2表示获取节点状态失败
- ClusterInitNodeNum *int64 `json:"ClusterInitNodeNum,omitempty" name:"ClusterInitNodeNum"`
-
- // 集群运行中的节点数,-1表示获取节点状态超时,-2表示获取节点状态失败
- ClusterRunningNodeNum *int64 `json:"ClusterRunningNodeNum,omitempty" name:"ClusterRunningNodeNum"`
-
- // 集群异常的节点数,-1表示获取节点状态超时,-2表示获取节点状态失败
- ClusterFailedNodeNum *int64 `json:"ClusterFailedNodeNum,omitempty" name:"ClusterFailedNodeNum"`
-
- // 集群已关机的节点数,-1表示获取节点状态超时,-2表示获取节点状态失败
- // 注意:此字段可能返回 null,表示取不到有效值。
- ClusterClosedNodeNum *int64 `json:"ClusterClosedNodeNum,omitempty" name:"ClusterClosedNodeNum"`
-
- // 集群关机中的节点数,-1表示获取节点状态超时,-2表示获取节点状态失败
- // 注意:此字段可能返回 null,表示取不到有效值。
- ClusterClosingNodeNum *int64 `json:"ClusterClosingNodeNum,omitempty" name:"ClusterClosingNodeNum"`
-
- // 集群是否开启删除保护
- // 注意:此字段可能返回 null,表示取不到有效值。
- ClusterDeletionProtection *bool `json:"ClusterDeletionProtection,omitempty" name:"ClusterDeletionProtection"`
-
- // 集群是否可审计
- // 注意:此字段可能返回 null,表示取不到有效值。
- ClusterAuditEnabled *bool `json:"ClusterAuditEnabled,omitempty" name:"ClusterAuditEnabled"`
- }
-
- type ClusterVersion struct {
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 集群主版本号列表,例如1.18.4
- Versions []*string `json:"Versions,omitempty" name:"Versions"`
- }
-
- type CommonName struct {
-
- // 子账户UIN
- SubaccountUin *string `json:"SubaccountUin,omitempty" name:"SubaccountUin"`
-
- // 子账户客户端证书中的CommonName字段
- CN *string `json:"CN,omitempty" name:"CN"`
- }
-
- type Container struct {
-
- // 镜像
- Image *string `json:"Image,omitempty" name:"Image"`
-
- // 容器名
- Name *string `json:"Name,omitempty" name:"Name"`
-
- // 容器启动命令
- Commands []*string `json:"Commands,omitempty" name:"Commands"`
-
- // 容器启动参数
- Args []*string `json:"Args,omitempty" name:"Args"`
-
- // 容器内操作系统的环境变量
- EnvironmentVars []*EnvironmentVariable `json:"EnvironmentVars,omitempty" name:"EnvironmentVars"`
-
- // CPU,制改容器最多可使用的核数,该值不可超过容器实例的总核数。单位:核。
- Cpu *float64 `json:"Cpu,omitempty" name:"Cpu"`
-
- // 内存,限制该容器最多可使用的内存值,该值不可超过容器实例的总内存值。单位:GiB
- Memory *float64 `json:"Memory,omitempty" name:"Memory"`
-
- // 数据卷挂载信息
- // 注意:此字段可能返回 null,表示取不到有效值。
- VolumeMounts []*VolumeMount `json:"VolumeMounts,omitempty" name:"VolumeMounts"`
-
- // 当前状态
- // 注意:此字段可能返回 null,表示取不到有效值。
- CurrentState *ContainerState `json:"CurrentState,omitempty" name:"CurrentState"`
-
- // 重启次数
- // 注意:此字段可能返回 null,表示取不到有效值。
- RestartCount *uint64 `json:"RestartCount,omitempty" name:"RestartCount"`
-
- // 容器工作目录
- // 注意:此字段可能返回 null,表示取不到有效值。
- WorkingDir *string `json:"WorkingDir,omitempty" name:"WorkingDir"`
-
- // 存活探针
- // 注意:此字段可能返回 null,表示取不到有效值。
- LivenessProbe *LivenessOrReadinessProbe `json:"LivenessProbe,omitempty" name:"LivenessProbe"`
-
- // 就绪探针
- // 注意:此字段可能返回 null,表示取不到有效值。
- ReadinessProbe *LivenessOrReadinessProbe `json:"ReadinessProbe,omitempty" name:"ReadinessProbe"`
-
- // Gpu限制
- // 注意:此字段可能返回 null,表示取不到有效值。
- GpuLimit *uint64 `json:"GpuLimit,omitempty" name:"GpuLimit"`
-
- // 容器的安全上下文
- // 注意:此字段可能返回 null,表示取不到有效值。
- SecurityContext *SecurityContext `json:"SecurityContext,omitempty" name:"SecurityContext"`
- }
-
- type ContainerState struct {
-
- // 容器运行开始时间
- // 注意:此字段可能返回 null,表示取不到有效值。
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
-
- // 容器状态:created, running, exited, unknown
- State *string `json:"State,omitempty" name:"State"`
-
- // 容器运行结束时间
- // 注意:此字段可能返回 null,表示取不到有效值。
- FinishTime *string `json:"FinishTime,omitempty" name:"FinishTime"`
-
- // 容器运行退出码
- // 注意:此字段可能返回 null,表示取不到有效值。
- ExitCode *int64 `json:"ExitCode,omitempty" name:"ExitCode"`
-
- // 容器状态 Reason
- // 注意:此字段可能返回 null,表示取不到有效值。
- Reason *string `json:"Reason,omitempty" name:"Reason"`
-
- // 容器状态信息
- // 注意:此字段可能返回 null,表示取不到有效值。
- Message *string `json:"Message,omitempty" name:"Message"`
-
- // 容器重启次数
- // 注意:此字段可能返回 null,表示取不到有效值。
- RestartCount *int64 `json:"RestartCount,omitempty" name:"RestartCount"`
- }
-
- type ControllerStatus struct {
-
- // 控制器的名字
- Name *string `json:"Name,omitempty" name:"Name"`
-
- // 控制器是否开启
- Enabled *bool `json:"Enabled,omitempty" name:"Enabled"`
- }
-
- type CreateClusterAsGroupRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 伸缩组创建透传参数,json化字符串格式,详见[伸缩组创建实例](https://cloud.tencent.com/document/api/377/20440)接口。LaunchConfigurationId由LaunchConfigurePara参数创建,不支持填写
- AutoScalingGroupPara *string `json:"AutoScalingGroupPara,omitempty" name:"AutoScalingGroupPara"`
-
- // 启动配置创建透传参数,json化字符串格式,详见[创建启动配置](https://cloud.tencent.com/document/api/377/20447)接口。另外ImageId参数由于集群维度已经有的ImageId信息,这个字段不需要填写。UserData字段设置通过UserScript设置,这个字段不需要填写。
- LaunchConfigurePara *string `json:"LaunchConfigurePara,omitempty" name:"LaunchConfigurePara"`
-
- // 节点高级配置信息
- InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"`
-
- // 节点Label数组
- Labels []*Label `json:"Labels,omitempty" name:"Labels"`
- }
-
- func (r *CreateClusterAsGroupRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateClusterAsGroupRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "AutoScalingGroupPara")
- delete(f, "LaunchConfigurePara")
- delete(f, "InstanceAdvancedSettings")
- delete(f, "Labels")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateClusterAsGroupRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreateClusterAsGroupResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 启动配置ID
- LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"`
-
- // 伸缩组ID
- AutoScalingGroupId *string `json:"AutoScalingGroupId,omitempty" name:"AutoScalingGroupId"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *CreateClusterAsGroupResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateClusterAsGroupResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreateClusterEndpointRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 集群端口所在的子网ID (仅在开启非外网访问时需要填,必须为集群所在VPC内的子网)
- SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
-
- // 是否为外网访问(TRUE 外网访问 FALSE 内网访问,默认值: FALSE)
- IsExtranet *bool `json:"IsExtranet,omitempty" name:"IsExtranet"`
- }
-
- func (r *CreateClusterEndpointRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateClusterEndpointRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "SubnetId")
- delete(f, "IsExtranet")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateClusterEndpointRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreateClusterEndpointResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *CreateClusterEndpointResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateClusterEndpointResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreateClusterEndpointVipRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 安全策略放通单个IP或CIDR(例如: "192.168.1.0/24",默认为拒绝所有)
- SecurityPolicies []*string `json:"SecurityPolicies,omitempty" name:"SecurityPolicies"`
- }
-
- func (r *CreateClusterEndpointVipRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateClusterEndpointVipRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "SecurityPolicies")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateClusterEndpointVipRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreateClusterEndpointVipResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 请求任务的FlowId
- RequestFlowId *int64 `json:"RequestFlowId,omitempty" name:"RequestFlowId"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *CreateClusterEndpointVipResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateClusterEndpointVipResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreateClusterInstancesRequest struct {
- *tchttp.BaseRequest
-
- // 集群 ID,请填写 查询集群列表 接口中返回的 clusterId 字段
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // CVM创建透传参数,json化字符串格式,如需要保证扩展集群节点请求幂等性需要在此参数添加ClientToken字段,详见[CVM创建实例](https://cloud.tencent.com/document/product/213/15730)接口。
- RunInstancePara *string `json:"RunInstancePara,omitempty" name:"RunInstancePara"`
-
- // 实例额外需要设置参数信息
- InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"`
-
- // 校验规则相关选项,可配置跳过某些校验规则。目前支持GlobalRouteCIDRCheck(跳过GlobalRouter的相关校验),VpcCniCIDRCheck(跳过VpcCni相关校验)
- SkipValidateOptions []*string `json:"SkipValidateOptions,omitempty" name:"SkipValidateOptions"`
- }
-
- func (r *CreateClusterInstancesRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateClusterInstancesRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "RunInstancePara")
- delete(f, "InstanceAdvancedSettings")
- delete(f, "SkipValidateOptions")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateClusterInstancesRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreateClusterInstancesResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 节点实例ID
- InstanceIdSet []*string `json:"InstanceIdSet,omitempty" name:"InstanceIdSet"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *CreateClusterInstancesResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateClusterInstancesResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreateClusterNodePoolFromExistingAsgRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 伸缩组ID
- AutoscalingGroupId *string `json:"AutoscalingGroupId,omitempty" name:"AutoscalingGroupId"`
- }
-
- func (r *CreateClusterNodePoolFromExistingAsgRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateClusterNodePoolFromExistingAsgRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "AutoscalingGroupId")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateClusterNodePoolFromExistingAsgRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreateClusterNodePoolFromExistingAsgResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 节点池ID
- NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *CreateClusterNodePoolFromExistingAsgResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateClusterNodePoolFromExistingAsgResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreateClusterNodePoolRequest struct {
- *tchttp.BaseRequest
-
- // cluster id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // AutoScalingGroupPara AS组参数
- AutoScalingGroupPara *string `json:"AutoScalingGroupPara,omitempty" name:"AutoScalingGroupPara"`
-
- // LaunchConfigurePara 运行参数
- LaunchConfigurePara *string `json:"LaunchConfigurePara,omitempty" name:"LaunchConfigurePara"`
-
- // InstanceAdvancedSettings 示例参数
- InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"`
-
- // 是否启用自动伸缩
- EnableAutoscale *bool `json:"EnableAutoscale,omitempty" name:"EnableAutoscale"`
-
- // 节点池名称
- Name *string `json:"Name,omitempty" name:"Name"`
-
- // Labels标签
- Labels []*Label `json:"Labels,omitempty" name:"Labels"`
-
- // Taints互斥
- Taints []*Taint `json:"Taints,omitempty" name:"Taints"`
-
- // 节点池os
- NodePoolOs *string `json:"NodePoolOs,omitempty" name:"NodePoolOs"`
-
- // 容器的镜像版本,"DOCKER_CUSTOMIZE"(容器定制版),"GENERAL"(普通版本,默认值)
- OsCustomizeType *string `json:"OsCustomizeType,omitempty" name:"OsCustomizeType"`
-
- // 资源标签
- Tags []*Tag `json:"Tags,omitempty" name:"Tags"`
- }
-
- func (r *CreateClusterNodePoolRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateClusterNodePoolRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "AutoScalingGroupPara")
- delete(f, "LaunchConfigurePara")
- delete(f, "InstanceAdvancedSettings")
- delete(f, "EnableAutoscale")
- delete(f, "Name")
- delete(f, "Labels")
- delete(f, "Taints")
- delete(f, "NodePoolOs")
- delete(f, "OsCustomizeType")
- delete(f, "Tags")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateClusterNodePoolRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreateClusterNodePoolResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 节点池id
- NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *CreateClusterNodePoolResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateClusterNodePoolResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreateClusterRequest struct {
- *tchttp.BaseRequest
-
- // 集群容器网络配置信息
- ClusterCIDRSettings *ClusterCIDRSettings `json:"ClusterCIDRSettings,omitempty" name:"ClusterCIDRSettings"`
-
- // 集群类型,托管集群:MANAGED_CLUSTER,独立集群:INDEPENDENT_CLUSTER。
- ClusterType *string `json:"ClusterType,omitempty" name:"ClusterType"`
-
- // CVM创建透传参数,json化字符串格式,详见[CVM创建实例](https://cloud.tencent.com/document/product/213/15730)接口。总机型(包括地域)数量不超过10个,相同机型(地域)购买多台机器可以通过设置参数中RunInstances中InstanceCount来实现。
- RunInstancesForNode []*RunInstancesForNode `json:"RunInstancesForNode,omitempty" name:"RunInstancesForNode"`
-
- // 集群的基本配置信息
- ClusterBasicSettings *ClusterBasicSettings `json:"ClusterBasicSettings,omitempty" name:"ClusterBasicSettings"`
-
- // 集群高级配置信息
- ClusterAdvancedSettings *ClusterAdvancedSettings `json:"ClusterAdvancedSettings,omitempty" name:"ClusterAdvancedSettings"`
-
- // 节点高级配置信息
- InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"`
-
- // 已存在实例的配置信息。所有实例必须在同一个VPC中,最大数量不超过100,不支持添加竞价实例。
- ExistedInstancesForNode []*ExistedInstancesForNode `json:"ExistedInstancesForNode,omitempty" name:"ExistedInstancesForNode"`
-
- // CVM类型和其对应的数据盘挂载配置信息
- InstanceDataDiskMountSettings []*InstanceDataDiskMountSetting `json:"InstanceDataDiskMountSettings,omitempty" name:"InstanceDataDiskMountSettings"`
-
- // 需要安装的扩展组件信息
- ExtensionAddons []*ExtensionAddon `json:"ExtensionAddons,omitempty" name:"ExtensionAddons"`
- }
-
- func (r *CreateClusterRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateClusterRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterCIDRSettings")
- delete(f, "ClusterType")
- delete(f, "RunInstancesForNode")
- delete(f, "ClusterBasicSettings")
- delete(f, "ClusterAdvancedSettings")
- delete(f, "InstanceAdvancedSettings")
- delete(f, "ExistedInstancesForNode")
- delete(f, "InstanceDataDiskMountSettings")
- delete(f, "ExtensionAddons")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateClusterRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreateClusterResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *CreateClusterResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateClusterResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreateClusterRouteRequest struct {
- *tchttp.BaseRequest
-
- // 路由表名称。
- RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"`
-
- // 目的端CIDR。
- DestinationCidrBlock *string `json:"DestinationCidrBlock,omitempty" name:"DestinationCidrBlock"`
-
- // 下一跳地址。
- GatewayIp *string `json:"GatewayIp,omitempty" name:"GatewayIp"`
- }
-
- func (r *CreateClusterRouteRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateClusterRouteRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "RouteTableName")
- delete(f, "DestinationCidrBlock")
- delete(f, "GatewayIp")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateClusterRouteRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreateClusterRouteResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *CreateClusterRouteResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateClusterRouteResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreateClusterRouteTableRequest struct {
- *tchttp.BaseRequest
-
- // 路由表名称
- RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"`
-
- // 路由表CIDR
- RouteTableCidrBlock *string `json:"RouteTableCidrBlock,omitempty" name:"RouteTableCidrBlock"`
-
- // 路由表绑定的VPC
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
-
- // 是否忽略CIDR冲突
- IgnoreClusterCidrConflict *int64 `json:"IgnoreClusterCidrConflict,omitempty" name:"IgnoreClusterCidrConflict"`
- }
-
- func (r *CreateClusterRouteTableRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateClusterRouteTableRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "RouteTableName")
- delete(f, "RouteTableCidrBlock")
- delete(f, "VpcId")
- delete(f, "IgnoreClusterCidrConflict")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateClusterRouteTableRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreateClusterRouteTableResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *CreateClusterRouteTableResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateClusterRouteTableResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreateEKSClusterRequest struct {
- *tchttp.BaseRequest
-
- // k8s版本号。可为1.14.4, 1.12.8。
- K8SVersion *string `json:"K8SVersion,omitempty" name:"K8SVersion"`
-
- // vpc 的Id
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
-
- // 集群名称
- ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"`
-
- // 子网Id 列表
- SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds"`
-
- // 集群描述信息
- ClusterDesc *string `json:"ClusterDesc,omitempty" name:"ClusterDesc"`
-
- // Serivce 所在子网Id
- ServiceSubnetId *string `json:"ServiceSubnetId,omitempty" name:"ServiceSubnetId"`
-
- // 集群自定义的Dns服务器信息
- DnsServers []*DnsServerConf `json:"DnsServers,omitempty" name:"DnsServers"`
-
- // 扩展参数。须是map[string]string 的json 格式。
- ExtraParam *string `json:"ExtraParam,omitempty" name:"ExtraParam"`
-
- // 是否在用户集群内开启Dns。默认为true
- EnableVpcCoreDNS *bool `json:"EnableVpcCoreDNS,omitempty" name:"EnableVpcCoreDNS"`
-
- // 标签描述列表。通过指定该参数可以同时绑定标签到相应的资源实例,当前仅支持绑定标签到集群实例。
- TagSpecification []*TagSpecification `json:"TagSpecification,omitempty" name:"TagSpecification"`
- }
-
- func (r *CreateEKSClusterRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateEKSClusterRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "K8SVersion")
- delete(f, "VpcId")
- delete(f, "ClusterName")
- delete(f, "SubnetIds")
- delete(f, "ClusterDesc")
- delete(f, "ServiceSubnetId")
- delete(f, "DnsServers")
- delete(f, "ExtraParam")
- delete(f, "EnableVpcCoreDNS")
- delete(f, "TagSpecification")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateEKSClusterRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreateEKSClusterResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 弹性集群Id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *CreateEKSClusterResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateEKSClusterResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreateEKSContainerInstancesRequest struct {
- /*********PCM param************/
- RequestSource string `position:"Query" name:"RequestSource"`
- ProviderId int32 `position:"Query" name:"ProviderId"`
- AccountName string `position:"Query" name:"AccountName"`
- Namespace string `position:"Query" name:"Namespace"`
- RegionId string `position:"Query" name:"RegionId"`
- /*********PCM param************/
-
- *tchttp.BaseRequest
-
- // 容器组
- Containers []*Container `json:"Containers,omitempty" name:"Containers"`
-
- // EKS Container Instance容器实例名称
- EksCiName *string `json:"EksCiName,omitempty" name:"EksCiName"`
-
- // 指定新创建实例所属于的安全组Id
- SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
-
- // 实例所属子网Id
- SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
-
- // 实例所属VPC的Id
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
-
- // 内存,单位:GiB。可参考[资源规格](https://cloud.tencent.com/document/product/457/39808)文档
- Memory *float64 `json:"Memory,omitempty" name:"Memory"`
-
- // CPU,单位:核。可参考[资源规格](https://cloud.tencent.com/document/product/457/39808)文档
- Cpu *float64 `json:"Cpu,omitempty" name:"Cpu"`
-
- // 实例重启策略: Always(总是重启)、Never(从不重启)、OnFailure(失败时重启),默认:Always。
- RestartPolicy *string `json:"RestartPolicy,omitempty" name:"RestartPolicy"`
-
- // 镜像仓库凭证数组
- ImageRegistryCredentials []*ImageRegistryCredential `json:"ImageRegistryCredentials,omitempty" name:"ImageRegistryCredentials"`
-
- // 数据卷,包含NfsVolume数组和CbsVolume数组
- EksCiVolume *EksCiVolume `json:"EksCiVolume,omitempty" name:"EksCiVolume"`
-
- // 实例副本数,默认为1
- Replicas *int64 `json:"Replicas,omitempty" name:"Replicas"`
-
- // Init 容器
- InitContainers []*Container `json:"InitContainers,omitempty" name:"InitContainers"`
-
- // 自定义DNS配置
- DnsConfig *DNSConfig `json:"DnsConfig,omitempty" name:"DnsConfig"`
-
- // 用来绑定容器实例的已有EIP的列表。如传值,需要保证数值和Replicas相等。
- // 另外此参数和AutoCreateEipAttribute互斥。
- ExistedEipIds []*string `json:"ExistedEipIds,omitempty" name:"ExistedEipIds"`
-
- // 自动创建EIP的可选参数。若传此参数,则会自动创建EIP。
- // 另外此参数和ExistedEipIds互斥
- AutoCreateEipAttribute *EipAttribute `json:"AutoCreateEipAttribute,omitempty" name:"AutoCreateEipAttribute"`
-
- // 是否为容器实例自动创建EIP,默认为false。若传true,则此参数和ExistedEipIds互斥
- AutoCreateEip *bool `json:"AutoCreateEip,omitempty" name:"AutoCreateEip"`
-
- // Pod 所需的 CPU 资源型号,如果不填写则默认不强制指定 CPU 类型。目前支持型号如下:
- // intel
- // amd
- // - 支持优先级顺序写法,如 “amd,intel” 表示优先创建 amd 资源 Pod,如果所选地域可用区 amd 资源不足,则会创建 intel 资源 Pod。
- CpuType *string `json:"CpuType,omitempty" name:"CpuType"`
-
- // 容器实例所需的 GPU 资源型号,目前支持型号如下:
- // 1/4\*V100
- // 1/2\*V100
- // V100
- // 1/4\*T4
- // 1/2\*T4
- // T4
- GpuType *string `json:"GpuType,omitempty" name:"GpuType"`
-
- // Pod 所需的 GPU 数量,如填写,请确保为支持的规格。默认单位为卡,无需再次注明。
- GpuCount *uint64 `json:"GpuCount,omitempty" name:"GpuCount"`
-
- // 为容器实例关联 CAM 角色,value 填写 CAM 角色名称,容器实例可获取该 CAM 角色包含的权限策略,方便 容器实例 内的程序进行如购买资源、读写存储等云资源操作。
- CamRoleName *string `json:"CamRoleName,omitempty" name:"CamRoleName"`
- }
-
- func (r *CreateEKSContainerInstancesRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateEKSContainerInstancesRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "Containers")
- delete(f, "EksCiName")
- delete(f, "SecurityGroupIds")
- delete(f, "SubnetId")
- delete(f, "VpcId")
- delete(f, "Memory")
- delete(f, "Cpu")
- delete(f, "RestartPolicy")
- delete(f, "ImageRegistryCredentials")
- delete(f, "EksCiVolume")
- delete(f, "Replicas")
- delete(f, "InitContainers")
- delete(f, "DnsConfig")
- delete(f, "ExistedEipIds")
- delete(f, "AutoCreateEipAttribute")
- delete(f, "AutoCreateEip")
- delete(f, "CpuType")
- delete(f, "GpuType")
- delete(f, "GpuCount")
- delete(f, "CamRoleName")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateEKSContainerInstancesRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreateEKSContainerInstancesResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // EKS Container Instance Id集合,格式为eksci-xxx,是容器实例的唯一标识。
- EksCiIds []*string `json:"EksCiIds,omitempty" name:"EksCiIds"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *CreateEKSContainerInstancesResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateEKSContainerInstancesResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreateImageCacheRequest struct {
- *tchttp.BaseRequest
-
- // 用于制作镜像缓存的容器镜像列表
- Images []*string `json:"Images,omitempty" name:"Images"`
-
- // 实例所属子网Id
- SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
-
- // 实例所属VPC Id
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
-
- // 镜像缓存名称
- ImageCacheName *string `json:"ImageCacheName,omitempty" name:"ImageCacheName"`
-
- // 安全组Id
- SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
-
- // 镜像仓库凭证数组
- ImageRegistryCredentials []*ImageRegistryCredential `json:"ImageRegistryCredentials,omitempty" name:"ImageRegistryCredentials"`
-
- // 用来绑定容器实例的已有EIP
- ExistedEipId *string `json:"ExistedEipId,omitempty" name:"ExistedEipId"`
-
- // 是否为容器实例自动创建EIP,默认为false。若传true,则此参数和ExistedEipIds互斥
- AutoCreateEip *bool `json:"AutoCreateEip,omitempty" name:"AutoCreateEip"`
-
- // 自动创建EIP的可选参数。若传此参数,则会自动创建EIP。
- // 另外此参数和ExistedEipIds互斥
- AutoCreateEipAttribute *EipAttribute `json:"AutoCreateEipAttribute,omitempty" name:"AutoCreateEipAttribute"`
-
- // 镜像缓存的大小。默认为20 GiB。取值范围参考[云硬盘类型](https://cloud.tencent.com/document/product/362/2353)中的高性能云盘类型的大小限制。
- ImageCacheSize *uint64 `json:"ImageCacheSize,omitempty" name:"ImageCacheSize"`
-
- // 镜像缓存保留时间天数,过期将会自动清理,默认为0,永不过期。
- RetentionDays *uint64 `json:"RetentionDays,omitempty" name:"RetentionDays"`
- }
-
- func (r *CreateImageCacheRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateImageCacheRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "Images")
- delete(f, "SubnetId")
- delete(f, "VpcId")
- delete(f, "ImageCacheName")
- delete(f, "SecurityGroupIds")
- delete(f, "ImageRegistryCredentials")
- delete(f, "ExistedEipId")
- delete(f, "AutoCreateEip")
- delete(f, "AutoCreateEipAttribute")
- delete(f, "ImageCacheSize")
- delete(f, "RetentionDays")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateImageCacheRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreateImageCacheResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 镜像缓存Id
- ImageCacheId *string `json:"ImageCacheId,omitempty" name:"ImageCacheId"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *CreateImageCacheResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreateImageCacheResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreatePrometheusAlertRuleRequest struct {
- *tchttp.BaseRequest
-
- // 实例id
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
-
- // 告警配置
- AlertRule *PrometheusAlertRuleDetail `json:"AlertRule,omitempty" name:"AlertRule"`
- }
-
- func (r *CreatePrometheusAlertRuleRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreatePrometheusAlertRuleRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "InstanceId")
- delete(f, "AlertRule")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreatePrometheusAlertRuleRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreatePrometheusAlertRuleResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 告警id
- Id *string `json:"Id,omitempty" name:"Id"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *CreatePrometheusAlertRuleResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreatePrometheusAlertRuleResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreatePrometheusDashboardRequest struct {
- *tchttp.BaseRequest
-
- // 实例id
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
-
- // 面板组名称
- DashboardName *string `json:"DashboardName,omitempty" name:"DashboardName"`
-
- // 面板列表
- // 每一项是一个grafana dashboard的json定义
- Contents []*string `json:"Contents,omitempty" name:"Contents"`
- }
-
- func (r *CreatePrometheusDashboardRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreatePrometheusDashboardRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "InstanceId")
- delete(f, "DashboardName")
- delete(f, "Contents")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreatePrometheusDashboardRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreatePrometheusDashboardResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *CreatePrometheusDashboardResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreatePrometheusDashboardResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreatePrometheusTemplateRequest struct {
- *tchttp.BaseRequest
-
- // 模板设置
- Template *PrometheusTemplate `json:"Template,omitempty" name:"Template"`
- }
-
- func (r *CreatePrometheusTemplateRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreatePrometheusTemplateRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "Template")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreatePrometheusTemplateRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type CreatePrometheusTemplateResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 模板Id
- TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *CreatePrometheusTemplateResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *CreatePrometheusTemplateResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DNSConfig struct {
-
- // DNS 服务器IP地址列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- Nameservers []*string `json:"Nameservers,omitempty" name:"Nameservers"`
-
- // DNS搜索域列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- Searches []*string `json:"Searches,omitempty" name:"Searches"`
-
- // 对象选项列表,每个对象由name和value(可选)构成
- // 注意:此字段可能返回 null,表示取不到有效值。
- Options []*DNSConfigOption `json:"Options,omitempty" name:"Options"`
- }
-
- type DNSConfigOption struct {
-
- // 配置项名称
- // 注意:此字段可能返回 null,表示取不到有效值。
- Name *string `json:"Name,omitempty" name:"Name"`
-
- // 项值
- // 注意:此字段可能返回 null,表示取不到有效值。
- Value *string `json:"Value,omitempty" name:"Value"`
- }
-
- type DataDisk struct {
-
- // 云盘类型
- // 注意:此字段可能返回 null,表示取不到有效值。
- DiskType *string `json:"DiskType,omitempty" name:"DiskType"`
-
- // 文件系统(ext3/ext4/xfs)
- // 注意:此字段可能返回 null,表示取不到有效值。
- FileSystem *string `json:"FileSystem,omitempty" name:"FileSystem"`
-
- // 云盘大小(G)
- // 注意:此字段可能返回 null,表示取不到有效值。
- DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"`
-
- // 是否自动化格式盘并挂载
- // 注意:此字段可能返回 null,表示取不到有效值。
- AutoFormatAndMount *bool `json:"AutoFormatAndMount,omitempty" name:"AutoFormatAndMount"`
-
- // 挂载目录
- // 注意:此字段可能返回 null,表示取不到有效值。
- MountTarget *string `json:"MountTarget,omitempty" name:"MountTarget"`
-
- // 挂载设备名或分区名,当且仅当添加已有节点时需要
- // 注意:此字段可能返回 null,表示取不到有效值。
- DiskPartition *string `json:"DiskPartition,omitempty" name:"DiskPartition"`
- }
-
- type DeleteClusterAsGroupsRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID,通过[DescribeClusters](https://cloud.tencent.com/document/api/457/31862)接口获取。
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 集群伸缩组ID的列表
- AutoScalingGroupIds []*string `json:"AutoScalingGroupIds,omitempty" name:"AutoScalingGroupIds"`
-
- // 是否保留伸缩组中的节点(默认值: false(不保留))
- KeepInstance *bool `json:"KeepInstance,omitempty" name:"KeepInstance"`
- }
-
- func (r *DeleteClusterAsGroupsRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeleteClusterAsGroupsRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "AutoScalingGroupIds")
- delete(f, "KeepInstance")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteClusterAsGroupsRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeleteClusterAsGroupsResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DeleteClusterAsGroupsResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeleteClusterAsGroupsResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeleteClusterEndpointRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 是否为外网访问(TRUE 外网访问 FALSE 内网访问,默认值: FALSE)
- IsExtranet *bool `json:"IsExtranet,omitempty" name:"IsExtranet"`
- }
-
- func (r *DeleteClusterEndpointRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeleteClusterEndpointRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "IsExtranet")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteClusterEndpointRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeleteClusterEndpointResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DeleteClusterEndpointResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeleteClusterEndpointResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeleteClusterEndpointVipRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
- }
-
- func (r *DeleteClusterEndpointVipRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeleteClusterEndpointVipRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteClusterEndpointVipRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeleteClusterEndpointVipResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DeleteClusterEndpointVipResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeleteClusterEndpointVipResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeleteClusterInstancesRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 主机InstanceId列表
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
-
- // 集群实例删除时的策略:terminate(销毁实例,仅支持按量计费云主机实例) retain (仅移除,保留实例)
- InstanceDeleteMode *string `json:"InstanceDeleteMode,omitempty" name:"InstanceDeleteMode"`
-
- // 是否强制删除(当节点在初始化时,可以指定参数为TRUE)
- ForceDelete *bool `json:"ForceDelete,omitempty" name:"ForceDelete"`
- }
-
- func (r *DeleteClusterInstancesRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeleteClusterInstancesRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "InstanceIds")
- delete(f, "InstanceDeleteMode")
- delete(f, "ForceDelete")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteClusterInstancesRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeleteClusterInstancesResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 删除成功的实例ID列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- SuccInstanceIds []*string `json:"SuccInstanceIds,omitempty" name:"SuccInstanceIds"`
-
- // 删除失败的实例ID列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- FailedInstanceIds []*string `json:"FailedInstanceIds,omitempty" name:"FailedInstanceIds"`
-
- // 未匹配到的实例ID列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- NotFoundInstanceIds []*string `json:"NotFoundInstanceIds,omitempty" name:"NotFoundInstanceIds"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DeleteClusterInstancesResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeleteClusterInstancesResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeleteClusterNodePoolRequest struct {
- *tchttp.BaseRequest
-
- // 节点池对应的 ClusterId
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 需要删除的节点池 Id 列表
- NodePoolIds []*string `json:"NodePoolIds,omitempty" name:"NodePoolIds"`
-
- // 删除节点池时是否保留节点池内节点(节点仍然会被移出集群,但对应的实例不会被销毁)
- KeepInstance *bool `json:"KeepInstance,omitempty" name:"KeepInstance"`
- }
-
- func (r *DeleteClusterNodePoolRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeleteClusterNodePoolRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "NodePoolIds")
- delete(f, "KeepInstance")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteClusterNodePoolRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeleteClusterNodePoolResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DeleteClusterNodePoolResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeleteClusterNodePoolResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeleteClusterRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 集群实例删除时的策略:terminate(销毁实例,仅支持按量计费云主机实例) retain (仅移除,保留实例)
- InstanceDeleteMode *string `json:"InstanceDeleteMode,omitempty" name:"InstanceDeleteMode"`
-
- // 集群删除时资源的删除策略,目前支持CBS(默认保留CBS)
- ResourceDeleteOptions []*ResourceDeleteOption `json:"ResourceDeleteOptions,omitempty" name:"ResourceDeleteOptions"`
- }
-
- func (r *DeleteClusterRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeleteClusterRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "InstanceDeleteMode")
- delete(f, "ResourceDeleteOptions")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteClusterRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeleteClusterResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DeleteClusterResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeleteClusterResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeleteClusterRouteRequest struct {
- *tchttp.BaseRequest
-
- // 路由表名称。
- RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"`
-
- // 下一跳地址。
- GatewayIp *string `json:"GatewayIp,omitempty" name:"GatewayIp"`
-
- // 目的端CIDR。
- DestinationCidrBlock *string `json:"DestinationCidrBlock,omitempty" name:"DestinationCidrBlock"`
- }
-
- func (r *DeleteClusterRouteRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeleteClusterRouteRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "RouteTableName")
- delete(f, "GatewayIp")
- delete(f, "DestinationCidrBlock")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteClusterRouteRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeleteClusterRouteResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DeleteClusterRouteResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeleteClusterRouteResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeleteClusterRouteTableRequest struct {
- *tchttp.BaseRequest
-
- // 路由表名称
- RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"`
- }
-
- func (r *DeleteClusterRouteTableRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeleteClusterRouteTableRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "RouteTableName")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteClusterRouteTableRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeleteClusterRouteTableResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DeleteClusterRouteTableResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeleteClusterRouteTableResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeleteEKSClusterRequest struct {
- *tchttp.BaseRequest
-
- // 弹性集群Id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
- }
-
- func (r *DeleteEKSClusterRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeleteEKSClusterRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteEKSClusterRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeleteEKSClusterResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DeleteEKSClusterResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeleteEKSClusterResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeleteEKSContainerInstancesRequest struct {
- /*********PCM param************/
- RequestSource string `position:"Query" name:"RequestSource"`
- ProviderId int32 `position:"Query" name:"ProviderId"`
- AccountName string `position:"Query" name:"AccountName"`
- Namespace string `position:"Query" name:"Namespace"`
- ContainerGroupName string `position:"Query" name:"ContainerGroupName"`
- RegionId string `position:"Query" name:"RegionId"`
- /*********PCM param************/
-
- *tchttp.BaseRequest
-
- // 需要删除的EksCi的Id。 最大数量不超过20
- EksCiIds []*string `json:"EksCiIds,omitempty" name:"EksCiIds"`
-
- // 是否释放为EksCi自动创建的Eip
- ReleaseAutoCreatedEip *bool `json:"ReleaseAutoCreatedEip,omitempty" name:"ReleaseAutoCreatedEip"`
- }
-
- func (r *DeleteEKSContainerInstancesRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeleteEKSContainerInstancesRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "EksCiIds")
- delete(f, "ReleaseAutoCreatedEip")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteEKSContainerInstancesRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeleteEKSContainerInstancesResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DeleteEKSContainerInstancesResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeleteEKSContainerInstancesResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeleteImageCachesRequest struct {
- *tchttp.BaseRequest
-
- // 镜像缓存Id数组
- ImageCacheIds []*string `json:"ImageCacheIds,omitempty" name:"ImageCacheIds"`
- }
-
- func (r *DeleteImageCachesRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeleteImageCachesRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ImageCacheIds")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteImageCachesRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeleteImageCachesResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DeleteImageCachesResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeleteImageCachesResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeletePrometheusAlertRuleRequest struct {
- *tchttp.BaseRequest
-
- // 实例id
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
-
- // 告警规则id列表
- AlertIds []*string `json:"AlertIds,omitempty" name:"AlertIds"`
- }
-
- func (r *DeletePrometheusAlertRuleRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeletePrometheusAlertRuleRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "InstanceId")
- delete(f, "AlertIds")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeletePrometheusAlertRuleRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeletePrometheusAlertRuleResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DeletePrometheusAlertRuleResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeletePrometheusAlertRuleResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeletePrometheusTemplateRequest struct {
- *tchttp.BaseRequest
-
- // 模板id
- TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"`
- }
-
- func (r *DeletePrometheusTemplateRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeletePrometheusTemplateRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "TemplateId")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeletePrometheusTemplateRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeletePrometheusTemplateResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DeletePrometheusTemplateResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeletePrometheusTemplateResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeletePrometheusTemplateSyncRequest struct {
- *tchttp.BaseRequest
-
- // 模板id
- TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"`
-
- // 取消同步的对象列表
- Targets []*PrometheusTemplateSyncTarget `json:"Targets,omitempty" name:"Targets"`
- }
-
- func (r *DeletePrometheusTemplateSyncRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeletePrometheusTemplateSyncRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "TemplateId")
- delete(f, "Targets")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeletePrometheusTemplateSyncRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DeletePrometheusTemplateSyncResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DeletePrometheusTemplateSyncResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DeletePrometheusTemplateSyncResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeAvailableClusterVersionRequest struct {
- *tchttp.BaseRequest
-
- // 集群 Id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 集群 Id 列表
- ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"`
- }
-
- func (r *DescribeAvailableClusterVersionRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeAvailableClusterVersionRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "ClusterIds")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAvailableClusterVersionRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeAvailableClusterVersionResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 可升级的集群版本号
- // 注意:此字段可能返回 null,表示取不到有效值。
- Versions []*string `json:"Versions,omitempty" name:"Versions"`
-
- // 集群信息
- // 注意:此字段可能返回 null,表示取不到有效值。
- Clusters []*ClusterVersion `json:"Clusters,omitempty" name:"Clusters"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeAvailableClusterVersionResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeAvailableClusterVersionResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterAsGroupOptionRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
- }
-
- func (r *DescribeClusterAsGroupOptionRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterAsGroupOptionRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterAsGroupOptionRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterAsGroupOptionResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 集群弹性伸缩属性
- // 注意:此字段可能返回 null,表示取不到有效值。
- ClusterAsGroupOption *ClusterAsGroupOption `json:"ClusterAsGroupOption,omitempty" name:"ClusterAsGroupOption"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeClusterAsGroupOptionResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterAsGroupOptionResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterAsGroupsRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 伸缩组ID列表,如果为空,表示拉取集群关联的所有伸缩组。
- AutoScalingGroupIds []*string `json:"AutoScalingGroupIds,omitempty" name:"AutoScalingGroupIds"`
-
- // 偏移量,默认为0。关于Offset的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
-
- // 返回数量,默认为20,最大值为100。关于Limit的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
- }
-
- func (r *DescribeClusterAsGroupsRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterAsGroupsRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "AutoScalingGroupIds")
- delete(f, "Offset")
- delete(f, "Limit")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterAsGroupsRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterAsGroupsResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 集群关联的伸缩组总数
- TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
-
- // 集群关联的伸缩组列表
- ClusterAsGroupSet []*ClusterAsGroup `json:"ClusterAsGroupSet,omitempty" name:"ClusterAsGroupSet"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeClusterAsGroupsResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterAsGroupsResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterAuthenticationOptionsRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
- }
-
- func (r *DescribeClusterAuthenticationOptionsRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterAuthenticationOptionsRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterAuthenticationOptionsRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterAuthenticationOptionsResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // ServiceAccount认证配置
- // 注意:此字段可能返回 null,表示取不到有效值。
- ServiceAccounts *ServiceAccountAuthenticationOptions `json:"ServiceAccounts,omitempty" name:"ServiceAccounts"`
-
- // 最近一次修改操作结果,返回值可能为:Updating,Success,Failed,TimeOut
- // 注意:此字段可能返回 null,表示取不到有效值。
- LatestOperationState *string `json:"LatestOperationState,omitempty" name:"LatestOperationState"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeClusterAuthenticationOptionsResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterAuthenticationOptionsResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterCommonNamesRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 子账户列表,不可超出最大值50
- SubaccountUins []*string `json:"SubaccountUins,omitempty" name:"SubaccountUins"`
-
- // 角色ID列表,不可超出最大值50
- RoleIds []*string `json:"RoleIds,omitempty" name:"RoleIds"`
- }
-
- func (r *DescribeClusterCommonNamesRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterCommonNamesRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "SubaccountUins")
- delete(f, "RoleIds")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterCommonNamesRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterCommonNamesResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 子账户Uin与其客户端证书的CN字段映射
- CommonNames []*CommonName `json:"CommonNames,omitempty" name:"CommonNames"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeClusterCommonNamesResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterCommonNamesResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterControllersRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
- }
-
- func (r *DescribeClusterControllersRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterControllersRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterControllersRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterControllersResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 描述集群中各个控制器的状态
- ControllerStatusSet []*ControllerStatus `json:"ControllerStatusSet,omitempty" name:"ControllerStatusSet"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeClusterControllersResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterControllersResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterEndpointStatusRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 是否为外网访问(TRUE 外网访问 FALSE 内网访问,默认值: FALSE)
- IsExtranet *bool `json:"IsExtranet,omitempty" name:"IsExtranet"`
- }
-
- func (r *DescribeClusterEndpointStatusRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterEndpointStatusRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "IsExtranet")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterEndpointStatusRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterEndpointStatusResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 查询集群访问端口状态(Created 开启成功,Creating 开启中,NotFound 未开启)
- // 注意:此字段可能返回 null,表示取不到有效值。
- Status *string `json:"Status,omitempty" name:"Status"`
-
- // 开启访问入口失败信息
- // 注意:此字段可能返回 null,表示取不到有效值。
- ErrorMsg *string `json:"ErrorMsg,omitempty" name:"ErrorMsg"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeClusterEndpointStatusResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterEndpointStatusResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterEndpointVipStatusRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
- }
-
- func (r *DescribeClusterEndpointVipStatusRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterEndpointVipStatusRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterEndpointVipStatusRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterEndpointVipStatusResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 端口操作状态 (Creating 创建中 CreateFailed 创建失败 Created 创建完成 Deleting 删除中 DeletedFailed 删除失败 Deleted 已删除 NotFound 未发现操作 )
- Status *string `json:"Status,omitempty" name:"Status"`
-
- // 操作失败的原因
- // 注意:此字段可能返回 null,表示取不到有效值。
- ErrorMsg *string `json:"ErrorMsg,omitempty" name:"ErrorMsg"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeClusterEndpointVipStatusResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterEndpointVipStatusResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterInstancesRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 偏移量,默认为0。关于Offset的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
-
- // 返回数量,默认为20,最大值为100。关于Limit的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
-
- // 需要获取的节点实例Id列表。如果为空,表示拉取集群下所有节点实例。
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
-
- // 节点角色, MASTER, WORKER, ETCD, MASTER_ETCD,ALL, 默认为WORKER。默认为WORKER类型。
- InstanceRole *string `json:"InstanceRole,omitempty" name:"InstanceRole"`
-
- // 过滤条件列表;Name的可选值为nodepool-id、nodepool-instance-type;Name为nodepool-id表示根据节点池id过滤机器,Value的值为具体的节点池id,Name为nodepool-instance-type表示节点加入节点池的方式,Value的值为MANUALLY_ADDED(手动加入节点池)、AUTOSCALING_ADDED(伸缩组扩容方式加入节点池)、ALL(手动加入节点池 和 伸缩组扩容方式加入节点池)
- Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
- }
-
- func (r *DescribeClusterInstancesRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterInstancesRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "Offset")
- delete(f, "Limit")
- delete(f, "InstanceIds")
- delete(f, "InstanceRole")
- delete(f, "Filters")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterInstancesRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterInstancesResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 集群中实例总数
- TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
-
- // 集群中实例列表
- InstanceSet []*Instance `json:"InstanceSet,omitempty" name:"InstanceSet"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeClusterInstancesResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterInstancesResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterKubeconfigRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 默认false 获取内网,是否获取外网访问的kubeconfig
- IsExtranet *bool `json:"IsExtranet,omitempty" name:"IsExtranet"`
- }
-
- func (r *DescribeClusterKubeconfigRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterKubeconfigRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "IsExtranet")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterKubeconfigRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterKubeconfigResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 子账户kubeconfig文件,可用于直接访问集群kube-apiserver
- Kubeconfig *string `json:"Kubeconfig,omitempty" name:"Kubeconfig"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeClusterKubeconfigResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterKubeconfigResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterNodePoolDetailRequest struct {
- *tchttp.BaseRequest
-
- // 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 节点池id
- NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"`
- }
-
- func (r *DescribeClusterNodePoolDetailRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterNodePoolDetailRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "NodePoolId")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterNodePoolDetailRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterNodePoolDetailResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 节点池详情
- NodePool *NodePool `json:"NodePool,omitempty" name:"NodePool"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeClusterNodePoolDetailResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterNodePoolDetailResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterNodePoolsRequest struct {
- *tchttp.BaseRequest
-
- // ClusterId(集群id)
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // · NodePoolsName
- // 按照【节点池名】进行过滤。
- // 类型:String
- // 必选:否
- //
- // · NodePoolsId
- // 按照【节点池id】进行过滤。
- // 类型:String
- // 必选:否
- //
- // · tags
- // 按照【标签键值对】进行过滤。
- // 类型:String
- // 必选:否
- //
- // · tag:tag-key
- // 按照【标签键值对】进行过滤。
- // 类型:String
- // 必选:否
- Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
- }
-
- func (r *DescribeClusterNodePoolsRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterNodePoolsRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "Filters")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterNodePoolsRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterNodePoolsResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // NodePools(节点池列表)
- // 注意:此字段可能返回 null,表示取不到有效值。
- NodePoolSet []*NodePool `json:"NodePoolSet,omitempty" name:"NodePoolSet"`
-
- // 资源总数
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeClusterNodePoolsResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterNodePoolsResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterRouteTablesRequest struct {
- *tchttp.BaseRequest
- }
-
- func (r *DescribeClusterRouteTablesRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterRouteTablesRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterRouteTablesRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterRouteTablesResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 符合条件的实例数量。
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
-
- // 集群路由表对象。
- RouteTableSet []*RouteTableInfo `json:"RouteTableSet,omitempty" name:"RouteTableSet"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeClusterRouteTablesResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterRouteTablesResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterRoutesRequest struct {
- *tchttp.BaseRequest
-
- // 路由表名称。
- RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"`
-
- // 过滤条件,当前只支持按照单个条件GatewayIP进行过滤(可选)
- Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
- }
-
- func (r *DescribeClusterRoutesRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterRoutesRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "RouteTableName")
- delete(f, "Filters")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterRoutesRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterRoutesResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 符合条件的实例数量。
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
-
- // 集群路由对象。
- RouteSet []*RouteInfo `json:"RouteSet,omitempty" name:"RouteSet"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeClusterRoutesResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterRoutesResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterSecurityRequest struct {
- *tchttp.BaseRequest
-
- // 集群 ID,请填写 查询集群列表 接口中返回的 clusterId 字段
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
- }
-
- func (r *DescribeClusterSecurityRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterSecurityRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterSecurityRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterSecurityResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 集群的账号名称
- UserName *string `json:"UserName,omitempty" name:"UserName"`
-
- // 集群的访问密码
- Password *string `json:"Password,omitempty" name:"Password"`
-
- // 集群访问CA证书
- CertificationAuthority *string `json:"CertificationAuthority,omitempty" name:"CertificationAuthority"`
-
- // 集群访问的地址
- ClusterExternalEndpoint *string `json:"ClusterExternalEndpoint,omitempty" name:"ClusterExternalEndpoint"`
-
- // 集群访问的域名
- Domain *string `json:"Domain,omitempty" name:"Domain"`
-
- // 集群Endpoint地址
- PgwEndpoint *string `json:"PgwEndpoint,omitempty" name:"PgwEndpoint"`
-
- // 集群访问策略组
- // 注意:此字段可能返回 null,表示取不到有效值。
- SecurityPolicy []*string `json:"SecurityPolicy,omitempty" name:"SecurityPolicy"`
-
- // 集群Kubeconfig文件
- // 注意:此字段可能返回 null,表示取不到有效值。
- Kubeconfig *string `json:"Kubeconfig,omitempty" name:"Kubeconfig"`
-
- // 集群JnsGw的访问地址
- // 注意:此字段可能返回 null,表示取不到有效值。
- JnsGwEndpoint *string `json:"JnsGwEndpoint,omitempty" name:"JnsGwEndpoint"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeClusterSecurityResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterSecurityResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterStatusRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID列表,不传默认拉取所有集群
- ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"`
- }
-
- func (r *DescribeClusterStatusRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterStatusRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterIds")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterStatusRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClusterStatusResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 集群状态列表
- ClusterStatusSet []*ClusterStatus `json:"ClusterStatusSet,omitempty" name:"ClusterStatusSet"`
-
- // 集群个数
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeClusterStatusResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClusterStatusResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClustersRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID列表(为空时,
- // 表示获取账号下所有集群)
- ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"`
-
- // 偏移量,默认0
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
-
- // 最大输出条数,默认20,最大为100
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
-
- // · ClusterName
- // 按照【集群名】进行过滤。
- // 类型:String
- // 必选:否
- //
- // · ClusterType
- // 按照【集群类型】进行过滤。
- // 类型:String
- // 必选:否
- //
- // · ClusterStatus
- // 按照【集群状态】进行过滤。
- // 类型:String
- // 必选:否
- //
- // · Tags
- // 按照【标签键值对】进行过滤。
- // 类型:String
- // 必选:否
- //
- // · vpc-id
- // 按照【VPC】进行过滤。
- // 类型:String
- // 必选:否
- //
- // · tag-key
- // 按照【标签键】进行过滤。
- // 类型:String
- // 必选:否
- //
- // · tag-value
- // 按照【标签值】进行过滤。
- // 类型:String
- // 必选:否
- //
- // · tag:tag-key
- // 按照【标签键值对】进行过滤。
- // 类型:String
- // 必选:否
- Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
-
- // 集群类型,例如:MANAGED_CLUSTER
- ClusterType *string `json:"ClusterType,omitempty" name:"ClusterType"`
- }
-
- func (r *DescribeClustersRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClustersRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterIds")
- delete(f, "Offset")
- delete(f, "Limit")
- delete(f, "Filters")
- delete(f, "ClusterType")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClustersRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeClustersResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 集群总个数
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
-
- // 集群信息列表
- Clusters []*Cluster `json:"Clusters,omitempty" name:"Clusters"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeClustersResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeClustersResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeEKSClusterCredentialRequest struct {
- *tchttp.BaseRequest
-
- // 集群Id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
- }
-
- func (r *DescribeEKSClusterCredentialRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeEKSClusterCredentialRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeEKSClusterCredentialRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeEKSClusterCredentialResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 集群的接入地址信息
- Addresses []*IPAddress `json:"Addresses,omitempty" name:"Addresses"`
-
- // 集群的认证信息
- Credential *ClusterCredential `json:"Credential,omitempty" name:"Credential"`
-
- // 集群的公网访问信息
- PublicLB *ClusterPublicLB `json:"PublicLB,omitempty" name:"PublicLB"`
-
- // 集群的内网访问信息
- InternalLB *ClusterInternalLB `json:"InternalLB,omitempty" name:"InternalLB"`
-
- // 标记是否新的内外网功能
- ProxyLB *bool `json:"ProxyLB,omitempty" name:"ProxyLB"`
-
- // 连接用户集群k8s 的Config
- Kubeconfig *string `json:"Kubeconfig,omitempty" name:"Kubeconfig"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeEKSClusterCredentialResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeEKSClusterCredentialResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeEKSClustersRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID列表(为空时,
- // 表示获取账号下所有集群)
- ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"`
-
- // 偏移量,默认0
- Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
-
- // 最大输出条数,默认20
- Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
-
- // 过滤条件,当前只支持按照单个条件ClusterName进行过滤
- Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
- }
-
- func (r *DescribeEKSClustersRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeEKSClustersRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterIds")
- delete(f, "Offset")
- delete(f, "Limit")
- delete(f, "Filters")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeEKSClustersRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeEKSClustersResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 集群总个数
- TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
-
- // 集群信息列表
- Clusters []*EksCluster `json:"Clusters,omitempty" name:"Clusters"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeEKSClustersResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeEKSClustersResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeEKSContainerInstanceEventRequest struct {
- *tchttp.BaseRequest
-
- // 容器实例id
- EksCiId *string `json:"EksCiId,omitempty" name:"EksCiId"`
-
- // 最大事件数量。默认为50,最大取值100。
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
- }
-
- func (r *DescribeEKSContainerInstanceEventRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeEKSContainerInstanceEventRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "EksCiId")
- delete(f, "Limit")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeEKSContainerInstanceEventRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeEKSContainerInstanceEventResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 事件集合
- Events []*Event `json:"Events,omitempty" name:"Events"`
-
- // 容器实例id
- EksCiId *string `json:"EksCiId,omitempty" name:"EksCiId"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeEKSContainerInstanceEventResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeEKSContainerInstanceEventResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeEKSContainerInstanceRegionsRequest struct {
- *tchttp.BaseRequest
- }
-
- func (r *DescribeEKSContainerInstanceRegionsRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeEKSContainerInstanceRegionsRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeEKSContainerInstanceRegionsRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeEKSContainerInstanceRegionsResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // EKS Container Instance支持的地域信息
- // 注意:此字段可能返回 null,表示取不到有效值。
- Regions []*EksCiRegionInfo `json:"Regions,omitempty" name:"Regions"`
-
- // 总数
- TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeEKSContainerInstanceRegionsResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeEKSContainerInstanceRegionsResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeEKSContainerInstancesRequest struct {
- /*********PCM param************/
- RequestSource string `position:"Query" name:"RequestSource"`
- ProviderId int32 `position:"Query" name:"ProviderId"`
- AccountName string `position:"Query" name:"AccountName"`
- Namespace string `position:"Query" name:"Namespace"`
- /*********PCM param************/
-
- *tchttp.BaseRequest
-
- // 限定此次返回资源的数量。如果不设定,默认返回20,最大不能超过100
- Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
-
- // 偏移量,默认0
- Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
-
- // 过滤条件,可条件:
- // (1)实例名称
- // KeyName: eks-ci-name
- // 类型:String
- //
- // (2)实例状态
- // KeyName: status
- // 类型:String
- // 可选值:"Pending", "Running", "Succeeded", "Failed"
- //
- // (3)内网ip
- // KeyName: private-ip
- // 类型:String
- //
- // (4)EIP地址
- // KeyName: eip-address
- // 类型:String
- //
- // (5)VpcId
- // KeyName: vpc-id
- // 类型:String
- Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
-
- // 容器实例 ID 数组
- EksCiIds []*string `json:"EksCiIds,omitempty" name:"EksCiIds"`
- }
-
- func (r *DescribeEKSContainerInstancesRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeEKSContainerInstancesRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "Limit")
- delete(f, "Offset")
- delete(f, "Filters")
- delete(f, "EksCiIds")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeEKSContainerInstancesRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeEKSContainerInstancesResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 容器组总数
- TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
-
- // 容器组列表
- EksCis []*EksCi `json:"EksCis,omitempty" name:"EksCis"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeEKSContainerInstancesResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeEKSContainerInstancesResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeEksContainerInstanceLogRequest struct {
- *tchttp.BaseRequest
-
- // Eks Container Instance Id,即容器实例Id
- EksCiId *string `json:"EksCiId,omitempty" name:"EksCiId"`
-
- // 容器名称,单容器的实例可选填。如果为多容器实例,请指定容器名称。
- ContainerName *string `json:"ContainerName,omitempty" name:"ContainerName"`
-
- // 返回最新日志行数,默认500,最大2000。日志内容最大返回 1M 数据。
- Tail *uint64 `json:"Tail,omitempty" name:"Tail"`
-
- // UTC时间,RFC3339标准
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
-
- // 是否是查上一个容器(如果容器退出重启了)
- Previous *bool `json:"Previous,omitempty" name:"Previous"`
-
- // 查询最近多少秒内的日志
- SinceSeconds *uint64 `json:"SinceSeconds,omitempty" name:"SinceSeconds"`
-
- // 日志总大小限制
- LimitBytes *uint64 `json:"LimitBytes,omitempty" name:"LimitBytes"`
- }
-
- func (r *DescribeEksContainerInstanceLogRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeEksContainerInstanceLogRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "EksCiId")
- delete(f, "ContainerName")
- delete(f, "Tail")
- delete(f, "StartTime")
- delete(f, "Previous")
- delete(f, "SinceSeconds")
- delete(f, "LimitBytes")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeEksContainerInstanceLogRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeEksContainerInstanceLogResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 容器名称
- ContainerName *string `json:"ContainerName,omitempty" name:"ContainerName"`
-
- // 日志内容
- LogContent *string `json:"LogContent,omitempty" name:"LogContent"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeEksContainerInstanceLogResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeEksContainerInstanceLogResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeEnableVpcCniProgressRequest struct {
- *tchttp.BaseRequest
-
- // 开启vpc-cni的集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
- }
-
- func (r *DescribeEnableVpcCniProgressRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeEnableVpcCniProgressRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeEnableVpcCniProgressRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeEnableVpcCniProgressResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 任务进度的描述:Running/Succeed/Failed
- Status *string `json:"Status,omitempty" name:"Status"`
-
- // 当任务进度为Failed时,对任务状态的进一步描述,例如IPAMD组件安装失败
- // 注意:此字段可能返回 null,表示取不到有效值。
- ErrorMessage *string `json:"ErrorMessage,omitempty" name:"ErrorMessage"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeEnableVpcCniProgressResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeEnableVpcCniProgressResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeExistedInstancesRequest struct {
- *tchttp.BaseRequest
-
- // 集群 ID,请填写查询集群列表 接口中返回的 ClusterId 字段(仅通过ClusterId获取需要过滤条件中的VPCID。节点状态比较时会使用该地域下所有集群中的节点进行比较。参数不支持同时指定InstanceIds和ClusterId。
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 按照一个或者多个实例ID查询。实例ID形如:ins-xxxxxxxx。(此参数的具体格式可参考API简介的id.N一节)。每次请求的实例的上限为100。参数不支持同时指定InstanceIds和Filters。
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
-
- // 过滤条件,字段和详见[CVM查询实例](https://cloud.tencent.com/document/api/213/15728)如果设置了ClusterId,会附加集群的VPCID作为查询字段,在此情况下如果在Filter中指定了"vpc-id"作为过滤字段,指定的VPCID必须与集群的VPCID相同。
- Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
-
- // 实例IP进行过滤(同时支持内网IP和外网IP)
- VagueIpAddress *string `json:"VagueIpAddress,omitempty" name:"VagueIpAddress"`
-
- // 实例名称进行过滤
- VagueInstanceName *string `json:"VagueInstanceName,omitempty" name:"VagueInstanceName"`
-
- // 偏移量,默认为0。关于Offset的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
- Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
-
- // 返回数量,默认为20,最大值为100。关于Limit的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
- Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
-
- // 根据多个实例IP进行过滤
- IpAddresses []*string `json:"IpAddresses,omitempty" name:"IpAddresses"`
- }
-
- func (r *DescribeExistedInstancesRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeExistedInstancesRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "InstanceIds")
- delete(f, "Filters")
- delete(f, "VagueIpAddress")
- delete(f, "VagueInstanceName")
- delete(f, "Offset")
- delete(f, "Limit")
- delete(f, "IpAddresses")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeExistedInstancesRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeExistedInstancesResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 已经存在的实例信息数组。
- // 注意:此字段可能返回 null,表示取不到有效值。
- ExistedInstanceSet []*ExistedInstance `json:"ExistedInstanceSet,omitempty" name:"ExistedInstanceSet"`
-
- // 符合条件的实例数量。
- TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeExistedInstancesResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeExistedInstancesResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeExternalClusterSpecRequest struct {
- *tchttp.BaseRequest
-
- // 注册集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 默认false 获取内网,是否获取外网版注册命令
- IsExtranet *bool `json:"IsExtranet,omitempty" name:"IsExtranet"`
-
- // 默认false 不刷新有效时间 ,true刷新有效时间
- IsRefreshExpirationTime *bool `json:"IsRefreshExpirationTime,omitempty" name:"IsRefreshExpirationTime"`
- }
-
- func (r *DescribeExternalClusterSpecRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeExternalClusterSpecRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "IsExtranet")
- delete(f, "IsRefreshExpirationTime")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeExternalClusterSpecRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeExternalClusterSpecResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 导入第三方集群YAML定义
- Spec *string `json:"Spec,omitempty" name:"Spec"`
-
- // agent.yaml文件过期时间字符串,时区UTC
- Expiration *string `json:"Expiration,omitempty" name:"Expiration"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeExternalClusterSpecResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeExternalClusterSpecResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeImageCachesRequest struct {
- *tchttp.BaseRequest
-
- // 镜像缓存Id数组
- ImageCacheIds []*string `json:"ImageCacheIds,omitempty" name:"ImageCacheIds"`
-
- // 镜像缓存名称数组
- ImageCacheNames []*string `json:"ImageCacheNames,omitempty" name:"ImageCacheNames"`
-
- // 限定此次返回资源的数量。如果不设定,默认返回20,最大不能超过50
- Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
-
- // 偏移量,默认0
- Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
-
- // 过滤条件,可选条件:
- // (1)实例名称
- // KeyName: image-cache-name
- // 类型:String
- Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
- }
-
- func (r *DescribeImageCachesRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeImageCachesRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ImageCacheIds")
- delete(f, "ImageCacheNames")
- delete(f, "Limit")
- delete(f, "Offset")
- delete(f, "Filters")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeImageCachesRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeImageCachesResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 镜像缓存总数
- TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
-
- // 镜像缓存信息列表
- ImageCaches []*ImageCache `json:"ImageCaches,omitempty" name:"ImageCaches"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeImageCachesResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeImageCachesResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeImagesRequest struct {
- *tchttp.BaseRequest
- }
-
- func (r *DescribeImagesRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeImagesRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeImagesRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeImagesResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 镜像数量
- // 注意:此字段可能返回 null,表示取不到有效值。
- TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
-
- // 镜像信息列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- ImageInstanceSet []*ImageInstance `json:"ImageInstanceSet,omitempty" name:"ImageInstanceSet"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeImagesResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeImagesResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribePrometheusAgentInstancesRequest struct {
- *tchttp.BaseRequest
-
- // 集群id
- // 可以是tke, eks, edge的集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
- }
-
- func (r *DescribePrometheusAgentInstancesRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribePrometheusAgentInstancesRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribePrometheusAgentInstancesRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribePrometheusAgentInstancesResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 关联该集群的实例列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- Instances []*string `json:"Instances,omitempty" name:"Instances"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribePrometheusAgentInstancesResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribePrometheusAgentInstancesResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribePrometheusAgentsRequest struct {
- *tchttp.BaseRequest
-
- // 实例id
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
-
- // 用于分页
- Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
-
- // 用于分页
- Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
- }
-
- func (r *DescribePrometheusAgentsRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribePrometheusAgentsRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "InstanceId")
- delete(f, "Offset")
- delete(f, "Limit")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribePrometheusAgentsRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribePrometheusAgentsResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 被关联集群信息
- Agents []*PrometheusAgentOverview `json:"Agents,omitempty" name:"Agents"`
-
- // 被关联集群总量
- Total *uint64 `json:"Total,omitempty" name:"Total"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribePrometheusAgentsResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribePrometheusAgentsResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribePrometheusAlertHistoryRequest struct {
- *tchttp.BaseRequest
-
- // 实例id
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
-
- // 告警名称
- RuleName *string `json:"RuleName,omitempty" name:"RuleName"`
-
- // 开始时间
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
-
- // 结束时间
- EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
-
- // label集合
- Labels *string `json:"Labels,omitempty" name:"Labels"`
-
- // 分片
- Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
-
- // 分片
- Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
- }
-
- func (r *DescribePrometheusAlertHistoryRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribePrometheusAlertHistoryRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "InstanceId")
- delete(f, "RuleName")
- delete(f, "StartTime")
- delete(f, "EndTime")
- delete(f, "Labels")
- delete(f, "Offset")
- delete(f, "Limit")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribePrometheusAlertHistoryRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribePrometheusAlertHistoryResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 告警历史
- Items []*PrometheusAlertHistoryItem `json:"Items,omitempty" name:"Items"`
-
- // 总数
- Total *uint64 `json:"Total,omitempty" name:"Total"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribePrometheusAlertHistoryResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribePrometheusAlertHistoryResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribePrometheusAlertRuleRequest struct {
- *tchttp.BaseRequest
-
- // 实例id
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
-
- // 分页
- Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
-
- // 分页
- Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
-
- // 过滤
- // 支持ID,Name
- Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
- }
-
- func (r *DescribePrometheusAlertRuleRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribePrometheusAlertRuleRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "InstanceId")
- delete(f, "Offset")
- delete(f, "Limit")
- delete(f, "Filters")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribePrometheusAlertRuleRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribePrometheusAlertRuleResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 告警详情
- AlertRules []*PrometheusAlertRuleDetail `json:"AlertRules,omitempty" name:"AlertRules"`
-
- // 总数
- Total *uint64 `json:"Total,omitempty" name:"Total"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribePrometheusAlertRuleResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribePrometheusAlertRuleResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribePrometheusInstanceRequest struct {
- *tchttp.BaseRequest
-
- // 实例id
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
- }
-
- func (r *DescribePrometheusInstanceRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribePrometheusInstanceRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "InstanceId")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribePrometheusInstanceRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribePrometheusInstanceResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 实例id
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
-
- // 实例名称
- Name *string `json:"Name,omitempty" name:"Name"`
-
- // 私有网络id
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
-
- // 子网id
- SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
-
- // cos桶名称
- COSBucket *string `json:"COSBucket,omitempty" name:"COSBucket"`
-
- // 数据查询地址
- QueryAddress *string `json:"QueryAddress,omitempty" name:"QueryAddress"`
-
- // 实例中grafana相关的信息
- // 注意:此字段可能返回 null,表示取不到有效值。
- Grafana *PrometheusGrafanaInfo `json:"Grafana,omitempty" name:"Grafana"`
-
- // 用户自定义alertmanager
- // 注意:此字段可能返回 null,表示取不到有效值。
- AlertManagerUrl *string `json:"AlertManagerUrl,omitempty" name:"AlertManagerUrl"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribePrometheusInstanceResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribePrometheusInstanceResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribePrometheusOverviewsRequest struct {
- *tchttp.BaseRequest
-
- // 用于分页
- Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
-
- // 用于分页
- Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
-
- // 过滤实例,目前支持:
- // ID: 通过实例ID来过滤
- // Name: 通过实例名称来过滤
- Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
- }
-
- func (r *DescribePrometheusOverviewsRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribePrometheusOverviewsRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "Offset")
- delete(f, "Limit")
- delete(f, "Filters")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribePrometheusOverviewsRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribePrometheusOverviewsResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 实例列表
- Instances []*PrometheusInstanceOverview `json:"Instances,omitempty" name:"Instances"`
-
- // 实例总数
- // 注意:此字段可能返回 null,表示取不到有效值。
- Total *uint64 `json:"Total,omitempty" name:"Total"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribePrometheusOverviewsResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribePrometheusOverviewsResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribePrometheusTargetsRequest struct {
- *tchttp.BaseRequest
-
- // 实例id
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
-
- // 集群类型
- ClusterType *string `json:"ClusterType,omitempty" name:"ClusterType"`
-
- // 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 过滤条件,当前支持
- // Name=state
- // Value=up, down, unknown
- Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
- }
-
- func (r *DescribePrometheusTargetsRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribePrometheusTargetsRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "InstanceId")
- delete(f, "ClusterType")
- delete(f, "ClusterId")
- delete(f, "Filters")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribePrometheusTargetsRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribePrometheusTargetsResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 所有Job的targets信息
- Jobs []*PrometheusJobTargets `json:"Jobs,omitempty" name:"Jobs"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribePrometheusTargetsResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribePrometheusTargetsResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribePrometheusTemplateSyncRequest struct {
- *tchttp.BaseRequest
-
- // 模板ID
- TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"`
- }
-
- func (r *DescribePrometheusTemplateSyncRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribePrometheusTemplateSyncRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "TemplateId")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribePrometheusTemplateSyncRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribePrometheusTemplateSyncResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 同步目标详情
- Targets []*PrometheusTemplateSyncTarget `json:"Targets,omitempty" name:"Targets"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribePrometheusTemplateSyncResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribePrometheusTemplateSyncResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribePrometheusTemplatesRequest struct {
- *tchttp.BaseRequest
-
- // 模糊过滤条件,支持
- // Level 按模板级别过滤
- // Name 按名称过滤
- // Describe 按描述过滤
- // ID 按templateId过滤
- Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
-
- // 分页偏移
- Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
-
- // 总数限制
- Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
- }
-
- func (r *DescribePrometheusTemplatesRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribePrometheusTemplatesRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "Filters")
- delete(f, "Offset")
- delete(f, "Limit")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribePrometheusTemplatesRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribePrometheusTemplatesResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 模板列表
- Templates []*PrometheusTemplate `json:"Templates,omitempty" name:"Templates"`
-
- // 总数
- Total *uint64 `json:"Total,omitempty" name:"Total"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribePrometheusTemplatesResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribePrometheusTemplatesResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeRegionsRequest struct {
- *tchttp.BaseRequest
- }
-
- func (r *DescribeRegionsRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeRegionsRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRegionsRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeRegionsResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 地域的数量
- // 注意:此字段可能返回 null,表示取不到有效值。
- TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
-
- // 地域列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- RegionInstanceSet []*RegionInstance `json:"RegionInstanceSet,omitempty" name:"RegionInstanceSet"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeRegionsResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeRegionsResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeRouteTableConflictsRequest struct {
- *tchttp.BaseRequest
-
- // 路由表CIDR
- RouteTableCidrBlock *string `json:"RouteTableCidrBlock,omitempty" name:"RouteTableCidrBlock"`
-
- // 路由表绑定的VPC
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
- }
-
- func (r *DescribeRouteTableConflictsRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeRouteTableConflictsRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "RouteTableCidrBlock")
- delete(f, "VpcId")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRouteTableConflictsRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeRouteTableConflictsResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 路由表是否冲突。
- HasConflict *bool `json:"HasConflict,omitempty" name:"HasConflict"`
-
- // 路由表冲突列表。
- // 注意:此字段可能返回 null,表示取不到有效值。
- RouteTableConflictSet []*RouteTableConflict `json:"RouteTableConflictSet,omitempty" name:"RouteTableConflictSet"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeRouteTableConflictsResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeRouteTableConflictsResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeTKEEdgeScriptRequest struct {
- *tchttp.BaseRequest
-
- // 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 网卡名
- Interface *string `json:"Interface,omitempty" name:"Interface"`
-
- // 节点名字
- NodeName *string `json:"NodeName,omitempty" name:"NodeName"`
-
- // json格式的节点配置
- Config *string `json:"Config,omitempty" name:"Config"`
- }
-
- func (r *DescribeTKEEdgeScriptRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeTKEEdgeScriptRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "Interface")
- delete(f, "NodeName")
- delete(f, "Config")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTKEEdgeScriptRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeTKEEdgeScriptResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeTKEEdgeScriptResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeTKEEdgeScriptResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeVersionsRequest struct {
- *tchttp.BaseRequest
- }
-
- func (r *DescribeVersionsRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeVersionsRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeVersionsRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeVersionsResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 版本数量
- // 注意:此字段可能返回 null,表示取不到有效值。
- TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
-
- // 版本列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- VersionInstanceSet []*VersionInstance `json:"VersionInstanceSet,omitempty" name:"VersionInstanceSet"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeVersionsResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeVersionsResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeVpcCniPodLimitsRequest struct {
- *tchttp.BaseRequest
-
- // 查询的机型所在可用区,如:ap-guangzhou-3,默认为空,即不按可用区过滤信息
- Zone *string `json:"Zone,omitempty" name:"Zone"`
-
- // 查询的实例机型系列信息,如:S5,默认为空,即不按机型系列过滤信息
- InstanceFamily *string `json:"InstanceFamily,omitempty" name:"InstanceFamily"`
-
- // 查询的实例机型信息,如:S5.LARGE8,默认为空,即不按机型过滤信息
- InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`
- }
-
- func (r *DescribeVpcCniPodLimitsRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeVpcCniPodLimitsRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "Zone")
- delete(f, "InstanceFamily")
- delete(f, "InstanceType")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeVpcCniPodLimitsRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DescribeVpcCniPodLimitsResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 机型数据数量
- // 注意:此字段可能返回 null,表示取不到有效值。
- TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
-
- // 机型信息及其可支持的最大VPC-CNI模式Pod数量信息
- // 注意:此字段可能返回 null,表示取不到有效值。
- PodLimitsInstanceSet []*PodLimitsInstance `json:"PodLimitsInstanceSet,omitempty" name:"PodLimitsInstanceSet"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DescribeVpcCniPodLimitsResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DescribeVpcCniPodLimitsResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DisableClusterDeletionProtectionRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
- }
-
- func (r *DisableClusterDeletionProtectionRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DisableClusterDeletionProtectionRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DisableClusterDeletionProtectionRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DisableClusterDeletionProtectionResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DisableClusterDeletionProtectionResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DisableClusterDeletionProtectionResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DisableVpcCniNetworkTypeRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
- }
-
- func (r *DisableVpcCniNetworkTypeRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DisableVpcCniNetworkTypeRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DisableVpcCniNetworkTypeRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DisableVpcCniNetworkTypeResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *DisableVpcCniNetworkTypeResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *DisableVpcCniNetworkTypeResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type DnsServerConf struct {
-
- // 域名。空字符串表示所有域名。
- Domain *string `json:"Domain,omitempty" name:"Domain"`
-
- // dns 服务器地址列表。地址格式 ip:port
- DnsServers []*string `json:"DnsServers,omitempty" name:"DnsServers"`
- }
-
- type EipAttribute struct {
-
- // 容器实例删除后,EIP是否释放。
- // Never表示不释放,其他任意值(包括空字符串)表示释放。
- DeletePolicy *string `json:"DeletePolicy,omitempty" name:"DeletePolicy"`
-
- // EIP线路类型。默认值:BGP。
- // 已开通静态单线IP白名单的用户,可选值:
- // CMCC:中国移动
- // CTCC:中国电信
- // CUCC:中国联通
- // 注意:仅部分地域支持静态单线IP。
- // 注意:此字段可能返回 null,表示取不到有效值。
- InternetServiceProvider *string `json:"InternetServiceProvider,omitempty" name:"InternetServiceProvider"`
-
- // EIP出带宽上限,单位:Mbps。
- // 注意:此字段可能返回 null,表示取不到有效值。
- InternetMaxBandwidthOut *uint64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"`
- }
-
- type EksCi struct {
-
- // EKS Cotainer Instance Id
- EksCiId *string `json:"EksCiId,omitempty" name:"EksCiId"`
-
- // EKS Cotainer Instance Name
- EksCiName *string `json:"EksCiName,omitempty" name:"EksCiName"`
-
- // 内存大小
- Memory *float64 `json:"Memory,omitempty" name:"Memory"`
-
- // CPU大小
- Cpu *float64 `json:"Cpu,omitempty" name:"Cpu"`
-
- // 安全组ID
- SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
-
- // 容器组的重启策略
- // 注意:此字段可能返回 null,表示取不到有效值。
- RestartPolicy *string `json:"RestartPolicy,omitempty" name:"RestartPolicy"`
-
- // 返回容器组创建状态:Pending,Running,Succeeded,Failed。其中:
- // Failed (运行失败)指的容器组退出,RestartPolilcy为Never, 有容器exitCode非0;
- // Succeeded(运行成功)指的是容器组退出了,RestartPolicy为Never或onFailure,所有容器exitCode都为0;
- // Failed和Succeeded这两种状态都会停止运行,停止计费。
- // Pending是创建中,Running是 运行中。
- // 注意:此字段可能返回 null,表示取不到有效值。
- Status *string `json:"Status,omitempty" name:"Status"`
-
- // 接到请求后的系统创建时间。
- // 注意:此字段可能返回 null,表示取不到有效值。
- CreationTime *string `json:"CreationTime,omitempty" name:"CreationTime"`
-
- // 容器全部成功退出后的时间
- // 注意:此字段可能返回 null,表示取不到有效值。
- SucceededTime *string `json:"SucceededTime,omitempty" name:"SucceededTime"`
-
- // 容器列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- Containers []*Container `json:"Containers,omitempty" name:"Containers"`
-
- // 数据卷信息
- // 注意:此字段可能返回 null,表示取不到有效值。
- EksCiVolume *EksCiVolume `json:"EksCiVolume,omitempty" name:"EksCiVolume"`
-
- // 容器组运行的安全上下文
- // 注意:此字段可能返回 null,表示取不到有效值。
- SecurityContext *SecurityContext `json:"SecurityContext,omitempty" name:"SecurityContext"`
-
- // 内网ip地址
- // 注意:此字段可能返回 null,表示取不到有效值。
- PrivateIp *string `json:"PrivateIp,omitempty" name:"PrivateIp"`
-
- // 容器实例绑定的Eip地址,注意可能为空
- // 注意:此字段可能返回 null,表示取不到有效值。
- EipAddress *string `json:"EipAddress,omitempty" name:"EipAddress"`
-
- // GPU类型。如无使用GPU则不返回
- // 注意:此字段可能返回 null,表示取不到有效值。
- GpuType *string `json:"GpuType,omitempty" name:"GpuType"`
-
- // CPU类型
- // 注意:此字段可能返回 null,表示取不到有效值。
- CpuType *string `json:"CpuType,omitempty" name:"CpuType"`
-
- // GPU卡数量
- // 注意:此字段可能返回 null,表示取不到有效值。
- GpuCount *uint64 `json:"GpuCount,omitempty" name:"GpuCount"`
-
- // 实例所属VPC的Id
- // 注意:此字段可能返回 null,表示取不到有效值。
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
-
- // 实例所属子网Id
- // 注意:此字段可能返回 null,表示取不到有效值。
- SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
-
- // 初始化容器列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- InitContainers []*Container `json:"InitContainers,omitempty" name:"InitContainers"`
-
- // 为容器实例关联 CAM 角色,value 填写 CAM 角色名称,容器实例可获取该 CAM 角色包含的权限策略,方便 容器实例 内的程序进行如购买资源、读写存储等云资源操作。
- // 注意:此字段可能返回 null,表示取不到有效值。
- CamRoleName *string `json:"CamRoleName,omitempty" name:"CamRoleName"`
-
- // 自动为用户创建的EipId
- // 注意:此字段可能返回 null,表示取不到有效值。
- AutoCreatedEipId *string `json:"AutoCreatedEipId,omitempty" name:"AutoCreatedEipId"`
-
- // 容器状态是否持久化
- // 注意:此字段可能返回 null,表示取不到有效值。
- PersistStatus *bool `json:"PersistStatus,omitempty" name:"PersistStatus"`
- }
-
- type EksCiRegionInfo struct {
-
- // 地域别名,形如gz
- Alias *string `json:"Alias,omitempty" name:"Alias"`
-
- // 地域名,形如ap-guangzhou
- RegionName *string `json:"RegionName,omitempty" name:"RegionName"`
-
- // 地域ID
- RegionId *uint64 `json:"RegionId,omitempty" name:"RegionId"`
- }
-
- type EksCiVolume struct {
-
- // Cbs Volume
- // 注意:此字段可能返回 null,表示取不到有效值。
- CbsVolumes []*CbsVolume `json:"CbsVolumes,omitempty" name:"CbsVolumes"`
-
- // Nfs Volume
- // 注意:此字段可能返回 null,表示取不到有效值。
- NfsVolumes []*NfsVolume `json:"NfsVolumes,omitempty" name:"NfsVolumes"`
- }
-
- type EksCluster struct {
-
- // 集群Id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 集群名称
- ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"`
-
- // Vpc Id
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
-
- // 子网列表
- SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds"`
-
- // k8s 版本号
- K8SVersion *string `json:"K8SVersion,omitempty" name:"K8SVersion"`
-
- // 集群状态(running运行中,initializing 初始化中,failed异常)
- Status *string `json:"Status,omitempty" name:"Status"`
-
- // 集群描述信息
- ClusterDesc *string `json:"ClusterDesc,omitempty" name:"ClusterDesc"`
-
- // 集群创建时间
- CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"`
-
- // Service 子网Id
- ServiceSubnetId *string `json:"ServiceSubnetId,omitempty" name:"ServiceSubnetId"`
-
- // 集群的自定义dns 服务器信息
- DnsServers []*DnsServerConf `json:"DnsServers,omitempty" name:"DnsServers"`
-
- // 将来删除集群时是否要删除cbs。默认为 FALSE
- NeedDeleteCbs *bool `json:"NeedDeleteCbs,omitempty" name:"NeedDeleteCbs"`
-
- // 是否在用户集群内开启Dns。默认为TRUE
- EnableVpcCoreDNS *bool `json:"EnableVpcCoreDNS,omitempty" name:"EnableVpcCoreDNS"`
-
- // 标签描述列表。
- // 注意:此字段可能返回 null,表示取不到有效值。
- TagSpecification []*TagSpecification `json:"TagSpecification,omitempty" name:"TagSpecification"`
- }
-
- type EnableClusterDeletionProtectionRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
- }
-
- func (r *EnableClusterDeletionProtectionRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *EnableClusterDeletionProtectionRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "EnableClusterDeletionProtectionRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type EnableClusterDeletionProtectionResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *EnableClusterDeletionProtectionResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *EnableClusterDeletionProtectionResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type EnableVpcCniNetworkTypeRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 开启vpc-cni的模式,tke-route-eni开启的是策略路由模式,tke-direct-eni开启的是独立网卡模式
- VpcCniType *string `json:"VpcCniType,omitempty" name:"VpcCniType"`
-
- // 是否开启固定IP模式
- EnableStaticIp *bool `json:"EnableStaticIp,omitempty" name:"EnableStaticIp"`
-
- // 使用的容器子网
- Subnets []*string `json:"Subnets,omitempty" name:"Subnets"`
-
- // 在固定IP模式下,Pod销毁后退还IP的时间,传参必须大于300;不传默认IP永不销毁。
- ExpiredSeconds *uint64 `json:"ExpiredSeconds,omitempty" name:"ExpiredSeconds"`
- }
-
- func (r *EnableVpcCniNetworkTypeRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *EnableVpcCniNetworkTypeRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "VpcCniType")
- delete(f, "EnableStaticIp")
- delete(f, "Subnets")
- delete(f, "ExpiredSeconds")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "EnableVpcCniNetworkTypeRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type EnableVpcCniNetworkTypeResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *EnableVpcCniNetworkTypeResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *EnableVpcCniNetworkTypeResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type EnhancedService struct {
-
- // 开启云安全服务。若不指定该参数,则默认开启云安全服务。
- SecurityService *RunSecurityServiceEnabled `json:"SecurityService,omitempty" name:"SecurityService"`
-
- // 开启云监控服务。若不指定该参数,则默认开启云监控服务。
- MonitorService *RunMonitorServiceEnabled `json:"MonitorService,omitempty" name:"MonitorService"`
-
- // 开启云自动化助手服务。若不指定该参数,则默认不开启云自动化助手服务。
- AutomationService *RunAutomationServiceEnabled `json:"AutomationService,omitempty" name:"AutomationService"`
- }
-
- type EnvironmentVariable struct {
-
- // key
- Name *string `json:"Name,omitempty" name:"Name"`
-
- // val
- Value *string `json:"Value,omitempty" name:"Value"`
- }
-
- type Event struct {
-
- // pod名称
- PodName *string `json:"PodName,omitempty" name:"PodName"`
-
- // 事件原因内容
- Reason *string `json:"Reason,omitempty" name:"Reason"`
-
- // 事件类型
- Type *string `json:"Type,omitempty" name:"Type"`
-
- // 事件出现次数
- Count *int64 `json:"Count,omitempty" name:"Count"`
-
- // 事件第一次出现时间
- FirstTimestamp *string `json:"FirstTimestamp,omitempty" name:"FirstTimestamp"`
-
- // 事件最后一次出现时间
- LastTimestamp *string `json:"LastTimestamp,omitempty" name:"LastTimestamp"`
-
- // 事件内容
- Message *string `json:"Message,omitempty" name:"Message"`
- }
-
- type Exec struct {
-
- // 容器内检测的命令
- // 注意:此字段可能返回 null,表示取不到有效值。
- Commands []*string `json:"Commands,omitempty" name:"Commands"`
- }
-
- type ExistedInstance struct {
-
- // 实例是否支持加入集群(TRUE 可以加入 FALSE 不能加入)。
- // 注意:此字段可能返回 null,表示取不到有效值。
- Usable *bool `json:"Usable,omitempty" name:"Usable"`
-
- // 实例不支持加入的原因。
- // 注意:此字段可能返回 null,表示取不到有效值。
- UnusableReason *string `json:"UnusableReason,omitempty" name:"UnusableReason"`
-
- // 实例已经所在的集群ID。
- // 注意:此字段可能返回 null,表示取不到有效值。
- AlreadyInCluster *string `json:"AlreadyInCluster,omitempty" name:"AlreadyInCluster"`
-
- // 实例ID形如:ins-xxxxxxxx。
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
-
- // 实例名称。
- // 注意:此字段可能返回 null,表示取不到有效值。
- InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
-
- // 实例主网卡的内网IP列表。
- // 注意:此字段可能返回 null,表示取不到有效值。
- PrivateIpAddresses []*string `json:"PrivateIpAddresses,omitempty" name:"PrivateIpAddresses"`
-
- // 实例主网卡的公网IP列表。
- // 注意:此字段可能返回 null,表示取不到有效值。
- // 注意:此字段可能返回 null,表示取不到有效值。
- PublicIpAddresses []*string `json:"PublicIpAddresses,omitempty" name:"PublicIpAddresses"`
-
- // 创建时间。按照ISO8601标准表示,并且使用UTC时间。格式为:YYYY-MM-DDThh:mm:ssZ。
- // 注意:此字段可能返回 null,表示取不到有效值。
- CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"`
-
- // 实例的CPU核数,单位:核。
- // 注意:此字段可能返回 null,表示取不到有效值。
- CPU *uint64 `json:"CPU,omitempty" name:"CPU"`
-
- // 实例内存容量,单位:GB。
- // 注意:此字段可能返回 null,表示取不到有效值。
- Memory *uint64 `json:"Memory,omitempty" name:"Memory"`
-
- // 操作系统名称。
- // 注意:此字段可能返回 null,表示取不到有效值。
- OsName *string `json:"OsName,omitempty" name:"OsName"`
-
- // 实例机型。
- // 注意:此字段可能返回 null,表示取不到有效值。
- InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`
-
- // 伸缩组ID
- // 注意:此字段可能返回 null,表示取不到有效值。
- AutoscalingGroupId *string `json:"AutoscalingGroupId,omitempty" name:"AutoscalingGroupId"`
-
- // 实例计费模式。取值范围: PREPAID:表示预付费,即包年包月 POSTPAID_BY_HOUR:表示后付费,即按量计费 CDHPAID:CDH付费,即只对CDH计费,不对CDH上的实例计费。
- // 注意:此字段可能返回 null,表示取不到有效值。
- InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"`
- }
-
- type ExistedInstancesForNode struct {
-
- // 节点角色,取值:MASTER_ETCD, WORKER。MASTER_ETCD只有在创建 INDEPENDENT_CLUSTER 独立集群时需要指定。MASTER_ETCD节点数量为3~7,建议为奇数。MASTER_ETCD最小配置为4C8G。
- NodeRole *string `json:"NodeRole,omitempty" name:"NodeRole"`
-
- // 已存在实例的重装参数
- ExistedInstancesPara *ExistedInstancesPara `json:"ExistedInstancesPara,omitempty" name:"ExistedInstancesPara"`
-
- // 节点高级设置,会覆盖集群级别设置的InstanceAdvancedSettings(当前只对节点自定义参数ExtraArgs生效)
- InstanceAdvancedSettingsOverride *InstanceAdvancedSettings `json:"InstanceAdvancedSettingsOverride,omitempty" name:"InstanceAdvancedSettingsOverride"`
-
- // 自定义模式集群,可指定每个节点的pod数量
- DesiredPodNumbers []*int64 `json:"DesiredPodNumbers,omitempty" name:"DesiredPodNumbers"`
- }
-
- type ExistedInstancesPara struct {
-
- // 集群ID
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
-
- // 实例额外需要设置参数信息
- InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"`
-
- // 增强服务。通过该参数可以指定是否开启云安全、云监控等服务。若不指定该参数,则默认开启云监控、云安全服务。
- EnhancedService *EnhancedService `json:"EnhancedService,omitempty" name:"EnhancedService"`
-
- // 节点登录信息(目前仅支持使用Password或者单个KeyIds)
- LoginSettings *LoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"`
-
- // 实例所属安全组。该参数可以通过调用 DescribeSecurityGroups 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。
- SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
-
- // 重装系统时,可以指定修改实例的HostName(集群为HostName模式时,此参数必传,规则名称除不支持大写字符外与[CVM创建实例](https://cloud.tencent.com/document/product/213/15730)接口HostName一致)
- HostName *string `json:"HostName,omitempty" name:"HostName"`
- }
-
- type ExtensionAddon struct {
-
- // 扩展组件名称
- AddonName *string `json:"AddonName,omitempty" name:"AddonName"`
-
- // 扩展组件信息(扩展组件资源对象的json字符串描述)
- AddonParam *string `json:"AddonParam,omitempty" name:"AddonParam"`
- }
-
- type Filter struct {
-
- // 需要过滤的字段。
- Name *string `json:"Name,omitempty" name:"Name"`
-
- // 字段的过滤值。
- Values []*string `json:"Values,omitempty" name:"Values"`
- }
-
- type ForwardApplicationRequestV3Request struct {
- *tchttp.BaseRequest
-
- // 请求集群addon的访问
- Method *string `json:"Method,omitempty" name:"Method"`
-
- // 请求集群addon的路径
- Path *string `json:"Path,omitempty" name:"Path"`
-
- // 请求集群addon后允许接收的数据格式
- Accept *string `json:"Accept,omitempty" name:"Accept"`
-
- // 请求集群addon的数据格式
- ContentType *string `json:"ContentType,omitempty" name:"ContentType"`
-
- // 请求集群addon的数据
- RequestBody *string `json:"RequestBody,omitempty" name:"RequestBody"`
-
- // 集群名称
- ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"`
-
- // 是否编码请求内容
- EncodedBody *string `json:"EncodedBody,omitempty" name:"EncodedBody"`
- }
-
- func (r *ForwardApplicationRequestV3Request) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ForwardApplicationRequestV3Request) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "Method")
- delete(f, "Path")
- delete(f, "Accept")
- delete(f, "ContentType")
- delete(f, "RequestBody")
- delete(f, "ClusterName")
- delete(f, "EncodedBody")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ForwardApplicationRequestV3Request has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ForwardApplicationRequestV3Response struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 请求集群addon后返回的数据
- ResponseBody *string `json:"ResponseBody,omitempty" name:"ResponseBody"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *ForwardApplicationRequestV3Response) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ForwardApplicationRequestV3Response) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type GetMostSuitableImageCacheRequest struct {
- *tchttp.BaseRequest
-
- // 容器镜像列表
- Images []*string `json:"Images,omitempty" name:"Images"`
- }
-
- func (r *GetMostSuitableImageCacheRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *GetMostSuitableImageCacheRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "Images")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetMostSuitableImageCacheRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type GetMostSuitableImageCacheResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 是否有匹配的镜像缓存
- Found *bool `json:"Found,omitempty" name:"Found"`
-
- // 匹配的镜像缓存
- // 注意:此字段可能返回 null,表示取不到有效值。
- ImageCache *ImageCache `json:"ImageCache,omitempty" name:"ImageCache"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *GetMostSuitableImageCacheResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *GetMostSuitableImageCacheResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type GetTkeAppChartListRequest struct {
- *tchttp.BaseRequest
-
- // app类型,取值log,scheduler,network,storage,monitor,dns,image,other,invisible
- Kind *string `json:"Kind,omitempty" name:"Kind"`
-
- // app支持的操作系统,取值arm32、arm64、amd64
- Arch *string `json:"Arch,omitempty" name:"Arch"`
-
- // 集群类型,取值tke、eks
- ClusterType *string `json:"ClusterType,omitempty" name:"ClusterType"`
- }
-
- func (r *GetTkeAppChartListRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *GetTkeAppChartListRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "Kind")
- delete(f, "Arch")
- delete(f, "ClusterType")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetTkeAppChartListRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type GetTkeAppChartListResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 所支持的chart列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- AppCharts []*AppChart `json:"AppCharts,omitempty" name:"AppCharts"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *GetTkeAppChartListResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *GetTkeAppChartListResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type GetUpgradeInstanceProgressRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 最多获取多少个节点的进度
- Limit *int64 `json:"Limit,omitempty" name:"Limit"`
-
- // 从第几个节点开始获取进度
- Offset *int64 `json:"Offset,omitempty" name:"Offset"`
- }
-
- func (r *GetUpgradeInstanceProgressRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *GetUpgradeInstanceProgressRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "Limit")
- delete(f, "Offset")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetUpgradeInstanceProgressRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type GetUpgradeInstanceProgressResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 升级节点总数
- Total *int64 `json:"Total,omitempty" name:"Total"`
-
- // 已升级节点总数
- Done *int64 `json:"Done,omitempty" name:"Done"`
-
- // 升级任务生命周期
- // process 运行中
- // paused 已停止
- // pauing 正在停止
- // done 已完成
- // timeout 已超时
- // aborted 已取消
- LifeState *string `json:"LifeState,omitempty" name:"LifeState"`
-
- // 各节点升级进度详情
- Instances []*InstanceUpgradeProgressItem `json:"Instances,omitempty" name:"Instances"`
-
- // 集群当前状态
- ClusterStatus *InstanceUpgradeClusterStatus `json:"ClusterStatus,omitempty" name:"ClusterStatus"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *GetUpgradeInstanceProgressResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *GetUpgradeInstanceProgressResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type HttpGet struct {
-
- // HttpGet检测的路径
- // 注意:此字段可能返回 null,表示取不到有效值。
- Path *string `json:"Path,omitempty" name:"Path"`
-
- // HttpGet检测的端口号
- // 注意:此字段可能返回 null,表示取不到有效值。
- Port *int64 `json:"Port,omitempty" name:"Port"`
-
- // HTTP or HTTPS
- // 注意:此字段可能返回 null,表示取不到有效值。
- Scheme *string `json:"Scheme,omitempty" name:"Scheme"`
- }
-
- type IPAddress struct {
-
- // Ip 地址的类型。可为 advertise, public 等
- Type *string `json:"Type,omitempty" name:"Type"`
-
- // Ip 地址
- Ip *string `json:"Ip,omitempty" name:"Ip"`
-
- // 网络端口
- Port *uint64 `json:"Port,omitempty" name:"Port"`
- }
-
- type ImageCache struct {
-
- // 镜像缓存Id
- ImageCacheId *string `json:"ImageCacheId,omitempty" name:"ImageCacheId"`
-
- // 镜像缓存名称
- ImageCacheName *string `json:"ImageCacheName,omitempty" name:"ImageCacheName"`
-
- // 镜像缓存大小。单位:GiB
- ImageCacheSize *uint64 `json:"ImageCacheSize,omitempty" name:"ImageCacheSize"`
-
- // 镜像缓存包含的镜像列表
- Images []*string `json:"Images,omitempty" name:"Images"`
-
- // 创建时间
- CreationTime *string `json:"CreationTime,omitempty" name:"CreationTime"`
-
- // 到期时间
- ExpireDateTime *string `json:"ExpireDateTime,omitempty" name:"ExpireDateTime"`
-
- // 镜像缓存事件信息
- Events []*ImageCacheEvent `json:"Events,omitempty" name:"Events"`
-
- // 最新一次匹配到镜像缓存的时间
- LastMatchedTime *string `json:"LastMatchedTime,omitempty" name:"LastMatchedTime"`
-
- // 镜像缓存对应的快照Id
- SnapshotId *string `json:"SnapshotId,omitempty" name:"SnapshotId"`
-
- // 镜像缓存状态,可能取值:
- // Pending:创建中
- // Ready:创建完成
- // Failed:创建失败
- // Updating:更新中
- // UpdateFailed:更新失败
- // 只有状态为Ready时,才能正常使用镜像缓存
- Status *string `json:"Status,omitempty" name:"Status"`
- }
-
- type ImageCacheEvent struct {
-
- // 镜像缓存Id
- ImageCacheId *string `json:"ImageCacheId,omitempty" name:"ImageCacheId"`
-
- // 事件类型, Normal或者Warning
- Type *string `json:"Type,omitempty" name:"Type"`
-
- // 事件原因简述
- Reason *string `json:"Reason,omitempty" name:"Reason"`
-
- // 事件原因详述
- Message *string `json:"Message,omitempty" name:"Message"`
-
- // 事件第一次出现时间
- FirstTimestamp *string `json:"FirstTimestamp,omitempty" name:"FirstTimestamp"`
-
- // 事件最后一次出现时间
- LastTimestamp *string `json:"LastTimestamp,omitempty" name:"LastTimestamp"`
- }
-
- type ImageInstance struct {
-
- // 镜像别名
- // 注意:此字段可能返回 null,表示取不到有效值。
- Alias *string `json:"Alias,omitempty" name:"Alias"`
-
- // 操作系统名称
- // 注意:此字段可能返回 null,表示取不到有效值。
- OsName *string `json:"OsName,omitempty" name:"OsName"`
-
- // 镜像ID
- // 注意:此字段可能返回 null,表示取不到有效值。
- ImageId *string `json:"ImageId,omitempty" name:"ImageId"`
-
- // 容器的镜像版本,"DOCKER_CUSTOMIZE"(容器定制版),"GENERAL"(普通版本,默认值)
- // 注意:此字段可能返回 null,表示取不到有效值。
- OsCustomizeType *string `json:"OsCustomizeType,omitempty" name:"OsCustomizeType"`
- }
-
- type ImageRegistryCredential struct {
-
- // 镜像仓库地址
- Server *string `json:"Server,omitempty" name:"Server"`
-
- // 用户名
- Username *string `json:"Username,omitempty" name:"Username"`
-
- // 密码
- Password *string `json:"Password,omitempty" name:"Password"`
-
- // ImageRegistryCredential的名字
- Name *string `json:"Name,omitempty" name:"Name"`
- }
-
- type Instance struct {
-
- // 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
-
- // 节点角色, MASTER, WORKER, ETCD, MASTER_ETCD,ALL, 默认为WORKER
- InstanceRole *string `json:"InstanceRole,omitempty" name:"InstanceRole"`
-
- // 实例异常(或者处于初始化中)的原因
- FailedReason *string `json:"FailedReason,omitempty" name:"FailedReason"`
-
- // 实例的状态(running 运行中,initializing 初始化中,failed 异常)
- InstanceState *string `json:"InstanceState,omitempty" name:"InstanceState"`
-
- // 实例是否封锁状态
- // 注意:此字段可能返回 null,表示取不到有效值。
- DrainStatus *string `json:"DrainStatus,omitempty" name:"DrainStatus"`
-
- // 节点配置
- // 注意:此字段可能返回 null,表示取不到有效值。
- InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"`
-
- // 添加时间
- CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"`
-
- // 节点内网IP
- // 注意:此字段可能返回 null,表示取不到有效值。
- LanIP *string `json:"LanIP,omitempty" name:"LanIP"`
-
- // 资源池ID
- // 注意:此字段可能返回 null,表示取不到有效值。
- NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"`
-
- // 自动伸缩组ID
- // 注意:此字段可能返回 null,表示取不到有效值。
- AutoscalingGroupId *string `json:"AutoscalingGroupId,omitempty" name:"AutoscalingGroupId"`
- }
-
- type InstanceAdvancedSettings struct {
-
- // 数据盘挂载点, 默认不挂载数据盘. 已格式化的 ext3,ext4,xfs 文件系统的数据盘将直接挂载,其他文件系统或未格式化的数据盘将自动格式化为ext4 (tlinux系统格式化成xfs)并挂载,请注意备份数据! 无数据盘或有多块数据盘的云主机此设置不生效。
- // 注意,注意,多盘场景请使用下方的DataDisks数据结构,设置对应的云盘类型、云盘大小、挂载路径、是否格式化等信息。
- // 注意:此字段可能返回 null,表示取不到有效值。
- MountTarget *string `json:"MountTarget,omitempty" name:"MountTarget"`
-
- // dockerd --graph 指定值, 默认为 /var/lib/docker
- // 注意:此字段可能返回 null,表示取不到有效值。
- DockerGraphPath *string `json:"DockerGraphPath,omitempty" name:"DockerGraphPath"`
-
- // base64 编码的用户脚本, 此脚本会在 k8s 组件运行后执行, 需要用户保证脚本的可重入及重试逻辑, 脚本及其生成的日志文件可在节点的 /data/ccs_userscript/ 路径查看, 如果要求节点需要在进行初始化完成后才可加入调度, 可配合 unschedulable 参数使用, 在 userScript 最后初始化完成后, 添加 kubectl uncordon nodename --kubeconfig=/root/.kube/config 命令使节点加入调度
- // 注意:此字段可能返回 null,表示取不到有效值。
- UserScript *string `json:"UserScript,omitempty" name:"UserScript"`
-
- // 设置加入的节点是否参与调度,默认值为0,表示参与调度;非0表示不参与调度, 待节点初始化完成之后, 可执行kubectl uncordon nodename使node加入调度.
- Unschedulable *int64 `json:"Unschedulable,omitempty" name:"Unschedulable"`
-
- // 节点Label数组
- // 注意:此字段可能返回 null,表示取不到有效值。
- Labels []*Label `json:"Labels,omitempty" name:"Labels"`
-
- // 多盘数据盘挂载信息:新建节点时请确保购买CVM的参数传递了购买多个数据盘的信息,如CreateClusterInstances API的RunInstancesPara下的DataDisks也需要设置购买多个数据盘, 具体可以参考CreateClusterInstances接口的添加集群节点(多块数据盘)样例;添加已有节点时,请确保填写的分区信息在节点上真实存在
- // 注意:此字段可能返回 null,表示取不到有效值。
- DataDisks []*DataDisk `json:"DataDisks,omitempty" name:"DataDisks"`
-
- // 节点相关的自定义参数信息
- // 注意:此字段可能返回 null,表示取不到有效值。
- ExtraArgs *InstanceExtraArgs `json:"ExtraArgs,omitempty" name:"ExtraArgs"`
-
- // 该节点属于podCIDR大小自定义模式时,可指定节点上运行的pod数量上限
- // 注意:此字段可能返回 null,表示取不到有效值。
- DesiredPodNumber *int64 `json:"DesiredPodNumber,omitempty" name:"DesiredPodNumber"`
-
- // base64 编码的用户脚本,在初始化节点之前执行,目前只对添加已有节点生效
- // 注意:此字段可能返回 null,表示取不到有效值。
- PreStartUserScript *string `json:"PreStartUserScript,omitempty" name:"PreStartUserScript"`
- }
-
- type InstanceDataDiskMountSetting struct {
-
- // CVM实例类型
- InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`
-
- // 数据盘挂载信息
- DataDisks []*DataDisk `json:"DataDisks,omitempty" name:"DataDisks"`
-
- // CVM实例所属可用区
- Zone *string `json:"Zone,omitempty" name:"Zone"`
- }
-
- type InstanceExtraArgs struct {
-
- // kubelet自定义参数,参数格式为["k1=v1", "k1=v2"], 例如["root-dir=/var/lib/kubelet","feature-gates=PodShareProcessNamespace=true,DynamicKubeletConfig=true"]
- // 注意:此字段可能返回 null,表示取不到有效值。
- Kubelet []*string `json:"Kubelet,omitempty" name:"Kubelet"`
- }
-
- type InstanceUpgradeClusterStatus struct {
-
- // pod总数
- PodTotal *int64 `json:"PodTotal,omitempty" name:"PodTotal"`
-
- // NotReady pod总数
- NotReadyPod *int64 `json:"NotReadyPod,omitempty" name:"NotReadyPod"`
- }
-
- type InstanceUpgradePreCheckResult struct {
-
- // 检查是否通过
- CheckPass *bool `json:"CheckPass,omitempty" name:"CheckPass"`
-
- // 检查项数组
- Items []*InstanceUpgradePreCheckResultItem `json:"Items,omitempty" name:"Items"`
-
- // 本节点独立pod列表
- SinglePods []*string `json:"SinglePods,omitempty" name:"SinglePods"`
- }
-
- type InstanceUpgradePreCheckResultItem struct {
-
- // 工作负载的命名空间
- Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
-
- // 工作负载类型
- WorkLoadKind *string `json:"WorkLoadKind,omitempty" name:"WorkLoadKind"`
-
- // 工作负载名称
- WorkLoadName *string `json:"WorkLoadName,omitempty" name:"WorkLoadName"`
-
- // 驱逐节点前工作负载running的pod数目
- Before *uint64 `json:"Before,omitempty" name:"Before"`
-
- // 驱逐节点后工作负载running的pod数目
- After *uint64 `json:"After,omitempty" name:"After"`
-
- // 工作负载在本节点上的pod列表
- Pods []*string `json:"Pods,omitempty" name:"Pods"`
- }
-
- type InstanceUpgradeProgressItem struct {
-
- // 节点instanceID
- InstanceID *string `json:"InstanceID,omitempty" name:"InstanceID"`
-
- // 任务生命周期
- // process 运行中
- // paused 已停止
- // pauing 正在停止
- // done 已完成
- // timeout 已超时
- // aborted 已取消
- // pending 还未开始
- LifeState *string `json:"LifeState,omitempty" name:"LifeState"`
-
- // 升级开始时间
- // 注意:此字段可能返回 null,表示取不到有效值。
- StartAt *string `json:"StartAt,omitempty" name:"StartAt"`
-
- // 升级结束时间
- // 注意:此字段可能返回 null,表示取不到有效值。
- EndAt *string `json:"EndAt,omitempty" name:"EndAt"`
-
- // 升级前检查结果
- CheckResult *InstanceUpgradePreCheckResult `json:"CheckResult,omitempty" name:"CheckResult"`
-
- // 升级步骤详情
- Detail []*TaskStepInfo `json:"Detail,omitempty" name:"Detail"`
- }
-
- type Label struct {
-
- // map表中的Name
- Name *string `json:"Name,omitempty" name:"Name"`
-
- // map表中的Value
- Value *string `json:"Value,omitempty" name:"Value"`
- }
-
- type LivenessOrReadinessProbe struct {
-
- // 探针参数
- // 注意:此字段可能返回 null,表示取不到有效值。
- Probe *Probe `json:"Probe,omitempty" name:"Probe"`
-
- // HttpGet检测参数
- // 注意:此字段可能返回 null,表示取不到有效值。
- HttpGet *HttpGet `json:"HttpGet,omitempty" name:"HttpGet"`
-
- // 容器内检测命令参数
- // 注意:此字段可能返回 null,表示取不到有效值。
- Exec *Exec `json:"Exec,omitempty" name:"Exec"`
-
- // TcpSocket检测的端口参数
- // 注意:此字段可能返回 null,表示取不到有效值。
- TcpSocket *TcpSocket `json:"TcpSocket,omitempty" name:"TcpSocket"`
- }
-
- type LoginSettings struct {
-
- // 实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:<br><li>Linux实例密码必须8到30位,至少包括两项[a-z],[A-Z]、[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? / ]中的特殊符号。<br><li>Windows实例密码必须12到30位,至少包括三项[a-z],[A-Z],[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? /]中的特殊符号。<br><br>若不指定该参数,则由系统随机生成密码,并通过站内信方式通知到用户。
- // 注意:此字段可能返回 null,表示取不到有效值。
- Password *string `json:"Password,omitempty" name:"Password"`
-
- // 密钥ID列表。关联密钥后,就可以通过对应的私钥来访问实例;KeyId可通过接口[DescribeKeyPairs](https://cloud.tencent.com/document/api/213/15699)获取,密钥与密码不能同时指定,同时Windows操作系统不支持指定密钥。当前仅支持购买的时候指定一个密钥。
- // 注意:此字段可能返回 null,表示取不到有效值。
- KeyIds []*string `json:"KeyIds,omitempty" name:"KeyIds"`
-
- // 保持镜像的原始设置。该参数与Password或KeyIds.N不能同时指定。只有使用自定义镜像、共享镜像或外部导入镜像创建实例时才能指定该参数为TRUE。取值范围:<br><li>TRUE:表示保持镜像的登录设置<br><li>FALSE:表示不保持镜像的登录设置<br><br>默认取值:FALSE。
- // 注意:此字段可能返回 null,表示取不到有效值。
- KeepImageLogin *string `json:"KeepImageLogin,omitempty" name:"KeepImageLogin"`
- }
-
- type ManuallyAdded struct {
-
- // 加入中的节点数量
- Joining *int64 `json:"Joining,omitempty" name:"Joining"`
-
- // 初始化中的节点数量
- Initializing *int64 `json:"Initializing,omitempty" name:"Initializing"`
-
- // 正常的节点数量
- Normal *int64 `json:"Normal,omitempty" name:"Normal"`
-
- // 节点总数
- Total *int64 `json:"Total,omitempty" name:"Total"`
- }
-
- type ModifyClusterAsGroupAttributeRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 集群关联的伸缩组属性
- ClusterAsGroupAttribute *ClusterAsGroupAttribute `json:"ClusterAsGroupAttribute,omitempty" name:"ClusterAsGroupAttribute"`
- }
-
- func (r *ModifyClusterAsGroupAttributeRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ModifyClusterAsGroupAttributeRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "ClusterAsGroupAttribute")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyClusterAsGroupAttributeRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ModifyClusterAsGroupAttributeResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *ModifyClusterAsGroupAttributeResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ModifyClusterAsGroupAttributeResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ModifyClusterAsGroupOptionAttributeRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 集群弹性伸缩属性
- ClusterAsGroupOption *ClusterAsGroupOption `json:"ClusterAsGroupOption,omitempty" name:"ClusterAsGroupOption"`
- }
-
- func (r *ModifyClusterAsGroupOptionAttributeRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ModifyClusterAsGroupOptionAttributeRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "ClusterAsGroupOption")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyClusterAsGroupOptionAttributeRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ModifyClusterAsGroupOptionAttributeResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *ModifyClusterAsGroupOptionAttributeResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ModifyClusterAsGroupOptionAttributeResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ModifyClusterAttributeRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 集群所属项目
- ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
-
- // 集群名称
- ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"`
-
- // 集群描述
- ClusterDesc *string `json:"ClusterDesc,omitempty" name:"ClusterDesc"`
-
- // 集群等级
- ClusterLevel *string `json:"ClusterLevel,omitempty" name:"ClusterLevel"`
-
- // 自动变配集群等级
- AutoUpgradeClusterLevel *AutoUpgradeClusterLevel `json:"AutoUpgradeClusterLevel,omitempty" name:"AutoUpgradeClusterLevel"`
- }
-
- func (r *ModifyClusterAttributeRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ModifyClusterAttributeRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "ProjectId")
- delete(f, "ClusterName")
- delete(f, "ClusterDesc")
- delete(f, "ClusterLevel")
- delete(f, "AutoUpgradeClusterLevel")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyClusterAttributeRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ModifyClusterAttributeResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 集群所属项目
- // 注意:此字段可能返回 null,表示取不到有效值。
- ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
-
- // 集群名称
- // 注意:此字段可能返回 null,表示取不到有效值。
- ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"`
-
- // 集群描述
- // 注意:此字段可能返回 null,表示取不到有效值。
- ClusterDesc *string `json:"ClusterDesc,omitempty" name:"ClusterDesc"`
-
- // 集群等级
- // 注意:此字段可能返回 null,表示取不到有效值。
- ClusterLevel *string `json:"ClusterLevel,omitempty" name:"ClusterLevel"`
-
- // 自动变配集群等级
- // 注意:此字段可能返回 null,表示取不到有效值。
- AutoUpgradeClusterLevel *AutoUpgradeClusterLevel `json:"AutoUpgradeClusterLevel,omitempty" name:"AutoUpgradeClusterLevel"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *ModifyClusterAttributeResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ModifyClusterAttributeResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ModifyClusterAuthenticationOptionsRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // ServiceAccount认证配置
- ServiceAccounts *ServiceAccountAuthenticationOptions `json:"ServiceAccounts,omitempty" name:"ServiceAccounts"`
- }
-
- func (r *ModifyClusterAuthenticationOptionsRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ModifyClusterAuthenticationOptionsRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "ServiceAccounts")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyClusterAuthenticationOptionsRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ModifyClusterAuthenticationOptionsResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *ModifyClusterAuthenticationOptionsResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ModifyClusterAuthenticationOptionsResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ModifyClusterEndpointSPRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 安全策略放通单个IP或CIDR(例如: "192.168.1.0/24",默认为拒绝所有)
- SecurityPolicies []*string `json:"SecurityPolicies,omitempty" name:"SecurityPolicies"`
- }
-
- func (r *ModifyClusterEndpointSPRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ModifyClusterEndpointSPRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "SecurityPolicies")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyClusterEndpointSPRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ModifyClusterEndpointSPResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *ModifyClusterEndpointSPResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ModifyClusterEndpointSPResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ModifyClusterNodePoolRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 节点池ID
- NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"`
-
- // 名称
- Name *string `json:"Name,omitempty" name:"Name"`
-
- // 最大节点数
- MaxNodesNum *int64 `json:"MaxNodesNum,omitempty" name:"MaxNodesNum"`
-
- // 最小节点数
- MinNodesNum *int64 `json:"MinNodesNum,omitempty" name:"MinNodesNum"`
-
- // 标签
- Labels []*Label `json:"Labels,omitempty" name:"Labels"`
-
- // 污点
- Taints []*Taint `json:"Taints,omitempty" name:"Taints"`
-
- // 是否开启伸缩
- EnableAutoscale *bool `json:"EnableAutoscale,omitempty" name:"EnableAutoscale"`
-
- // 操作系统名称
- OsName *string `json:"OsName,omitempty" name:"OsName"`
-
- // 镜像版本,"DOCKER_CUSTOMIZE"(容器定制版),"GENERAL"(普通版本,默认值)
- OsCustomizeType *string `json:"OsCustomizeType,omitempty" name:"OsCustomizeType"`
-
- // 节点自定义参数
- ExtraArgs *InstanceExtraArgs `json:"ExtraArgs,omitempty" name:"ExtraArgs"`
-
- // 资源标签
- Tags []*Tag `json:"Tags,omitempty" name:"Tags"`
-
- // 设置加入的节点是否参与调度,默认值为0,表示参与调度;非0表示不参与调度, 待节点初始化完成之后, 可执行kubectl uncordon nodename使node加入调度.
- Unschedulable *int64 `json:"Unschedulable,omitempty" name:"Unschedulable"`
- }
-
- func (r *ModifyClusterNodePoolRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ModifyClusterNodePoolRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "NodePoolId")
- delete(f, "Name")
- delete(f, "MaxNodesNum")
- delete(f, "MinNodesNum")
- delete(f, "Labels")
- delete(f, "Taints")
- delete(f, "EnableAutoscale")
- delete(f, "OsName")
- delete(f, "OsCustomizeType")
- delete(f, "ExtraArgs")
- delete(f, "Tags")
- delete(f, "Unschedulable")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyClusterNodePoolRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ModifyClusterNodePoolResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *ModifyClusterNodePoolResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ModifyClusterNodePoolResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ModifyNodePoolDesiredCapacityAboutAsgRequest struct {
- *tchttp.BaseRequest
-
- // 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 节点池id
- NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"`
-
- // 节点池所关联的伸缩组的期望实例数
- DesiredCapacity *int64 `json:"DesiredCapacity,omitempty" name:"DesiredCapacity"`
- }
-
- func (r *ModifyNodePoolDesiredCapacityAboutAsgRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ModifyNodePoolDesiredCapacityAboutAsgRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "NodePoolId")
- delete(f, "DesiredCapacity")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyNodePoolDesiredCapacityAboutAsgRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ModifyNodePoolDesiredCapacityAboutAsgResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *ModifyNodePoolDesiredCapacityAboutAsgResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ModifyNodePoolDesiredCapacityAboutAsgResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ModifyNodePoolInstanceTypesRequest struct {
- *tchttp.BaseRequest
-
- // 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 节点池id
- NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"`
-
- // 机型列表
- InstanceTypes []*string `json:"InstanceTypes,omitempty" name:"InstanceTypes"`
- }
-
- func (r *ModifyNodePoolInstanceTypesRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ModifyNodePoolInstanceTypesRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "NodePoolId")
- delete(f, "InstanceTypes")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyNodePoolInstanceTypesRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ModifyNodePoolInstanceTypesResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *ModifyNodePoolInstanceTypesResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ModifyNodePoolInstanceTypesResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ModifyPrometheusAlertRuleRequest struct {
- *tchttp.BaseRequest
-
- // 实例id
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
-
- // 告警配置
- AlertRule *PrometheusAlertRuleDetail `json:"AlertRule,omitempty" name:"AlertRule"`
- }
-
- func (r *ModifyPrometheusAlertRuleRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ModifyPrometheusAlertRuleRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "InstanceId")
- delete(f, "AlertRule")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyPrometheusAlertRuleRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ModifyPrometheusAlertRuleResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *ModifyPrometheusAlertRuleResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ModifyPrometheusAlertRuleResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ModifyPrometheusTemplateRequest struct {
- *tchttp.BaseRequest
-
- // 模板ID
- TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"`
-
- // 修改内容
- Template *PrometheusTemplateModify `json:"Template,omitempty" name:"Template"`
- }
-
- func (r *ModifyPrometheusTemplateRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ModifyPrometheusTemplateRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "TemplateId")
- delete(f, "Template")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyPrometheusTemplateRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ModifyPrometheusTemplateResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *ModifyPrometheusTemplateResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ModifyPrometheusTemplateResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type NfsVolume struct {
-
- // nfs volume 数据卷名称
- Name *string `json:"Name,omitempty" name:"Name"`
-
- // NFS 服务器地址
- Server *string `json:"Server,omitempty" name:"Server"`
-
- // NFS 数据卷路径
- Path *string `json:"Path,omitempty" name:"Path"`
-
- // 默认为 False
- ReadOnly *bool `json:"ReadOnly,omitempty" name:"ReadOnly"`
- }
-
- type NodeCountSummary struct {
-
- // 手动管理的节点
- // 注意:此字段可能返回 null,表示取不到有效值。
- ManuallyAdded *ManuallyAdded `json:"ManuallyAdded,omitempty" name:"ManuallyAdded"`
-
- // 自动管理的节点
- // 注意:此字段可能返回 null,表示取不到有效值。
- AutoscalingAdded *AutoscalingAdded `json:"AutoscalingAdded,omitempty" name:"AutoscalingAdded"`
- }
-
- type NodePool struct {
-
- // NodePoolId 资源池id
- NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"`
-
- // Name 资源池名称
- Name *string `json:"Name,omitempty" name:"Name"`
-
- // ClusterInstanceId 集群实例id
- ClusterInstanceId *string `json:"ClusterInstanceId,omitempty" name:"ClusterInstanceId"`
-
- // LifeState 状态,当前节点池生命周期状态包括:creating,normal,updating,deleting,deleted
- LifeState *string `json:"LifeState,omitempty" name:"LifeState"`
-
- // LaunchConfigurationId 配置
- LaunchConfigurationId *string `json:"LaunchConfigurationId,omitempty" name:"LaunchConfigurationId"`
-
- // AutoscalingGroupId 分组id
- AutoscalingGroupId *string `json:"AutoscalingGroupId,omitempty" name:"AutoscalingGroupId"`
-
- // Labels 标签
- Labels []*Label `json:"Labels,omitempty" name:"Labels"`
-
- // Taints 污点标记
- Taints []*Taint `json:"Taints,omitempty" name:"Taints"`
-
- // NodeCountSummary 节点列表
- NodeCountSummary *NodeCountSummary `json:"NodeCountSummary,omitempty" name:"NodeCountSummary"`
-
- // 状态信息
- // 注意:此字段可能返回 null,表示取不到有效值。
- AutoscalingGroupStatus *string `json:"AutoscalingGroupStatus,omitempty" name:"AutoscalingGroupStatus"`
-
- // 最大节点数量
- // 注意:此字段可能返回 null,表示取不到有效值。
- MaxNodesNum *int64 `json:"MaxNodesNum,omitempty" name:"MaxNodesNum"`
-
- // 最小节点数量
- // 注意:此字段可能返回 null,表示取不到有效值。
- MinNodesNum *int64 `json:"MinNodesNum,omitempty" name:"MinNodesNum"`
-
- // 期望的节点数量
- // 注意:此字段可能返回 null,表示取不到有效值。
- DesiredNodesNum *int64 `json:"DesiredNodesNum,omitempty" name:"DesiredNodesNum"`
-
- // 节点池osName
- // 注意:此字段可能返回 null,表示取不到有效值。
- NodePoolOs *string `json:"NodePoolOs,omitempty" name:"NodePoolOs"`
-
- // 容器的镜像版本,"DOCKER_CUSTOMIZE"(容器定制版),"GENERAL"(普通版本,默认值)
- // 注意:此字段可能返回 null,表示取不到有效值。
- OsCustomizeType *string `json:"OsCustomizeType,omitempty" name:"OsCustomizeType"`
-
- // 镜像id
- // 注意:此字段可能返回 null,表示取不到有效值。
- ImageId *string `json:"ImageId,omitempty" name:"ImageId"`
-
- // 集群属于节点podCIDR大小自定义模式时,节点池需要带上pod数量属性
- // 注意:此字段可能返回 null,表示取不到有效值。
- DesiredPodNum *int64 `json:"DesiredPodNum,omitempty" name:"DesiredPodNum"`
-
- // 用户自定义脚本
- // 注意:此字段可能返回 null,表示取不到有效值。
- UserScript *string `json:"UserScript,omitempty" name:"UserScript"`
-
- // 资源标签
- // 注意:此字段可能返回 null,表示取不到有效值。
- Tags []*Tag `json:"Tags,omitempty" name:"Tags"`
- }
-
- type NodePoolOption struct {
-
- // 是否加入节点池
- AddToNodePool *bool `json:"AddToNodePool,omitempty" name:"AddToNodePool"`
-
- // 节点池id
- NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"`
-
- // 是否继承节点池相关配置
- InheritConfigurationFromNodePool *bool `json:"InheritConfigurationFromNodePool,omitempty" name:"InheritConfigurationFromNodePool"`
- }
-
- type PodLimitsByType struct {
-
- // TKE共享网卡非固定IP模式可支持的Pod数量
- // 注意:此字段可能返回 null,表示取不到有效值。
- TKERouteENINonStaticIP *int64 `json:"TKERouteENINonStaticIP,omitempty" name:"TKERouteENINonStaticIP"`
-
- // TKE共享网卡固定IP模式可支持的Pod数量
- // 注意:此字段可能返回 null,表示取不到有效值。
- TKERouteENIStaticIP *int64 `json:"TKERouteENIStaticIP,omitempty" name:"TKERouteENIStaticIP"`
-
- // TKE独立网卡模式可支持的Pod数量
- // 注意:此字段可能返回 null,表示取不到有效值。
- TKEDirectENI *int64 `json:"TKEDirectENI,omitempty" name:"TKEDirectENI"`
- }
-
- type PodLimitsInstance struct {
-
- // 机型所在可用区
- // 注意:此字段可能返回 null,表示取不到有效值。
- Zone *string `json:"Zone,omitempty" name:"Zone"`
-
- // 机型所属机型族
- // 注意:此字段可能返回 null,表示取不到有效值。
- InstanceFamily *string `json:"InstanceFamily,omitempty" name:"InstanceFamily"`
-
- // 实例机型名称
- // 注意:此字段可能返回 null,表示取不到有效值。
- InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"`
-
- // 机型可支持的最大VPC-CNI模式Pod数量信息
- // 注意:此字段可能返回 null,表示取不到有效值。
- PodLimits *PodLimitsByType `json:"PodLimits,omitempty" name:"PodLimits"`
- }
-
- type Probe struct {
-
- // Number of seconds after the container has started before liveness probes are initiated.
- // 注意:此字段可能返回 null,表示取不到有效值。
- InitialDelaySeconds *int64 `json:"InitialDelaySeconds,omitempty" name:"InitialDelaySeconds"`
-
- // Number of seconds after which the probe times out.
- // Defaults to 1 second. Minimum value is 1.
- // 注意:此字段可能返回 null,表示取不到有效值。
- TimeoutSeconds *int64 `json:"TimeoutSeconds,omitempty" name:"TimeoutSeconds"`
-
- // How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.
- // 注意:此字段可能返回 null,表示取不到有效值。
- PeriodSeconds *int64 `json:"PeriodSeconds,omitempty" name:"PeriodSeconds"`
-
- // Minimum consecutive successes for the probe to be considered successful after having failed.Defaults to 1. Must be 1 for liveness. Minimum value is 1.
- // 注意:此字段可能返回 null,表示取不到有效值。
- SuccessThreshold *int64 `json:"SuccessThreshold,omitempty" name:"SuccessThreshold"`
-
- // Minimum consecutive failures for the probe to be considered failed after having succeeded.Defaults to 3. Minimum value is 1.
- // 注意:此字段可能返回 null,表示取不到有效值。
- FailureThreshold *int64 `json:"FailureThreshold,omitempty" name:"FailureThreshold"`
- }
-
- type PrometheusAgentOverview struct {
-
- // 集群类型
- ClusterType *string `json:"ClusterType,omitempty" name:"ClusterType"`
-
- // 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // agent状态
- // normal = 正常
- // abnormal = 异常
- Status *string `json:"Status,omitempty" name:"Status"`
-
- // 集群名称
- ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"`
-
- // 额外labels
- // 本集群的所有指标都会带上这几个label
- // 注意:此字段可能返回 null,表示取不到有效值。
- ExternalLabels []*Label `json:"ExternalLabels,omitempty" name:"ExternalLabels"`
- }
-
- type PrometheusAlertHistoryItem struct {
-
- // 告警名称
- RuleName *string `json:"RuleName,omitempty" name:"RuleName"`
-
- // 告警开始时间
- StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
-
- // 告警内容
- Content *string `json:"Content,omitempty" name:"Content"`
-
- // 告警状态
- // 注意:此字段可能返回 null,表示取不到有效值。
- State *string `json:"State,omitempty" name:"State"`
-
- // 触发的规则名称
- // 注意:此字段可能返回 null,表示取不到有效值。
- RuleItem *string `json:"RuleItem,omitempty" name:"RuleItem"`
-
- // 告警渠道的id
- // 注意:此字段可能返回 null,表示取不到有效值。
- TopicId *string `json:"TopicId,omitempty" name:"TopicId"`
-
- // 告警渠道的名称
- // 注意:此字段可能返回 null,表示取不到有效值。
- TopicName *string `json:"TopicName,omitempty" name:"TopicName"`
- }
-
- type PrometheusAlertRule struct {
-
- // 规则名称
- Name *string `json:"Name,omitempty" name:"Name"`
-
- // prometheus语句
- Rule *string `json:"Rule,omitempty" name:"Rule"`
-
- // 额外标签
- Labels []*Label `json:"Labels,omitempty" name:"Labels"`
-
- // 告警发送模板
- Template *string `json:"Template,omitempty" name:"Template"`
-
- // 持续时间
- For *string `json:"For,omitempty" name:"For"`
-
- // 该条规则的描述信息
- // 注意:此字段可能返回 null,表示取不到有效值。
- Describe *string `json:"Describe,omitempty" name:"Describe"`
-
- // 参考prometheus rule中的annotations
- // 注意:此字段可能返回 null,表示取不到有效值。
- Annotations []*Label `json:"Annotations,omitempty" name:"Annotations"`
-
- // 告警规则状态
- // 注意:此字段可能返回 null,表示取不到有效值。
- RuleState *int64 `json:"RuleState,omitempty" name:"RuleState"`
- }
-
- type PrometheusAlertRuleDetail struct {
-
- // 规则名称
- Name *string `json:"Name,omitempty" name:"Name"`
-
- // 规则列表
- Rules []*PrometheusAlertRule `json:"Rules,omitempty" name:"Rules"`
-
- // 最后修改时间
- UpdatedAt *string `json:"UpdatedAt,omitempty" name:"UpdatedAt"`
-
- // 告警渠道
- Notification *PrometheusNotification `json:"Notification,omitempty" name:"Notification"`
-
- // 告警 id
- Id *string `json:"Id,omitempty" name:"Id"`
-
- // 如果该告警来至模板下发,则TemplateId为模板id
- // 注意:此字段可能返回 null,表示取不到有效值。
- TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"`
-
- // 计算周期
- // 注意:此字段可能返回 null,表示取不到有效值。
- Interval *string `json:"Interval,omitempty" name:"Interval"`
- }
-
- type PrometheusConfigItem struct {
-
- // 名称
- Name *string `json:"Name,omitempty" name:"Name"`
-
- // 配置内容
- Config *string `json:"Config,omitempty" name:"Config"`
-
- // 用于出参,如果该配置来至模板,则为模板id
- // 注意:此字段可能返回 null,表示取不到有效值。
- TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"`
- }
-
- type PrometheusGrafanaInfo struct {
-
- // 是否启用
- Enabled *bool `json:"Enabled,omitempty" name:"Enabled"`
-
- // 域名,只有开启外网访问才有效果
- Domain *string `json:"Domain,omitempty" name:"Domain"`
-
- // 内网地址,或者外网地址
- Address *string `json:"Address,omitempty" name:"Address"`
-
- // 是否开启了外网访问
- // close = 未开启外网访问
- // opening = 正在开启外网访问
- // open = 已开启外网访问
- Internet *string `json:"Internet,omitempty" name:"Internet"`
-
- // grafana管理员用户名
- AdminUser *string `json:"AdminUser,omitempty" name:"AdminUser"`
- }
-
- type PrometheusInstanceOverview struct {
-
- // 实例id
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
-
- // 实例名称
- Name *string `json:"Name,omitempty" name:"Name"`
-
- // 实例vpcId
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
-
- // 实例子网Id
- SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
-
- // 实例当前的状态
- // prepare_env = 初始化环境
- // install_suit = 安装组件
- // running = 运行中
- Status *string `json:"Status,omitempty" name:"Status"`
-
- // COS桶存储
- COSBucket *string `json:"COSBucket,omitempty" name:"COSBucket"`
-
- // grafana默认地址,如果开启外网访问得为域名,否则为内网地址
- // 注意:此字段可能返回 null,表示取不到有效值。
- GrafanaURL *string `json:"GrafanaURL,omitempty" name:"GrafanaURL"`
-
- // 关联集群总数
- // 注意:此字段可能返回 null,表示取不到有效值。
- BoundTotal *uint64 `json:"BoundTotal,omitempty" name:"BoundTotal"`
-
- // 运行正常的集群数
- // 注意:此字段可能返回 null,表示取不到有效值。
- BoundNormal *uint64 `json:"BoundNormal,omitempty" name:"BoundNormal"`
- }
-
- type PrometheusJobTargets struct {
-
- // 该Job的targets列表
- Targets []*PrometheusTarget `json:"Targets,omitempty" name:"Targets"`
-
- // job的名称
- JobName *string `json:"JobName,omitempty" name:"JobName"`
-
- // targets总数
- Total *uint64 `json:"Total,omitempty" name:"Total"`
-
- // 健康的target总数
- Up *uint64 `json:"Up,omitempty" name:"Up"`
- }
-
- type PrometheusNotification struct {
-
- // 是否启用
- Enabled *bool `json:"Enabled,omitempty" name:"Enabled"`
-
- // 收敛时间
- RepeatInterval *string `json:"RepeatInterval,omitempty" name:"RepeatInterval"`
-
- // 生效起始时间
- TimeRangeStart *string `json:"TimeRangeStart,omitempty" name:"TimeRangeStart"`
-
- // 生效结束时间
- TimeRangeEnd *string `json:"TimeRangeEnd,omitempty" name:"TimeRangeEnd"`
-
- // 告警通知方式。目前有SMS、EMAIL、CALL、WECHAT方式。
- // 分别代表:短信、邮件、电话、微信
- // 注意:此字段可能返回 null,表示取不到有效值。
- NotifyWay []*string `json:"NotifyWay,omitempty" name:"NotifyWay"`
-
- // 告警接收组(用户组)
- // 注意:此字段可能返回 null,表示取不到有效值。
- ReceiverGroups []*uint64 `json:"ReceiverGroups,omitempty" name:"ReceiverGroups"`
-
- // 电话告警顺序。
- // 注:NotifyWay选择CALL,采用该参数。
- // 注意:此字段可能返回 null,表示取不到有效值。
- PhoneNotifyOrder []*uint64 `json:"PhoneNotifyOrder,omitempty" name:"PhoneNotifyOrder"`
-
- // 电话告警次数。
- // 注:NotifyWay选择CALL,采用该参数。
- // 注意:此字段可能返回 null,表示取不到有效值。
- PhoneCircleTimes *int64 `json:"PhoneCircleTimes,omitempty" name:"PhoneCircleTimes"`
-
- // 电话告警轮内间隔。单位:秒
- // 注:NotifyWay选择CALL,采用该参数。
- // 注意:此字段可能返回 null,表示取不到有效值。
- PhoneInnerInterval *int64 `json:"PhoneInnerInterval,omitempty" name:"PhoneInnerInterval"`
-
- // 电话告警轮外间隔。单位:秒
- // 注:NotifyWay选择CALL,采用该参数。
- // 注意:此字段可能返回 null,表示取不到有效值。
- PhoneCircleInterval *int64 `json:"PhoneCircleInterval,omitempty" name:"PhoneCircleInterval"`
-
- // 电话告警触达通知
- // 注:NotifyWay选择CALL,采用该参数。
- // 注意:此字段可能返回 null,表示取不到有效值。
- PhoneArriveNotice *bool `json:"PhoneArriveNotice,omitempty" name:"PhoneArriveNotice"`
-
- // 通道类型,默认为amp,支持以下
- // amp
- // webhook
- // 注意:此字段可能返回 null,表示取不到有效值。
- Type *string `json:"Type,omitempty" name:"Type"`
-
- // 如果Type为webhook, 则该字段为必填项
- // 注意:此字段可能返回 null,表示取不到有效值。
- WebHook *string `json:"WebHook,omitempty" name:"WebHook"`
- }
-
- type PrometheusTarget struct {
-
- // 抓取目标的URL
- Url *string `json:"Url,omitempty" name:"Url"`
-
- // target当前状态,当前支持
- // up = 健康
- // down = 不健康
- // unknown = 未知
- State *string `json:"State,omitempty" name:"State"`
-
- // target的元label
- Labels []*Label `json:"Labels,omitempty" name:"Labels"`
-
- // 上一次抓取的时间
- LastScrape *string `json:"LastScrape,omitempty" name:"LastScrape"`
-
- // 上一次抓取的耗时,单位是s
- ScrapeDuration *float64 `json:"ScrapeDuration,omitempty" name:"ScrapeDuration"`
-
- // 上一次抓取如果错误,该字段存储错误信息
- Error *string `json:"Error,omitempty" name:"Error"`
- }
-
- type PrometheusTemplate struct {
-
- // 模板名称
- Name *string `json:"Name,omitempty" name:"Name"`
-
- // 模板维度,支持以下类型
- // instance 实例级别
- // cluster 集群级别
- Level *string `json:"Level,omitempty" name:"Level"`
-
- // 模板描述
- // 注意:此字段可能返回 null,表示取不到有效值。
- Describe *string `json:"Describe,omitempty" name:"Describe"`
-
- // 当Level为instance时有效,
- // 模板中的告警配置列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- AlertRules []*PrometheusAlertRule `json:"AlertRules,omitempty" name:"AlertRules"`
-
- // 当Level为instance时有效,
- // 模板中的聚合规则列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- RecordRules []*PrometheusConfigItem `json:"RecordRules,omitempty" name:"RecordRules"`
-
- // 当Level为cluster时有效,
- // 模板中的ServiceMonitor规则列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- ServiceMonitors []*PrometheusConfigItem `json:"ServiceMonitors,omitempty" name:"ServiceMonitors"`
-
- // 当Level为cluster时有效,
- // 模板中的PodMonitors规则列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- PodMonitors []*PrometheusConfigItem `json:"PodMonitors,omitempty" name:"PodMonitors"`
-
- // 当Level为cluster时有效,
- // 模板中的RawJobs规则列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- RawJobs []*PrometheusConfigItem `json:"RawJobs,omitempty" name:"RawJobs"`
-
- // 模板的ID, 用于出参
- // 注意:此字段可能返回 null,表示取不到有效值。
- TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"`
-
- // 最近更新时间,用于出参
- // 注意:此字段可能返回 null,表示取不到有效值。
- UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
-
- // 当前版本,用于出参
- // 注意:此字段可能返回 null,表示取不到有效值。
- Version *string `json:"Version,omitempty" name:"Version"`
-
- // 是否系统提供的默认模板,用于出参
- // 注意:此字段可能返回 null,表示取不到有效值。
- IsDefault *bool `json:"IsDefault,omitempty" name:"IsDefault"`
-
- // 当Level为instance时有效,
- // 模板中的告警配置列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- AlertDetailRules []*PrometheusAlertRuleDetail `json:"AlertDetailRules,omitempty" name:"AlertDetailRules"`
- }
-
- type PrometheusTemplateModify struct {
-
- // 修改名称
- Name *string `json:"Name,omitempty" name:"Name"`
-
- // 修改描述
- // 注意:此字段可能返回 null,表示取不到有效值。
- Describe *string `json:"Describe,omitempty" name:"Describe"`
-
- // 修改内容,只有当模板类型是Alert时生效
- // 注意:此字段可能返回 null,表示取不到有效值。
- AlertRules []*PrometheusAlertRule `json:"AlertRules,omitempty" name:"AlertRules"`
-
- // 当Level为instance时有效,
- // 模板中的聚合规则列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- RecordRules []*PrometheusConfigItem `json:"RecordRules,omitempty" name:"RecordRules"`
-
- // 当Level为cluster时有效,
- // 模板中的ServiceMonitor规则列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- ServiceMonitors []*PrometheusConfigItem `json:"ServiceMonitors,omitempty" name:"ServiceMonitors"`
-
- // 当Level为cluster时有效,
- // 模板中的PodMonitors规则列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- PodMonitors []*PrometheusConfigItem `json:"PodMonitors,omitempty" name:"PodMonitors"`
-
- // 当Level为cluster时有效,
- // 模板中的RawJobs规则列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- RawJobs []*PrometheusConfigItem `json:"RawJobs,omitempty" name:"RawJobs"`
-
- // 修改内容,只有当模板类型是Alert时生效
- // 注意:此字段可能返回 null,表示取不到有效值。
- AlertDetailRules []*PrometheusAlertRuleDetail `json:"AlertDetailRules,omitempty" name:"AlertDetailRules"`
- }
-
- type PrometheusTemplateSyncTarget struct {
-
- // 目标所在地域
- Region *string `json:"Region,omitempty" name:"Region"`
-
- // 目标实例
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
-
- // 集群id,只有当采集模板的Level为cluster的时候需要
- // 注意:此字段可能返回 null,表示取不到有效值。
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 最后一次同步时间, 用于出参
- // 注意:此字段可能返回 null,表示取不到有效值。
- SyncTime *string `json:"SyncTime,omitempty" name:"SyncTime"`
-
- // 当前使用的模板版本,用于出参
- // 注意:此字段可能返回 null,表示取不到有效值。
- Version *string `json:"Version,omitempty" name:"Version"`
-
- // 集群类型,只有当采集模板的Level为cluster的时候需要
- // 注意:此字段可能返回 null,表示取不到有效值。
- ClusterType *string `json:"ClusterType,omitempty" name:"ClusterType"`
-
- // 用于出参,实例名称
- // 注意:此字段可能返回 null,表示取不到有效值。
- InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
-
- // 用于出参,集群名称
- // 注意:此字段可能返回 null,表示取不到有效值。
- ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"`
- }
-
- type RegionInstance struct {
-
- // 地域名称
- // 注意:此字段可能返回 null,表示取不到有效值。
- RegionName *string `json:"RegionName,omitempty" name:"RegionName"`
-
- // 地域ID
- // 注意:此字段可能返回 null,表示取不到有效值。
- RegionId *int64 `json:"RegionId,omitempty" name:"RegionId"`
-
- // 地域状态
- // 注意:此字段可能返回 null,表示取不到有效值。
- Status *string `json:"Status,omitempty" name:"Status"`
-
- // 地域特性开关(按照JSON的形式返回所有属性)
- // 注意:此字段可能返回 null,表示取不到有效值。
- FeatureGates *string `json:"FeatureGates,omitempty" name:"FeatureGates"`
-
- // 地域简称
- // 注意:此字段可能返回 null,表示取不到有效值。
- Alias *string `json:"Alias,omitempty" name:"Alias"`
-
- // 地域白名单
- // 注意:此字段可能返回 null,表示取不到有效值。
- Remark *string `json:"Remark,omitempty" name:"Remark"`
- }
-
- type RemoveNodeFromNodePoolRequest struct {
- *tchttp.BaseRequest
-
- // 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 节点池id
- NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"`
-
- // 节点id列表,一次最多支持100台
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
- }
-
- func (r *RemoveNodeFromNodePoolRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *RemoveNodeFromNodePoolRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "NodePoolId")
- delete(f, "InstanceIds")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RemoveNodeFromNodePoolRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type RemoveNodeFromNodePoolResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *RemoveNodeFromNodePoolResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *RemoveNodeFromNodePoolResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ResourceDeleteOption struct {
-
- // 资源类型,例如CBS
- ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"`
-
- // 集群删除时资源的删除模式:terminate(销毁),retain (保留)
- DeleteMode *string `json:"DeleteMode,omitempty" name:"DeleteMode"`
- }
-
- type RestartEKSContainerInstancesRequest struct {
- *tchttp.BaseRequest
-
- // EKS instance ids
- EksCiIds []*string `json:"EksCiIds,omitempty" name:"EksCiIds"`
- }
-
- func (r *RestartEKSContainerInstancesRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *RestartEKSContainerInstancesRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "EksCiIds")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RestartEKSContainerInstancesRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type RestartEKSContainerInstancesResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *RestartEKSContainerInstancesResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *RestartEKSContainerInstancesResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type RouteInfo struct {
-
- // 路由表名称。
- RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"`
-
- // 目的端CIDR。
- DestinationCidrBlock *string `json:"DestinationCidrBlock,omitempty" name:"DestinationCidrBlock"`
-
- // 下一跳地址。
- GatewayIp *string `json:"GatewayIp,omitempty" name:"GatewayIp"`
- }
-
- type RouteTableConflict struct {
-
- // 路由表类型。
- RouteTableType *string `json:"RouteTableType,omitempty" name:"RouteTableType"`
-
- // 路由表CIDR。
- // 注意:此字段可能返回 null,表示取不到有效值。
- RouteTableCidrBlock *string `json:"RouteTableCidrBlock,omitempty" name:"RouteTableCidrBlock"`
-
- // 路由表名称。
- // 注意:此字段可能返回 null,表示取不到有效值。
- RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"`
-
- // 路由表ID。
- // 注意:此字段可能返回 null,表示取不到有效值。
- RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"`
- }
-
- type RouteTableInfo struct {
-
- // 路由表名称。
- RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"`
-
- // 路由表CIDR。
- RouteTableCidrBlock *string `json:"RouteTableCidrBlock,omitempty" name:"RouteTableCidrBlock"`
-
- // VPC实例ID。
- VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
- }
-
- type RunAutomationServiceEnabled struct {
-
- // 是否开启云自动化助手。取值范围:<br><li>TRUE:表示开启云自动化助手服务<br><li>FALSE:表示不开启云自动化助手服务<br><br>默认取值:FALSE。
- Enabled *bool `json:"Enabled,omitempty" name:"Enabled"`
- }
-
- type RunInstancesForNode struct {
-
- // 节点角色,取值:MASTER_ETCD, WORKER。MASTER_ETCD只有在创建 INDEPENDENT_CLUSTER 独立集群时需要指定。MASTER_ETCD节点数量为3~7,建议为奇数。MASTER_ETCD节点最小配置为4C8G。
- NodeRole *string `json:"NodeRole,omitempty" name:"NodeRole"`
-
- // CVM创建透传参数,json化字符串格式,详见[CVM创建实例](https://cloud.tencent.com/document/product/213/15730)接口,传入公共参数外的其他参数即可,其中ImageId会替换为TKE集群OS对应的镜像。
- RunInstancesPara []*string `json:"RunInstancesPara,omitempty" name:"RunInstancesPara"`
-
- // 节点高级设置,该参数会覆盖集群级别设置的InstanceAdvancedSettings,和上边的RunInstancesPara按照顺序一一对应(当前只对节点自定义参数ExtraArgs生效)。
- InstanceAdvancedSettingsOverrides []*InstanceAdvancedSettings `json:"InstanceAdvancedSettingsOverrides,omitempty" name:"InstanceAdvancedSettingsOverrides"`
- }
-
- type RunMonitorServiceEnabled struct {
-
- // 是否开启[云监控](/document/product/248)服务。取值范围:<br><li>TRUE:表示开启云监控服务<br><li>FALSE:表示不开启云监控服务<br><br>默认取值:TRUE。
- Enabled *bool `json:"Enabled,omitempty" name:"Enabled"`
- }
-
- type RunSecurityServiceEnabled struct {
-
- // 是否开启[云安全](/document/product/296)服务。取值范围:<br><li>TRUE:表示开启云安全服务<br><li>FALSE:表示不开启云安全服务<br><br>默认取值:TRUE。
- Enabled *bool `json:"Enabled,omitempty" name:"Enabled"`
- }
-
- type ScaleInClusterMasterRequest struct {
- *tchttp.BaseRequest
-
- // 集群实例ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // master缩容选项
- ScaleInMasters []*ScaleInMaster `json:"ScaleInMasters,omitempty" name:"ScaleInMasters"`
- }
-
- func (r *ScaleInClusterMasterRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ScaleInClusterMasterRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "ScaleInMasters")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ScaleInClusterMasterRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ScaleInClusterMasterResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *ScaleInClusterMasterResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ScaleInClusterMasterResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ScaleInMaster struct {
-
- // 实例ID
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
-
- // 缩容的实例角色:MASTER,ETCD,MASTER_ETCD
- NodeRole *string `json:"NodeRole,omitempty" name:"NodeRole"`
-
- // 实例的保留模式
- InstanceDeleteMode *string `json:"InstanceDeleteMode,omitempty" name:"InstanceDeleteMode"`
- }
-
- type ScaleOutClusterMasterRequest struct {
- *tchttp.BaseRequest
-
- // 集群实例ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 新建节点参数
- RunInstancesForNode []*RunInstancesForNode `json:"RunInstancesForNode,omitempty" name:"RunInstancesForNode"`
-
- // 添加已有节点相关参数
- ExistedInstancesForNode []*ExistedInstancesForNode `json:"ExistedInstancesForNode,omitempty" name:"ExistedInstancesForNode"`
-
- // 实例高级设置
- InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"`
-
- // 集群master组件自定义参数
- ExtraArgs *ClusterExtraArgs `json:"ExtraArgs,omitempty" name:"ExtraArgs"`
- }
-
- func (r *ScaleOutClusterMasterRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ScaleOutClusterMasterRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "RunInstancesForNode")
- delete(f, "ExistedInstancesForNode")
- delete(f, "InstanceAdvancedSettings")
- delete(f, "ExtraArgs")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ScaleOutClusterMasterRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type ScaleOutClusterMasterResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *ScaleOutClusterMasterResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *ScaleOutClusterMasterResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type SecurityContext struct {
-
- // 安全能力清单
- // 注意:此字段可能返回 null,表示取不到有效值。
- Capabilities *Capabilities `json:"Capabilities,omitempty" name:"Capabilities"`
- }
-
- type ServiceAccountAuthenticationOptions struct {
-
- // service-account-issuer
- // 注意:此字段可能返回 null,表示取不到有效值。
- Issuer *string `json:"Issuer,omitempty" name:"Issuer"`
-
- // service-account-jwks-uri
- // 注意:此字段可能返回 null,表示取不到有效值。
- JWKSURI *string `json:"JWKSURI,omitempty" name:"JWKSURI"`
-
- // 如果为true,则会自动创建允许匿名用户访问'/.well-known/openid-configuration'和/openid/v1/jwks的rbac规则
- // 注意:此字段可能返回 null,表示取不到有效值。
- AutoCreateDiscoveryAnonymousAuth *bool `json:"AutoCreateDiscoveryAnonymousAuth,omitempty" name:"AutoCreateDiscoveryAnonymousAuth"`
- }
-
- type SetNodePoolNodeProtectionRequest struct {
- *tchttp.BaseRequest
-
- // 集群id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 节点池id
- NodePoolId *string `json:"NodePoolId,omitempty" name:"NodePoolId"`
-
- // 节点id
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
-
- // 节点是否需要移出保护
- ProtectedFromScaleIn *bool `json:"ProtectedFromScaleIn,omitempty" name:"ProtectedFromScaleIn"`
- }
-
- func (r *SetNodePoolNodeProtectionRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *SetNodePoolNodeProtectionRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "NodePoolId")
- delete(f, "InstanceIds")
- delete(f, "ProtectedFromScaleIn")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SetNodePoolNodeProtectionRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type SetNodePoolNodeProtectionResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 成功设置的节点id
- // 注意:此字段可能返回 null,表示取不到有效值。
- SucceedInstanceIds []*string `json:"SucceedInstanceIds,omitempty" name:"SucceedInstanceIds"`
-
- // 没有成功设置的节点id
- // 注意:此字段可能返回 null,表示取不到有效值。
- FailedInstanceIds []*string `json:"FailedInstanceIds,omitempty" name:"FailedInstanceIds"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *SetNodePoolNodeProtectionResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *SetNodePoolNodeProtectionResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type SyncPrometheusTemplateRequest struct {
- *tchttp.BaseRequest
-
- // 实例id
- TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"`
-
- // 同步目标
- Targets []*PrometheusTemplateSyncTarget `json:"Targets,omitempty" name:"Targets"`
- }
-
- func (r *SyncPrometheusTemplateRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *SyncPrometheusTemplateRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "TemplateId")
- delete(f, "Targets")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SyncPrometheusTemplateRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type SyncPrometheusTemplateResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *SyncPrometheusTemplateResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *SyncPrometheusTemplateResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type Tag struct {
-
- // 标签键
- Key *string `json:"Key,omitempty" name:"Key"`
-
- // 标签值
- Value *string `json:"Value,omitempty" name:"Value"`
- }
-
- type TagSpecification struct {
-
- // 标签绑定的资源类型,当前支持类型:"cluster"
- // 注意:此字段可能返回 null,表示取不到有效值。
- ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"`
-
- // 标签对列表
- // 注意:此字段可能返回 null,表示取不到有效值。
- Tags []*Tag `json:"Tags,omitempty" name:"Tags"`
- }
-
- type Taint struct {
-
- // Key
- Key *string `json:"Key,omitempty" name:"Key"`
-
- // Value
- Value *string `json:"Value,omitempty" name:"Value"`
-
- // Effect
- Effect *string `json:"Effect,omitempty" name:"Effect"`
- }
-
- type TaskStepInfo struct {
-
- // 步骤名称
- Step *string `json:"Step,omitempty" name:"Step"`
-
- // 生命周期
- // pending : 步骤未开始
- // running: 步骤执行中
- // success: 步骤成功完成
- // failed: 步骤失败
- LifeState *string `json:"LifeState,omitempty" name:"LifeState"`
-
- // 步骤开始时间
- // 注意:此字段可能返回 null,表示取不到有效值。
- StartAt *string `json:"StartAt,omitempty" name:"StartAt"`
-
- // 步骤结束时间
- // 注意:此字段可能返回 null,表示取不到有效值。
- EndAt *string `json:"EndAt,omitempty" name:"EndAt"`
-
- // 若步骤生命周期为failed,则此字段显示错误信息
- // 注意:此字段可能返回 null,表示取不到有效值。
- FailedMsg *string `json:"FailedMsg,omitempty" name:"FailedMsg"`
- }
-
- type TcpSocket struct {
-
- // TcpSocket检测的端口
- // 注意:此字段可能返回 null,表示取不到有效值。
- Port *uint64 `json:"Port,omitempty" name:"Port"`
- }
-
- type UpdateClusterVersionRequest struct {
- *tchttp.BaseRequest
-
- // 集群 Id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 需要升级到的版本
- DstVersion *string `json:"DstVersion,omitempty" name:"DstVersion"`
-
- // 集群自定义参数
- ExtraArgs *ClusterExtraArgs `json:"ExtraArgs,omitempty" name:"ExtraArgs"`
-
- // 可容忍的最大不可用pod数目
- MaxNotReadyPercent *float64 `json:"MaxNotReadyPercent,omitempty" name:"MaxNotReadyPercent"`
-
- // 是否跳过预检查阶段
- SkipPreCheck *bool `json:"SkipPreCheck,omitempty" name:"SkipPreCheck"`
- }
-
- func (r *UpdateClusterVersionRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *UpdateClusterVersionRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "DstVersion")
- delete(f, "ExtraArgs")
- delete(f, "MaxNotReadyPercent")
- delete(f, "SkipPreCheck")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateClusterVersionRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type UpdateClusterVersionResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *UpdateClusterVersionResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *UpdateClusterVersionResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type UpdateEKSClusterRequest struct {
- *tchttp.BaseRequest
-
- // 弹性集群Id
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // 弹性集群名称
- ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"`
-
- // 弹性集群描述信息
- ClusterDesc *string `json:"ClusterDesc,omitempty" name:"ClusterDesc"`
-
- // 子网Id 列表
- SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds"`
-
- // 弹性容器集群公网访问LB信息
- PublicLB *ClusterPublicLB `json:"PublicLB,omitempty" name:"PublicLB"`
-
- // 弹性容器集群内网访问LB信息
- InternalLB *ClusterInternalLB `json:"InternalLB,omitempty" name:"InternalLB"`
-
- // Service 子网Id
- ServiceSubnetId *string `json:"ServiceSubnetId,omitempty" name:"ServiceSubnetId"`
-
- // 集群自定义的dns 服务器信息
- DnsServers []*DnsServerConf `json:"DnsServers,omitempty" name:"DnsServers"`
-
- // 是否清空自定义dns 服务器设置。为1 表示 是。其他表示 否。
- ClearDnsServer *string `json:"ClearDnsServer,omitempty" name:"ClearDnsServer"`
-
- // 将来删除集群时是否要删除cbs。默认为 FALSE
- NeedDeleteCbs *bool `json:"NeedDeleteCbs,omitempty" name:"NeedDeleteCbs"`
-
- // 标记是否是新的内外网。默认为false
- ProxyLB *bool `json:"ProxyLB,omitempty" name:"ProxyLB"`
-
- // 扩展参数。须是map[string]string 的json 格式。
- ExtraParam *string `json:"ExtraParam,omitempty" name:"ExtraParam"`
- }
-
- func (r *UpdateEKSClusterRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *UpdateEKSClusterRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "ClusterName")
- delete(f, "ClusterDesc")
- delete(f, "SubnetIds")
- delete(f, "PublicLB")
- delete(f, "InternalLB")
- delete(f, "ServiceSubnetId")
- delete(f, "DnsServers")
- delete(f, "ClearDnsServer")
- delete(f, "NeedDeleteCbs")
- delete(f, "ProxyLB")
- delete(f, "ExtraParam")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateEKSClusterRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type UpdateEKSClusterResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *UpdateEKSClusterResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *UpdateEKSClusterResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type UpdateEKSContainerInstanceRequest struct {
- /*********PCM param************/
- RequestSource string `position:"Query" name:"RequestSource"`
- ProviderId int32 `position:"Query" name:"ProviderId"`
- AccountName string `position:"Query" name:"AccountName"`
- Namespace string `position:"Query" name:"Namespace"`
- ContainerGroupName string `position:"Query" name:"ContainerGroupName"`
- RegionId string `position:"Query" name:"RegionId"`
- /*********PCM param************/
-
- *tchttp.BaseRequest
-
- // 容器实例 ID
- EksCiId *string `json:"EksCiId,omitempty" name:"EksCiId"`
-
- // 实例重启策略: Always(总是重启)、Never(从不重启)、OnFailure(失败时重启)
- RestartPolicy *string `json:"RestartPolicy,omitempty" name:"RestartPolicy"`
-
- // 数据卷,包含NfsVolume数组和CbsVolume数组
- EksCiVolume *EksCiVolume `json:"EksCiVolume,omitempty" name:"EksCiVolume"`
-
- // 容器组
- Containers []*Container `json:"Containers,omitempty" name:"Containers"`
-
- // Init 容器组
- InitContainers []*Container `json:"InitContainers,omitempty" name:"InitContainers"`
-
- // 容器实例名称
- Name *string `json:"Name,omitempty" name:"Name"`
-
- // 镜像仓库凭证数组
- ImageRegistryCredentials []*ImageRegistryCredential `json:"ImageRegistryCredentials,omitempty" name:"ImageRegistryCredentials"`
- }
-
- func (r *UpdateEKSContainerInstanceRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *UpdateEKSContainerInstanceRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "EksCiId")
- delete(f, "RestartPolicy")
- delete(f, "EksCiVolume")
- delete(f, "Containers")
- delete(f, "InitContainers")
- delete(f, "Name")
- delete(f, "ImageRegistryCredentials")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateEKSContainerInstanceRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type UpdateEKSContainerInstanceResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 容器实例 ID
- // 注意:此字段可能返回 null,表示取不到有效值。
- EksCiId *string `json:"EksCiId,omitempty" name:"EksCiId"`
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *UpdateEKSContainerInstanceResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *UpdateEKSContainerInstanceResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type UpdateImageCacheRequest struct {
- *tchttp.BaseRequest
-
- // 镜像缓存Id
- ImageCacheId *string `json:"ImageCacheId,omitempty" name:"ImageCacheId"`
-
- // 镜像缓存名称
- ImageCacheName *string `json:"ImageCacheName,omitempty" name:"ImageCacheName"`
- }
-
- func (r *UpdateImageCacheRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *UpdateImageCacheRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ImageCacheId")
- delete(f, "ImageCacheName")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateImageCacheRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type UpdateImageCacheResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *UpdateImageCacheResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *UpdateImageCacheResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type UpgradeAbleInstancesItem struct {
-
- // 节点Id
- InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
-
- // 节点的当前版本
- Version *string `json:"Version,omitempty" name:"Version"`
-
- // 当前版本的最新小版本
- // 注意:此字段可能返回 null,表示取不到有效值。
- LatestVersion *string `json:"LatestVersion,omitempty" name:"LatestVersion"`
- }
-
- type UpgradeClusterInstancesRequest struct {
- *tchttp.BaseRequest
-
- // 集群ID
- ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`
-
- // create 表示开始一次升级任务
- // pause 表示停止任务
- // resume表示继续任务
- // abort表示终止任务
- Operation *string `json:"Operation,omitempty" name:"Operation"`
-
- // 升级类型,只有Operation是create需要设置
- // reset 大版本重装升级
- // hot 小版本热升级
- // major 大版本原地升级
- UpgradeType *string `json:"UpgradeType,omitempty" name:"UpgradeType"`
-
- // 需要升级的节点列表
- InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"`
-
- // 当节点重新加入集群时候所使用的参数,参考添加已有节点接口
- ResetParam *UpgradeNodeResetParam `json:"ResetParam,omitempty" name:"ResetParam"`
-
- // 是否忽略节点升级前检查
- SkipPreCheck *bool `json:"SkipPreCheck,omitempty" name:"SkipPreCheck"`
-
- // 最大可容忍的不可用Pod比例
- MaxNotReadyPercent *float64 `json:"MaxNotReadyPercent,omitempty" name:"MaxNotReadyPercent"`
- }
-
- func (r *UpgradeClusterInstancesRequest) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *UpgradeClusterInstancesRequest) FromJsonString(s string) error {
- f := make(map[string]interface{})
- if err := json.Unmarshal([]byte(s), &f); err != nil {
- return err
- }
- delete(f, "ClusterId")
- delete(f, "Operation")
- delete(f, "UpgradeType")
- delete(f, "InstanceIds")
- delete(f, "ResetParam")
- delete(f, "SkipPreCheck")
- delete(f, "MaxNotReadyPercent")
- if len(f) > 0 {
- return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpgradeClusterInstancesRequest has unknown keys!", "")
- }
- return json.Unmarshal([]byte(s), &r)
- }
-
- type UpgradeClusterInstancesResponse struct {
- *tchttp.BaseResponse
- Response *struct {
-
- // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
- RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
- } `json:"Response"`
- }
-
- func (r *UpgradeClusterInstancesResponse) ToJsonString() string {
- b, _ := json.Marshal(r)
- return string(b)
- }
-
- // FromJsonString It is highly **NOT** recommended to use this function
- // because it has no param check, nor strict type check
- func (r *UpgradeClusterInstancesResponse) FromJsonString(s string) error {
- return json.Unmarshal([]byte(s), &r)
- }
-
- type UpgradeNodeResetParam struct {
-
- // 实例额外需要设置参数信息
- InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitempty" name:"InstanceAdvancedSettings"`
-
- // 增强服务。通过该参数可以指定是否开启云安全、云监控等服务。若不指定该参数,则默认开启云监控、云安全服务。
- EnhancedService *EnhancedService `json:"EnhancedService,omitempty" name:"EnhancedService"`
-
- // 节点登录信息(目前仅支持使用Password或者单个KeyIds)
- LoginSettings *LoginSettings `json:"LoginSettings,omitempty" name:"LoginSettings"`
-
- // 实例所属安全组。该参数可以通过调用 DescribeSecurityGroups 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。(目前仅支持设置单个sgId)
- SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"`
- }
-
- type VersionInstance struct {
-
- // 版本名称
- // 注意:此字段可能返回 null,表示取不到有效值。
- Name *string `json:"Name,omitempty" name:"Name"`
-
- // 版本信息
- // 注意:此字段可能返回 null,表示取不到有效值。
- Version *string `json:"Version,omitempty" name:"Version"`
-
- // Remark
- // 注意:此字段可能返回 null,表示取不到有效值。
- Remark *string `json:"Remark,omitempty" name:"Remark"`
- }
-
- type VolumeMount struct {
-
- // volume名称
- // 注意:此字段可能返回 null,表示取不到有效值。
- Name *string `json:"Name,omitempty" name:"Name"`
-
- // 挂载路径
- // 注意:此字段可能返回 null,表示取不到有效值。
- MountPath *string `json:"MountPath,omitempty" name:"MountPath"`
-
- // 是否只读
- // 注意:此字段可能返回 null,表示取不到有效值。
- ReadOnly *bool `json:"ReadOnly,omitempty" name:"ReadOnly"`
-
- // 子路径
- // 注意:此字段可能返回 null,表示取不到有效值。
- SubPath *string `json:"SubPath,omitempty" name:"SubPath"`
-
- // 传播挂载方式
- // 注意:此字段可能返回 null,表示取不到有效值。
- MountPropagation *string `json:"MountPropagation,omitempty" name:"MountPropagation"`
-
- // 子路径表达式
- // 注意:此字段可能返回 null,表示取不到有效值。
- SubPathExpr *string `json:"SubPathExpr,omitempty" name:"SubPathExpr"`
- }
|