Logging.php 131 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. namespace Google\Service;
  18. use Google\Client;
  19. /**
  20. * Service definition for Logging (v2).
  21. *
  22. * <p>
  23. * Writes log entries and manages your Cloud Logging configuration.</p>
  24. *
  25. * <p>
  26. * For more information about this service, see the API
  27. * <a href="https://cloud.google.com/logging/docs/" target="_blank">Documentation</a>
  28. * </p>
  29. *
  30. * @author Google, Inc.
  31. */
  32. class Logging extends \Google\Service
  33. {
  34. /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
  35. const CLOUD_PLATFORM =
  36. "https://www.googleapis.com/auth/cloud-platform";
  37. /** View your data across Google Cloud services and see the email address of your Google Account. */
  38. const CLOUD_PLATFORM_READ_ONLY =
  39. "https://www.googleapis.com/auth/cloud-platform.read-only";
  40. /** Administrate log data for your projects. */
  41. const LOGGING_ADMIN =
  42. "https://www.googleapis.com/auth/logging.admin";
  43. /** View log data for your projects. */
  44. const LOGGING_READ =
  45. "https://www.googleapis.com/auth/logging.read";
  46. /** Submit log data for your projects. */
  47. const LOGGING_WRITE =
  48. "https://www.googleapis.com/auth/logging.write";
  49. public $billingAccounts;
  50. public $billingAccounts_exclusions;
  51. public $billingAccounts_locations;
  52. public $billingAccounts_locations_buckets;
  53. public $billingAccounts_locations_buckets_links;
  54. public $billingAccounts_locations_buckets_views;
  55. public $billingAccounts_locations_buckets_views_logs;
  56. public $billingAccounts_locations_operations;
  57. public $billingAccounts_locations_recentQueries;
  58. public $billingAccounts_locations_savedQueries;
  59. public $billingAccounts_logs;
  60. public $billingAccounts_sinks;
  61. public $entries;
  62. public $exclusions;
  63. public $folders;
  64. public $folders_exclusions;
  65. public $folders_locations;
  66. public $folders_locations_buckets;
  67. public $folders_locations_buckets_links;
  68. public $folders_locations_buckets_views;
  69. public $folders_locations_buckets_views_logs;
  70. public $folders_locations_logScopes;
  71. public $folders_locations_operations;
  72. public $folders_locations_recentQueries;
  73. public $folders_locations_savedQueries;
  74. public $folders_logs;
  75. public $folders_sinks;
  76. public $locations;
  77. public $locations_buckets;
  78. public $locations_buckets_links;
  79. public $locations_buckets_views;
  80. public $locations_operations;
  81. public $logs;
  82. public $monitoredResourceDescriptors;
  83. public $organizations;
  84. public $organizations_exclusions;
  85. public $organizations_locations;
  86. public $organizations_locations_buckets;
  87. public $organizations_locations_buckets_links;
  88. public $organizations_locations_buckets_views;
  89. public $organizations_locations_buckets_views_logs;
  90. public $organizations_locations_logScopes;
  91. public $organizations_locations_operations;
  92. public $organizations_locations_recentQueries;
  93. public $organizations_locations_savedQueries;
  94. public $organizations_logs;
  95. public $organizations_sinks;
  96. public $projects;
  97. public $projects_exclusions;
  98. public $projects_locations;
  99. public $projects_locations_buckets;
  100. public $projects_locations_buckets_links;
  101. public $projects_locations_buckets_views;
  102. public $projects_locations_buckets_views_logs;
  103. public $projects_locations_logScopes;
  104. public $projects_locations_operations;
  105. public $projects_locations_recentQueries;
  106. public $projects_locations_savedQueries;
  107. public $projects_logs;
  108. public $projects_metrics;
  109. public $projects_sinks;
  110. public $sinks;
  111. public $v2;
  112. public $rootUrlTemplate;
  113. /**
  114. * Constructs the internal representation of the Logging service.
  115. *
  116. * @param Client|array $clientOrConfig The client used to deliver requests, or a
  117. * config array to pass to a new Client instance.
  118. * @param string $rootUrl The root URL used for requests to the service.
  119. */
  120. public function __construct($clientOrConfig = [], $rootUrl = null)
  121. {
  122. parent::__construct($clientOrConfig);
  123. $this->rootUrl = $rootUrl ?: 'https://logging.googleapis.com/';
  124. $this->rootUrlTemplate = $rootUrl ?: 'https://logging.UNIVERSE_DOMAIN/';
  125. $this->servicePath = '';
  126. $this->batchPath = 'batch';
  127. $this->version = 'v2';
  128. $this->serviceName = 'logging';
  129. $this->billingAccounts = new Logging\Resource\BillingAccounts(
  130. $this,
  131. $this->serviceName,
  132. 'billingAccounts',
  133. [
  134. 'methods' => [
  135. 'getCmekSettings' => [
  136. 'path' => 'v2/{+name}/cmekSettings',
  137. 'httpMethod' => 'GET',
  138. 'parameters' => [
  139. 'name' => [
  140. 'location' => 'path',
  141. 'type' => 'string',
  142. 'required' => true,
  143. ],
  144. ],
  145. ],'getSettings' => [
  146. 'path' => 'v2/{+name}/settings',
  147. 'httpMethod' => 'GET',
  148. 'parameters' => [
  149. 'name' => [
  150. 'location' => 'path',
  151. 'type' => 'string',
  152. 'required' => true,
  153. ],
  154. ],
  155. ],
  156. ]
  157. ]
  158. );
  159. $this->billingAccounts_exclusions = new Logging\Resource\BillingAccountsExclusions(
  160. $this,
  161. $this->serviceName,
  162. 'exclusions',
  163. [
  164. 'methods' => [
  165. 'create' => [
  166. 'path' => 'v2/{+parent}/exclusions',
  167. 'httpMethod' => 'POST',
  168. 'parameters' => [
  169. 'parent' => [
  170. 'location' => 'path',
  171. 'type' => 'string',
  172. 'required' => true,
  173. ],
  174. ],
  175. ],'delete' => [
  176. 'path' => 'v2/{+name}',
  177. 'httpMethod' => 'DELETE',
  178. 'parameters' => [
  179. 'name' => [
  180. 'location' => 'path',
  181. 'type' => 'string',
  182. 'required' => true,
  183. ],
  184. ],
  185. ],'get' => [
  186. 'path' => 'v2/{+name}',
  187. 'httpMethod' => 'GET',
  188. 'parameters' => [
  189. 'name' => [
  190. 'location' => 'path',
  191. 'type' => 'string',
  192. 'required' => true,
  193. ],
  194. ],
  195. ],'list' => [
  196. 'path' => 'v2/{+parent}/exclusions',
  197. 'httpMethod' => 'GET',
  198. 'parameters' => [
  199. 'parent' => [
  200. 'location' => 'path',
  201. 'type' => 'string',
  202. 'required' => true,
  203. ],
  204. 'pageSize' => [
  205. 'location' => 'query',
  206. 'type' => 'integer',
  207. ],
  208. 'pageToken' => [
  209. 'location' => 'query',
  210. 'type' => 'string',
  211. ],
  212. ],
  213. ],'patch' => [
  214. 'path' => 'v2/{+name}',
  215. 'httpMethod' => 'PATCH',
  216. 'parameters' => [
  217. 'name' => [
  218. 'location' => 'path',
  219. 'type' => 'string',
  220. 'required' => true,
  221. ],
  222. 'updateMask' => [
  223. 'location' => 'query',
  224. 'type' => 'string',
  225. ],
  226. ],
  227. ],
  228. ]
  229. ]
  230. );
  231. $this->billingAccounts_locations = new Logging\Resource\BillingAccountsLocations(
  232. $this,
  233. $this->serviceName,
  234. 'locations',
  235. [
  236. 'methods' => [
  237. 'get' => [
  238. 'path' => 'v2/{+name}',
  239. 'httpMethod' => 'GET',
  240. 'parameters' => [
  241. 'name' => [
  242. 'location' => 'path',
  243. 'type' => 'string',
  244. 'required' => true,
  245. ],
  246. ],
  247. ],'list' => [
  248. 'path' => 'v2/{+name}/locations',
  249. 'httpMethod' => 'GET',
  250. 'parameters' => [
  251. 'name' => [
  252. 'location' => 'path',
  253. 'type' => 'string',
  254. 'required' => true,
  255. ],
  256. 'extraLocationTypes' => [
  257. 'location' => 'query',
  258. 'type' => 'string',
  259. 'repeated' => true,
  260. ],
  261. 'filter' => [
  262. 'location' => 'query',
  263. 'type' => 'string',
  264. ],
  265. 'pageSize' => [
  266. 'location' => 'query',
  267. 'type' => 'integer',
  268. ],
  269. 'pageToken' => [
  270. 'location' => 'query',
  271. 'type' => 'string',
  272. ],
  273. ],
  274. ],
  275. ]
  276. ]
  277. );
  278. $this->billingAccounts_locations_buckets = new Logging\Resource\BillingAccountsLocationsBuckets(
  279. $this,
  280. $this->serviceName,
  281. 'buckets',
  282. [
  283. 'methods' => [
  284. 'create' => [
  285. 'path' => 'v2/{+parent}/buckets',
  286. 'httpMethod' => 'POST',
  287. 'parameters' => [
  288. 'parent' => [
  289. 'location' => 'path',
  290. 'type' => 'string',
  291. 'required' => true,
  292. ],
  293. 'bucketId' => [
  294. 'location' => 'query',
  295. 'type' => 'string',
  296. ],
  297. ],
  298. ],'createAsync' => [
  299. 'path' => 'v2/{+parent}/buckets:createAsync',
  300. 'httpMethod' => 'POST',
  301. 'parameters' => [
  302. 'parent' => [
  303. 'location' => 'path',
  304. 'type' => 'string',
  305. 'required' => true,
  306. ],
  307. 'bucketId' => [
  308. 'location' => 'query',
  309. 'type' => 'string',
  310. ],
  311. ],
  312. ],'delete' => [
  313. 'path' => 'v2/{+name}',
  314. 'httpMethod' => 'DELETE',
  315. 'parameters' => [
  316. 'name' => [
  317. 'location' => 'path',
  318. 'type' => 'string',
  319. 'required' => true,
  320. ],
  321. ],
  322. ],'get' => [
  323. 'path' => 'v2/{+name}',
  324. 'httpMethod' => 'GET',
  325. 'parameters' => [
  326. 'name' => [
  327. 'location' => 'path',
  328. 'type' => 'string',
  329. 'required' => true,
  330. ],
  331. ],
  332. ],'list' => [
  333. 'path' => 'v2/{+parent}/buckets',
  334. 'httpMethod' => 'GET',
  335. 'parameters' => [
  336. 'parent' => [
  337. 'location' => 'path',
  338. 'type' => 'string',
  339. 'required' => true,
  340. ],
  341. 'pageSize' => [
  342. 'location' => 'query',
  343. 'type' => 'integer',
  344. ],
  345. 'pageToken' => [
  346. 'location' => 'query',
  347. 'type' => 'string',
  348. ],
  349. ],
  350. ],'patch' => [
  351. 'path' => 'v2/{+name}',
  352. 'httpMethod' => 'PATCH',
  353. 'parameters' => [
  354. 'name' => [
  355. 'location' => 'path',
  356. 'type' => 'string',
  357. 'required' => true,
  358. ],
  359. 'updateMask' => [
  360. 'location' => 'query',
  361. 'type' => 'string',
  362. ],
  363. ],
  364. ],'undelete' => [
  365. 'path' => 'v2/{+name}:undelete',
  366. 'httpMethod' => 'POST',
  367. 'parameters' => [
  368. 'name' => [
  369. 'location' => 'path',
  370. 'type' => 'string',
  371. 'required' => true,
  372. ],
  373. ],
  374. ],'updateAsync' => [
  375. 'path' => 'v2/{+name}:updateAsync',
  376. 'httpMethod' => 'POST',
  377. 'parameters' => [
  378. 'name' => [
  379. 'location' => 'path',
  380. 'type' => 'string',
  381. 'required' => true,
  382. ],
  383. 'updateMask' => [
  384. 'location' => 'query',
  385. 'type' => 'string',
  386. ],
  387. ],
  388. ],
  389. ]
  390. ]
  391. );
  392. $this->billingAccounts_locations_buckets_links = new Logging\Resource\BillingAccountsLocationsBucketsLinks(
  393. $this,
  394. $this->serviceName,
  395. 'links',
  396. [
  397. 'methods' => [
  398. 'create' => [
  399. 'path' => 'v2/{+parent}/links',
  400. 'httpMethod' => 'POST',
  401. 'parameters' => [
  402. 'parent' => [
  403. 'location' => 'path',
  404. 'type' => 'string',
  405. 'required' => true,
  406. ],
  407. 'linkId' => [
  408. 'location' => 'query',
  409. 'type' => 'string',
  410. ],
  411. ],
  412. ],'delete' => [
  413. 'path' => 'v2/{+name}',
  414. 'httpMethod' => 'DELETE',
  415. 'parameters' => [
  416. 'name' => [
  417. 'location' => 'path',
  418. 'type' => 'string',
  419. 'required' => true,
  420. ],
  421. ],
  422. ],'get' => [
  423. 'path' => 'v2/{+name}',
  424. 'httpMethod' => 'GET',
  425. 'parameters' => [
  426. 'name' => [
  427. 'location' => 'path',
  428. 'type' => 'string',
  429. 'required' => true,
  430. ],
  431. ],
  432. ],'list' => [
  433. 'path' => 'v2/{+parent}/links',
  434. 'httpMethod' => 'GET',
  435. 'parameters' => [
  436. 'parent' => [
  437. 'location' => 'path',
  438. 'type' => 'string',
  439. 'required' => true,
  440. ],
  441. 'pageSize' => [
  442. 'location' => 'query',
  443. 'type' => 'integer',
  444. ],
  445. 'pageToken' => [
  446. 'location' => 'query',
  447. 'type' => 'string',
  448. ],
  449. ],
  450. ],
  451. ]
  452. ]
  453. );
  454. $this->billingAccounts_locations_buckets_views = new Logging\Resource\BillingAccountsLocationsBucketsViews(
  455. $this,
  456. $this->serviceName,
  457. 'views',
  458. [
  459. 'methods' => [
  460. 'create' => [
  461. 'path' => 'v2/{+parent}/views',
  462. 'httpMethod' => 'POST',
  463. 'parameters' => [
  464. 'parent' => [
  465. 'location' => 'path',
  466. 'type' => 'string',
  467. 'required' => true,
  468. ],
  469. 'viewId' => [
  470. 'location' => 'query',
  471. 'type' => 'string',
  472. ],
  473. ],
  474. ],'delete' => [
  475. 'path' => 'v2/{+name}',
  476. 'httpMethod' => 'DELETE',
  477. 'parameters' => [
  478. 'name' => [
  479. 'location' => 'path',
  480. 'type' => 'string',
  481. 'required' => true,
  482. ],
  483. ],
  484. ],'get' => [
  485. 'path' => 'v2/{+name}',
  486. 'httpMethod' => 'GET',
  487. 'parameters' => [
  488. 'name' => [
  489. 'location' => 'path',
  490. 'type' => 'string',
  491. 'required' => true,
  492. ],
  493. ],
  494. ],'list' => [
  495. 'path' => 'v2/{+parent}/views',
  496. 'httpMethod' => 'GET',
  497. 'parameters' => [
  498. 'parent' => [
  499. 'location' => 'path',
  500. 'type' => 'string',
  501. 'required' => true,
  502. ],
  503. 'pageSize' => [
  504. 'location' => 'query',
  505. 'type' => 'integer',
  506. ],
  507. 'pageToken' => [
  508. 'location' => 'query',
  509. 'type' => 'string',
  510. ],
  511. ],
  512. ],'patch' => [
  513. 'path' => 'v2/{+name}',
  514. 'httpMethod' => 'PATCH',
  515. 'parameters' => [
  516. 'name' => [
  517. 'location' => 'path',
  518. 'type' => 'string',
  519. 'required' => true,
  520. ],
  521. 'updateMask' => [
  522. 'location' => 'query',
  523. 'type' => 'string',
  524. ],
  525. ],
  526. ],
  527. ]
  528. ]
  529. );
  530. $this->billingAccounts_locations_buckets_views_logs = new Logging\Resource\BillingAccountsLocationsBucketsViewsLogs(
  531. $this,
  532. $this->serviceName,
  533. 'logs',
  534. [
  535. 'methods' => [
  536. 'list' => [
  537. 'path' => 'v2/{+parent}/logs',
  538. 'httpMethod' => 'GET',
  539. 'parameters' => [
  540. 'parent' => [
  541. 'location' => 'path',
  542. 'type' => 'string',
  543. 'required' => true,
  544. ],
  545. 'pageSize' => [
  546. 'location' => 'query',
  547. 'type' => 'integer',
  548. ],
  549. 'pageToken' => [
  550. 'location' => 'query',
  551. 'type' => 'string',
  552. ],
  553. 'resourceNames' => [
  554. 'location' => 'query',
  555. 'type' => 'string',
  556. 'repeated' => true,
  557. ],
  558. ],
  559. ],
  560. ]
  561. ]
  562. );
  563. $this->billingAccounts_locations_operations = new Logging\Resource\BillingAccountsLocationsOperations(
  564. $this,
  565. $this->serviceName,
  566. 'operations',
  567. [
  568. 'methods' => [
  569. 'cancel' => [
  570. 'path' => 'v2/{+name}:cancel',
  571. 'httpMethod' => 'POST',
  572. 'parameters' => [
  573. 'name' => [
  574. 'location' => 'path',
  575. 'type' => 'string',
  576. 'required' => true,
  577. ],
  578. ],
  579. ],'get' => [
  580. 'path' => 'v2/{+name}',
  581. 'httpMethod' => 'GET',
  582. 'parameters' => [
  583. 'name' => [
  584. 'location' => 'path',
  585. 'type' => 'string',
  586. 'required' => true,
  587. ],
  588. ],
  589. ],'list' => [
  590. 'path' => 'v2/{+name}/operations',
  591. 'httpMethod' => 'GET',
  592. 'parameters' => [
  593. 'name' => [
  594. 'location' => 'path',
  595. 'type' => 'string',
  596. 'required' => true,
  597. ],
  598. 'filter' => [
  599. 'location' => 'query',
  600. 'type' => 'string',
  601. ],
  602. 'pageSize' => [
  603. 'location' => 'query',
  604. 'type' => 'integer',
  605. ],
  606. 'pageToken' => [
  607. 'location' => 'query',
  608. 'type' => 'string',
  609. ],
  610. 'returnPartialSuccess' => [
  611. 'location' => 'query',
  612. 'type' => 'boolean',
  613. ],
  614. ],
  615. ],
  616. ]
  617. ]
  618. );
  619. $this->billingAccounts_locations_recentQueries = new Logging\Resource\BillingAccountsLocationsRecentQueries(
  620. $this,
  621. $this->serviceName,
  622. 'recentQueries',
  623. [
  624. 'methods' => [
  625. 'list' => [
  626. 'path' => 'v2/{+parent}/recentQueries',
  627. 'httpMethod' => 'GET',
  628. 'parameters' => [
  629. 'parent' => [
  630. 'location' => 'path',
  631. 'type' => 'string',
  632. 'required' => true,
  633. ],
  634. 'filter' => [
  635. 'location' => 'query',
  636. 'type' => 'string',
  637. ],
  638. 'pageSize' => [
  639. 'location' => 'query',
  640. 'type' => 'integer',
  641. ],
  642. 'pageToken' => [
  643. 'location' => 'query',
  644. 'type' => 'string',
  645. ],
  646. ],
  647. ],
  648. ]
  649. ]
  650. );
  651. $this->billingAccounts_locations_savedQueries = new Logging\Resource\BillingAccountsLocationsSavedQueries(
  652. $this,
  653. $this->serviceName,
  654. 'savedQueries',
  655. [
  656. 'methods' => [
  657. 'create' => [
  658. 'path' => 'v2/{+parent}/savedQueries',
  659. 'httpMethod' => 'POST',
  660. 'parameters' => [
  661. 'parent' => [
  662. 'location' => 'path',
  663. 'type' => 'string',
  664. 'required' => true,
  665. ],
  666. 'savedQueryId' => [
  667. 'location' => 'query',
  668. 'type' => 'string',
  669. ],
  670. ],
  671. ],'delete' => [
  672. 'path' => 'v2/{+name}',
  673. 'httpMethod' => 'DELETE',
  674. 'parameters' => [
  675. 'name' => [
  676. 'location' => 'path',
  677. 'type' => 'string',
  678. 'required' => true,
  679. ],
  680. ],
  681. ],'get' => [
  682. 'path' => 'v2/{+name}',
  683. 'httpMethod' => 'GET',
  684. 'parameters' => [
  685. 'name' => [
  686. 'location' => 'path',
  687. 'type' => 'string',
  688. 'required' => true,
  689. ],
  690. ],
  691. ],'list' => [
  692. 'path' => 'v2/{+parent}/savedQueries',
  693. 'httpMethod' => 'GET',
  694. 'parameters' => [
  695. 'parent' => [
  696. 'location' => 'path',
  697. 'type' => 'string',
  698. 'required' => true,
  699. ],
  700. 'filter' => [
  701. 'location' => 'query',
  702. 'type' => 'string',
  703. ],
  704. 'pageSize' => [
  705. 'location' => 'query',
  706. 'type' => 'integer',
  707. ],
  708. 'pageToken' => [
  709. 'location' => 'query',
  710. 'type' => 'string',
  711. ],
  712. ],
  713. ],'patch' => [
  714. 'path' => 'v2/{+name}',
  715. 'httpMethod' => 'PATCH',
  716. 'parameters' => [
  717. 'name' => [
  718. 'location' => 'path',
  719. 'type' => 'string',
  720. 'required' => true,
  721. ],
  722. 'updateMask' => [
  723. 'location' => 'query',
  724. 'type' => 'string',
  725. ],
  726. ],
  727. ],
  728. ]
  729. ]
  730. );
  731. $this->billingAccounts_logs = new Logging\Resource\BillingAccountsLogs(
  732. $this,
  733. $this->serviceName,
  734. 'logs',
  735. [
  736. 'methods' => [
  737. 'delete' => [
  738. 'path' => 'v2/{+logName}',
  739. 'httpMethod' => 'DELETE',
  740. 'parameters' => [
  741. 'logName' => [
  742. 'location' => 'path',
  743. 'type' => 'string',
  744. 'required' => true,
  745. ],
  746. ],
  747. ],'list' => [
  748. 'path' => 'v2/{+parent}/logs',
  749. 'httpMethod' => 'GET',
  750. 'parameters' => [
  751. 'parent' => [
  752. 'location' => 'path',
  753. 'type' => 'string',
  754. 'required' => true,
  755. ],
  756. 'pageSize' => [
  757. 'location' => 'query',
  758. 'type' => 'integer',
  759. ],
  760. 'pageToken' => [
  761. 'location' => 'query',
  762. 'type' => 'string',
  763. ],
  764. 'resourceNames' => [
  765. 'location' => 'query',
  766. 'type' => 'string',
  767. 'repeated' => true,
  768. ],
  769. ],
  770. ],
  771. ]
  772. ]
  773. );
  774. $this->billingAccounts_sinks = new Logging\Resource\BillingAccountsSinks(
  775. $this,
  776. $this->serviceName,
  777. 'sinks',
  778. [
  779. 'methods' => [
  780. 'create' => [
  781. 'path' => 'v2/{+parent}/sinks',
  782. 'httpMethod' => 'POST',
  783. 'parameters' => [
  784. 'parent' => [
  785. 'location' => 'path',
  786. 'type' => 'string',
  787. 'required' => true,
  788. ],
  789. 'customWriterIdentity' => [
  790. 'location' => 'query',
  791. 'type' => 'string',
  792. ],
  793. 'uniqueWriterIdentity' => [
  794. 'location' => 'query',
  795. 'type' => 'boolean',
  796. ],
  797. ],
  798. ],'delete' => [
  799. 'path' => 'v2/{+sinkName}',
  800. 'httpMethod' => 'DELETE',
  801. 'parameters' => [
  802. 'sinkName' => [
  803. 'location' => 'path',
  804. 'type' => 'string',
  805. 'required' => true,
  806. ],
  807. ],
  808. ],'get' => [
  809. 'path' => 'v2/{+sinkName}',
  810. 'httpMethod' => 'GET',
  811. 'parameters' => [
  812. 'sinkName' => [
  813. 'location' => 'path',
  814. 'type' => 'string',
  815. 'required' => true,
  816. ],
  817. ],
  818. ],'list' => [
  819. 'path' => 'v2/{+parent}/sinks',
  820. 'httpMethod' => 'GET',
  821. 'parameters' => [
  822. 'parent' => [
  823. 'location' => 'path',
  824. 'type' => 'string',
  825. 'required' => true,
  826. ],
  827. 'filter' => [
  828. 'location' => 'query',
  829. 'type' => 'string',
  830. ],
  831. 'pageSize' => [
  832. 'location' => 'query',
  833. 'type' => 'integer',
  834. ],
  835. 'pageToken' => [
  836. 'location' => 'query',
  837. 'type' => 'string',
  838. ],
  839. ],
  840. ],'patch' => [
  841. 'path' => 'v2/{+sinkName}',
  842. 'httpMethod' => 'PATCH',
  843. 'parameters' => [
  844. 'sinkName' => [
  845. 'location' => 'path',
  846. 'type' => 'string',
  847. 'required' => true,
  848. ],
  849. 'customWriterIdentity' => [
  850. 'location' => 'query',
  851. 'type' => 'string',
  852. ],
  853. 'uniqueWriterIdentity' => [
  854. 'location' => 'query',
  855. 'type' => 'boolean',
  856. ],
  857. 'updateMask' => [
  858. 'location' => 'query',
  859. 'type' => 'string',
  860. ],
  861. ],
  862. ],'update' => [
  863. 'path' => 'v2/{+sinkName}',
  864. 'httpMethod' => 'PUT',
  865. 'parameters' => [
  866. 'sinkName' => [
  867. 'location' => 'path',
  868. 'type' => 'string',
  869. 'required' => true,
  870. ],
  871. 'customWriterIdentity' => [
  872. 'location' => 'query',
  873. 'type' => 'string',
  874. ],
  875. 'uniqueWriterIdentity' => [
  876. 'location' => 'query',
  877. 'type' => 'boolean',
  878. ],
  879. 'updateMask' => [
  880. 'location' => 'query',
  881. 'type' => 'string',
  882. ],
  883. ],
  884. ],
  885. ]
  886. ]
  887. );
  888. $this->entries = new Logging\Resource\Entries(
  889. $this,
  890. $this->serviceName,
  891. 'entries',
  892. [
  893. 'methods' => [
  894. 'copy' => [
  895. 'path' => 'v2/entries:copy',
  896. 'httpMethod' => 'POST',
  897. 'parameters' => [],
  898. ],'list' => [
  899. 'path' => 'v2/entries:list',
  900. 'httpMethod' => 'POST',
  901. 'parameters' => [],
  902. ],'tail' => [
  903. 'path' => 'v2/entries:tail',
  904. 'httpMethod' => 'POST',
  905. 'parameters' => [],
  906. ],'write' => [
  907. 'path' => 'v2/entries:write',
  908. 'httpMethod' => 'POST',
  909. 'parameters' => [],
  910. ],
  911. ]
  912. ]
  913. );
  914. $this->exclusions = new Logging\Resource\Exclusions(
  915. $this,
  916. $this->serviceName,
  917. 'exclusions',
  918. [
  919. 'methods' => [
  920. 'create' => [
  921. 'path' => 'v2/{+parent}/exclusions',
  922. 'httpMethod' => 'POST',
  923. 'parameters' => [
  924. 'parent' => [
  925. 'location' => 'path',
  926. 'type' => 'string',
  927. 'required' => true,
  928. ],
  929. ],
  930. ],'delete' => [
  931. 'path' => 'v2/{+name}',
  932. 'httpMethod' => 'DELETE',
  933. 'parameters' => [
  934. 'name' => [
  935. 'location' => 'path',
  936. 'type' => 'string',
  937. 'required' => true,
  938. ],
  939. ],
  940. ],'get' => [
  941. 'path' => 'v2/{+name}',
  942. 'httpMethod' => 'GET',
  943. 'parameters' => [
  944. 'name' => [
  945. 'location' => 'path',
  946. 'type' => 'string',
  947. 'required' => true,
  948. ],
  949. ],
  950. ],'list' => [
  951. 'path' => 'v2/{+parent}/exclusions',
  952. 'httpMethod' => 'GET',
  953. 'parameters' => [
  954. 'parent' => [
  955. 'location' => 'path',
  956. 'type' => 'string',
  957. 'required' => true,
  958. ],
  959. 'pageSize' => [
  960. 'location' => 'query',
  961. 'type' => 'integer',
  962. ],
  963. 'pageToken' => [
  964. 'location' => 'query',
  965. 'type' => 'string',
  966. ],
  967. ],
  968. ],'patch' => [
  969. 'path' => 'v2/{+name}',
  970. 'httpMethod' => 'PATCH',
  971. 'parameters' => [
  972. 'name' => [
  973. 'location' => 'path',
  974. 'type' => 'string',
  975. 'required' => true,
  976. ],
  977. 'updateMask' => [
  978. 'location' => 'query',
  979. 'type' => 'string',
  980. ],
  981. ],
  982. ],
  983. ]
  984. ]
  985. );
  986. $this->folders = new Logging\Resource\Folders(
  987. $this,
  988. $this->serviceName,
  989. 'folders',
  990. [
  991. 'methods' => [
  992. 'getCmekSettings' => [
  993. 'path' => 'v2/{+name}/cmekSettings',
  994. 'httpMethod' => 'GET',
  995. 'parameters' => [
  996. 'name' => [
  997. 'location' => 'path',
  998. 'type' => 'string',
  999. 'required' => true,
  1000. ],
  1001. ],
  1002. ],'getSettings' => [
  1003. 'path' => 'v2/{+name}/settings',
  1004. 'httpMethod' => 'GET',
  1005. 'parameters' => [
  1006. 'name' => [
  1007. 'location' => 'path',
  1008. 'type' => 'string',
  1009. 'required' => true,
  1010. ],
  1011. ],
  1012. ],'updateSettings' => [
  1013. 'path' => 'v2/{+name}/settings',
  1014. 'httpMethod' => 'PATCH',
  1015. 'parameters' => [
  1016. 'name' => [
  1017. 'location' => 'path',
  1018. 'type' => 'string',
  1019. 'required' => true,
  1020. ],
  1021. 'updateMask' => [
  1022. 'location' => 'query',
  1023. 'type' => 'string',
  1024. ],
  1025. ],
  1026. ],
  1027. ]
  1028. ]
  1029. );
  1030. $this->folders_exclusions = new Logging\Resource\FoldersExclusions(
  1031. $this,
  1032. $this->serviceName,
  1033. 'exclusions',
  1034. [
  1035. 'methods' => [
  1036. 'create' => [
  1037. 'path' => 'v2/{+parent}/exclusions',
  1038. 'httpMethod' => 'POST',
  1039. 'parameters' => [
  1040. 'parent' => [
  1041. 'location' => 'path',
  1042. 'type' => 'string',
  1043. 'required' => true,
  1044. ],
  1045. ],
  1046. ],'delete' => [
  1047. 'path' => 'v2/{+name}',
  1048. 'httpMethod' => 'DELETE',
  1049. 'parameters' => [
  1050. 'name' => [
  1051. 'location' => 'path',
  1052. 'type' => 'string',
  1053. 'required' => true,
  1054. ],
  1055. ],
  1056. ],'get' => [
  1057. 'path' => 'v2/{+name}',
  1058. 'httpMethod' => 'GET',
  1059. 'parameters' => [
  1060. 'name' => [
  1061. 'location' => 'path',
  1062. 'type' => 'string',
  1063. 'required' => true,
  1064. ],
  1065. ],
  1066. ],'list' => [
  1067. 'path' => 'v2/{+parent}/exclusions',
  1068. 'httpMethod' => 'GET',
  1069. 'parameters' => [
  1070. 'parent' => [
  1071. 'location' => 'path',
  1072. 'type' => 'string',
  1073. 'required' => true,
  1074. ],
  1075. 'pageSize' => [
  1076. 'location' => 'query',
  1077. 'type' => 'integer',
  1078. ],
  1079. 'pageToken' => [
  1080. 'location' => 'query',
  1081. 'type' => 'string',
  1082. ],
  1083. ],
  1084. ],'patch' => [
  1085. 'path' => 'v2/{+name}',
  1086. 'httpMethod' => 'PATCH',
  1087. 'parameters' => [
  1088. 'name' => [
  1089. 'location' => 'path',
  1090. 'type' => 'string',
  1091. 'required' => true,
  1092. ],
  1093. 'updateMask' => [
  1094. 'location' => 'query',
  1095. 'type' => 'string',
  1096. ],
  1097. ],
  1098. ],
  1099. ]
  1100. ]
  1101. );
  1102. $this->folders_locations = new Logging\Resource\FoldersLocations(
  1103. $this,
  1104. $this->serviceName,
  1105. 'locations',
  1106. [
  1107. 'methods' => [
  1108. 'get' => [
  1109. 'path' => 'v2/{+name}',
  1110. 'httpMethod' => 'GET',
  1111. 'parameters' => [
  1112. 'name' => [
  1113. 'location' => 'path',
  1114. 'type' => 'string',
  1115. 'required' => true,
  1116. ],
  1117. ],
  1118. ],'list' => [
  1119. 'path' => 'v2/{+name}/locations',
  1120. 'httpMethod' => 'GET',
  1121. 'parameters' => [
  1122. 'name' => [
  1123. 'location' => 'path',
  1124. 'type' => 'string',
  1125. 'required' => true,
  1126. ],
  1127. 'extraLocationTypes' => [
  1128. 'location' => 'query',
  1129. 'type' => 'string',
  1130. 'repeated' => true,
  1131. ],
  1132. 'filter' => [
  1133. 'location' => 'query',
  1134. 'type' => 'string',
  1135. ],
  1136. 'pageSize' => [
  1137. 'location' => 'query',
  1138. 'type' => 'integer',
  1139. ],
  1140. 'pageToken' => [
  1141. 'location' => 'query',
  1142. 'type' => 'string',
  1143. ],
  1144. ],
  1145. ],
  1146. ]
  1147. ]
  1148. );
  1149. $this->folders_locations_buckets = new Logging\Resource\FoldersLocationsBuckets(
  1150. $this,
  1151. $this->serviceName,
  1152. 'buckets',
  1153. [
  1154. 'methods' => [
  1155. 'create' => [
  1156. 'path' => 'v2/{+parent}/buckets',
  1157. 'httpMethod' => 'POST',
  1158. 'parameters' => [
  1159. 'parent' => [
  1160. 'location' => 'path',
  1161. 'type' => 'string',
  1162. 'required' => true,
  1163. ],
  1164. 'bucketId' => [
  1165. 'location' => 'query',
  1166. 'type' => 'string',
  1167. ],
  1168. ],
  1169. ],'createAsync' => [
  1170. 'path' => 'v2/{+parent}/buckets:createAsync',
  1171. 'httpMethod' => 'POST',
  1172. 'parameters' => [
  1173. 'parent' => [
  1174. 'location' => 'path',
  1175. 'type' => 'string',
  1176. 'required' => true,
  1177. ],
  1178. 'bucketId' => [
  1179. 'location' => 'query',
  1180. 'type' => 'string',
  1181. ],
  1182. ],
  1183. ],'delete' => [
  1184. 'path' => 'v2/{+name}',
  1185. 'httpMethod' => 'DELETE',
  1186. 'parameters' => [
  1187. 'name' => [
  1188. 'location' => 'path',
  1189. 'type' => 'string',
  1190. 'required' => true,
  1191. ],
  1192. ],
  1193. ],'get' => [
  1194. 'path' => 'v2/{+name}',
  1195. 'httpMethod' => 'GET',
  1196. 'parameters' => [
  1197. 'name' => [
  1198. 'location' => 'path',
  1199. 'type' => 'string',
  1200. 'required' => true,
  1201. ],
  1202. ],
  1203. ],'list' => [
  1204. 'path' => 'v2/{+parent}/buckets',
  1205. 'httpMethod' => 'GET',
  1206. 'parameters' => [
  1207. 'parent' => [
  1208. 'location' => 'path',
  1209. 'type' => 'string',
  1210. 'required' => true,
  1211. ],
  1212. 'pageSize' => [
  1213. 'location' => 'query',
  1214. 'type' => 'integer',
  1215. ],
  1216. 'pageToken' => [
  1217. 'location' => 'query',
  1218. 'type' => 'string',
  1219. ],
  1220. ],
  1221. ],'patch' => [
  1222. 'path' => 'v2/{+name}',
  1223. 'httpMethod' => 'PATCH',
  1224. 'parameters' => [
  1225. 'name' => [
  1226. 'location' => 'path',
  1227. 'type' => 'string',
  1228. 'required' => true,
  1229. ],
  1230. 'updateMask' => [
  1231. 'location' => 'query',
  1232. 'type' => 'string',
  1233. ],
  1234. ],
  1235. ],'undelete' => [
  1236. 'path' => 'v2/{+name}:undelete',
  1237. 'httpMethod' => 'POST',
  1238. 'parameters' => [
  1239. 'name' => [
  1240. 'location' => 'path',
  1241. 'type' => 'string',
  1242. 'required' => true,
  1243. ],
  1244. ],
  1245. ],'updateAsync' => [
  1246. 'path' => 'v2/{+name}:updateAsync',
  1247. 'httpMethod' => 'POST',
  1248. 'parameters' => [
  1249. 'name' => [
  1250. 'location' => 'path',
  1251. 'type' => 'string',
  1252. 'required' => true,
  1253. ],
  1254. 'updateMask' => [
  1255. 'location' => 'query',
  1256. 'type' => 'string',
  1257. ],
  1258. ],
  1259. ],
  1260. ]
  1261. ]
  1262. );
  1263. $this->folders_locations_buckets_links = new Logging\Resource\FoldersLocationsBucketsLinks(
  1264. $this,
  1265. $this->serviceName,
  1266. 'links',
  1267. [
  1268. 'methods' => [
  1269. 'create' => [
  1270. 'path' => 'v2/{+parent}/links',
  1271. 'httpMethod' => 'POST',
  1272. 'parameters' => [
  1273. 'parent' => [
  1274. 'location' => 'path',
  1275. 'type' => 'string',
  1276. 'required' => true,
  1277. ],
  1278. 'linkId' => [
  1279. 'location' => 'query',
  1280. 'type' => 'string',
  1281. ],
  1282. ],
  1283. ],'delete' => [
  1284. 'path' => 'v2/{+name}',
  1285. 'httpMethod' => 'DELETE',
  1286. 'parameters' => [
  1287. 'name' => [
  1288. 'location' => 'path',
  1289. 'type' => 'string',
  1290. 'required' => true,
  1291. ],
  1292. ],
  1293. ],'get' => [
  1294. 'path' => 'v2/{+name}',
  1295. 'httpMethod' => 'GET',
  1296. 'parameters' => [
  1297. 'name' => [
  1298. 'location' => 'path',
  1299. 'type' => 'string',
  1300. 'required' => true,
  1301. ],
  1302. ],
  1303. ],'list' => [
  1304. 'path' => 'v2/{+parent}/links',
  1305. 'httpMethod' => 'GET',
  1306. 'parameters' => [
  1307. 'parent' => [
  1308. 'location' => 'path',
  1309. 'type' => 'string',
  1310. 'required' => true,
  1311. ],
  1312. 'pageSize' => [
  1313. 'location' => 'query',
  1314. 'type' => 'integer',
  1315. ],
  1316. 'pageToken' => [
  1317. 'location' => 'query',
  1318. 'type' => 'string',
  1319. ],
  1320. ],
  1321. ],
  1322. ]
  1323. ]
  1324. );
  1325. $this->folders_locations_buckets_views = new Logging\Resource\FoldersLocationsBucketsViews(
  1326. $this,
  1327. $this->serviceName,
  1328. 'views',
  1329. [
  1330. 'methods' => [
  1331. 'create' => [
  1332. 'path' => 'v2/{+parent}/views',
  1333. 'httpMethod' => 'POST',
  1334. 'parameters' => [
  1335. 'parent' => [
  1336. 'location' => 'path',
  1337. 'type' => 'string',
  1338. 'required' => true,
  1339. ],
  1340. 'viewId' => [
  1341. 'location' => 'query',
  1342. 'type' => 'string',
  1343. ],
  1344. ],
  1345. ],'delete' => [
  1346. 'path' => 'v2/{+name}',
  1347. 'httpMethod' => 'DELETE',
  1348. 'parameters' => [
  1349. 'name' => [
  1350. 'location' => 'path',
  1351. 'type' => 'string',
  1352. 'required' => true,
  1353. ],
  1354. ],
  1355. ],'get' => [
  1356. 'path' => 'v2/{+name}',
  1357. 'httpMethod' => 'GET',
  1358. 'parameters' => [
  1359. 'name' => [
  1360. 'location' => 'path',
  1361. 'type' => 'string',
  1362. 'required' => true,
  1363. ],
  1364. ],
  1365. ],'getIamPolicy' => [
  1366. 'path' => 'v2/{+resource}:getIamPolicy',
  1367. 'httpMethod' => 'POST',
  1368. 'parameters' => [
  1369. 'resource' => [
  1370. 'location' => 'path',
  1371. 'type' => 'string',
  1372. 'required' => true,
  1373. ],
  1374. ],
  1375. ],'list' => [
  1376. 'path' => 'v2/{+parent}/views',
  1377. 'httpMethod' => 'GET',
  1378. 'parameters' => [
  1379. 'parent' => [
  1380. 'location' => 'path',
  1381. 'type' => 'string',
  1382. 'required' => true,
  1383. ],
  1384. 'pageSize' => [
  1385. 'location' => 'query',
  1386. 'type' => 'integer',
  1387. ],
  1388. 'pageToken' => [
  1389. 'location' => 'query',
  1390. 'type' => 'string',
  1391. ],
  1392. ],
  1393. ],'patch' => [
  1394. 'path' => 'v2/{+name}',
  1395. 'httpMethod' => 'PATCH',
  1396. 'parameters' => [
  1397. 'name' => [
  1398. 'location' => 'path',
  1399. 'type' => 'string',
  1400. 'required' => true,
  1401. ],
  1402. 'updateMask' => [
  1403. 'location' => 'query',
  1404. 'type' => 'string',
  1405. ],
  1406. ],
  1407. ],'setIamPolicy' => [
  1408. 'path' => 'v2/{+resource}:setIamPolicy',
  1409. 'httpMethod' => 'POST',
  1410. 'parameters' => [
  1411. 'resource' => [
  1412. 'location' => 'path',
  1413. 'type' => 'string',
  1414. 'required' => true,
  1415. ],
  1416. ],
  1417. ],'testIamPermissions' => [
  1418. 'path' => 'v2/{+resource}:testIamPermissions',
  1419. 'httpMethod' => 'POST',
  1420. 'parameters' => [
  1421. 'resource' => [
  1422. 'location' => 'path',
  1423. 'type' => 'string',
  1424. 'required' => true,
  1425. ],
  1426. ],
  1427. ],
  1428. ]
  1429. ]
  1430. );
  1431. $this->folders_locations_buckets_views_logs = new Logging\Resource\FoldersLocationsBucketsViewsLogs(
  1432. $this,
  1433. $this->serviceName,
  1434. 'logs',
  1435. [
  1436. 'methods' => [
  1437. 'list' => [
  1438. 'path' => 'v2/{+parent}/logs',
  1439. 'httpMethod' => 'GET',
  1440. 'parameters' => [
  1441. 'parent' => [
  1442. 'location' => 'path',
  1443. 'type' => 'string',
  1444. 'required' => true,
  1445. ],
  1446. 'pageSize' => [
  1447. 'location' => 'query',
  1448. 'type' => 'integer',
  1449. ],
  1450. 'pageToken' => [
  1451. 'location' => 'query',
  1452. 'type' => 'string',
  1453. ],
  1454. 'resourceNames' => [
  1455. 'location' => 'query',
  1456. 'type' => 'string',
  1457. 'repeated' => true,
  1458. ],
  1459. ],
  1460. ],
  1461. ]
  1462. ]
  1463. );
  1464. $this->folders_locations_logScopes = new Logging\Resource\FoldersLocationsLogScopes(
  1465. $this,
  1466. $this->serviceName,
  1467. 'logScopes',
  1468. [
  1469. 'methods' => [
  1470. 'create' => [
  1471. 'path' => 'v2/{+parent}/logScopes',
  1472. 'httpMethod' => 'POST',
  1473. 'parameters' => [
  1474. 'parent' => [
  1475. 'location' => 'path',
  1476. 'type' => 'string',
  1477. 'required' => true,
  1478. ],
  1479. 'logScopeId' => [
  1480. 'location' => 'query',
  1481. 'type' => 'string',
  1482. ],
  1483. ],
  1484. ],'delete' => [
  1485. 'path' => 'v2/{+name}',
  1486. 'httpMethod' => 'DELETE',
  1487. 'parameters' => [
  1488. 'name' => [
  1489. 'location' => 'path',
  1490. 'type' => 'string',
  1491. 'required' => true,
  1492. ],
  1493. ],
  1494. ],'get' => [
  1495. 'path' => 'v2/{+name}',
  1496. 'httpMethod' => 'GET',
  1497. 'parameters' => [
  1498. 'name' => [
  1499. 'location' => 'path',
  1500. 'type' => 'string',
  1501. 'required' => true,
  1502. ],
  1503. ],
  1504. ],'list' => [
  1505. 'path' => 'v2/{+parent}/logScopes',
  1506. 'httpMethod' => 'GET',
  1507. 'parameters' => [
  1508. 'parent' => [
  1509. 'location' => 'path',
  1510. 'type' => 'string',
  1511. 'required' => true,
  1512. ],
  1513. 'pageSize' => [
  1514. 'location' => 'query',
  1515. 'type' => 'integer',
  1516. ],
  1517. 'pageToken' => [
  1518. 'location' => 'query',
  1519. 'type' => 'string',
  1520. ],
  1521. ],
  1522. ],'patch' => [
  1523. 'path' => 'v2/{+name}',
  1524. 'httpMethod' => 'PATCH',
  1525. 'parameters' => [
  1526. 'name' => [
  1527. 'location' => 'path',
  1528. 'type' => 'string',
  1529. 'required' => true,
  1530. ],
  1531. 'updateMask' => [
  1532. 'location' => 'query',
  1533. 'type' => 'string',
  1534. ],
  1535. ],
  1536. ],
  1537. ]
  1538. ]
  1539. );
  1540. $this->folders_locations_operations = new Logging\Resource\FoldersLocationsOperations(
  1541. $this,
  1542. $this->serviceName,
  1543. 'operations',
  1544. [
  1545. 'methods' => [
  1546. 'cancel' => [
  1547. 'path' => 'v2/{+name}:cancel',
  1548. 'httpMethod' => 'POST',
  1549. 'parameters' => [
  1550. 'name' => [
  1551. 'location' => 'path',
  1552. 'type' => 'string',
  1553. 'required' => true,
  1554. ],
  1555. ],
  1556. ],'get' => [
  1557. 'path' => 'v2/{+name}',
  1558. 'httpMethod' => 'GET',
  1559. 'parameters' => [
  1560. 'name' => [
  1561. 'location' => 'path',
  1562. 'type' => 'string',
  1563. 'required' => true,
  1564. ],
  1565. ],
  1566. ],'list' => [
  1567. 'path' => 'v2/{+name}/operations',
  1568. 'httpMethod' => 'GET',
  1569. 'parameters' => [
  1570. 'name' => [
  1571. 'location' => 'path',
  1572. 'type' => 'string',
  1573. 'required' => true,
  1574. ],
  1575. 'filter' => [
  1576. 'location' => 'query',
  1577. 'type' => 'string',
  1578. ],
  1579. 'pageSize' => [
  1580. 'location' => 'query',
  1581. 'type' => 'integer',
  1582. ],
  1583. 'pageToken' => [
  1584. 'location' => 'query',
  1585. 'type' => 'string',
  1586. ],
  1587. 'returnPartialSuccess' => [
  1588. 'location' => 'query',
  1589. 'type' => 'boolean',
  1590. ],
  1591. ],
  1592. ],
  1593. ]
  1594. ]
  1595. );
  1596. $this->folders_locations_recentQueries = new Logging\Resource\FoldersLocationsRecentQueries(
  1597. $this,
  1598. $this->serviceName,
  1599. 'recentQueries',
  1600. [
  1601. 'methods' => [
  1602. 'list' => [
  1603. 'path' => 'v2/{+parent}/recentQueries',
  1604. 'httpMethod' => 'GET',
  1605. 'parameters' => [
  1606. 'parent' => [
  1607. 'location' => 'path',
  1608. 'type' => 'string',
  1609. 'required' => true,
  1610. ],
  1611. 'filter' => [
  1612. 'location' => 'query',
  1613. 'type' => 'string',
  1614. ],
  1615. 'pageSize' => [
  1616. 'location' => 'query',
  1617. 'type' => 'integer',
  1618. ],
  1619. 'pageToken' => [
  1620. 'location' => 'query',
  1621. 'type' => 'string',
  1622. ],
  1623. ],
  1624. ],
  1625. ]
  1626. ]
  1627. );
  1628. $this->folders_locations_savedQueries = new Logging\Resource\FoldersLocationsSavedQueries(
  1629. $this,
  1630. $this->serviceName,
  1631. 'savedQueries',
  1632. [
  1633. 'methods' => [
  1634. 'create' => [
  1635. 'path' => 'v2/{+parent}/savedQueries',
  1636. 'httpMethod' => 'POST',
  1637. 'parameters' => [
  1638. 'parent' => [
  1639. 'location' => 'path',
  1640. 'type' => 'string',
  1641. 'required' => true,
  1642. ],
  1643. 'savedQueryId' => [
  1644. 'location' => 'query',
  1645. 'type' => 'string',
  1646. ],
  1647. ],
  1648. ],'delete' => [
  1649. 'path' => 'v2/{+name}',
  1650. 'httpMethod' => 'DELETE',
  1651. 'parameters' => [
  1652. 'name' => [
  1653. 'location' => 'path',
  1654. 'type' => 'string',
  1655. 'required' => true,
  1656. ],
  1657. ],
  1658. ],'get' => [
  1659. 'path' => 'v2/{+name}',
  1660. 'httpMethod' => 'GET',
  1661. 'parameters' => [
  1662. 'name' => [
  1663. 'location' => 'path',
  1664. 'type' => 'string',
  1665. 'required' => true,
  1666. ],
  1667. ],
  1668. ],'list' => [
  1669. 'path' => 'v2/{+parent}/savedQueries',
  1670. 'httpMethod' => 'GET',
  1671. 'parameters' => [
  1672. 'parent' => [
  1673. 'location' => 'path',
  1674. 'type' => 'string',
  1675. 'required' => true,
  1676. ],
  1677. 'filter' => [
  1678. 'location' => 'query',
  1679. 'type' => 'string',
  1680. ],
  1681. 'pageSize' => [
  1682. 'location' => 'query',
  1683. 'type' => 'integer',
  1684. ],
  1685. 'pageToken' => [
  1686. 'location' => 'query',
  1687. 'type' => 'string',
  1688. ],
  1689. ],
  1690. ],'patch' => [
  1691. 'path' => 'v2/{+name}',
  1692. 'httpMethod' => 'PATCH',
  1693. 'parameters' => [
  1694. 'name' => [
  1695. 'location' => 'path',
  1696. 'type' => 'string',
  1697. 'required' => true,
  1698. ],
  1699. 'updateMask' => [
  1700. 'location' => 'query',
  1701. 'type' => 'string',
  1702. ],
  1703. ],
  1704. ],
  1705. ]
  1706. ]
  1707. );
  1708. $this->folders_logs = new Logging\Resource\FoldersLogs(
  1709. $this,
  1710. $this->serviceName,
  1711. 'logs',
  1712. [
  1713. 'methods' => [
  1714. 'delete' => [
  1715. 'path' => 'v2/{+logName}',
  1716. 'httpMethod' => 'DELETE',
  1717. 'parameters' => [
  1718. 'logName' => [
  1719. 'location' => 'path',
  1720. 'type' => 'string',
  1721. 'required' => true,
  1722. ],
  1723. ],
  1724. ],'list' => [
  1725. 'path' => 'v2/{+parent}/logs',
  1726. 'httpMethod' => 'GET',
  1727. 'parameters' => [
  1728. 'parent' => [
  1729. 'location' => 'path',
  1730. 'type' => 'string',
  1731. 'required' => true,
  1732. ],
  1733. 'pageSize' => [
  1734. 'location' => 'query',
  1735. 'type' => 'integer',
  1736. ],
  1737. 'pageToken' => [
  1738. 'location' => 'query',
  1739. 'type' => 'string',
  1740. ],
  1741. 'resourceNames' => [
  1742. 'location' => 'query',
  1743. 'type' => 'string',
  1744. 'repeated' => true,
  1745. ],
  1746. ],
  1747. ],
  1748. ]
  1749. ]
  1750. );
  1751. $this->folders_sinks = new Logging\Resource\FoldersSinks(
  1752. $this,
  1753. $this->serviceName,
  1754. 'sinks',
  1755. [
  1756. 'methods' => [
  1757. 'create' => [
  1758. 'path' => 'v2/{+parent}/sinks',
  1759. 'httpMethod' => 'POST',
  1760. 'parameters' => [
  1761. 'parent' => [
  1762. 'location' => 'path',
  1763. 'type' => 'string',
  1764. 'required' => true,
  1765. ],
  1766. 'customWriterIdentity' => [
  1767. 'location' => 'query',
  1768. 'type' => 'string',
  1769. ],
  1770. 'uniqueWriterIdentity' => [
  1771. 'location' => 'query',
  1772. 'type' => 'boolean',
  1773. ],
  1774. ],
  1775. ],'delete' => [
  1776. 'path' => 'v2/{+sinkName}',
  1777. 'httpMethod' => 'DELETE',
  1778. 'parameters' => [
  1779. 'sinkName' => [
  1780. 'location' => 'path',
  1781. 'type' => 'string',
  1782. 'required' => true,
  1783. ],
  1784. ],
  1785. ],'get' => [
  1786. 'path' => 'v2/{+sinkName}',
  1787. 'httpMethod' => 'GET',
  1788. 'parameters' => [
  1789. 'sinkName' => [
  1790. 'location' => 'path',
  1791. 'type' => 'string',
  1792. 'required' => true,
  1793. ],
  1794. ],
  1795. ],'list' => [
  1796. 'path' => 'v2/{+parent}/sinks',
  1797. 'httpMethod' => 'GET',
  1798. 'parameters' => [
  1799. 'parent' => [
  1800. 'location' => 'path',
  1801. 'type' => 'string',
  1802. 'required' => true,
  1803. ],
  1804. 'filter' => [
  1805. 'location' => 'query',
  1806. 'type' => 'string',
  1807. ],
  1808. 'pageSize' => [
  1809. 'location' => 'query',
  1810. 'type' => 'integer',
  1811. ],
  1812. 'pageToken' => [
  1813. 'location' => 'query',
  1814. 'type' => 'string',
  1815. ],
  1816. ],
  1817. ],'patch' => [
  1818. 'path' => 'v2/{+sinkName}',
  1819. 'httpMethod' => 'PATCH',
  1820. 'parameters' => [
  1821. 'sinkName' => [
  1822. 'location' => 'path',
  1823. 'type' => 'string',
  1824. 'required' => true,
  1825. ],
  1826. 'customWriterIdentity' => [
  1827. 'location' => 'query',
  1828. 'type' => 'string',
  1829. ],
  1830. 'uniqueWriterIdentity' => [
  1831. 'location' => 'query',
  1832. 'type' => 'boolean',
  1833. ],
  1834. 'updateMask' => [
  1835. 'location' => 'query',
  1836. 'type' => 'string',
  1837. ],
  1838. ],
  1839. ],'update' => [
  1840. 'path' => 'v2/{+sinkName}',
  1841. 'httpMethod' => 'PUT',
  1842. 'parameters' => [
  1843. 'sinkName' => [
  1844. 'location' => 'path',
  1845. 'type' => 'string',
  1846. 'required' => true,
  1847. ],
  1848. 'customWriterIdentity' => [
  1849. 'location' => 'query',
  1850. 'type' => 'string',
  1851. ],
  1852. 'uniqueWriterIdentity' => [
  1853. 'location' => 'query',
  1854. 'type' => 'boolean',
  1855. ],
  1856. 'updateMask' => [
  1857. 'location' => 'query',
  1858. 'type' => 'string',
  1859. ],
  1860. ],
  1861. ],
  1862. ]
  1863. ]
  1864. );
  1865. $this->locations = new Logging\Resource\Locations(
  1866. $this,
  1867. $this->serviceName,
  1868. 'locations',
  1869. [
  1870. 'methods' => [
  1871. 'get' => [
  1872. 'path' => 'v2/{+name}',
  1873. 'httpMethod' => 'GET',
  1874. 'parameters' => [
  1875. 'name' => [
  1876. 'location' => 'path',
  1877. 'type' => 'string',
  1878. 'required' => true,
  1879. ],
  1880. ],
  1881. ],'list' => [
  1882. 'path' => 'v2/{+name}/locations',
  1883. 'httpMethod' => 'GET',
  1884. 'parameters' => [
  1885. 'name' => [
  1886. 'location' => 'path',
  1887. 'type' => 'string',
  1888. 'required' => true,
  1889. ],
  1890. 'extraLocationTypes' => [
  1891. 'location' => 'query',
  1892. 'type' => 'string',
  1893. 'repeated' => true,
  1894. ],
  1895. 'filter' => [
  1896. 'location' => 'query',
  1897. 'type' => 'string',
  1898. ],
  1899. 'pageSize' => [
  1900. 'location' => 'query',
  1901. 'type' => 'integer',
  1902. ],
  1903. 'pageToken' => [
  1904. 'location' => 'query',
  1905. 'type' => 'string',
  1906. ],
  1907. ],
  1908. ],
  1909. ]
  1910. ]
  1911. );
  1912. $this->locations_buckets = new Logging\Resource\LocationsBuckets(
  1913. $this,
  1914. $this->serviceName,
  1915. 'buckets',
  1916. [
  1917. 'methods' => [
  1918. 'create' => [
  1919. 'path' => 'v2/{+parent}/buckets',
  1920. 'httpMethod' => 'POST',
  1921. 'parameters' => [
  1922. 'parent' => [
  1923. 'location' => 'path',
  1924. 'type' => 'string',
  1925. 'required' => true,
  1926. ],
  1927. 'bucketId' => [
  1928. 'location' => 'query',
  1929. 'type' => 'string',
  1930. ],
  1931. ],
  1932. ],'createAsync' => [
  1933. 'path' => 'v2/{+parent}/buckets:createAsync',
  1934. 'httpMethod' => 'POST',
  1935. 'parameters' => [
  1936. 'parent' => [
  1937. 'location' => 'path',
  1938. 'type' => 'string',
  1939. 'required' => true,
  1940. ],
  1941. 'bucketId' => [
  1942. 'location' => 'query',
  1943. 'type' => 'string',
  1944. ],
  1945. ],
  1946. ],'delete' => [
  1947. 'path' => 'v2/{+name}',
  1948. 'httpMethod' => 'DELETE',
  1949. 'parameters' => [
  1950. 'name' => [
  1951. 'location' => 'path',
  1952. 'type' => 'string',
  1953. 'required' => true,
  1954. ],
  1955. ],
  1956. ],'get' => [
  1957. 'path' => 'v2/{+name}',
  1958. 'httpMethod' => 'GET',
  1959. 'parameters' => [
  1960. 'name' => [
  1961. 'location' => 'path',
  1962. 'type' => 'string',
  1963. 'required' => true,
  1964. ],
  1965. ],
  1966. ],'list' => [
  1967. 'path' => 'v2/{+parent}/buckets',
  1968. 'httpMethod' => 'GET',
  1969. 'parameters' => [
  1970. 'parent' => [
  1971. 'location' => 'path',
  1972. 'type' => 'string',
  1973. 'required' => true,
  1974. ],
  1975. 'pageSize' => [
  1976. 'location' => 'query',
  1977. 'type' => 'integer',
  1978. ],
  1979. 'pageToken' => [
  1980. 'location' => 'query',
  1981. 'type' => 'string',
  1982. ],
  1983. ],
  1984. ],'patch' => [
  1985. 'path' => 'v2/{+name}',
  1986. 'httpMethod' => 'PATCH',
  1987. 'parameters' => [
  1988. 'name' => [
  1989. 'location' => 'path',
  1990. 'type' => 'string',
  1991. 'required' => true,
  1992. ],
  1993. 'updateMask' => [
  1994. 'location' => 'query',
  1995. 'type' => 'string',
  1996. ],
  1997. ],
  1998. ],'undelete' => [
  1999. 'path' => 'v2/{+name}:undelete',
  2000. 'httpMethod' => 'POST',
  2001. 'parameters' => [
  2002. 'name' => [
  2003. 'location' => 'path',
  2004. 'type' => 'string',
  2005. 'required' => true,
  2006. ],
  2007. ],
  2008. ],'updateAsync' => [
  2009. 'path' => 'v2/{+name}:updateAsync',
  2010. 'httpMethod' => 'POST',
  2011. 'parameters' => [
  2012. 'name' => [
  2013. 'location' => 'path',
  2014. 'type' => 'string',
  2015. 'required' => true,
  2016. ],
  2017. 'updateMask' => [
  2018. 'location' => 'query',
  2019. 'type' => 'string',
  2020. ],
  2021. ],
  2022. ],
  2023. ]
  2024. ]
  2025. );
  2026. $this->locations_buckets_links = new Logging\Resource\LocationsBucketsLinks(
  2027. $this,
  2028. $this->serviceName,
  2029. 'links',
  2030. [
  2031. 'methods' => [
  2032. 'create' => [
  2033. 'path' => 'v2/{+parent}/links',
  2034. 'httpMethod' => 'POST',
  2035. 'parameters' => [
  2036. 'parent' => [
  2037. 'location' => 'path',
  2038. 'type' => 'string',
  2039. 'required' => true,
  2040. ],
  2041. 'linkId' => [
  2042. 'location' => 'query',
  2043. 'type' => 'string',
  2044. ],
  2045. ],
  2046. ],'delete' => [
  2047. 'path' => 'v2/{+name}',
  2048. 'httpMethod' => 'DELETE',
  2049. 'parameters' => [
  2050. 'name' => [
  2051. 'location' => 'path',
  2052. 'type' => 'string',
  2053. 'required' => true,
  2054. ],
  2055. ],
  2056. ],'get' => [
  2057. 'path' => 'v2/{+name}',
  2058. 'httpMethod' => 'GET',
  2059. 'parameters' => [
  2060. 'name' => [
  2061. 'location' => 'path',
  2062. 'type' => 'string',
  2063. 'required' => true,
  2064. ],
  2065. ],
  2066. ],'list' => [
  2067. 'path' => 'v2/{+parent}/links',
  2068. 'httpMethod' => 'GET',
  2069. 'parameters' => [
  2070. 'parent' => [
  2071. 'location' => 'path',
  2072. 'type' => 'string',
  2073. 'required' => true,
  2074. ],
  2075. 'pageSize' => [
  2076. 'location' => 'query',
  2077. 'type' => 'integer',
  2078. ],
  2079. 'pageToken' => [
  2080. 'location' => 'query',
  2081. 'type' => 'string',
  2082. ],
  2083. ],
  2084. ],
  2085. ]
  2086. ]
  2087. );
  2088. $this->locations_buckets_views = new Logging\Resource\LocationsBucketsViews(
  2089. $this,
  2090. $this->serviceName,
  2091. 'views',
  2092. [
  2093. 'methods' => [
  2094. 'create' => [
  2095. 'path' => 'v2/{+parent}/views',
  2096. 'httpMethod' => 'POST',
  2097. 'parameters' => [
  2098. 'parent' => [
  2099. 'location' => 'path',
  2100. 'type' => 'string',
  2101. 'required' => true,
  2102. ],
  2103. 'viewId' => [
  2104. 'location' => 'query',
  2105. 'type' => 'string',
  2106. ],
  2107. ],
  2108. ],'delete' => [
  2109. 'path' => 'v2/{+name}',
  2110. 'httpMethod' => 'DELETE',
  2111. 'parameters' => [
  2112. 'name' => [
  2113. 'location' => 'path',
  2114. 'type' => 'string',
  2115. 'required' => true,
  2116. ],
  2117. ],
  2118. ],'get' => [
  2119. 'path' => 'v2/{+name}',
  2120. 'httpMethod' => 'GET',
  2121. 'parameters' => [
  2122. 'name' => [
  2123. 'location' => 'path',
  2124. 'type' => 'string',
  2125. 'required' => true,
  2126. ],
  2127. ],
  2128. ],'getIamPolicy' => [
  2129. 'path' => 'v2/{+resource}:getIamPolicy',
  2130. 'httpMethod' => 'POST',
  2131. 'parameters' => [
  2132. 'resource' => [
  2133. 'location' => 'path',
  2134. 'type' => 'string',
  2135. 'required' => true,
  2136. ],
  2137. ],
  2138. ],'list' => [
  2139. 'path' => 'v2/{+parent}/views',
  2140. 'httpMethod' => 'GET',
  2141. 'parameters' => [
  2142. 'parent' => [
  2143. 'location' => 'path',
  2144. 'type' => 'string',
  2145. 'required' => true,
  2146. ],
  2147. 'pageSize' => [
  2148. 'location' => 'query',
  2149. 'type' => 'integer',
  2150. ],
  2151. 'pageToken' => [
  2152. 'location' => 'query',
  2153. 'type' => 'string',
  2154. ],
  2155. ],
  2156. ],'patch' => [
  2157. 'path' => 'v2/{+name}',
  2158. 'httpMethod' => 'PATCH',
  2159. 'parameters' => [
  2160. 'name' => [
  2161. 'location' => 'path',
  2162. 'type' => 'string',
  2163. 'required' => true,
  2164. ],
  2165. 'updateMask' => [
  2166. 'location' => 'query',
  2167. 'type' => 'string',
  2168. ],
  2169. ],
  2170. ],'setIamPolicy' => [
  2171. 'path' => 'v2/{+resource}:setIamPolicy',
  2172. 'httpMethod' => 'POST',
  2173. 'parameters' => [
  2174. 'resource' => [
  2175. 'location' => 'path',
  2176. 'type' => 'string',
  2177. 'required' => true,
  2178. ],
  2179. ],
  2180. ],'testIamPermissions' => [
  2181. 'path' => 'v2/{+resource}:testIamPermissions',
  2182. 'httpMethod' => 'POST',
  2183. 'parameters' => [
  2184. 'resource' => [
  2185. 'location' => 'path',
  2186. 'type' => 'string',
  2187. 'required' => true,
  2188. ],
  2189. ],
  2190. ],
  2191. ]
  2192. ]
  2193. );
  2194. $this->locations_operations = new Logging\Resource\LocationsOperations(
  2195. $this,
  2196. $this->serviceName,
  2197. 'operations',
  2198. [
  2199. 'methods' => [
  2200. 'cancel' => [
  2201. 'path' => 'v2/{+name}:cancel',
  2202. 'httpMethod' => 'POST',
  2203. 'parameters' => [
  2204. 'name' => [
  2205. 'location' => 'path',
  2206. 'type' => 'string',
  2207. 'required' => true,
  2208. ],
  2209. ],
  2210. ],'get' => [
  2211. 'path' => 'v2/{+name}',
  2212. 'httpMethod' => 'GET',
  2213. 'parameters' => [
  2214. 'name' => [
  2215. 'location' => 'path',
  2216. 'type' => 'string',
  2217. 'required' => true,
  2218. ],
  2219. ],
  2220. ],'list' => [
  2221. 'path' => 'v2/{+name}/operations',
  2222. 'httpMethod' => 'GET',
  2223. 'parameters' => [
  2224. 'name' => [
  2225. 'location' => 'path',
  2226. 'type' => 'string',
  2227. 'required' => true,
  2228. ],
  2229. 'filter' => [
  2230. 'location' => 'query',
  2231. 'type' => 'string',
  2232. ],
  2233. 'pageSize' => [
  2234. 'location' => 'query',
  2235. 'type' => 'integer',
  2236. ],
  2237. 'pageToken' => [
  2238. 'location' => 'query',
  2239. 'type' => 'string',
  2240. ],
  2241. 'returnPartialSuccess' => [
  2242. 'location' => 'query',
  2243. 'type' => 'boolean',
  2244. ],
  2245. ],
  2246. ],
  2247. ]
  2248. ]
  2249. );
  2250. $this->logs = new Logging\Resource\Logs(
  2251. $this,
  2252. $this->serviceName,
  2253. 'logs',
  2254. [
  2255. 'methods' => [
  2256. 'delete' => [
  2257. 'path' => 'v2/{+logName}',
  2258. 'httpMethod' => 'DELETE',
  2259. 'parameters' => [
  2260. 'logName' => [
  2261. 'location' => 'path',
  2262. 'type' => 'string',
  2263. 'required' => true,
  2264. ],
  2265. ],
  2266. ],'list' => [
  2267. 'path' => 'v2/{+parent}/logs',
  2268. 'httpMethod' => 'GET',
  2269. 'parameters' => [
  2270. 'parent' => [
  2271. 'location' => 'path',
  2272. 'type' => 'string',
  2273. 'required' => true,
  2274. ],
  2275. 'pageSize' => [
  2276. 'location' => 'query',
  2277. 'type' => 'integer',
  2278. ],
  2279. 'pageToken' => [
  2280. 'location' => 'query',
  2281. 'type' => 'string',
  2282. ],
  2283. 'resourceNames' => [
  2284. 'location' => 'query',
  2285. 'type' => 'string',
  2286. 'repeated' => true,
  2287. ],
  2288. ],
  2289. ],
  2290. ]
  2291. ]
  2292. );
  2293. $this->monitoredResourceDescriptors = new Logging\Resource\MonitoredResourceDescriptors(
  2294. $this,
  2295. $this->serviceName,
  2296. 'monitoredResourceDescriptors',
  2297. [
  2298. 'methods' => [
  2299. 'list' => [
  2300. 'path' => 'v2/monitoredResourceDescriptors',
  2301. 'httpMethod' => 'GET',
  2302. 'parameters' => [
  2303. 'pageSize' => [
  2304. 'location' => 'query',
  2305. 'type' => 'integer',
  2306. ],
  2307. 'pageToken' => [
  2308. 'location' => 'query',
  2309. 'type' => 'string',
  2310. ],
  2311. ],
  2312. ],
  2313. ]
  2314. ]
  2315. );
  2316. $this->organizations = new Logging\Resource\Organizations(
  2317. $this,
  2318. $this->serviceName,
  2319. 'organizations',
  2320. [
  2321. 'methods' => [
  2322. 'getCmekSettings' => [
  2323. 'path' => 'v2/{+name}/cmekSettings',
  2324. 'httpMethod' => 'GET',
  2325. 'parameters' => [
  2326. 'name' => [
  2327. 'location' => 'path',
  2328. 'type' => 'string',
  2329. 'required' => true,
  2330. ],
  2331. ],
  2332. ],'getSettings' => [
  2333. 'path' => 'v2/{+name}/settings',
  2334. 'httpMethod' => 'GET',
  2335. 'parameters' => [
  2336. 'name' => [
  2337. 'location' => 'path',
  2338. 'type' => 'string',
  2339. 'required' => true,
  2340. ],
  2341. ],
  2342. ],'updateCmekSettings' => [
  2343. 'path' => 'v2/{+name}/cmekSettings',
  2344. 'httpMethod' => 'PATCH',
  2345. 'parameters' => [
  2346. 'name' => [
  2347. 'location' => 'path',
  2348. 'type' => 'string',
  2349. 'required' => true,
  2350. ],
  2351. 'updateMask' => [
  2352. 'location' => 'query',
  2353. 'type' => 'string',
  2354. ],
  2355. ],
  2356. ],'updateSettings' => [
  2357. 'path' => 'v2/{+name}/settings',
  2358. 'httpMethod' => 'PATCH',
  2359. 'parameters' => [
  2360. 'name' => [
  2361. 'location' => 'path',
  2362. 'type' => 'string',
  2363. 'required' => true,
  2364. ],
  2365. 'updateMask' => [
  2366. 'location' => 'query',
  2367. 'type' => 'string',
  2368. ],
  2369. ],
  2370. ],
  2371. ]
  2372. ]
  2373. );
  2374. $this->organizations_exclusions = new Logging\Resource\OrganizationsExclusions(
  2375. $this,
  2376. $this->serviceName,
  2377. 'exclusions',
  2378. [
  2379. 'methods' => [
  2380. 'create' => [
  2381. 'path' => 'v2/{+parent}/exclusions',
  2382. 'httpMethod' => 'POST',
  2383. 'parameters' => [
  2384. 'parent' => [
  2385. 'location' => 'path',
  2386. 'type' => 'string',
  2387. 'required' => true,
  2388. ],
  2389. ],
  2390. ],'delete' => [
  2391. 'path' => 'v2/{+name}',
  2392. 'httpMethod' => 'DELETE',
  2393. 'parameters' => [
  2394. 'name' => [
  2395. 'location' => 'path',
  2396. 'type' => 'string',
  2397. 'required' => true,
  2398. ],
  2399. ],
  2400. ],'get' => [
  2401. 'path' => 'v2/{+name}',
  2402. 'httpMethod' => 'GET',
  2403. 'parameters' => [
  2404. 'name' => [
  2405. 'location' => 'path',
  2406. 'type' => 'string',
  2407. 'required' => true,
  2408. ],
  2409. ],
  2410. ],'list' => [
  2411. 'path' => 'v2/{+parent}/exclusions',
  2412. 'httpMethod' => 'GET',
  2413. 'parameters' => [
  2414. 'parent' => [
  2415. 'location' => 'path',
  2416. 'type' => 'string',
  2417. 'required' => true,
  2418. ],
  2419. 'pageSize' => [
  2420. 'location' => 'query',
  2421. 'type' => 'integer',
  2422. ],
  2423. 'pageToken' => [
  2424. 'location' => 'query',
  2425. 'type' => 'string',
  2426. ],
  2427. ],
  2428. ],'patch' => [
  2429. 'path' => 'v2/{+name}',
  2430. 'httpMethod' => 'PATCH',
  2431. 'parameters' => [
  2432. 'name' => [
  2433. 'location' => 'path',
  2434. 'type' => 'string',
  2435. 'required' => true,
  2436. ],
  2437. 'updateMask' => [
  2438. 'location' => 'query',
  2439. 'type' => 'string',
  2440. ],
  2441. ],
  2442. ],
  2443. ]
  2444. ]
  2445. );
  2446. $this->organizations_locations = new Logging\Resource\OrganizationsLocations(
  2447. $this,
  2448. $this->serviceName,
  2449. 'locations',
  2450. [
  2451. 'methods' => [
  2452. 'get' => [
  2453. 'path' => 'v2/{+name}',
  2454. 'httpMethod' => 'GET',
  2455. 'parameters' => [
  2456. 'name' => [
  2457. 'location' => 'path',
  2458. 'type' => 'string',
  2459. 'required' => true,
  2460. ],
  2461. ],
  2462. ],'list' => [
  2463. 'path' => 'v2/{+name}/locations',
  2464. 'httpMethod' => 'GET',
  2465. 'parameters' => [
  2466. 'name' => [
  2467. 'location' => 'path',
  2468. 'type' => 'string',
  2469. 'required' => true,
  2470. ],
  2471. 'extraLocationTypes' => [
  2472. 'location' => 'query',
  2473. 'type' => 'string',
  2474. 'repeated' => true,
  2475. ],
  2476. 'filter' => [
  2477. 'location' => 'query',
  2478. 'type' => 'string',
  2479. ],
  2480. 'pageSize' => [
  2481. 'location' => 'query',
  2482. 'type' => 'integer',
  2483. ],
  2484. 'pageToken' => [
  2485. 'location' => 'query',
  2486. 'type' => 'string',
  2487. ],
  2488. ],
  2489. ],
  2490. ]
  2491. ]
  2492. );
  2493. $this->organizations_locations_buckets = new Logging\Resource\OrganizationsLocationsBuckets(
  2494. $this,
  2495. $this->serviceName,
  2496. 'buckets',
  2497. [
  2498. 'methods' => [
  2499. 'create' => [
  2500. 'path' => 'v2/{+parent}/buckets',
  2501. 'httpMethod' => 'POST',
  2502. 'parameters' => [
  2503. 'parent' => [
  2504. 'location' => 'path',
  2505. 'type' => 'string',
  2506. 'required' => true,
  2507. ],
  2508. 'bucketId' => [
  2509. 'location' => 'query',
  2510. 'type' => 'string',
  2511. ],
  2512. ],
  2513. ],'createAsync' => [
  2514. 'path' => 'v2/{+parent}/buckets:createAsync',
  2515. 'httpMethod' => 'POST',
  2516. 'parameters' => [
  2517. 'parent' => [
  2518. 'location' => 'path',
  2519. 'type' => 'string',
  2520. 'required' => true,
  2521. ],
  2522. 'bucketId' => [
  2523. 'location' => 'query',
  2524. 'type' => 'string',
  2525. ],
  2526. ],
  2527. ],'delete' => [
  2528. 'path' => 'v2/{+name}',
  2529. 'httpMethod' => 'DELETE',
  2530. 'parameters' => [
  2531. 'name' => [
  2532. 'location' => 'path',
  2533. 'type' => 'string',
  2534. 'required' => true,
  2535. ],
  2536. ],
  2537. ],'get' => [
  2538. 'path' => 'v2/{+name}',
  2539. 'httpMethod' => 'GET',
  2540. 'parameters' => [
  2541. 'name' => [
  2542. 'location' => 'path',
  2543. 'type' => 'string',
  2544. 'required' => true,
  2545. ],
  2546. ],
  2547. ],'list' => [
  2548. 'path' => 'v2/{+parent}/buckets',
  2549. 'httpMethod' => 'GET',
  2550. 'parameters' => [
  2551. 'parent' => [
  2552. 'location' => 'path',
  2553. 'type' => 'string',
  2554. 'required' => true,
  2555. ],
  2556. 'pageSize' => [
  2557. 'location' => 'query',
  2558. 'type' => 'integer',
  2559. ],
  2560. 'pageToken' => [
  2561. 'location' => 'query',
  2562. 'type' => 'string',
  2563. ],
  2564. ],
  2565. ],'patch' => [
  2566. 'path' => 'v2/{+name}',
  2567. 'httpMethod' => 'PATCH',
  2568. 'parameters' => [
  2569. 'name' => [
  2570. 'location' => 'path',
  2571. 'type' => 'string',
  2572. 'required' => true,
  2573. ],
  2574. 'updateMask' => [
  2575. 'location' => 'query',
  2576. 'type' => 'string',
  2577. ],
  2578. ],
  2579. ],'undelete' => [
  2580. 'path' => 'v2/{+name}:undelete',
  2581. 'httpMethod' => 'POST',
  2582. 'parameters' => [
  2583. 'name' => [
  2584. 'location' => 'path',
  2585. 'type' => 'string',
  2586. 'required' => true,
  2587. ],
  2588. ],
  2589. ],'updateAsync' => [
  2590. 'path' => 'v2/{+name}:updateAsync',
  2591. 'httpMethod' => 'POST',
  2592. 'parameters' => [
  2593. 'name' => [
  2594. 'location' => 'path',
  2595. 'type' => 'string',
  2596. 'required' => true,
  2597. ],
  2598. 'updateMask' => [
  2599. 'location' => 'query',
  2600. 'type' => 'string',
  2601. ],
  2602. ],
  2603. ],
  2604. ]
  2605. ]
  2606. );
  2607. $this->organizations_locations_buckets_links = new Logging\Resource\OrganizationsLocationsBucketsLinks(
  2608. $this,
  2609. $this->serviceName,
  2610. 'links',
  2611. [
  2612. 'methods' => [
  2613. 'create' => [
  2614. 'path' => 'v2/{+parent}/links',
  2615. 'httpMethod' => 'POST',
  2616. 'parameters' => [
  2617. 'parent' => [
  2618. 'location' => 'path',
  2619. 'type' => 'string',
  2620. 'required' => true,
  2621. ],
  2622. 'linkId' => [
  2623. 'location' => 'query',
  2624. 'type' => 'string',
  2625. ],
  2626. ],
  2627. ],'delete' => [
  2628. 'path' => 'v2/{+name}',
  2629. 'httpMethod' => 'DELETE',
  2630. 'parameters' => [
  2631. 'name' => [
  2632. 'location' => 'path',
  2633. 'type' => 'string',
  2634. 'required' => true,
  2635. ],
  2636. ],
  2637. ],'get' => [
  2638. 'path' => 'v2/{+name}',
  2639. 'httpMethod' => 'GET',
  2640. 'parameters' => [
  2641. 'name' => [
  2642. 'location' => 'path',
  2643. 'type' => 'string',
  2644. 'required' => true,
  2645. ],
  2646. ],
  2647. ],'list' => [
  2648. 'path' => 'v2/{+parent}/links',
  2649. 'httpMethod' => 'GET',
  2650. 'parameters' => [
  2651. 'parent' => [
  2652. 'location' => 'path',
  2653. 'type' => 'string',
  2654. 'required' => true,
  2655. ],
  2656. 'pageSize' => [
  2657. 'location' => 'query',
  2658. 'type' => 'integer',
  2659. ],
  2660. 'pageToken' => [
  2661. 'location' => 'query',
  2662. 'type' => 'string',
  2663. ],
  2664. ],
  2665. ],
  2666. ]
  2667. ]
  2668. );
  2669. $this->organizations_locations_buckets_views = new Logging\Resource\OrganizationsLocationsBucketsViews(
  2670. $this,
  2671. $this->serviceName,
  2672. 'views',
  2673. [
  2674. 'methods' => [
  2675. 'create' => [
  2676. 'path' => 'v2/{+parent}/views',
  2677. 'httpMethod' => 'POST',
  2678. 'parameters' => [
  2679. 'parent' => [
  2680. 'location' => 'path',
  2681. 'type' => 'string',
  2682. 'required' => true,
  2683. ],
  2684. 'viewId' => [
  2685. 'location' => 'query',
  2686. 'type' => 'string',
  2687. ],
  2688. ],
  2689. ],'delete' => [
  2690. 'path' => 'v2/{+name}',
  2691. 'httpMethod' => 'DELETE',
  2692. 'parameters' => [
  2693. 'name' => [
  2694. 'location' => 'path',
  2695. 'type' => 'string',
  2696. 'required' => true,
  2697. ],
  2698. ],
  2699. ],'get' => [
  2700. 'path' => 'v2/{+name}',
  2701. 'httpMethod' => 'GET',
  2702. 'parameters' => [
  2703. 'name' => [
  2704. 'location' => 'path',
  2705. 'type' => 'string',
  2706. 'required' => true,
  2707. ],
  2708. ],
  2709. ],'getIamPolicy' => [
  2710. 'path' => 'v2/{+resource}:getIamPolicy',
  2711. 'httpMethod' => 'POST',
  2712. 'parameters' => [
  2713. 'resource' => [
  2714. 'location' => 'path',
  2715. 'type' => 'string',
  2716. 'required' => true,
  2717. ],
  2718. ],
  2719. ],'list' => [
  2720. 'path' => 'v2/{+parent}/views',
  2721. 'httpMethod' => 'GET',
  2722. 'parameters' => [
  2723. 'parent' => [
  2724. 'location' => 'path',
  2725. 'type' => 'string',
  2726. 'required' => true,
  2727. ],
  2728. 'pageSize' => [
  2729. 'location' => 'query',
  2730. 'type' => 'integer',
  2731. ],
  2732. 'pageToken' => [
  2733. 'location' => 'query',
  2734. 'type' => 'string',
  2735. ],
  2736. ],
  2737. ],'patch' => [
  2738. 'path' => 'v2/{+name}',
  2739. 'httpMethod' => 'PATCH',
  2740. 'parameters' => [
  2741. 'name' => [
  2742. 'location' => 'path',
  2743. 'type' => 'string',
  2744. 'required' => true,
  2745. ],
  2746. 'updateMask' => [
  2747. 'location' => 'query',
  2748. 'type' => 'string',
  2749. ],
  2750. ],
  2751. ],'setIamPolicy' => [
  2752. 'path' => 'v2/{+resource}:setIamPolicy',
  2753. 'httpMethod' => 'POST',
  2754. 'parameters' => [
  2755. 'resource' => [
  2756. 'location' => 'path',
  2757. 'type' => 'string',
  2758. 'required' => true,
  2759. ],
  2760. ],
  2761. ],'testIamPermissions' => [
  2762. 'path' => 'v2/{+resource}:testIamPermissions',
  2763. 'httpMethod' => 'POST',
  2764. 'parameters' => [
  2765. 'resource' => [
  2766. 'location' => 'path',
  2767. 'type' => 'string',
  2768. 'required' => true,
  2769. ],
  2770. ],
  2771. ],
  2772. ]
  2773. ]
  2774. );
  2775. $this->organizations_locations_buckets_views_logs = new Logging\Resource\OrganizationsLocationsBucketsViewsLogs(
  2776. $this,
  2777. $this->serviceName,
  2778. 'logs',
  2779. [
  2780. 'methods' => [
  2781. 'list' => [
  2782. 'path' => 'v2/{+parent}/logs',
  2783. 'httpMethod' => 'GET',
  2784. 'parameters' => [
  2785. 'parent' => [
  2786. 'location' => 'path',
  2787. 'type' => 'string',
  2788. 'required' => true,
  2789. ],
  2790. 'pageSize' => [
  2791. 'location' => 'query',
  2792. 'type' => 'integer',
  2793. ],
  2794. 'pageToken' => [
  2795. 'location' => 'query',
  2796. 'type' => 'string',
  2797. ],
  2798. 'resourceNames' => [
  2799. 'location' => 'query',
  2800. 'type' => 'string',
  2801. 'repeated' => true,
  2802. ],
  2803. ],
  2804. ],
  2805. ]
  2806. ]
  2807. );
  2808. $this->organizations_locations_logScopes = new Logging\Resource\OrganizationsLocationsLogScopes(
  2809. $this,
  2810. $this->serviceName,
  2811. 'logScopes',
  2812. [
  2813. 'methods' => [
  2814. 'create' => [
  2815. 'path' => 'v2/{+parent}/logScopes',
  2816. 'httpMethod' => 'POST',
  2817. 'parameters' => [
  2818. 'parent' => [
  2819. 'location' => 'path',
  2820. 'type' => 'string',
  2821. 'required' => true,
  2822. ],
  2823. 'logScopeId' => [
  2824. 'location' => 'query',
  2825. 'type' => 'string',
  2826. ],
  2827. ],
  2828. ],'delete' => [
  2829. 'path' => 'v2/{+name}',
  2830. 'httpMethod' => 'DELETE',
  2831. 'parameters' => [
  2832. 'name' => [
  2833. 'location' => 'path',
  2834. 'type' => 'string',
  2835. 'required' => true,
  2836. ],
  2837. ],
  2838. ],'get' => [
  2839. 'path' => 'v2/{+name}',
  2840. 'httpMethod' => 'GET',
  2841. 'parameters' => [
  2842. 'name' => [
  2843. 'location' => 'path',
  2844. 'type' => 'string',
  2845. 'required' => true,
  2846. ],
  2847. ],
  2848. ],'list' => [
  2849. 'path' => 'v2/{+parent}/logScopes',
  2850. 'httpMethod' => 'GET',
  2851. 'parameters' => [
  2852. 'parent' => [
  2853. 'location' => 'path',
  2854. 'type' => 'string',
  2855. 'required' => true,
  2856. ],
  2857. 'pageSize' => [
  2858. 'location' => 'query',
  2859. 'type' => 'integer',
  2860. ],
  2861. 'pageToken' => [
  2862. 'location' => 'query',
  2863. 'type' => 'string',
  2864. ],
  2865. ],
  2866. ],'patch' => [
  2867. 'path' => 'v2/{+name}',
  2868. 'httpMethod' => 'PATCH',
  2869. 'parameters' => [
  2870. 'name' => [
  2871. 'location' => 'path',
  2872. 'type' => 'string',
  2873. 'required' => true,
  2874. ],
  2875. 'updateMask' => [
  2876. 'location' => 'query',
  2877. 'type' => 'string',
  2878. ],
  2879. ],
  2880. ],
  2881. ]
  2882. ]
  2883. );
  2884. $this->organizations_locations_operations = new Logging\Resource\OrganizationsLocationsOperations(
  2885. $this,
  2886. $this->serviceName,
  2887. 'operations',
  2888. [
  2889. 'methods' => [
  2890. 'cancel' => [
  2891. 'path' => 'v2/{+name}:cancel',
  2892. 'httpMethod' => 'POST',
  2893. 'parameters' => [
  2894. 'name' => [
  2895. 'location' => 'path',
  2896. 'type' => 'string',
  2897. 'required' => true,
  2898. ],
  2899. ],
  2900. ],'get' => [
  2901. 'path' => 'v2/{+name}',
  2902. 'httpMethod' => 'GET',
  2903. 'parameters' => [
  2904. 'name' => [
  2905. 'location' => 'path',
  2906. 'type' => 'string',
  2907. 'required' => true,
  2908. ],
  2909. ],
  2910. ],'list' => [
  2911. 'path' => 'v2/{+name}/operations',
  2912. 'httpMethod' => 'GET',
  2913. 'parameters' => [
  2914. 'name' => [
  2915. 'location' => 'path',
  2916. 'type' => 'string',
  2917. 'required' => true,
  2918. ],
  2919. 'filter' => [
  2920. 'location' => 'query',
  2921. 'type' => 'string',
  2922. ],
  2923. 'pageSize' => [
  2924. 'location' => 'query',
  2925. 'type' => 'integer',
  2926. ],
  2927. 'pageToken' => [
  2928. 'location' => 'query',
  2929. 'type' => 'string',
  2930. ],
  2931. 'returnPartialSuccess' => [
  2932. 'location' => 'query',
  2933. 'type' => 'boolean',
  2934. ],
  2935. ],
  2936. ],
  2937. ]
  2938. ]
  2939. );
  2940. $this->organizations_locations_recentQueries = new Logging\Resource\OrganizationsLocationsRecentQueries(
  2941. $this,
  2942. $this->serviceName,
  2943. 'recentQueries',
  2944. [
  2945. 'methods' => [
  2946. 'list' => [
  2947. 'path' => 'v2/{+parent}/recentQueries',
  2948. 'httpMethod' => 'GET',
  2949. 'parameters' => [
  2950. 'parent' => [
  2951. 'location' => 'path',
  2952. 'type' => 'string',
  2953. 'required' => true,
  2954. ],
  2955. 'filter' => [
  2956. 'location' => 'query',
  2957. 'type' => 'string',
  2958. ],
  2959. 'pageSize' => [
  2960. 'location' => 'query',
  2961. 'type' => 'integer',
  2962. ],
  2963. 'pageToken' => [
  2964. 'location' => 'query',
  2965. 'type' => 'string',
  2966. ],
  2967. ],
  2968. ],
  2969. ]
  2970. ]
  2971. );
  2972. $this->organizations_locations_savedQueries = new Logging\Resource\OrganizationsLocationsSavedQueries(
  2973. $this,
  2974. $this->serviceName,
  2975. 'savedQueries',
  2976. [
  2977. 'methods' => [
  2978. 'create' => [
  2979. 'path' => 'v2/{+parent}/savedQueries',
  2980. 'httpMethod' => 'POST',
  2981. 'parameters' => [
  2982. 'parent' => [
  2983. 'location' => 'path',
  2984. 'type' => 'string',
  2985. 'required' => true,
  2986. ],
  2987. 'savedQueryId' => [
  2988. 'location' => 'query',
  2989. 'type' => 'string',
  2990. ],
  2991. ],
  2992. ],'delete' => [
  2993. 'path' => 'v2/{+name}',
  2994. 'httpMethod' => 'DELETE',
  2995. 'parameters' => [
  2996. 'name' => [
  2997. 'location' => 'path',
  2998. 'type' => 'string',
  2999. 'required' => true,
  3000. ],
  3001. ],
  3002. ],'get' => [
  3003. 'path' => 'v2/{+name}',
  3004. 'httpMethod' => 'GET',
  3005. 'parameters' => [
  3006. 'name' => [
  3007. 'location' => 'path',
  3008. 'type' => 'string',
  3009. 'required' => true,
  3010. ],
  3011. ],
  3012. ],'list' => [
  3013. 'path' => 'v2/{+parent}/savedQueries',
  3014. 'httpMethod' => 'GET',
  3015. 'parameters' => [
  3016. 'parent' => [
  3017. 'location' => 'path',
  3018. 'type' => 'string',
  3019. 'required' => true,
  3020. ],
  3021. 'filter' => [
  3022. 'location' => 'query',
  3023. 'type' => 'string',
  3024. ],
  3025. 'pageSize' => [
  3026. 'location' => 'query',
  3027. 'type' => 'integer',
  3028. ],
  3029. 'pageToken' => [
  3030. 'location' => 'query',
  3031. 'type' => 'string',
  3032. ],
  3033. ],
  3034. ],'patch' => [
  3035. 'path' => 'v2/{+name}',
  3036. 'httpMethod' => 'PATCH',
  3037. 'parameters' => [
  3038. 'name' => [
  3039. 'location' => 'path',
  3040. 'type' => 'string',
  3041. 'required' => true,
  3042. ],
  3043. 'updateMask' => [
  3044. 'location' => 'query',
  3045. 'type' => 'string',
  3046. ],
  3047. ],
  3048. ],
  3049. ]
  3050. ]
  3051. );
  3052. $this->organizations_logs = new Logging\Resource\OrganizationsLogs(
  3053. $this,
  3054. $this->serviceName,
  3055. 'logs',
  3056. [
  3057. 'methods' => [
  3058. 'delete' => [
  3059. 'path' => 'v2/{+logName}',
  3060. 'httpMethod' => 'DELETE',
  3061. 'parameters' => [
  3062. 'logName' => [
  3063. 'location' => 'path',
  3064. 'type' => 'string',
  3065. 'required' => true,
  3066. ],
  3067. ],
  3068. ],'list' => [
  3069. 'path' => 'v2/{+parent}/logs',
  3070. 'httpMethod' => 'GET',
  3071. 'parameters' => [
  3072. 'parent' => [
  3073. 'location' => 'path',
  3074. 'type' => 'string',
  3075. 'required' => true,
  3076. ],
  3077. 'pageSize' => [
  3078. 'location' => 'query',
  3079. 'type' => 'integer',
  3080. ],
  3081. 'pageToken' => [
  3082. 'location' => 'query',
  3083. 'type' => 'string',
  3084. ],
  3085. 'resourceNames' => [
  3086. 'location' => 'query',
  3087. 'type' => 'string',
  3088. 'repeated' => true,
  3089. ],
  3090. ],
  3091. ],
  3092. ]
  3093. ]
  3094. );
  3095. $this->organizations_sinks = new Logging\Resource\OrganizationsSinks(
  3096. $this,
  3097. $this->serviceName,
  3098. 'sinks',
  3099. [
  3100. 'methods' => [
  3101. 'create' => [
  3102. 'path' => 'v2/{+parent}/sinks',
  3103. 'httpMethod' => 'POST',
  3104. 'parameters' => [
  3105. 'parent' => [
  3106. 'location' => 'path',
  3107. 'type' => 'string',
  3108. 'required' => true,
  3109. ],
  3110. 'customWriterIdentity' => [
  3111. 'location' => 'query',
  3112. 'type' => 'string',
  3113. ],
  3114. 'uniqueWriterIdentity' => [
  3115. 'location' => 'query',
  3116. 'type' => 'boolean',
  3117. ],
  3118. ],
  3119. ],'delete' => [
  3120. 'path' => 'v2/{+sinkName}',
  3121. 'httpMethod' => 'DELETE',
  3122. 'parameters' => [
  3123. 'sinkName' => [
  3124. 'location' => 'path',
  3125. 'type' => 'string',
  3126. 'required' => true,
  3127. ],
  3128. ],
  3129. ],'get' => [
  3130. 'path' => 'v2/{+sinkName}',
  3131. 'httpMethod' => 'GET',
  3132. 'parameters' => [
  3133. 'sinkName' => [
  3134. 'location' => 'path',
  3135. 'type' => 'string',
  3136. 'required' => true,
  3137. ],
  3138. ],
  3139. ],'list' => [
  3140. 'path' => 'v2/{+parent}/sinks',
  3141. 'httpMethod' => 'GET',
  3142. 'parameters' => [
  3143. 'parent' => [
  3144. 'location' => 'path',
  3145. 'type' => 'string',
  3146. 'required' => true,
  3147. ],
  3148. 'filter' => [
  3149. 'location' => 'query',
  3150. 'type' => 'string',
  3151. ],
  3152. 'pageSize' => [
  3153. 'location' => 'query',
  3154. 'type' => 'integer',
  3155. ],
  3156. 'pageToken' => [
  3157. 'location' => 'query',
  3158. 'type' => 'string',
  3159. ],
  3160. ],
  3161. ],'patch' => [
  3162. 'path' => 'v2/{+sinkName}',
  3163. 'httpMethod' => 'PATCH',
  3164. 'parameters' => [
  3165. 'sinkName' => [
  3166. 'location' => 'path',
  3167. 'type' => 'string',
  3168. 'required' => true,
  3169. ],
  3170. 'customWriterIdentity' => [
  3171. 'location' => 'query',
  3172. 'type' => 'string',
  3173. ],
  3174. 'uniqueWriterIdentity' => [
  3175. 'location' => 'query',
  3176. 'type' => 'boolean',
  3177. ],
  3178. 'updateMask' => [
  3179. 'location' => 'query',
  3180. 'type' => 'string',
  3181. ],
  3182. ],
  3183. ],'update' => [
  3184. 'path' => 'v2/{+sinkName}',
  3185. 'httpMethod' => 'PUT',
  3186. 'parameters' => [
  3187. 'sinkName' => [
  3188. 'location' => 'path',
  3189. 'type' => 'string',
  3190. 'required' => true,
  3191. ],
  3192. 'customWriterIdentity' => [
  3193. 'location' => 'query',
  3194. 'type' => 'string',
  3195. ],
  3196. 'uniqueWriterIdentity' => [
  3197. 'location' => 'query',
  3198. 'type' => 'boolean',
  3199. ],
  3200. 'updateMask' => [
  3201. 'location' => 'query',
  3202. 'type' => 'string',
  3203. ],
  3204. ],
  3205. ],
  3206. ]
  3207. ]
  3208. );
  3209. $this->projects = new Logging\Resource\Projects(
  3210. $this,
  3211. $this->serviceName,
  3212. 'projects',
  3213. [
  3214. 'methods' => [
  3215. 'getCmekSettings' => [
  3216. 'path' => 'v2/{+name}/cmekSettings',
  3217. 'httpMethod' => 'GET',
  3218. 'parameters' => [
  3219. 'name' => [
  3220. 'location' => 'path',
  3221. 'type' => 'string',
  3222. 'required' => true,
  3223. ],
  3224. ],
  3225. ],'getSettings' => [
  3226. 'path' => 'v2/{+name}/settings',
  3227. 'httpMethod' => 'GET',
  3228. 'parameters' => [
  3229. 'name' => [
  3230. 'location' => 'path',
  3231. 'type' => 'string',
  3232. 'required' => true,
  3233. ],
  3234. ],
  3235. ],
  3236. ]
  3237. ]
  3238. );
  3239. $this->projects_exclusions = new Logging\Resource\ProjectsExclusions(
  3240. $this,
  3241. $this->serviceName,
  3242. 'exclusions',
  3243. [
  3244. 'methods' => [
  3245. 'create' => [
  3246. 'path' => 'v2/{+parent}/exclusions',
  3247. 'httpMethod' => 'POST',
  3248. 'parameters' => [
  3249. 'parent' => [
  3250. 'location' => 'path',
  3251. 'type' => 'string',
  3252. 'required' => true,
  3253. ],
  3254. ],
  3255. ],'delete' => [
  3256. 'path' => 'v2/{+name}',
  3257. 'httpMethod' => 'DELETE',
  3258. 'parameters' => [
  3259. 'name' => [
  3260. 'location' => 'path',
  3261. 'type' => 'string',
  3262. 'required' => true,
  3263. ],
  3264. ],
  3265. ],'get' => [
  3266. 'path' => 'v2/{+name}',
  3267. 'httpMethod' => 'GET',
  3268. 'parameters' => [
  3269. 'name' => [
  3270. 'location' => 'path',
  3271. 'type' => 'string',
  3272. 'required' => true,
  3273. ],
  3274. ],
  3275. ],'list' => [
  3276. 'path' => 'v2/{+parent}/exclusions',
  3277. 'httpMethod' => 'GET',
  3278. 'parameters' => [
  3279. 'parent' => [
  3280. 'location' => 'path',
  3281. 'type' => 'string',
  3282. 'required' => true,
  3283. ],
  3284. 'pageSize' => [
  3285. 'location' => 'query',
  3286. 'type' => 'integer',
  3287. ],
  3288. 'pageToken' => [
  3289. 'location' => 'query',
  3290. 'type' => 'string',
  3291. ],
  3292. ],
  3293. ],'patch' => [
  3294. 'path' => 'v2/{+name}',
  3295. 'httpMethod' => 'PATCH',
  3296. 'parameters' => [
  3297. 'name' => [
  3298. 'location' => 'path',
  3299. 'type' => 'string',
  3300. 'required' => true,
  3301. ],
  3302. 'updateMask' => [
  3303. 'location' => 'query',
  3304. 'type' => 'string',
  3305. ],
  3306. ],
  3307. ],
  3308. ]
  3309. ]
  3310. );
  3311. $this->projects_locations = new Logging\Resource\ProjectsLocations(
  3312. $this,
  3313. $this->serviceName,
  3314. 'locations',
  3315. [
  3316. 'methods' => [
  3317. 'get' => [
  3318. 'path' => 'v2/{+name}',
  3319. 'httpMethod' => 'GET',
  3320. 'parameters' => [
  3321. 'name' => [
  3322. 'location' => 'path',
  3323. 'type' => 'string',
  3324. 'required' => true,
  3325. ],
  3326. ],
  3327. ],'list' => [
  3328. 'path' => 'v2/{+name}/locations',
  3329. 'httpMethod' => 'GET',
  3330. 'parameters' => [
  3331. 'name' => [
  3332. 'location' => 'path',
  3333. 'type' => 'string',
  3334. 'required' => true,
  3335. ],
  3336. 'extraLocationTypes' => [
  3337. 'location' => 'query',
  3338. 'type' => 'string',
  3339. 'repeated' => true,
  3340. ],
  3341. 'filter' => [
  3342. 'location' => 'query',
  3343. 'type' => 'string',
  3344. ],
  3345. 'pageSize' => [
  3346. 'location' => 'query',
  3347. 'type' => 'integer',
  3348. ],
  3349. 'pageToken' => [
  3350. 'location' => 'query',
  3351. 'type' => 'string',
  3352. ],
  3353. ],
  3354. ],
  3355. ]
  3356. ]
  3357. );
  3358. $this->projects_locations_buckets = new Logging\Resource\ProjectsLocationsBuckets(
  3359. $this,
  3360. $this->serviceName,
  3361. 'buckets',
  3362. [
  3363. 'methods' => [
  3364. 'create' => [
  3365. 'path' => 'v2/{+parent}/buckets',
  3366. 'httpMethod' => 'POST',
  3367. 'parameters' => [
  3368. 'parent' => [
  3369. 'location' => 'path',
  3370. 'type' => 'string',
  3371. 'required' => true,
  3372. ],
  3373. 'bucketId' => [
  3374. 'location' => 'query',
  3375. 'type' => 'string',
  3376. ],
  3377. ],
  3378. ],'createAsync' => [
  3379. 'path' => 'v2/{+parent}/buckets:createAsync',
  3380. 'httpMethod' => 'POST',
  3381. 'parameters' => [
  3382. 'parent' => [
  3383. 'location' => 'path',
  3384. 'type' => 'string',
  3385. 'required' => true,
  3386. ],
  3387. 'bucketId' => [
  3388. 'location' => 'query',
  3389. 'type' => 'string',
  3390. ],
  3391. ],
  3392. ],'delete' => [
  3393. 'path' => 'v2/{+name}',
  3394. 'httpMethod' => 'DELETE',
  3395. 'parameters' => [
  3396. 'name' => [
  3397. 'location' => 'path',
  3398. 'type' => 'string',
  3399. 'required' => true,
  3400. ],
  3401. ],
  3402. ],'get' => [
  3403. 'path' => 'v2/{+name}',
  3404. 'httpMethod' => 'GET',
  3405. 'parameters' => [
  3406. 'name' => [
  3407. 'location' => 'path',
  3408. 'type' => 'string',
  3409. 'required' => true,
  3410. ],
  3411. ],
  3412. ],'list' => [
  3413. 'path' => 'v2/{+parent}/buckets',
  3414. 'httpMethod' => 'GET',
  3415. 'parameters' => [
  3416. 'parent' => [
  3417. 'location' => 'path',
  3418. 'type' => 'string',
  3419. 'required' => true,
  3420. ],
  3421. 'pageSize' => [
  3422. 'location' => 'query',
  3423. 'type' => 'integer',
  3424. ],
  3425. 'pageToken' => [
  3426. 'location' => 'query',
  3427. 'type' => 'string',
  3428. ],
  3429. ],
  3430. ],'patch' => [
  3431. 'path' => 'v2/{+name}',
  3432. 'httpMethod' => 'PATCH',
  3433. 'parameters' => [
  3434. 'name' => [
  3435. 'location' => 'path',
  3436. 'type' => 'string',
  3437. 'required' => true,
  3438. ],
  3439. 'updateMask' => [
  3440. 'location' => 'query',
  3441. 'type' => 'string',
  3442. ],
  3443. ],
  3444. ],'undelete' => [
  3445. 'path' => 'v2/{+name}:undelete',
  3446. 'httpMethod' => 'POST',
  3447. 'parameters' => [
  3448. 'name' => [
  3449. 'location' => 'path',
  3450. 'type' => 'string',
  3451. 'required' => true,
  3452. ],
  3453. ],
  3454. ],'updateAsync' => [
  3455. 'path' => 'v2/{+name}:updateAsync',
  3456. 'httpMethod' => 'POST',
  3457. 'parameters' => [
  3458. 'name' => [
  3459. 'location' => 'path',
  3460. 'type' => 'string',
  3461. 'required' => true,
  3462. ],
  3463. 'updateMask' => [
  3464. 'location' => 'query',
  3465. 'type' => 'string',
  3466. ],
  3467. ],
  3468. ],
  3469. ]
  3470. ]
  3471. );
  3472. $this->projects_locations_buckets_links = new Logging\Resource\ProjectsLocationsBucketsLinks(
  3473. $this,
  3474. $this->serviceName,
  3475. 'links',
  3476. [
  3477. 'methods' => [
  3478. 'create' => [
  3479. 'path' => 'v2/{+parent}/links',
  3480. 'httpMethod' => 'POST',
  3481. 'parameters' => [
  3482. 'parent' => [
  3483. 'location' => 'path',
  3484. 'type' => 'string',
  3485. 'required' => true,
  3486. ],
  3487. 'linkId' => [
  3488. 'location' => 'query',
  3489. 'type' => 'string',
  3490. ],
  3491. ],
  3492. ],'delete' => [
  3493. 'path' => 'v2/{+name}',
  3494. 'httpMethod' => 'DELETE',
  3495. 'parameters' => [
  3496. 'name' => [
  3497. 'location' => 'path',
  3498. 'type' => 'string',
  3499. 'required' => true,
  3500. ],
  3501. ],
  3502. ],'get' => [
  3503. 'path' => 'v2/{+name}',
  3504. 'httpMethod' => 'GET',
  3505. 'parameters' => [
  3506. 'name' => [
  3507. 'location' => 'path',
  3508. 'type' => 'string',
  3509. 'required' => true,
  3510. ],
  3511. ],
  3512. ],'list' => [
  3513. 'path' => 'v2/{+parent}/links',
  3514. 'httpMethod' => 'GET',
  3515. 'parameters' => [
  3516. 'parent' => [
  3517. 'location' => 'path',
  3518. 'type' => 'string',
  3519. 'required' => true,
  3520. ],
  3521. 'pageSize' => [
  3522. 'location' => 'query',
  3523. 'type' => 'integer',
  3524. ],
  3525. 'pageToken' => [
  3526. 'location' => 'query',
  3527. 'type' => 'string',
  3528. ],
  3529. ],
  3530. ],
  3531. ]
  3532. ]
  3533. );
  3534. $this->projects_locations_buckets_views = new Logging\Resource\ProjectsLocationsBucketsViews(
  3535. $this,
  3536. $this->serviceName,
  3537. 'views',
  3538. [
  3539. 'methods' => [
  3540. 'create' => [
  3541. 'path' => 'v2/{+parent}/views',
  3542. 'httpMethod' => 'POST',
  3543. 'parameters' => [
  3544. 'parent' => [
  3545. 'location' => 'path',
  3546. 'type' => 'string',
  3547. 'required' => true,
  3548. ],
  3549. 'viewId' => [
  3550. 'location' => 'query',
  3551. 'type' => 'string',
  3552. ],
  3553. ],
  3554. ],'delete' => [
  3555. 'path' => 'v2/{+name}',
  3556. 'httpMethod' => 'DELETE',
  3557. 'parameters' => [
  3558. 'name' => [
  3559. 'location' => 'path',
  3560. 'type' => 'string',
  3561. 'required' => true,
  3562. ],
  3563. ],
  3564. ],'get' => [
  3565. 'path' => 'v2/{+name}',
  3566. 'httpMethod' => 'GET',
  3567. 'parameters' => [
  3568. 'name' => [
  3569. 'location' => 'path',
  3570. 'type' => 'string',
  3571. 'required' => true,
  3572. ],
  3573. ],
  3574. ],'getIamPolicy' => [
  3575. 'path' => 'v2/{+resource}:getIamPolicy',
  3576. 'httpMethod' => 'POST',
  3577. 'parameters' => [
  3578. 'resource' => [
  3579. 'location' => 'path',
  3580. 'type' => 'string',
  3581. 'required' => true,
  3582. ],
  3583. ],
  3584. ],'list' => [
  3585. 'path' => 'v2/{+parent}/views',
  3586. 'httpMethod' => 'GET',
  3587. 'parameters' => [
  3588. 'parent' => [
  3589. 'location' => 'path',
  3590. 'type' => 'string',
  3591. 'required' => true,
  3592. ],
  3593. 'pageSize' => [
  3594. 'location' => 'query',
  3595. 'type' => 'integer',
  3596. ],
  3597. 'pageToken' => [
  3598. 'location' => 'query',
  3599. 'type' => 'string',
  3600. ],
  3601. ],
  3602. ],'patch' => [
  3603. 'path' => 'v2/{+name}',
  3604. 'httpMethod' => 'PATCH',
  3605. 'parameters' => [
  3606. 'name' => [
  3607. 'location' => 'path',
  3608. 'type' => 'string',
  3609. 'required' => true,
  3610. ],
  3611. 'updateMask' => [
  3612. 'location' => 'query',
  3613. 'type' => 'string',
  3614. ],
  3615. ],
  3616. ],'setIamPolicy' => [
  3617. 'path' => 'v2/{+resource}:setIamPolicy',
  3618. 'httpMethod' => 'POST',
  3619. 'parameters' => [
  3620. 'resource' => [
  3621. 'location' => 'path',
  3622. 'type' => 'string',
  3623. 'required' => true,
  3624. ],
  3625. ],
  3626. ],'testIamPermissions' => [
  3627. 'path' => 'v2/{+resource}:testIamPermissions',
  3628. 'httpMethod' => 'POST',
  3629. 'parameters' => [
  3630. 'resource' => [
  3631. 'location' => 'path',
  3632. 'type' => 'string',
  3633. 'required' => true,
  3634. ],
  3635. ],
  3636. ],
  3637. ]
  3638. ]
  3639. );
  3640. $this->projects_locations_buckets_views_logs = new Logging\Resource\ProjectsLocationsBucketsViewsLogs(
  3641. $this,
  3642. $this->serviceName,
  3643. 'logs',
  3644. [
  3645. 'methods' => [
  3646. 'list' => [
  3647. 'path' => 'v2/{+parent}/logs',
  3648. 'httpMethod' => 'GET',
  3649. 'parameters' => [
  3650. 'parent' => [
  3651. 'location' => 'path',
  3652. 'type' => 'string',
  3653. 'required' => true,
  3654. ],
  3655. 'pageSize' => [
  3656. 'location' => 'query',
  3657. 'type' => 'integer',
  3658. ],
  3659. 'pageToken' => [
  3660. 'location' => 'query',
  3661. 'type' => 'string',
  3662. ],
  3663. 'resourceNames' => [
  3664. 'location' => 'query',
  3665. 'type' => 'string',
  3666. 'repeated' => true,
  3667. ],
  3668. ],
  3669. ],
  3670. ]
  3671. ]
  3672. );
  3673. $this->projects_locations_logScopes = new Logging\Resource\ProjectsLocationsLogScopes(
  3674. $this,
  3675. $this->serviceName,
  3676. 'logScopes',
  3677. [
  3678. 'methods' => [
  3679. 'create' => [
  3680. 'path' => 'v2/{+parent}/logScopes',
  3681. 'httpMethod' => 'POST',
  3682. 'parameters' => [
  3683. 'parent' => [
  3684. 'location' => 'path',
  3685. 'type' => 'string',
  3686. 'required' => true,
  3687. ],
  3688. 'logScopeId' => [
  3689. 'location' => 'query',
  3690. 'type' => 'string',
  3691. ],
  3692. ],
  3693. ],'delete' => [
  3694. 'path' => 'v2/{+name}',
  3695. 'httpMethod' => 'DELETE',
  3696. 'parameters' => [
  3697. 'name' => [
  3698. 'location' => 'path',
  3699. 'type' => 'string',
  3700. 'required' => true,
  3701. ],
  3702. ],
  3703. ],'get' => [
  3704. 'path' => 'v2/{+name}',
  3705. 'httpMethod' => 'GET',
  3706. 'parameters' => [
  3707. 'name' => [
  3708. 'location' => 'path',
  3709. 'type' => 'string',
  3710. 'required' => true,
  3711. ],
  3712. ],
  3713. ],'list' => [
  3714. 'path' => 'v2/{+parent}/logScopes',
  3715. 'httpMethod' => 'GET',
  3716. 'parameters' => [
  3717. 'parent' => [
  3718. 'location' => 'path',
  3719. 'type' => 'string',
  3720. 'required' => true,
  3721. ],
  3722. 'pageSize' => [
  3723. 'location' => 'query',
  3724. 'type' => 'integer',
  3725. ],
  3726. 'pageToken' => [
  3727. 'location' => 'query',
  3728. 'type' => 'string',
  3729. ],
  3730. ],
  3731. ],'patch' => [
  3732. 'path' => 'v2/{+name}',
  3733. 'httpMethod' => 'PATCH',
  3734. 'parameters' => [
  3735. 'name' => [
  3736. 'location' => 'path',
  3737. 'type' => 'string',
  3738. 'required' => true,
  3739. ],
  3740. 'updateMask' => [
  3741. 'location' => 'query',
  3742. 'type' => 'string',
  3743. ],
  3744. ],
  3745. ],
  3746. ]
  3747. ]
  3748. );
  3749. $this->projects_locations_operations = new Logging\Resource\ProjectsLocationsOperations(
  3750. $this,
  3751. $this->serviceName,
  3752. 'operations',
  3753. [
  3754. 'methods' => [
  3755. 'cancel' => [
  3756. 'path' => 'v2/{+name}:cancel',
  3757. 'httpMethod' => 'POST',
  3758. 'parameters' => [
  3759. 'name' => [
  3760. 'location' => 'path',
  3761. 'type' => 'string',
  3762. 'required' => true,
  3763. ],
  3764. ],
  3765. ],'get' => [
  3766. 'path' => 'v2/{+name}',
  3767. 'httpMethod' => 'GET',
  3768. 'parameters' => [
  3769. 'name' => [
  3770. 'location' => 'path',
  3771. 'type' => 'string',
  3772. 'required' => true,
  3773. ],
  3774. ],
  3775. ],'list' => [
  3776. 'path' => 'v2/{+name}/operations',
  3777. 'httpMethod' => 'GET',
  3778. 'parameters' => [
  3779. 'name' => [
  3780. 'location' => 'path',
  3781. 'type' => 'string',
  3782. 'required' => true,
  3783. ],
  3784. 'filter' => [
  3785. 'location' => 'query',
  3786. 'type' => 'string',
  3787. ],
  3788. 'pageSize' => [
  3789. 'location' => 'query',
  3790. 'type' => 'integer',
  3791. ],
  3792. 'pageToken' => [
  3793. 'location' => 'query',
  3794. 'type' => 'string',
  3795. ],
  3796. 'returnPartialSuccess' => [
  3797. 'location' => 'query',
  3798. 'type' => 'boolean',
  3799. ],
  3800. ],
  3801. ],
  3802. ]
  3803. ]
  3804. );
  3805. $this->projects_locations_recentQueries = new Logging\Resource\ProjectsLocationsRecentQueries(
  3806. $this,
  3807. $this->serviceName,
  3808. 'recentQueries',
  3809. [
  3810. 'methods' => [
  3811. 'list' => [
  3812. 'path' => 'v2/{+parent}/recentQueries',
  3813. 'httpMethod' => 'GET',
  3814. 'parameters' => [
  3815. 'parent' => [
  3816. 'location' => 'path',
  3817. 'type' => 'string',
  3818. 'required' => true,
  3819. ],
  3820. 'filter' => [
  3821. 'location' => 'query',
  3822. 'type' => 'string',
  3823. ],
  3824. 'pageSize' => [
  3825. 'location' => 'query',
  3826. 'type' => 'integer',
  3827. ],
  3828. 'pageToken' => [
  3829. 'location' => 'query',
  3830. 'type' => 'string',
  3831. ],
  3832. ],
  3833. ],
  3834. ]
  3835. ]
  3836. );
  3837. $this->projects_locations_savedQueries = new Logging\Resource\ProjectsLocationsSavedQueries(
  3838. $this,
  3839. $this->serviceName,
  3840. 'savedQueries',
  3841. [
  3842. 'methods' => [
  3843. 'create' => [
  3844. 'path' => 'v2/{+parent}/savedQueries',
  3845. 'httpMethod' => 'POST',
  3846. 'parameters' => [
  3847. 'parent' => [
  3848. 'location' => 'path',
  3849. 'type' => 'string',
  3850. 'required' => true,
  3851. ],
  3852. 'savedQueryId' => [
  3853. 'location' => 'query',
  3854. 'type' => 'string',
  3855. ],
  3856. ],
  3857. ],'delete' => [
  3858. 'path' => 'v2/{+name}',
  3859. 'httpMethod' => 'DELETE',
  3860. 'parameters' => [
  3861. 'name' => [
  3862. 'location' => 'path',
  3863. 'type' => 'string',
  3864. 'required' => true,
  3865. ],
  3866. ],
  3867. ],'get' => [
  3868. 'path' => 'v2/{+name}',
  3869. 'httpMethod' => 'GET',
  3870. 'parameters' => [
  3871. 'name' => [
  3872. 'location' => 'path',
  3873. 'type' => 'string',
  3874. 'required' => true,
  3875. ],
  3876. ],
  3877. ],'list' => [
  3878. 'path' => 'v2/{+parent}/savedQueries',
  3879. 'httpMethod' => 'GET',
  3880. 'parameters' => [
  3881. 'parent' => [
  3882. 'location' => 'path',
  3883. 'type' => 'string',
  3884. 'required' => true,
  3885. ],
  3886. 'filter' => [
  3887. 'location' => 'query',
  3888. 'type' => 'string',
  3889. ],
  3890. 'pageSize' => [
  3891. 'location' => 'query',
  3892. 'type' => 'integer',
  3893. ],
  3894. 'pageToken' => [
  3895. 'location' => 'query',
  3896. 'type' => 'string',
  3897. ],
  3898. ],
  3899. ],'patch' => [
  3900. 'path' => 'v2/{+name}',
  3901. 'httpMethod' => 'PATCH',
  3902. 'parameters' => [
  3903. 'name' => [
  3904. 'location' => 'path',
  3905. 'type' => 'string',
  3906. 'required' => true,
  3907. ],
  3908. 'updateMask' => [
  3909. 'location' => 'query',
  3910. 'type' => 'string',
  3911. ],
  3912. ],
  3913. ],
  3914. ]
  3915. ]
  3916. );
  3917. $this->projects_logs = new Logging\Resource\ProjectsLogs(
  3918. $this,
  3919. $this->serviceName,
  3920. 'logs',
  3921. [
  3922. 'methods' => [
  3923. 'delete' => [
  3924. 'path' => 'v2/{+logName}',
  3925. 'httpMethod' => 'DELETE',
  3926. 'parameters' => [
  3927. 'logName' => [
  3928. 'location' => 'path',
  3929. 'type' => 'string',
  3930. 'required' => true,
  3931. ],
  3932. ],
  3933. ],'list' => [
  3934. 'path' => 'v2/{+parent}/logs',
  3935. 'httpMethod' => 'GET',
  3936. 'parameters' => [
  3937. 'parent' => [
  3938. 'location' => 'path',
  3939. 'type' => 'string',
  3940. 'required' => true,
  3941. ],
  3942. 'pageSize' => [
  3943. 'location' => 'query',
  3944. 'type' => 'integer',
  3945. ],
  3946. 'pageToken' => [
  3947. 'location' => 'query',
  3948. 'type' => 'string',
  3949. ],
  3950. 'resourceNames' => [
  3951. 'location' => 'query',
  3952. 'type' => 'string',
  3953. 'repeated' => true,
  3954. ],
  3955. ],
  3956. ],
  3957. ]
  3958. ]
  3959. );
  3960. $this->projects_metrics = new Logging\Resource\ProjectsMetrics(
  3961. $this,
  3962. $this->serviceName,
  3963. 'metrics',
  3964. [
  3965. 'methods' => [
  3966. 'create' => [
  3967. 'path' => 'v2/{+parent}/metrics',
  3968. 'httpMethod' => 'POST',
  3969. 'parameters' => [
  3970. 'parent' => [
  3971. 'location' => 'path',
  3972. 'type' => 'string',
  3973. 'required' => true,
  3974. ],
  3975. ],
  3976. ],'delete' => [
  3977. 'path' => 'v2/{+metricName}',
  3978. 'httpMethod' => 'DELETE',
  3979. 'parameters' => [
  3980. 'metricName' => [
  3981. 'location' => 'path',
  3982. 'type' => 'string',
  3983. 'required' => true,
  3984. ],
  3985. ],
  3986. ],'get' => [
  3987. 'path' => 'v2/{+metricName}',
  3988. 'httpMethod' => 'GET',
  3989. 'parameters' => [
  3990. 'metricName' => [
  3991. 'location' => 'path',
  3992. 'type' => 'string',
  3993. 'required' => true,
  3994. ],
  3995. ],
  3996. ],'list' => [
  3997. 'path' => 'v2/{+parent}/metrics',
  3998. 'httpMethod' => 'GET',
  3999. 'parameters' => [
  4000. 'parent' => [
  4001. 'location' => 'path',
  4002. 'type' => 'string',
  4003. 'required' => true,
  4004. ],
  4005. 'pageSize' => [
  4006. 'location' => 'query',
  4007. 'type' => 'integer',
  4008. ],
  4009. 'pageToken' => [
  4010. 'location' => 'query',
  4011. 'type' => 'string',
  4012. ],
  4013. ],
  4014. ],'update' => [
  4015. 'path' => 'v2/{+metricName}',
  4016. 'httpMethod' => 'PUT',
  4017. 'parameters' => [
  4018. 'metricName' => [
  4019. 'location' => 'path',
  4020. 'type' => 'string',
  4021. 'required' => true,
  4022. ],
  4023. ],
  4024. ],
  4025. ]
  4026. ]
  4027. );
  4028. $this->projects_sinks = new Logging\Resource\ProjectsSinks(
  4029. $this,
  4030. $this->serviceName,
  4031. 'sinks',
  4032. [
  4033. 'methods' => [
  4034. 'create' => [
  4035. 'path' => 'v2/{+parent}/sinks',
  4036. 'httpMethod' => 'POST',
  4037. 'parameters' => [
  4038. 'parent' => [
  4039. 'location' => 'path',
  4040. 'type' => 'string',
  4041. 'required' => true,
  4042. ],
  4043. 'customWriterIdentity' => [
  4044. 'location' => 'query',
  4045. 'type' => 'string',
  4046. ],
  4047. 'uniqueWriterIdentity' => [
  4048. 'location' => 'query',
  4049. 'type' => 'boolean',
  4050. ],
  4051. ],
  4052. ],'delete' => [
  4053. 'path' => 'v2/{+sinkName}',
  4054. 'httpMethod' => 'DELETE',
  4055. 'parameters' => [
  4056. 'sinkName' => [
  4057. 'location' => 'path',
  4058. 'type' => 'string',
  4059. 'required' => true,
  4060. ],
  4061. ],
  4062. ],'get' => [
  4063. 'path' => 'v2/{+sinkName}',
  4064. 'httpMethod' => 'GET',
  4065. 'parameters' => [
  4066. 'sinkName' => [
  4067. 'location' => 'path',
  4068. 'type' => 'string',
  4069. 'required' => true,
  4070. ],
  4071. ],
  4072. ],'list' => [
  4073. 'path' => 'v2/{+parent}/sinks',
  4074. 'httpMethod' => 'GET',
  4075. 'parameters' => [
  4076. 'parent' => [
  4077. 'location' => 'path',
  4078. 'type' => 'string',
  4079. 'required' => true,
  4080. ],
  4081. 'filter' => [
  4082. 'location' => 'query',
  4083. 'type' => 'string',
  4084. ],
  4085. 'pageSize' => [
  4086. 'location' => 'query',
  4087. 'type' => 'integer',
  4088. ],
  4089. 'pageToken' => [
  4090. 'location' => 'query',
  4091. 'type' => 'string',
  4092. ],
  4093. ],
  4094. ],'patch' => [
  4095. 'path' => 'v2/{+sinkName}',
  4096. 'httpMethod' => 'PATCH',
  4097. 'parameters' => [
  4098. 'sinkName' => [
  4099. 'location' => 'path',
  4100. 'type' => 'string',
  4101. 'required' => true,
  4102. ],
  4103. 'customWriterIdentity' => [
  4104. 'location' => 'query',
  4105. 'type' => 'string',
  4106. ],
  4107. 'uniqueWriterIdentity' => [
  4108. 'location' => 'query',
  4109. 'type' => 'boolean',
  4110. ],
  4111. 'updateMask' => [
  4112. 'location' => 'query',
  4113. 'type' => 'string',
  4114. ],
  4115. ],
  4116. ],'update' => [
  4117. 'path' => 'v2/{+sinkName}',
  4118. 'httpMethod' => 'PUT',
  4119. 'parameters' => [
  4120. 'sinkName' => [
  4121. 'location' => 'path',
  4122. 'type' => 'string',
  4123. 'required' => true,
  4124. ],
  4125. 'customWriterIdentity' => [
  4126. 'location' => 'query',
  4127. 'type' => 'string',
  4128. ],
  4129. 'uniqueWriterIdentity' => [
  4130. 'location' => 'query',
  4131. 'type' => 'boolean',
  4132. ],
  4133. 'updateMask' => [
  4134. 'location' => 'query',
  4135. 'type' => 'string',
  4136. ],
  4137. ],
  4138. ],
  4139. ]
  4140. ]
  4141. );
  4142. $this->sinks = new Logging\Resource\Sinks(
  4143. $this,
  4144. $this->serviceName,
  4145. 'sinks',
  4146. [
  4147. 'methods' => [
  4148. 'create' => [
  4149. 'path' => 'v2/{+parent}/sinks',
  4150. 'httpMethod' => 'POST',
  4151. 'parameters' => [
  4152. 'parent' => [
  4153. 'location' => 'path',
  4154. 'type' => 'string',
  4155. 'required' => true,
  4156. ],
  4157. 'customWriterIdentity' => [
  4158. 'location' => 'query',
  4159. 'type' => 'string',
  4160. ],
  4161. 'uniqueWriterIdentity' => [
  4162. 'location' => 'query',
  4163. 'type' => 'boolean',
  4164. ],
  4165. ],
  4166. ],'delete' => [
  4167. 'path' => 'v2/{+sinkName}',
  4168. 'httpMethod' => 'DELETE',
  4169. 'parameters' => [
  4170. 'sinkName' => [
  4171. 'location' => 'path',
  4172. 'type' => 'string',
  4173. 'required' => true,
  4174. ],
  4175. ],
  4176. ],'get' => [
  4177. 'path' => 'v2/{+sinkName}',
  4178. 'httpMethod' => 'GET',
  4179. 'parameters' => [
  4180. 'sinkName' => [
  4181. 'location' => 'path',
  4182. 'type' => 'string',
  4183. 'required' => true,
  4184. ],
  4185. ],
  4186. ],'list' => [
  4187. 'path' => 'v2/{+parent}/sinks',
  4188. 'httpMethod' => 'GET',
  4189. 'parameters' => [
  4190. 'parent' => [
  4191. 'location' => 'path',
  4192. 'type' => 'string',
  4193. 'required' => true,
  4194. ],
  4195. 'filter' => [
  4196. 'location' => 'query',
  4197. 'type' => 'string',
  4198. ],
  4199. 'pageSize' => [
  4200. 'location' => 'query',
  4201. 'type' => 'integer',
  4202. ],
  4203. 'pageToken' => [
  4204. 'location' => 'query',
  4205. 'type' => 'string',
  4206. ],
  4207. ],
  4208. ],'update' => [
  4209. 'path' => 'v2/{+sinkName}',
  4210. 'httpMethod' => 'PUT',
  4211. 'parameters' => [
  4212. 'sinkName' => [
  4213. 'location' => 'path',
  4214. 'type' => 'string',
  4215. 'required' => true,
  4216. ],
  4217. 'customWriterIdentity' => [
  4218. 'location' => 'query',
  4219. 'type' => 'string',
  4220. ],
  4221. 'uniqueWriterIdentity' => [
  4222. 'location' => 'query',
  4223. 'type' => 'boolean',
  4224. ],
  4225. 'updateMask' => [
  4226. 'location' => 'query',
  4227. 'type' => 'string',
  4228. ],
  4229. ],
  4230. ],
  4231. ]
  4232. ]
  4233. );
  4234. $this->v2 = new Logging\Resource\V2(
  4235. $this,
  4236. $this->serviceName,
  4237. 'v2',
  4238. [
  4239. 'methods' => [
  4240. 'getCmekSettings' => [
  4241. 'path' => 'v2/{+name}/cmekSettings',
  4242. 'httpMethod' => 'GET',
  4243. 'parameters' => [
  4244. 'name' => [
  4245. 'location' => 'path',
  4246. 'type' => 'string',
  4247. 'required' => true,
  4248. ],
  4249. ],
  4250. ],'getSettings' => [
  4251. 'path' => 'v2/{+name}/settings',
  4252. 'httpMethod' => 'GET',
  4253. 'parameters' => [
  4254. 'name' => [
  4255. 'location' => 'path',
  4256. 'type' => 'string',
  4257. 'required' => true,
  4258. ],
  4259. ],
  4260. ],'updateCmekSettings' => [
  4261. 'path' => 'v2/{+name}/cmekSettings',
  4262. 'httpMethod' => 'PATCH',
  4263. 'parameters' => [
  4264. 'name' => [
  4265. 'location' => 'path',
  4266. 'type' => 'string',
  4267. 'required' => true,
  4268. ],
  4269. 'updateMask' => [
  4270. 'location' => 'query',
  4271. 'type' => 'string',
  4272. ],
  4273. ],
  4274. ],'updateSettings' => [
  4275. 'path' => 'v2/{+name}/settings',
  4276. 'httpMethod' => 'PATCH',
  4277. 'parameters' => [
  4278. 'name' => [
  4279. 'location' => 'path',
  4280. 'type' => 'string',
  4281. 'required' => true,
  4282. ],
  4283. 'updateMask' => [
  4284. 'location' => 'query',
  4285. 'type' => 'string',
  4286. ],
  4287. ],
  4288. ],
  4289. ]
  4290. ]
  4291. );
  4292. }
  4293. }
  4294. // Adding a class alias for backwards compatibility with the previous class name.
  4295. class_alias(Logging::class, 'Google_Service_Logging');