source: vendor/google/apiclient-services/src/NetworkServices/Resource/ProjectsLocationsLbTrafficExtensions.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 12 days ago

Upload project files

  • Property mode set to 100644
File size: 8.1 KB
Line 
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
18namespace Google\Service\NetworkServices\Resource;
19
20use Google\Service\NetworkServices\LbTrafficExtension;
21use Google\Service\NetworkServices\ListLbTrafficExtensionsResponse;
22use Google\Service\NetworkServices\Operation;
23
24/**
25 * The "lbTrafficExtensions" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $networkservicesService = new Google\Service\NetworkServices(...);
29 * $lbTrafficExtensions = $networkservicesService->projects_locations_lbTrafficExtensions;
30 * </code>
31 */
32class ProjectsLocationsLbTrafficExtensions extends \Google\Service\Resource
33{
34 /**
35 * Creates a new `LbTrafficExtension` resource in a given project and location.
36 * (lbTrafficExtensions.create)
37 *
38 * @param string $parent Required. The parent resource of the
39 * `LbTrafficExtension` resource. Must be in the format
40 * `projects/{project}/locations/{location}`.
41 * @param LbTrafficExtension $postBody
42 * @param array $optParams Optional parameters.
43 *
44 * @opt_param string lbTrafficExtensionId Required. User-provided ID of the
45 * `LbTrafficExtension` resource to be created.
46 * @opt_param string requestId Optional. An optional request ID to identify
47 * requests. Specify a unique request ID so that if you must retry your request,
48 * the server can ignore the request if it has already been completed. The
49 * server guarantees that for at least 60 minutes since the first request. For
50 * example, consider a situation where you make an initial request and the
51 * request times out. If you make the request again with the same request ID,
52 * the server can check if original operation with the same request ID was
53 * received, and if so, ignores the second request. This prevents clients from
54 * accidentally creating duplicate commitments. The request ID must be a valid
55 * UUID with the exception that zero UUID is not supported
56 * (00000000-0000-0000-0000-000000000000).
57 * @return Operation
58 * @throws \Google\Service\Exception
59 */
60 public function create($parent, LbTrafficExtension $postBody, $optParams = [])
61 {
62 $params = ['parent' => $parent, 'postBody' => $postBody];
63 $params = array_merge($params, $optParams);
64 return $this->call('create', [$params], Operation::class);
65 }
66 /**
67 * Deletes the specified `LbTrafficExtension` resource.
68 * (lbTrafficExtensions.delete)
69 *
70 * @param string $name Required. The name of the `LbTrafficExtension` resource
71 * to delete. Must be in the format `projects/{project}/locations/{location}/lbT
72 * rafficExtensions/{lb_traffic_extension}`.
73 * @param array $optParams Optional parameters.
74 *
75 * @opt_param string requestId Optional. An optional request ID to identify
76 * requests. Specify a unique request ID so that if you must retry your request,
77 * the server can ignore the request if it has already been completed. The
78 * server guarantees that for at least 60 minutes after the first request. For
79 * example, consider a situation where you make an initial request and the
80 * request times out. If you make the request again with the same request ID,
81 * the server can check if original operation with the same request ID was
82 * received, and if so, ignores the second request. This prevents clients from
83 * accidentally creating duplicate commitments. The request ID must be a valid
84 * UUID with the exception that zero UUID is not supported
85 * (00000000-0000-0000-0000-000000000000).
86 * @return Operation
87 * @throws \Google\Service\Exception
88 */
89 public function delete($name, $optParams = [])
90 {
91 $params = ['name' => $name];
92 $params = array_merge($params, $optParams);
93 return $this->call('delete', [$params], Operation::class);
94 }
95 /**
96 * Gets details of the specified `LbTrafficExtension` resource.
97 * (lbTrafficExtensions.get)
98 *
99 * @param string $name Required. A name of the `LbTrafficExtension` resource to
100 * get. Must be in the format `projects/{project}/locations/{location}/lbTraffic
101 * Extensions/{lb_traffic_extension}`.
102 * @param array $optParams Optional parameters.
103 * @return LbTrafficExtension
104 * @throws \Google\Service\Exception
105 */
106 public function get($name, $optParams = [])
107 {
108 $params = ['name' => $name];
109 $params = array_merge($params, $optParams);
110 return $this->call('get', [$params], LbTrafficExtension::class);
111 }
112 /**
113 * Lists `LbTrafficExtension` resources in a given project and location.
114 * (lbTrafficExtensions.listProjectsLocationsLbTrafficExtensions)
115 *
116 * @param string $parent Required. The project and location from which the
117 * `LbTrafficExtension` resources are listed, specified in the following format:
118 * `projects/{project}/locations/{location}`.
119 * @param array $optParams Optional parameters.
120 *
121 * @opt_param string filter Optional. Filtering results.
122 * @opt_param string orderBy Optional. Hint for how to order the results.
123 * @opt_param int pageSize Optional. Requested page size. The server might
124 * return fewer items than requested. If unspecified, the server picks an
125 * appropriate default.
126 * @opt_param string pageToken Optional. A token identifying a page of results
127 * that the server returns.
128 * @return ListLbTrafficExtensionsResponse
129 * @throws \Google\Service\Exception
130 */
131 public function listProjectsLocationsLbTrafficExtensions($parent, $optParams = [])
132 {
133 $params = ['parent' => $parent];
134 $params = array_merge($params, $optParams);
135 return $this->call('list', [$params], ListLbTrafficExtensionsResponse::class);
136 }
137 /**
138 * Updates the parameters of the specified `LbTrafficExtension` resource.
139 * (lbTrafficExtensions.patch)
140 *
141 * @param string $name Required. Identifier. Name of the `LbTrafficExtension`
142 * resource in the following format: `projects/{project}/locations/{location}/lb
143 * TrafficExtensions/{lb_traffic_extension}`.
144 * @param LbTrafficExtension $postBody
145 * @param array $optParams Optional parameters.
146 *
147 * @opt_param string requestId Optional. An optional request ID to identify
148 * requests. Specify a unique request ID so that if you must retry your request,
149 * the server can ignore the request if it has already been completed. The
150 * server guarantees that for at least 60 minutes since the first request. For
151 * example, consider a situation where you make an initial request and the
152 * request times out. If you make the request again with the same request ID,
153 * the server can check if original operation with the same request ID was
154 * received, and if so, ignores the second request. This prevents clients from
155 * accidentally creating duplicate commitments. The request ID must be a valid
156 * UUID with the exception that zero UUID is not supported
157 * (00000000-0000-0000-0000-000000000000).
158 * @opt_param string updateMask Optional. Used to specify the fields to be
159 * overwritten in the `LbTrafficExtension` resource by the update. The fields
160 * specified in the `update_mask` are relative to the resource, not the full
161 * request. A field is overwritten if it is in the mask. If the user does not
162 * specify a mask, then all fields are overwritten.
163 * @return Operation
164 * @throws \Google\Service\Exception
165 */
166 public function patch($name, LbTrafficExtension $postBody, $optParams = [])
167 {
168 $params = ['name' => $name, 'postBody' => $postBody];
169 $params = array_merge($params, $optParams);
170 return $this->call('patch', [$params], Operation::class);
171 }
172}
173
174// Adding a class alias for backwards compatibility with the previous class name.
175class_alias(ProjectsLocationsLbTrafficExtensions::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsLbTrafficExtensions');
Note: See TracBrowser for help on using the repository browser.