MonsterInsights_GA_Lib_Service_TagManager_AccountsContainersVersions_Resource

The "versions" collection of methods.

Defined (1)

The class is defined in the following location(s).

/assets/lib/google/src/Google/Service/TagManager.php  
  1. class MonsterInsights_GA_Lib_Service_TagManager_AccountsContainersVersions_Resource extends MonsterInsights_GA_Lib_Service_Resource 
  2.  
  3. /** 
  4. * Creates a Container Version. (versions.create) 
  5. * @param string $accountId The GTM Account ID. 
  6. * @param string $containerId The GTM Container ID. 
  7. * @param Google_CreateContainerVersionRequestVersionOptions $postBody 
  8. * @param array $optParams Optional parameters. 
  9. * @return MonsterInsights_GA_Lib_Service_TagManager_CreateContainerVersionResponse 
  10. */ 
  11. public function create($accountId, $containerId, MonsterInsights_GA_Lib_Service_TagManager_CreateContainerVersionRequestVersionOptions $postBody, $optParams = array()) 
  12. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody); 
  13. $params = array_merge($params, $optParams); 
  14. return $this->call('create', array($params), "MonsterInsights_GA_Lib_Service_TagManager_CreateContainerVersionResponse"); 
  15.  
  16. /** 
  17. * Deletes a Container Version. (versions.delete) 
  18. * @param string $accountId The GTM Account ID. 
  19. * @param string $containerId The GTM Container ID. 
  20. * @param string $containerVersionId The GTM Container Version ID. 
  21. * @param array $optParams Optional parameters. 
  22. */ 
  23. public function delete($accountId, $containerId, $containerVersionId, $optParams = array()) 
  24. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); 
  25. $params = array_merge($params, $optParams); 
  26. return $this->call('delete', array($params)); 
  27.  
  28. /** 
  29. * Gets a Container Version. (versions.get) 
  30. * @param string $accountId The GTM Account ID. 
  31. * @param string $containerId The GTM Container ID. 
  32. * @param string $containerVersionId The GTM Container Version ID. Specify 
  33. * published to retrieve the currently published version. 
  34. * @param array $optParams Optional parameters. 
  35. * @return MonsterInsights_GA_Lib_Service_TagManager_ContainerVersion 
  36. */ 
  37. public function get($accountId, $containerId, $containerVersionId, $optParams = array()) 
  38. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); 
  39. $params = array_merge($params, $optParams); 
  40. return $this->call('get', array($params), "MonsterInsights_GA_Lib_Service_TagManager_ContainerVersion"); 
  41.  
  42. /** 
  43. * Lists all Container Versions of a GTM Container. 
  44. * (versions.listAccountsContainersVersions) 
  45. * @param string $accountId The GTM Account ID. 
  46. * @param string $containerId The GTM Container ID. 
  47. * @param array $optParams Optional parameters. 
  48. * @opt_param bool headers Retrieve headers only when true. 
  49. * @opt_param bool includeDeleted Also retrieve deleted (archived) versions when 
  50. * true. 
  51. * @return MonsterInsights_GA_Lib_Service_TagManager_ListContainerVersionsResponse 
  52. */ 
  53. public function listAccountsContainersVersions($accountId, $containerId, $optParams = array()) 
  54. $params = array('accountId' => $accountId, 'containerId' => $containerId); 
  55. $params = array_merge($params, $optParams); 
  56. return $this->call('list', array($params), "MonsterInsights_GA_Lib_Service_TagManager_ListContainerVersionsResponse"); 
  57.  
  58. /** 
  59. * Publishes a Container Version. (versions.publish) 
  60. * @param string $accountId The GTM Account ID. 
  61. * @param string $containerId The GTM Container ID. 
  62. * @param string $containerVersionId The GTM Container Version ID. 
  63. * @param array $optParams Optional parameters. 
  64. * @opt_param string fingerprint When provided, this fingerprint must match the 
  65. * fingerprint of the container version in storage. 
  66. * @return MonsterInsights_GA_Lib_Service_TagManager_PublishContainerVersionResponse 
  67. */ 
  68. public function publish($accountId, $containerId, $containerVersionId, $optParams = array()) 
  69. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); 
  70. $params = array_merge($params, $optParams); 
  71. return $this->call('publish', array($params), "MonsterInsights_GA_Lib_Service_TagManager_PublishContainerVersionResponse"); 
  72.  
  73. /** 
  74. * Restores a Container Version. This will overwrite the container's current 
  75. * configuration (including its variables, triggers and tags). The operation 
  76. * will not have any effect on the version that is being served (i.e. the 
  77. * published version). (versions.restore) 
  78. * @param string $accountId The GTM Account ID. 
  79. * @param string $containerId The GTM Container ID. 
  80. * @param string $containerVersionId The GTM Container Version ID. 
  81. * @param array $optParams Optional parameters. 
  82. * @return MonsterInsights_GA_Lib_Service_TagManager_ContainerVersion 
  83. */ 
  84. public function restore($accountId, $containerId, $containerVersionId, $optParams = array()) 
  85. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); 
  86. $params = array_merge($params, $optParams); 
  87. return $this->call('restore', array($params), "MonsterInsights_GA_Lib_Service_TagManager_ContainerVersion"); 
  88.  
  89. /** 
  90. * Undeletes a Container Version. (versions.undelete) 
  91. * @param string $accountId The GTM Account ID. 
  92. * @param string $containerId The GTM Container ID. 
  93. * @param string $containerVersionId The GTM Container Version ID. 
  94. * @param array $optParams Optional parameters. 
  95. * @return MonsterInsights_GA_Lib_Service_TagManager_ContainerVersion 
  96. */ 
  97. public function undelete($accountId, $containerId, $containerVersionId, $optParams = array()) 
  98. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId); 
  99. $params = array_merge($params, $optParams); 
  100. return $this->call('undelete', array($params), "MonsterInsights_GA_Lib_Service_TagManager_ContainerVersion"); 
  101.  
  102. /** 
  103. * Updates a Container Version. (versions.update) 
  104. * @param string $accountId The GTM Account ID. 
  105. * @param string $containerId The GTM Container ID. 
  106. * @param string $containerVersionId The GTM Container Version ID. 
  107. * @param Google_ContainerVersion $postBody 
  108. * @param array $optParams Optional parameters. 
  109. * @opt_param string fingerprint When provided, this fingerprint must match the 
  110. * fingerprint of the container version in storage. 
  111. * @return MonsterInsights_GA_Lib_Service_TagManager_ContainerVersion 
  112. */ 
  113. public function update($accountId, $containerId, $containerVersionId, MonsterInsights_GA_Lib_Service_TagManager_ContainerVersion $postBody, $optParams = array()) 
  114. $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId, 'postBody' => $postBody); 
  115. $params = array_merge($params, $optParams); 
  116. return $this->call('update', array($params), "MonsterInsights_GA_Lib_Service_TagManager_ContainerVersion");