source: vendor/google/apiclient-services/src/Apigee/Resource/Organizations.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 15.7 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\Apigee\Resource;
19
20use Google\Service\Apigee\GoogleCloudApigeeV1ControlPlaneAccess;
21use Google\Service\Apigee\GoogleCloudApigeeV1GetSyncAuthorizationRequest;
22use Google\Service\Apigee\GoogleCloudApigeeV1IngressConfig;
23use Google\Service\Apigee\GoogleCloudApigeeV1ListOrganizationsResponse;
24use Google\Service\Apigee\GoogleCloudApigeeV1Organization;
25use Google\Service\Apigee\GoogleCloudApigeeV1OrganizationProjectMapping;
26use Google\Service\Apigee\GoogleCloudApigeeV1RuntimeConfig;
27use Google\Service\Apigee\GoogleCloudApigeeV1SecuritySettings;
28use Google\Service\Apigee\GoogleCloudApigeeV1SetAddonsRequest;
29use Google\Service\Apigee\GoogleCloudApigeeV1SyncAuthorization;
30use Google\Service\Apigee\GoogleLongrunningOperation;
31
32/**
33 * The "organizations" collection of methods.
34 * Typical usage is:
35 * <code>
36 * $apigeeService = new Google\Service\Apigee(...);
37 * $organizations = $apigeeService->organizations;
38 * </code>
39 */
40class Organizations extends \Google\Service\Resource
41{
42 /**
43 * Creates an Apigee organization. See [Create an Apigee
44 * organization](https://cloud.google.com/apigee/docs/api-platform/get-
45 * started/create-org). (organizations.create)
46 *
47 * @param GoogleCloudApigeeV1Organization $postBody
48 * @param array $optParams Optional parameters.
49 *
50 * @opt_param string parent Required. Name of the Google Cloud project in which
51 * to associate the Apigee organization. Pass the information as a query
52 * parameter using the following structure in your request: `projects/`
53 * @return GoogleLongrunningOperation
54 * @throws \Google\Service\Exception
55 */
56 public function create(GoogleCloudApigeeV1Organization $postBody, $optParams = [])
57 {
58 $params = ['postBody' => $postBody];
59 $params = array_merge($params, $optParams);
60 return $this->call('create', [$params], GoogleLongrunningOperation::class);
61 }
62 /**
63 * Delete an Apigee organization. For organizations with BillingType EVALUATION,
64 * an immediate deletion is performed. For paid organizations (Subscription or
65 * Pay-as-you-go), a soft-deletion is performed. The organization can be
66 * restored within the soft-deletion period, which is specified using the
67 * `retention` field in the request or by filing a support ticket with Apigee.
68 * During the data retention period specified in the request, the Apigee
69 * organization cannot be recreated in the same Google Cloud project.
70 * **IMPORTANT: The default data retention setting for this operation is 7 days.
71 * To permanently delete the organization in 24 hours, set the retention
72 * parameter to `MINIMUM`.** (organizations.delete)
73 *
74 * @param string $name Required. Name of the organization. Use the following
75 * structure in your request: `organizations/{org}`
76 * @param array $optParams Optional parameters.
77 *
78 * @opt_param string retention Optional. This setting is applicable only for
79 * organizations that are soft-deleted (i.e., BillingType is not EVALUATION). It
80 * controls how long Organization data will be retained after the initial delete
81 * operation completes. During this period, the Organization may be restored to
82 * its last known state. After this period, the Organization will no longer be
83 * able to be restored. **Note: During the data retention period specified using
84 * this field, the Apigee organization cannot be recreated in the same Google
85 * Cloud project.**
86 * @return GoogleLongrunningOperation
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], GoogleLongrunningOperation::class);
94 }
95 /**
96 * Gets the profile for an Apigee organization. See [Understanding
97 * organizations](https://cloud.google.com/apigee/docs/api-
98 * platform/fundamentals/organization-structure). (organizations.get)
99 *
100 * @param string $name Required. Apigee organization name in the following
101 * format: `organizations/{org}`
102 * @param array $optParams Optional parameters.
103 * @return GoogleCloudApigeeV1Organization
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], GoogleCloudApigeeV1Organization::class);
111 }
112 /**
113 * Lists the service accounts allowed to access Apigee control plane directly
114 * for limited functionality. **Note**: Available to Apigee hybrid only.
115 * (organizations.getControlPlaneAccess)
116 *
117 * @param string $name Required. Resource name of the Control Plane Access. Use
118 * the following structure in your request:
119 * `organizations/{org}/controlPlaneAccess`
120 * @param array $optParams Optional parameters.
121 * @return GoogleCloudApigeeV1ControlPlaneAccess
122 * @throws \Google\Service\Exception
123 */
124 public function getControlPlaneAccess($name, $optParams = [])
125 {
126 $params = ['name' => $name];
127 $params = array_merge($params, $optParams);
128 return $this->call('getControlPlaneAccess', [$params], GoogleCloudApigeeV1ControlPlaneAccess::class);
129 }
130 /**
131 * Gets the deployed ingress configuration for an organization.
132 * (organizations.getDeployedIngressConfig)
133 *
134 * @param string $name Required. Name of the deployed configuration for the
135 * organization in the following format:
136 * 'organizations/{org}/deployedIngressConfig'.
137 * @param array $optParams Optional parameters.
138 *
139 * @opt_param string view When set to FULL, additional details about the
140 * specific deployments receiving traffic will be included in the IngressConfig
141 * response's RoutingRules.
142 * @return GoogleCloudApigeeV1IngressConfig
143 * @throws \Google\Service\Exception
144 */
145 public function getDeployedIngressConfig($name, $optParams = [])
146 {
147 $params = ['name' => $name];
148 $params = array_merge($params, $optParams);
149 return $this->call('getDeployedIngressConfig', [$params], GoogleCloudApigeeV1IngressConfig::class);
150 }
151 /**
152 * Gets the project ID and region for an Apigee organization.
153 * (organizations.getProjectMapping)
154 *
155 * @param string $name Required. Apigee organization name in the following
156 * format: `organizations/{org}`
157 * @param array $optParams Optional parameters.
158 * @return GoogleCloudApigeeV1OrganizationProjectMapping
159 * @throws \Google\Service\Exception
160 */
161 public function getProjectMapping($name, $optParams = [])
162 {
163 $params = ['name' => $name];
164 $params = array_merge($params, $optParams);
165 return $this->call('getProjectMapping', [$params], GoogleCloudApigeeV1OrganizationProjectMapping::class);
166 }
167 /**
168 * Get runtime config for an organization. (organizations.getRuntimeConfig)
169 *
170 * @param string $name Required. Name of the runtime config for the organization
171 * in the following format: 'organizations/{org}/runtimeConfig'.
172 * @param array $optParams Optional parameters.
173 * @return GoogleCloudApigeeV1RuntimeConfig
174 * @throws \Google\Service\Exception
175 */
176 public function getRuntimeConfig($name, $optParams = [])
177 {
178 $params = ['name' => $name];
179 $params = array_merge($params, $optParams);
180 return $this->call('getRuntimeConfig', [$params], GoogleCloudApigeeV1RuntimeConfig::class);
181 }
182 /**
183 * GetSecuritySettings gets the security settings for API Security.
184 * (organizations.getSecuritySettings)
185 *
186 * @param string $name Required. The name of the SecuritySettings to retrieve.
187 * This will always be: 'organizations/{org}/securitySettings'.
188 * @param array $optParams Optional parameters.
189 * @return GoogleCloudApigeeV1SecuritySettings
190 * @throws \Google\Service\Exception
191 */
192 public function getSecuritySettings($name, $optParams = [])
193 {
194 $params = ['name' => $name];
195 $params = array_merge($params, $optParams);
196 return $this->call('getSecuritySettings', [$params], GoogleCloudApigeeV1SecuritySettings::class);
197 }
198 /**
199 * Lists the service accounts with the permissions required to allow the
200 * Synchronizer to download environment data from the control plane. An ETag is
201 * returned in the response to `getSyncAuthorization`. Pass that ETag when
202 * calling [setSyncAuthorization](setSyncAuthorization) to ensure that you are
203 * updating the correct version. If you don't pass the ETag in the call to
204 * `setSyncAuthorization`, then the existing authorization is overwritten
205 * indiscriminately. For more information, see [Configure the Synchronizer](http
206 * s://cloud.google.com/apigee/docs/hybrid/latest/synchronizer-access).
207 * **Note**: Available to Apigee hybrid only.
208 * (organizations.getSyncAuthorization)
209 *
210 * @param string $name Required. Name of the Apigee organization. Use the
211 * following structure in your request: `organizations/{org}`
212 * @param GoogleCloudApigeeV1GetSyncAuthorizationRequest $postBody
213 * @param array $optParams Optional parameters.
214 * @return GoogleCloudApigeeV1SyncAuthorization
215 * @throws \Google\Service\Exception
216 */
217 public function getSyncAuthorization($name, GoogleCloudApigeeV1GetSyncAuthorizationRequest $postBody, $optParams = [])
218 {
219 $params = ['name' => $name, 'postBody' => $postBody];
220 $params = array_merge($params, $optParams);
221 return $this->call('getSyncAuthorization', [$params], GoogleCloudApigeeV1SyncAuthorization::class);
222 }
223 /**
224 * Lists the Apigee organizations and associated Google Cloud projects that you
225 * have permission to access. See [Understanding
226 * organizations](https://cloud.google.com/apigee/docs/api-
227 * platform/fundamentals/organization-structure).
228 * (organizations.listOrganizations)
229 *
230 * @param string $parent Required. Use the following structure in your request:
231 * `organizations`
232 * @param array $optParams Optional parameters.
233 * @return GoogleCloudApigeeV1ListOrganizationsResponse
234 * @throws \Google\Service\Exception
235 */
236 public function listOrganizations($parent, $optParams = [])
237 {
238 $params = ['parent' => $parent];
239 $params = array_merge($params, $optParams);
240 return $this->call('list', [$params], GoogleCloudApigeeV1ListOrganizationsResponse::class);
241 }
242 /**
243 * Configures the add-ons for the Apigee organization. The existing add-on
244 * configuration will be fully replaced. (organizations.setAddons)
245 *
246 * @param string $org Required. Name of the organization. Use the following
247 * structure in your request: `organizations/{org}`
248 * @param GoogleCloudApigeeV1SetAddonsRequest $postBody
249 * @param array $optParams Optional parameters.
250 * @return GoogleLongrunningOperation
251 * @throws \Google\Service\Exception
252 */
253 public function setAddons($org, GoogleCloudApigeeV1SetAddonsRequest $postBody, $optParams = [])
254 {
255 $params = ['org' => $org, 'postBody' => $postBody];
256 $params = array_merge($params, $optParams);
257 return $this->call('setAddons', [$params], GoogleLongrunningOperation::class);
258 }
259 /**
260 * Sets the permissions required to allow the Synchronizer to download
261 * environment data from the control plane. You must call this API to enable
262 * proper functioning of hybrid. Pass the ETag when calling
263 * `setSyncAuthorization` to ensure that you are updating the correct version.
264 * To get an ETag, call [getSyncAuthorization](getSyncAuthorization). If you
265 * don't pass the ETag in the call to `setSyncAuthorization`, then the existing
266 * authorization is overwritten indiscriminately. For more information, see
267 * [Configure the Synchronizer](https://cloud.google.com/apigee/docs/hybrid/late
268 * st/synchronizer-access). **Note**: Available to Apigee hybrid only.
269 * (organizations.setSyncAuthorization)
270 *
271 * @param string $name Required. Name of the Apigee organization. Use the
272 * following structure in your request: `organizations/{org}`
273 * @param GoogleCloudApigeeV1SyncAuthorization $postBody
274 * @param array $optParams Optional parameters.
275 * @return GoogleCloudApigeeV1SyncAuthorization
276 * @throws \Google\Service\Exception
277 */
278 public function setSyncAuthorization($name, GoogleCloudApigeeV1SyncAuthorization $postBody, $optParams = [])
279 {
280 $params = ['name' => $name, 'postBody' => $postBody];
281 $params = array_merge($params, $optParams);
282 return $this->call('setSyncAuthorization', [$params], GoogleCloudApigeeV1SyncAuthorization::class);
283 }
284 /**
285 * Updates the properties for an Apigee organization. No other fields in the
286 * organization profile will be updated. (organizations.update)
287 *
288 * @param string $name Required. Apigee organization name in the following
289 * format: `organizations/{org}`
290 * @param GoogleCloudApigeeV1Organization $postBody
291 * @param array $optParams Optional parameters.
292 * @return GoogleCloudApigeeV1Organization
293 * @throws \Google\Service\Exception
294 */
295 public function update($name, GoogleCloudApigeeV1Organization $postBody, $optParams = [])
296 {
297 $params = ['name' => $name, 'postBody' => $postBody];
298 $params = array_merge($params, $optParams);
299 return $this->call('update', [$params], GoogleCloudApigeeV1Organization::class);
300 }
301 /**
302 * Updates the permissions required to allow Apigee runtime-plane components
303 * access to the control plane. Currently, the permissions required are to: 1.
304 * Allow runtime components to publish analytics data to the control plane.
305 * **Note**: Available to Apigee hybrid only.
306 * (organizations.updateControlPlaneAccess)
307 *
308 * @param string $name Identifier. The resource name of the ControlPlaneAccess.
309 * Format: "organizations/{org}/controlPlaneAccess"
310 * @param GoogleCloudApigeeV1ControlPlaneAccess $postBody
311 * @param array $optParams Optional parameters.
312 *
313 * @opt_param string updateMask List of fields to be updated. Fields that can be
314 * updated: synchronizer_identities, publisher_identities.
315 * @return GoogleLongrunningOperation
316 * @throws \Google\Service\Exception
317 */
318 public function updateControlPlaneAccess($name, GoogleCloudApigeeV1ControlPlaneAccess $postBody, $optParams = [])
319 {
320 $params = ['name' => $name, 'postBody' => $postBody];
321 $params = array_merge($params, $optParams);
322 return $this->call('updateControlPlaneAccess', [$params], GoogleLongrunningOperation::class);
323 }
324 /**
325 * UpdateSecuritySettings updates the current security settings for API
326 * Security. (organizations.updateSecuritySettings)
327 *
328 * @param string $name Identifier. Full resource name is always
329 * `organizations/{org}/securitySettings`.
330 * @param GoogleCloudApigeeV1SecuritySettings $postBody
331 * @param array $optParams Optional parameters.
332 *
333 * @opt_param string updateMask Optional. The list of fields to update. Allowed
334 * fields are: - ml_retraining_feedback_enabled
335 * @return GoogleCloudApigeeV1SecuritySettings
336 * @throws \Google\Service\Exception
337 */
338 public function updateSecuritySettings($name, GoogleCloudApigeeV1SecuritySettings $postBody, $optParams = [])
339 {
340 $params = ['name' => $name, 'postBody' => $postBody];
341 $params = array_merge($params, $optParams);
342 return $this->call('updateSecuritySettings', [$params], GoogleCloudApigeeV1SecuritySettings::class);
343 }
344}
345
346// Adding a class alias for backwards compatibility with the previous class name.
347class_alias(Organizations::class, 'Google_Service_Apigee_Resource_Organizations');
Note: See TracBrowser for help on using the repository browser.