PageRenderTime 44ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

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

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