1 Star 7 Fork 0

tencentcloud/tencentcloud-sdk-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
client.go 127.00 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2024-09-13 04:15 . release v1.0.1002
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011
// 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 v20191018
import (
"context"
"errors"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"
tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile"
)
const APIVersion = "2019-10-18"
type Client struct {
common.Client
}
// Deprecated
func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error) {
cpf := profile.NewClientProfile()
client = &Client{}
client.Init(region).WithSecretId(secretId, secretKey).WithProfile(cpf)
return
}
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error) {
client = &Client{}
client.Init(region).
WithCredential(credential).
WithProfile(clientProfile)
return
}
func NewAddDeviceGroupMembersRequest() (request *AddDeviceGroupMembersRequest) {
request = &AddDeviceGroupMembersRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "AddDeviceGroupMembers")
return
}
func NewAddDeviceGroupMembersResponse() (response *AddDeviceGroupMembersResponse) {
response = &AddDeviceGroupMembersResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// AddDeviceGroupMembers
// 添加资产组成员
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) AddDeviceGroupMembers(request *AddDeviceGroupMembersRequest) (response *AddDeviceGroupMembersResponse, err error) {
return c.AddDeviceGroupMembersWithContext(context.Background(), request)
}
// AddDeviceGroupMembers
// 添加资产组成员
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) AddDeviceGroupMembersWithContext(ctx context.Context, request *AddDeviceGroupMembersRequest) (response *AddDeviceGroupMembersResponse, err error) {
if request == nil {
request = NewAddDeviceGroupMembersRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("AddDeviceGroupMembers require credential")
}
request.SetContext(ctx)
response = NewAddDeviceGroupMembersResponse()
err = c.Send(request, response)
return
}
func NewAddUserGroupMembersRequest() (request *AddUserGroupMembersRequest) {
request = &AddUserGroupMembersRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "AddUserGroupMembers")
return
}
func NewAddUserGroupMembersResponse() (response *AddUserGroupMembersResponse) {
response = &AddUserGroupMembersResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// AddUserGroupMembers
// 添加用户组成员
//
// 可能返回的错误码:
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) AddUserGroupMembers(request *AddUserGroupMembersRequest) (response *AddUserGroupMembersResponse, err error) {
return c.AddUserGroupMembersWithContext(context.Background(), request)
}
// AddUserGroupMembers
// 添加用户组成员
//
// 可能返回的错误码:
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) AddUserGroupMembersWithContext(ctx context.Context, request *AddUserGroupMembersRequest) (response *AddUserGroupMembersResponse, err error) {
if request == nil {
request = NewAddUserGroupMembersRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("AddUserGroupMembers require credential")
}
request.SetContext(ctx)
response = NewAddUserGroupMembersResponse()
err = c.Send(request, response)
return
}
func NewBindDeviceAccountPasswordRequest() (request *BindDeviceAccountPasswordRequest) {
request = &BindDeviceAccountPasswordRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "BindDeviceAccountPassword")
return
}
func NewBindDeviceAccountPasswordResponse() (response *BindDeviceAccountPasswordResponse) {
response = &BindDeviceAccountPasswordResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// BindDeviceAccountPassword
// 绑定主机账号密码
//
// 可能返回的错误码:
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) BindDeviceAccountPassword(request *BindDeviceAccountPasswordRequest) (response *BindDeviceAccountPasswordResponse, err error) {
return c.BindDeviceAccountPasswordWithContext(context.Background(), request)
}
// BindDeviceAccountPassword
// 绑定主机账号密码
//
// 可能返回的错误码:
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) BindDeviceAccountPasswordWithContext(ctx context.Context, request *BindDeviceAccountPasswordRequest) (response *BindDeviceAccountPasswordResponse, err error) {
if request == nil {
request = NewBindDeviceAccountPasswordRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("BindDeviceAccountPassword require credential")
}
request.SetContext(ctx)
response = NewBindDeviceAccountPasswordResponse()
err = c.Send(request, response)
return
}
func NewBindDeviceAccountPrivateKeyRequest() (request *BindDeviceAccountPrivateKeyRequest) {
request = &BindDeviceAccountPrivateKeyRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "BindDeviceAccountPrivateKey")
return
}
func NewBindDeviceAccountPrivateKeyResponse() (response *BindDeviceAccountPrivateKeyResponse) {
response = &BindDeviceAccountPrivateKeyResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// BindDeviceAccountPrivateKey
// 绑定主机账号私钥
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) BindDeviceAccountPrivateKey(request *BindDeviceAccountPrivateKeyRequest) (response *BindDeviceAccountPrivateKeyResponse, err error) {
return c.BindDeviceAccountPrivateKeyWithContext(context.Background(), request)
}
// BindDeviceAccountPrivateKey
// 绑定主机账号私钥
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) BindDeviceAccountPrivateKeyWithContext(ctx context.Context, request *BindDeviceAccountPrivateKeyRequest) (response *BindDeviceAccountPrivateKeyResponse, err error) {
if request == nil {
request = NewBindDeviceAccountPrivateKeyRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("BindDeviceAccountPrivateKey require credential")
}
request.SetContext(ctx)
response = NewBindDeviceAccountPrivateKeyResponse()
err = c.Send(request, response)
return
}
func NewBindDeviceResourceRequest() (request *BindDeviceResourceRequest) {
request = &BindDeviceResourceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "BindDeviceResource")
return
}
func NewBindDeviceResourceResponse() (response *BindDeviceResourceResponse) {
response = &BindDeviceResourceResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// BindDeviceResource
// 修改资产绑定的堡垒机服务
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// RESOURCESSOLDOUT = "ResourcesSoldOut"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) BindDeviceResource(request *BindDeviceResourceRequest) (response *BindDeviceResourceResponse, err error) {
return c.BindDeviceResourceWithContext(context.Background(), request)
}
// BindDeviceResource
// 修改资产绑定的堡垒机服务
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// RESOURCESSOLDOUT = "ResourcesSoldOut"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) BindDeviceResourceWithContext(ctx context.Context, request *BindDeviceResourceRequest) (response *BindDeviceResourceResponse, err error) {
if request == nil {
request = NewBindDeviceResourceRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("BindDeviceResource require credential")
}
request.SetContext(ctx)
response = NewBindDeviceResourceResponse()
err = c.Send(request, response)
return
}
func NewCreateAclRequest() (request *CreateAclRequest) {
request = &CreateAclRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "CreateAcl")
return
}
func NewCreateAclResponse() (response *CreateAclResponse) {
response = &CreateAclResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateAcl
// 新建访问权限
//
// 可能返回的错误码:
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) CreateAcl(request *CreateAclRequest) (response *CreateAclResponse, err error) {
return c.CreateAclWithContext(context.Background(), request)
}
// CreateAcl
// 新建访问权限
//
// 可能返回的错误码:
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) CreateAclWithContext(ctx context.Context, request *CreateAclRequest) (response *CreateAclResponse, err error) {
if request == nil {
request = NewCreateAclRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateAcl require credential")
}
request.SetContext(ctx)
response = NewCreateAclResponse()
err = c.Send(request, response)
return
}
func NewCreateAssetSyncJobRequest() (request *CreateAssetSyncJobRequest) {
request = &CreateAssetSyncJobRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "CreateAssetSyncJob")
return
}
func NewCreateAssetSyncJobResponse() (response *CreateAssetSyncJobResponse) {
response = &CreateAssetSyncJobResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateAssetSyncJob
// 创建手工资产同步任务
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_AUTHFAILED = "FailedOperation.AuthFailed"
// FAILEDOPERATION_CONNECTIONFAILED = "FailedOperation.ConnectionFailed"
// FAILEDOPERATION_TOOFREQUENT = "FailedOperation.TooFrequent"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINUSE = "ResourceInUse"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) CreateAssetSyncJob(request *CreateAssetSyncJobRequest) (response *CreateAssetSyncJobResponse, err error) {
return c.CreateAssetSyncJobWithContext(context.Background(), request)
}
// CreateAssetSyncJob
// 创建手工资产同步任务
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_AUTHFAILED = "FailedOperation.AuthFailed"
// FAILEDOPERATION_CONNECTIONFAILED = "FailedOperation.ConnectionFailed"
// FAILEDOPERATION_TOOFREQUENT = "FailedOperation.TooFrequent"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINUSE = "ResourceInUse"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) CreateAssetSyncJobWithContext(ctx context.Context, request *CreateAssetSyncJobRequest) (response *CreateAssetSyncJobResponse, err error) {
if request == nil {
request = NewCreateAssetSyncJobRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateAssetSyncJob require credential")
}
request.SetContext(ctx)
response = NewCreateAssetSyncJobResponse()
err = c.Send(request, response)
return
}
func NewCreateChangePwdTaskRequest() (request *CreateChangePwdTaskRequest) {
request = &CreateChangePwdTaskRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "CreateChangePwdTask")
return
}
func NewCreateChangePwdTaskResponse() (response *CreateChangePwdTaskResponse) {
response = &CreateChangePwdTaskResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateChangePwdTask
// 创建修改密码任务
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_AUTHFAILED = "FailedOperation.AuthFailed"
// FAILEDOPERATION_CONNECTIONFAILED = "FailedOperation.ConnectionFailed"
// FAILEDOPERATION_TOOFREQUENT = "FailedOperation.TooFrequent"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINUSE = "ResourceInUse"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) CreateChangePwdTask(request *CreateChangePwdTaskRequest) (response *CreateChangePwdTaskResponse, err error) {
return c.CreateChangePwdTaskWithContext(context.Background(), request)
}
// CreateChangePwdTask
// 创建修改密码任务
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_AUTHFAILED = "FailedOperation.AuthFailed"
// FAILEDOPERATION_CONNECTIONFAILED = "FailedOperation.ConnectionFailed"
// FAILEDOPERATION_TOOFREQUENT = "FailedOperation.TooFrequent"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINUSE = "ResourceInUse"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) CreateChangePwdTaskWithContext(ctx context.Context, request *CreateChangePwdTaskRequest) (response *CreateChangePwdTaskResponse, err error) {
if request == nil {
request = NewCreateChangePwdTaskRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateChangePwdTask require credential")
}
request.SetContext(ctx)
response = NewCreateChangePwdTaskResponse()
err = c.Send(request, response)
return
}
func NewCreateCmdTemplateRequest() (request *CreateCmdTemplateRequest) {
request = &CreateCmdTemplateRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "CreateCmdTemplate")
return
}
func NewCreateCmdTemplateResponse() (response *CreateCmdTemplateResponse) {
response = &CreateCmdTemplateResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateCmdTemplate
// 新建高危命令模板
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINUSE = "ResourceInUse"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// RESOURCESSOLDOUT = "ResourcesSoldOut"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) CreateCmdTemplate(request *CreateCmdTemplateRequest) (response *CreateCmdTemplateResponse, err error) {
return c.CreateCmdTemplateWithContext(context.Background(), request)
}
// CreateCmdTemplate
// 新建高危命令模板
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINUSE = "ResourceInUse"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// RESOURCESSOLDOUT = "ResourcesSoldOut"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) CreateCmdTemplateWithContext(ctx context.Context, request *CreateCmdTemplateRequest) (response *CreateCmdTemplateResponse, err error) {
if request == nil {
request = NewCreateCmdTemplateRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateCmdTemplate require credential")
}
request.SetContext(ctx)
response = NewCreateCmdTemplateResponse()
err = c.Send(request, response)
return
}
func NewCreateDeviceAccountRequest() (request *CreateDeviceAccountRequest) {
request = &CreateDeviceAccountRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "CreateDeviceAccount")
return
}
func NewCreateDeviceAccountResponse() (response *CreateDeviceAccountResponse) {
response = &CreateDeviceAccountResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateDeviceAccount
// 新建主机账号
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) CreateDeviceAccount(request *CreateDeviceAccountRequest) (response *CreateDeviceAccountResponse, err error) {
return c.CreateDeviceAccountWithContext(context.Background(), request)
}
// CreateDeviceAccount
// 新建主机账号
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) CreateDeviceAccountWithContext(ctx context.Context, request *CreateDeviceAccountRequest) (response *CreateDeviceAccountResponse, err error) {
if request == nil {
request = NewCreateDeviceAccountRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateDeviceAccount require credential")
}
request.SetContext(ctx)
response = NewCreateDeviceAccountResponse()
err = c.Send(request, response)
return
}
func NewCreateDeviceGroupRequest() (request *CreateDeviceGroupRequest) {
request = &CreateDeviceGroupRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "CreateDeviceGroup")
return
}
func NewCreateDeviceGroupResponse() (response *CreateDeviceGroupResponse) {
response = &CreateDeviceGroupResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateDeviceGroup
// 新建资产组
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINUSE = "ResourceInUse"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// RESOURCESSOLDOUT = "ResourcesSoldOut"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) CreateDeviceGroup(request *CreateDeviceGroupRequest) (response *CreateDeviceGroupResponse, err error) {
return c.CreateDeviceGroupWithContext(context.Background(), request)
}
// CreateDeviceGroup
// 新建资产组
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINUSE = "ResourceInUse"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// RESOURCESSOLDOUT = "ResourcesSoldOut"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) CreateDeviceGroupWithContext(ctx context.Context, request *CreateDeviceGroupRequest) (response *CreateDeviceGroupResponse, err error) {
if request == nil {
request = NewCreateDeviceGroupRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateDeviceGroup require credential")
}
request.SetContext(ctx)
response = NewCreateDeviceGroupResponse()
err = c.Send(request, response)
return
}
func NewCreateResourceRequest() (request *CreateResourceRequest) {
request = &CreateResourceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "CreateResource")
return
}
func NewCreateResourceResponse() (response *CreateResourceResponse) {
response = &CreateResourceResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateResource
// 创建堡垒机实例
//
// 可能返回的错误码:
// OPERATIONDENIED = "OperationDenied"
func (c *Client) CreateResource(request *CreateResourceRequest) (response *CreateResourceResponse, err error) {
return c.CreateResourceWithContext(context.Background(), request)
}
// CreateResource
// 创建堡垒机实例
//
// 可能返回的错误码:
// OPERATIONDENIED = "OperationDenied"
func (c *Client) CreateResourceWithContext(ctx context.Context, request *CreateResourceRequest) (response *CreateResourceResponse, err error) {
if request == nil {
request = NewCreateResourceRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateResource require credential")
}
request.SetContext(ctx)
response = NewCreateResourceResponse()
err = c.Send(request, response)
return
}
func NewCreateUserRequest() (request *CreateUserRequest) {
request = &CreateUserRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "CreateUser")
return
}
func NewCreateUserResponse() (response *CreateUserResponse) {
response = &CreateUserResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateUser
// 新建用户
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINUSE = "ResourceInUse"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// RESOURCESSOLDOUT = "ResourcesSoldOut"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) CreateUser(request *CreateUserRequest) (response *CreateUserResponse, err error) {
return c.CreateUserWithContext(context.Background(), request)
}
// CreateUser
// 新建用户
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINUSE = "ResourceInUse"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// RESOURCESSOLDOUT = "ResourcesSoldOut"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) CreateUserWithContext(ctx context.Context, request *CreateUserRequest) (response *CreateUserResponse, err error) {
if request == nil {
request = NewCreateUserRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateUser require credential")
}
request.SetContext(ctx)
response = NewCreateUserResponse()
err = c.Send(request, response)
return
}
func NewCreateUserGroupRequest() (request *CreateUserGroupRequest) {
request = &CreateUserGroupRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "CreateUserGroup")
return
}
func NewCreateUserGroupResponse() (response *CreateUserGroupResponse) {
response = &CreateUserGroupResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateUserGroup
// 新建用户组
//
// 可能返回的错误码:
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// RESOURCENOTFOUND = "ResourceNotFound"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) CreateUserGroup(request *CreateUserGroupRequest) (response *CreateUserGroupResponse, err error) {
return c.CreateUserGroupWithContext(context.Background(), request)
}
// CreateUserGroup
// 新建用户组
//
// 可能返回的错误码:
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// RESOURCENOTFOUND = "ResourceNotFound"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) CreateUserGroupWithContext(ctx context.Context, request *CreateUserGroupRequest) (response *CreateUserGroupResponse, err error) {
if request == nil {
request = NewCreateUserGroupRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateUserGroup require credential")
}
request.SetContext(ctx)
response = NewCreateUserGroupResponse()
err = c.Send(request, response)
return
}
func NewDeleteAclsRequest() (request *DeleteAclsRequest) {
request = &DeleteAclsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DeleteAcls")
return
}
func NewDeleteAclsResponse() (response *DeleteAclsResponse) {
response = &DeleteAclsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteAcls
// 删除访问权限
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DeleteAcls(request *DeleteAclsRequest) (response *DeleteAclsResponse, err error) {
return c.DeleteAclsWithContext(context.Background(), request)
}
// DeleteAcls
// 删除访问权限
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DeleteAclsWithContext(ctx context.Context, request *DeleteAclsRequest) (response *DeleteAclsResponse, err error) {
if request == nil {
request = NewDeleteAclsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeleteAcls require credential")
}
request.SetContext(ctx)
response = NewDeleteAclsResponse()
err = c.Send(request, response)
return
}
func NewDeleteChangePwdTaskRequest() (request *DeleteChangePwdTaskRequest) {
request = &DeleteChangePwdTaskRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DeleteChangePwdTask")
return
}
func NewDeleteChangePwdTaskResponse() (response *DeleteChangePwdTaskResponse) {
response = &DeleteChangePwdTaskResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteChangePwdTask
// 删除改密任务
//
// 可能返回的错误码:
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
func (c *Client) DeleteChangePwdTask(request *DeleteChangePwdTaskRequest) (response *DeleteChangePwdTaskResponse, err error) {
return c.DeleteChangePwdTaskWithContext(context.Background(), request)
}
// DeleteChangePwdTask
// 删除改密任务
//
// 可能返回的错误码:
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
func (c *Client) DeleteChangePwdTaskWithContext(ctx context.Context, request *DeleteChangePwdTaskRequest) (response *DeleteChangePwdTaskResponse, err error) {
if request == nil {
request = NewDeleteChangePwdTaskRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeleteChangePwdTask require credential")
}
request.SetContext(ctx)
response = NewDeleteChangePwdTaskResponse()
err = c.Send(request, response)
return
}
func NewDeleteCmdTemplatesRequest() (request *DeleteCmdTemplatesRequest) {
request = &DeleteCmdTemplatesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DeleteCmdTemplates")
return
}
func NewDeleteCmdTemplatesResponse() (response *DeleteCmdTemplatesResponse) {
response = &DeleteCmdTemplatesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteCmdTemplates
// 删除高危命令模板
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DeleteCmdTemplates(request *DeleteCmdTemplatesRequest) (response *DeleteCmdTemplatesResponse, err error) {
return c.DeleteCmdTemplatesWithContext(context.Background(), request)
}
// DeleteCmdTemplates
// 删除高危命令模板
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DeleteCmdTemplatesWithContext(ctx context.Context, request *DeleteCmdTemplatesRequest) (response *DeleteCmdTemplatesResponse, err error) {
if request == nil {
request = NewDeleteCmdTemplatesRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeleteCmdTemplates require credential")
}
request.SetContext(ctx)
response = NewDeleteCmdTemplatesResponse()
err = c.Send(request, response)
return
}
func NewDeleteDeviceAccountsRequest() (request *DeleteDeviceAccountsRequest) {
request = &DeleteDeviceAccountsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DeleteDeviceAccounts")
return
}
func NewDeleteDeviceAccountsResponse() (response *DeleteDeviceAccountsResponse) {
response = &DeleteDeviceAccountsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteDeviceAccounts
// 删除主机账号
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DeleteDeviceAccounts(request *DeleteDeviceAccountsRequest) (response *DeleteDeviceAccountsResponse, err error) {
return c.DeleteDeviceAccountsWithContext(context.Background(), request)
}
// DeleteDeviceAccounts
// 删除主机账号
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DeleteDeviceAccountsWithContext(ctx context.Context, request *DeleteDeviceAccountsRequest) (response *DeleteDeviceAccountsResponse, err error) {
if request == nil {
request = NewDeleteDeviceAccountsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeleteDeviceAccounts require credential")
}
request.SetContext(ctx)
response = NewDeleteDeviceAccountsResponse()
err = c.Send(request, response)
return
}
func NewDeleteDeviceGroupMembersRequest() (request *DeleteDeviceGroupMembersRequest) {
request = &DeleteDeviceGroupMembersRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DeleteDeviceGroupMembers")
return
}
func NewDeleteDeviceGroupMembersResponse() (response *DeleteDeviceGroupMembersResponse) {
response = &DeleteDeviceGroupMembersResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteDeviceGroupMembers
// 删除资产组成员
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DeleteDeviceGroupMembers(request *DeleteDeviceGroupMembersRequest) (response *DeleteDeviceGroupMembersResponse, err error) {
return c.DeleteDeviceGroupMembersWithContext(context.Background(), request)
}
// DeleteDeviceGroupMembers
// 删除资产组成员
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DeleteDeviceGroupMembersWithContext(ctx context.Context, request *DeleteDeviceGroupMembersRequest) (response *DeleteDeviceGroupMembersResponse, err error) {
if request == nil {
request = NewDeleteDeviceGroupMembersRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeleteDeviceGroupMembers require credential")
}
request.SetContext(ctx)
response = NewDeleteDeviceGroupMembersResponse()
err = c.Send(request, response)
return
}
func NewDeleteDeviceGroupsRequest() (request *DeleteDeviceGroupsRequest) {
request = &DeleteDeviceGroupsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DeleteDeviceGroups")
return
}
func NewDeleteDeviceGroupsResponse() (response *DeleteDeviceGroupsResponse) {
response = &DeleteDeviceGroupsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteDeviceGroups
// 删除资产组
//
// 可能返回的错误码:
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DeleteDeviceGroups(request *DeleteDeviceGroupsRequest) (response *DeleteDeviceGroupsResponse, err error) {
return c.DeleteDeviceGroupsWithContext(context.Background(), request)
}
// DeleteDeviceGroups
// 删除资产组
//
// 可能返回的错误码:
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DeleteDeviceGroupsWithContext(ctx context.Context, request *DeleteDeviceGroupsRequest) (response *DeleteDeviceGroupsResponse, err error) {
if request == nil {
request = NewDeleteDeviceGroupsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeleteDeviceGroups require credential")
}
request.SetContext(ctx)
response = NewDeleteDeviceGroupsResponse()
err = c.Send(request, response)
return
}
func NewDeleteDevicesRequest() (request *DeleteDevicesRequest) {
request = &DeleteDevicesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DeleteDevices")
return
}
func NewDeleteDevicesResponse() (response *DeleteDevicesResponse) {
response = &DeleteDevicesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteDevices
// 删除主机
//
// 可能返回的错误码:
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DeleteDevices(request *DeleteDevicesRequest) (response *DeleteDevicesResponse, err error) {
return c.DeleteDevicesWithContext(context.Background(), request)
}
// DeleteDevices
// 删除主机
//
// 可能返回的错误码:
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DeleteDevicesWithContext(ctx context.Context, request *DeleteDevicesRequest) (response *DeleteDevicesResponse, err error) {
if request == nil {
request = NewDeleteDevicesRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeleteDevices require credential")
}
request.SetContext(ctx)
response = NewDeleteDevicesResponse()
err = c.Send(request, response)
return
}
func NewDeleteUserGroupMembersRequest() (request *DeleteUserGroupMembersRequest) {
request = &DeleteUserGroupMembersRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DeleteUserGroupMembers")
return
}
func NewDeleteUserGroupMembersResponse() (response *DeleteUserGroupMembersResponse) {
response = &DeleteUserGroupMembersResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteUserGroupMembers
// 删除用户组成员
//
// 可能返回的错误码:
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DeleteUserGroupMembers(request *DeleteUserGroupMembersRequest) (response *DeleteUserGroupMembersResponse, err error) {
return c.DeleteUserGroupMembersWithContext(context.Background(), request)
}
// DeleteUserGroupMembers
// 删除用户组成员
//
// 可能返回的错误码:
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DeleteUserGroupMembersWithContext(ctx context.Context, request *DeleteUserGroupMembersRequest) (response *DeleteUserGroupMembersResponse, err error) {
if request == nil {
request = NewDeleteUserGroupMembersRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeleteUserGroupMembers require credential")
}
request.SetContext(ctx)
response = NewDeleteUserGroupMembersResponse()
err = c.Send(request, response)
return
}
func NewDeleteUserGroupsRequest() (request *DeleteUserGroupsRequest) {
request = &DeleteUserGroupsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DeleteUserGroups")
return
}
func NewDeleteUserGroupsResponse() (response *DeleteUserGroupsResponse) {
response = &DeleteUserGroupsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteUserGroups
// 删除用户组
//
// 可能返回的错误码:
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DeleteUserGroups(request *DeleteUserGroupsRequest) (response *DeleteUserGroupsResponse, err error) {
return c.DeleteUserGroupsWithContext(context.Background(), request)
}
// DeleteUserGroups
// 删除用户组
//
// 可能返回的错误码:
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DeleteUserGroupsWithContext(ctx context.Context, request *DeleteUserGroupsRequest) (response *DeleteUserGroupsResponse, err error) {
if request == nil {
request = NewDeleteUserGroupsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeleteUserGroups require credential")
}
request.SetContext(ctx)
response = NewDeleteUserGroupsResponse()
err = c.Send(request, response)
return
}
func NewDeleteUsersRequest() (request *DeleteUsersRequest) {
request = &DeleteUsersRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DeleteUsers")
return
}
func NewDeleteUsersResponse() (response *DeleteUsersResponse) {
response = &DeleteUsersResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteUsers
// 删除用户
//
// 可能返回的错误码:
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DeleteUsers(request *DeleteUsersRequest) (response *DeleteUsersResponse, err error) {
return c.DeleteUsersWithContext(context.Background(), request)
}
// DeleteUsers
// 删除用户
//
// 可能返回的错误码:
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DeleteUsersWithContext(ctx context.Context, request *DeleteUsersRequest) (response *DeleteUsersResponse, err error) {
if request == nil {
request = NewDeleteUsersRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeleteUsers require credential")
}
request.SetContext(ctx)
response = NewDeleteUsersResponse()
err = c.Send(request, response)
return
}
func NewDeployResourceRequest() (request *DeployResourceRequest) {
request = &DeployResourceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DeployResource")
return
}
func NewDeployResourceResponse() (response *DeployResourceResponse) {
response = &DeployResourceResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeployResource
// 开通服务,初始化资源,只针对新购资源
//
// 可能返回的错误码:
// FAILEDOPERATION_VPCDEPLOYED = "FailedOperation.VPCDeployed"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// OPERATIONDENIED = "OperationDenied"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
func (c *Client) DeployResource(request *DeployResourceRequest) (response *DeployResourceResponse, err error) {
return c.DeployResourceWithContext(context.Background(), request)
}
// DeployResource
// 开通服务,初始化资源,只针对新购资源
//
// 可能返回的错误码:
// FAILEDOPERATION_VPCDEPLOYED = "FailedOperation.VPCDeployed"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// OPERATIONDENIED = "OperationDenied"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
func (c *Client) DeployResourceWithContext(ctx context.Context, request *DeployResourceRequest) (response *DeployResourceResponse, err error) {
if request == nil {
request = NewDeployResourceRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeployResource require credential")
}
request.SetContext(ctx)
response = NewDeployResourceResponse()
err = c.Send(request, response)
return
}
func NewDescribeAclsRequest() (request *DescribeAclsRequest) {
request = &DescribeAclsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DescribeAcls")
return
}
func NewDescribeAclsResponse() (response *DescribeAclsResponse) {
response = &DescribeAclsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeAcls
// 查询访问权限列表
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeAcls(request *DescribeAclsRequest) (response *DescribeAclsResponse, err error) {
return c.DescribeAclsWithContext(context.Background(), request)
}
// DescribeAcls
// 查询访问权限列表
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeAclsWithContext(ctx context.Context, request *DescribeAclsRequest) (response *DescribeAclsResponse, err error) {
if request == nil {
request = NewDescribeAclsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeAcls require credential")
}
request.SetContext(ctx)
response = NewDescribeAclsResponse()
err = c.Send(request, response)
return
}
func NewDescribeAssetSyncStatusRequest() (request *DescribeAssetSyncStatusRequest) {
request = &DescribeAssetSyncStatusRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DescribeAssetSyncStatus")
return
}
func NewDescribeAssetSyncStatusResponse() (response *DescribeAssetSyncStatusResponse) {
response = &DescribeAssetSyncStatusResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeAssetSyncStatus
// 查询资产同步状态
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeAssetSyncStatus(request *DescribeAssetSyncStatusRequest) (response *DescribeAssetSyncStatusResponse, err error) {
return c.DescribeAssetSyncStatusWithContext(context.Background(), request)
}
// DescribeAssetSyncStatus
// 查询资产同步状态
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeAssetSyncStatusWithContext(ctx context.Context, request *DescribeAssetSyncStatusRequest) (response *DescribeAssetSyncStatusResponse, err error) {
if request == nil {
request = NewDescribeAssetSyncStatusRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeAssetSyncStatus require credential")
}
request.SetContext(ctx)
response = NewDescribeAssetSyncStatusResponse()
err = c.Send(request, response)
return
}
func NewDescribeChangePwdTaskRequest() (request *DescribeChangePwdTaskRequest) {
request = &DescribeChangePwdTaskRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DescribeChangePwdTask")
return
}
func NewDescribeChangePwdTaskResponse() (response *DescribeChangePwdTaskResponse) {
response = &DescribeChangePwdTaskResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeChangePwdTask
// 查询改密任务列表
//
// 可能返回的错误码:
// RESOURCENOTFOUND = "ResourceNotFound"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeChangePwdTask(request *DescribeChangePwdTaskRequest) (response *DescribeChangePwdTaskResponse, err error) {
return c.DescribeChangePwdTaskWithContext(context.Background(), request)
}
// DescribeChangePwdTask
// 查询改密任务列表
//
// 可能返回的错误码:
// RESOURCENOTFOUND = "ResourceNotFound"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeChangePwdTaskWithContext(ctx context.Context, request *DescribeChangePwdTaskRequest) (response *DescribeChangePwdTaskResponse, err error) {
if request == nil {
request = NewDescribeChangePwdTaskRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeChangePwdTask require credential")
}
request.SetContext(ctx)
response = NewDescribeChangePwdTaskResponse()
err = c.Send(request, response)
return
}
func NewDescribeChangePwdTaskDetailRequest() (request *DescribeChangePwdTaskDetailRequest) {
request = &DescribeChangePwdTaskDetailRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DescribeChangePwdTaskDetail")
return
}
func NewDescribeChangePwdTaskDetailResponse() (response *DescribeChangePwdTaskDetailResponse) {
response = &DescribeChangePwdTaskDetailResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeChangePwdTaskDetail
// 查询改密任务详情
//
// 可能返回的错误码:
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeChangePwdTaskDetail(request *DescribeChangePwdTaskDetailRequest) (response *DescribeChangePwdTaskDetailResponse, err error) {
return c.DescribeChangePwdTaskDetailWithContext(context.Background(), request)
}
// DescribeChangePwdTaskDetail
// 查询改密任务详情
//
// 可能返回的错误码:
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeChangePwdTaskDetailWithContext(ctx context.Context, request *DescribeChangePwdTaskDetailRequest) (response *DescribeChangePwdTaskDetailResponse, err error) {
if request == nil {
request = NewDescribeChangePwdTaskDetailRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeChangePwdTaskDetail require credential")
}
request.SetContext(ctx)
response = NewDescribeChangePwdTaskDetailResponse()
err = c.Send(request, response)
return
}
func NewDescribeCmdTemplatesRequest() (request *DescribeCmdTemplatesRequest) {
request = &DescribeCmdTemplatesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DescribeCmdTemplates")
return
}
func NewDescribeCmdTemplatesResponse() (response *DescribeCmdTemplatesResponse) {
response = &DescribeCmdTemplatesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeCmdTemplates
// 查询命令模板列表
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DescribeCmdTemplates(request *DescribeCmdTemplatesRequest) (response *DescribeCmdTemplatesResponse, err error) {
return c.DescribeCmdTemplatesWithContext(context.Background(), request)
}
// DescribeCmdTemplates
// 查询命令模板列表
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DescribeCmdTemplatesWithContext(ctx context.Context, request *DescribeCmdTemplatesRequest) (response *DescribeCmdTemplatesResponse, err error) {
if request == nil {
request = NewDescribeCmdTemplatesRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeCmdTemplates require credential")
}
request.SetContext(ctx)
response = NewDescribeCmdTemplatesResponse()
err = c.Send(request, response)
return
}
func NewDescribeDasbImageIdsRequest() (request *DescribeDasbImageIdsRequest) {
request = &DescribeDasbImageIdsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DescribeDasbImageIds")
return
}
func NewDescribeDasbImageIdsResponse() (response *DescribeDasbImageIdsResponse) {
response = &DescribeDasbImageIdsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDasbImageIds
// 获取镜像列表
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DescribeDasbImageIds(request *DescribeDasbImageIdsRequest) (response *DescribeDasbImageIdsResponse, err error) {
return c.DescribeDasbImageIdsWithContext(context.Background(), request)
}
// DescribeDasbImageIds
// 获取镜像列表
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DescribeDasbImageIdsWithContext(ctx context.Context, request *DescribeDasbImageIdsRequest) (response *DescribeDasbImageIdsResponse, err error) {
if request == nil {
request = NewDescribeDasbImageIdsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeDasbImageIds require credential")
}
request.SetContext(ctx)
response = NewDescribeDasbImageIdsResponse()
err = c.Send(request, response)
return
}
func NewDescribeDeviceAccountsRequest() (request *DescribeDeviceAccountsRequest) {
request = &DescribeDeviceAccountsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DescribeDeviceAccounts")
return
}
func NewDescribeDeviceAccountsResponse() (response *DescribeDeviceAccountsResponse) {
response = &DescribeDeviceAccountsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDeviceAccounts
// 查询主机账号列表
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DescribeDeviceAccounts(request *DescribeDeviceAccountsRequest) (response *DescribeDeviceAccountsResponse, err error) {
return c.DescribeDeviceAccountsWithContext(context.Background(), request)
}
// DescribeDeviceAccounts
// 查询主机账号列表
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DescribeDeviceAccountsWithContext(ctx context.Context, request *DescribeDeviceAccountsRequest) (response *DescribeDeviceAccountsResponse, err error) {
if request == nil {
request = NewDescribeDeviceAccountsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeDeviceAccounts require credential")
}
request.SetContext(ctx)
response = NewDescribeDeviceAccountsResponse()
err = c.Send(request, response)
return
}
func NewDescribeDeviceGroupMembersRequest() (request *DescribeDeviceGroupMembersRequest) {
request = &DescribeDeviceGroupMembersRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DescribeDeviceGroupMembers")
return
}
func NewDescribeDeviceGroupMembersResponse() (response *DescribeDeviceGroupMembersResponse) {
response = &DescribeDeviceGroupMembersResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDeviceGroupMembers
// 查询资产组成员列表
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeDeviceGroupMembers(request *DescribeDeviceGroupMembersRequest) (response *DescribeDeviceGroupMembersResponse, err error) {
return c.DescribeDeviceGroupMembersWithContext(context.Background(), request)
}
// DescribeDeviceGroupMembers
// 查询资产组成员列表
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeDeviceGroupMembersWithContext(ctx context.Context, request *DescribeDeviceGroupMembersRequest) (response *DescribeDeviceGroupMembersResponse, err error) {
if request == nil {
request = NewDescribeDeviceGroupMembersRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeDeviceGroupMembers require credential")
}
request.SetContext(ctx)
response = NewDescribeDeviceGroupMembersResponse()
err = c.Send(request, response)
return
}
func NewDescribeDeviceGroupsRequest() (request *DescribeDeviceGroupsRequest) {
request = &DescribeDeviceGroupsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DescribeDeviceGroups")
return
}
func NewDescribeDeviceGroupsResponse() (response *DescribeDeviceGroupsResponse) {
response = &DescribeDeviceGroupsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDeviceGroups
// 查询资产组列表
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeDeviceGroups(request *DescribeDeviceGroupsRequest) (response *DescribeDeviceGroupsResponse, err error) {
return c.DescribeDeviceGroupsWithContext(context.Background(), request)
}
// DescribeDeviceGroups
// 查询资产组列表
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeDeviceGroupsWithContext(ctx context.Context, request *DescribeDeviceGroupsRequest) (response *DescribeDeviceGroupsResponse, err error) {
if request == nil {
request = NewDescribeDeviceGroupsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeDeviceGroups require credential")
}
request.SetContext(ctx)
response = NewDescribeDeviceGroupsResponse()
err = c.Send(request, response)
return
}
func NewDescribeDevicesRequest() (request *DescribeDevicesRequest) {
request = &DescribeDevicesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DescribeDevices")
return
}
func NewDescribeDevicesResponse() (response *DescribeDevicesResponse) {
response = &DescribeDevicesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDevices
// 查询资产列表
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeDevices(request *DescribeDevicesRequest) (response *DescribeDevicesResponse, err error) {
return c.DescribeDevicesWithContext(context.Background(), request)
}
// DescribeDevices
// 查询资产列表
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeDevicesWithContext(ctx context.Context, request *DescribeDevicesRequest) (response *DescribeDevicesResponse, err error) {
if request == nil {
request = NewDescribeDevicesRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeDevices require credential")
}
request.SetContext(ctx)
response = NewDescribeDevicesResponse()
err = c.Send(request, response)
return
}
func NewDescribeDomainsRequest() (request *DescribeDomainsRequest) {
request = &DescribeDomainsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DescribeDomains")
return
}
func NewDescribeDomainsResponse() (response *DescribeDomainsResponse) {
response = &DescribeDomainsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeDomains
// 查询网络域
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDFILTER = "InvalidFilter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeDomains(request *DescribeDomainsRequest) (response *DescribeDomainsResponse, err error) {
return c.DescribeDomainsWithContext(context.Background(), request)
}
// DescribeDomains
// 查询网络域
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDFILTER = "InvalidFilter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeDomainsWithContext(ctx context.Context, request *DescribeDomainsRequest) (response *DescribeDomainsResponse, err error) {
if request == nil {
request = NewDescribeDomainsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeDomains require credential")
}
request.SetContext(ctx)
response = NewDescribeDomainsResponse()
err = c.Send(request, response)
return
}
func NewDescribeLoginEventRequest() (request *DescribeLoginEventRequest) {
request = &DescribeLoginEventRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DescribeLoginEvent")
return
}
func NewDescribeLoginEventResponse() (response *DescribeLoginEventResponse) {
response = &DescribeLoginEventResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeLoginEvent
// 查询登录日志
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DescribeLoginEvent(request *DescribeLoginEventRequest) (response *DescribeLoginEventResponse, err error) {
return c.DescribeLoginEventWithContext(context.Background(), request)
}
// DescribeLoginEvent
// 查询登录日志
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DescribeLoginEventWithContext(ctx context.Context, request *DescribeLoginEventRequest) (response *DescribeLoginEventResponse, err error) {
if request == nil {
request = NewDescribeLoginEventRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeLoginEvent require credential")
}
request.SetContext(ctx)
response = NewDescribeLoginEventResponse()
err = c.Send(request, response)
return
}
func NewDescribeOperationEventRequest() (request *DescribeOperationEventRequest) {
request = &DescribeOperationEventRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DescribeOperationEvent")
return
}
func NewDescribeOperationEventResponse() (response *DescribeOperationEventResponse) {
response = &DescribeOperationEventResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeOperationEvent
// 查询操作日志
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// OPERATIONDENIED = "OperationDenied"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DescribeOperationEvent(request *DescribeOperationEventRequest) (response *DescribeOperationEventResponse, err error) {
return c.DescribeOperationEventWithContext(context.Background(), request)
}
// DescribeOperationEvent
// 查询操作日志
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// OPERATIONDENIED = "OperationDenied"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) DescribeOperationEventWithContext(ctx context.Context, request *DescribeOperationEventRequest) (response *DescribeOperationEventResponse, err error) {
if request == nil {
request = NewDescribeOperationEventRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeOperationEvent require credential")
}
request.SetContext(ctx)
response = NewDescribeOperationEventResponse()
err = c.Send(request, response)
return
}
func NewDescribeResourcesRequest() (request *DescribeResourcesRequest) {
request = &DescribeResourcesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DescribeResources")
return
}
func NewDescribeResourcesResponse() (response *DescribeResourcesResponse) {
response = &DescribeResourcesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeResources
// 查询用户购买的堡垒机服务信息,包括资源ID、授权点数、VPC、过期时间等。
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeResources(request *DescribeResourcesRequest) (response *DescribeResourcesResponse, err error) {
return c.DescribeResourcesWithContext(context.Background(), request)
}
// DescribeResources
// 查询用户购买的堡垒机服务信息,包括资源ID、授权点数、VPC、过期时间等。
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeResourcesWithContext(ctx context.Context, request *DescribeResourcesRequest) (response *DescribeResourcesResponse, err error) {
if request == nil {
request = NewDescribeResourcesRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeResources require credential")
}
request.SetContext(ctx)
response = NewDescribeResourcesResponse()
err = c.Send(request, response)
return
}
func NewDescribeUserGroupMembersRequest() (request *DescribeUserGroupMembersRequest) {
request = &DescribeUserGroupMembersRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DescribeUserGroupMembers")
return
}
func NewDescribeUserGroupMembersResponse() (response *DescribeUserGroupMembersResponse) {
response = &DescribeUserGroupMembersResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeUserGroupMembers
// 查询用户组成员列表
//
// 可能返回的错误码:
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeUserGroupMembers(request *DescribeUserGroupMembersRequest) (response *DescribeUserGroupMembersResponse, err error) {
return c.DescribeUserGroupMembersWithContext(context.Background(), request)
}
// DescribeUserGroupMembers
// 查询用户组成员列表
//
// 可能返回的错误码:
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeUserGroupMembersWithContext(ctx context.Context, request *DescribeUserGroupMembersRequest) (response *DescribeUserGroupMembersResponse, err error) {
if request == nil {
request = NewDescribeUserGroupMembersRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeUserGroupMembers require credential")
}
request.SetContext(ctx)
response = NewDescribeUserGroupMembersResponse()
err = c.Send(request, response)
return
}
func NewDescribeUserGroupsRequest() (request *DescribeUserGroupsRequest) {
request = &DescribeUserGroupsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DescribeUserGroups")
return
}
func NewDescribeUserGroupsResponse() (response *DescribeUserGroupsResponse) {
response = &DescribeUserGroupsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeUserGroups
// 查询用户组列表
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeUserGroups(request *DescribeUserGroupsRequest) (response *DescribeUserGroupsResponse, err error) {
return c.DescribeUserGroupsWithContext(context.Background(), request)
}
// DescribeUserGroups
// 查询用户组列表
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeUserGroupsWithContext(ctx context.Context, request *DescribeUserGroupsRequest) (response *DescribeUserGroupsResponse, err error) {
if request == nil {
request = NewDescribeUserGroupsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeUserGroups require credential")
}
request.SetContext(ctx)
response = NewDescribeUserGroupsResponse()
err = c.Send(request, response)
return
}
func NewDescribeUsersRequest() (request *DescribeUsersRequest) {
request = &DescribeUsersRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "DescribeUsers")
return
}
func NewDescribeUsersResponse() (response *DescribeUsersResponse) {
response = &DescribeUsersResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeUsers
// 查询用户列表
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeUsers(request *DescribeUsersRequest) (response *DescribeUsersResponse, err error) {
return c.DescribeUsersWithContext(context.Background(), request)
}
// DescribeUsers
// 查询用户列表
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeUsersWithContext(ctx context.Context, request *DescribeUsersRequest) (response *DescribeUsersResponse, err error) {
if request == nil {
request = NewDescribeUsersRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeUsers require credential")
}
request.SetContext(ctx)
response = NewDescribeUsersResponse()
err = c.Send(request, response)
return
}
func NewImportExternalDeviceRequest() (request *ImportExternalDeviceRequest) {
request = &ImportExternalDeviceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "ImportExternalDevice")
return
}
func NewImportExternalDeviceResponse() (response *ImportExternalDeviceResponse) {
response = &ImportExternalDeviceResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ImportExternalDevice
// 导入外部资产信息
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINUSE = "ResourceInUse"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// RESOURCESSOLDOUT = "ResourcesSoldOut"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ImportExternalDevice(request *ImportExternalDeviceRequest) (response *ImportExternalDeviceResponse, err error) {
return c.ImportExternalDeviceWithContext(context.Background(), request)
}
// ImportExternalDevice
// 导入外部资产信息
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINUSE = "ResourceInUse"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// RESOURCESSOLDOUT = "ResourcesSoldOut"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ImportExternalDeviceWithContext(ctx context.Context, request *ImportExternalDeviceRequest) (response *ImportExternalDeviceResponse, err error) {
if request == nil {
request = NewImportExternalDeviceRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ImportExternalDevice require credential")
}
request.SetContext(ctx)
response = NewImportExternalDeviceResponse()
err = c.Send(request, response)
return
}
func NewModifyAclRequest() (request *ModifyAclRequest) {
request = &ModifyAclRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "ModifyAcl")
return
}
func NewModifyAclResponse() (response *ModifyAclResponse) {
response = &ModifyAclResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyAcl
// 修改访问权限
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ModifyAcl(request *ModifyAclRequest) (response *ModifyAclResponse, err error) {
return c.ModifyAclWithContext(context.Background(), request)
}
// ModifyAcl
// 修改访问权限
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ModifyAclWithContext(ctx context.Context, request *ModifyAclRequest) (response *ModifyAclResponse, err error) {
if request == nil {
request = NewModifyAclRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifyAcl require credential")
}
request.SetContext(ctx)
response = NewModifyAclResponse()
err = c.Send(request, response)
return
}
func NewModifyChangePwdTaskRequest() (request *ModifyChangePwdTaskRequest) {
request = &ModifyChangePwdTaskRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "ModifyChangePwdTask")
return
}
func NewModifyChangePwdTaskResponse() (response *ModifyChangePwdTaskResponse) {
response = &ModifyChangePwdTaskResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyChangePwdTask
// 更新修改密码任务
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ModifyChangePwdTask(request *ModifyChangePwdTaskRequest) (response *ModifyChangePwdTaskResponse, err error) {
return c.ModifyChangePwdTaskWithContext(context.Background(), request)
}
// ModifyChangePwdTask
// 更新修改密码任务
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ModifyChangePwdTaskWithContext(ctx context.Context, request *ModifyChangePwdTaskRequest) (response *ModifyChangePwdTaskResponse, err error) {
if request == nil {
request = NewModifyChangePwdTaskRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifyChangePwdTask require credential")
}
request.SetContext(ctx)
response = NewModifyChangePwdTaskResponse()
err = c.Send(request, response)
return
}
func NewModifyCmdTemplateRequest() (request *ModifyCmdTemplateRequest) {
request = &ModifyCmdTemplateRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "ModifyCmdTemplate")
return
}
func NewModifyCmdTemplateResponse() (response *ModifyCmdTemplateResponse) {
response = &ModifyCmdTemplateResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyCmdTemplate
// 修改高危命令模板
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINUSE = "ResourceInUse"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// RESOURCESSOLDOUT = "ResourcesSoldOut"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ModifyCmdTemplate(request *ModifyCmdTemplateRequest) (response *ModifyCmdTemplateResponse, err error) {
return c.ModifyCmdTemplateWithContext(context.Background(), request)
}
// ModifyCmdTemplate
// 修改高危命令模板
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINUSE = "ResourceInUse"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// RESOURCESSOLDOUT = "ResourcesSoldOut"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ModifyCmdTemplateWithContext(ctx context.Context, request *ModifyCmdTemplateRequest) (response *ModifyCmdTemplateResponse, err error) {
if request == nil {
request = NewModifyCmdTemplateRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifyCmdTemplate require credential")
}
request.SetContext(ctx)
response = NewModifyCmdTemplateResponse()
err = c.Send(request, response)
return
}
func NewModifyDeviceRequest() (request *ModifyDeviceRequest) {
request = &ModifyDeviceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "ModifyDevice")
return
}
func NewModifyDeviceResponse() (response *ModifyDeviceResponse) {
response = &ModifyDeviceResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyDevice
// 修改资产信息
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// RESOURCESSOLDOUT = "ResourcesSoldOut"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ModifyDevice(request *ModifyDeviceRequest) (response *ModifyDeviceResponse, err error) {
return c.ModifyDeviceWithContext(context.Background(), request)
}
// ModifyDevice
// 修改资产信息
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// RESOURCESSOLDOUT = "ResourcesSoldOut"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ModifyDeviceWithContext(ctx context.Context, request *ModifyDeviceRequest) (response *ModifyDeviceResponse, err error) {
if request == nil {
request = NewModifyDeviceRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifyDevice require credential")
}
request.SetContext(ctx)
response = NewModifyDeviceResponse()
err = c.Send(request, response)
return
}
func NewModifyDeviceGroupRequest() (request *ModifyDeviceGroupRequest) {
request = &ModifyDeviceGroupRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "ModifyDeviceGroup")
return
}
func NewModifyDeviceGroupResponse() (response *ModifyDeviceGroupResponse) {
response = &ModifyDeviceGroupResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyDeviceGroup
// 修改资产组
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINUSE = "ResourceInUse"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// RESOURCESSOLDOUT = "ResourcesSoldOut"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ModifyDeviceGroup(request *ModifyDeviceGroupRequest) (response *ModifyDeviceGroupResponse, err error) {
return c.ModifyDeviceGroupWithContext(context.Background(), request)
}
// ModifyDeviceGroup
// 修改资产组
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINUSE = "ResourceInUse"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// RESOURCESSOLDOUT = "ResourcesSoldOut"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ModifyDeviceGroupWithContext(ctx context.Context, request *ModifyDeviceGroupRequest) (response *ModifyDeviceGroupResponse, err error) {
if request == nil {
request = NewModifyDeviceGroupRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifyDeviceGroup require credential")
}
request.SetContext(ctx)
response = NewModifyDeviceGroupResponse()
err = c.Send(request, response)
return
}
func NewModifyOAuthSettingRequest() (request *ModifyOAuthSettingRequest) {
request = &ModifyOAuthSettingRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "ModifyOAuthSetting")
return
}
func NewModifyOAuthSettingResponse() (response *ModifyOAuthSettingResponse) {
response = &ModifyOAuthSettingResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyOAuthSetting
// 设置OAuth认证参数
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// OPERATIONDENIED = "OperationDenied"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
func (c *Client) ModifyOAuthSetting(request *ModifyOAuthSettingRequest) (response *ModifyOAuthSettingResponse, err error) {
return c.ModifyOAuthSettingWithContext(context.Background(), request)
}
// ModifyOAuthSetting
// 设置OAuth认证参数
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// OPERATIONDENIED = "OperationDenied"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
func (c *Client) ModifyOAuthSettingWithContext(ctx context.Context, request *ModifyOAuthSettingRequest) (response *ModifyOAuthSettingResponse, err error) {
if request == nil {
request = NewModifyOAuthSettingRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifyOAuthSetting require credential")
}
request.SetContext(ctx)
response = NewModifyOAuthSettingResponse()
err = c.Send(request, response)
return
}
func NewModifyResourceRequest() (request *ModifyResourceRequest) {
request = &ModifyResourceRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "ModifyResource")
return
}
func NewModifyResourceResponse() (response *ModifyResourceResponse) {
response = &ModifyResourceResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyResource
// 资源变配
//
// 可能返回的错误码:
// FAILEDOPERATION_VPCDEPLOYED = "FailedOperation.VPCDeployed"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
func (c *Client) ModifyResource(request *ModifyResourceRequest) (response *ModifyResourceResponse, err error) {
return c.ModifyResourceWithContext(context.Background(), request)
}
// ModifyResource
// 资源变配
//
// 可能返回的错误码:
// FAILEDOPERATION_VPCDEPLOYED = "FailedOperation.VPCDeployed"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
func (c *Client) ModifyResourceWithContext(ctx context.Context, request *ModifyResourceRequest) (response *ModifyResourceResponse, err error) {
if request == nil {
request = NewModifyResourceRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifyResource require credential")
}
request.SetContext(ctx)
response = NewModifyResourceResponse()
err = c.Send(request, response)
return
}
func NewModifyUserRequest() (request *ModifyUserRequest) {
request = &ModifyUserRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "ModifyUser")
return
}
func NewModifyUserResponse() (response *ModifyUserResponse) {
response = &ModifyUserResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyUser
// 修改用户信息
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINUSE = "ResourceInUse"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// RESOURCESSOLDOUT = "ResourcesSoldOut"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ModifyUser(request *ModifyUserRequest) (response *ModifyUserResponse, err error) {
return c.ModifyUserWithContext(context.Background(), request)
}
// ModifyUser
// 修改用户信息
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINUSE = "ResourceInUse"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// RESOURCESSOLDOUT = "ResourcesSoldOut"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
// UNKNOWNPARAMETER = "UnknownParameter"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ModifyUserWithContext(ctx context.Context, request *ModifyUserRequest) (response *ModifyUserResponse, err error) {
if request == nil {
request = NewModifyUserRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifyUser require credential")
}
request.SetContext(ctx)
response = NewModifyUserResponse()
err = c.Send(request, response)
return
}
func NewModifyUserGroupRequest() (request *ModifyUserGroupRequest) {
request = &ModifyUserGroupRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "ModifyUserGroup")
return
}
func NewModifyUserGroupResponse() (response *ModifyUserGroupResponse) {
response = &ModifyUserGroupResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifyUserGroup
// 修改用户组
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ModifyUserGroup(request *ModifyUserGroupRequest) (response *ModifyUserGroupResponse, err error) {
return c.ModifyUserGroupWithContext(context.Background(), request)
}
// ModifyUserGroup
// 修改用户组
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// FAILEDOPERATION_DUPLICATEDATA = "FailedOperation.DuplicateData"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_RESOURCEID = "InvalidParameter.ResourceId"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ModifyUserGroupWithContext(ctx context.Context, request *ModifyUserGroupRequest) (response *ModifyUserGroupResponse, err error) {
if request == nil {
request = NewModifyUserGroupRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ModifyUserGroup require credential")
}
request.SetContext(ctx)
response = NewModifyUserGroupResponse()
err = c.Send(request, response)
return
}
func NewResetDeviceAccountPasswordRequest() (request *ResetDeviceAccountPasswordRequest) {
request = &ResetDeviceAccountPasswordRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "ResetDeviceAccountPassword")
return
}
func NewResetDeviceAccountPasswordResponse() (response *ResetDeviceAccountPasswordResponse) {
response = &ResetDeviceAccountPasswordResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ResetDeviceAccountPassword
// 清除设备账号绑定密码
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// MISSINGPARAMETER = "MissingParameter"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
func (c *Client) ResetDeviceAccountPassword(request *ResetDeviceAccountPasswordRequest) (response *ResetDeviceAccountPasswordResponse, err error) {
return c.ResetDeviceAccountPasswordWithContext(context.Background(), request)
}
// ResetDeviceAccountPassword
// 清除设备账号绑定密码
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// MISSINGPARAMETER = "MissingParameter"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
func (c *Client) ResetDeviceAccountPasswordWithContext(ctx context.Context, request *ResetDeviceAccountPasswordRequest) (response *ResetDeviceAccountPasswordResponse, err error) {
if request == nil {
request = NewResetDeviceAccountPasswordRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ResetDeviceAccountPassword require credential")
}
request.SetContext(ctx)
response = NewResetDeviceAccountPasswordResponse()
err = c.Send(request, response)
return
}
func NewResetDeviceAccountPrivateKeyRequest() (request *ResetDeviceAccountPrivateKeyRequest) {
request = &ResetDeviceAccountPrivateKeyRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "ResetDeviceAccountPrivateKey")
return
}
func NewResetDeviceAccountPrivateKeyResponse() (response *ResetDeviceAccountPrivateKeyResponse) {
response = &ResetDeviceAccountPrivateKeyResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ResetDeviceAccountPrivateKey
// 清除设备账号绑定的密钥
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// MISSINGPARAMETER = "MissingParameter"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
func (c *Client) ResetDeviceAccountPrivateKey(request *ResetDeviceAccountPrivateKeyRequest) (response *ResetDeviceAccountPrivateKeyResponse, err error) {
return c.ResetDeviceAccountPrivateKeyWithContext(context.Background(), request)
}
// ResetDeviceAccountPrivateKey
// 清除设备账号绑定的密钥
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// MISSINGPARAMETER = "MissingParameter"
// RESOURCENOTFOUND = "ResourceNotFound"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
func (c *Client) ResetDeviceAccountPrivateKeyWithContext(ctx context.Context, request *ResetDeviceAccountPrivateKeyRequest) (response *ResetDeviceAccountPrivateKeyResponse, err error) {
if request == nil {
request = NewResetDeviceAccountPrivateKeyRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ResetDeviceAccountPrivateKey require credential")
}
request.SetContext(ctx)
response = NewResetDeviceAccountPrivateKeyResponse()
err = c.Send(request, response)
return
}
func NewResetUserRequest() (request *ResetUserRequest) {
request = &ResetUserRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "ResetUser")
return
}
func NewResetUserResponse() (response *ResetUserResponse) {
response = &ResetUserResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ResetUser
// 重置用户
//
// 可能返回的错误码:
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) ResetUser(request *ResetUserRequest) (response *ResetUserResponse, err error) {
return c.ResetUserWithContext(context.Background(), request)
}
// ResetUser
// 重置用户
//
// 可能返回的错误码:
// FAILEDOPERATION_DATANOTFOUND = "FailedOperation.DataNotFound"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// RESOURCENOTFOUND = "ResourceNotFound"
func (c *Client) ResetUserWithContext(ctx context.Context, request *ResetUserRequest) (response *ResetUserResponse, err error) {
if request == nil {
request = NewResetUserRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ResetUser require credential")
}
request.SetContext(ctx)
response = NewResetUserResponse()
err = c.Send(request, response)
return
}
func NewRunChangePwdTaskRequest() (request *RunChangePwdTaskRequest) {
request = &RunChangePwdTaskRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "RunChangePwdTask")
return
}
func NewRunChangePwdTaskResponse() (response *RunChangePwdTaskResponse) {
response = &RunChangePwdTaskResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// RunChangePwdTask
// 执行改密任务
//
// 可能返回的错误码:
// FAILEDOPERATION_TOOFREQUENT = "FailedOperation.TooFrequent"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
func (c *Client) RunChangePwdTask(request *RunChangePwdTaskRequest) (response *RunChangePwdTaskResponse, err error) {
return c.RunChangePwdTaskWithContext(context.Background(), request)
}
// RunChangePwdTask
// 执行改密任务
//
// 可能返回的错误码:
// FAILEDOPERATION_TOOFREQUENT = "FailedOperation.TooFrequent"
// RESOURCEUNAVAILABLE = "ResourceUnavailable"
func (c *Client) RunChangePwdTaskWithContext(ctx context.Context, request *RunChangePwdTaskRequest) (response *RunChangePwdTaskResponse, err error) {
if request == nil {
request = NewRunChangePwdTaskRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("RunChangePwdTask require credential")
}
request.SetContext(ctx)
response = NewRunChangePwdTaskResponse()
err = c.Send(request, response)
return
}
func NewSearchAuditLogRequest() (request *SearchAuditLogRequest) {
request = &SearchAuditLogRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "SearchAuditLog")
return
}
func NewSearchAuditLogResponse() (response *SearchAuditLogResponse) {
response = &SearchAuditLogResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// SearchAuditLog
// 搜索审计日志
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) SearchAuditLog(request *SearchAuditLogRequest) (response *SearchAuditLogResponse, err error) {
return c.SearchAuditLogWithContext(context.Background(), request)
}
// SearchAuditLog
// 搜索审计日志
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) SearchAuditLogWithContext(ctx context.Context, request *SearchAuditLogRequest) (response *SearchAuditLogResponse, err error) {
if request == nil {
request = NewSearchAuditLogRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("SearchAuditLog require credential")
}
request.SetContext(ctx)
response = NewSearchAuditLogResponse()
err = c.Send(request, response)
return
}
func NewSearchCommandRequest() (request *SearchCommandRequest) {
request = &SearchCommandRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "SearchCommand")
return
}
func NewSearchCommandResponse() (response *SearchCommandResponse) {
response = &SearchCommandResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// SearchCommand
// 命令执行检索
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) SearchCommand(request *SearchCommandRequest) (response *SearchCommandResponse, err error) {
return c.SearchCommandWithContext(context.Background(), request)
}
// SearchCommand
// 命令执行检索
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) SearchCommandWithContext(ctx context.Context, request *SearchCommandRequest) (response *SearchCommandResponse, err error) {
if request == nil {
request = NewSearchCommandRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("SearchCommand require credential")
}
request.SetContext(ctx)
response = NewSearchCommandResponse()
err = c.Send(request, response)
return
}
func NewSearchCommandBySidRequest() (request *SearchCommandBySidRequest) {
request = &SearchCommandBySidRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "SearchCommandBySid")
return
}
func NewSearchCommandBySidResponse() (response *SearchCommandBySidResponse) {
response = &SearchCommandBySidResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// SearchCommandBySid
// 根据会话Id搜索Command
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) SearchCommandBySid(request *SearchCommandBySidRequest) (response *SearchCommandBySidResponse, err error) {
return c.SearchCommandBySidWithContext(context.Background(), request)
}
// SearchCommandBySid
// 根据会话Id搜索Command
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) SearchCommandBySidWithContext(ctx context.Context, request *SearchCommandBySidRequest) (response *SearchCommandBySidResponse, err error) {
if request == nil {
request = NewSearchCommandBySidRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("SearchCommandBySid require credential")
}
request.SetContext(ctx)
response = NewSearchCommandBySidResponse()
err = c.Send(request, response)
return
}
func NewSearchFileRequest() (request *SearchFileRequest) {
request = &SearchFileRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "SearchFile")
return
}
func NewSearchFileResponse() (response *SearchFileResponse) {
response = &SearchFileResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// SearchFile
// 文件传输检索
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) SearchFile(request *SearchFileRequest) (response *SearchFileResponse, err error) {
return c.SearchFileWithContext(context.Background(), request)
}
// SearchFile
// 文件传输检索
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) SearchFileWithContext(ctx context.Context, request *SearchFileRequest) (response *SearchFileResponse, err error) {
if request == nil {
request = NewSearchFileRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("SearchFile require credential")
}
request.SetContext(ctx)
response = NewSearchFileResponse()
err = c.Send(request, response)
return
}
func NewSearchFileBySidRequest() (request *SearchFileBySidRequest) {
request = &SearchFileBySidRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "SearchFileBySid")
return
}
func NewSearchFileBySidResponse() (response *SearchFileBySidResponse) {
response = &SearchFileBySidResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// SearchFileBySid
// 搜索文件传输会话下文件操作列表
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) SearchFileBySid(request *SearchFileBySidRequest) (response *SearchFileBySidResponse, err error) {
return c.SearchFileBySidWithContext(context.Background(), request)
}
// SearchFileBySid
// 搜索文件传输会话下文件操作列表
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) SearchFileBySidWithContext(ctx context.Context, request *SearchFileBySidRequest) (response *SearchFileBySidResponse, err error) {
if request == nil {
request = NewSearchFileBySidRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("SearchFileBySid require credential")
}
request.SetContext(ctx)
response = NewSearchFileBySidResponse()
err = c.Send(request, response)
return
}
func NewSearchSessionRequest() (request *SearchSessionRequest) {
request = &SearchSessionRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "SearchSession")
return
}
func NewSearchSessionResponse() (response *SearchSessionResponse) {
response = &SearchSessionResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// SearchSession
// 搜索会话
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) SearchSession(request *SearchSessionRequest) (response *SearchSessionResponse, err error) {
return c.SearchSessionWithContext(context.Background(), request)
}
// SearchSession
// 搜索会话
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) SearchSessionWithContext(ctx context.Context, request *SearchSessionRequest) (response *SearchSessionResponse, err error) {
if request == nil {
request = NewSearchSessionRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("SearchSession require credential")
}
request.SetContext(ctx)
response = NewSearchSessionResponse()
err = c.Send(request, response)
return
}
func NewSearchSessionCommandRequest() (request *SearchSessionCommandRequest) {
request = &SearchSessionCommandRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("dasb", APIVersion, "SearchSessionCommand")
return
}
func NewSearchSessionCommandResponse() (response *SearchSessionCommandResponse) {
response = &SearchSessionCommandResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// SearchSessionCommand
// 命令检索
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) SearchSessionCommand(request *SearchSessionCommandRequest) (response *SearchSessionCommandResponse, err error) {
return c.SearchSessionCommandWithContext(context.Background(), request)
}
// SearchSessionCommand
// 命令检索
//
// 可能返回的错误码:
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) SearchSessionCommandWithContext(ctx context.Context, request *SearchSessionCommandRequest) (response *SearchSessionCommandResponse, err error) {
if request == nil {
request = NewSearchSessionCommandRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("SearchSessionCommand require credential")
}
request.SetContext(ctx)
response = NewSearchSessionCommandResponse()
err = c.Send(request, response)
return
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tencentcloud/tencentcloud-sdk-go.git
git@gitee.com:tencentcloud/tencentcloud-sdk-go.git
tencentcloud
tencentcloud-sdk-go
tencentcloud-sdk-go
master

搜索帮助