PageRenderTime 54ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetTcpProxies.php

https://gitlab.com/efabian/maya
PHP | 211 lines | 40 code | 1 blank | 170 comment | 0 complexity | 6a46b6b8e7182f6dc161927f74ef6ccb MD5 | raw file
  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. * The "targetTcpProxies" collection of methods.
  19. * Typical usage is:
  20. * <code>
  21. * $computeService = new Google_Service_Compute(...);
  22. * $targetTcpProxies = $computeService->targetTcpProxies;
  23. * </code>
  24. */
  25. class Google_Service_Compute_Resource_TargetTcpProxies extends Google_Service_Resource
  26. {
  27. /**
  28. * Deletes the specified TargetTcpProxy resource. (targetTcpProxies.delete)
  29. *
  30. * @param string $project Project ID for this request.
  31. * @param string $targetTcpProxy Name of the TargetTcpProxy resource to delete.
  32. * @param array $optParams Optional parameters.
  33. *
  34. * @opt_param string requestId An optional request ID to identify requests.
  35. * Specify a unique request ID so that if you must retry your request, the
  36. * server will know to ignore the request if it has already been completed.
  37. *
  38. * For example, consider a situation where you make an initial request and the
  39. * request times out. If you make the request again with the same request ID,
  40. * the server can check if original operation with the same request ID was
  41. * received, and if so, will ignore the second request. This prevents clients
  42. * from accidentally creating duplicate commitments.
  43. *
  44. * The request ID must be a valid UUID with the exception that zero UUID is not
  45. * supported (00000000-0000-0000-0000-000000000000).
  46. * @return Google_Service_Compute_Operation
  47. */
  48. public function delete($project, $targetTcpProxy, $optParams = array())
  49. {
  50. $params = array('project' => $project, 'targetTcpProxy' => $targetTcpProxy);
  51. $params = array_merge($params, $optParams);
  52. return $this->call('delete', array($params), "Google_Service_Compute_Operation");
  53. }
  54. /**
  55. * Returns the specified TargetTcpProxy resource. Gets a list of available
  56. * target TCP proxies by making a list() request. (targetTcpProxies.get)
  57. *
  58. * @param string $project Project ID for this request.
  59. * @param string $targetTcpProxy Name of the TargetTcpProxy resource to return.
  60. * @param array $optParams Optional parameters.
  61. * @return Google_Service_Compute_TargetTcpProxy
  62. */
  63. public function get($project, $targetTcpProxy, $optParams = array())
  64. {
  65. $params = array('project' => $project, 'targetTcpProxy' => $targetTcpProxy);
  66. $params = array_merge($params, $optParams);
  67. return $this->call('get', array($params), "Google_Service_Compute_TargetTcpProxy");
  68. }
  69. /**
  70. * Creates a TargetTcpProxy resource in the specified project using the data
  71. * included in the request. (targetTcpProxies.insert)
  72. *
  73. * @param string $project Project ID for this request.
  74. * @param Google_Service_Compute_TargetTcpProxy $postBody
  75. * @param array $optParams Optional parameters.
  76. *
  77. * @opt_param string requestId An optional request ID to identify requests.
  78. * Specify a unique request ID so that if you must retry your request, the
  79. * server will know to ignore the request if it has already been completed.
  80. *
  81. * For example, consider a situation where you make an initial request and the
  82. * request times out. If you make the request again with the same request ID,
  83. * the server can check if original operation with the same request ID was
  84. * received, and if so, will ignore the second request. This prevents clients
  85. * from accidentally creating duplicate commitments.
  86. *
  87. * The request ID must be a valid UUID with the exception that zero UUID is not
  88. * supported (00000000-0000-0000-0000-000000000000).
  89. * @return Google_Service_Compute_Operation
  90. */
  91. public function insert($project, Google_Service_Compute_TargetTcpProxy $postBody, $optParams = array())
  92. {
  93. $params = array('project' => $project, 'postBody' => $postBody);
  94. $params = array_merge($params, $optParams);
  95. return $this->call('insert', array($params), "Google_Service_Compute_Operation");
  96. }
  97. /**
  98. * Retrieves the list of TargetTcpProxy resources available to the specified
  99. * project. (targetTcpProxies.listTargetTcpProxies)
  100. *
  101. * @param string $project Project ID for this request.
  102. * @param array $optParams Optional parameters.
  103. *
  104. * @opt_param string filter A filter expression that filters resources listed in
  105. * the response. The expression must specify the field name, a comparison
  106. * operator, and the value that you want to use for filtering. The value must be
  107. * a string, a number, or a boolean. The comparison operator must be either `=`,
  108. * `!=`, `>`, or `<`.
  109. *
  110. * For example, if you are filtering Compute Engine instances, you can exclude
  111. * instances named `example-instance` by specifying `name != example-instance`.
  112. *
  113. * You can also filter nested fields. For example, you could specify
  114. * `scheduling.automaticRestart = false` to include instances only if they are
  115. * not scheduled for automatic restarts. You can use filtering on nested fields
  116. * to filter based on resource labels.
  117. *
  118. * To filter on multiple expressions, provide each separate expression within
  119. * parentheses. For example: ``` (scheduling.automaticRestart = true)
  120. * (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
  121. * expression. However, you can include `AND` and `OR` expressions explicitly.
  122. * For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
  123. * Broadwell") AND (scheduling.automaticRestart = true) ```
  124. * @opt_param string maxResults The maximum number of results per page that
  125. * should be returned. If the number of available results is larger than
  126. * `maxResults`, Compute Engine returns a `nextPageToken` that can be used to
  127. * get the next page of results in subsequent list requests. Acceptable values
  128. * are `0` to `500`, inclusive. (Default: `500`)
  129. * @opt_param string orderBy Sorts list results by a certain order. By default,
  130. * results are returned in alphanumerical order based on the resource name.
  131. *
  132. * You can also sort results in descending order based on the creation timestamp
  133. * using `orderBy="creationTimestamp desc"`. This sorts results based on the
  134. * `creationTimestamp` field in reverse chronological order (newest result
  135. * first). Use this to sort resources like operations so that the newest
  136. * operation is returned first.
  137. *
  138. * Currently, only sorting by `name` or `creationTimestamp desc` is supported.
  139. * @opt_param string pageToken Specifies a page token to use. Set `pageToken` to
  140. * the `nextPageToken` returned by a previous list request to get the next page
  141. * of results.
  142. * @return Google_Service_Compute_TargetTcpProxyList
  143. */
  144. public function listTargetTcpProxies($project, $optParams = array())
  145. {
  146. $params = array('project' => $project);
  147. $params = array_merge($params, $optParams);
  148. return $this->call('list', array($params), "Google_Service_Compute_TargetTcpProxyList");
  149. }
  150. /**
  151. * Changes the BackendService for TargetTcpProxy.
  152. * (targetTcpProxies.setBackendService)
  153. *
  154. * @param string $project Project ID for this request.
  155. * @param string $targetTcpProxy Name of the TargetTcpProxy resource whose
  156. * BackendService resource is to be set.
  157. * @param Google_Service_Compute_TargetTcpProxiesSetBackendServiceRequest $postBody
  158. * @param array $optParams Optional parameters.
  159. *
  160. * @opt_param string requestId An optional request ID to identify requests.
  161. * Specify a unique request ID so that if you must retry your request, the
  162. * server will know to ignore the request if it has already been completed.
  163. *
  164. * For example, consider a situation where you make an initial request and the
  165. * request times out. If you make the request again with the same request ID,
  166. * the server can check if original operation with the same request ID was
  167. * received, and if so, will ignore the second request. This prevents clients
  168. * from accidentally creating duplicate commitments.
  169. *
  170. * The request ID must be a valid UUID with the exception that zero UUID is not
  171. * supported (00000000-0000-0000-0000-000000000000).
  172. * @return Google_Service_Compute_Operation
  173. */
  174. public function setBackendService($project, $targetTcpProxy, Google_Service_Compute_TargetTcpProxiesSetBackendServiceRequest $postBody, $optParams = array())
  175. {
  176. $params = array('project' => $project, 'targetTcpProxy' => $targetTcpProxy, 'postBody' => $postBody);
  177. $params = array_merge($params, $optParams);
  178. return $this->call('setBackendService', array($params), "Google_Service_Compute_Operation");
  179. }
  180. /**
  181. * Changes the ProxyHeaderType for TargetTcpProxy.
  182. * (targetTcpProxies.setProxyHeader)
  183. *
  184. * @param string $project Project ID for this request.
  185. * @param string $targetTcpProxy Name of the TargetTcpProxy resource whose
  186. * ProxyHeader is to be set.
  187. * @param Google_Service_Compute_TargetTcpProxiesSetProxyHeaderRequest $postBody
  188. * @param array $optParams Optional parameters.
  189. *
  190. * @opt_param string requestId An optional request ID to identify requests.
  191. * Specify a unique request ID so that if you must retry your request, the
  192. * server will know to ignore the request if it has already been completed.
  193. *
  194. * For example, consider a situation where you make an initial request and the
  195. * request times out. If you make the request again with the same request ID,
  196. * the server can check if original operation with the same request ID was
  197. * received, and if so, will ignore the second request. This prevents clients
  198. * from accidentally creating duplicate commitments.
  199. *
  200. * The request ID must be a valid UUID with the exception that zero UUID is not
  201. * supported (00000000-0000-0000-0000-000000000000).
  202. * @return Google_Service_Compute_Operation
  203. */
  204. public function setProxyHeader($project, $targetTcpProxy, Google_Service_Compute_TargetTcpProxiesSetProxyHeaderRequest $postBody, $optParams = array())
  205. {
  206. $params = array('project' => $project, 'targetTcpProxy' => $targetTcpProxy, 'postBody' => $postBody);
  207. $params = array_merge($params, $optParams);
  208. return $this->call('setProxyHeader', array($params), "Google_Service_Compute_Operation");
  209. }
  210. }