PageRenderTime 51ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/google/src/Google/Service/TagManager.php

https://bitbucket.org/moodle/moodle
PHP | 3445 lines | 2776 code | 143 blank | 526 comment | 0 complexity | 3e09d1fc5197b0579da87cf78bcc565c MD5 | raw file
Possible License(s): Apache-2.0, LGPL-2.1, BSD-3-Clause, MIT, GPL-3.0

Large files files are truncated, but you can click here to view the full file

  1. <?php
  2. /*
  3. * Copyright 2010 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. /**
  18. * Service definition for TagManager (v1).
  19. *
  20. * <p>
  21. * API for accessing Tag Manager accounts and containers.</p>
  22. *
  23. * <p>
  24. * For more information about this service, see the API
  25. * <a href="https://developers.google.com/tag-manager/api/v1/" target="_blank">Documentation</a>
  26. * </p>
  27. *
  28. * @author Google, Inc.
  29. */
  30. class Google_Service_TagManager extends Google_Service
  31. {
  32. /** Delete your Google Tag Manager containers. */
  33. const TAGMANAGER_DELETE_CONTAINERS =
  34. "https://www.googleapis.com/auth/tagmanager.delete.containers";
  35. /** Manage your Google Tag Manager containers. */
  36. const TAGMANAGER_EDIT_CONTAINERS =
  37. "https://www.googleapis.com/auth/tagmanager.edit.containers";
  38. /** Manage your Google Tag Manager container versions. */
  39. const TAGMANAGER_EDIT_CONTAINERVERSIONS =
  40. "https://www.googleapis.com/auth/tagmanager.edit.containerversions";
  41. /** Manage your Google Tag Manager accounts. */
  42. const TAGMANAGER_MANAGE_ACCOUNTS =
  43. "https://www.googleapis.com/auth/tagmanager.manage.accounts";
  44. /** Manage user permissions of your Google Tag Manager data. */
  45. const TAGMANAGER_MANAGE_USERS =
  46. "https://www.googleapis.com/auth/tagmanager.manage.users";
  47. /** Publish your Google Tag Manager containers. */
  48. const TAGMANAGER_PUBLISH =
  49. "https://www.googleapis.com/auth/tagmanager.publish";
  50. /** View your Google Tag Manager containers. */
  51. const TAGMANAGER_READONLY =
  52. "https://www.googleapis.com/auth/tagmanager.readonly";
  53. public $accounts;
  54. public $accounts_containers;
  55. public $accounts_containers_folders;
  56. public $accounts_containers_folders_entities;
  57. public $accounts_containers_move_folders;
  58. public $accounts_containers_tags;
  59. public $accounts_containers_triggers;
  60. public $accounts_containers_variables;
  61. public $accounts_containers_versions;
  62. public $accounts_permissions;
  63. /**
  64. * Constructs the internal representation of the TagManager service.
  65. *
  66. * @param Google_Client $client
  67. */
  68. public function __construct(Google_Client $client)
  69. {
  70. parent::__construct($client);
  71. $this->rootUrl = 'https://www.googleapis.com/';
  72. $this->servicePath = 'tagmanager/v1/';
  73. $this->version = 'v1';
  74. $this->serviceName = 'tagmanager';
  75. $this->accounts = new Google_Service_TagManager_Accounts_Resource(
  76. $this,
  77. $this->serviceName,
  78. 'accounts',
  79. array(
  80. 'methods' => array(
  81. 'get' => array(
  82. 'path' => 'accounts/{accountId}',
  83. 'httpMethod' => 'GET',
  84. 'parameters' => array(
  85. 'accountId' => array(
  86. 'location' => 'path',
  87. 'type' => 'string',
  88. 'required' => true,
  89. ),
  90. ),
  91. ),'list' => array(
  92. 'path' => 'accounts',
  93. 'httpMethod' => 'GET',
  94. 'parameters' => array(),
  95. ),'update' => array(
  96. 'path' => 'accounts/{accountId}',
  97. 'httpMethod' => 'PUT',
  98. 'parameters' => array(
  99. 'accountId' => array(
  100. 'location' => 'path',
  101. 'type' => 'string',
  102. 'required' => true,
  103. ),
  104. 'fingerprint' => array(
  105. 'location' => 'query',
  106. 'type' => 'string',
  107. ),
  108. ),
  109. ),
  110. )
  111. )
  112. );
  113. $this->accounts_containers = new Google_Service_TagManager_AccountsContainers_Resource(
  114. $this,
  115. $this->serviceName,
  116. 'containers',
  117. array(
  118. 'methods' => array(
  119. 'create' => array(
  120. 'path' => 'accounts/{accountId}/containers',
  121. 'httpMethod' => 'POST',
  122. 'parameters' => array(
  123. 'accountId' => array(
  124. 'location' => 'path',
  125. 'type' => 'string',
  126. 'required' => true,
  127. ),
  128. ),
  129. ),'delete' => array(
  130. 'path' => 'accounts/{accountId}/containers/{containerId}',
  131. 'httpMethod' => 'DELETE',
  132. 'parameters' => array(
  133. 'accountId' => array(
  134. 'location' => 'path',
  135. 'type' => 'string',
  136. 'required' => true,
  137. ),
  138. 'containerId' => array(
  139. 'location' => 'path',
  140. 'type' => 'string',
  141. 'required' => true,
  142. ),
  143. ),
  144. ),'get' => array(
  145. 'path' => 'accounts/{accountId}/containers/{containerId}',
  146. 'httpMethod' => 'GET',
  147. 'parameters' => array(
  148. 'accountId' => array(
  149. 'location' => 'path',
  150. 'type' => 'string',
  151. 'required' => true,
  152. ),
  153. 'containerId' => array(
  154. 'location' => 'path',
  155. 'type' => 'string',
  156. 'required' => true,
  157. ),
  158. ),
  159. ),'list' => array(
  160. 'path' => 'accounts/{accountId}/containers',
  161. 'httpMethod' => 'GET',
  162. 'parameters' => array(
  163. 'accountId' => array(
  164. 'location' => 'path',
  165. 'type' => 'string',
  166. 'required' => true,
  167. ),
  168. ),
  169. ),'update' => array(
  170. 'path' => 'accounts/{accountId}/containers/{containerId}',
  171. 'httpMethod' => 'PUT',
  172. 'parameters' => array(
  173. 'accountId' => array(
  174. 'location' => 'path',
  175. 'type' => 'string',
  176. 'required' => true,
  177. ),
  178. 'containerId' => array(
  179. 'location' => 'path',
  180. 'type' => 'string',
  181. 'required' => true,
  182. ),
  183. 'fingerprint' => array(
  184. 'location' => 'query',
  185. 'type' => 'string',
  186. ),
  187. ),
  188. ),
  189. )
  190. )
  191. );
  192. $this->accounts_containers_folders = new Google_Service_TagManager_AccountsContainersFolders_Resource(
  193. $this,
  194. $this->serviceName,
  195. 'folders',
  196. array(
  197. 'methods' => array(
  198. 'create' => array(
  199. 'path' => 'accounts/{accountId}/containers/{containerId}/folders',
  200. 'httpMethod' => 'POST',
  201. 'parameters' => array(
  202. 'accountId' => array(
  203. 'location' => 'path',
  204. 'type' => 'string',
  205. 'required' => true,
  206. ),
  207. 'containerId' => array(
  208. 'location' => 'path',
  209. 'type' => 'string',
  210. 'required' => true,
  211. ),
  212. ),
  213. ),'delete' => array(
  214. 'path' => 'accounts/{accountId}/containers/{containerId}/folders/{folderId}',
  215. 'httpMethod' => 'DELETE',
  216. 'parameters' => array(
  217. 'accountId' => array(
  218. 'location' => 'path',
  219. 'type' => 'string',
  220. 'required' => true,
  221. ),
  222. 'containerId' => array(
  223. 'location' => 'path',
  224. 'type' => 'string',
  225. 'required' => true,
  226. ),
  227. 'folderId' => array(
  228. 'location' => 'path',
  229. 'type' => 'string',
  230. 'required' => true,
  231. ),
  232. ),
  233. ),'get' => array(
  234. 'path' => 'accounts/{accountId}/containers/{containerId}/folders/{folderId}',
  235. 'httpMethod' => 'GET',
  236. 'parameters' => array(
  237. 'accountId' => array(
  238. 'location' => 'path',
  239. 'type' => 'string',
  240. 'required' => true,
  241. ),
  242. 'containerId' => array(
  243. 'location' => 'path',
  244. 'type' => 'string',
  245. 'required' => true,
  246. ),
  247. 'folderId' => array(
  248. 'location' => 'path',
  249. 'type' => 'string',
  250. 'required' => true,
  251. ),
  252. ),
  253. ),'list' => array(
  254. 'path' => 'accounts/{accountId}/containers/{containerId}/folders',
  255. 'httpMethod' => 'GET',
  256. 'parameters' => array(
  257. 'accountId' => array(
  258. 'location' => 'path',
  259. 'type' => 'string',
  260. 'required' => true,
  261. ),
  262. 'containerId' => array(
  263. 'location' => 'path',
  264. 'type' => 'string',
  265. 'required' => true,
  266. ),
  267. ),
  268. ),'update' => array(
  269. 'path' => 'accounts/{accountId}/containers/{containerId}/folders/{folderId}',
  270. 'httpMethod' => 'PUT',
  271. 'parameters' => array(
  272. 'accountId' => array(
  273. 'location' => 'path',
  274. 'type' => 'string',
  275. 'required' => true,
  276. ),
  277. 'containerId' => array(
  278. 'location' => 'path',
  279. 'type' => 'string',
  280. 'required' => true,
  281. ),
  282. 'folderId' => array(
  283. 'location' => 'path',
  284. 'type' => 'string',
  285. 'required' => true,
  286. ),
  287. 'fingerprint' => array(
  288. 'location' => 'query',
  289. 'type' => 'string',
  290. ),
  291. ),
  292. ),
  293. )
  294. )
  295. );
  296. $this->accounts_containers_folders_entities = new Google_Service_TagManager_AccountsContainersFoldersEntities_Resource(
  297. $this,
  298. $this->serviceName,
  299. 'entities',
  300. array(
  301. 'methods' => array(
  302. 'list' => array(
  303. 'path' => 'accounts/{accountId}/containers/{containerId}/folders/{folderId}/entities',
  304. 'httpMethod' => 'GET',
  305. 'parameters' => array(
  306. 'accountId' => array(
  307. 'location' => 'path',
  308. 'type' => 'string',
  309. 'required' => true,
  310. ),
  311. 'containerId' => array(
  312. 'location' => 'path',
  313. 'type' => 'string',
  314. 'required' => true,
  315. ),
  316. 'folderId' => array(
  317. 'location' => 'path',
  318. 'type' => 'string',
  319. 'required' => true,
  320. ),
  321. ),
  322. ),
  323. )
  324. )
  325. );
  326. $this->accounts_containers_move_folders = new Google_Service_TagManager_AccountsContainersMoveFolders_Resource(
  327. $this,
  328. $this->serviceName,
  329. 'move_folders',
  330. array(
  331. 'methods' => array(
  332. 'update' => array(
  333. 'path' => 'accounts/{accountId}/containers/{containerId}/move_folders/{folderId}',
  334. 'httpMethod' => 'PUT',
  335. 'parameters' => array(
  336. 'accountId' => array(
  337. 'location' => 'path',
  338. 'type' => 'string',
  339. 'required' => true,
  340. ),
  341. 'containerId' => array(
  342. 'location' => 'path',
  343. 'type' => 'string',
  344. 'required' => true,
  345. ),
  346. 'folderId' => array(
  347. 'location' => 'path',
  348. 'type' => 'string',
  349. 'required' => true,
  350. ),
  351. 'variableId' => array(
  352. 'location' => 'query',
  353. 'type' => 'string',
  354. 'repeated' => true,
  355. ),
  356. 'tagId' => array(
  357. 'location' => 'query',
  358. 'type' => 'string',
  359. 'repeated' => true,
  360. ),
  361. 'triggerId' => array(
  362. 'location' => 'query',
  363. 'type' => 'string',
  364. 'repeated' => true,
  365. ),
  366. ),
  367. ),
  368. )
  369. )
  370. );
  371. $this->accounts_containers_tags = new Google_Service_TagManager_AccountsContainersTags_Resource(
  372. $this,
  373. $this->serviceName,
  374. 'tags',
  375. array(
  376. 'methods' => array(
  377. 'create' => array(
  378. 'path' => 'accounts/{accountId}/containers/{containerId}/tags',
  379. 'httpMethod' => 'POST',
  380. 'parameters' => array(
  381. 'accountId' => array(
  382. 'location' => 'path',
  383. 'type' => 'string',
  384. 'required' => true,
  385. ),
  386. 'containerId' => array(
  387. 'location' => 'path',
  388. 'type' => 'string',
  389. 'required' => true,
  390. ),
  391. ),
  392. ),'delete' => array(
  393. 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}',
  394. 'httpMethod' => 'DELETE',
  395. 'parameters' => array(
  396. 'accountId' => array(
  397. 'location' => 'path',
  398. 'type' => 'string',
  399. 'required' => true,
  400. ),
  401. 'containerId' => array(
  402. 'location' => 'path',
  403. 'type' => 'string',
  404. 'required' => true,
  405. ),
  406. 'tagId' => array(
  407. 'location' => 'path',
  408. 'type' => 'string',
  409. 'required' => true,
  410. ),
  411. ),
  412. ),'get' => array(
  413. 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}',
  414. 'httpMethod' => 'GET',
  415. 'parameters' => array(
  416. 'accountId' => array(
  417. 'location' => 'path',
  418. 'type' => 'string',
  419. 'required' => true,
  420. ),
  421. 'containerId' => array(
  422. 'location' => 'path',
  423. 'type' => 'string',
  424. 'required' => true,
  425. ),
  426. 'tagId' => array(
  427. 'location' => 'path',
  428. 'type' => 'string',
  429. 'required' => true,
  430. ),
  431. ),
  432. ),'list' => array(
  433. 'path' => 'accounts/{accountId}/containers/{containerId}/tags',
  434. 'httpMethod' => 'GET',
  435. 'parameters' => array(
  436. 'accountId' => array(
  437. 'location' => 'path',
  438. 'type' => 'string',
  439. 'required' => true,
  440. ),
  441. 'containerId' => array(
  442. 'location' => 'path',
  443. 'type' => 'string',
  444. 'required' => true,
  445. ),
  446. ),
  447. ),'update' => array(
  448. 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}',
  449. 'httpMethod' => 'PUT',
  450. 'parameters' => array(
  451. 'accountId' => array(
  452. 'location' => 'path',
  453. 'type' => 'string',
  454. 'required' => true,
  455. ),
  456. 'containerId' => array(
  457. 'location' => 'path',
  458. 'type' => 'string',
  459. 'required' => true,
  460. ),
  461. 'tagId' => array(
  462. 'location' => 'path',
  463. 'type' => 'string',
  464. 'required' => true,
  465. ),
  466. 'fingerprint' => array(
  467. 'location' => 'query',
  468. 'type' => 'string',
  469. ),
  470. ),
  471. ),
  472. )
  473. )
  474. );
  475. $this->accounts_containers_triggers = new Google_Service_TagManager_AccountsContainersTriggers_Resource(
  476. $this,
  477. $this->serviceName,
  478. 'triggers',
  479. array(
  480. 'methods' => array(
  481. 'create' => array(
  482. 'path' => 'accounts/{accountId}/containers/{containerId}/triggers',
  483. 'httpMethod' => 'POST',
  484. 'parameters' => array(
  485. 'accountId' => array(
  486. 'location' => 'path',
  487. 'type' => 'string',
  488. 'required' => true,
  489. ),
  490. 'containerId' => array(
  491. 'location' => 'path',
  492. 'type' => 'string',
  493. 'required' => true,
  494. ),
  495. ),
  496. ),'delete' => array(
  497. 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}',
  498. 'httpMethod' => 'DELETE',
  499. 'parameters' => array(
  500. 'accountId' => array(
  501. 'location' => 'path',
  502. 'type' => 'string',
  503. 'required' => true,
  504. ),
  505. 'containerId' => array(
  506. 'location' => 'path',
  507. 'type' => 'string',
  508. 'required' => true,
  509. ),
  510. 'triggerId' => array(
  511. 'location' => 'path',
  512. 'type' => 'string',
  513. 'required' => true,
  514. ),
  515. ),
  516. ),'get' => array(
  517. 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}',
  518. 'httpMethod' => 'GET',
  519. 'parameters' => array(
  520. 'accountId' => array(
  521. 'location' => 'path',
  522. 'type' => 'string',
  523. 'required' => true,
  524. ),
  525. 'containerId' => array(
  526. 'location' => 'path',
  527. 'type' => 'string',
  528. 'required' => true,
  529. ),
  530. 'triggerId' => array(
  531. 'location' => 'path',
  532. 'type' => 'string',
  533. 'required' => true,
  534. ),
  535. ),
  536. ),'list' => array(
  537. 'path' => 'accounts/{accountId}/containers/{containerId}/triggers',
  538. 'httpMethod' => 'GET',
  539. 'parameters' => array(
  540. 'accountId' => array(
  541. 'location' => 'path',
  542. 'type' => 'string',
  543. 'required' => true,
  544. ),
  545. 'containerId' => array(
  546. 'location' => 'path',
  547. 'type' => 'string',
  548. 'required' => true,
  549. ),
  550. ),
  551. ),'update' => array(
  552. 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}',
  553. 'httpMethod' => 'PUT',
  554. 'parameters' => array(
  555. 'accountId' => array(
  556. 'location' => 'path',
  557. 'type' => 'string',
  558. 'required' => true,
  559. ),
  560. 'containerId' => array(
  561. 'location' => 'path',
  562. 'type' => 'string',
  563. 'required' => true,
  564. ),
  565. 'triggerId' => array(
  566. 'location' => 'path',
  567. 'type' => 'string',
  568. 'required' => true,
  569. ),
  570. 'fingerprint' => array(
  571. 'location' => 'query',
  572. 'type' => 'string',
  573. ),
  574. ),
  575. ),
  576. )
  577. )
  578. );
  579. $this->accounts_containers_variables = new Google_Service_TagManager_AccountsContainersVariables_Resource(
  580. $this,
  581. $this->serviceName,
  582. 'variables',
  583. array(
  584. 'methods' => array(
  585. 'create' => array(
  586. 'path' => 'accounts/{accountId}/containers/{containerId}/variables',
  587. 'httpMethod' => 'POST',
  588. 'parameters' => array(
  589. 'accountId' => array(
  590. 'location' => 'path',
  591. 'type' => 'string',
  592. 'required' => true,
  593. ),
  594. 'containerId' => array(
  595. 'location' => 'path',
  596. 'type' => 'string',
  597. 'required' => true,
  598. ),
  599. ),
  600. ),'delete' => array(
  601. 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}',
  602. 'httpMethod' => 'DELETE',
  603. 'parameters' => array(
  604. 'accountId' => array(
  605. 'location' => 'path',
  606. 'type' => 'string',
  607. 'required' => true,
  608. ),
  609. 'containerId' => array(
  610. 'location' => 'path',
  611. 'type' => 'string',
  612. 'required' => true,
  613. ),
  614. 'variableId' => array(
  615. 'location' => 'path',
  616. 'type' => 'string',
  617. 'required' => true,
  618. ),
  619. ),
  620. ),'get' => array(
  621. 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}',
  622. 'httpMethod' => 'GET',
  623. 'parameters' => array(
  624. 'accountId' => array(
  625. 'location' => 'path',
  626. 'type' => 'string',
  627. 'required' => true,
  628. ),
  629. 'containerId' => array(
  630. 'location' => 'path',
  631. 'type' => 'string',
  632. 'required' => true,
  633. ),
  634. 'variableId' => array(
  635. 'location' => 'path',
  636. 'type' => 'string',
  637. 'required' => true,
  638. ),
  639. ),
  640. ),'list' => array(
  641. 'path' => 'accounts/{accountId}/containers/{containerId}/variables',
  642. 'httpMethod' => 'GET',
  643. 'parameters' => array(
  644. 'accountId' => array(
  645. 'location' => 'path',
  646. 'type' => 'string',
  647. 'required' => true,
  648. ),
  649. 'containerId' => array(
  650. 'location' => 'path',
  651. 'type' => 'string',
  652. 'required' => true,
  653. ),
  654. ),
  655. ),'update' => array(
  656. 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}',
  657. 'httpMethod' => 'PUT',
  658. 'parameters' => array(
  659. 'accountId' => array(
  660. 'location' => 'path',
  661. 'type' => 'string',
  662. 'required' => true,
  663. ),
  664. 'containerId' => array(
  665. 'location' => 'path',
  666. 'type' => 'string',
  667. 'required' => true,
  668. ),
  669. 'variableId' => array(
  670. 'location' => 'path',
  671. 'type' => 'string',
  672. 'required' => true,
  673. ),
  674. 'fingerprint' => array(
  675. 'location' => 'query',
  676. 'type' => 'string',
  677. ),
  678. ),
  679. ),
  680. )
  681. )
  682. );
  683. $this->accounts_containers_versions = new Google_Service_TagManager_AccountsContainersVersions_Resource(
  684. $this,
  685. $this->serviceName,
  686. 'versions',
  687. array(
  688. 'methods' => array(
  689. 'create' => array(
  690. 'path' => 'accounts/{accountId}/containers/{containerId}/versions',
  691. 'httpMethod' => 'POST',
  692. 'parameters' => array(
  693. 'accountId' => array(
  694. 'location' => 'path',
  695. 'type' => 'string',
  696. 'required' => true,
  697. ),
  698. 'containerId' => array(
  699. 'location' => 'path',
  700. 'type' => 'string',
  701. 'required' => true,
  702. ),
  703. ),
  704. ),'delete' => array(
  705. 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}',
  706. 'httpMethod' => 'DELETE',
  707. 'parameters' => array(
  708. 'accountId' => array(
  709. 'location' => 'path',
  710. 'type' => 'string',
  711. 'required' => true,
  712. ),
  713. 'containerId' => array(
  714. 'location' => 'path',
  715. 'type' => 'string',
  716. 'required' => true,
  717. ),
  718. 'containerVersionId' => array(
  719. 'location' => 'path',
  720. 'type' => 'string',
  721. 'required' => true,
  722. ),
  723. ),
  724. ),'get' => array(
  725. 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}',
  726. 'httpMethod' => 'GET',
  727. 'parameters' => array(
  728. 'accountId' => array(
  729. 'location' => 'path',
  730. 'type' => 'string',
  731. 'required' => true,
  732. ),
  733. 'containerId' => array(
  734. 'location' => 'path',
  735. 'type' => 'string',
  736. 'required' => true,
  737. ),
  738. 'containerVersionId' => array(
  739. 'location' => 'path',
  740. 'type' => 'string',
  741. 'required' => true,
  742. ),
  743. ),
  744. ),'list' => array(
  745. 'path' => 'accounts/{accountId}/containers/{containerId}/versions',
  746. 'httpMethod' => 'GET',
  747. 'parameters' => array(
  748. 'accountId' => array(
  749. 'location' => 'path',
  750. 'type' => 'string',
  751. 'required' => true,
  752. ),
  753. 'containerId' => array(
  754. 'location' => 'path',
  755. 'type' => 'string',
  756. 'required' => true,
  757. ),
  758. 'headers' => array(
  759. 'location' => 'query',
  760. 'type' => 'boolean',
  761. ),
  762. ),
  763. ),'publish' => array(
  764. 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish',
  765. 'httpMethod' => 'POST',
  766. 'parameters' => array(
  767. 'accountId' => array(
  768. 'location' => 'path',
  769. 'type' => 'string',
  770. 'required' => true,
  771. ),
  772. 'containerId' => array(
  773. 'location' => 'path',
  774. 'type' => 'string',
  775. 'required' => true,
  776. ),
  777. 'containerVersionId' => array(
  778. 'location' => 'path',
  779. 'type' => 'string',
  780. 'required' => true,
  781. ),
  782. 'fingerprint' => array(
  783. 'location' => 'query',
  784. 'type' => 'string',
  785. ),
  786. ),
  787. ),'restore' => array(
  788. 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/restore',
  789. 'httpMethod' => 'POST',
  790. 'parameters' => array(
  791. 'accountId' => array(
  792. 'location' => 'path',
  793. 'type' => 'string',
  794. 'required' => true,
  795. ),
  796. 'containerId' => array(
  797. 'location' => 'path',
  798. 'type' => 'string',
  799. 'required' => true,
  800. ),
  801. 'containerVersionId' => array(
  802. 'location' => 'path',
  803. 'type' => 'string',
  804. 'required' => true,
  805. ),
  806. ),
  807. ),'undelete' => array(
  808. 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/undelete',
  809. 'httpMethod' => 'POST',
  810. 'parameters' => array(
  811. 'accountId' => array(
  812. 'location' => 'path',
  813. 'type' => 'string',
  814. 'required' => true,
  815. ),
  816. 'containerId' => array(
  817. 'location' => 'path',
  818. 'type' => 'string',
  819. 'required' => true,
  820. ),
  821. 'containerVersionId' => array(
  822. 'location' => 'path',
  823. 'type' => 'string',
  824. 'required' => true,
  825. ),
  826. ),
  827. ),'update' => array(
  828. 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}',
  829. 'httpMethod' => 'PUT',
  830. 'parameters' => array(
  831. 'accountId' => array(
  832. 'location' => 'path',
  833. 'type' => 'string',
  834. 'required' => true,
  835. ),
  836. 'containerId' => array(
  837. 'location' => 'path',
  838. 'type' => 'string',
  839. 'required' => true,
  840. ),
  841. 'containerVersionId' => array(
  842. 'location' => 'path',
  843. 'type' => 'string',
  844. 'required' => true,
  845. ),
  846. 'fingerprint' => array(
  847. 'location' => 'query',
  848. 'type' => 'string',
  849. ),
  850. ),
  851. ),
  852. )
  853. )
  854. );
  855. $this->accounts_permissions = new Google_Service_TagManager_AccountsPermissions_Resource(
  856. $this,
  857. $this->serviceName,
  858. 'permissions',
  859. array(
  860. 'methods' => array(
  861. 'create' => array(
  862. 'path' => 'accounts/{accountId}/permissions',
  863. 'httpMethod' => 'POST',
  864. 'parameters' => array(
  865. 'accountId' => array(
  866. 'location' => 'path',
  867. 'type' => 'string',
  868. 'required' => true,
  869. ),
  870. ),
  871. ),'delete' => array(
  872. 'path' => 'accounts/{accountId}/permissions/{permissionId}',
  873. 'httpMethod' => 'DELETE',
  874. 'parameters' => array(
  875. 'accountId' => array(
  876. 'location' => 'path',
  877. 'type' => 'string',
  878. 'required' => true,
  879. ),
  880. 'permissionId' => array(
  881. 'location' => 'path',
  882. 'type' => 'string',
  883. 'required' => true,
  884. ),
  885. ),
  886. ),'get' => array(
  887. 'path' => 'accounts/{accountId}/permissions/{permissionId}',
  888. 'httpMethod' => 'GET',
  889. 'parameters' => array(
  890. 'accountId' => array(
  891. 'location' => 'path',
  892. 'type' => 'string',
  893. 'required' => true,
  894. ),
  895. 'permissionId' => array(
  896. 'location' => 'path',
  897. 'type' => 'string',
  898. 'required' => true,
  899. ),
  900. ),
  901. ),'list' => array(
  902. 'path' => 'accounts/{accountId}/permissions',
  903. 'httpMethod' => 'GET',
  904. 'parameters' => array(
  905. 'accountId' => array(
  906. 'location' => 'path',
  907. 'type' => 'string',
  908. 'required' => true,
  909. ),
  910. ),
  911. ),'update' => array(
  912. 'path' => 'accounts/{accountId}/permissions/{permissionId}',
  913. 'httpMethod' => 'PUT',
  914. 'parameters' => array(
  915. 'accountId' => array(
  916. 'location' => 'path',
  917. 'type' => 'string',
  918. 'required' => true,
  919. ),
  920. 'permissionId' => array(
  921. 'location' => 'path',
  922. 'type' => 'string',
  923. 'required' => true,
  924. ),
  925. ),
  926. ),
  927. )
  928. )
  929. );
  930. }
  931. }
  932. /**
  933. * The "accounts" collection of methods.
  934. * Typical usage is:
  935. * <code>
  936. * $tagmanagerService = new Google_Service_TagManager(...);
  937. * $accounts = $tagmanagerService->accounts;
  938. * </code>
  939. */
  940. class Google_Service_TagManager_Accounts_Resource extends Google_Service_Resource
  941. {
  942. /**
  943. * Gets a GTM Account. (accounts.get)
  944. *
  945. * @param string $accountId The GTM Account ID.
  946. * @param array $optParams Optional parameters.
  947. * @return Google_Service_TagManager_Account
  948. */
  949. public function get($accountId, $optParams = array())
  950. {
  951. $params = array('accountId' => $accountId);
  952. $params = array_merge($params, $optParams);
  953. return $this->call('get', array($params), "Google_Service_TagManager_Account");
  954. }
  955. /**
  956. * Lists all GTM Accounts that a user has access to. (accounts.listAccounts)
  957. *
  958. * @param array $optParams Optional parameters.
  959. * @return Google_Service_TagManager_ListAccountsResponse
  960. */
  961. public function listAccounts($optParams = array())
  962. {
  963. $params = array();
  964. $params = array_merge($params, $optParams);
  965. return $this->call('list', array($params), "Google_Service_TagManager_ListAccountsResponse");
  966. }
  967. /**
  968. * Updates a GTM Account. (accounts.update)
  969. *
  970. * @param string $accountId The GTM Account ID.
  971. * @param Google_Account $postBody
  972. * @param array $optParams Optional parameters.
  973. *
  974. * @opt_param string fingerprint When provided, this fingerprint must match the
  975. * fingerprint of the account in storage.
  976. * @return Google_Service_TagManager_Account
  977. */
  978. public function update($accountId, Google_Service_TagManager_Account $postBody, $optParams = array())
  979. {
  980. $params = array('accountId' => $accountId, 'postBody' => $postBody);
  981. $params = array_merge($params, $optParams);
  982. return $this->call('update', array($params), "Google_Service_TagManager_Account");
  983. }
  984. }
  985. /**
  986. * The "containers" collection of methods.
  987. * Typical usage is:
  988. * <code>
  989. * $tagmanagerService = new Google_Service_TagManager(...);
  990. * $containers = $tagmanagerService->containers;
  991. * </code>
  992. */
  993. class Google_Service_TagManager_AccountsContainers_Resource extends Google_Service_Resource
  994. {
  995. /**
  996. * Creates a Container. (containers.create)
  997. *
  998. * @param string $accountId The GTM Account ID.
  999. * @param Google_Container $postBody
  1000. * @param array $optParams Optional parameters.
  1001. * @return Google_Service_TagManager_Container
  1002. */
  1003. public function create($accountId, Google_Service_TagManager_Container $postBody, $optParams = array())
  1004. {
  1005. $params = array('accountId' => $accountId, 'postBody' => $postBody);
  1006. $params = array_merge($params, $optParams);
  1007. return $this->call('create', array($params), "Google_Service_TagManager_Container");
  1008. }
  1009. /**
  1010. * Deletes a Container. (containers.delete)
  1011. *
  1012. * @param string $accountId The GTM Account ID.
  1013. * @param string $containerId The GTM Container ID.
  1014. * @param array $optParams Optional parameters.
  1015. */
  1016. public function delete($accountId, $containerId, $optParams = array())
  1017. {
  1018. $params = array('accountId' => $accountId, 'containerId' => $containerId);
  1019. $params = array_merge($params, $optParams);
  1020. return $this->call('delete', array($params));
  1021. }
  1022. /**
  1023. * Gets a Container. (containers.get)
  1024. *
  1025. * @param string $accountId The GTM Account ID.
  1026. * @param string $containerId The GTM Container ID.
  1027. * @param array $optParams Optional parameters.
  1028. * @return Google_Service_TagManager_Container
  1029. */
  1030. public function get($accountId, $containerId, $optParams = array())
  1031. {
  1032. $params = array('accountId' => $accountId, 'containerId' => $containerId);
  1033. $params = array_merge($params, $optParams);
  1034. return $this->call('get', array($params), "Google_Service_TagManager_Container");
  1035. }
  1036. /**
  1037. * Lists all Containers that belongs to a GTM Account.
  1038. * (containers.listAccountsContainers)
  1039. *
  1040. * @param string $accountId The GTM Account ID.
  1041. * @param array $optParams Optional parameters.
  1042. * @return Google_Service_TagManager_ListContainersResponse
  1043. */
  1044. public function listAccountsContainers($accountId, $optParams = array())
  1045. {
  1046. $params = array('accountId' => $accountId);
  1047. $params = array_merge($params, $optParams);
  1048. return $this->call('list', array($params), "Google_Service_TagManager_ListContainersResponse");
  1049. }
  1050. /**
  1051. * Updates a Container. (containers.update)
  1052. *
  1053. * @param string $accountId The GTM Account ID.
  1054. * @param string $containerId The GTM Container ID.
  1055. * @param Google_Container $postBody
  1056. * @param array $optParams Optional parameters.
  1057. *
  1058. * @opt_param string fingerprint When provided, this fingerprint must match the
  1059. * fingerprint of the container in storage.
  1060. * @return Google_Service_TagManager_Container
  1061. */
  1062. public function update($accountId, $containerId, Google_Service_TagManager_Container $postBody, $optParams = array())
  1063. {
  1064. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody);
  1065. $params = array_merge($params, $optParams);
  1066. return $this->call('update', array($params), "Google_Service_TagManager_Container");
  1067. }
  1068. }
  1069. /**
  1070. * The "folders" collection of methods.
  1071. * Typical usage is:
  1072. * <code>
  1073. * $tagmanagerService = new Google_Service_TagManager(...);
  1074. * $folders = $tagmanagerService->folders;
  1075. * </code>
  1076. */
  1077. class Google_Service_TagManager_AccountsContainersFolders_Resource extends Google_Service_Resource
  1078. {
  1079. /**
  1080. * Creates a GTM Folder. (folders.create)
  1081. *
  1082. * @param string $accountId The GTM Account ID.
  1083. * @param string $containerId The GTM Container ID.
  1084. * @param Google_Folder $postBody
  1085. * @param array $optParams Optional parameters.
  1086. * @return Google_Service_TagManager_Folder
  1087. */
  1088. public function create($accountId, $containerId, Google_Service_TagManager_Folder $postBody, $optParams = array())
  1089. {
  1090. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody);
  1091. $params = array_merge($params, $optParams);
  1092. return $this->call('create', array($params), "Google_Service_TagManager_Folder");
  1093. }
  1094. /**
  1095. * Deletes a GTM Folder. (folders.delete)
  1096. *
  1097. * @param string $accountId The GTM Account ID.
  1098. * @param string $containerId The GTM Container ID.
  1099. * @param string $folderId The GTM Folder ID.
  1100. * @param array $optParams Optional parameters.
  1101. */
  1102. public function delete($accountId, $containerId, $folderId, $optParams = array())
  1103. {
  1104. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId);
  1105. $params = array_merge($params, $optParams);
  1106. return $this->call('delete', array($params));
  1107. }
  1108. /**
  1109. * Gets a GTM Folder. (folders.get)
  1110. *
  1111. * @param string $accountId The GTM Account ID.
  1112. * @param string $containerId The GTM Container ID.
  1113. * @param string $folderId The GTM Folder ID.
  1114. * @param array $optParams Optional parameters.
  1115. * @return Google_Service_TagManager_Folder
  1116. */
  1117. public function get($accountId, $containerId, $folderId, $optParams = array())
  1118. {
  1119. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId);
  1120. $params = array_merge($params, $optParams);
  1121. return $this->call('get', array($params), "Google_Service_TagManager_Folder");
  1122. }
  1123. /**
  1124. * Lists all GTM Folders of a Container. (folders.listAccountsContainersFolders)
  1125. *
  1126. * @param string $accountId The GTM Account ID.
  1127. * @param string $containerId The GTM Container ID.
  1128. * @param array $optParams Optional parameters.
  1129. * @return Google_Service_TagManager_ListFoldersResponse
  1130. */
  1131. public function listAccountsContainersFolders($accountId, $containerId, $optParams = array())
  1132. {
  1133. $params = array('accountId' => $accountId, 'containerId' => $containerId);
  1134. $params = array_merge($params, $optParams);
  1135. return $this->call('list', array($params), "Google_Service_TagManager_ListFoldersResponse");
  1136. }
  1137. /**
  1138. * Updates a GTM Folder. (folders.update)
  1139. *
  1140. * @param string $accountId The GTM Account ID.
  1141. * @param string $containerId The GTM Container ID.
  1142. * @param string $folderId The GTM Folder ID.
  1143. * @param Google_Folder $postBody
  1144. * @param array $optParams Optional parameters.
  1145. *
  1146. * @opt_param string fingerprint When provided, this fingerprint must match the
  1147. * fingerprint of the folder in storage.
  1148. * @return Google_Service_TagManager_Folder
  1149. */
  1150. public function update($accountId, $containerId, $folderId, Google_Service_TagManager_Folder $postBody, $optParams = array())
  1151. {
  1152. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId, 'postBody' => $postBody);
  1153. $params = array_merge($params, $optParams);
  1154. return $this->call('update', array($params), "Google_Service_TagManager_Folder");
  1155. }
  1156. }
  1157. /**
  1158. * The "entities" collection of methods.
  1159. * Typical usage is:
  1160. * <code>
  1161. * $tagmanagerService = new Google_Service_TagManager(...);
  1162. * $entities = $tagmanagerService->entities;
  1163. * </code>
  1164. */
  1165. class Google_Service_TagManager_AccountsContainersFoldersEntities_Resource extends Google_Service_Resource
  1166. {
  1167. /**
  1168. * List all entities in a GTM Folder.
  1169. * (entities.listAccountsContainersFoldersEntities)
  1170. *
  1171. * @param string $accountId The GTM Account ID.
  1172. * @param string $containerId The GTM Container ID.
  1173. * @param string $folderId The GTM Folder ID.
  1174. * @param array $optParams Optional parameters.
  1175. * @return Google_Service_TagManager_FolderEntities
  1176. */
  1177. public function listAccountsContainersFoldersEntities($accountId, $containerId, $folderId, $optParams = array())
  1178. {
  1179. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId);
  1180. $params = array_merge($params, $optParams);
  1181. return $this->call('list', array($params), "Google_Service_TagManager_FolderEntities");
  1182. }
  1183. }
  1184. /**
  1185. * The "move_folders" collection of methods.
  1186. * Typical usage is:
  1187. * <code>
  1188. * $tagmanagerService = new Google_Service_TagManager(...);
  1189. * $move_folders = $tagmanagerService->move_folders;
  1190. * </code>
  1191. */
  1192. class Google_Service_TagManager_AccountsContainersMoveFolders_Resource extends Google_Service_Resource
  1193. {
  1194. /**
  1195. * Moves entities to a GTM Folder. (move_folders.update)
  1196. *
  1197. * @param string $accountId The GTM Account ID.
  1198. * @param string $containerId The GTM Container ID.
  1199. * @param string $folderId The GTM Folder ID.
  1200. * @param array $optParams Optional parameters.
  1201. *
  1202. * @opt_param string variableId The variables to be moved to the folder.
  1203. * @opt_param string tagId The tags to be moved to the folder.
  1204. * @opt_param string triggerId The triggers to be moved to the folder.
  1205. */
  1206. public function update($accountId, $containerId, $folderId, $optParams = array())
  1207. {
  1208. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId);
  1209. $params = array_merge($params, $optParams);
  1210. return $this->call('update', array($params));
  1211. }
  1212. }
  1213. /**
  1214. * The "tags" collection of methods.
  1215. * Typical usage is:
  1216. * <code>
  1217. * $tagmanagerService = new Google_Service_TagManager(...);
  1218. * $tags = $tagmanagerService->tags;
  1219. * </code>
  1220. */
  1221. class Google_Service_TagManager_AccountsContainersTags_Resource extends Google_Service_Resource
  1222. {
  1223. /**
  1224. * Creates a GTM Tag. (tags.create)
  1225. *
  1226. * @param string $accountId The GTM Account ID.
  1227. * @param string $containerId The GTM Container ID.
  1228. * @param Google_Tag $postBody
  1229. * @param array $optParams Optional parameters.
  1230. * @return Google_Service_TagManager_Tag
  1231. */
  1232. public function create($accountId, $containerId, Google_Service_TagManager_Tag $postBody, $optParams = array())
  1233. {
  1234. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody);
  1235. $params = array_merge($params, $optParams);
  1236. return $this->call('create', array($params), "Google_Service_TagManager_Tag");
  1237. }
  1238. /**
  1239. * Deletes a GTM Tag. (tags.delete)
  1240. *
  1241. * @param string $accountId The GTM Account ID.
  1242. * @param string $containerId The GTM Container ID.
  1243. * @param string $tagId The GTM Tag ID.
  1244. * @param array $optParams Optional parameters.
  1245. */
  1246. public function delete($accountId, $containerId, $tagId, $optParams = array())
  1247. {
  1248. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'tagId' => $tagId);
  1249. $params = array_merge($params, $optParams);
  1250. return $this->call('delete', array($params));
  1251. }
  1252. /**
  1253. * Gets a GTM Tag. (tags.get)
  1254. *
  1255. * @param string $accountId The GTM Account ID.
  1256. * @param string $containerId The GTM Container ID.
  1257. * @param string $tagId The GTM Tag ID.
  1258. * @param array $optParams Optional parameters.
  1259. * @return Google_Service_TagManager_Tag
  1260. */
  1261. public function get($accountId, $containerId, $tagId, $optParams = array())
  1262. {
  1263. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'tagId' => $tagId);
  1264. $params = array_merge($params, $optParams);
  1265. return $this->call('get', array($params), "Google_Service_TagManager_Tag");
  1266. }
  1267. /**
  1268. * Lists all GTM Tags of a Container. (tags.listAccountsContainersTags)
  1269. *
  1270. * @param string $accountId The GTM Account ID.
  1271. * @param string $containerId The GTM Container ID.
  1272. * @param array $optParams Optional parameters.
  1273. * @return Google_Service_TagManager_ListTagsResponse
  1274. */
  1275. public function listAccountsContainersTags($accountId, $containerId, $optParams = array())
  1276. {
  1277. $params = array('accountId' => $accountId, 'containerId' => $containerId);
  1278. $params = array_merge($params, $optParams);
  1279. return $this->call('list', array($params), "Google_Service_TagManager_ListTagsResponse");
  1280. }
  1281. /**
  1282. * Updates a GTM Tag. (tags.update)
  1283. *
  1284. * @param string $accountId The GTM Account ID.
  1285. * @param string $containerId The GTM Container ID.
  1286. * @param string $tagId The GTM Tag ID.
  1287. * @param Google_Tag $postBody
  1288. * @param array $optParams Optional parameters.
  1289. *
  1290. * @opt_param string fingerprint When provided, this fingerprint must match the
  1291. * fingerprint of the tag in storage.
  1292. * @return Google_Service_TagManager_Tag
  1293. */
  1294. public function update($accountId, $containerId, $tagId, Google_Service_TagManager_Tag $postBody, $optParams = array())
  1295. {
  1296. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'tagId' => $tagId, 'postBody' => $postBody);
  1297. $params = array_merge($params, $optParams);
  1298. return $this->call('update', array($params), "Google_Service_TagManager_Tag");
  1299. }
  1300. }
  1301. /**
  1302. * The "triggers" collection of methods.
  1303. * Typical usage is:
  1304. * <code>
  1305. * $tagmanagerService = new Google_Service_TagManager(...);
  1306. * $triggers = $tagmanagerService->triggers;
  1307. * </code>
  1308. */
  1309. class Google_Service_TagManager_AccountsContainersTriggers_Resource extends Google_Service_Resource
  1310. {
  1311. /**
  1312. * Creates a GTM Trigger. (triggers.create)
  1313. *
  1314. * @param string $accountId The GTM Account ID.
  1315. * @param string $containerId The GTM Container ID.
  1316. * @param Google_Trigger $postBody
  1317. * @param array $optParams Optional parameters.
  1318. * @return Google_Service_TagManager_Trigger
  1319. */
  1320. public function create($accountId, $containerId, Google_Service_TagManager_Trigger $postBody, $optParams = array())
  1321. {
  1322. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody);
  1323. $params = array_merge($params, $optParams);
  1324. return $this->call('create', array($params), "Google_Service_TagManager_Trigger");
  1325. }
  1326. /**
  1327. * Deletes a GTM Trigger. (triggers.delete)
  1328. *
  1329. * @param string $accountId The GTM Account ID.
  1330. * @param string $containerId The GTM Container ID.
  1331. * @param string $triggerId The GTM Trigger ID.
  1332. * @param array $optParams Optional parameters.
  1333. */
  1334. public function delete($accountId, $containerId, $triggerId, $optParams = array())
  1335. {
  1336. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId);
  1337. $params = array_merge($params, $optParams);
  1338. return $this->call('delete', array($params));
  1339. }
  1340. /**
  1341. * Gets a GTM Trigger. (triggers.get)
  1342. *
  1343. * @param string $accountId The GTM Account ID.
  1344. * @param string $containerId The GTM Container ID.
  1345. * @param string $triggerId The GTM Trigger ID.
  1346. * @param array $optParams Optional parameters.
  1347. * @return Google_Service_TagManager_Trigger
  1348. */
  1349. public function get($accountId, $containerId, $triggerId, $optParams = array())
  1350. {
  1351. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId);
  1352. $params = array_merge($params, $optParams);
  1353. return $this->call('get', array($params), "Google_Service_TagManager_Trigger");
  1354. }
  1355. /**
  1356. * Lists all GTM Triggers of a Container.
  1357. * (triggers.listAccountsContainersTriggers)
  1358. *
  1359. * @param string $accountId The GTM Account ID.
  1360. * @param string $containerId The GTM Container ID.
  1361. * @param array $optParams …

Large files files are truncated, but you can click here to view the full file