PageRenderTime 42ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/application/third_party/google-api/vendor/google/apiclient-services/src/Google/Service/Compute/Resource/TargetVpnGateways.php

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