PageRenderTime 91ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 1ms

/vendor/google/apiclient-services/src/Compute/Resource/RegionUrlMaps.php

https://gitlab.com/Japang-Jawara/jawara-penilaian
PHP | 206 lines | 53 code | 4 blank | 149 comment | 0 complexity | 888721f709e53c889bc0c265b86997b8 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. namespace Google\Service\Compute\Resource;
  18. use Google\Service\Compute\Operation;
  19. use Google\Service\Compute\RegionUrlMapsValidateRequest;
  20. use Google\Service\Compute\UrlMap;
  21. use Google\Service\Compute\UrlMapList;
  22. use Google\Service\Compute\UrlMapsValidateResponse;
  23. /**
  24. * The "regionUrlMaps" collection of methods.
  25. * Typical usage is:
  26. * <code>
  27. * $computeService = new Google\Service\Compute(...);
  28. * $regionUrlMaps = $computeService->regionUrlMaps;
  29. * </code>
  30. */
  31. class RegionUrlMaps extends \Google\Service\Resource
  32. {
  33. /**
  34. * Deletes the specified UrlMap resource. (regionUrlMaps.delete)
  35. *
  36. * @param string $project Project ID for this request.
  37. * @param string $region Name of the region scoping this request.
  38. * @param string $urlMap Name of the UrlMap resource to delete.
  39. * @param array $optParams Optional parameters.
  40. *
  41. * @opt_param string requestId begin_interface: MixerMutationRequestBuilder
  42. * Request ID to support idempotency.
  43. * @return Operation
  44. */
  45. public function delete($project, $region, $urlMap, $optParams = [])
  46. {
  47. $params = ['project' => $project, 'region' => $region, 'urlMap' => $urlMap];
  48. $params = array_merge($params, $optParams);
  49. return $this->call('delete', [$params], Operation::class);
  50. }
  51. /**
  52. * Returns the specified UrlMap resource. Gets a list of available URL maps by
  53. * making a list() request. (regionUrlMaps.get)
  54. *
  55. * @param string $project Project ID for this request.
  56. * @param string $region Name of the region scoping this request.
  57. * @param string $urlMap Name of the UrlMap resource to return.
  58. * @param array $optParams Optional parameters.
  59. * @return UrlMap
  60. */
  61. public function get($project, $region, $urlMap, $optParams = [])
  62. {
  63. $params = ['project' => $project, 'region' => $region, 'urlMap' => $urlMap];
  64. $params = array_merge($params, $optParams);
  65. return $this->call('get', [$params], UrlMap::class);
  66. }
  67. /**
  68. * Creates a UrlMap resource in the specified project using the data included in
  69. * the request. (regionUrlMaps.insert)
  70. *
  71. * @param string $project Project ID for this request.
  72. * @param string $region Name of the region scoping this request.
  73. * @param UrlMap $postBody
  74. * @param array $optParams Optional parameters.
  75. *
  76. * @opt_param string requestId begin_interface: MixerMutationRequestBuilder
  77. * Request ID to support idempotency.
  78. * @return Operation
  79. */
  80. public function insert($project, $region, UrlMap $postBody, $optParams = [])
  81. {
  82. $params = ['project' => $project, 'region' => $region, 'postBody' => $postBody];
  83. $params = array_merge($params, $optParams);
  84. return $this->call('insert', [$params], Operation::class);
  85. }
  86. /**
  87. * Retrieves the list of UrlMap resources available to the specified project in
  88. * the specified region. (regionUrlMaps.listRegionUrlMaps)
  89. *
  90. * @param string $project Project ID for this request.
  91. * @param string $region Name of the region scoping this request.
  92. * @param array $optParams Optional parameters.
  93. *
  94. * @opt_param string filter A filter expression that filters resources listed in
  95. * the response. The expression must specify the field name, an operator, and
  96. * the value that you want to use for filtering. The value must be a string, a
  97. * number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`,
  98. * `>=` or `:`. For example, if you are filtering Compute Engine instances, you
  99. * can exclude instances named `example-instance` by specifying `name !=
  100. * example-instance`. The `:` operator can be used with string fields to match
  101. * substrings. For non-string fields it is equivalent to the `=` operator. The
  102. * `:*` comparison can be used to test whether a key has been defined. For
  103. * example, to find all objects with `owner` label use: ``` labels.owner:* ```
  104. * You can also filter nested fields. For example, you could specify
  105. * `scheduling.automaticRestart = false` to include instances only if they are
  106. * not scheduled for automatic restarts. You can use filtering on nested fields
  107. * to filter based on resource labels. To filter on multiple expressions,
  108. * provide each separate expression within parentheses. For example: ```
  109. * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
  110. * default, each expression is an `AND` expression. However, you can include
  111. * `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
  112. * Skylake") OR (cpuPlatform = "Intel Broadwell") AND
  113. * (scheduling.automaticRestart = true) ```
  114. * @opt_param string maxResults The maximum number of results per page that
  115. * should be returned. If the number of available results is larger than
  116. * `maxResults`, Compute Engine returns a `nextPageToken` that can be used to
  117. * get the next page of results in subsequent list requests. Acceptable values
  118. * are `0` to `500`, inclusive. (Default: `500`)
  119. * @opt_param string orderBy Sorts list results by a certain order. By default,
  120. * results are returned in alphanumerical order based on the resource name. You
  121. * can also sort results in descending order based on the creation timestamp
  122. * using `orderBy="creationTimestamp desc"`. This sorts results based on the
  123. * `creationTimestamp` field in reverse chronological order (newest result
  124. * first). Use this to sort resources like operations so that the newest
  125. * operation is returned first. Currently, only sorting by `name` or
  126. * `creationTimestamp desc` is supported.
  127. * @opt_param string pageToken Specifies a page token to use. Set `pageToken` to
  128. * the `nextPageToken` returned by a previous list request to get the next page
  129. * of results.
  130. * @opt_param bool returnPartialSuccess Opt-in for partial success behavior
  131. * which provides partial results in case of failure. The default value is
  132. * false.
  133. * @return UrlMapList
  134. */
  135. public function listRegionUrlMaps($project, $region, $optParams = [])
  136. {
  137. $params = ['project' => $project, 'region' => $region];
  138. $params = array_merge($params, $optParams);
  139. return $this->call('list', [$params], UrlMapList::class);
  140. }
  141. /**
  142. * Patches the specified UrlMap resource with the data included in the request.
  143. * This method supports PATCH semantics and uses JSON merge patch format and
  144. * processing rules. (regionUrlMaps.patch)
  145. *
  146. * @param string $project Project ID for this request.
  147. * @param string $region Name of the region scoping this request.
  148. * @param string $urlMap Name of the UrlMap resource to patch.
  149. * @param UrlMap $postBody
  150. * @param array $optParams Optional parameters.
  151. *
  152. * @opt_param string requestId begin_interface: MixerMutationRequestBuilder
  153. * Request ID to support idempotency.
  154. * @return Operation
  155. */
  156. public function patch($project, $region, $urlMap, UrlMap $postBody, $optParams = [])
  157. {
  158. $params = ['project' => $project, 'region' => $region, 'urlMap' => $urlMap, 'postBody' => $postBody];
  159. $params = array_merge($params, $optParams);
  160. return $this->call('patch', [$params], Operation::class);
  161. }
  162. /**
  163. * Updates the specified UrlMap resource with the data included in the request.
  164. * (regionUrlMaps.update)
  165. *
  166. * @param string $project Project ID for this request.
  167. * @param string $region Name of the region scoping this request.
  168. * @param string $urlMap Name of the UrlMap resource to update.
  169. * @param UrlMap $postBody
  170. * @param array $optParams Optional parameters.
  171. *
  172. * @opt_param string requestId begin_interface: MixerMutationRequestBuilder
  173. * Request ID to support idempotency.
  174. * @return Operation
  175. */
  176. public function update($project, $region, $urlMap, UrlMap $postBody, $optParams = [])
  177. {
  178. $params = ['project' => $project, 'region' => $region, 'urlMap' => $urlMap, 'postBody' => $postBody];
  179. $params = array_merge($params, $optParams);
  180. return $this->call('update', [$params], Operation::class);
  181. }
  182. /**
  183. * Runs static validation for the UrlMap. In particular, the tests of the
  184. * provided UrlMap will be run. Calling this method does NOT create the UrlMap.
  185. * (regionUrlMaps.validate)
  186. *
  187. * @param string $project Project ID for this request.
  188. * @param string $region Name of the region scoping this request.
  189. * @param string $urlMap Name of the UrlMap resource to be validated as.
  190. * @param RegionUrlMapsValidateRequest $postBody
  191. * @param array $optParams Optional parameters.
  192. * @return UrlMapsValidateResponse
  193. */
  194. public function validate($project, $region, $urlMap, RegionUrlMapsValidateRequest $postBody, $optParams = [])
  195. {
  196. $params = ['project' => $project, 'region' => $region, 'urlMap' => $urlMap, 'postBody' => $postBody];
  197. $params = array_merge($params, $optParams);
  198. return $this->call('validate', [$params], UrlMapsValidateResponse::class);
  199. }
  200. }
  201. // Adding a class alias for backwards compatibility with the previous class name.
  202. class_alias(RegionUrlMaps::class, 'Google_Service_Compute_Resource_RegionUrlMaps');