Google_Service_Licensing

Service definition for Licensing (v1).

Defined (1)

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

/includes/api-libs/Google/Service/Licensing.php  
  1. class Google_Service_Licensing extends Google_Service 
  2.  
  3.  
  4. public $licenseAssignments; 
  5.  
  6.  
  7. /** 
  8. * Constructs the internal representation of the Licensing service. 
  9. * @param Google_Client $client 
  10. */ 
  11. public function __construct(Google_Client $client) 
  12. parent::__construct($client); 
  13. $this->servicePath = 'apps/licensing/v1/product/'; 
  14. $this->version = 'v1'; 
  15. $this->serviceName = 'licensing'; 
  16.  
  17. $this->licenseAssignments = new Google_Service_Licensing_LicenseAssignments_Resource( 
  18. $this,  
  19. $this->serviceName,  
  20. 'licenseAssignments',  
  21. array( 
  22. 'methods' => array( 
  23. 'delete' => array( 
  24. 'path' => '{productId}/sku/{skuId}/user/{userId}',  
  25. 'httpMethod' => 'DELETE',  
  26. 'parameters' => array( 
  27. 'productId' => array( 
  28. 'location' => 'path',  
  29. 'type' => 'string',  
  30. 'required' => true,  
  31. ),  
  32. 'skuId' => array( 
  33. 'location' => 'path',  
  34. 'type' => 'string',  
  35. 'required' => true,  
  36. ),  
  37. 'userId' => array( 
  38. 'location' => 'path',  
  39. 'type' => 'string',  
  40. 'required' => true,  
  41. ),  
  42. ),  
  43. ), 'get' => array( 
  44. 'path' => '{productId}/sku/{skuId}/user/{userId}',  
  45. 'httpMethod' => 'GET',  
  46. 'parameters' => array( 
  47. 'productId' => array( 
  48. 'location' => 'path',  
  49. 'type' => 'string',  
  50. 'required' => true,  
  51. ),  
  52. 'skuId' => array( 
  53. 'location' => 'path',  
  54. 'type' => 'string',  
  55. 'required' => true,  
  56. ),  
  57. 'userId' => array( 
  58. 'location' => 'path',  
  59. 'type' => 'string',  
  60. 'required' => true,  
  61. ),  
  62. ),  
  63. ), 'insert' => array( 
  64. 'path' => '{productId}/sku/{skuId}/user',  
  65. 'httpMethod' => 'POST',  
  66. 'parameters' => array( 
  67. 'productId' => array( 
  68. 'location' => 'path',  
  69. 'type' => 'string',  
  70. 'required' => true,  
  71. ),  
  72. 'skuId' => array( 
  73. 'location' => 'path',  
  74. 'type' => 'string',  
  75. 'required' => true,  
  76. ),  
  77. ),  
  78. ), 'listForProduct' => array( 
  79. 'path' => '{productId}/users',  
  80. 'httpMethod' => 'GET',  
  81. 'parameters' => array( 
  82. 'productId' => array( 
  83. 'location' => 'path',  
  84. 'type' => 'string',  
  85. 'required' => true,  
  86. ),  
  87. 'customerId' => array( 
  88. 'location' => 'query',  
  89. 'type' => 'string',  
  90. 'required' => true,  
  91. ),  
  92. 'pageToken' => array( 
  93. 'location' => 'query',  
  94. 'type' => 'string',  
  95. ),  
  96. 'maxResults' => array( 
  97. 'location' => 'query',  
  98. 'type' => 'integer',  
  99. ),  
  100. ),  
  101. ), 'listForProductAndSku' => array( 
  102. 'path' => '{productId}/sku/{skuId}/users',  
  103. 'httpMethod' => 'GET',  
  104. 'parameters' => array( 
  105. 'productId' => array( 
  106. 'location' => 'path',  
  107. 'type' => 'string',  
  108. 'required' => true,  
  109. ),  
  110. 'skuId' => array( 
  111. 'location' => 'path',  
  112. 'type' => 'string',  
  113. 'required' => true,  
  114. ),  
  115. 'customerId' => array( 
  116. 'location' => 'query',  
  117. 'type' => 'string',  
  118. 'required' => true,  
  119. ),  
  120. 'pageToken' => array( 
  121. 'location' => 'query',  
  122. 'type' => 'string',  
  123. ),  
  124. 'maxResults' => array( 
  125. 'location' => 'query',  
  126. 'type' => 'integer',  
  127. ),  
  128. ),  
  129. ), 'patch' => array( 
  130. 'path' => '{productId}/sku/{skuId}/user/{userId}',  
  131. 'httpMethod' => 'PATCH',  
  132. 'parameters' => array( 
  133. 'productId' => array( 
  134. 'location' => 'path',  
  135. 'type' => 'string',  
  136. 'required' => true,  
  137. ),  
  138. 'skuId' => array( 
  139. 'location' => 'path',  
  140. 'type' => 'string',  
  141. 'required' => true,  
  142. ),  
  143. 'userId' => array( 
  144. 'location' => 'path',  
  145. 'type' => 'string',  
  146. 'required' => true,  
  147. ),  
  148. ),  
  149. ), 'update' => array( 
  150. 'path' => '{productId}/sku/{skuId}/user/{userId}',  
  151. 'httpMethod' => 'PUT',  
  152. 'parameters' => array( 
  153. 'productId' => array( 
  154. 'location' => 'path',  
  155. 'type' => 'string',  
  156. 'required' => true,  
  157. ),  
  158. 'skuId' => array( 
  159. 'location' => 'path',  
  160. 'type' => 'string',  
  161. 'required' => true,  
  162. ),  
  163. 'userId' => array( 
  164. 'location' => 'path',  
  165. 'type' => 'string',  
  166. 'required' => true,  
  167. ),  
  168. ),  
  169. ),  
  170. );