Analytics.php 74 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170
  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 Analytics (v3).
  21. *
  22. * <p>
  23. * Views and manages your Google Analytics data.</p>
  24. *
  25. * <p>
  26. * For more information about this service, see the API
  27. * <a href="https://developers.google.com/analytics/" target="_blank">Documentation</a>
  28. * </p>
  29. *
  30. * @author Google, Inc.
  31. */
  32. class Analytics extends \Google\Service
  33. {
  34. /** View and manage your Google Analytics data. */
  35. const ANALYTICS =
  36. "https://www.googleapis.com/auth/analytics";
  37. /** Edit Google Analytics management entities. */
  38. const ANALYTICS_EDIT =
  39. "https://www.googleapis.com/auth/analytics.edit";
  40. /** Manage Google Analytics Account users by email address. */
  41. const ANALYTICS_MANAGE_USERS =
  42. "https://www.googleapis.com/auth/analytics.manage.users";
  43. /** View Google Analytics user permissions. */
  44. const ANALYTICS_MANAGE_USERS_READONLY =
  45. "https://www.googleapis.com/auth/analytics.manage.users.readonly";
  46. /** Create a new Google Analytics account along with its default property and view. */
  47. const ANALYTICS_PROVISION =
  48. "https://www.googleapis.com/auth/analytics.provision";
  49. /** View your Google Analytics data. */
  50. const ANALYTICS_READONLY =
  51. "https://www.googleapis.com/auth/analytics.readonly";
  52. /** Manage Google Analytics user deletion requests. */
  53. const ANALYTICS_USER_DELETION =
  54. "https://www.googleapis.com/auth/analytics.user.deletion";
  55. public $data_ga;
  56. public $data_mcf;
  57. public $data_realtime;
  58. public $management_accountSummaries;
  59. public $management_accountUserLinks;
  60. public $management_accounts;
  61. public $management_clientId;
  62. public $management_customDataSources;
  63. public $management_customDimensions;
  64. public $management_customMetrics;
  65. public $management_experiments;
  66. public $management_filters;
  67. public $management_goals;
  68. public $management_profileFilterLinks;
  69. public $management_profileUserLinks;
  70. public $management_profiles;
  71. public $management_remarketingAudience;
  72. public $management_segments;
  73. public $management_unsampledReports;
  74. public $management_uploads;
  75. public $management_webPropertyAdWordsLinks;
  76. public $management_webproperties;
  77. public $management_webpropertyUserLinks;
  78. public $metadata_columns;
  79. public $provisioning;
  80. public $userDeletion_userDeletionRequest;
  81. /**
  82. * Constructs the internal representation of the Analytics service.
  83. *
  84. * @param Client|array $clientOrConfig The client used to deliver requests, or a
  85. * config array to pass to a new Client instance.
  86. * @param string $rootUrl The root URL used for requests to the service.
  87. */
  88. public function __construct($clientOrConfig = [], $rootUrl = null)
  89. {
  90. parent::__construct($clientOrConfig);
  91. $this->rootUrl = $rootUrl ?: 'https://analytics.googleapis.com/';
  92. $this->servicePath = 'analytics/v3/';
  93. $this->batchPath = 'batch/analytics/v3';
  94. $this->version = 'v3';
  95. $this->serviceName = 'analytics';
  96. $this->data_ga = new Analytics\Resource\DataGa(
  97. $this,
  98. $this->serviceName,
  99. 'ga',
  100. [
  101. 'methods' => [
  102. 'get' => [
  103. 'path' => 'data/ga',
  104. 'httpMethod' => 'GET',
  105. 'parameters' => [
  106. 'ids' => [
  107. 'location' => 'query',
  108. 'type' => 'string',
  109. 'required' => true,
  110. ],
  111. 'start-date' => [
  112. 'location' => 'query',
  113. 'type' => 'string',
  114. 'required' => true,
  115. ],
  116. 'end-date' => [
  117. 'location' => 'query',
  118. 'type' => 'string',
  119. 'required' => true,
  120. ],
  121. 'metrics' => [
  122. 'location' => 'query',
  123. 'type' => 'string',
  124. 'required' => true,
  125. ],
  126. 'dimensions' => [
  127. 'location' => 'query',
  128. 'type' => 'string',
  129. ],
  130. 'filters' => [
  131. 'location' => 'query',
  132. 'type' => 'string',
  133. ],
  134. 'include-empty-rows' => [
  135. 'location' => 'query',
  136. 'type' => 'boolean',
  137. ],
  138. 'max-results' => [
  139. 'location' => 'query',
  140. 'type' => 'integer',
  141. ],
  142. 'output' => [
  143. 'location' => 'query',
  144. 'type' => 'string',
  145. ],
  146. 'samplingLevel' => [
  147. 'location' => 'query',
  148. 'type' => 'string',
  149. ],
  150. 'segment' => [
  151. 'location' => 'query',
  152. 'type' => 'string',
  153. ],
  154. 'sort' => [
  155. 'location' => 'query',
  156. 'type' => 'string',
  157. ],
  158. 'start-index' => [
  159. 'location' => 'query',
  160. 'type' => 'integer',
  161. ],
  162. ],
  163. ],
  164. ]
  165. ]
  166. );
  167. $this->data_mcf = new Analytics\Resource\DataMcf(
  168. $this,
  169. $this->serviceName,
  170. 'mcf',
  171. [
  172. 'methods' => [
  173. 'get' => [
  174. 'path' => 'data/mcf',
  175. 'httpMethod' => 'GET',
  176. 'parameters' => [
  177. 'ids' => [
  178. 'location' => 'query',
  179. 'type' => 'string',
  180. 'required' => true,
  181. ],
  182. 'start-date' => [
  183. 'location' => 'query',
  184. 'type' => 'string',
  185. 'required' => true,
  186. ],
  187. 'end-date' => [
  188. 'location' => 'query',
  189. 'type' => 'string',
  190. 'required' => true,
  191. ],
  192. 'metrics' => [
  193. 'location' => 'query',
  194. 'type' => 'string',
  195. 'required' => true,
  196. ],
  197. 'dimensions' => [
  198. 'location' => 'query',
  199. 'type' => 'string',
  200. ],
  201. 'filters' => [
  202. 'location' => 'query',
  203. 'type' => 'string',
  204. ],
  205. 'max-results' => [
  206. 'location' => 'query',
  207. 'type' => 'integer',
  208. ],
  209. 'samplingLevel' => [
  210. 'location' => 'query',
  211. 'type' => 'string',
  212. ],
  213. 'sort' => [
  214. 'location' => 'query',
  215. 'type' => 'string',
  216. ],
  217. 'start-index' => [
  218. 'location' => 'query',
  219. 'type' => 'integer',
  220. ],
  221. ],
  222. ],
  223. ]
  224. ]
  225. );
  226. $this->data_realtime = new Analytics\Resource\DataRealtime(
  227. $this,
  228. $this->serviceName,
  229. 'realtime',
  230. [
  231. 'methods' => [
  232. 'get' => [
  233. 'path' => 'data/realtime',
  234. 'httpMethod' => 'GET',
  235. 'parameters' => [
  236. 'ids' => [
  237. 'location' => 'query',
  238. 'type' => 'string',
  239. 'required' => true,
  240. ],
  241. 'metrics' => [
  242. 'location' => 'query',
  243. 'type' => 'string',
  244. 'required' => true,
  245. ],
  246. 'dimensions' => [
  247. 'location' => 'query',
  248. 'type' => 'string',
  249. ],
  250. 'filters' => [
  251. 'location' => 'query',
  252. 'type' => 'string',
  253. ],
  254. 'max-results' => [
  255. 'location' => 'query',
  256. 'type' => 'integer',
  257. ],
  258. 'sort' => [
  259. 'location' => 'query',
  260. 'type' => 'string',
  261. ],
  262. ],
  263. ],
  264. ]
  265. ]
  266. );
  267. $this->management_accountSummaries = new Analytics\Resource\ManagementAccountSummaries(
  268. $this,
  269. $this->serviceName,
  270. 'accountSummaries',
  271. [
  272. 'methods' => [
  273. 'list' => [
  274. 'path' => 'management/accountSummaries',
  275. 'httpMethod' => 'GET',
  276. 'parameters' => [
  277. 'max-results' => [
  278. 'location' => 'query',
  279. 'type' => 'integer',
  280. ],
  281. 'start-index' => [
  282. 'location' => 'query',
  283. 'type' => 'integer',
  284. ],
  285. ],
  286. ],
  287. ]
  288. ]
  289. );
  290. $this->management_accountUserLinks = new Analytics\Resource\ManagementAccountUserLinks(
  291. $this,
  292. $this->serviceName,
  293. 'accountUserLinks',
  294. [
  295. 'methods' => [
  296. 'delete' => [
  297. 'path' => 'management/accounts/{accountId}/entityUserLinks/{linkId}',
  298. 'httpMethod' => 'DELETE',
  299. 'parameters' => [
  300. 'accountId' => [
  301. 'location' => 'path',
  302. 'type' => 'string',
  303. 'required' => true,
  304. ],
  305. 'linkId' => [
  306. 'location' => 'path',
  307. 'type' => 'string',
  308. 'required' => true,
  309. ],
  310. ],
  311. ],'insert' => [
  312. 'path' => 'management/accounts/{accountId}/entityUserLinks',
  313. 'httpMethod' => 'POST',
  314. 'parameters' => [
  315. 'accountId' => [
  316. 'location' => 'path',
  317. 'type' => 'string',
  318. 'required' => true,
  319. ],
  320. ],
  321. ],'list' => [
  322. 'path' => 'management/accounts/{accountId}/entityUserLinks',
  323. 'httpMethod' => 'GET',
  324. 'parameters' => [
  325. 'accountId' => [
  326. 'location' => 'path',
  327. 'type' => 'string',
  328. 'required' => true,
  329. ],
  330. 'max-results' => [
  331. 'location' => 'query',
  332. 'type' => 'integer',
  333. ],
  334. 'start-index' => [
  335. 'location' => 'query',
  336. 'type' => 'integer',
  337. ],
  338. ],
  339. ],'update' => [
  340. 'path' => 'management/accounts/{accountId}/entityUserLinks/{linkId}',
  341. 'httpMethod' => 'PUT',
  342. 'parameters' => [
  343. 'accountId' => [
  344. 'location' => 'path',
  345. 'type' => 'string',
  346. 'required' => true,
  347. ],
  348. 'linkId' => [
  349. 'location' => 'path',
  350. 'type' => 'string',
  351. 'required' => true,
  352. ],
  353. ],
  354. ],
  355. ]
  356. ]
  357. );
  358. $this->management_accounts = new Analytics\Resource\ManagementAccounts(
  359. $this,
  360. $this->serviceName,
  361. 'accounts',
  362. [
  363. 'methods' => [
  364. 'list' => [
  365. 'path' => 'management/accounts',
  366. 'httpMethod' => 'GET',
  367. 'parameters' => [
  368. 'max-results' => [
  369. 'location' => 'query',
  370. 'type' => 'integer',
  371. ],
  372. 'start-index' => [
  373. 'location' => 'query',
  374. 'type' => 'integer',
  375. ],
  376. ],
  377. ],
  378. ]
  379. ]
  380. );
  381. $this->management_clientId = new Analytics\Resource\ManagementClientId(
  382. $this,
  383. $this->serviceName,
  384. 'clientId',
  385. [
  386. 'methods' => [
  387. 'hashClientId' => [
  388. 'path' => 'management/clientId:hashClientId',
  389. 'httpMethod' => 'POST',
  390. 'parameters' => [],
  391. ],
  392. ]
  393. ]
  394. );
  395. $this->management_customDataSources = new Analytics\Resource\ManagementCustomDataSources(
  396. $this,
  397. $this->serviceName,
  398. 'customDataSources',
  399. [
  400. 'methods' => [
  401. 'list' => [
  402. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources',
  403. 'httpMethod' => 'GET',
  404. 'parameters' => [
  405. 'accountId' => [
  406. 'location' => 'path',
  407. 'type' => 'string',
  408. 'required' => true,
  409. ],
  410. 'webPropertyId' => [
  411. 'location' => 'path',
  412. 'type' => 'string',
  413. 'required' => true,
  414. ],
  415. 'max-results' => [
  416. 'location' => 'query',
  417. 'type' => 'integer',
  418. ],
  419. 'start-index' => [
  420. 'location' => 'query',
  421. 'type' => 'integer',
  422. ],
  423. ],
  424. ],
  425. ]
  426. ]
  427. );
  428. $this->management_customDimensions = new Analytics\Resource\ManagementCustomDimensions(
  429. $this,
  430. $this->serviceName,
  431. 'customDimensions',
  432. [
  433. 'methods' => [
  434. 'get' => [
  435. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}',
  436. 'httpMethod' => 'GET',
  437. 'parameters' => [
  438. 'accountId' => [
  439. 'location' => 'path',
  440. 'type' => 'string',
  441. 'required' => true,
  442. ],
  443. 'webPropertyId' => [
  444. 'location' => 'path',
  445. 'type' => 'string',
  446. 'required' => true,
  447. ],
  448. 'customDimensionId' => [
  449. 'location' => 'path',
  450. 'type' => 'string',
  451. 'required' => true,
  452. ],
  453. ],
  454. ],'insert' => [
  455. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions',
  456. 'httpMethod' => 'POST',
  457. 'parameters' => [
  458. 'accountId' => [
  459. 'location' => 'path',
  460. 'type' => 'string',
  461. 'required' => true,
  462. ],
  463. 'webPropertyId' => [
  464. 'location' => 'path',
  465. 'type' => 'string',
  466. 'required' => true,
  467. ],
  468. ],
  469. ],'list' => [
  470. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions',
  471. 'httpMethod' => 'GET',
  472. 'parameters' => [
  473. 'accountId' => [
  474. 'location' => 'path',
  475. 'type' => 'string',
  476. 'required' => true,
  477. ],
  478. 'webPropertyId' => [
  479. 'location' => 'path',
  480. 'type' => 'string',
  481. 'required' => true,
  482. ],
  483. 'max-results' => [
  484. 'location' => 'query',
  485. 'type' => 'integer',
  486. ],
  487. 'start-index' => [
  488. 'location' => 'query',
  489. 'type' => 'integer',
  490. ],
  491. ],
  492. ],'patch' => [
  493. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}',
  494. 'httpMethod' => 'PATCH',
  495. 'parameters' => [
  496. 'accountId' => [
  497. 'location' => 'path',
  498. 'type' => 'string',
  499. 'required' => true,
  500. ],
  501. 'webPropertyId' => [
  502. 'location' => 'path',
  503. 'type' => 'string',
  504. 'required' => true,
  505. ],
  506. 'customDimensionId' => [
  507. 'location' => 'path',
  508. 'type' => 'string',
  509. 'required' => true,
  510. ],
  511. 'ignoreCustomDataSourceLinks' => [
  512. 'location' => 'query',
  513. 'type' => 'boolean',
  514. ],
  515. ],
  516. ],'update' => [
  517. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}',
  518. 'httpMethod' => 'PUT',
  519. 'parameters' => [
  520. 'accountId' => [
  521. 'location' => 'path',
  522. 'type' => 'string',
  523. 'required' => true,
  524. ],
  525. 'webPropertyId' => [
  526. 'location' => 'path',
  527. 'type' => 'string',
  528. 'required' => true,
  529. ],
  530. 'customDimensionId' => [
  531. 'location' => 'path',
  532. 'type' => 'string',
  533. 'required' => true,
  534. ],
  535. 'ignoreCustomDataSourceLinks' => [
  536. 'location' => 'query',
  537. 'type' => 'boolean',
  538. ],
  539. ],
  540. ],
  541. ]
  542. ]
  543. );
  544. $this->management_customMetrics = new Analytics\Resource\ManagementCustomMetrics(
  545. $this,
  546. $this->serviceName,
  547. 'customMetrics',
  548. [
  549. 'methods' => [
  550. 'get' => [
  551. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}',
  552. 'httpMethod' => 'GET',
  553. 'parameters' => [
  554. 'accountId' => [
  555. 'location' => 'path',
  556. 'type' => 'string',
  557. 'required' => true,
  558. ],
  559. 'webPropertyId' => [
  560. 'location' => 'path',
  561. 'type' => 'string',
  562. 'required' => true,
  563. ],
  564. 'customMetricId' => [
  565. 'location' => 'path',
  566. 'type' => 'string',
  567. 'required' => true,
  568. ],
  569. ],
  570. ],'insert' => [
  571. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics',
  572. 'httpMethod' => 'POST',
  573. 'parameters' => [
  574. 'accountId' => [
  575. 'location' => 'path',
  576. 'type' => 'string',
  577. 'required' => true,
  578. ],
  579. 'webPropertyId' => [
  580. 'location' => 'path',
  581. 'type' => 'string',
  582. 'required' => true,
  583. ],
  584. ],
  585. ],'list' => [
  586. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics',
  587. 'httpMethod' => 'GET',
  588. 'parameters' => [
  589. 'accountId' => [
  590. 'location' => 'path',
  591. 'type' => 'string',
  592. 'required' => true,
  593. ],
  594. 'webPropertyId' => [
  595. 'location' => 'path',
  596. 'type' => 'string',
  597. 'required' => true,
  598. ],
  599. 'max-results' => [
  600. 'location' => 'query',
  601. 'type' => 'integer',
  602. ],
  603. 'start-index' => [
  604. 'location' => 'query',
  605. 'type' => 'integer',
  606. ],
  607. ],
  608. ],'patch' => [
  609. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}',
  610. 'httpMethod' => 'PATCH',
  611. 'parameters' => [
  612. 'accountId' => [
  613. 'location' => 'path',
  614. 'type' => 'string',
  615. 'required' => true,
  616. ],
  617. 'webPropertyId' => [
  618. 'location' => 'path',
  619. 'type' => 'string',
  620. 'required' => true,
  621. ],
  622. 'customMetricId' => [
  623. 'location' => 'path',
  624. 'type' => 'string',
  625. 'required' => true,
  626. ],
  627. 'ignoreCustomDataSourceLinks' => [
  628. 'location' => 'query',
  629. 'type' => 'boolean',
  630. ],
  631. ],
  632. ],'update' => [
  633. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}',
  634. 'httpMethod' => 'PUT',
  635. 'parameters' => [
  636. 'accountId' => [
  637. 'location' => 'path',
  638. 'type' => 'string',
  639. 'required' => true,
  640. ],
  641. 'webPropertyId' => [
  642. 'location' => 'path',
  643. 'type' => 'string',
  644. 'required' => true,
  645. ],
  646. 'customMetricId' => [
  647. 'location' => 'path',
  648. 'type' => 'string',
  649. 'required' => true,
  650. ],
  651. 'ignoreCustomDataSourceLinks' => [
  652. 'location' => 'query',
  653. 'type' => 'boolean',
  654. ],
  655. ],
  656. ],
  657. ]
  658. ]
  659. );
  660. $this->management_experiments = new Analytics\Resource\ManagementExperiments(
  661. $this,
  662. $this->serviceName,
  663. 'experiments',
  664. [
  665. 'methods' => [
  666. 'delete' => [
  667. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}',
  668. 'httpMethod' => 'DELETE',
  669. 'parameters' => [
  670. 'accountId' => [
  671. 'location' => 'path',
  672. 'type' => 'string',
  673. 'required' => true,
  674. ],
  675. 'webPropertyId' => [
  676. 'location' => 'path',
  677. 'type' => 'string',
  678. 'required' => true,
  679. ],
  680. 'profileId' => [
  681. 'location' => 'path',
  682. 'type' => 'string',
  683. 'required' => true,
  684. ],
  685. 'experimentId' => [
  686. 'location' => 'path',
  687. 'type' => 'string',
  688. 'required' => true,
  689. ],
  690. ],
  691. ],'get' => [
  692. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}',
  693. 'httpMethod' => 'GET',
  694. 'parameters' => [
  695. 'accountId' => [
  696. 'location' => 'path',
  697. 'type' => 'string',
  698. 'required' => true,
  699. ],
  700. 'webPropertyId' => [
  701. 'location' => 'path',
  702. 'type' => 'string',
  703. 'required' => true,
  704. ],
  705. 'profileId' => [
  706. 'location' => 'path',
  707. 'type' => 'string',
  708. 'required' => true,
  709. ],
  710. 'experimentId' => [
  711. 'location' => 'path',
  712. 'type' => 'string',
  713. 'required' => true,
  714. ],
  715. ],
  716. ],'insert' => [
  717. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments',
  718. 'httpMethod' => 'POST',
  719. 'parameters' => [
  720. 'accountId' => [
  721. 'location' => 'path',
  722. 'type' => 'string',
  723. 'required' => true,
  724. ],
  725. 'webPropertyId' => [
  726. 'location' => 'path',
  727. 'type' => 'string',
  728. 'required' => true,
  729. ],
  730. 'profileId' => [
  731. 'location' => 'path',
  732. 'type' => 'string',
  733. 'required' => true,
  734. ],
  735. ],
  736. ],'list' => [
  737. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments',
  738. 'httpMethod' => 'GET',
  739. 'parameters' => [
  740. 'accountId' => [
  741. 'location' => 'path',
  742. 'type' => 'string',
  743. 'required' => true,
  744. ],
  745. 'webPropertyId' => [
  746. 'location' => 'path',
  747. 'type' => 'string',
  748. 'required' => true,
  749. ],
  750. 'profileId' => [
  751. 'location' => 'path',
  752. 'type' => 'string',
  753. 'required' => true,
  754. ],
  755. 'max-results' => [
  756. 'location' => 'query',
  757. 'type' => 'integer',
  758. ],
  759. 'start-index' => [
  760. 'location' => 'query',
  761. 'type' => 'integer',
  762. ],
  763. ],
  764. ],'patch' => [
  765. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}',
  766. 'httpMethod' => 'PATCH',
  767. 'parameters' => [
  768. 'accountId' => [
  769. 'location' => 'path',
  770. 'type' => 'string',
  771. 'required' => true,
  772. ],
  773. 'webPropertyId' => [
  774. 'location' => 'path',
  775. 'type' => 'string',
  776. 'required' => true,
  777. ],
  778. 'profileId' => [
  779. 'location' => 'path',
  780. 'type' => 'string',
  781. 'required' => true,
  782. ],
  783. 'experimentId' => [
  784. 'location' => 'path',
  785. 'type' => 'string',
  786. 'required' => true,
  787. ],
  788. ],
  789. ],'update' => [
  790. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}',
  791. 'httpMethod' => 'PUT',
  792. 'parameters' => [
  793. 'accountId' => [
  794. 'location' => 'path',
  795. 'type' => 'string',
  796. 'required' => true,
  797. ],
  798. 'webPropertyId' => [
  799. 'location' => 'path',
  800. 'type' => 'string',
  801. 'required' => true,
  802. ],
  803. 'profileId' => [
  804. 'location' => 'path',
  805. 'type' => 'string',
  806. 'required' => true,
  807. ],
  808. 'experimentId' => [
  809. 'location' => 'path',
  810. 'type' => 'string',
  811. 'required' => true,
  812. ],
  813. ],
  814. ],
  815. ]
  816. ]
  817. );
  818. $this->management_filters = new Analytics\Resource\ManagementFilters(
  819. $this,
  820. $this->serviceName,
  821. 'filters',
  822. [
  823. 'methods' => [
  824. 'delete' => [
  825. 'path' => 'management/accounts/{accountId}/filters/{filterId}',
  826. 'httpMethod' => 'DELETE',
  827. 'parameters' => [
  828. 'accountId' => [
  829. 'location' => 'path',
  830. 'type' => 'string',
  831. 'required' => true,
  832. ],
  833. 'filterId' => [
  834. 'location' => 'path',
  835. 'type' => 'string',
  836. 'required' => true,
  837. ],
  838. ],
  839. ],'get' => [
  840. 'path' => 'management/accounts/{accountId}/filters/{filterId}',
  841. 'httpMethod' => 'GET',
  842. 'parameters' => [
  843. 'accountId' => [
  844. 'location' => 'path',
  845. 'type' => 'string',
  846. 'required' => true,
  847. ],
  848. 'filterId' => [
  849. 'location' => 'path',
  850. 'type' => 'string',
  851. 'required' => true,
  852. ],
  853. ],
  854. ],'insert' => [
  855. 'path' => 'management/accounts/{accountId}/filters',
  856. 'httpMethod' => 'POST',
  857. 'parameters' => [
  858. 'accountId' => [
  859. 'location' => 'path',
  860. 'type' => 'string',
  861. 'required' => true,
  862. ],
  863. ],
  864. ],'list' => [
  865. 'path' => 'management/accounts/{accountId}/filters',
  866. 'httpMethod' => 'GET',
  867. 'parameters' => [
  868. 'accountId' => [
  869. 'location' => 'path',
  870. 'type' => 'string',
  871. 'required' => true,
  872. ],
  873. 'max-results' => [
  874. 'location' => 'query',
  875. 'type' => 'integer',
  876. ],
  877. 'start-index' => [
  878. 'location' => 'query',
  879. 'type' => 'integer',
  880. ],
  881. ],
  882. ],'patch' => [
  883. 'path' => 'management/accounts/{accountId}/filters/{filterId}',
  884. 'httpMethod' => 'PATCH',
  885. 'parameters' => [
  886. 'accountId' => [
  887. 'location' => 'path',
  888. 'type' => 'string',
  889. 'required' => true,
  890. ],
  891. 'filterId' => [
  892. 'location' => 'path',
  893. 'type' => 'string',
  894. 'required' => true,
  895. ],
  896. ],
  897. ],'update' => [
  898. 'path' => 'management/accounts/{accountId}/filters/{filterId}',
  899. 'httpMethod' => 'PUT',
  900. 'parameters' => [
  901. 'accountId' => [
  902. 'location' => 'path',
  903. 'type' => 'string',
  904. 'required' => true,
  905. ],
  906. 'filterId' => [
  907. 'location' => 'path',
  908. 'type' => 'string',
  909. 'required' => true,
  910. ],
  911. ],
  912. ],
  913. ]
  914. ]
  915. );
  916. $this->management_goals = new Analytics\Resource\ManagementGoals(
  917. $this,
  918. $this->serviceName,
  919. 'goals',
  920. [
  921. 'methods' => [
  922. 'get' => [
  923. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}',
  924. 'httpMethod' => 'GET',
  925. 'parameters' => [
  926. 'accountId' => [
  927. 'location' => 'path',
  928. 'type' => 'string',
  929. 'required' => true,
  930. ],
  931. 'webPropertyId' => [
  932. 'location' => 'path',
  933. 'type' => 'string',
  934. 'required' => true,
  935. ],
  936. 'profileId' => [
  937. 'location' => 'path',
  938. 'type' => 'string',
  939. 'required' => true,
  940. ],
  941. 'goalId' => [
  942. 'location' => 'path',
  943. 'type' => 'string',
  944. 'required' => true,
  945. ],
  946. ],
  947. ],'insert' => [
  948. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals',
  949. 'httpMethod' => 'POST',
  950. 'parameters' => [
  951. 'accountId' => [
  952. 'location' => 'path',
  953. 'type' => 'string',
  954. 'required' => true,
  955. ],
  956. 'webPropertyId' => [
  957. 'location' => 'path',
  958. 'type' => 'string',
  959. 'required' => true,
  960. ],
  961. 'profileId' => [
  962. 'location' => 'path',
  963. 'type' => 'string',
  964. 'required' => true,
  965. ],
  966. ],
  967. ],'list' => [
  968. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals',
  969. 'httpMethod' => 'GET',
  970. 'parameters' => [
  971. 'accountId' => [
  972. 'location' => 'path',
  973. 'type' => 'string',
  974. 'required' => true,
  975. ],
  976. 'webPropertyId' => [
  977. 'location' => 'path',
  978. 'type' => 'string',
  979. 'required' => true,
  980. ],
  981. 'profileId' => [
  982. 'location' => 'path',
  983. 'type' => 'string',
  984. 'required' => true,
  985. ],
  986. 'max-results' => [
  987. 'location' => 'query',
  988. 'type' => 'integer',
  989. ],
  990. 'start-index' => [
  991. 'location' => 'query',
  992. 'type' => 'integer',
  993. ],
  994. ],
  995. ],'patch' => [
  996. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}',
  997. 'httpMethod' => 'PATCH',
  998. 'parameters' => [
  999. 'accountId' => [
  1000. 'location' => 'path',
  1001. 'type' => 'string',
  1002. 'required' => true,
  1003. ],
  1004. 'webPropertyId' => [
  1005. 'location' => 'path',
  1006. 'type' => 'string',
  1007. 'required' => true,
  1008. ],
  1009. 'profileId' => [
  1010. 'location' => 'path',
  1011. 'type' => 'string',
  1012. 'required' => true,
  1013. ],
  1014. 'goalId' => [
  1015. 'location' => 'path',
  1016. 'type' => 'string',
  1017. 'required' => true,
  1018. ],
  1019. ],
  1020. ],'update' => [
  1021. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}',
  1022. 'httpMethod' => 'PUT',
  1023. 'parameters' => [
  1024. 'accountId' => [
  1025. 'location' => 'path',
  1026. 'type' => 'string',
  1027. 'required' => true,
  1028. ],
  1029. 'webPropertyId' => [
  1030. 'location' => 'path',
  1031. 'type' => 'string',
  1032. 'required' => true,
  1033. ],
  1034. 'profileId' => [
  1035. 'location' => 'path',
  1036. 'type' => 'string',
  1037. 'required' => true,
  1038. ],
  1039. 'goalId' => [
  1040. 'location' => 'path',
  1041. 'type' => 'string',
  1042. 'required' => true,
  1043. ],
  1044. ],
  1045. ],
  1046. ]
  1047. ]
  1048. );
  1049. $this->management_profileFilterLinks = new Analytics\Resource\ManagementProfileFilterLinks(
  1050. $this,
  1051. $this->serviceName,
  1052. 'profileFilterLinks',
  1053. [
  1054. 'methods' => [
  1055. 'delete' => [
  1056. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}',
  1057. 'httpMethod' => 'DELETE',
  1058. 'parameters' => [
  1059. 'accountId' => [
  1060. 'location' => 'path',
  1061. 'type' => 'string',
  1062. 'required' => true,
  1063. ],
  1064. 'webPropertyId' => [
  1065. 'location' => 'path',
  1066. 'type' => 'string',
  1067. 'required' => true,
  1068. ],
  1069. 'profileId' => [
  1070. 'location' => 'path',
  1071. 'type' => 'string',
  1072. 'required' => true,
  1073. ],
  1074. 'linkId' => [
  1075. 'location' => 'path',
  1076. 'type' => 'string',
  1077. 'required' => true,
  1078. ],
  1079. ],
  1080. ],'get' => [
  1081. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}',
  1082. 'httpMethod' => 'GET',
  1083. 'parameters' => [
  1084. 'accountId' => [
  1085. 'location' => 'path',
  1086. 'type' => 'string',
  1087. 'required' => true,
  1088. ],
  1089. 'webPropertyId' => [
  1090. 'location' => 'path',
  1091. 'type' => 'string',
  1092. 'required' => true,
  1093. ],
  1094. 'profileId' => [
  1095. 'location' => 'path',
  1096. 'type' => 'string',
  1097. 'required' => true,
  1098. ],
  1099. 'linkId' => [
  1100. 'location' => 'path',
  1101. 'type' => 'string',
  1102. 'required' => true,
  1103. ],
  1104. ],
  1105. ],'insert' => [
  1106. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks',
  1107. 'httpMethod' => 'POST',
  1108. 'parameters' => [
  1109. 'accountId' => [
  1110. 'location' => 'path',
  1111. 'type' => 'string',
  1112. 'required' => true,
  1113. ],
  1114. 'webPropertyId' => [
  1115. 'location' => 'path',
  1116. 'type' => 'string',
  1117. 'required' => true,
  1118. ],
  1119. 'profileId' => [
  1120. 'location' => 'path',
  1121. 'type' => 'string',
  1122. 'required' => true,
  1123. ],
  1124. ],
  1125. ],'list' => [
  1126. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks',
  1127. 'httpMethod' => 'GET',
  1128. 'parameters' => [
  1129. 'accountId' => [
  1130. 'location' => 'path',
  1131. 'type' => 'string',
  1132. 'required' => true,
  1133. ],
  1134. 'webPropertyId' => [
  1135. 'location' => 'path',
  1136. 'type' => 'string',
  1137. 'required' => true,
  1138. ],
  1139. 'profileId' => [
  1140. 'location' => 'path',
  1141. 'type' => 'string',
  1142. 'required' => true,
  1143. ],
  1144. 'max-results' => [
  1145. 'location' => 'query',
  1146. 'type' => 'integer',
  1147. ],
  1148. 'start-index' => [
  1149. 'location' => 'query',
  1150. 'type' => 'integer',
  1151. ],
  1152. ],
  1153. ],'patch' => [
  1154. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}',
  1155. 'httpMethod' => 'PATCH',
  1156. 'parameters' => [
  1157. 'accountId' => [
  1158. 'location' => 'path',
  1159. 'type' => 'string',
  1160. 'required' => true,
  1161. ],
  1162. 'webPropertyId' => [
  1163. 'location' => 'path',
  1164. 'type' => 'string',
  1165. 'required' => true,
  1166. ],
  1167. 'profileId' => [
  1168. 'location' => 'path',
  1169. 'type' => 'string',
  1170. 'required' => true,
  1171. ],
  1172. 'linkId' => [
  1173. 'location' => 'path',
  1174. 'type' => 'string',
  1175. 'required' => true,
  1176. ],
  1177. ],
  1178. ],'update' => [
  1179. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}',
  1180. 'httpMethod' => 'PUT',
  1181. 'parameters' => [
  1182. 'accountId' => [
  1183. 'location' => 'path',
  1184. 'type' => 'string',
  1185. 'required' => true,
  1186. ],
  1187. 'webPropertyId' => [
  1188. 'location' => 'path',
  1189. 'type' => 'string',
  1190. 'required' => true,
  1191. ],
  1192. 'profileId' => [
  1193. 'location' => 'path',
  1194. 'type' => 'string',
  1195. 'required' => true,
  1196. ],
  1197. 'linkId' => [
  1198. 'location' => 'path',
  1199. 'type' => 'string',
  1200. 'required' => true,
  1201. ],
  1202. ],
  1203. ],
  1204. ]
  1205. ]
  1206. );
  1207. $this->management_profileUserLinks = new Analytics\Resource\ManagementProfileUserLinks(
  1208. $this,
  1209. $this->serviceName,
  1210. 'profileUserLinks',
  1211. [
  1212. 'methods' => [
  1213. 'delete' => [
  1214. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}',
  1215. 'httpMethod' => 'DELETE',
  1216. 'parameters' => [
  1217. 'accountId' => [
  1218. 'location' => 'path',
  1219. 'type' => 'string',
  1220. 'required' => true,
  1221. ],
  1222. 'webPropertyId' => [
  1223. 'location' => 'path',
  1224. 'type' => 'string',
  1225. 'required' => true,
  1226. ],
  1227. 'profileId' => [
  1228. 'location' => 'path',
  1229. 'type' => 'string',
  1230. 'required' => true,
  1231. ],
  1232. 'linkId' => [
  1233. 'location' => 'path',
  1234. 'type' => 'string',
  1235. 'required' => true,
  1236. ],
  1237. ],
  1238. ],'insert' => [
  1239. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks',
  1240. 'httpMethod' => 'POST',
  1241. 'parameters' => [
  1242. 'accountId' => [
  1243. 'location' => 'path',
  1244. 'type' => 'string',
  1245. 'required' => true,
  1246. ],
  1247. 'webPropertyId' => [
  1248. 'location' => 'path',
  1249. 'type' => 'string',
  1250. 'required' => true,
  1251. ],
  1252. 'profileId' => [
  1253. 'location' => 'path',
  1254. 'type' => 'string',
  1255. 'required' => true,
  1256. ],
  1257. ],
  1258. ],'list' => [
  1259. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks',
  1260. 'httpMethod' => 'GET',
  1261. 'parameters' => [
  1262. 'accountId' => [
  1263. 'location' => 'path',
  1264. 'type' => 'string',
  1265. 'required' => true,
  1266. ],
  1267. 'webPropertyId' => [
  1268. 'location' => 'path',
  1269. 'type' => 'string',
  1270. 'required' => true,
  1271. ],
  1272. 'profileId' => [
  1273. 'location' => 'path',
  1274. 'type' => 'string',
  1275. 'required' => true,
  1276. ],
  1277. 'max-results' => [
  1278. 'location' => 'query',
  1279. 'type' => 'integer',
  1280. ],
  1281. 'start-index' => [
  1282. 'location' => 'query',
  1283. 'type' => 'integer',
  1284. ],
  1285. ],
  1286. ],'update' => [
  1287. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}',
  1288. 'httpMethod' => 'PUT',
  1289. 'parameters' => [
  1290. 'accountId' => [
  1291. 'location' => 'path',
  1292. 'type' => 'string',
  1293. 'required' => true,
  1294. ],
  1295. 'webPropertyId' => [
  1296. 'location' => 'path',
  1297. 'type' => 'string',
  1298. 'required' => true,
  1299. ],
  1300. 'profileId' => [
  1301. 'location' => 'path',
  1302. 'type' => 'string',
  1303. 'required' => true,
  1304. ],
  1305. 'linkId' => [
  1306. 'location' => 'path',
  1307. 'type' => 'string',
  1308. 'required' => true,
  1309. ],
  1310. ],
  1311. ],
  1312. ]
  1313. ]
  1314. );
  1315. $this->management_profiles = new Analytics\Resource\ManagementProfiles(
  1316. $this,
  1317. $this->serviceName,
  1318. 'profiles',
  1319. [
  1320. 'methods' => [
  1321. 'delete' => [
  1322. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}',
  1323. 'httpMethod' => 'DELETE',
  1324. 'parameters' => [
  1325. 'accountId' => [
  1326. 'location' => 'path',
  1327. 'type' => 'string',
  1328. 'required' => true,
  1329. ],
  1330. 'webPropertyId' => [
  1331. 'location' => 'path',
  1332. 'type' => 'string',
  1333. 'required' => true,
  1334. ],
  1335. 'profileId' => [
  1336. 'location' => 'path',
  1337. 'type' => 'string',
  1338. 'required' => true,
  1339. ],
  1340. ],
  1341. ],'get' => [
  1342. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}',
  1343. 'httpMethod' => 'GET',
  1344. 'parameters' => [
  1345. 'accountId' => [
  1346. 'location' => 'path',
  1347. 'type' => 'string',
  1348. 'required' => true,
  1349. ],
  1350. 'webPropertyId' => [
  1351. 'location' => 'path',
  1352. 'type' => 'string',
  1353. 'required' => true,
  1354. ],
  1355. 'profileId' => [
  1356. 'location' => 'path',
  1357. 'type' => 'string',
  1358. 'required' => true,
  1359. ],
  1360. ],
  1361. ],'insert' => [
  1362. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles',
  1363. 'httpMethod' => 'POST',
  1364. 'parameters' => [
  1365. 'accountId' => [
  1366. 'location' => 'path',
  1367. 'type' => 'string',
  1368. 'required' => true,
  1369. ],
  1370. 'webPropertyId' => [
  1371. 'location' => 'path',
  1372. 'type' => 'string',
  1373. 'required' => true,
  1374. ],
  1375. ],
  1376. ],'list' => [
  1377. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles',
  1378. 'httpMethod' => 'GET',
  1379. 'parameters' => [
  1380. 'accountId' => [
  1381. 'location' => 'path',
  1382. 'type' => 'string',
  1383. 'required' => true,
  1384. ],
  1385. 'webPropertyId' => [
  1386. 'location' => 'path',
  1387. 'type' => 'string',
  1388. 'required' => true,
  1389. ],
  1390. 'max-results' => [
  1391. 'location' => 'query',
  1392. 'type' => 'integer',
  1393. ],
  1394. 'start-index' => [
  1395. 'location' => 'query',
  1396. 'type' => 'integer',
  1397. ],
  1398. ],
  1399. ],'patch' => [
  1400. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}',
  1401. 'httpMethod' => 'PATCH',
  1402. 'parameters' => [
  1403. 'accountId' => [
  1404. 'location' => 'path',
  1405. 'type' => 'string',
  1406. 'required' => true,
  1407. ],
  1408. 'webPropertyId' => [
  1409. 'location' => 'path',
  1410. 'type' => 'string',
  1411. 'required' => true,
  1412. ],
  1413. 'profileId' => [
  1414. 'location' => 'path',
  1415. 'type' => 'string',
  1416. 'required' => true,
  1417. ],
  1418. ],
  1419. ],'update' => [
  1420. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}',
  1421. 'httpMethod' => 'PUT',
  1422. 'parameters' => [
  1423. 'accountId' => [
  1424. 'location' => 'path',
  1425. 'type' => 'string',
  1426. 'required' => true,
  1427. ],
  1428. 'webPropertyId' => [
  1429. 'location' => 'path',
  1430. 'type' => 'string',
  1431. 'required' => true,
  1432. ],
  1433. 'profileId' => [
  1434. 'location' => 'path',
  1435. 'type' => 'string',
  1436. 'required' => true,
  1437. ],
  1438. ],
  1439. ],
  1440. ]
  1441. ]
  1442. );
  1443. $this->management_remarketingAudience = new Analytics\Resource\ManagementRemarketingAudience(
  1444. $this,
  1445. $this->serviceName,
  1446. 'remarketingAudience',
  1447. [
  1448. 'methods' => [
  1449. 'delete' => [
  1450. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}',
  1451. 'httpMethod' => 'DELETE',
  1452. 'parameters' => [
  1453. 'accountId' => [
  1454. 'location' => 'path',
  1455. 'type' => 'string',
  1456. 'required' => true,
  1457. ],
  1458. 'webPropertyId' => [
  1459. 'location' => 'path',
  1460. 'type' => 'string',
  1461. 'required' => true,
  1462. ],
  1463. 'remarketingAudienceId' => [
  1464. 'location' => 'path',
  1465. 'type' => 'string',
  1466. 'required' => true,
  1467. ],
  1468. ],
  1469. ],'get' => [
  1470. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}',
  1471. 'httpMethod' => 'GET',
  1472. 'parameters' => [
  1473. 'accountId' => [
  1474. 'location' => 'path',
  1475. 'type' => 'string',
  1476. 'required' => true,
  1477. ],
  1478. 'webPropertyId' => [
  1479. 'location' => 'path',
  1480. 'type' => 'string',
  1481. 'required' => true,
  1482. ],
  1483. 'remarketingAudienceId' => [
  1484. 'location' => 'path',
  1485. 'type' => 'string',
  1486. 'required' => true,
  1487. ],
  1488. ],
  1489. ],'insert' => [
  1490. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences',
  1491. 'httpMethod' => 'POST',
  1492. 'parameters' => [
  1493. 'accountId' => [
  1494. 'location' => 'path',
  1495. 'type' => 'string',
  1496. 'required' => true,
  1497. ],
  1498. 'webPropertyId' => [
  1499. 'location' => 'path',
  1500. 'type' => 'string',
  1501. 'required' => true,
  1502. ],
  1503. ],
  1504. ],'list' => [
  1505. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences',
  1506. 'httpMethod' => 'GET',
  1507. 'parameters' => [
  1508. 'accountId' => [
  1509. 'location' => 'path',
  1510. 'type' => 'string',
  1511. 'required' => true,
  1512. ],
  1513. 'webPropertyId' => [
  1514. 'location' => 'path',
  1515. 'type' => 'string',
  1516. 'required' => true,
  1517. ],
  1518. 'max-results' => [
  1519. 'location' => 'query',
  1520. 'type' => 'integer',
  1521. ],
  1522. 'start-index' => [
  1523. 'location' => 'query',
  1524. 'type' => 'integer',
  1525. ],
  1526. 'type' => [
  1527. 'location' => 'query',
  1528. 'type' => 'string',
  1529. ],
  1530. ],
  1531. ],'patch' => [
  1532. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}',
  1533. 'httpMethod' => 'PATCH',
  1534. 'parameters' => [
  1535. 'accountId' => [
  1536. 'location' => 'path',
  1537. 'type' => 'string',
  1538. 'required' => true,
  1539. ],
  1540. 'webPropertyId' => [
  1541. 'location' => 'path',
  1542. 'type' => 'string',
  1543. 'required' => true,
  1544. ],
  1545. 'remarketingAudienceId' => [
  1546. 'location' => 'path',
  1547. 'type' => 'string',
  1548. 'required' => true,
  1549. ],
  1550. ],
  1551. ],'update' => [
  1552. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}',
  1553. 'httpMethod' => 'PUT',
  1554. 'parameters' => [
  1555. 'accountId' => [
  1556. 'location' => 'path',
  1557. 'type' => 'string',
  1558. 'required' => true,
  1559. ],
  1560. 'webPropertyId' => [
  1561. 'location' => 'path',
  1562. 'type' => 'string',
  1563. 'required' => true,
  1564. ],
  1565. 'remarketingAudienceId' => [
  1566. 'location' => 'path',
  1567. 'type' => 'string',
  1568. 'required' => true,
  1569. ],
  1570. ],
  1571. ],
  1572. ]
  1573. ]
  1574. );
  1575. $this->management_segments = new Analytics\Resource\ManagementSegments(
  1576. $this,
  1577. $this->serviceName,
  1578. 'segments',
  1579. [
  1580. 'methods' => [
  1581. 'list' => [
  1582. 'path' => 'management/segments',
  1583. 'httpMethod' => 'GET',
  1584. 'parameters' => [
  1585. 'max-results' => [
  1586. 'location' => 'query',
  1587. 'type' => 'integer',
  1588. ],
  1589. 'start-index' => [
  1590. 'location' => 'query',
  1591. 'type' => 'integer',
  1592. ],
  1593. ],
  1594. ],
  1595. ]
  1596. ]
  1597. );
  1598. $this->management_unsampledReports = new Analytics\Resource\ManagementUnsampledReports(
  1599. $this,
  1600. $this->serviceName,
  1601. 'unsampledReports',
  1602. [
  1603. 'methods' => [
  1604. 'delete' => [
  1605. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}',
  1606. 'httpMethod' => 'DELETE',
  1607. 'parameters' => [
  1608. 'accountId' => [
  1609. 'location' => 'path',
  1610. 'type' => 'string',
  1611. 'required' => true,
  1612. ],
  1613. 'webPropertyId' => [
  1614. 'location' => 'path',
  1615. 'type' => 'string',
  1616. 'required' => true,
  1617. ],
  1618. 'profileId' => [
  1619. 'location' => 'path',
  1620. 'type' => 'string',
  1621. 'required' => true,
  1622. ],
  1623. 'unsampledReportId' => [
  1624. 'location' => 'path',
  1625. 'type' => 'string',
  1626. 'required' => true,
  1627. ],
  1628. ],
  1629. ],'get' => [
  1630. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}',
  1631. 'httpMethod' => 'GET',
  1632. 'parameters' => [
  1633. 'accountId' => [
  1634. 'location' => 'path',
  1635. 'type' => 'string',
  1636. 'required' => true,
  1637. ],
  1638. 'webPropertyId' => [
  1639. 'location' => 'path',
  1640. 'type' => 'string',
  1641. 'required' => true,
  1642. ],
  1643. 'profileId' => [
  1644. 'location' => 'path',
  1645. 'type' => 'string',
  1646. 'required' => true,
  1647. ],
  1648. 'unsampledReportId' => [
  1649. 'location' => 'path',
  1650. 'type' => 'string',
  1651. 'required' => true,
  1652. ],
  1653. ],
  1654. ],'insert' => [
  1655. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports',
  1656. 'httpMethod' => 'POST',
  1657. 'parameters' => [
  1658. 'accountId' => [
  1659. 'location' => 'path',
  1660. 'type' => 'string',
  1661. 'required' => true,
  1662. ],
  1663. 'webPropertyId' => [
  1664. 'location' => 'path',
  1665. 'type' => 'string',
  1666. 'required' => true,
  1667. ],
  1668. 'profileId' => [
  1669. 'location' => 'path',
  1670. 'type' => 'string',
  1671. 'required' => true,
  1672. ],
  1673. ],
  1674. ],'list' => [
  1675. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports',
  1676. 'httpMethod' => 'GET',
  1677. 'parameters' => [
  1678. 'accountId' => [
  1679. 'location' => 'path',
  1680. 'type' => 'string',
  1681. 'required' => true,
  1682. ],
  1683. 'webPropertyId' => [
  1684. 'location' => 'path',
  1685. 'type' => 'string',
  1686. 'required' => true,
  1687. ],
  1688. 'profileId' => [
  1689. 'location' => 'path',
  1690. 'type' => 'string',
  1691. 'required' => true,
  1692. ],
  1693. 'max-results' => [
  1694. 'location' => 'query',
  1695. 'type' => 'integer',
  1696. ],
  1697. 'start-index' => [
  1698. 'location' => 'query',
  1699. 'type' => 'integer',
  1700. ],
  1701. ],
  1702. ],
  1703. ]
  1704. ]
  1705. );
  1706. $this->management_uploads = new Analytics\Resource\ManagementUploads(
  1707. $this,
  1708. $this->serviceName,
  1709. 'uploads',
  1710. [
  1711. 'methods' => [
  1712. 'deleteUploadData' => [
  1713. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData',
  1714. 'httpMethod' => 'POST',
  1715. 'parameters' => [
  1716. 'accountId' => [
  1717. 'location' => 'path',
  1718. 'type' => 'string',
  1719. 'required' => true,
  1720. ],
  1721. 'webPropertyId' => [
  1722. 'location' => 'path',
  1723. 'type' => 'string',
  1724. 'required' => true,
  1725. ],
  1726. 'customDataSourceId' => [
  1727. 'location' => 'path',
  1728. 'type' => 'string',
  1729. 'required' => true,
  1730. ],
  1731. ],
  1732. ],'get' => [
  1733. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}',
  1734. 'httpMethod' => 'GET',
  1735. 'parameters' => [
  1736. 'accountId' => [
  1737. 'location' => 'path',
  1738. 'type' => 'string',
  1739. 'required' => true,
  1740. ],
  1741. 'webPropertyId' => [
  1742. 'location' => 'path',
  1743. 'type' => 'string',
  1744. 'required' => true,
  1745. ],
  1746. 'customDataSourceId' => [
  1747. 'location' => 'path',
  1748. 'type' => 'string',
  1749. 'required' => true,
  1750. ],
  1751. 'uploadId' => [
  1752. 'location' => 'path',
  1753. 'type' => 'string',
  1754. 'required' => true,
  1755. ],
  1756. ],
  1757. ],'list' => [
  1758. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads',
  1759. 'httpMethod' => 'GET',
  1760. 'parameters' => [
  1761. 'accountId' => [
  1762. 'location' => 'path',
  1763. 'type' => 'string',
  1764. 'required' => true,
  1765. ],
  1766. 'webPropertyId' => [
  1767. 'location' => 'path',
  1768. 'type' => 'string',
  1769. 'required' => true,
  1770. ],
  1771. 'customDataSourceId' => [
  1772. 'location' => 'path',
  1773. 'type' => 'string',
  1774. 'required' => true,
  1775. ],
  1776. 'max-results' => [
  1777. 'location' => 'query',
  1778. 'type' => 'integer',
  1779. ],
  1780. 'start-index' => [
  1781. 'location' => 'query',
  1782. 'type' => 'integer',
  1783. ],
  1784. ],
  1785. ],'uploadData' => [
  1786. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads',
  1787. 'httpMethod' => 'POST',
  1788. 'parameters' => [
  1789. 'accountId' => [
  1790. 'location' => 'path',
  1791. 'type' => 'string',
  1792. 'required' => true,
  1793. ],
  1794. 'webPropertyId' => [
  1795. 'location' => 'path',
  1796. 'type' => 'string',
  1797. 'required' => true,
  1798. ],
  1799. 'customDataSourceId' => [
  1800. 'location' => 'path',
  1801. 'type' => 'string',
  1802. 'required' => true,
  1803. ],
  1804. ],
  1805. ],
  1806. ]
  1807. ]
  1808. );
  1809. $this->management_webPropertyAdWordsLinks = new Analytics\Resource\ManagementWebPropertyAdWordsLinks(
  1810. $this,
  1811. $this->serviceName,
  1812. 'webPropertyAdWordsLinks',
  1813. [
  1814. 'methods' => [
  1815. 'delete' => [
  1816. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}',
  1817. 'httpMethod' => 'DELETE',
  1818. 'parameters' => [
  1819. 'accountId' => [
  1820. 'location' => 'path',
  1821. 'type' => 'string',
  1822. 'required' => true,
  1823. ],
  1824. 'webPropertyId' => [
  1825. 'location' => 'path',
  1826. 'type' => 'string',
  1827. 'required' => true,
  1828. ],
  1829. 'webPropertyAdWordsLinkId' => [
  1830. 'location' => 'path',
  1831. 'type' => 'string',
  1832. 'required' => true,
  1833. ],
  1834. ],
  1835. ],'get' => [
  1836. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}',
  1837. 'httpMethod' => 'GET',
  1838. 'parameters' => [
  1839. 'accountId' => [
  1840. 'location' => 'path',
  1841. 'type' => 'string',
  1842. 'required' => true,
  1843. ],
  1844. 'webPropertyId' => [
  1845. 'location' => 'path',
  1846. 'type' => 'string',
  1847. 'required' => true,
  1848. ],
  1849. 'webPropertyAdWordsLinkId' => [
  1850. 'location' => 'path',
  1851. 'type' => 'string',
  1852. 'required' => true,
  1853. ],
  1854. ],
  1855. ],'insert' => [
  1856. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks',
  1857. 'httpMethod' => 'POST',
  1858. 'parameters' => [
  1859. 'accountId' => [
  1860. 'location' => 'path',
  1861. 'type' => 'string',
  1862. 'required' => true,
  1863. ],
  1864. 'webPropertyId' => [
  1865. 'location' => 'path',
  1866. 'type' => 'string',
  1867. 'required' => true,
  1868. ],
  1869. ],
  1870. ],'list' => [
  1871. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks',
  1872. 'httpMethod' => 'GET',
  1873. 'parameters' => [
  1874. 'accountId' => [
  1875. 'location' => 'path',
  1876. 'type' => 'string',
  1877. 'required' => true,
  1878. ],
  1879. 'webPropertyId' => [
  1880. 'location' => 'path',
  1881. 'type' => 'string',
  1882. 'required' => true,
  1883. ],
  1884. 'max-results' => [
  1885. 'location' => 'query',
  1886. 'type' => 'integer',
  1887. ],
  1888. 'start-index' => [
  1889. 'location' => 'query',
  1890. 'type' => 'integer',
  1891. ],
  1892. ],
  1893. ],'patch' => [
  1894. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}',
  1895. 'httpMethod' => 'PATCH',
  1896. 'parameters' => [
  1897. 'accountId' => [
  1898. 'location' => 'path',
  1899. 'type' => 'string',
  1900. 'required' => true,
  1901. ],
  1902. 'webPropertyId' => [
  1903. 'location' => 'path',
  1904. 'type' => 'string',
  1905. 'required' => true,
  1906. ],
  1907. 'webPropertyAdWordsLinkId' => [
  1908. 'location' => 'path',
  1909. 'type' => 'string',
  1910. 'required' => true,
  1911. ],
  1912. ],
  1913. ],'update' => [
  1914. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}',
  1915. 'httpMethod' => 'PUT',
  1916. 'parameters' => [
  1917. 'accountId' => [
  1918. 'location' => 'path',
  1919. 'type' => 'string',
  1920. 'required' => true,
  1921. ],
  1922. 'webPropertyId' => [
  1923. 'location' => 'path',
  1924. 'type' => 'string',
  1925. 'required' => true,
  1926. ],
  1927. 'webPropertyAdWordsLinkId' => [
  1928. 'location' => 'path',
  1929. 'type' => 'string',
  1930. 'required' => true,
  1931. ],
  1932. ],
  1933. ],
  1934. ]
  1935. ]
  1936. );
  1937. $this->management_webproperties = new Analytics\Resource\ManagementWebproperties(
  1938. $this,
  1939. $this->serviceName,
  1940. 'webproperties',
  1941. [
  1942. 'methods' => [
  1943. 'get' => [
  1944. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}',
  1945. 'httpMethod' => 'GET',
  1946. 'parameters' => [
  1947. 'accountId' => [
  1948. 'location' => 'path',
  1949. 'type' => 'string',
  1950. 'required' => true,
  1951. ],
  1952. 'webPropertyId' => [
  1953. 'location' => 'path',
  1954. 'type' => 'string',
  1955. 'required' => true,
  1956. ],
  1957. ],
  1958. ],'insert' => [
  1959. 'path' => 'management/accounts/{accountId}/webproperties',
  1960. 'httpMethod' => 'POST',
  1961. 'parameters' => [
  1962. 'accountId' => [
  1963. 'location' => 'path',
  1964. 'type' => 'string',
  1965. 'required' => true,
  1966. ],
  1967. ],
  1968. ],'list' => [
  1969. 'path' => 'management/accounts/{accountId}/webproperties',
  1970. 'httpMethod' => 'GET',
  1971. 'parameters' => [
  1972. 'accountId' => [
  1973. 'location' => 'path',
  1974. 'type' => 'string',
  1975. 'required' => true,
  1976. ],
  1977. 'max-results' => [
  1978. 'location' => 'query',
  1979. 'type' => 'integer',
  1980. ],
  1981. 'start-index' => [
  1982. 'location' => 'query',
  1983. 'type' => 'integer',
  1984. ],
  1985. ],
  1986. ],'patch' => [
  1987. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}',
  1988. 'httpMethod' => 'PATCH',
  1989. 'parameters' => [
  1990. 'accountId' => [
  1991. 'location' => 'path',
  1992. 'type' => 'string',
  1993. 'required' => true,
  1994. ],
  1995. 'webPropertyId' => [
  1996. 'location' => 'path',
  1997. 'type' => 'string',
  1998. 'required' => true,
  1999. ],
  2000. ],
  2001. ],'update' => [
  2002. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}',
  2003. 'httpMethod' => 'PUT',
  2004. 'parameters' => [
  2005. 'accountId' => [
  2006. 'location' => 'path',
  2007. 'type' => 'string',
  2008. 'required' => true,
  2009. ],
  2010. 'webPropertyId' => [
  2011. 'location' => 'path',
  2012. 'type' => 'string',
  2013. 'required' => true,
  2014. ],
  2015. ],
  2016. ],
  2017. ]
  2018. ]
  2019. );
  2020. $this->management_webpropertyUserLinks = new Analytics\Resource\ManagementWebpropertyUserLinks(
  2021. $this,
  2022. $this->serviceName,
  2023. 'webpropertyUserLinks',
  2024. [
  2025. 'methods' => [
  2026. 'delete' => [
  2027. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}',
  2028. 'httpMethod' => 'DELETE',
  2029. 'parameters' => [
  2030. 'accountId' => [
  2031. 'location' => 'path',
  2032. 'type' => 'string',
  2033. 'required' => true,
  2034. ],
  2035. 'webPropertyId' => [
  2036. 'location' => 'path',
  2037. 'type' => 'string',
  2038. 'required' => true,
  2039. ],
  2040. 'linkId' => [
  2041. 'location' => 'path',
  2042. 'type' => 'string',
  2043. 'required' => true,
  2044. ],
  2045. ],
  2046. ],'insert' => [
  2047. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks',
  2048. 'httpMethod' => 'POST',
  2049. 'parameters' => [
  2050. 'accountId' => [
  2051. 'location' => 'path',
  2052. 'type' => 'string',
  2053. 'required' => true,
  2054. ],
  2055. 'webPropertyId' => [
  2056. 'location' => 'path',
  2057. 'type' => 'string',
  2058. 'required' => true,
  2059. ],
  2060. ],
  2061. ],'list' => [
  2062. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks',
  2063. 'httpMethod' => 'GET',
  2064. 'parameters' => [
  2065. 'accountId' => [
  2066. 'location' => 'path',
  2067. 'type' => 'string',
  2068. 'required' => true,
  2069. ],
  2070. 'webPropertyId' => [
  2071. 'location' => 'path',
  2072. 'type' => 'string',
  2073. 'required' => true,
  2074. ],
  2075. 'max-results' => [
  2076. 'location' => 'query',
  2077. 'type' => 'integer',
  2078. ],
  2079. 'start-index' => [
  2080. 'location' => 'query',
  2081. 'type' => 'integer',
  2082. ],
  2083. ],
  2084. ],'update' => [
  2085. 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}',
  2086. 'httpMethod' => 'PUT',
  2087. 'parameters' => [
  2088. 'accountId' => [
  2089. 'location' => 'path',
  2090. 'type' => 'string',
  2091. 'required' => true,
  2092. ],
  2093. 'webPropertyId' => [
  2094. 'location' => 'path',
  2095. 'type' => 'string',
  2096. 'required' => true,
  2097. ],
  2098. 'linkId' => [
  2099. 'location' => 'path',
  2100. 'type' => 'string',
  2101. 'required' => true,
  2102. ],
  2103. ],
  2104. ],
  2105. ]
  2106. ]
  2107. );
  2108. $this->metadata_columns = new Analytics\Resource\MetadataColumns(
  2109. $this,
  2110. $this->serviceName,
  2111. 'columns',
  2112. [
  2113. 'methods' => [
  2114. 'list' => [
  2115. 'path' => 'metadata/{reportType}/columns',
  2116. 'httpMethod' => 'GET',
  2117. 'parameters' => [
  2118. 'reportType' => [
  2119. 'location' => 'path',
  2120. 'type' => 'string',
  2121. 'required' => true,
  2122. ],
  2123. ],
  2124. ],
  2125. ]
  2126. ]
  2127. );
  2128. $this->provisioning = new Analytics\Resource\Provisioning(
  2129. $this,
  2130. $this->serviceName,
  2131. 'provisioning',
  2132. [
  2133. 'methods' => [
  2134. 'createAccountTicket' => [
  2135. 'path' => 'provisioning/createAccountTicket',
  2136. 'httpMethod' => 'POST',
  2137. 'parameters' => [],
  2138. ],'createAccountTree' => [
  2139. 'path' => 'provisioning/createAccountTree',
  2140. 'httpMethod' => 'POST',
  2141. 'parameters' => [],
  2142. ],
  2143. ]
  2144. ]
  2145. );
  2146. $this->userDeletion_userDeletionRequest = new Analytics\Resource\UserDeletionUserDeletionRequest(
  2147. $this,
  2148. $this->serviceName,
  2149. 'userDeletionRequest',
  2150. [
  2151. 'methods' => [
  2152. 'upsert' => [
  2153. 'path' => 'userDeletion/userDeletionRequests:upsert',
  2154. 'httpMethod' => 'POST',
  2155. 'parameters' => [],
  2156. ],
  2157. ]
  2158. ]
  2159. );
  2160. }
  2161. }
  2162. // Adding a class alias for backwards compatibility with the previous class name.
  2163. class_alias(Analytics::class, 'Google_Service_Analytics');