MonsterInsights_GA_Lib_Service_TagManager_AccountsPermissions_Resource

The "permissions" 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_AccountsPermissions_Resource extends MonsterInsights_GA_Lib_Service_Resource 
  2.  
  3. /** 
  4. * Creates a user's Account & Container Permissions. (permissions.create) 
  5. * @param string $accountId The GTM Account ID. 
  6. * @param Google_UserAccess $postBody 
  7. * @param array $optParams Optional parameters. 
  8. * @return MonsterInsights_GA_Lib_Service_TagManager_UserAccess 
  9. */ 
  10. public function create($accountId, MonsterInsights_GA_Lib_Service_TagManager_UserAccess $postBody, $optParams = array()) 
  11. $params = array('accountId' => $accountId, 'postBody' => $postBody); 
  12. $params = array_merge($params, $optParams); 
  13. return $this->call('create', array($params), "MonsterInsights_GA_Lib_Service_TagManager_UserAccess"); 
  14.  
  15. /** 
  16. * Removes a user from the account, revoking access to it and all of its 
  17. * containers. (permissions.delete) 
  18. * @param string $accountId The GTM Account ID. 
  19. * @param string $permissionId The GTM User ID. 
  20. * @param array $optParams Optional parameters. 
  21. */ 
  22. public function delete($accountId, $permissionId, $optParams = array()) 
  23. $params = array('accountId' => $accountId, 'permissionId' => $permissionId); 
  24. $params = array_merge($params, $optParams); 
  25. return $this->call('delete', array($params)); 
  26.  
  27. /** 
  28. * Gets a user's Account & Container Permissions. (permissions.get) 
  29. * @param string $accountId The GTM Account ID. 
  30. * @param string $permissionId The GTM User ID. 
  31. * @param array $optParams Optional parameters. 
  32. * @return MonsterInsights_GA_Lib_Service_TagManager_UserAccess 
  33. */ 
  34. public function get($accountId, $permissionId, $optParams = array()) 
  35. $params = array('accountId' => $accountId, 'permissionId' => $permissionId); 
  36. $params = array_merge($params, $optParams); 
  37. return $this->call('get', array($params), "MonsterInsights_GA_Lib_Service_TagManager_UserAccess"); 
  38.  
  39. /** 
  40. * List all users that have access to the account along with Account and 
  41. * Container Permissions granted to each of them. 
  42. * (permissions.listAccountsPermissions) 
  43. * @param string $accountId The GTM Account ID. @required 
  44. * tagmanager.accounts.permissions.list 
  45. * @param array $optParams Optional parameters. 
  46. * @return MonsterInsights_GA_Lib_Service_TagManager_ListAccountUsersResponse 
  47. */ 
  48. public function listAccountsPermissions($accountId, $optParams = array()) 
  49. $params = array('accountId' => $accountId); 
  50. $params = array_merge($params, $optParams); 
  51. return $this->call('list', array($params), "MonsterInsights_GA_Lib_Service_TagManager_ListAccountUsersResponse"); 
  52.  
  53. /** 
  54. * Updates a user's Account & Container Permissions. (permissions.update) 
  55. * @param string $accountId The GTM Account ID. 
  56. * @param string $permissionId The GTM User ID. 
  57. * @param Google_UserAccess $postBody 
  58. * @param array $optParams Optional parameters. 
  59. * @return MonsterInsights_GA_Lib_Service_TagManager_UserAccess 
  60. */ 
  61. public function update($accountId, $permissionId, MonsterInsights_GA_Lib_Service_TagManager_UserAccess $postBody, $optParams = array()) 
  62. $params = array('accountId' => $accountId, 'permissionId' => $permissionId, 'postBody' => $postBody); 
  63. $params = array_merge($params, $optParams); 
  64. return $this->call('update', array($params), "MonsterInsights_GA_Lib_Service_TagManager_UserAccess");