No Description

ManufacturerCenter.php 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. /**
  18. * Service definition for ManufacturerCenter (v1).
  19. *
  20. * <p>
  21. * Public API for managing Manufacturer Center related data.</p>
  22. *
  23. * <p>
  24. * For more information about this service, see the API
  25. * <a href="https://developers.google.com/manufacturers/" target="_blank">Documentation</a>
  26. * </p>
  27. *
  28. * @author Google, Inc.
  29. */
  30. class Google_Service_ManufacturerCenter extends Google_Service
  31. {
  32. /** Manage your product listings for Google Manufacturer Center. */
  33. const MANUFACTURERCENTER =
  34. "https://www.googleapis.com/auth/manufacturercenter";
  35. public $accounts_products;
  36. /**
  37. * Constructs the internal representation of the ManufacturerCenter service.
  38. *
  39. * @param Google_Client $client
  40. */
  41. public function __construct(Google_Client $client)
  42. {
  43. parent::__construct($client);
  44. $this->rootUrl = 'https://manufacturers.googleapis.com/';
  45. $this->servicePath = '';
  46. $this->version = 'v1';
  47. $this->serviceName = 'manufacturers';
  48. $this->accounts_products = new Google_Service_ManufacturerCenter_Resource_AccountsProducts(
  49. $this,
  50. $this->serviceName,
  51. 'products',
  52. array(
  53. 'methods' => array(
  54. 'delete' => array(
  55. 'path' => 'v1/{+parent}/products/{+name}',
  56. 'httpMethod' => 'DELETE',
  57. 'parameters' => array(
  58. 'parent' => array(
  59. 'location' => 'path',
  60. 'type' => 'string',
  61. 'required' => true,
  62. ),
  63. 'name' => array(
  64. 'location' => 'path',
  65. 'type' => 'string',
  66. 'required' => true,
  67. ),
  68. ),
  69. ),'get' => array(
  70. 'path' => 'v1/{+parent}/products/{+name}',
  71. 'httpMethod' => 'GET',
  72. 'parameters' => array(
  73. 'parent' => array(
  74. 'location' => 'path',
  75. 'type' => 'string',
  76. 'required' => true,
  77. ),
  78. 'name' => array(
  79. 'location' => 'path',
  80. 'type' => 'string',
  81. 'required' => true,
  82. ),
  83. 'include' => array(
  84. 'location' => 'query',
  85. 'type' => 'string',
  86. 'repeated' => true,
  87. ),
  88. ),
  89. ),'list' => array(
  90. 'path' => 'v1/{+parent}/products',
  91. 'httpMethod' => 'GET',
  92. 'parameters' => array(
  93. 'parent' => array(
  94. 'location' => 'path',
  95. 'type' => 'string',
  96. 'required' => true,
  97. ),
  98. 'pageSize' => array(
  99. 'location' => 'query',
  100. 'type' => 'integer',
  101. ),
  102. 'include' => array(
  103. 'location' => 'query',
  104. 'type' => 'string',
  105. 'repeated' => true,
  106. ),
  107. 'pageToken' => array(
  108. 'location' => 'query',
  109. 'type' => 'string',
  110. ),
  111. ),
  112. ),'update' => array(
  113. 'path' => 'v1/{+parent}/products/{+name}',
  114. 'httpMethod' => 'PUT',
  115. 'parameters' => array(
  116. 'parent' => array(
  117. 'location' => 'path',
  118. 'type' => 'string',
  119. 'required' => true,
  120. ),
  121. 'name' => array(
  122. 'location' => 'path',
  123. 'type' => 'string',
  124. 'required' => true,
  125. ),
  126. ),
  127. ),
  128. )
  129. )
  130. );
  131. }
  132. }