|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249 |
- // Package dlp provides access to the Cloud Data Loss Prevention (DLP) API.
- //
- // See https://cloud.google.com/dlp/docs/
- //
- // Usage example:
- //
- // import "google.golang.org/api/dlp/v2beta1"
- // ...
- // dlpService, err := dlp.New(oauthHttpClient)
- package dlp // import "google.golang.org/api/dlp/v2beta1"
-
- import (
- "bytes"
- "encoding/json"
- "errors"
- "fmt"
- context "golang.org/x/net/context"
- ctxhttp "golang.org/x/net/context/ctxhttp"
- gensupport "google.golang.org/api/gensupport"
- googleapi "google.golang.org/api/googleapi"
- "io"
- "net/http"
- "net/url"
- "strconv"
- "strings"
- )
-
- // Always reference these packages, just in case the auto-generated code
- // below doesn't.
- var _ = bytes.NewBuffer
- var _ = strconv.Itoa
- var _ = fmt.Sprintf
- var _ = json.NewDecoder
- var _ = io.Copy
- var _ = url.Parse
- var _ = gensupport.MarshalJSON
- var _ = googleapi.Version
- var _ = errors.New
- var _ = strings.Replace
- var _ = context.Canceled
- var _ = ctxhttp.Do
-
- const apiId = "dlp:v2beta1"
- const apiName = "dlp"
- const apiVersion = "v2beta1"
- const basePath = "https://dlp.googleapis.com/"
-
- // OAuth2 scopes used by this API.
- const (
- // View and manage your data across Google Cloud Platform services
- CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
- )
-
- func New(client *http.Client) (*Service, error) {
- if client == nil {
- return nil, errors.New("client is nil")
- }
- s := &Service{client: client, BasePath: basePath}
- s.Content = NewContentService(s)
- s.DataSource = NewDataSourceService(s)
- s.Inspect = NewInspectService(s)
- s.RiskAnalysis = NewRiskAnalysisService(s)
- s.RootCategories = NewRootCategoriesService(s)
- return s, nil
- }
-
- type Service struct {
- client *http.Client
- BasePath string // API endpoint base URL
- UserAgent string // optional additional User-Agent fragment
-
- Content *ContentService
-
- DataSource *DataSourceService
-
- Inspect *InspectService
-
- RiskAnalysis *RiskAnalysisService
-
- RootCategories *RootCategoriesService
- }
-
- func (s *Service) userAgent() string {
- if s.UserAgent == "" {
- return googleapi.UserAgent
- }
- return googleapi.UserAgent + " " + s.UserAgent
- }
-
- func NewContentService(s *Service) *ContentService {
- rs := &ContentService{s: s}
- return rs
- }
-
- type ContentService struct {
- s *Service
- }
-
- func NewDataSourceService(s *Service) *DataSourceService {
- rs := &DataSourceService{s: s}
- return rs
- }
-
- type DataSourceService struct {
- s *Service
- }
-
- func NewInspectService(s *Service) *InspectService {
- rs := &InspectService{s: s}
- rs.Operations = NewInspectOperationsService(s)
- rs.Results = NewInspectResultsService(s)
- return rs
- }
-
- type InspectService struct {
- s *Service
-
- Operations *InspectOperationsService
-
- Results *InspectResultsService
- }
-
- func NewInspectOperationsService(s *Service) *InspectOperationsService {
- rs := &InspectOperationsService{s: s}
- return rs
- }
-
- type InspectOperationsService struct {
- s *Service
- }
-
- func NewInspectResultsService(s *Service) *InspectResultsService {
- rs := &InspectResultsService{s: s}
- rs.Findings = NewInspectResultsFindingsService(s)
- return rs
- }
-
- type InspectResultsService struct {
- s *Service
-
- Findings *InspectResultsFindingsService
- }
-
- func NewInspectResultsFindingsService(s *Service) *InspectResultsFindingsService {
- rs := &InspectResultsFindingsService{s: s}
- return rs
- }
-
- type InspectResultsFindingsService struct {
- s *Service
- }
-
- func NewRiskAnalysisService(s *Service) *RiskAnalysisService {
- rs := &RiskAnalysisService{s: s}
- rs.Operations = NewRiskAnalysisOperationsService(s)
- return rs
- }
-
- type RiskAnalysisService struct {
- s *Service
-
- Operations *RiskAnalysisOperationsService
- }
-
- func NewRiskAnalysisOperationsService(s *Service) *RiskAnalysisOperationsService {
- rs := &RiskAnalysisOperationsService{s: s}
- return rs
- }
-
- type RiskAnalysisOperationsService struct {
- s *Service
- }
-
- func NewRootCategoriesService(s *Service) *RootCategoriesService {
- rs := &RootCategoriesService{s: s}
- rs.InfoTypes = NewRootCategoriesInfoTypesService(s)
- return rs
- }
-
- type RootCategoriesService struct {
- s *Service
-
- InfoTypes *RootCategoriesInfoTypesService
- }
-
- func NewRootCategoriesInfoTypesService(s *Service) *RootCategoriesInfoTypesService {
- rs := &RootCategoriesInfoTypesService{s: s}
- return rs
- }
-
- type RootCategoriesInfoTypesService struct {
- s *Service
- }
-
- // GoogleLongrunningCancelOperationRequest: The request message for
- // Operations.CancelOperation.
- type GoogleLongrunningCancelOperationRequest struct {
- }
-
- // GoogleLongrunningListOperationsResponse: The response message for
- // Operations.ListOperations.
- type GoogleLongrunningListOperationsResponse struct {
- // NextPageToken: The standard List next-page token.
- NextPageToken string `json:"nextPageToken,omitempty"`
-
- // Operations: A list of operations that matches the specified filter in
- // the request.
- Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // ForceSendFields is a list of field names (e.g. "NextPageToken") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "NextPageToken") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleLongrunningListOperationsResponse
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleLongrunningOperation: This resource represents a long-running
- // operation that is the result of a
- // network API call.
- type GoogleLongrunningOperation struct {
- // Done: If the value is `false`, it means the operation is still in
- // progress.
- // If `true`, the operation is completed, and either `error` or
- // `response` is
- // available.
- Done bool `json:"done,omitempty"`
-
- // Error: The error result of the operation in case of failure or
- // cancellation.
- Error *GoogleRpcStatus `json:"error,omitempty"`
-
- // Metadata: This field will contain an InspectOperationMetadata object
- // for `inspect.operations.create` or a RiskAnalysisOperationMetadata
- // object for `dataSource.analyze`. This will always be returned with
- // the Operation.
- Metadata googleapi.RawMessage `json:"metadata,omitempty"`
-
- // Name: The server-assigned name. The `name` should have the format of
- // `inspect/operations/<identifier>`.
- Name string `json:"name,omitempty"`
-
- // Response: This field will contain an InspectOperationResult object
- // for `inspect.operations.create` or a RiskAnalysisOperationResult
- // object for `dataSource.analyze`.
- Response googleapi.RawMessage `json:"response,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // ForceSendFields is a list of field names (e.g. "Done") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Done") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleLongrunningOperation
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1AnalyzeDataSourceRiskRequest: Request for
- // creating a risk analysis operation.
- type GooglePrivacyDlpV2beta1AnalyzeDataSourceRiskRequest struct {
- // PrivacyMetric: Privacy metric to compute.
- PrivacyMetric *GooglePrivacyDlpV2beta1PrivacyMetric `json:"privacyMetric,omitempty"`
-
- // SourceTable: Input dataset to compute metrics over.
- SourceTable *GooglePrivacyDlpV2beta1BigQueryTable `json:"sourceTable,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "PrivacyMetric") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "PrivacyMetric") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1AnalyzeDataSourceRiskRequest) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1AnalyzeDataSourceRiskRequest
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1AuxiliaryTable: An auxiliary table contains
- // statistical information on the relative
- // frequency of different quasi-identifiers values. It has one or
- // several
- // quasi-identifiers columns, and one column that indicates the
- // relative
- // frequency of each quasi-identifier tuple.
- // If a tuple is present in the data but not in the auxiliary table,
- // the
- // corresponding relative frequency is assumed to be zero (and thus,
- // the
- // tuple is highly reidentifiable).
- type GooglePrivacyDlpV2beta1AuxiliaryTable struct {
- // QuasiIds: Quasi-identifier columns. [required]
- QuasiIds []*GooglePrivacyDlpV2beta1QuasiIdField `json:"quasiIds,omitempty"`
-
- // RelativeFrequency: The relative frequency column must contain a
- // floating-point number
- // between 0 and 1 (inclusive). Null values are assumed to be
- // zero.
- // [required]
- RelativeFrequency *GooglePrivacyDlpV2beta1FieldId `json:"relativeFrequency,omitempty"`
-
- // Table: Auxiliary table location. [required]
- Table *GooglePrivacyDlpV2beta1BigQueryTable `json:"table,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "QuasiIds") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "QuasiIds") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1AuxiliaryTable) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1AuxiliaryTable
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1BigQueryKey: LINT.IfChange
- // Row key for identifying a record in BigQuery table.
- type GooglePrivacyDlpV2beta1BigQueryKey struct {
- // RowNumber: Absolute number of the row from the beginning of the table
- // at the time
- // of scanning.
- RowNumber int64 `json:"rowNumber,omitempty,string"`
-
- // TableReference: Complete BigQuery table reference.
- TableReference *GooglePrivacyDlpV2beta1BigQueryTable `json:"tableReference,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "RowNumber") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "RowNumber") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1BigQueryKey) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1BigQueryKey
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1BigQueryOptions: Options defining BigQuery
- // table and row identifiers.
- type GooglePrivacyDlpV2beta1BigQueryOptions struct {
- // IdentifyingFields: References to fields uniquely identifying rows
- // within the table.
- // Nested fields in the format, like `person.birthdate.year`, are
- // allowed.
- IdentifyingFields []*GooglePrivacyDlpV2beta1FieldId `json:"identifyingFields,omitempty"`
-
- // TableReference: Complete BigQuery table reference.
- TableReference *GooglePrivacyDlpV2beta1BigQueryTable `json:"tableReference,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "IdentifyingFields")
- // to unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "IdentifyingFields") to
- // include in API requests with the JSON null value. By default, fields
- // with empty values are omitted from API requests. However, any field
- // with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1BigQueryOptions) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1BigQueryOptions
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1BigQueryTable: Message defining the location
- // of a BigQuery table. A table is uniquely
- // identified by its project_id, dataset_id, and table_name. Within a
- // query
- // a table is often referenced with a string in the format
- // of:
- // `<project_id>:<dataset_id>.<table_id>`
- // or
- // `<project_id>.<dataset_id>.<table_id>`.
- type GooglePrivacyDlpV2beta1BigQueryTable struct {
- // DatasetId: Dataset ID of the table.
- DatasetId string `json:"datasetId,omitempty"`
-
- // ProjectId: The Google Cloud Platform project ID of the project
- // containing the table.
- // If omitted, project ID is inferred from the API call.
- ProjectId string `json:"projectId,omitempty"`
-
- // TableId: Name of the table.
- TableId string `json:"tableId,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "DatasetId") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "DatasetId") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1BigQueryTable) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1BigQueryTable
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1Bucket: Buckets represented as ranges, along
- // with replacement values. Ranges must
- // be non-overlapping.
- type GooglePrivacyDlpV2beta1Bucket struct {
- // Max: Upper bound of the range, exclusive; type must match min.
- Max *GooglePrivacyDlpV2beta1Value `json:"max,omitempty"`
-
- // Min: Lower bound of the range, inclusive. Type should be the same as
- // max if
- // used.
- Min *GooglePrivacyDlpV2beta1Value `json:"min,omitempty"`
-
- // ReplacementValue: Replacement value for this bucket. If not
- // provided
- // the default behavior will be to hyphenate the min-max range.
- ReplacementValue *GooglePrivacyDlpV2beta1Value `json:"replacementValue,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Max") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Max") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1Bucket) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1Bucket
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1BucketingConfig: Generalization function that
- // buckets values based on ranges. The ranges and
- // replacement values are dynamically provided by the user for custom
- // behavior,
- // such as 1-30 -> LOW 31-65 -> MEDIUM 66-100 -> HIGH
- // This can be used on
- // data of type: number, long, string, timestamp.
- // If the bound `Value` type differs from the type of data being
- // transformed, we
- // will first attempt converting the type of the data to be transformed
- // to match
- // the type of the bound before comparing.
- type GooglePrivacyDlpV2beta1BucketingConfig struct {
- Buckets []*GooglePrivacyDlpV2beta1Bucket `json:"buckets,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Buckets") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Buckets") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1BucketingConfig) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1BucketingConfig
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1CategoricalStatsConfig: Compute numerical
- // stats over an individual column, including
- // number of distinct values and value count distribution.
- type GooglePrivacyDlpV2beta1CategoricalStatsConfig struct {
- // Field: Field to compute categorical stats on. All column types
- // are
- // supported except for arrays and structs. However, it may be
- // more
- // informative to use NumericalStats when the field type is
- // supported,
- // depending on the data.
- Field *GooglePrivacyDlpV2beta1FieldId `json:"field,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Field") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Field") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1CategoricalStatsConfig) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1CategoricalStatsConfig
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket: Histogram
- // bucket of value frequencies in the column.
- type GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket struct {
- // BucketSize: Total number of records in this bucket.
- BucketSize int64 `json:"bucketSize,omitempty,string"`
-
- // BucketValues: Sample of value frequencies in this bucket. The total
- // number of
- // values returned per bucket is capped at 20.
- BucketValues []*GooglePrivacyDlpV2beta1ValueFrequency `json:"bucketValues,omitempty"`
-
- // ValueFrequencyLowerBound: Lower bound on the value frequency of the
- // values in this bucket.
- ValueFrequencyLowerBound int64 `json:"valueFrequencyLowerBound,omitempty,string"`
-
- // ValueFrequencyUpperBound: Upper bound on the value frequency of the
- // values in this bucket.
- ValueFrequencyUpperBound int64 `json:"valueFrequencyUpperBound,omitempty,string"`
-
- // ForceSendFields is a list of field names (e.g. "BucketSize") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "BucketSize") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1CategoricalStatsResult: Result of the
- // categorical stats computation.
- type GooglePrivacyDlpV2beta1CategoricalStatsResult struct {
- // ValueFrequencyHistogramBuckets: Histogram of value frequencies in the
- // column.
- ValueFrequencyHistogramBuckets []*GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket `json:"valueFrequencyHistogramBuckets,omitempty"`
-
- // ForceSendFields is a list of field names (e.g.
- // "ValueFrequencyHistogramBuckets") to unconditionally include in API
- // requests. By default, fields with empty values are omitted from API
- // requests. However, any non-pointer, non-interface field appearing in
- // ForceSendFields will be sent to the server regardless of whether the
- // field is empty or not. This may be used to include empty fields in
- // Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g.
- // "ValueFrequencyHistogramBuckets") to include in API requests with the
- // JSON null value. By default, fields with empty values are omitted
- // from API requests. However, any field with an empty value appearing
- // in NullFields will be sent to the server as null. It is an error if a
- // field in this list has a non-empty value. This may be used to include
- // null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1CategoricalStatsResult) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1CategoricalStatsResult
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1CategoryDescription: Info Type Category
- // description.
- type GooglePrivacyDlpV2beta1CategoryDescription struct {
- // DisplayName: Human readable form of the category name.
- DisplayName string `json:"displayName,omitempty"`
-
- // Name: Internal name of the category.
- Name string `json:"name,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "DisplayName") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "DisplayName") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1CategoryDescription) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1CategoryDescription
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1CharacterMaskConfig: Partially mask a string
- // by replacing a given number of characters with a
- // fixed character. Masking can start from the beginning or end of the
- // string.
- // This can be used on data of any type (numbers, longs, and so on) and
- // when
- // de-identifying structured data we'll attempt to preserve the original
- // data's
- // type. (This allows you to take a long like 123 and modify it to a
- // string like
- // **3.
- type GooglePrivacyDlpV2beta1CharacterMaskConfig struct {
- // CharactersToIgnore: When masking a string, items in this list will be
- // skipped when replacing.
- // For example, if your string is 555-555-5555 and you ask us to skip
- // `-` and
- // mask 5 chars with * we would produce ***-*55-5555.
- CharactersToIgnore []*GooglePrivacyDlpV2beta1CharsToIgnore `json:"charactersToIgnore,omitempty"`
-
- // MaskingCharacter: Character to mask the sensitive values—for
- // example, "*" for an
- // alphabetic string such as name, or "0" for a numeric string such as
- // ZIP
- // code or credit card number. String must have length 1. If not
- // supplied, we
- // will default to "*" for strings, 0 for digits.
- MaskingCharacter string `json:"maskingCharacter,omitempty"`
-
- // NumberToMask: Number of characters to mask. If not set, all matching
- // chars will be
- // masked. Skipped characters do not count towards this tally.
- NumberToMask int64 `json:"numberToMask,omitempty"`
-
- // ReverseOrder: Mask characters in reverse order. For example, if
- // `masking_character` is
- // '0', number_to_mask is 14, and `reverse_order` is false,
- // then
- // 1234-5678-9012-3456 -> 00000000000000-3456
- // If `masking_character` is '*', `number_to_mask` is 3, and
- // `reverse_order`
- // is true, then 12345 -> 12***
- ReverseOrder bool `json:"reverseOrder,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "CharactersToIgnore")
- // to unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "CharactersToIgnore") to
- // include in API requests with the JSON null value. By default, fields
- // with empty values are omitted from API requests. However, any field
- // with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1CharacterMaskConfig) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1CharacterMaskConfig
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1CharsToIgnore: Characters to skip when doing
- // deidentification of a value. These will be left
- // alone and skipped.
- type GooglePrivacyDlpV2beta1CharsToIgnore struct {
- CharactersToSkip string `json:"charactersToSkip,omitempty"`
-
- // Possible values:
- // "CHARACTER_GROUP_UNSPECIFIED"
- // "NUMERIC" - 0-9
- // "ALPHA_UPPER_CASE" - A-Z
- // "ALPHA_LOWER_CASE" - a-z
- // "PUNCTUATION" - US Punctuation, one of
- // !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
- // "WHITESPACE" - Whitespace character, one of [ \t\n\x0B\f\r]
- CommonCharactersToIgnore string `json:"commonCharactersToIgnore,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "CharactersToSkip") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "CharactersToSkip") to
- // include in API requests with the JSON null value. By default, fields
- // with empty values are omitted from API requests. However, any field
- // with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1CharsToIgnore) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1CharsToIgnore
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1CloudStorageKey: Record key for a finding in a
- // Cloud Storage file.
- type GooglePrivacyDlpV2beta1CloudStorageKey struct {
- // FilePath: Path to the file.
- FilePath string `json:"filePath,omitempty"`
-
- // StartOffset: Byte offset of the referenced data in the file.
- StartOffset int64 `json:"startOffset,omitempty,string"`
-
- // ForceSendFields is a list of field names (e.g. "FilePath") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "FilePath") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1CloudStorageKey) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1CloudStorageKey
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1CloudStorageOptions: Options defining a file
- // or a set of files (path ending with *) within
- // a Google Cloud Storage bucket.
- type GooglePrivacyDlpV2beta1CloudStorageOptions struct {
- FileSet *GooglePrivacyDlpV2beta1FileSet `json:"fileSet,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "FileSet") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "FileSet") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1CloudStorageOptions) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1CloudStorageOptions
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1CloudStoragePath: A location in Cloud Storage.
- type GooglePrivacyDlpV2beta1CloudStoragePath struct {
- // Path: The url, in the format of `gs://bucket/<path>`.
- Path string `json:"path,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Path") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Path") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1CloudStoragePath) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1CloudStoragePath
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1Color: Represents a color in the RGB color
- // space.
- type GooglePrivacyDlpV2beta1Color struct {
- // Blue: The amount of blue in the color as a value in the interval [0,
- // 1].
- Blue float64 `json:"blue,omitempty"`
-
- // Green: The amount of green in the color as a value in the interval
- // [0, 1].
- Green float64 `json:"green,omitempty"`
-
- // Red: The amount of red in the color as a value in the interval [0,
- // 1].
- Red float64 `json:"red,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Blue") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Blue") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1Color) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1Color
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- func (s *GooglePrivacyDlpV2beta1Color) UnmarshalJSON(data []byte) error {
- type NoMethod GooglePrivacyDlpV2beta1Color
- var s1 struct {
- Blue gensupport.JSONFloat64 `json:"blue"`
- Green gensupport.JSONFloat64 `json:"green"`
- Red gensupport.JSONFloat64 `json:"red"`
- *NoMethod
- }
- s1.NoMethod = (*NoMethod)(s)
- if err := json.Unmarshal(data, &s1); err != nil {
- return err
- }
- s.Blue = float64(s1.Blue)
- s.Green = float64(s1.Green)
- s.Red = float64(s1.Red)
- return nil
- }
-
- // GooglePrivacyDlpV2beta1Condition: The field type of `value` and
- // `field` do not need to match to be
- // considered equal, but not all comparisons are possible.
- //
- // A `value` of type:
- //
- // - `string` can be compared against all other types
- // - `boolean` can only be compared against other booleans
- // - `integer` can be compared against doubles or a string if the string
- // value
- // can be parsed as an integer.
- // - `double` can be compared against integers or a string if the string
- // can
- // be parsed as a double.
- // - `Timestamp` can be compared against strings in RFC 3339 date
- // string
- // format.
- // - `TimeOfDay` can be compared against timestamps and strings in the
- // format
- // of 'HH:mm:ss'.
- //
- // If we fail to compare do to type mismatch, a warning will be given
- // and
- // the condition will evaluate to false.
- type GooglePrivacyDlpV2beta1Condition struct {
- // Field: Field within the record this condition is evaluated against.
- // [required]
- Field *GooglePrivacyDlpV2beta1FieldId `json:"field,omitempty"`
-
- // Operator: Operator used to compare the field or info type to the
- // value. [required]
- //
- // Possible values:
- // "RELATIONAL_OPERATOR_UNSPECIFIED"
- // "EQUAL_TO" - Equal.
- // "NOT_EQUAL_TO" - Not equal to.
- // "GREATER_THAN" - Greater than.
- // "LESS_THAN" - Less than.
- // "GREATER_THAN_OR_EQUALS" - Greater than or equals.
- // "LESS_THAN_OR_EQUALS" - Less than or equals.
- // "EXISTS" - Exists
- Operator string `json:"operator,omitempty"`
-
- // Value: Value to compare against. [Required, except for `EXISTS`
- // tests.]
- Value *GooglePrivacyDlpV2beta1Value `json:"value,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Field") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Field") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1Condition) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1Condition
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- type GooglePrivacyDlpV2beta1Conditions struct {
- Conditions []*GooglePrivacyDlpV2beta1Condition `json:"conditions,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Conditions") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Conditions") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1Conditions) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1Conditions
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1ContentItem: Container structure for the
- // content to inspect.
- type GooglePrivacyDlpV2beta1ContentItem struct {
- // Data: Content data to inspect or redact.
- Data string `json:"data,omitempty"`
-
- // Table: Structured content for inspection.
- Table *GooglePrivacyDlpV2beta1Table `json:"table,omitempty"`
-
- // Type: Type of the content, as defined in Content-Type HTTP
- // header.
- // Supported types are: all "text" types, octet streams, PNG
- // images,
- // JPEG images.
- Type string `json:"type,omitempty"`
-
- // Value: String data to inspect or redact.
- Value string `json:"value,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Data") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Data") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1ContentItem) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1ContentItem
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1CreateInspectOperationRequest: Request for
- // scheduling a scan of a data subset from a Google Platform
- // data
- // repository.
- type GooglePrivacyDlpV2beta1CreateInspectOperationRequest struct {
- // InspectConfig: Configuration for the inspector.
- InspectConfig *GooglePrivacyDlpV2beta1InspectConfig `json:"inspectConfig,omitempty"`
-
- // OperationConfig: Additional configuration settings for long running
- // operations.
- OperationConfig *GooglePrivacyDlpV2beta1OperationConfig `json:"operationConfig,omitempty"`
-
- // OutputConfig: Optional location to store findings.
- OutputConfig *GooglePrivacyDlpV2beta1OutputStorageConfig `json:"outputConfig,omitempty"`
-
- // StorageConfig: Specification of the data set to process.
- StorageConfig *GooglePrivacyDlpV2beta1StorageConfig `json:"storageConfig,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "InspectConfig") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "InspectConfig") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1CreateInspectOperationRequest) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1CreateInspectOperationRequest
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1CryptoHashConfig: Pseudonymization method that
- // generates surrogates via cryptographic hashing.
- // Uses SHA-256.
- // Outputs a 32 byte digest as an uppercase hex string
- // (for example, 41D1567F7F99F1DC2A5FAB886DEE5BEE).
- // Currently, only string and integer values can be hashed.
- type GooglePrivacyDlpV2beta1CryptoHashConfig struct {
- // CryptoKey: The key used by the hash function.
- CryptoKey *GooglePrivacyDlpV2beta1CryptoKey `json:"cryptoKey,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "CryptoKey") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "CryptoKey") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1CryptoHashConfig) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1CryptoHashConfig
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1CryptoKey: This is a data encryption key (DEK)
- // (as opposed to
- // a key encryption key (KEK) stored by KMS).
- // When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
- // IAM policy on the KMS CryptoKey (KEK) to ensure an attacker
- // cannot
- // unwrap the data crypto key.
- type GooglePrivacyDlpV2beta1CryptoKey struct {
- KmsWrapped *GooglePrivacyDlpV2beta1KmsWrappedCryptoKey `json:"kmsWrapped,omitempty"`
-
- Transient *GooglePrivacyDlpV2beta1TransientCryptoKey `json:"transient,omitempty"`
-
- Unwrapped *GooglePrivacyDlpV2beta1UnwrappedCryptoKey `json:"unwrapped,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "KmsWrapped") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "KmsWrapped") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1CryptoKey) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1CryptoKey
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1CryptoReplaceFfxFpeConfig: Replaces an
- // identifier with a surrogate using FPE with the FFX
- // mode of operation.
- // The identifier must be representable by the US-ASCII character
- // set.
- // For a given crypto key and context, the same identifier will
- // be
- // replaced with the same surrogate.
- // Identifiers must be at least two characters long.
- // In the case that the identifier is the empty string, it will be
- // skipped.
- type GooglePrivacyDlpV2beta1CryptoReplaceFfxFpeConfig struct {
- // Possible values:
- // "FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED"
- // "NUMERIC" - [0-9] (radix of 10)
- // "HEXADECIMAL" - [0-9A-F] (radix of 16)
- // "UPPER_CASE_ALPHA_NUMERIC" - [0-9A-Z] (radix of 36)
- // "ALPHA_NUMERIC" - [0-9A-Za-z] (radix of 62)
- CommonAlphabet string `json:"commonAlphabet,omitempty"`
-
- // Context: A context may be used for higher security since the
- // same
- // identifier in two different contexts likely will be given a
- // distinct
- // surrogate. The principle is that the likeliness is inversely
- // related
- // to the ratio of the number of distinct identifiers per context over
- // the
- // number of possible surrogates: As long as this ratio is small,
- // the
- // likehood is large.
- //
- // If the context is not set, a default tweak will be used.
- // If the context is set but:
- //
- // 1. there is no record present when transforming a given value or
- // 1. the field is not present when transforming a given value,
- //
- // a default tweak will be used.
- //
- // Note that case (1) is expected when an `InfoTypeTransformation`
- // is
- // applied to both structured and non-structured
- // `ContentItem`s.
- // Currently, the referenced field may be of value type integer or
- // string.
- //
- // The tweak is constructed as a sequence of bytes in big endian byte
- // order
- // such that:
- //
- // - a 64 bit integer is encoded followed by a single byte of value 1
- // - a string is encoded in UTF-8 format followed by a single byte of
- // value 2
- //
- // This is also known as the 'tweak', as in tweakable encryption.
- Context *GooglePrivacyDlpV2beta1FieldId `json:"context,omitempty"`
-
- // CryptoKey: The key used by the encryption algorithm. [required]
- CryptoKey *GooglePrivacyDlpV2beta1CryptoKey `json:"cryptoKey,omitempty"`
-
- // CustomAlphabet: This is supported by mapping these to the
- // alphanumeric characters
- // that the FFX mode natively supports. This happens
- // before/after
- // encryption/decryption.
- // Each character listed must appear only once.
- // Number of characters must be in the range [2, 62].
- // This must be encoded as ASCII.
- // The order of characters does not matter.
- CustomAlphabet string `json:"customAlphabet,omitempty"`
-
- // Radix: The native way to select the alphabet. Must be in the range
- // [2, 62].
- Radix int64 `json:"radix,omitempty"`
-
- // SurrogateInfoType: The custom info type to annotate the surrogate
- // with.
- // This annotation will be applied to the surrogate by prefixing it
- // with
- // the name of the custom info type followed by the number of
- // characters comprising the surrogate. The following scheme defines
- // the
- // format: info_type_name(surrogate_character_count):surrogate
- //
- // For example, if the name of custom info type is 'MY_TOKEN_INFO_TYPE'
- // and
- // the surrogate is 'abc', the full replacement value
- // will be: 'MY_TOKEN_INFO_TYPE(3):abc'
- //
- // This annotation identifies the surrogate when inspecting content
- // using the
- // custom info
- // type
- // [`SurrogateType`](/dlp/docs/reference/rest/v2beta1/InspectConfig#
- // surrogatetype).
- // This facilitates reversal of the surrogate when it occurs in free
- // text.
- //
- // In order for inspection to work properly, the name of this info type
- // must
- // not occur naturally anywhere in your data; otherwise, inspection
- // may
- // find a surrogate that does not correspond to an actual
- // identifier.
- // Therefore, choose your custom info type name carefully after
- // considering
- // what your data looks like. One way to select a name that has a high
- // chance
- // of yielding reliable detection is to include one or more unicode
- // characters
- // that are highly improbable to exist in your data.
- // For example, assuming your data is entered from a regular ASCII
- // keyboard,
- // the symbol with the hex code point 29DD might be used like
- // so:
- // ⧝MY_TOKEN_TYPE
- SurrogateInfoType *GooglePrivacyDlpV2beta1InfoType `json:"surrogateInfoType,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "CommonAlphabet") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "CommonAlphabet") to
- // include in API requests with the JSON null value. By default, fields
- // with empty values are omitted from API requests. However, any field
- // with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1CryptoReplaceFfxFpeConfig) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1CryptoReplaceFfxFpeConfig
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1CustomInfoType: Custom information type
- // provided by the user. Used to find domain-specific
- // sensitive information configurable to the data in question.
- type GooglePrivacyDlpV2beta1CustomInfoType struct {
- // Dictionary: Dictionary-based custom info type.
- Dictionary *GooglePrivacyDlpV2beta1Dictionary `json:"dictionary,omitempty"`
-
- // InfoType: Info type configuration. All custom info types must have
- // configurations
- // that do not conflict with built-in info types or other custom info
- // types.
- InfoType *GooglePrivacyDlpV2beta1InfoType `json:"infoType,omitempty"`
-
- // SurrogateType: Surrogate info type.
- SurrogateType *GooglePrivacyDlpV2beta1SurrogateType `json:"surrogateType,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Dictionary") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Dictionary") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1CustomInfoType) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1CustomInfoType
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1DatastoreKey: Record key for a finding in
- // Cloud Datastore.
- type GooglePrivacyDlpV2beta1DatastoreKey struct {
- // EntityKey: Datastore entity key.
- EntityKey *GooglePrivacyDlpV2beta1Key `json:"entityKey,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "EntityKey") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "EntityKey") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1DatastoreKey) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1DatastoreKey
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1DatastoreOptions: Options defining a data set
- // within Google Cloud Datastore.
- type GooglePrivacyDlpV2beta1DatastoreOptions struct {
- // Kind: The kind to process.
- Kind *GooglePrivacyDlpV2beta1KindExpression `json:"kind,omitempty"`
-
- // PartitionId: A partition ID identifies a grouping of entities. The
- // grouping is always
- // by project and namespace, however the namespace ID may be empty.
- PartitionId *GooglePrivacyDlpV2beta1PartitionId `json:"partitionId,omitempty"`
-
- // Projection: Properties to scan. If none are specified, all properties
- // will be scanned
- // by default.
- Projection []*GooglePrivacyDlpV2beta1Projection `json:"projection,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Kind") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Kind") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1DatastoreOptions) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1DatastoreOptions
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1DeidentificationSummary: High level summary of
- // deidentification.
- type GooglePrivacyDlpV2beta1DeidentificationSummary struct {
- // TransformationSummaries: Transformations applied to the dataset.
- TransformationSummaries []*GooglePrivacyDlpV2beta1TransformationSummary `json:"transformationSummaries,omitempty"`
-
- // TransformedBytes: Total size in bytes that were transformed in some
- // way.
- TransformedBytes int64 `json:"transformedBytes,omitempty,string"`
-
- // ForceSendFields is a list of field names (e.g.
- // "TransformationSummaries") to unconditionally include in API
- // requests. By default, fields with empty values are omitted from API
- // requests. However, any non-pointer, non-interface field appearing in
- // ForceSendFields will be sent to the server regardless of whether the
- // field is empty or not. This may be used to include empty fields in
- // Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "TransformationSummaries")
- // to include in API requests with the JSON null value. By default,
- // fields with empty values are omitted from API requests. However, any
- // field with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1DeidentificationSummary) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1DeidentificationSummary
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1DeidentifyConfig: The configuration that
- // controls how the data will change.
- type GooglePrivacyDlpV2beta1DeidentifyConfig struct {
- // InfoTypeTransformations: Treat the dataset as free-form text and
- // apply the same free text
- // transformation everywhere.
- InfoTypeTransformations *GooglePrivacyDlpV2beta1InfoTypeTransformations `json:"infoTypeTransformations,omitempty"`
-
- // RecordTransformations: Treat the dataset as structured.
- // Transformations can be applied to
- // specific locations within structured datasets, such as transforming
- // a column within a table.
- RecordTransformations *GooglePrivacyDlpV2beta1RecordTransformations `json:"recordTransformations,omitempty"`
-
- // ForceSendFields is a list of field names (e.g.
- // "InfoTypeTransformations") to unconditionally include in API
- // requests. By default, fields with empty values are omitted from API
- // requests. However, any non-pointer, non-interface field appearing in
- // ForceSendFields will be sent to the server regardless of whether the
- // field is empty or not. This may be used to include empty fields in
- // Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "InfoTypeTransformations")
- // to include in API requests with the JSON null value. By default,
- // fields with empty values are omitted from API requests. However, any
- // field with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1DeidentifyConfig) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1DeidentifyConfig
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1DeidentifyContentRequest: Request to
- // de-identify a list of items.
- type GooglePrivacyDlpV2beta1DeidentifyContentRequest struct {
- // DeidentifyConfig: Configuration for the de-identification of the list
- // of content items.
- DeidentifyConfig *GooglePrivacyDlpV2beta1DeidentifyConfig `json:"deidentifyConfig,omitempty"`
-
- // InspectConfig: Configuration for the inspector.
- InspectConfig *GooglePrivacyDlpV2beta1InspectConfig `json:"inspectConfig,omitempty"`
-
- // Items: The list of items to inspect. Up to 100 are allowed per
- // request.
- // All items will be treated as text/*.
- Items []*GooglePrivacyDlpV2beta1ContentItem `json:"items,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "DeidentifyConfig") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "DeidentifyConfig") to
- // include in API requests with the JSON null value. By default, fields
- // with empty values are omitted from API requests. However, any field
- // with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1DeidentifyContentRequest) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1DeidentifyContentRequest
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1DeidentifyContentResponse: Results of
- // de-identifying a list of items.
- type GooglePrivacyDlpV2beta1DeidentifyContentResponse struct {
- Items []*GooglePrivacyDlpV2beta1ContentItem `json:"items,omitempty"`
-
- // Summaries: A review of the transformations that took place for each
- // item.
- Summaries []*GooglePrivacyDlpV2beta1DeidentificationSummary `json:"summaries,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // ForceSendFields is a list of field names (e.g. "Items") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Items") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1DeidentifyContentResponse) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1DeidentifyContentResponse
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1Dictionary: Custom information type based on a
- // dictionary of words or phrases. This can
- // be used to match sensitive information specific to the data, such as
- // a list
- // of employee IDs or job titles.
- //
- // Dictionary words are case-insensitive and all characters other than
- // letters
- // and digits in the unicode [Basic
- // Multilingual
- // Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#
- // Basic_Multilingual_Plane)
- // will be replaced with whitespace when scanning for matches, so
- // the
- // dictionary phrase "Sam Johnson" will match all three phrases "sam
- // johnson",
- // "Sam, Johnson", and "Sam (Johnson)". Additionally, the
- // characters
- // surrounding any match must be of a different type than the
- // adjacent
- // characters within the word, so letters must be next to non-letters
- // and
- // digits next to non-digits. For example, the dictionary word "jen"
- // will
- // match the first three letters of the text "jen123" but will return
- // no
- // matches for "jennifer".
- //
- // Dictionary words containing a large number of characters that are
- // not
- // letters or digits may result in unexpected findings because such
- // characters
- // are treated as whitespace.
- type GooglePrivacyDlpV2beta1Dictionary struct {
- // WordList: List of words or phrases to search for.
- WordList *GooglePrivacyDlpV2beta1WordList `json:"wordList,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "WordList") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "WordList") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1Dictionary) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1Dictionary
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1EntityId: An entity in a dataset is a field or
- // set of fields that correspond to a
- // single person. For example, in medical records the `EntityId` might
- // be
- // a patient identifier, or for financial records it might be an
- // account
- // identifier. This message is used when generalizations or analysis
- // must be
- // consistent across multiple rows pertaining to the same entity.
- type GooglePrivacyDlpV2beta1EntityId struct {
- // Field: Composite key indicating which field contains the entity
- // identifier.
- Field *GooglePrivacyDlpV2beta1FieldId `json:"field,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Field") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Field") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1EntityId) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1EntityId
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1Expressions: A collection of expressions
- type GooglePrivacyDlpV2beta1Expressions struct {
- Conditions *GooglePrivacyDlpV2beta1Conditions `json:"conditions,omitempty"`
-
- // LogicalOperator: The operator to apply to the result of conditions.
- // Default and currently
- // only supported value is `AND`.
- //
- // Possible values:
- // "LOGICAL_OPERATOR_UNSPECIFIED"
- // "AND"
- LogicalOperator string `json:"logicalOperator,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Conditions") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Conditions") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1Expressions) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1Expressions
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1FieldId: General identifier of a data field in
- // a storage service.
- type GooglePrivacyDlpV2beta1FieldId struct {
- // ColumnName: Name describing the field.
- ColumnName string `json:"columnName,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ColumnName") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "ColumnName") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1FieldId) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1FieldId
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1FieldTransformation: The transformation to
- // apply to the field.
- type GooglePrivacyDlpV2beta1FieldTransformation struct {
- // Condition: Only apply the transformation if the condition evaluates
- // to true for the
- // given `RecordCondition`. The conditions are allowed to reference
- // fields
- // that are not used in the actual transformation. [optional]
- //
- // Example Use Cases:
- //
- // - Apply a different bucket transformation to an age column if the zip
- // code
- // column for the same record is within a specific range.
- // - Redact a field if the date of birth field is greater than 85.
- Condition *GooglePrivacyDlpV2beta1RecordCondition `json:"condition,omitempty"`
-
- // Fields: Input field(s) to apply the transformation to. [required]
- Fields []*GooglePrivacyDlpV2beta1FieldId `json:"fields,omitempty"`
-
- // InfoTypeTransformations: Treat the contents of the field as free
- // text, and selectively
- // transform content that matches an `InfoType`.
- InfoTypeTransformations *GooglePrivacyDlpV2beta1InfoTypeTransformations `json:"infoTypeTransformations,omitempty"`
-
- // PrimitiveTransformation: Apply the transformation to the entire
- // field.
- PrimitiveTransformation *GooglePrivacyDlpV2beta1PrimitiveTransformation `json:"primitiveTransformation,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Condition") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Condition") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1FieldTransformation) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1FieldTransformation
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1FileSet: Set of files to scan.
- type GooglePrivacyDlpV2beta1FileSet struct {
- // Url: The url, in the format `gs://<bucket>/<path>`. Trailing wildcard
- // in the
- // path is allowed.
- Url string `json:"url,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Url") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Url") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1FileSet) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1FileSet
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1Finding: Represents a piece of potentially
- // sensitive content.
- type GooglePrivacyDlpV2beta1Finding struct {
- // CreateTime: Timestamp when finding was detected.
- CreateTime string `json:"createTime,omitempty"`
-
- // InfoType: The type of content that might have been found.
- // Provided if requested by the `InspectConfig`.
- InfoType *GooglePrivacyDlpV2beta1InfoType `json:"infoType,omitempty"`
-
- // Likelihood: Estimate of how likely it is that the `info_type` is
- // correct.
- //
- // Possible values:
- // "LIKELIHOOD_UNSPECIFIED" - Default value; information with all
- // likelihoods is included.
- // "VERY_UNLIKELY" - Few matching elements.
- // "UNLIKELY"
- // "POSSIBLE" - Some matching elements.
- // "LIKELY"
- // "VERY_LIKELY" - Many matching elements.
- Likelihood string `json:"likelihood,omitempty"`
-
- // Location: Where the content was found.
- Location *GooglePrivacyDlpV2beta1Location `json:"location,omitempty"`
-
- // Quote: The content that was found. Even if the content is not
- // textual, it
- // may be converted to a textual representation here.
- // Provided if requested by the `InspectConfig` and the finding is
- // less than or equal to 4096 bytes long. If the finding exceeds 4096
- // bytes
- // in length, the quote may be omitted.
- Quote string `json:"quote,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "CreateTime") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "CreateTime") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1Finding) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1Finding
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1FixedSizeBucketingConfig: Buckets values based
- // on fixed size ranges. The
- // Bucketing transformation can provide all of this functionality,
- // but requires more configuration. This message is provided as a
- // convenience to
- // the user for simple bucketing strategies.
- // The resulting value will be a hyphenated string
- // of
- // lower_bound-upper_bound.
- // This can be used on data of type: double, long.
- // If the bound Value type differs from the type of data
- // being transformed, we will first attempt converting the type of the
- // data to
- // be transformed to match the type of the bound before comparing.
- type GooglePrivacyDlpV2beta1FixedSizeBucketingConfig struct {
- // BucketSize: Size of each bucket (except for minimum and maximum
- // buckets). So if
- // `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then
- // the
- // following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50,
- // 50-60,
- // 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
- // [Required].
- BucketSize float64 `json:"bucketSize,omitempty"`
-
- // LowerBound: Lower bound value of buckets. All values less than
- // `lower_bound` are
- // grouped together into a single bucket; for example if `lower_bound` =
- // 10,
- // then all values less than 10 are replaced with the value “-10”.
- // [Required].
- LowerBound *GooglePrivacyDlpV2beta1Value `json:"lowerBound,omitempty"`
-
- // UpperBound: Upper bound value of buckets. All values greater than
- // upper_bound are
- // grouped together into a single bucket; for example if `upper_bound` =
- // 89,
- // then all values greater than 89 are replaced with the value
- // “89+”.
- // [Required].
- UpperBound *GooglePrivacyDlpV2beta1Value `json:"upperBound,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "BucketSize") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "BucketSize") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1FixedSizeBucketingConfig) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1FixedSizeBucketingConfig
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- func (s *GooglePrivacyDlpV2beta1FixedSizeBucketingConfig) UnmarshalJSON(data []byte) error {
- type NoMethod GooglePrivacyDlpV2beta1FixedSizeBucketingConfig
- var s1 struct {
- BucketSize gensupport.JSONFloat64 `json:"bucketSize"`
- *NoMethod
- }
- s1.NoMethod = (*NoMethod)(s)
- if err := json.Unmarshal(data, &s1); err != nil {
- return err
- }
- s.BucketSize = float64(s1.BucketSize)
- return nil
- }
-
- // GooglePrivacyDlpV2beta1ImageLocation: Bounding box encompassing
- // detected text within an image.
- type GooglePrivacyDlpV2beta1ImageLocation struct {
- // Height: Height of the bounding box in pixels.
- Height int64 `json:"height,omitempty"`
-
- // Left: Left coordinate of the bounding box. (0,0) is upper left.
- Left int64 `json:"left,omitempty"`
-
- // Top: Top coordinate of the bounding box. (0,0) is upper left.
- Top int64 `json:"top,omitempty"`
-
- // Width: Width of the bounding box in pixels.
- Width int64 `json:"width,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Height") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Height") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1ImageLocation) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1ImageLocation
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1ImageRedactionConfig: Configuration for
- // determining how redaction of images should occur.
- type GooglePrivacyDlpV2beta1ImageRedactionConfig struct {
- // InfoType: Only one per info_type should be provided per request. If
- // not
- // specified, and redact_all_text is false, the DLP API will redact
- // all
- // text that it matches against all info_types that are found, but
- // not
- // specified in another ImageRedactionConfig.
- InfoType *GooglePrivacyDlpV2beta1InfoType `json:"infoType,omitempty"`
-
- // RedactAllText: If true, all text found in the image, regardless
- // whether it matches an
- // info_type, is redacted.
- RedactAllText bool `json:"redactAllText,omitempty"`
-
- // RedactionColor: The color to use when redacting content from an
- // image. If not specified,
- // the default is black.
- RedactionColor *GooglePrivacyDlpV2beta1Color `json:"redactionColor,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "InfoType") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "InfoType") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1ImageRedactionConfig) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1ImageRedactionConfig
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1InfoType: Type of information detected by the
- // API.
- type GooglePrivacyDlpV2beta1InfoType struct {
- // Name: Name of the information type.
- Name string `json:"name,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Name") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Name") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1InfoType) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1InfoType
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1InfoTypeDescription: Description of the
- // information type (infoType).
- type GooglePrivacyDlpV2beta1InfoTypeDescription struct {
- // Categories: List of categories this infoType belongs to.
- Categories []*GooglePrivacyDlpV2beta1CategoryDescription `json:"categories,omitempty"`
-
- // DisplayName: Human readable form of the infoType name.
- DisplayName string `json:"displayName,omitempty"`
-
- // Name: Internal name of the infoType.
- Name string `json:"name,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Categories") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Categories") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1InfoTypeDescription) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1InfoTypeDescription
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1InfoTypeLimit: Max findings configuration per
- // info type, per content item or long running
- // operation.
- type GooglePrivacyDlpV2beta1InfoTypeLimit struct {
- // InfoType: Type of information the findings limit applies to. Only one
- // limit per
- // info_type should be provided. If InfoTypeLimit does not have
- // an
- // info_type, the DLP API applies the limit against all info_types that
- // are
- // found but not specified in another InfoTypeLimit.
- InfoType *GooglePrivacyDlpV2beta1InfoType `json:"infoType,omitempty"`
-
- // MaxFindings: Max findings limit for the given infoType.
- MaxFindings int64 `json:"maxFindings,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "InfoType") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "InfoType") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1InfoTypeLimit) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1InfoTypeLimit
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1InfoTypeStatistics: Statistics regarding a
- // specific InfoType.
- type GooglePrivacyDlpV2beta1InfoTypeStatistics struct {
- // Count: Number of findings for this info type.
- Count int64 `json:"count,omitempty,string"`
-
- // InfoType: The type of finding this stat is for.
- InfoType *GooglePrivacyDlpV2beta1InfoType `json:"infoType,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Count") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Count") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1InfoTypeStatistics) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1InfoTypeStatistics
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1InfoTypeTransformation: A transformation to
- // apply to text that is identified as a specific
- // info_type.
- type GooglePrivacyDlpV2beta1InfoTypeTransformation struct {
- // InfoTypes: Info types to apply the transformation to. Empty list will
- // match all
- // available info types for this transformation.
- InfoTypes []*GooglePrivacyDlpV2beta1InfoType `json:"infoTypes,omitempty"`
-
- // PrimitiveTransformation: Primitive transformation to apply to the
- // info type. [required]
- PrimitiveTransformation *GooglePrivacyDlpV2beta1PrimitiveTransformation `json:"primitiveTransformation,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "InfoTypes") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "InfoTypes") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1InfoTypeTransformation) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1InfoTypeTransformation
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1InfoTypeTransformations: A type of
- // transformation that will scan unstructured text and
- // apply various `PrimitiveTransformation`s to each finding, where
- // the
- // transformation is applied to only values that were identified as a
- // specific
- // info_type.
- type GooglePrivacyDlpV2beta1InfoTypeTransformations struct {
- // Transformations: Transformation for each info type. Cannot specify
- // more than one
- // for a given info type. [required]
- Transformations []*GooglePrivacyDlpV2beta1InfoTypeTransformation `json:"transformations,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Transformations") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Transformations") to
- // include in API requests with the JSON null value. By default, fields
- // with empty values are omitted from API requests. However, any field
- // with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1InfoTypeTransformations) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1InfoTypeTransformations
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1InspectConfig: Configuration description of
- // the scanning process.
- // When used with redactContent only info_types and min_likelihood are
- // currently
- // used.
- type GooglePrivacyDlpV2beta1InspectConfig struct {
- // CustomInfoTypes: Custom info types provided by the user.
- CustomInfoTypes []*GooglePrivacyDlpV2beta1CustomInfoType `json:"customInfoTypes,omitempty"`
-
- // ExcludeTypes: When true, excludes type information of the findings.
- ExcludeTypes bool `json:"excludeTypes,omitempty"`
-
- // IncludeQuote: When true, a contextual quote from the data that
- // triggered a finding is
- // included in the response; see Finding.quote.
- IncludeQuote bool `json:"includeQuote,omitempty"`
-
- // InfoTypeLimits: Configuration of findings limit given for specified
- // info types.
- InfoTypeLimits []*GooglePrivacyDlpV2beta1InfoTypeLimit `json:"infoTypeLimits,omitempty"`
-
- // InfoTypes: Restricts what info_types to look for. The values must
- // correspond to
- // InfoType values returned by ListInfoTypes or found in
- // documentation.
- // Empty info_types runs all enabled detectors.
- InfoTypes []*GooglePrivacyDlpV2beta1InfoType `json:"infoTypes,omitempty"`
-
- // MaxFindings: Limits the number of findings per content item or long
- // running operation.
- MaxFindings int64 `json:"maxFindings,omitempty"`
-
- // MinLikelihood: Only returns findings equal or above this threshold.
- //
- // Possible values:
- // "LIKELIHOOD_UNSPECIFIED" - Default value; information with all
- // likelihoods is included.
- // "VERY_UNLIKELY" - Few matching elements.
- // "UNLIKELY"
- // "POSSIBLE" - Some matching elements.
- // "LIKELY"
- // "VERY_LIKELY" - Many matching elements.
- MinLikelihood string `json:"minLikelihood,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "CustomInfoTypes") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "CustomInfoTypes") to
- // include in API requests with the JSON null value. By default, fields
- // with empty values are omitted from API requests. However, any field
- // with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1InspectConfig) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1InspectConfig
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1InspectContentRequest: Request to search for
- // potentially sensitive info in a list of items.
- type GooglePrivacyDlpV2beta1InspectContentRequest struct {
- // InspectConfig: Configuration for the inspector.
- InspectConfig *GooglePrivacyDlpV2beta1InspectConfig `json:"inspectConfig,omitempty"`
-
- // Items: The list of items to inspect. Items in a single request
- // are
- // considered "related" unless inspect_config.independent_inputs is
- // true.
- // Up to 100 are allowed per request.
- Items []*GooglePrivacyDlpV2beta1ContentItem `json:"items,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "InspectConfig") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "InspectConfig") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1InspectContentRequest) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1InspectContentRequest
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1InspectContentResponse: Results of inspecting
- // a list of items.
- type GooglePrivacyDlpV2beta1InspectContentResponse struct {
- // Results: Each content_item from the request has a result in this
- // list, in the
- // same order as the request.
- Results []*GooglePrivacyDlpV2beta1InspectResult `json:"results,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // ForceSendFields is a list of field names (e.g. "Results") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Results") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1InspectContentResponse) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1InspectContentResponse
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1InspectOperationMetadata: Metadata returned
- // within GetOperation for an inspect request.
- type GooglePrivacyDlpV2beta1InspectOperationMetadata struct {
- // CreateTime: The time which this request was started.
- CreateTime string `json:"createTime,omitempty"`
-
- InfoTypeStats []*GooglePrivacyDlpV2beta1InfoTypeStatistics `json:"infoTypeStats,omitempty"`
-
- // ProcessedBytes: Total size in bytes that were processed.
- ProcessedBytes int64 `json:"processedBytes,omitempty,string"`
-
- // RequestInspectConfig: The inspect config used to create the
- // Operation.
- RequestInspectConfig *GooglePrivacyDlpV2beta1InspectConfig `json:"requestInspectConfig,omitempty"`
-
- // RequestOutputConfig: Optional location to store findings.
- RequestOutputConfig *GooglePrivacyDlpV2beta1OutputStorageConfig `json:"requestOutputConfig,omitempty"`
-
- // RequestStorageConfig: The storage config used to create the
- // Operation.
- RequestStorageConfig *GooglePrivacyDlpV2beta1StorageConfig `json:"requestStorageConfig,omitempty"`
-
- // TotalEstimatedBytes: Estimate of the number of bytes to process.
- TotalEstimatedBytes int64 `json:"totalEstimatedBytes,omitempty,string"`
-
- // ForceSendFields is a list of field names (e.g. "CreateTime") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "CreateTime") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1InspectOperationMetadata) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1InspectOperationMetadata
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1InspectOperationResult: The operational data.
- type GooglePrivacyDlpV2beta1InspectOperationResult struct {
- // Name: The server-assigned name, which is only unique within the same
- // service that
- // originally returns it. If you use the default HTTP mapping,
- // the
- // `name` should have the format of `inspect/results/{id}`.
- Name string `json:"name,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Name") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Name") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1InspectOperationResult) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1InspectOperationResult
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1InspectResult: All the findings for a single
- // scanned item.
- type GooglePrivacyDlpV2beta1InspectResult struct {
- // Findings: List of findings for an item.
- Findings []*GooglePrivacyDlpV2beta1Finding `json:"findings,omitempty"`
-
- // FindingsTruncated: If true, then this item might have more findings
- // than were returned,
- // and the findings returned are an arbitrary subset of all
- // findings.
- // The findings list might be truncated because the input items were
- // too
- // large, or because the server reached the maximum amount of
- // resources
- // allowed for a single API call. For best results, divide the input
- // into
- // smaller batches.
- FindingsTruncated bool `json:"findingsTruncated,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Findings") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Findings") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1InspectResult) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1InspectResult
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1KAnonymityConfig: k-anonymity metric, used for
- // analysis of reidentification risk.
- type GooglePrivacyDlpV2beta1KAnonymityConfig struct {
- // EntityId: Optional message indicating that each distinct entity_id
- // should not
- // contribute to the k-anonymity count more than once per equivalence
- // class.
- // If an entity_id appears on several rows with different
- // quasi-identifier
- // tuples, it will contribute to each count exactly once.
- //
- // This can lead to unexpected results. Consider a table where ID 1
- // is
- // associated to quasi-identifier "foo", ID 2 to "bar", and ID 3 to
- // *both*
- // quasi-identifiers "foo" and "bar" (on separate rows), and where this
- // ID
- // is used as entity_id. Then, the anonymity value associated to ID 3
- // will
- // be 2, even if it is the only ID to be associated to both values "foo"
- // and
- // "bar".
- EntityId *GooglePrivacyDlpV2beta1EntityId `json:"entityId,omitempty"`
-
- // QuasiIds: Set of fields to compute k-anonymity over. When multiple
- // fields are
- // specified, they are considered a single composite key. Structs
- // and
- // repeated data types are not supported; however, nested fields
- // are
- // supported so long as they are not structs themselves or nested
- // within
- // a repeated field.
- QuasiIds []*GooglePrivacyDlpV2beta1FieldId `json:"quasiIds,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "EntityId") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "EntityId") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1KAnonymityConfig) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1KAnonymityConfig
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass: The set of
- // columns' values that share the same k-anonymity value.
- type GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass struct {
- // EquivalenceClassSize: Size of the equivalence class, for example
- // number of rows with the
- // above set of values.
- EquivalenceClassSize int64 `json:"equivalenceClassSize,omitempty,string"`
-
- // QuasiIdsValues: Set of values defining the equivalence class. One
- // value per
- // quasi-identifier column in the original KAnonymity metric
- // message.
- // The order is always the same as the original request.
- QuasiIdsValues []*GooglePrivacyDlpV2beta1Value `json:"quasiIdsValues,omitempty"`
-
- // ForceSendFields is a list of field names (e.g.
- // "EquivalenceClassSize") to unconditionally include in API requests.
- // By default, fields with empty values are omitted from API requests.
- // However, any non-pointer, non-interface field appearing in
- // ForceSendFields will be sent to the server regardless of whether the
- // field is empty or not. This may be used to include empty fields in
- // Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "EquivalenceClassSize") to
- // include in API requests with the JSON null value. By default, fields
- // with empty values are omitted from API requests. However, any field
- // with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1KAnonymityHistogramBucket: Histogram bucket of
- // equivalence class sizes in the table.
- type GooglePrivacyDlpV2beta1KAnonymityHistogramBucket struct {
- // BucketSize: Total number of records in this bucket.
- BucketSize int64 `json:"bucketSize,omitempty,string"`
-
- // BucketValues: Sample of equivalence classes in this bucket. The total
- // number of
- // classes returned per bucket is capped at 20.
- BucketValues []*GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass `json:"bucketValues,omitempty"`
-
- // EquivalenceClassSizeLowerBound: Lower bound on the size of the
- // equivalence classes in this bucket.
- EquivalenceClassSizeLowerBound int64 `json:"equivalenceClassSizeLowerBound,omitempty,string"`
-
- // EquivalenceClassSizeUpperBound: Upper bound on the size of the
- // equivalence classes in this bucket.
- EquivalenceClassSizeUpperBound int64 `json:"equivalenceClassSizeUpperBound,omitempty,string"`
-
- // ForceSendFields is a list of field names (e.g. "BucketSize") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "BucketSize") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1KAnonymityHistogramBucket) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1KAnonymityHistogramBucket
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1KAnonymityResult: Result of the k-anonymity
- // computation.
- type GooglePrivacyDlpV2beta1KAnonymityResult struct {
- // EquivalenceClassHistogramBuckets: Histogram of k-anonymity
- // equivalence classes.
- EquivalenceClassHistogramBuckets []*GooglePrivacyDlpV2beta1KAnonymityHistogramBucket `json:"equivalenceClassHistogramBuckets,omitempty"`
-
- // ForceSendFields is a list of field names (e.g.
- // "EquivalenceClassHistogramBuckets") to unconditionally include in API
- // requests. By default, fields with empty values are omitted from API
- // requests. However, any non-pointer, non-interface field appearing in
- // ForceSendFields will be sent to the server regardless of whether the
- // field is empty or not. This may be used to include empty fields in
- // Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g.
- // "EquivalenceClassHistogramBuckets") to include in API requests with
- // the JSON null value. By default, fields with empty values are omitted
- // from API requests. However, any field with an empty value appearing
- // in NullFields will be sent to the server as null. It is an error if a
- // field in this list has a non-empty value. This may be used to include
- // null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1KAnonymityResult) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1KAnonymityResult
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1KMapEstimationConfig: Reidentifiability
- // metric. This corresponds to a risk model similar to what
- // is called "journalist risk" in the literature, except the attack
- // dataset is
- // statistically modeled instead of being perfectly known. This can be
- // done
- // using publicly available data (like the US Census), or using a
- // custom
- // statistical model (indicated as one or several BigQuery tables), or
- // by
- // extrapolating from the distribution of values in the input dataset.
- type GooglePrivacyDlpV2beta1KMapEstimationConfig struct {
- // AuxiliaryTables: Several auxiliary tables can be used in the
- // analysis. Each custom_tag
- // used to tag a quasi-identifiers column must appear in exactly one
- // column
- // of one auxiliary table.
- AuxiliaryTables []*GooglePrivacyDlpV2beta1AuxiliaryTable `json:"auxiliaryTables,omitempty"`
-
- // QuasiIds: Fields considered to be quasi-identifiers. No two columns
- // can have the
- // same tag. [required]
- QuasiIds []*GooglePrivacyDlpV2beta1TaggedField `json:"quasiIds,omitempty"`
-
- // RegionCode: ISO 3166-1 alpha-2 region code to use in the statistical
- // modeling.
- // Required if no column is tagged with a region-specific InfoType
- // (like
- // US_ZIP_5) or a region code.
- RegionCode string `json:"regionCode,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "AuxiliaryTables") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "AuxiliaryTables") to
- // include in API requests with the JSON null value. By default, fields
- // with empty values are omitted from API requests. However, any field
- // with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1KMapEstimationConfig) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1KMapEstimationConfig
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket: A
- // KMapEstimationHistogramBucket message with the following values:
- // min_anonymity: 3
- // max_anonymity: 5
- // frequency: 42
- // means that there are 42 records whose quasi-identifier values
- // correspond
- // to 3, 4 or 5 people in the overlying population. An important
- // particular
- // case is when min_anonymity = max_anonymity = 1: the frequency field
- // then
- // corresponds to the number of uniquely identifiable records.
- type GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket struct {
- // BucketSize: Number of records within these anonymity bounds.
- BucketSize int64 `json:"bucketSize,omitempty,string"`
-
- // BucketValues: Sample of quasi-identifier tuple values in this bucket.
- // The total
- // number of classes returned per bucket is capped at 20.
- BucketValues []*GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues `json:"bucketValues,omitempty"`
-
- // MaxAnonymity: Always greater than or equal to min_anonymity.
- MaxAnonymity int64 `json:"maxAnonymity,omitempty,string"`
-
- // MinAnonymity: Always positive.
- MinAnonymity int64 `json:"minAnonymity,omitempty,string"`
-
- // ForceSendFields is a list of field names (e.g. "BucketSize") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "BucketSize") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues: A tuple of values
- // for the quasi-identifier columns.
- type GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues struct {
- // EstimatedAnonymity: The estimated anonymity for these
- // quasi-identifier values.
- EstimatedAnonymity int64 `json:"estimatedAnonymity,omitempty,string"`
-
- // QuasiIdsValues: The quasi-identifier values.
- QuasiIdsValues []*GooglePrivacyDlpV2beta1Value `json:"quasiIdsValues,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "EstimatedAnonymity")
- // to unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "EstimatedAnonymity") to
- // include in API requests with the JSON null value. By default, fields
- // with empty values are omitted from API requests. However, any field
- // with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1KMapEstimationResult: Result of the
- // reidentifiability analysis. Note that these results are
- // an
- // estimation, not exact values.
- type GooglePrivacyDlpV2beta1KMapEstimationResult struct {
- // KMapEstimationHistogram: The intervals [min_anonymity, max_anonymity]
- // do not overlap. If a value
- // doesn't correspond to any such interval, the associated frequency
- // is
- // zero. For example, the following records:
- // {min_anonymity: 1, max_anonymity: 1, frequency: 17}
- // {min_anonymity: 2, max_anonymity: 3, frequency: 42}
- // {min_anonymity: 5, max_anonymity: 10, frequency: 99}
- // mean that there are no record with an estimated anonymity of 4, 5,
- // or
- // larger than 10.
- KMapEstimationHistogram []*GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket `json:"kMapEstimationHistogram,omitempty"`
-
- // ForceSendFields is a list of field names (e.g.
- // "KMapEstimationHistogram") to unconditionally include in API
- // requests. By default, fields with empty values are omitted from API
- // requests. However, any non-pointer, non-interface field appearing in
- // ForceSendFields will be sent to the server regardless of whether the
- // field is empty or not. This may be used to include empty fields in
- // Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "KMapEstimationHistogram")
- // to include in API requests with the JSON null value. By default,
- // fields with empty values are omitted from API requests. However, any
- // field with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1KMapEstimationResult) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1KMapEstimationResult
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1Key: A unique identifier for a Datastore
- // entity.
- // If a key's partition ID or any of its path kinds or names
- // are
- // reserved/read-only, the key is reserved/read-only.
- // A reserved/read-only key is forbidden in certain documented contexts.
- type GooglePrivacyDlpV2beta1Key struct {
- // PartitionId: Entities are partitioned into subsets, currently
- // identified by a project
- // ID and namespace ID.
- // Queries are scoped to a single partition.
- PartitionId *GooglePrivacyDlpV2beta1PartitionId `json:"partitionId,omitempty"`
-
- // Path: The entity path.
- // An entity path consists of one or more elements composed of a kind
- // and a
- // string or numerical identifier, which identify entities. The
- // first
- // element identifies a _root entity_, the second element identifies
- // a _child_ of the root entity, the third element identifies a child of
- // the
- // second entity, and so forth. The entities identified by all prefixes
- // of
- // the path are called the element's _ancestors_.
- //
- // A path can never be empty, and a path can have at most 100 elements.
- Path []*GooglePrivacyDlpV2beta1PathElement `json:"path,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "PartitionId") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "PartitionId") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1Key) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1Key
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1KindExpression: A representation of a
- // Datastore kind.
- type GooglePrivacyDlpV2beta1KindExpression struct {
- // Name: The name of the kind.
- Name string `json:"name,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Name") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Name") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1KindExpression) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1KindExpression
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1KmsWrappedCryptoKey: Include to use an
- // existing data crypto key wrapped by KMS.
- // Authorization requires the following IAM permissions when sending a
- // request
- // to perform a crypto transformation using a kms-wrapped crypto
- // key:
- // dlp.kms.encrypt
- type GooglePrivacyDlpV2beta1KmsWrappedCryptoKey struct {
- // CryptoKeyName: The resource name of the KMS CryptoKey to use for
- // unwrapping. [required]
- CryptoKeyName string `json:"cryptoKeyName,omitempty"`
-
- // WrappedKey: The wrapped data crypto key. [required]
- WrappedKey string `json:"wrappedKey,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "CryptoKeyName") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "CryptoKeyName") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1KmsWrappedCryptoKey) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1KmsWrappedCryptoKey
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1LDiversityConfig: l-diversity metric, used for
- // analysis of reidentification risk.
- type GooglePrivacyDlpV2beta1LDiversityConfig struct {
- // QuasiIds: Set of quasi-identifiers indicating how equivalence classes
- // are
- // defined for the l-diversity computation. When multiple fields
- // are
- // specified, they are considered a single composite key.
- QuasiIds []*GooglePrivacyDlpV2beta1FieldId `json:"quasiIds,omitempty"`
-
- // SensitiveAttribute: Sensitive field for computing the l-value.
- SensitiveAttribute *GooglePrivacyDlpV2beta1FieldId `json:"sensitiveAttribute,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "QuasiIds") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "QuasiIds") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1LDiversityConfig) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1LDiversityConfig
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1LDiversityEquivalenceClass: The set of
- // columns' values that share the same l-diversity value.
- type GooglePrivacyDlpV2beta1LDiversityEquivalenceClass struct {
- // EquivalenceClassSize: Size of the k-anonymity equivalence class.
- EquivalenceClassSize int64 `json:"equivalenceClassSize,omitempty,string"`
-
- // NumDistinctSensitiveValues: Number of distinct sensitive values in
- // this equivalence class.
- NumDistinctSensitiveValues int64 `json:"numDistinctSensitiveValues,omitempty,string"`
-
- // QuasiIdsValues: Quasi-identifier values defining the k-anonymity
- // equivalence
- // class. The order is always the same as the original request.
- QuasiIdsValues []*GooglePrivacyDlpV2beta1Value `json:"quasiIdsValues,omitempty"`
-
- // TopSensitiveValues: Estimated frequencies of top sensitive values.
- TopSensitiveValues []*GooglePrivacyDlpV2beta1ValueFrequency `json:"topSensitiveValues,omitempty"`
-
- // ForceSendFields is a list of field names (e.g.
- // "EquivalenceClassSize") to unconditionally include in API requests.
- // By default, fields with empty values are omitted from API requests.
- // However, any non-pointer, non-interface field appearing in
- // ForceSendFields will be sent to the server regardless of whether the
- // field is empty or not. This may be used to include empty fields in
- // Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "EquivalenceClassSize") to
- // include in API requests with the JSON null value. By default, fields
- // with empty values are omitted from API requests. However, any field
- // with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1LDiversityEquivalenceClass) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1LDiversityEquivalenceClass
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1LDiversityHistogramBucket: Histogram bucket of
- // sensitive value frequencies in the table.
- type GooglePrivacyDlpV2beta1LDiversityHistogramBucket struct {
- // BucketSize: Total number of records in this bucket.
- BucketSize int64 `json:"bucketSize,omitempty,string"`
-
- // BucketValues: Sample of equivalence classes in this bucket. The total
- // number of
- // classes returned per bucket is capped at 20.
- BucketValues []*GooglePrivacyDlpV2beta1LDiversityEquivalenceClass `json:"bucketValues,omitempty"`
-
- // SensitiveValueFrequencyLowerBound: Lower bound on the sensitive value
- // frequencies of the equivalence
- // classes in this bucket.
- SensitiveValueFrequencyLowerBound int64 `json:"sensitiveValueFrequencyLowerBound,omitempty,string"`
-
- // SensitiveValueFrequencyUpperBound: Upper bound on the sensitive value
- // frequencies of the equivalence
- // classes in this bucket.
- SensitiveValueFrequencyUpperBound int64 `json:"sensitiveValueFrequencyUpperBound,omitempty,string"`
-
- // ForceSendFields is a list of field names (e.g. "BucketSize") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "BucketSize") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1LDiversityHistogramBucket) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1LDiversityHistogramBucket
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1LDiversityResult: Result of the l-diversity
- // computation.
- type GooglePrivacyDlpV2beta1LDiversityResult struct {
- // SensitiveValueFrequencyHistogramBuckets: Histogram of l-diversity
- // equivalence class sensitive value frequencies.
- SensitiveValueFrequencyHistogramBuckets []*GooglePrivacyDlpV2beta1LDiversityHistogramBucket `json:"sensitiveValueFrequencyHistogramBuckets,omitempty"`
-
- // ForceSendFields is a list of field names (e.g.
- // "SensitiveValueFrequencyHistogramBuckets") to unconditionally include
- // in API requests. By default, fields with empty values are omitted
- // from API requests. However, any non-pointer, non-interface field
- // appearing in ForceSendFields will be sent to the server regardless of
- // whether the field is empty or not. This may be used to include empty
- // fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g.
- // "SensitiveValueFrequencyHistogramBuckets") to include in API requests
- // with the JSON null value. By default, fields with empty values are
- // omitted from API requests. However, any field with an empty value
- // appearing in NullFields will be sent to the server as null. It is an
- // error if a field in this list has a non-empty value. This may be used
- // to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1LDiversityResult) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1LDiversityResult
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1ListInfoTypesResponse: Response to the
- // ListInfoTypes request.
- type GooglePrivacyDlpV2beta1ListInfoTypesResponse struct {
- // InfoTypes: Set of sensitive info types belonging to a category.
- InfoTypes []*GooglePrivacyDlpV2beta1InfoTypeDescription `json:"infoTypes,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // ForceSendFields is a list of field names (e.g. "InfoTypes") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "InfoTypes") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1ListInfoTypesResponse) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1ListInfoTypesResponse
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1ListInspectFindingsResponse: Response to the
- // ListInspectFindings request.
- type GooglePrivacyDlpV2beta1ListInspectFindingsResponse struct {
- // NextPageToken: If not empty, indicates that there may be more results
- // that match the
- // request; this value should be passed in a new
- // `ListInspectFindingsRequest`.
- NextPageToken string `json:"nextPageToken,omitempty"`
-
- // Result: The results.
- Result *GooglePrivacyDlpV2beta1InspectResult `json:"result,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // ForceSendFields is a list of field names (e.g. "NextPageToken") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "NextPageToken") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1ListInspectFindingsResponse) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1ListInspectFindingsResponse
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1ListRootCategoriesResponse: Response for
- // ListRootCategories request.
- type GooglePrivacyDlpV2beta1ListRootCategoriesResponse struct {
- // Categories: List of all into type categories supported by the API.
- Categories []*GooglePrivacyDlpV2beta1CategoryDescription `json:"categories,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // ForceSendFields is a list of field names (e.g. "Categories") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Categories") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1ListRootCategoriesResponse) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1ListRootCategoriesResponse
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1Location: Specifies the location of the
- // finding.
- type GooglePrivacyDlpV2beta1Location struct {
- // ByteRange: Zero-based byte offsets delimiting the finding.
- // These are relative to the finding's containing element.
- // Note that when the content is not textual, this references
- // the UTF-8 encoded textual representation of the content.
- // Omitted if content is an image.
- ByteRange *GooglePrivacyDlpV2beta1Range `json:"byteRange,omitempty"`
-
- // CodepointRange: Unicode character offsets delimiting the
- // finding.
- // These are relative to the finding's containing element.
- // Provided when the content is text.
- CodepointRange *GooglePrivacyDlpV2beta1Range `json:"codepointRange,omitempty"`
-
- // FieldId: The pointer to the property or cell that contained the
- // finding.
- // Provided when the finding's containing element is a cell in a
- // table
- // or a property of storage object.
- FieldId *GooglePrivacyDlpV2beta1FieldId `json:"fieldId,omitempty"`
-
- // ImageBoxes: The area within the image that contained the
- // finding.
- // Provided when the content is an image.
- ImageBoxes []*GooglePrivacyDlpV2beta1ImageLocation `json:"imageBoxes,omitempty"`
-
- // RecordKey: The pointer to the record in storage that contained the
- // field the
- // finding was found in.
- // Provided when the finding's containing element is a property
- // of a storage object.
- RecordKey *GooglePrivacyDlpV2beta1RecordKey `json:"recordKey,omitempty"`
-
- // TableLocation: The pointer to the row of the table that contained the
- // finding.
- // Provided when the finding's containing element is a cell of a table.
- TableLocation *GooglePrivacyDlpV2beta1TableLocation `json:"tableLocation,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "ByteRange") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "ByteRange") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1Location) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1Location
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1NumericalStatsConfig: Compute numerical stats
- // over an individual column, including
- // min, max, and quantiles.
- type GooglePrivacyDlpV2beta1NumericalStatsConfig struct {
- // Field: Field to compute numerical stats on. Supported types
- // are
- // integer, float, date, datetime, timestamp, time.
- Field *GooglePrivacyDlpV2beta1FieldId `json:"field,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Field") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Field") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1NumericalStatsConfig) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1NumericalStatsConfig
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1NumericalStatsResult: Result of the numerical
- // stats computation.
- type GooglePrivacyDlpV2beta1NumericalStatsResult struct {
- // MaxValue: Maximum value appearing in the column.
- MaxValue *GooglePrivacyDlpV2beta1Value `json:"maxValue,omitempty"`
-
- // MinValue: Minimum value appearing in the column.
- MinValue *GooglePrivacyDlpV2beta1Value `json:"minValue,omitempty"`
-
- // QuantileValues: List of 99 values that partition the set of field
- // values into 100 equal
- // sized buckets.
- QuantileValues []*GooglePrivacyDlpV2beta1Value `json:"quantileValues,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "MaxValue") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "MaxValue") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1NumericalStatsResult) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1NumericalStatsResult
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1OperationConfig: Additional configuration for
- // inspect long running operations.
- type GooglePrivacyDlpV2beta1OperationConfig struct {
- // MaxItemFindings: Max number of findings per file, Datastore entity,
- // or database row.
- MaxItemFindings int64 `json:"maxItemFindings,omitempty,string"`
-
- // ForceSendFields is a list of field names (e.g. "MaxItemFindings") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "MaxItemFindings") to
- // include in API requests with the JSON null value. By default, fields
- // with empty values are omitted from API requests. However, any field
- // with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1OperationConfig) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1OperationConfig
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1OutputStorageConfig: Cloud repository for
- // storing output.
- type GooglePrivacyDlpV2beta1OutputStorageConfig struct {
- // StoragePath: The path to a Google Cloud Storage location to store
- // output.
- // The bucket must already exist and
- // the Google APIs service account for DLP must have write permission
- // to
- // write to the given bucket.
- // Results are split over multiple csv files with each file name
- // matching
- // the pattern "[operation_id]_[count].csv", for
- // example
- // `3094877188788974909_1.csv`. The `operation_id` matches
- // the
- // identifier for the Operation, and the `count` is a counter used
- // for
- // tracking the number of files written.
- //
- // The CSV file(s) contain the following columns regardless of storage
- // type
- // scanned:
- // - id
- // - info_type
- // - likelihood
- // - byte size of finding
- // - quote
- // - timestamp
- //
- // For Cloud Storage the next columns are:
- //
- // - file_path
- // - start_offset
- //
- // For Cloud Datastore the next columns are:
- //
- // - project_id
- // - namespace_id
- // - path
- // - column_name
- // - offset
- //
- // For BigQuery the next columns are:
- //
- // - row_number
- // - project_id
- // - dataset_id
- // - table_id
- StoragePath *GooglePrivacyDlpV2beta1CloudStoragePath `json:"storagePath,omitempty"`
-
- // Table: Store findings in a new table in the dataset.
- Table *GooglePrivacyDlpV2beta1BigQueryTable `json:"table,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "StoragePath") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "StoragePath") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1OutputStorageConfig) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1OutputStorageConfig
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1PartitionId: Datastore partition ID.
- // A partition ID identifies a grouping of entities. The grouping is
- // always
- // by project and namespace, however the namespace ID may be empty.
- //
- // A partition ID contains several dimensions:
- // project ID and namespace ID.
- type GooglePrivacyDlpV2beta1PartitionId struct {
- // NamespaceId: If not empty, the ID of the namespace to which the
- // entities belong.
- NamespaceId string `json:"namespaceId,omitempty"`
-
- // ProjectId: The ID of the project to which the entities belong.
- ProjectId string `json:"projectId,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "NamespaceId") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "NamespaceId") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1PartitionId) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1PartitionId
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1PathElement: A (kind, ID/name) pair used to
- // construct a key path.
- //
- // If either name or ID is set, the element is complete.
- // If neither is set, the element is incomplete.
- type GooglePrivacyDlpV2beta1PathElement struct {
- // Id: The auto-allocated ID of the entity.
- // Never equal to zero. Values less than zero are discouraged and may
- // not
- // be supported in the future.
- Id int64 `json:"id,omitempty,string"`
-
- // Kind: The kind of the entity.
- // A kind matching regex `__.*__` is reserved/read-only.
- // A kind must not contain more than 1500 bytes when UTF-8
- // encoded.
- // Cannot be "".
- Kind string `json:"kind,omitempty"`
-
- // Name: The name of the entity.
- // A name matching regex `__.*__` is reserved/read-only.
- // A name must not be more than 1500 bytes when UTF-8 encoded.
- // Cannot be "".
- Name string `json:"name,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Id") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Id") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1PathElement) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1PathElement
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1PrimitiveTransformation: A rule for
- // transforming a value.
- type GooglePrivacyDlpV2beta1PrimitiveTransformation struct {
- BucketingConfig *GooglePrivacyDlpV2beta1BucketingConfig `json:"bucketingConfig,omitempty"`
-
- CharacterMaskConfig *GooglePrivacyDlpV2beta1CharacterMaskConfig `json:"characterMaskConfig,omitempty"`
-
- CryptoHashConfig *GooglePrivacyDlpV2beta1CryptoHashConfig `json:"cryptoHashConfig,omitempty"`
-
- CryptoReplaceFfxFpeConfig *GooglePrivacyDlpV2beta1CryptoReplaceFfxFpeConfig `json:"cryptoReplaceFfxFpeConfig,omitempty"`
-
- FixedSizeBucketingConfig *GooglePrivacyDlpV2beta1FixedSizeBucketingConfig `json:"fixedSizeBucketingConfig,omitempty"`
-
- RedactConfig *GooglePrivacyDlpV2beta1RedactConfig `json:"redactConfig,omitempty"`
-
- ReplaceConfig *GooglePrivacyDlpV2beta1ReplaceValueConfig `json:"replaceConfig,omitempty"`
-
- ReplaceWithInfoTypeConfig *GooglePrivacyDlpV2beta1ReplaceWithInfoTypeConfig `json:"replaceWithInfoTypeConfig,omitempty"`
-
- TimePartConfig *GooglePrivacyDlpV2beta1TimePartConfig `json:"timePartConfig,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "BucketingConfig") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "BucketingConfig") to
- // include in API requests with the JSON null value. By default, fields
- // with empty values are omitted from API requests. However, any field
- // with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1PrimitiveTransformation) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1PrimitiveTransformation
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1PrivacyMetric: Privacy metric to compute for
- // reidentification risk analysis.
- type GooglePrivacyDlpV2beta1PrivacyMetric struct {
- CategoricalStatsConfig *GooglePrivacyDlpV2beta1CategoricalStatsConfig `json:"categoricalStatsConfig,omitempty"`
-
- KAnonymityConfig *GooglePrivacyDlpV2beta1KAnonymityConfig `json:"kAnonymityConfig,omitempty"`
-
- KMapEstimationConfig *GooglePrivacyDlpV2beta1KMapEstimationConfig `json:"kMapEstimationConfig,omitempty"`
-
- LDiversityConfig *GooglePrivacyDlpV2beta1LDiversityConfig `json:"lDiversityConfig,omitempty"`
-
- NumericalStatsConfig *GooglePrivacyDlpV2beta1NumericalStatsConfig `json:"numericalStatsConfig,omitempty"`
-
- // ForceSendFields is a list of field names (e.g.
- // "CategoricalStatsConfig") to unconditionally include in API requests.
- // By default, fields with empty values are omitted from API requests.
- // However, any non-pointer, non-interface field appearing in
- // ForceSendFields will be sent to the server regardless of whether the
- // field is empty or not. This may be used to include empty fields in
- // Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "CategoricalStatsConfig")
- // to include in API requests with the JSON null value. By default,
- // fields with empty values are omitted from API requests. However, any
- // field with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1PrivacyMetric) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1PrivacyMetric
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1Projection: A representation of a Datastore
- // property in a projection.
- type GooglePrivacyDlpV2beta1Projection struct {
- // Property: The property to project.
- Property *GooglePrivacyDlpV2beta1PropertyReference `json:"property,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Property") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Property") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1Projection) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1Projection
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1PropertyReference: A reference to a property
- // relative to the Datastore kind expressions.
- type GooglePrivacyDlpV2beta1PropertyReference struct {
- // Name: The name of the property.
- // If name includes "."s, it may be interpreted as a property name path.
- Name string `json:"name,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Name") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Name") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1PropertyReference) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1PropertyReference
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1QuasiIdField: A quasi-identifier column has a
- // custom_tag, used to know which column
- // in the data corresponds to which column in the statistical model.
- type GooglePrivacyDlpV2beta1QuasiIdField struct {
- CustomTag string `json:"customTag,omitempty"`
-
- Field *GooglePrivacyDlpV2beta1FieldId `json:"field,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "CustomTag") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "CustomTag") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1QuasiIdField) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1QuasiIdField
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1Range: Generic half-open interval [start, end)
- type GooglePrivacyDlpV2beta1Range struct {
- // End: Index of the last character of the range (exclusive).
- End int64 `json:"end,omitempty,string"`
-
- // Start: Index of the first character of the range (inclusive).
- Start int64 `json:"start,omitempty,string"`
-
- // ForceSendFields is a list of field names (e.g. "End") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "End") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1Range) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1Range
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1RecordCondition: A condition for determining
- // whether a transformation should be applied to
- // a field.
- type GooglePrivacyDlpV2beta1RecordCondition struct {
- Expressions *GooglePrivacyDlpV2beta1Expressions `json:"expressions,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Expressions") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Expressions") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1RecordCondition) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1RecordCondition
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1RecordKey: Message for a unique key indicating
- // a record that contains a finding.
- type GooglePrivacyDlpV2beta1RecordKey struct {
- BigQueryKey *GooglePrivacyDlpV2beta1BigQueryKey `json:"bigQueryKey,omitempty"`
-
- CloudStorageKey *GooglePrivacyDlpV2beta1CloudStorageKey `json:"cloudStorageKey,omitempty"`
-
- DatastoreKey *GooglePrivacyDlpV2beta1DatastoreKey `json:"datastoreKey,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "BigQueryKey") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "BigQueryKey") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1RecordKey) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1RecordKey
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1RecordSuppression: Configuration to suppress
- // records whose suppression conditions evaluate to
- // true.
- type GooglePrivacyDlpV2beta1RecordSuppression struct {
- Condition *GooglePrivacyDlpV2beta1RecordCondition `json:"condition,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Condition") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Condition") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1RecordSuppression) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1RecordSuppression
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1RecordTransformations: A type of
- // transformation that is applied over structured data such as a
- // table.
- type GooglePrivacyDlpV2beta1RecordTransformations struct {
- // FieldTransformations: Transform the record by applying various field
- // transformations.
- FieldTransformations []*GooglePrivacyDlpV2beta1FieldTransformation `json:"fieldTransformations,omitempty"`
-
- // RecordSuppressions: Configuration defining which records get
- // suppressed entirely. Records that
- // match any suppression rule are omitted from the output [optional].
- RecordSuppressions []*GooglePrivacyDlpV2beta1RecordSuppression `json:"recordSuppressions,omitempty"`
-
- // ForceSendFields is a list of field names (e.g.
- // "FieldTransformations") to unconditionally include in API requests.
- // By default, fields with empty values are omitted from API requests.
- // However, any non-pointer, non-interface field appearing in
- // ForceSendFields will be sent to the server regardless of whether the
- // field is empty or not. This may be used to include empty fields in
- // Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "FieldTransformations") to
- // include in API requests with the JSON null value. By default, fields
- // with empty values are omitted from API requests. However, any field
- // with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1RecordTransformations) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1RecordTransformations
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1RedactConfig: Redact a given value. For
- // example, if used with an `InfoTypeTransformation`
- // transforming PHONE_NUMBER, and input 'My phone number is
- // 206-555-0123', the
- // output would be 'My phone number is '.
- type GooglePrivacyDlpV2beta1RedactConfig struct {
- }
-
- // GooglePrivacyDlpV2beta1RedactContentRequest: Request to search for
- // potentially sensitive info in a list of items
- // and replace it with a default or provided content.
- type GooglePrivacyDlpV2beta1RedactContentRequest struct {
- // ImageRedactionConfigs: The configuration for specifying what content
- // to redact from images.
- ImageRedactionConfigs []*GooglePrivacyDlpV2beta1ImageRedactionConfig `json:"imageRedactionConfigs,omitempty"`
-
- // InspectConfig: Configuration for the inspector.
- InspectConfig *GooglePrivacyDlpV2beta1InspectConfig `json:"inspectConfig,omitempty"`
-
- // Items: The list of items to inspect. Up to 100 are allowed per
- // request.
- Items []*GooglePrivacyDlpV2beta1ContentItem `json:"items,omitempty"`
-
- // ReplaceConfigs: The strings to replace findings text findings with.
- // Must specify at least
- // one of these or one ImageRedactionConfig if redacting images.
- ReplaceConfigs []*GooglePrivacyDlpV2beta1ReplaceConfig `json:"replaceConfigs,omitempty"`
-
- // ForceSendFields is a list of field names (e.g.
- // "ImageRedactionConfigs") to unconditionally include in API requests.
- // By default, fields with empty values are omitted from API requests.
- // However, any non-pointer, non-interface field appearing in
- // ForceSendFields will be sent to the server regardless of whether the
- // field is empty or not. This may be used to include empty fields in
- // Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "ImageRedactionConfigs") to
- // include in API requests with the JSON null value. By default, fields
- // with empty values are omitted from API requests. However, any field
- // with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1RedactContentRequest) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1RedactContentRequest
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1RedactContentResponse: Results of redacting a
- // list of items.
- type GooglePrivacyDlpV2beta1RedactContentResponse struct {
- // Items: The redacted content.
- Items []*GooglePrivacyDlpV2beta1ContentItem `json:"items,omitempty"`
-
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
-
- // ForceSendFields is a list of field names (e.g. "Items") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Items") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1RedactContentResponse) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1RedactContentResponse
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- type GooglePrivacyDlpV2beta1ReplaceConfig struct {
- // InfoType: Type of information to replace. Only one ReplaceConfig per
- // info_type
- // should be provided. If ReplaceConfig does not have an info_type, the
- // DLP
- // API matches it against all info_types that are found but not
- // specified in
- // another ReplaceConfig.
- InfoType *GooglePrivacyDlpV2beta1InfoType `json:"infoType,omitempty"`
-
- // ReplaceWith: Content replacing sensitive information of given type.
- // Max 256 chars.
- ReplaceWith string `json:"replaceWith,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "InfoType") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "InfoType") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1ReplaceConfig) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1ReplaceConfig
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1ReplaceValueConfig: Replace each input value
- // with a given `Value`.
- type GooglePrivacyDlpV2beta1ReplaceValueConfig struct {
- // NewValue: Value to replace it with.
- NewValue *GooglePrivacyDlpV2beta1Value `json:"newValue,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "NewValue") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "NewValue") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1ReplaceValueConfig) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1ReplaceValueConfig
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1ReplaceWithInfoTypeConfig: Replace each
- // matching finding with the name of the info_type.
- type GooglePrivacyDlpV2beta1ReplaceWithInfoTypeConfig struct {
- }
-
- // GooglePrivacyDlpV2beta1RiskAnalysisOperationMetadata: Metadata
- // returned within
- // the
- // [`riskAnalysis.operations.get`](/dlp/docs/reference/rest/v2beta1/r
- // iskAnalysis.operations/get)
- // for risk analysis.
- type GooglePrivacyDlpV2beta1RiskAnalysisOperationMetadata struct {
- // CreateTime: The time which this request was started.
- CreateTime string `json:"createTime,omitempty"`
-
- // RequestedPrivacyMetric: Privacy metric to compute.
- RequestedPrivacyMetric *GooglePrivacyDlpV2beta1PrivacyMetric `json:"requestedPrivacyMetric,omitempty"`
-
- // RequestedSourceTable: Input dataset to compute metrics over.
- RequestedSourceTable *GooglePrivacyDlpV2beta1BigQueryTable `json:"requestedSourceTable,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "CreateTime") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "CreateTime") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1RiskAnalysisOperationMetadata) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1RiskAnalysisOperationMetadata
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1RiskAnalysisOperationResult: Result of a risk
- // analysis
- // [`Operation`](/dlp/docs/reference/rest/v2beta1/inspect.operat
- // ions)
- // request.
- type GooglePrivacyDlpV2beta1RiskAnalysisOperationResult struct {
- CategoricalStatsResult *GooglePrivacyDlpV2beta1CategoricalStatsResult `json:"categoricalStatsResult,omitempty"`
-
- KAnonymityResult *GooglePrivacyDlpV2beta1KAnonymityResult `json:"kAnonymityResult,omitempty"`
-
- KMapEstimationResult *GooglePrivacyDlpV2beta1KMapEstimationResult `json:"kMapEstimationResult,omitempty"`
-
- LDiversityResult *GooglePrivacyDlpV2beta1LDiversityResult `json:"lDiversityResult,omitempty"`
-
- NumericalStatsResult *GooglePrivacyDlpV2beta1NumericalStatsResult `json:"numericalStatsResult,omitempty"`
-
- // ForceSendFields is a list of field names (e.g.
- // "CategoricalStatsResult") to unconditionally include in API requests.
- // By default, fields with empty values are omitted from API requests.
- // However, any non-pointer, non-interface field appearing in
- // ForceSendFields will be sent to the server regardless of whether the
- // field is empty or not. This may be used to include empty fields in
- // Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "CategoricalStatsResult")
- // to include in API requests with the JSON null value. By default,
- // fields with empty values are omitted from API requests. However, any
- // field with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1RiskAnalysisOperationResult) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1RiskAnalysisOperationResult
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- type GooglePrivacyDlpV2beta1Row struct {
- Values []*GooglePrivacyDlpV2beta1Value `json:"values,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Values") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Values") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1Row) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1Row
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1StorageConfig: Shared message indicating Cloud
- // storage type.
- type GooglePrivacyDlpV2beta1StorageConfig struct {
- // BigQueryOptions: BigQuery options specification.
- BigQueryOptions *GooglePrivacyDlpV2beta1BigQueryOptions `json:"bigQueryOptions,omitempty"`
-
- // CloudStorageOptions: Google Cloud Storage options specification.
- CloudStorageOptions *GooglePrivacyDlpV2beta1CloudStorageOptions `json:"cloudStorageOptions,omitempty"`
-
- // DatastoreOptions: Google Cloud Datastore options specification.
- DatastoreOptions *GooglePrivacyDlpV2beta1DatastoreOptions `json:"datastoreOptions,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "BigQueryOptions") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "BigQueryOptions") to
- // include in API requests with the JSON null value. By default, fields
- // with empty values are omitted from API requests. However, any field
- // with an empty value appearing in NullFields will be sent to the
- // server as null. It is an error if a field in this list has a
- // non-empty value. This may be used to include null fields in Patch
- // requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1StorageConfig) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1StorageConfig
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1SummaryResult: A collection that informs the
- // user the number of times a particular
- // `TransformationResultCode` and error details occurred.
- type GooglePrivacyDlpV2beta1SummaryResult struct {
- // Possible values:
- // "TRANSFORMATION_RESULT_CODE_UNSPECIFIED"
- // "SUCCESS"
- // "ERROR"
- Code string `json:"code,omitempty"`
-
- Count int64 `json:"count,omitempty,string"`
-
- // Details: A place for warnings or errors to show up if a
- // transformation didn't
- // work as expected.
- Details string `json:"details,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Code") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Code") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1SummaryResult) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1SummaryResult
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1SurrogateType: Message for detecting output
- // from deidentification transformations
- // such
- // as
- // [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2beta1/cont
- // ent/deidentify#CryptoReplaceFfxFpeConfig).
- // These types of transformations are
- // those that perform pseudonymization, thereby producing a "surrogate"
- // as
- // output. This should be used in conjunction with a field on
- // the
- // transformation such as `surrogate_info_type`. This custom info type
- // does
- // not support the use of `detection_rules`.
- type GooglePrivacyDlpV2beta1SurrogateType struct {
- }
-
- // GooglePrivacyDlpV2beta1Table: Structured content to inspect. Up to
- // 50,000 `Value`s per request allowed.
- type GooglePrivacyDlpV2beta1Table struct {
- Headers []*GooglePrivacyDlpV2beta1FieldId `json:"headers,omitempty"`
-
- Rows []*GooglePrivacyDlpV2beta1Row `json:"rows,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Headers") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Headers") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1Table) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1Table
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1TableLocation: Location of a finding within a
- // table.
- type GooglePrivacyDlpV2beta1TableLocation struct {
- // RowIndex: The zero-based index of the row where the finding is
- // located.
- RowIndex int64 `json:"rowIndex,omitempty,string"`
-
- // ForceSendFields is a list of field names (e.g. "RowIndex") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "RowIndex") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1TableLocation) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1TableLocation
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1TaggedField: A column with a semantic tag
- // attached.
- type GooglePrivacyDlpV2beta1TaggedField struct {
- // CustomTag: A column can be tagged with a custom tag. In this case,
- // the user must
- // indicate an auxiliary table that contains statistical information
- // on
- // the possible values of this column (below).
- CustomTag string `json:"customTag,omitempty"`
-
- // Field: Identifies the column. [required]
- Field *GooglePrivacyDlpV2beta1FieldId `json:"field,omitempty"`
-
- // Inferred: If no semantic tag is indicated, we infer the statistical
- // model from
- // the distribution of values in the input data
- Inferred *GoogleProtobufEmpty `json:"inferred,omitempty"`
-
- // InfoType: A column can be tagged with a InfoType to use the relevant
- // public
- // dataset as a statistical model of population, if available.
- // We
- // currently support US ZIP codes, region codes, ages and genders.
- InfoType *GooglePrivacyDlpV2beta1InfoType `json:"infoType,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "CustomTag") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "CustomTag") to include in
- // API requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1TaggedField) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1TaggedField
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1TimePartConfig: For use with `Date`,
- // `Timestamp`, and `TimeOfDay`, extract or preserve a
- // portion of the value.
- type GooglePrivacyDlpV2beta1TimePartConfig struct {
- // Possible values:
- // "TIME_PART_UNSPECIFIED"
- // "YEAR" - [000-9999]
- // "MONTH" - [1-12]
- // "DAY_OF_MONTH" - [1-31]
- // "DAY_OF_WEEK" - [1-7]
- // "WEEK_OF_YEAR" - [1-52]
- // "HOUR_OF_DAY" - [0-24]
- PartToExtract string `json:"partToExtract,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "PartToExtract") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "PartToExtract") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1TimePartConfig) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1TimePartConfig
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1TransformationSummary: Summary of a single
- // tranformation.
- // Only one of 'transformation', 'field_transformation', or
- // 'record_suppress'
- // will be set.
- type GooglePrivacyDlpV2beta1TransformationSummary struct {
- // Field: Set if the transformation was limited to a specific FieldId.
- Field *GooglePrivacyDlpV2beta1FieldId `json:"field,omitempty"`
-
- // FieldTransformations: The field transformation that was applied.
- // If multiple field transformations are requested for a single
- // field,
- // this list will contain all of them; otherwise, only one is supplied.
- FieldTransformations []*GooglePrivacyDlpV2beta1FieldTransformation `json:"fieldTransformations,omitempty"`
-
- // InfoType: Set if the transformation was limited to a specific
- // info_type.
- InfoType *GooglePrivacyDlpV2beta1InfoType `json:"infoType,omitempty"`
-
- // RecordSuppress: The specific suppression option these stats apply to.
- RecordSuppress *GooglePrivacyDlpV2beta1RecordSuppression `json:"recordSuppress,omitempty"`
-
- Results []*GooglePrivacyDlpV2beta1SummaryResult `json:"results,omitempty"`
-
- // Transformation: The specific transformation these stats apply to.
- Transformation *GooglePrivacyDlpV2beta1PrimitiveTransformation `json:"transformation,omitempty"`
-
- // TransformedBytes: Total size in bytes that were transformed in some
- // way.
- TransformedBytes int64 `json:"transformedBytes,omitempty,string"`
-
- // ForceSendFields is a list of field names (e.g. "Field") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Field") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1TransformationSummary) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1TransformationSummary
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1TransientCryptoKey: Use this to have a random
- // data crypto key generated.
- // It will be discarded after the operation/request finishes.
- type GooglePrivacyDlpV2beta1TransientCryptoKey struct {
- // Name: Name of the key. [required]
- // This is an arbitrary string used to differentiate different keys.
- // A unique key is generated per name: two separate
- // `TransientCryptoKey`
- // protos share the same generated key if their names are the same.
- // When the data crypto key is generated, this name is not used in any
- // way
- // (repeating the api call will result in a different key being
- // generated).
- Name string `json:"name,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Name") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Name") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1TransientCryptoKey) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1TransientCryptoKey
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1UnwrappedCryptoKey: Using raw keys is prone to
- // security risks due to accidentally
- // leaking the key. Choose another type of key if possible.
- type GooglePrivacyDlpV2beta1UnwrappedCryptoKey struct {
- // Key: The AES 128/192/256 bit key. [required]
- Key string `json:"key,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Key") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Key") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1UnwrappedCryptoKey) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1UnwrappedCryptoKey
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1Value: Set of primitive values supported by
- // the system.
- // Note that for the purposes of inspection or transformation, the
- // number
- // of bytes considered to comprise a 'Value' is based on its
- // representation
- // as a UTF-8 encoded string. For example, if 'integer_value' is set
- // to
- // 123456789, the number of bytes would be counted as 9, even though
- // an
- // int64 only holds up to 8 bytes of data.
- type GooglePrivacyDlpV2beta1Value struct {
- BooleanValue bool `json:"booleanValue,omitempty"`
-
- DateValue *GoogleTypeDate `json:"dateValue,omitempty"`
-
- FloatValue float64 `json:"floatValue,omitempty"`
-
- IntegerValue int64 `json:"integerValue,omitempty,string"`
-
- StringValue string `json:"stringValue,omitempty"`
-
- TimeValue *GoogleTypeTimeOfDay `json:"timeValue,omitempty"`
-
- TimestampValue string `json:"timestampValue,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "BooleanValue") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "BooleanValue") to include
- // in API requests with the JSON null value. By default, fields with
- // empty values are omitted from API requests. However, any field with
- // an empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1Value) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1Value
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- func (s *GooglePrivacyDlpV2beta1Value) UnmarshalJSON(data []byte) error {
- type NoMethod GooglePrivacyDlpV2beta1Value
- var s1 struct {
- FloatValue gensupport.JSONFloat64 `json:"floatValue"`
- *NoMethod
- }
- s1.NoMethod = (*NoMethod)(s)
- if err := json.Unmarshal(data, &s1); err != nil {
- return err
- }
- s.FloatValue = float64(s1.FloatValue)
- return nil
- }
-
- // GooglePrivacyDlpV2beta1ValueFrequency: A value of a field, including
- // its frequency.
- type GooglePrivacyDlpV2beta1ValueFrequency struct {
- // Count: How many times the value is contained in the field.
- Count int64 `json:"count,omitempty,string"`
-
- // Value: A value contained in the field in question.
- Value *GooglePrivacyDlpV2beta1Value `json:"value,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Count") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Count") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1ValueFrequency) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1ValueFrequency
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GooglePrivacyDlpV2beta1WordList: Message defining a list of words or
- // phrases to search for in the data.
- type GooglePrivacyDlpV2beta1WordList struct {
- // Words: Words or phrases defining the dictionary. The dictionary must
- // contain
- // at least one phrase and every phrase must contain at least 2
- // characters
- // that are letters or digits. [required]
- Words []string `json:"words,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Words") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Words") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GooglePrivacyDlpV2beta1WordList) MarshalJSON() ([]byte, error) {
- type NoMethod GooglePrivacyDlpV2beta1WordList
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleProtobufEmpty: A generic empty message that you can re-use to
- // avoid defining duplicated
- // empty messages in your APIs. A typical example is to use it as the
- // request
- // or the response type of an API method. For instance:
- //
- // service Foo {
- // rpc Bar(google.protobuf.Empty) returns
- // (google.protobuf.Empty);
- // }
- //
- // The JSON representation for `Empty` is empty JSON object `{}`.
- type GoogleProtobufEmpty struct {
- // ServerResponse contains the HTTP response code and headers from the
- // server.
- googleapi.ServerResponse `json:"-"`
- }
-
- // GoogleRpcStatus: The `Status` type defines a logical error model that
- // is suitable for different
- // programming environments, including REST APIs and RPC APIs. It is
- // used by
- // [gRPC](https://github.com/grpc). The error model is designed to
- // be:
- //
- // - Simple to use and understand for most users
- // - Flexible enough to meet unexpected needs
- //
- // # Overview
- //
- // The `Status` message contains three pieces of data: error code, error
- // message,
- // and error details. The error code should be an enum value
- // of
- // google.rpc.Code, but it may accept additional error codes if needed.
- // The
- // error message should be a developer-facing English message that
- // helps
- // developers *understand* and *resolve* the error. If a localized
- // user-facing
- // error message is needed, put the localized message in the error
- // details or
- // localize it in the client. The optional error details may contain
- // arbitrary
- // information about the error. There is a predefined set of error
- // detail types
- // in the package `google.rpc` that can be used for common error
- // conditions.
- //
- // # Language mapping
- //
- // The `Status` message is the logical representation of the error
- // model, but it
- // is not necessarily the actual wire format. When the `Status` message
- // is
- // exposed in different client libraries and different wire protocols,
- // it can be
- // mapped differently. For example, it will likely be mapped to some
- // exceptions
- // in Java, but more likely mapped to some error codes in C.
- //
- // # Other uses
- //
- // The error model and the `Status` message can be used in a variety
- // of
- // environments, either with or without APIs, to provide a
- // consistent developer experience across different
- // environments.
- //
- // Example uses of this error model include:
- //
- // - Partial errors. If a service needs to return partial errors to the
- // client,
- // it may embed the `Status` in the normal response to indicate the
- // partial
- // errors.
- //
- // - Workflow errors. A typical workflow has multiple steps. Each step
- // may
- // have a `Status` message for error reporting.
- //
- // - Batch operations. If a client uses batch request and batch
- // response, the
- // `Status` message should be used directly inside batch response,
- // one for
- // each error sub-response.
- //
- // - Asynchronous operations. If an API call embeds asynchronous
- // operation
- // results in its response, the status of those operations should
- // be
- // represented directly using the `Status` message.
- //
- // - Logging. If some API errors are stored in logs, the message
- // `Status` could
- // be used directly after any stripping needed for security/privacy
- // reasons.
- type GoogleRpcStatus struct {
- // Code: The status code, which should be an enum value of
- // google.rpc.Code.
- Code int64 `json:"code,omitempty"`
-
- // Details: A list of messages that carry the error details. There is a
- // common set of
- // message types for APIs to use.
- Details []googleapi.RawMessage `json:"details,omitempty"`
-
- // Message: A developer-facing error message, which should be in
- // English. Any
- // user-facing error message should be localized and sent in
- // the
- // google.rpc.Status.details field, or localized by the client.
- Message string `json:"message,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Code") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Code") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleRpcStatus
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleTypeDate: Represents a whole calendar date, e.g. date of birth.
- // The time of day and
- // time zone are either specified elsewhere or are not significant. The
- // date
- // is relative to the Proleptic Gregorian Calendar. The day may be 0
- // to
- // represent a year and month where the day is not significant, e.g.
- // credit card
- // expiration date. The year may be 0 to represent a month and day
- // independent
- // of year, e.g. anniversary date. Related types are
- // google.type.TimeOfDay
- // and `google.protobuf.Timestamp`.
- type GoogleTypeDate struct {
- // Day: Day of month. Must be from 1 to 31 and valid for the year and
- // month, or 0
- // if specifying a year/month where the day is not significant.
- Day int64 `json:"day,omitempty"`
-
- // Month: Month of year. Must be from 1 to 12, or 0 if specifying a date
- // without a
- // month.
- Month int64 `json:"month,omitempty"`
-
- // Year: Year of date. Must be from 1 to 9999, or 0 if specifying a date
- // without
- // a year.
- Year int64 `json:"year,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Day") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Day") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleTypeDate) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleTypeDate
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // GoogleTypeTimeOfDay: Represents a time of day. The date and time zone
- // are either not significant
- // or are specified elsewhere. An API may choose to allow leap seconds.
- // Related
- // types are google.type.Date and `google.protobuf.Timestamp`.
- type GoogleTypeTimeOfDay struct {
- // Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API
- // may choose
- // to allow the value "24:00:00" for scenarios like business closing
- // time.
- Hours int64 `json:"hours,omitempty"`
-
- // Minutes: Minutes of hour of day. Must be from 0 to 59.
- Minutes int64 `json:"minutes,omitempty"`
-
- // Nanos: Fractions of seconds in nanoseconds. Must be from 0 to
- // 999,999,999.
- Nanos int64 `json:"nanos,omitempty"`
-
- // Seconds: Seconds of minutes of the time. Must normally be from 0 to
- // 59. An API may
- // allow the value 60 if it allows leap-seconds.
- Seconds int64 `json:"seconds,omitempty"`
-
- // ForceSendFields is a list of field names (e.g. "Hours") to
- // unconditionally include in API requests. By default, fields with
- // empty values are omitted from API requests. However, any non-pointer,
- // non-interface field appearing in ForceSendFields will be sent to the
- // server regardless of whether the field is empty or not. This may be
- // used to include empty fields in Patch requests.
- ForceSendFields []string `json:"-"`
-
- // NullFields is a list of field names (e.g. "Hours") to include in API
- // requests with the JSON null value. By default, fields with empty
- // values are omitted from API requests. However, any field with an
- // empty value appearing in NullFields will be sent to the server as
- // null. It is an error if a field in this list has a non-empty value.
- // This may be used to include null fields in Patch requests.
- NullFields []string `json:"-"`
- }
-
- func (s *GoogleTypeTimeOfDay) MarshalJSON() ([]byte, error) {
- type NoMethod GoogleTypeTimeOfDay
- raw := NoMethod(*s)
- return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
- }
-
- // method id "dlp.content.deidentify":
-
- type ContentDeidentifyCall struct {
- s *Service
- googleprivacydlpv2beta1deidentifycontentrequest *GooglePrivacyDlpV2beta1DeidentifyContentRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
- }
-
- // Deidentify: De-identifies potentially sensitive info from a list of
- // strings.
- // This method has limits on input size and output size.
- func (r *ContentService) Deidentify(googleprivacydlpv2beta1deidentifycontentrequest *GooglePrivacyDlpV2beta1DeidentifyContentRequest) *ContentDeidentifyCall {
- c := &ContentDeidentifyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.googleprivacydlpv2beta1deidentifycontentrequest = googleprivacydlpv2beta1deidentifycontentrequest
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *ContentDeidentifyCall) Fields(s ...googleapi.Field) *ContentDeidentifyCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *ContentDeidentifyCall) Context(ctx context.Context) *ContentDeidentifyCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *ContentDeidentifyCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *ContentDeidentifyCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2beta1deidentifycontentrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/content:deidentify")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "dlp.content.deidentify" call.
- // Exactly one of *GooglePrivacyDlpV2beta1DeidentifyContentResponse or
- // error will be non-nil. Any non-2xx status code is an error. Response
- // headers are in either
- // *GooglePrivacyDlpV2beta1DeidentifyContentResponse.ServerResponse.Heade
- // r or (if a response was returned at all) in
- // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
- // whether the returned error was because http.StatusNotModified was
- // returned.
- func (c *ContentDeidentifyCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta1DeidentifyContentResponse, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GooglePrivacyDlpV2beta1DeidentifyContentResponse{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "De-identifies potentially sensitive info from a list of strings.\nThis method has limits on input size and output size.",
- // "flatPath": "v2beta1/content:deidentify",
- // "httpMethod": "POST",
- // "id": "dlp.content.deidentify",
- // "parameterOrder": [],
- // "parameters": {},
- // "path": "v2beta1/content:deidentify",
- // "request": {
- // "$ref": "GooglePrivacyDlpV2beta1DeidentifyContentRequest"
- // },
- // "response": {
- // "$ref": "GooglePrivacyDlpV2beta1DeidentifyContentResponse"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // method id "dlp.content.inspect":
-
- type ContentInspectCall struct {
- s *Service
- googleprivacydlpv2beta1inspectcontentrequest *GooglePrivacyDlpV2beta1InspectContentRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
- }
-
- // Inspect: Finds potentially sensitive info in a list of strings.
- // This method has limits on input size, processing time, and output
- // size.
- func (r *ContentService) Inspect(googleprivacydlpv2beta1inspectcontentrequest *GooglePrivacyDlpV2beta1InspectContentRequest) *ContentInspectCall {
- c := &ContentInspectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.googleprivacydlpv2beta1inspectcontentrequest = googleprivacydlpv2beta1inspectcontentrequest
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *ContentInspectCall) Fields(s ...googleapi.Field) *ContentInspectCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *ContentInspectCall) Context(ctx context.Context) *ContentInspectCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *ContentInspectCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *ContentInspectCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2beta1inspectcontentrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/content:inspect")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "dlp.content.inspect" call.
- // Exactly one of *GooglePrivacyDlpV2beta1InspectContentResponse or
- // error will be non-nil. Any non-2xx status code is an error. Response
- // headers are in either
- // *GooglePrivacyDlpV2beta1InspectContentResponse.ServerResponse.Header
- // or (if a response was returned at all) in
- // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
- // whether the returned error was because http.StatusNotModified was
- // returned.
- func (c *ContentInspectCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta1InspectContentResponse, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GooglePrivacyDlpV2beta1InspectContentResponse{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "Finds potentially sensitive info in a list of strings.\nThis method has limits on input size, processing time, and output size.",
- // "flatPath": "v2beta1/content:inspect",
- // "httpMethod": "POST",
- // "id": "dlp.content.inspect",
- // "parameterOrder": [],
- // "parameters": {},
- // "path": "v2beta1/content:inspect",
- // "request": {
- // "$ref": "GooglePrivacyDlpV2beta1InspectContentRequest"
- // },
- // "response": {
- // "$ref": "GooglePrivacyDlpV2beta1InspectContentResponse"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // method id "dlp.content.redact":
-
- type ContentRedactCall struct {
- s *Service
- googleprivacydlpv2beta1redactcontentrequest *GooglePrivacyDlpV2beta1RedactContentRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
- }
-
- // Redact: Redacts potentially sensitive info from a list of
- // strings.
- // This method has limits on input size, processing time, and output
- // size.
- func (r *ContentService) Redact(googleprivacydlpv2beta1redactcontentrequest *GooglePrivacyDlpV2beta1RedactContentRequest) *ContentRedactCall {
- c := &ContentRedactCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.googleprivacydlpv2beta1redactcontentrequest = googleprivacydlpv2beta1redactcontentrequest
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *ContentRedactCall) Fields(s ...googleapi.Field) *ContentRedactCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *ContentRedactCall) Context(ctx context.Context) *ContentRedactCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *ContentRedactCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *ContentRedactCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2beta1redactcontentrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/content:redact")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "dlp.content.redact" call.
- // Exactly one of *GooglePrivacyDlpV2beta1RedactContentResponse or error
- // will be non-nil. Any non-2xx status code is an error. Response
- // headers are in either
- // *GooglePrivacyDlpV2beta1RedactContentResponse.ServerResponse.Header
- // or (if a response was returned at all) in
- // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
- // whether the returned error was because http.StatusNotModified was
- // returned.
- func (c *ContentRedactCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta1RedactContentResponse, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GooglePrivacyDlpV2beta1RedactContentResponse{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "Redacts potentially sensitive info from a list of strings.\nThis method has limits on input size, processing time, and output size.",
- // "flatPath": "v2beta1/content:redact",
- // "httpMethod": "POST",
- // "id": "dlp.content.redact",
- // "parameterOrder": [],
- // "parameters": {},
- // "path": "v2beta1/content:redact",
- // "request": {
- // "$ref": "GooglePrivacyDlpV2beta1RedactContentRequest"
- // },
- // "response": {
- // "$ref": "GooglePrivacyDlpV2beta1RedactContentResponse"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // method id "dlp.dataSource.analyze":
-
- type DataSourceAnalyzeCall struct {
- s *Service
- googleprivacydlpv2beta1analyzedatasourceriskrequest *GooglePrivacyDlpV2beta1AnalyzeDataSourceRiskRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
- }
-
- // Analyze: Schedules a job to compute risk analysis metrics over
- // content in a Google
- // Cloud Platform repository.
- func (r *DataSourceService) Analyze(googleprivacydlpv2beta1analyzedatasourceriskrequest *GooglePrivacyDlpV2beta1AnalyzeDataSourceRiskRequest) *DataSourceAnalyzeCall {
- c := &DataSourceAnalyzeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.googleprivacydlpv2beta1analyzedatasourceriskrequest = googleprivacydlpv2beta1analyzedatasourceriskrequest
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *DataSourceAnalyzeCall) Fields(s ...googleapi.Field) *DataSourceAnalyzeCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *DataSourceAnalyzeCall) Context(ctx context.Context) *DataSourceAnalyzeCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *DataSourceAnalyzeCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *DataSourceAnalyzeCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2beta1analyzedatasourceriskrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/dataSource:analyze")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "dlp.dataSource.analyze" call.
- // Exactly one of *GoogleLongrunningOperation or error will be non-nil.
- // Any non-2xx status code is an error. Response headers are in either
- // *GoogleLongrunningOperation.ServerResponse.Header or (if a response
- // was returned at all) in error.(*googleapi.Error).Header. Use
- // googleapi.IsNotModified to check whether the returned error was
- // because http.StatusNotModified was returned.
- func (c *DataSourceAnalyzeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GoogleLongrunningOperation{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "Schedules a job to compute risk analysis metrics over content in a Google\nCloud Platform repository.",
- // "flatPath": "v2beta1/dataSource:analyze",
- // "httpMethod": "POST",
- // "id": "dlp.dataSource.analyze",
- // "parameterOrder": [],
- // "parameters": {},
- // "path": "v2beta1/dataSource:analyze",
- // "request": {
- // "$ref": "GooglePrivacyDlpV2beta1AnalyzeDataSourceRiskRequest"
- // },
- // "response": {
- // "$ref": "GoogleLongrunningOperation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // method id "dlp.inspect.operations.cancel":
-
- type InspectOperationsCancelCall struct {
- s *Service
- name string
- googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
- }
-
- // Cancel: Cancels an operation. Use the `inspect.operations.get` to
- // check whether the cancellation succeeded or the operation completed
- // despite cancellation.
- func (r *InspectOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *InspectOperationsCancelCall {
- c := &InspectOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *InspectOperationsCancelCall) Fields(s ...googleapi.Field) *InspectOperationsCancelCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *InspectOperationsCancelCall) Context(ctx context.Context) *InspectOperationsCancelCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *InspectOperationsCancelCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *InspectOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:cancel")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "dlp.inspect.operations.cancel" call.
- // Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
- // non-2xx status code is an error. Response headers are in either
- // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
- // returned at all) in error.(*googleapi.Error).Header. Use
- // googleapi.IsNotModified to check whether the returned error was
- // because http.StatusNotModified was returned.
- func (c *InspectOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GoogleProtobufEmpty{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "Cancels an operation. Use the `inspect.operations.get` to check whether the cancellation succeeded or the operation completed despite cancellation.",
- // "flatPath": "v2beta1/inspect/operations/{operationsId}:cancel",
- // "httpMethod": "POST",
- // "id": "dlp.inspect.operations.cancel",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name of the operation resource to be cancelled.",
- // "location": "path",
- // "pattern": "^inspect/operations/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v2beta1/{+name}:cancel",
- // "request": {
- // "$ref": "GoogleLongrunningCancelOperationRequest"
- // },
- // "response": {
- // "$ref": "GoogleProtobufEmpty"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // method id "dlp.inspect.operations.create":
-
- type InspectOperationsCreateCall struct {
- s *Service
- googleprivacydlpv2beta1createinspectoperationrequest *GooglePrivacyDlpV2beta1CreateInspectOperationRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
- }
-
- // Create: Schedules a job scanning content in a Google Cloud Platform
- // data
- // repository.
- func (r *InspectOperationsService) Create(googleprivacydlpv2beta1createinspectoperationrequest *GooglePrivacyDlpV2beta1CreateInspectOperationRequest) *InspectOperationsCreateCall {
- c := &InspectOperationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.googleprivacydlpv2beta1createinspectoperationrequest = googleprivacydlpv2beta1createinspectoperationrequest
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *InspectOperationsCreateCall) Fields(s ...googleapi.Field) *InspectOperationsCreateCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *InspectOperationsCreateCall) Context(ctx context.Context) *InspectOperationsCreateCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *InspectOperationsCreateCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *InspectOperationsCreateCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2beta1createinspectoperationrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/inspect/operations")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "dlp.inspect.operations.create" call.
- // Exactly one of *GoogleLongrunningOperation or error will be non-nil.
- // Any non-2xx status code is an error. Response headers are in either
- // *GoogleLongrunningOperation.ServerResponse.Header or (if a response
- // was returned at all) in error.(*googleapi.Error).Header. Use
- // googleapi.IsNotModified to check whether the returned error was
- // because http.StatusNotModified was returned.
- func (c *InspectOperationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GoogleLongrunningOperation{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "Schedules a job scanning content in a Google Cloud Platform data\nrepository.",
- // "flatPath": "v2beta1/inspect/operations",
- // "httpMethod": "POST",
- // "id": "dlp.inspect.operations.create",
- // "parameterOrder": [],
- // "parameters": {},
- // "path": "v2beta1/inspect/operations",
- // "request": {
- // "$ref": "GooglePrivacyDlpV2beta1CreateInspectOperationRequest"
- // },
- // "response": {
- // "$ref": "GoogleLongrunningOperation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // method id "dlp.inspect.operations.delete":
-
- type InspectOperationsDeleteCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
- }
-
- // Delete: This method is not supported and the server returns
- // `UNIMPLEMENTED`.
- func (r *InspectOperationsService) Delete(name string) *InspectOperationsDeleteCall {
- c := &InspectOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *InspectOperationsDeleteCall) Fields(s ...googleapi.Field) *InspectOperationsDeleteCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *InspectOperationsDeleteCall) Context(ctx context.Context) *InspectOperationsDeleteCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *InspectOperationsDeleteCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *InspectOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- var body io.Reader = nil
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("DELETE", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "dlp.inspect.operations.delete" call.
- // Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
- // non-2xx status code is an error. Response headers are in either
- // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
- // returned at all) in error.(*googleapi.Error).Header. Use
- // googleapi.IsNotModified to check whether the returned error was
- // because http.StatusNotModified was returned.
- func (c *InspectOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GoogleProtobufEmpty{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "This method is not supported and the server returns `UNIMPLEMENTED`.",
- // "flatPath": "v2beta1/inspect/operations/{operationsId}",
- // "httpMethod": "DELETE",
- // "id": "dlp.inspect.operations.delete",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name of the operation resource to be deleted.",
- // "location": "path",
- // "pattern": "^inspect/operations/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v2beta1/{+name}",
- // "response": {
- // "$ref": "GoogleProtobufEmpty"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // method id "dlp.inspect.operations.get":
-
- type InspectOperationsGetCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
- }
-
- // Get: Gets the latest state of a long-running operation. Clients can
- // use this
- // method to poll the operation result at intervals as recommended by
- // the API
- // service.
- func (r *InspectOperationsService) Get(name string) *InspectOperationsGetCall {
- c := &InspectOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *InspectOperationsGetCall) Fields(s ...googleapi.Field) *InspectOperationsGetCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // IfNoneMatch sets the optional parameter which makes the operation
- // fail if the object's ETag matches the given value. This is useful for
- // getting updates only after the object has changed since the last
- // request. Use googleapi.IsNotModified to check whether the response
- // error from Do is the result of In-None-Match.
- func (c *InspectOperationsGetCall) IfNoneMatch(entityTag string) *InspectOperationsGetCall {
- c.ifNoneMatch_ = entityTag
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *InspectOperationsGetCall) Context(ctx context.Context) *InspectOperationsGetCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *InspectOperationsGetCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *InspectOperationsGetCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
- var body io.Reader = nil
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "dlp.inspect.operations.get" call.
- // Exactly one of *GoogleLongrunningOperation or error will be non-nil.
- // Any non-2xx status code is an error. Response headers are in either
- // *GoogleLongrunningOperation.ServerResponse.Header or (if a response
- // was returned at all) in error.(*googleapi.Error).Header. Use
- // googleapi.IsNotModified to check whether the returned error was
- // because http.StatusNotModified was returned.
- func (c *InspectOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GoogleLongrunningOperation{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.",
- // "flatPath": "v2beta1/inspect/operations/{operationsId}",
- // "httpMethod": "GET",
- // "id": "dlp.inspect.operations.get",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name of the operation resource.",
- // "location": "path",
- // "pattern": "^inspect/operations/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v2beta1/{+name}",
- // "response": {
- // "$ref": "GoogleLongrunningOperation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // method id "dlp.inspect.operations.list":
-
- type InspectOperationsListCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
- }
-
- // List: Fetches the list of long running operations.
- func (r *InspectOperationsService) List(name string) *InspectOperationsListCall {
- c := &InspectOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
- }
-
- // Filter sets the optional parameter "filter": Filters by `done`. That
- // is, `done=true` or `done=false`.
- func (c *InspectOperationsListCall) Filter(filter string) *InspectOperationsListCall {
- c.urlParams_.Set("filter", filter)
- return c
- }
-
- // PageSize sets the optional parameter "pageSize": The list page size.
- // The maximum allowed value is 256 and the default is 100.
- func (c *InspectOperationsListCall) PageSize(pageSize int64) *InspectOperationsListCall {
- c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
- return c
- }
-
- // PageToken sets the optional parameter "pageToken": The standard list
- // page token.
- func (c *InspectOperationsListCall) PageToken(pageToken string) *InspectOperationsListCall {
- c.urlParams_.Set("pageToken", pageToken)
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *InspectOperationsListCall) Fields(s ...googleapi.Field) *InspectOperationsListCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // IfNoneMatch sets the optional parameter which makes the operation
- // fail if the object's ETag matches the given value. This is useful for
- // getting updates only after the object has changed since the last
- // request. Use googleapi.IsNotModified to check whether the response
- // error from Do is the result of In-None-Match.
- func (c *InspectOperationsListCall) IfNoneMatch(entityTag string) *InspectOperationsListCall {
- c.ifNoneMatch_ = entityTag
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *InspectOperationsListCall) Context(ctx context.Context) *InspectOperationsListCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *InspectOperationsListCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *InspectOperationsListCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
- var body io.Reader = nil
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "dlp.inspect.operations.list" call.
- // Exactly one of *GoogleLongrunningListOperationsResponse or error will
- // be non-nil. Any non-2xx status code is an error. Response headers are
- // in either
- // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if
- // a response was returned at all) in error.(*googleapi.Error).Header.
- // Use googleapi.IsNotModified to check whether the returned error was
- // because http.StatusNotModified was returned.
- func (c *InspectOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GoogleLongrunningListOperationsResponse{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "Fetches the list of long running operations.",
- // "flatPath": "v2beta1/inspect/operations",
- // "httpMethod": "GET",
- // "id": "dlp.inspect.operations.list",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "filter": {
- // "description": "Filters by `done`. That is, `done=true` or `done=false`.",
- // "location": "query",
- // "type": "string"
- // },
- // "name": {
- // "description": "The name of the operation's parent resource.",
- // "location": "path",
- // "pattern": "^inspect/operations$",
- // "required": true,
- // "type": "string"
- // },
- // "pageSize": {
- // "description": "The list page size. The maximum allowed value is 256 and the default is 100.",
- // "format": "int32",
- // "location": "query",
- // "type": "integer"
- // },
- // "pageToken": {
- // "description": "The standard list page token.",
- // "location": "query",
- // "type": "string"
- // }
- // },
- // "path": "v2beta1/{+name}",
- // "response": {
- // "$ref": "GoogleLongrunningListOperationsResponse"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // Pages invokes f for each page of results.
- // A non-nil error returned from f will halt the iteration.
- // The provided context supersedes any context provided to the Context method.
- func (c *InspectOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
- c.ctx_ = ctx
- defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
- for {
- x, err := c.Do()
- if err != nil {
- return err
- }
- if err := f(x); err != nil {
- return err
- }
- if x.NextPageToken == "" {
- return nil
- }
- c.PageToken(x.NextPageToken)
- }
- }
-
- // method id "dlp.inspect.results.findings.list":
-
- type InspectResultsFindingsListCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
- }
-
- // List: Returns list of results for given inspect operation result set
- // id.
- func (r *InspectResultsFindingsService) List(name string) *InspectResultsFindingsListCall {
- c := &InspectResultsFindingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
- }
-
- // Filter sets the optional parameter "filter": Restricts findings to
- // items that match. Supports info_type and likelihood.
- //
- // Examples:
- //
- // - info_type=EMAIL_ADDRESS
- // - info_type=PHONE_NUMBER,EMAIL_ADDRESS
- // - likelihood=VERY_LIKELY
- // - likelihood=VERY_LIKELY,LIKELY
- // - info_type=EMAIL_ADDRESS,likelihood=VERY_LIKELY,LIKELY
- func (c *InspectResultsFindingsListCall) Filter(filter string) *InspectResultsFindingsListCall {
- c.urlParams_.Set("filter", filter)
- return c
- }
-
- // PageSize sets the optional parameter "pageSize": Maximum number of
- // results to return.
- // If 0, the implementation selects a reasonable value.
- func (c *InspectResultsFindingsListCall) PageSize(pageSize int64) *InspectResultsFindingsListCall {
- c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
- return c
- }
-
- // PageToken sets the optional parameter "pageToken": The value returned
- // by the last `ListInspectFindingsResponse`; indicates
- // that this is a continuation of a prior `ListInspectFindings` call,
- // and that
- // the system should return the next page of data.
- func (c *InspectResultsFindingsListCall) PageToken(pageToken string) *InspectResultsFindingsListCall {
- c.urlParams_.Set("pageToken", pageToken)
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *InspectResultsFindingsListCall) Fields(s ...googleapi.Field) *InspectResultsFindingsListCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // IfNoneMatch sets the optional parameter which makes the operation
- // fail if the object's ETag matches the given value. This is useful for
- // getting updates only after the object has changed since the last
- // request. Use googleapi.IsNotModified to check whether the response
- // error from Do is the result of In-None-Match.
- func (c *InspectResultsFindingsListCall) IfNoneMatch(entityTag string) *InspectResultsFindingsListCall {
- c.ifNoneMatch_ = entityTag
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *InspectResultsFindingsListCall) Context(ctx context.Context) *InspectResultsFindingsListCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *InspectResultsFindingsListCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *InspectResultsFindingsListCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
- var body io.Reader = nil
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}/findings")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "dlp.inspect.results.findings.list" call.
- // Exactly one of *GooglePrivacyDlpV2beta1ListInspectFindingsResponse or
- // error will be non-nil. Any non-2xx status code is an error. Response
- // headers are in either
- // *GooglePrivacyDlpV2beta1ListInspectFindingsResponse.ServerResponse.Hea
- // der or (if a response was returned at all) in
- // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
- // whether the returned error was because http.StatusNotModified was
- // returned.
- func (c *InspectResultsFindingsListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta1ListInspectFindingsResponse, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GooglePrivacyDlpV2beta1ListInspectFindingsResponse{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "Returns list of results for given inspect operation result set id.",
- // "flatPath": "v2beta1/inspect/results/{resultsId}/findings",
- // "httpMethod": "GET",
- // "id": "dlp.inspect.results.findings.list",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "filter": {
- // "description": "Restricts findings to items that match. Supports info_type and likelihood.\n\nExamples:\n\n- info_type=EMAIL_ADDRESS\n- info_type=PHONE_NUMBER,EMAIL_ADDRESS\n- likelihood=VERY_LIKELY\n- likelihood=VERY_LIKELY,LIKELY\n- info_type=EMAIL_ADDRESS,likelihood=VERY_LIKELY,LIKELY",
- // "location": "query",
- // "type": "string"
- // },
- // "name": {
- // "description": "Identifier of the results set returned as metadata of\nthe longrunning operation created by a call to InspectDataSource.\nShould be in the format of `inspect/results/{id}`.",
- // "location": "path",
- // "pattern": "^inspect/results/[^/]+$",
- // "required": true,
- // "type": "string"
- // },
- // "pageSize": {
- // "description": "Maximum number of results to return.\nIf 0, the implementation selects a reasonable value.",
- // "format": "int32",
- // "location": "query",
- // "type": "integer"
- // },
- // "pageToken": {
- // "description": "The value returned by the last `ListInspectFindingsResponse`; indicates\nthat this is a continuation of a prior `ListInspectFindings` call, and that\nthe system should return the next page of data.",
- // "location": "query",
- // "type": "string"
- // }
- // },
- // "path": "v2beta1/{+name}/findings",
- // "response": {
- // "$ref": "GooglePrivacyDlpV2beta1ListInspectFindingsResponse"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // Pages invokes f for each page of results.
- // A non-nil error returned from f will halt the iteration.
- // The provided context supersedes any context provided to the Context method.
- func (c *InspectResultsFindingsListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2beta1ListInspectFindingsResponse) error) error {
- c.ctx_ = ctx
- defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
- for {
- x, err := c.Do()
- if err != nil {
- return err
- }
- if err := f(x); err != nil {
- return err
- }
- if x.NextPageToken == "" {
- return nil
- }
- c.PageToken(x.NextPageToken)
- }
- }
-
- // method id "dlp.riskAnalysis.operations.cancel":
-
- type RiskAnalysisOperationsCancelCall struct {
- s *Service
- name string
- googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
- }
-
- // Cancel: Cancels an operation. Use the `inspect.operations.get` to
- // check whether the cancellation succeeded or the operation completed
- // despite cancellation.
- func (r *RiskAnalysisOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *RiskAnalysisOperationsCancelCall {
- c := &RiskAnalysisOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *RiskAnalysisOperationsCancelCall) Fields(s ...googleapi.Field) *RiskAnalysisOperationsCancelCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *RiskAnalysisOperationsCancelCall) Context(ctx context.Context) *RiskAnalysisOperationsCancelCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *RiskAnalysisOperationsCancelCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *RiskAnalysisOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- var body io.Reader = nil
- body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest)
- if err != nil {
- return nil, err
- }
- reqHeaders.Set("Content-Type", "application/json")
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:cancel")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("POST", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "dlp.riskAnalysis.operations.cancel" call.
- // Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
- // non-2xx status code is an error. Response headers are in either
- // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
- // returned at all) in error.(*googleapi.Error).Header. Use
- // googleapi.IsNotModified to check whether the returned error was
- // because http.StatusNotModified was returned.
- func (c *RiskAnalysisOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GoogleProtobufEmpty{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "Cancels an operation. Use the `inspect.operations.get` to check whether the cancellation succeeded or the operation completed despite cancellation.",
- // "flatPath": "v2beta1/riskAnalysis/operations/{operationsId}:cancel",
- // "httpMethod": "POST",
- // "id": "dlp.riskAnalysis.operations.cancel",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name of the operation resource to be cancelled.",
- // "location": "path",
- // "pattern": "^riskAnalysis/operations/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v2beta1/{+name}:cancel",
- // "request": {
- // "$ref": "GoogleLongrunningCancelOperationRequest"
- // },
- // "response": {
- // "$ref": "GoogleProtobufEmpty"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // method id "dlp.riskAnalysis.operations.delete":
-
- type RiskAnalysisOperationsDeleteCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ctx_ context.Context
- header_ http.Header
- }
-
- // Delete: This method is not supported and the server returns
- // `UNIMPLEMENTED`.
- func (r *RiskAnalysisOperationsService) Delete(name string) *RiskAnalysisOperationsDeleteCall {
- c := &RiskAnalysisOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *RiskAnalysisOperationsDeleteCall) Fields(s ...googleapi.Field) *RiskAnalysisOperationsDeleteCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *RiskAnalysisOperationsDeleteCall) Context(ctx context.Context) *RiskAnalysisOperationsDeleteCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *RiskAnalysisOperationsDeleteCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *RiskAnalysisOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- var body io.Reader = nil
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("DELETE", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "dlp.riskAnalysis.operations.delete" call.
- // Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
- // non-2xx status code is an error. Response headers are in either
- // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
- // returned at all) in error.(*googleapi.Error).Header. Use
- // googleapi.IsNotModified to check whether the returned error was
- // because http.StatusNotModified was returned.
- func (c *RiskAnalysisOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GoogleProtobufEmpty{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "This method is not supported and the server returns `UNIMPLEMENTED`.",
- // "flatPath": "v2beta1/riskAnalysis/operations/{operationsId}",
- // "httpMethod": "DELETE",
- // "id": "dlp.riskAnalysis.operations.delete",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name of the operation resource to be deleted.",
- // "location": "path",
- // "pattern": "^riskAnalysis/operations/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v2beta1/{+name}",
- // "response": {
- // "$ref": "GoogleProtobufEmpty"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // method id "dlp.riskAnalysis.operations.get":
-
- type RiskAnalysisOperationsGetCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
- }
-
- // Get: Gets the latest state of a long-running operation. Clients can
- // use this
- // method to poll the operation result at intervals as recommended by
- // the API
- // service.
- func (r *RiskAnalysisOperationsService) Get(name string) *RiskAnalysisOperationsGetCall {
- c := &RiskAnalysisOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *RiskAnalysisOperationsGetCall) Fields(s ...googleapi.Field) *RiskAnalysisOperationsGetCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // IfNoneMatch sets the optional parameter which makes the operation
- // fail if the object's ETag matches the given value. This is useful for
- // getting updates only after the object has changed since the last
- // request. Use googleapi.IsNotModified to check whether the response
- // error from Do is the result of In-None-Match.
- func (c *RiskAnalysisOperationsGetCall) IfNoneMatch(entityTag string) *RiskAnalysisOperationsGetCall {
- c.ifNoneMatch_ = entityTag
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *RiskAnalysisOperationsGetCall) Context(ctx context.Context) *RiskAnalysisOperationsGetCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *RiskAnalysisOperationsGetCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *RiskAnalysisOperationsGetCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
- var body io.Reader = nil
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "dlp.riskAnalysis.operations.get" call.
- // Exactly one of *GoogleLongrunningOperation or error will be non-nil.
- // Any non-2xx status code is an error. Response headers are in either
- // *GoogleLongrunningOperation.ServerResponse.Header or (if a response
- // was returned at all) in error.(*googleapi.Error).Header. Use
- // googleapi.IsNotModified to check whether the returned error was
- // because http.StatusNotModified was returned.
- func (c *RiskAnalysisOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GoogleLongrunningOperation{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.",
- // "flatPath": "v2beta1/riskAnalysis/operations/{operationsId}",
- // "httpMethod": "GET",
- // "id": "dlp.riskAnalysis.operations.get",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "name": {
- // "description": "The name of the operation resource.",
- // "location": "path",
- // "pattern": "^riskAnalysis/operations/[^/]+$",
- // "required": true,
- // "type": "string"
- // }
- // },
- // "path": "v2beta1/{+name}",
- // "response": {
- // "$ref": "GoogleLongrunningOperation"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // method id "dlp.riskAnalysis.operations.list":
-
- type RiskAnalysisOperationsListCall struct {
- s *Service
- name string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
- }
-
- // List: Fetches the list of long running operations.
- func (r *RiskAnalysisOperationsService) List(name string) *RiskAnalysisOperationsListCall {
- c := &RiskAnalysisOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.name = name
- return c
- }
-
- // Filter sets the optional parameter "filter": Filters by `done`. That
- // is, `done=true` or `done=false`.
- func (c *RiskAnalysisOperationsListCall) Filter(filter string) *RiskAnalysisOperationsListCall {
- c.urlParams_.Set("filter", filter)
- return c
- }
-
- // PageSize sets the optional parameter "pageSize": The list page size.
- // The maximum allowed value is 256 and the default is 100.
- func (c *RiskAnalysisOperationsListCall) PageSize(pageSize int64) *RiskAnalysisOperationsListCall {
- c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
- return c
- }
-
- // PageToken sets the optional parameter "pageToken": The standard list
- // page token.
- func (c *RiskAnalysisOperationsListCall) PageToken(pageToken string) *RiskAnalysisOperationsListCall {
- c.urlParams_.Set("pageToken", pageToken)
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *RiskAnalysisOperationsListCall) Fields(s ...googleapi.Field) *RiskAnalysisOperationsListCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // IfNoneMatch sets the optional parameter which makes the operation
- // fail if the object's ETag matches the given value. This is useful for
- // getting updates only after the object has changed since the last
- // request. Use googleapi.IsNotModified to check whether the response
- // error from Do is the result of In-None-Match.
- func (c *RiskAnalysisOperationsListCall) IfNoneMatch(entityTag string) *RiskAnalysisOperationsListCall {
- c.ifNoneMatch_ = entityTag
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *RiskAnalysisOperationsListCall) Context(ctx context.Context) *RiskAnalysisOperationsListCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *RiskAnalysisOperationsListCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *RiskAnalysisOperationsListCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
- var body io.Reader = nil
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "name": c.name,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "dlp.riskAnalysis.operations.list" call.
- // Exactly one of *GoogleLongrunningListOperationsResponse or error will
- // be non-nil. Any non-2xx status code is an error. Response headers are
- // in either
- // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if
- // a response was returned at all) in error.(*googleapi.Error).Header.
- // Use googleapi.IsNotModified to check whether the returned error was
- // because http.StatusNotModified was returned.
- func (c *RiskAnalysisOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GoogleLongrunningListOperationsResponse{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "Fetches the list of long running operations.",
- // "flatPath": "v2beta1/riskAnalysis/operations",
- // "httpMethod": "GET",
- // "id": "dlp.riskAnalysis.operations.list",
- // "parameterOrder": [
- // "name"
- // ],
- // "parameters": {
- // "filter": {
- // "description": "Filters by `done`. That is, `done=true` or `done=false`.",
- // "location": "query",
- // "type": "string"
- // },
- // "name": {
- // "description": "The name of the operation's parent resource.",
- // "location": "path",
- // "pattern": "^riskAnalysis/operations$",
- // "required": true,
- // "type": "string"
- // },
- // "pageSize": {
- // "description": "The list page size. The maximum allowed value is 256 and the default is 100.",
- // "format": "int32",
- // "location": "query",
- // "type": "integer"
- // },
- // "pageToken": {
- // "description": "The standard list page token.",
- // "location": "query",
- // "type": "string"
- // }
- // },
- // "path": "v2beta1/{+name}",
- // "response": {
- // "$ref": "GoogleLongrunningListOperationsResponse"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // Pages invokes f for each page of results.
- // A non-nil error returned from f will halt the iteration.
- // The provided context supersedes any context provided to the Context method.
- func (c *RiskAnalysisOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
- c.ctx_ = ctx
- defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
- for {
- x, err := c.Do()
- if err != nil {
- return err
- }
- if err := f(x); err != nil {
- return err
- }
- if x.NextPageToken == "" {
- return nil
- }
- c.PageToken(x.NextPageToken)
- }
- }
-
- // method id "dlp.rootCategories.list":
-
- type RootCategoriesListCall struct {
- s *Service
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
- }
-
- // List: Returns the list of root categories of sensitive information.
- func (r *RootCategoriesService) List() *RootCategoriesListCall {
- c := &RootCategoriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- return c
- }
-
- // LanguageCode sets the optional parameter "languageCode": Optional
- // language code for localized friendly category names.
- // If omitted or if localized strings are not available,
- // en-US strings will be returned.
- func (c *RootCategoriesListCall) LanguageCode(languageCode string) *RootCategoriesListCall {
- c.urlParams_.Set("languageCode", languageCode)
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *RootCategoriesListCall) Fields(s ...googleapi.Field) *RootCategoriesListCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // IfNoneMatch sets the optional parameter which makes the operation
- // fail if the object's ETag matches the given value. This is useful for
- // getting updates only after the object has changed since the last
- // request. Use googleapi.IsNotModified to check whether the response
- // error from Do is the result of In-None-Match.
- func (c *RootCategoriesListCall) IfNoneMatch(entityTag string) *RootCategoriesListCall {
- c.ifNoneMatch_ = entityTag
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *RootCategoriesListCall) Context(ctx context.Context) *RootCategoriesListCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *RootCategoriesListCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *RootCategoriesListCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
- var body io.Reader = nil
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/rootCategories")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
- req.Header = reqHeaders
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "dlp.rootCategories.list" call.
- // Exactly one of *GooglePrivacyDlpV2beta1ListRootCategoriesResponse or
- // error will be non-nil. Any non-2xx status code is an error. Response
- // headers are in either
- // *GooglePrivacyDlpV2beta1ListRootCategoriesResponse.ServerResponse.Head
- // er or (if a response was returned at all) in
- // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
- // whether the returned error was because http.StatusNotModified was
- // returned.
- func (c *RootCategoriesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta1ListRootCategoriesResponse, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GooglePrivacyDlpV2beta1ListRootCategoriesResponse{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "Returns the list of root categories of sensitive information.",
- // "flatPath": "v2beta1/rootCategories",
- // "httpMethod": "GET",
- // "id": "dlp.rootCategories.list",
- // "parameterOrder": [],
- // "parameters": {
- // "languageCode": {
- // "description": "Optional language code for localized friendly category names.\nIf omitted or if localized strings are not available,\nen-US strings will be returned.",
- // "location": "query",
- // "type": "string"
- // }
- // },
- // "path": "v2beta1/rootCategories",
- // "response": {
- // "$ref": "GooglePrivacyDlpV2beta1ListRootCategoriesResponse"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
-
- // method id "dlp.rootCategories.infoTypes.list":
-
- type RootCategoriesInfoTypesListCall struct {
- s *Service
- category string
- urlParams_ gensupport.URLParams
- ifNoneMatch_ string
- ctx_ context.Context
- header_ http.Header
- }
-
- // List: Returns sensitive information types for given category.
- func (r *RootCategoriesInfoTypesService) List(category string) *RootCategoriesInfoTypesListCall {
- c := &RootCategoriesInfoTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
- c.category = category
- return c
- }
-
- // LanguageCode sets the optional parameter "languageCode": Optional
- // BCP-47 language code for localized info type friendly
- // names. If omitted, or if localized strings are not available,
- // en-US strings will be returned.
- func (c *RootCategoriesInfoTypesListCall) LanguageCode(languageCode string) *RootCategoriesInfoTypesListCall {
- c.urlParams_.Set("languageCode", languageCode)
- return c
- }
-
- // Fields allows partial responses to be retrieved. See
- // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
- // for more information.
- func (c *RootCategoriesInfoTypesListCall) Fields(s ...googleapi.Field) *RootCategoriesInfoTypesListCall {
- c.urlParams_.Set("fields", googleapi.CombineFields(s))
- return c
- }
-
- // IfNoneMatch sets the optional parameter which makes the operation
- // fail if the object's ETag matches the given value. This is useful for
- // getting updates only after the object has changed since the last
- // request. Use googleapi.IsNotModified to check whether the response
- // error from Do is the result of In-None-Match.
- func (c *RootCategoriesInfoTypesListCall) IfNoneMatch(entityTag string) *RootCategoriesInfoTypesListCall {
- c.ifNoneMatch_ = entityTag
- return c
- }
-
- // Context sets the context to be used in this call's Do method. Any
- // pending HTTP request will be aborted if the provided context is
- // canceled.
- func (c *RootCategoriesInfoTypesListCall) Context(ctx context.Context) *RootCategoriesInfoTypesListCall {
- c.ctx_ = ctx
- return c
- }
-
- // Header returns an http.Header that can be modified by the caller to
- // add HTTP headers to the request.
- func (c *RootCategoriesInfoTypesListCall) Header() http.Header {
- if c.header_ == nil {
- c.header_ = make(http.Header)
- }
- return c.header_
- }
-
- func (c *RootCategoriesInfoTypesListCall) doRequest(alt string) (*http.Response, error) {
- reqHeaders := make(http.Header)
- for k, v := range c.header_ {
- reqHeaders[k] = v
- }
- reqHeaders.Set("User-Agent", c.s.userAgent())
- if c.ifNoneMatch_ != "" {
- reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
- }
- var body io.Reader = nil
- c.urlParams_.Set("alt", alt)
- urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/rootCategories/{+category}/infoTypes")
- urls += "?" + c.urlParams_.Encode()
- req, _ := http.NewRequest("GET", urls, body)
- req.Header = reqHeaders
- googleapi.Expand(req.URL, map[string]string{
- "category": c.category,
- })
- return gensupport.SendRequest(c.ctx_, c.s.client, req)
- }
-
- // Do executes the "dlp.rootCategories.infoTypes.list" call.
- // Exactly one of *GooglePrivacyDlpV2beta1ListInfoTypesResponse or error
- // will be non-nil. Any non-2xx status code is an error. Response
- // headers are in either
- // *GooglePrivacyDlpV2beta1ListInfoTypesResponse.ServerResponse.Header
- // or (if a response was returned at all) in
- // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
- // whether the returned error was because http.StatusNotModified was
- // returned.
- func (c *RootCategoriesInfoTypesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2beta1ListInfoTypesResponse, error) {
- gensupport.SetOptions(c.urlParams_, opts...)
- res, err := c.doRequest("json")
- if res != nil && res.StatusCode == http.StatusNotModified {
- if res.Body != nil {
- res.Body.Close()
- }
- return nil, &googleapi.Error{
- Code: res.StatusCode,
- Header: res.Header,
- }
- }
- if err != nil {
- return nil, err
- }
- defer googleapi.CloseBody(res)
- if err := googleapi.CheckResponse(res); err != nil {
- return nil, err
- }
- ret := &GooglePrivacyDlpV2beta1ListInfoTypesResponse{
- ServerResponse: googleapi.ServerResponse{
- Header: res.Header,
- HTTPStatusCode: res.StatusCode,
- },
- }
- target := &ret
- if err := gensupport.DecodeResponse(target, res); err != nil {
- return nil, err
- }
- return ret, nil
- // {
- // "description": "Returns sensitive information types for given category.",
- // "flatPath": "v2beta1/rootCategories/{rootCategoriesId}/infoTypes",
- // "httpMethod": "GET",
- // "id": "dlp.rootCategories.infoTypes.list",
- // "parameterOrder": [
- // "category"
- // ],
- // "parameters": {
- // "category": {
- // "description": "Category name as returned by ListRootCategories.",
- // "location": "path",
- // "pattern": "^[^/]+$",
- // "required": true,
- // "type": "string"
- // },
- // "languageCode": {
- // "description": "Optional BCP-47 language code for localized info type friendly\nnames. If omitted, or if localized strings are not available,\nen-US strings will be returned.",
- // "location": "query",
- // "type": "string"
- // }
- // },
- // "path": "v2beta1/rootCategories/{+category}/infoTypes",
- // "response": {
- // "$ref": "GooglePrivacyDlpV2beta1ListInfoTypesResponse"
- // },
- // "scopes": [
- // "https://www.googleapis.com/auth/cloud-platform"
- // ]
- // }
-
- }
|