설명 없음

ServiceControl.php 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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 ServiceControl (v1).
  19. *
  20. * <p>
  21. * Google Service Control provides control plane functionality to managed
  22. * services, such as logging, monitoring, and status checks.</p>
  23. *
  24. * <p>
  25. * For more information about this service, see the API
  26. * <a href="https://cloud.google.com/service-control/" target="_blank">Documentation</a>
  27. * </p>
  28. *
  29. * @author Google, Inc.
  30. */
  31. class Google_Service_ServiceControl extends Google_Service
  32. {
  33. /** View and manage your data across Google Cloud Platform services. */
  34. const CLOUD_PLATFORM =
  35. "https://www.googleapis.com/auth/cloud-platform";
  36. /** Manage your Google Service Control data. */
  37. const SERVICECONTROL =
  38. "https://www.googleapis.com/auth/servicecontrol";
  39. public $services;
  40. /**
  41. * Constructs the internal representation of the ServiceControl service.
  42. *
  43. * @param Google_Client $client
  44. */
  45. public function __construct(Google_Client $client)
  46. {
  47. parent::__construct($client);
  48. $this->rootUrl = 'https://servicecontrol.googleapis.com/';
  49. $this->servicePath = '';
  50. $this->version = 'v1';
  51. $this->serviceName = 'servicecontrol';
  52. $this->services = new Google_Service_ServiceControl_Resource_Services(
  53. $this,
  54. $this->serviceName,
  55. 'services',
  56. array(
  57. 'methods' => array(
  58. 'allocateQuota' => array(
  59. 'path' => 'v1/services/{serviceName}:allocateQuota',
  60. 'httpMethod' => 'POST',
  61. 'parameters' => array(
  62. 'serviceName' => array(
  63. 'location' => 'path',
  64. 'type' => 'string',
  65. 'required' => true,
  66. ),
  67. ),
  68. ),'check' => array(
  69. 'path' => 'v1/services/{serviceName}:check',
  70. 'httpMethod' => 'POST',
  71. 'parameters' => array(
  72. 'serviceName' => array(
  73. 'location' => 'path',
  74. 'type' => 'string',
  75. 'required' => true,
  76. ),
  77. ),
  78. ),'endReconciliation' => array(
  79. 'path' => 'v1/services/{serviceName}:endReconciliation',
  80. 'httpMethod' => 'POST',
  81. 'parameters' => array(
  82. 'serviceName' => array(
  83. 'location' => 'path',
  84. 'type' => 'string',
  85. 'required' => true,
  86. ),
  87. ),
  88. ),'releaseQuota' => array(
  89. 'path' => 'v1/services/{serviceName}:releaseQuota',
  90. 'httpMethod' => 'POST',
  91. 'parameters' => array(
  92. 'serviceName' => array(
  93. 'location' => 'path',
  94. 'type' => 'string',
  95. 'required' => true,
  96. ),
  97. ),
  98. ),'report' => array(
  99. 'path' => 'v1/services/{serviceName}:report',
  100. 'httpMethod' => 'POST',
  101. 'parameters' => array(
  102. 'serviceName' => array(
  103. 'location' => 'path',
  104. 'type' => 'string',
  105. 'required' => true,
  106. ),
  107. ),
  108. ),'startReconciliation' => array(
  109. 'path' => 'v1/services/{serviceName}:startReconciliation',
  110. 'httpMethod' => 'POST',
  111. 'parameters' => array(
  112. 'serviceName' => array(
  113. 'location' => 'path',
  114. 'type' => 'string',
  115. 'required' => true,
  116. ),
  117. ),
  118. ),
  119. )
  120. )
  121. );
  122. }
  123. }