source: vendor/google/apiclient-services/src/ManagedServiceforMicrosoftActiveDirectoryConsumerAPI/Resource/ProjectsLocationsManagedidentitiesGlobalDomains.php

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

Upload project files

  • Property mode set to 100644
File size: 20.3 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\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\Resource;
19
20use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\AttachTrustRequest;
21use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\CheckMigrationPermissionRequest;
22use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\CheckMigrationPermissionResponse;
23use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\DetachTrustRequest;
24use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\DisableMigrationRequest;
25use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\Domain;
26use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\DomainJoinMachineRequest;
27use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\DomainJoinMachineResponse;
28use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\EnableMigrationRequest;
29use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\ExtendSchemaRequest;
30use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\LDAPSSettings;
31use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\ListDomainsResponse;
32use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\Operation;
33use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\Policy;
34use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\ReconfigureTrustRequest;
35use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\ResetAdminPasswordRequest;
36use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\ResetAdminPasswordResponse;
37use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\RestoreDomainRequest;
38use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\SetIamPolicyRequest;
39use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\TestIamPermissionsRequest;
40use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\TestIamPermissionsResponse;
41use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\ValidateTrustRequest;
42
43/**
44 * The "domains" collection of methods.
45 * Typical usage is:
46 * <code>
47 * $managedidentitiesService = new Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI(...);
48 * $domains = $managedidentitiesService->projects_locations_global_domains;
49 * </code>
50 */
51class ProjectsLocationsManagedidentitiesGlobalDomains extends \Google\Service\Resource
52{
53 /**
54 * Adds an AD trust to a domain. (domains.attachTrust)
55 *
56 * @param string $name Required. The resource domain name, project name and
57 * location using the form:
58 * `projects/{project_id}/locations/global/domains/{domain_name}`
59 * @param AttachTrustRequest $postBody
60 * @param array $optParams Optional parameters.
61 * @return Operation
62 * @throws \Google\Service\Exception
63 */
64 public function attachTrust($name, AttachTrustRequest $postBody, $optParams = [])
65 {
66 $params = ['name' => $name, 'postBody' => $postBody];
67 $params = array_merge($params, $optParams);
68 return $this->call('attachTrust', [$params], Operation::class);
69 }
70 /**
71 * CheckMigrationPermission API gets the current state of DomainMigration
72 * (domains.checkMigrationPermission)
73 *
74 * @param string $domain Required. The domain resource name using the form:
75 * `projects/{project_id}/locations/global/domains/{domain_name}`
76 * @param CheckMigrationPermissionRequest $postBody
77 * @param array $optParams Optional parameters.
78 * @return CheckMigrationPermissionResponse
79 * @throws \Google\Service\Exception
80 */
81 public function checkMigrationPermission($domain, CheckMigrationPermissionRequest $postBody, $optParams = [])
82 {
83 $params = ['domain' => $domain, 'postBody' => $postBody];
84 $params = array_merge($params, $optParams);
85 return $this->call('checkMigrationPermission', [$params], CheckMigrationPermissionResponse::class);
86 }
87 /**
88 * Creates a Microsoft AD domain. (domains.create)
89 *
90 * @param string $parent Required. The resource project name and location using
91 * the form: `projects/{project_id}/locations/global`
92 * @param Domain $postBody
93 * @param array $optParams Optional parameters.
94 *
95 * @opt_param string domainName Required. The fully qualified domain name. e.g.
96 * mydomain.myorganization.com, with the following restrictions: * Must contain
97 * only lowercase letters, numbers, periods and hyphens. * Must start with a
98 * letter. * Must contain between 2-64 characters. * Must end with a number or a
99 * letter. * Must not start with period. * First segment length (mydomain for
100 * example above) shouldn't exceed 15 chars. * The last segment cannot be fully
101 * numeric. * Must be unique within the customer project.
102 * @return Operation
103 * @throws \Google\Service\Exception
104 */
105 public function create($parent, Domain $postBody, $optParams = [])
106 {
107 $params = ['parent' => $parent, 'postBody' => $postBody];
108 $params = array_merge($params, $optParams);
109 return $this->call('create', [$params], Operation::class);
110 }
111 /**
112 * Deletes a domain. (domains.delete)
113 *
114 * @param string $name Required. The domain resource name using the form:
115 * `projects/{project_id}/locations/global/domains/{domain_name}`
116 * @param array $optParams Optional parameters.
117 * @return Operation
118 * @throws \Google\Service\Exception
119 */
120 public function delete($name, $optParams = [])
121 {
122 $params = ['name' => $name];
123 $params = array_merge($params, $optParams);
124 return $this->call('delete', [$params], Operation::class);
125 }
126 /**
127 * Removes an AD trust. (domains.detachTrust)
128 *
129 * @param string $name Required. The resource domain name, project name, and
130 * location using the form:
131 * `projects/{project_id}/locations/global/domains/{domain_name}`
132 * @param DetachTrustRequest $postBody
133 * @param array $optParams Optional parameters.
134 * @return Operation
135 * @throws \Google\Service\Exception
136 */
137 public function detachTrust($name, DetachTrustRequest $postBody, $optParams = [])
138 {
139 $params = ['name' => $name, 'postBody' => $postBody];
140 $params = array_merge($params, $optParams);
141 return $this->call('detachTrust', [$params], Operation::class);
142 }
143 /**
144 * Disable Domain Migration (domains.disableMigration)
145 *
146 * @param string $domain Required. The domain resource name using the form:
147 * `projects/{project_id}/locations/global/domains/{domain_name}`
148 * @param DisableMigrationRequest $postBody
149 * @param array $optParams Optional parameters.
150 * @return Operation
151 * @throws \Google\Service\Exception
152 */
153 public function disableMigration($domain, DisableMigrationRequest $postBody, $optParams = [])
154 {
155 $params = ['domain' => $domain, 'postBody' => $postBody];
156 $params = array_merge($params, $optParams);
157 return $this->call('disableMigration', [$params], Operation::class);
158 }
159 /**
160 * DomainJoinMachine API joins a Compute Engine VM to the domain
161 * (domains.domainJoinMachine)
162 *
163 * @param string $domain Required. The domain resource name using the form:
164 * projects/{project_id}/locations/global/domains/{domain_name}
165 * @param DomainJoinMachineRequest $postBody
166 * @param array $optParams Optional parameters.
167 * @return DomainJoinMachineResponse
168 * @throws \Google\Service\Exception
169 */
170 public function domainJoinMachine($domain, DomainJoinMachineRequest $postBody, $optParams = [])
171 {
172 $params = ['domain' => $domain, 'postBody' => $postBody];
173 $params = array_merge($params, $optParams);
174 return $this->call('domainJoinMachine', [$params], DomainJoinMachineResponse::class);
175 }
176 /**
177 * Enable Domain Migration (domains.enableMigration)
178 *
179 * @param string $domain Required. The domain resource name using the form:
180 * `projects/{project_id}/locations/global/domains/{domain_name}`
181 * @param EnableMigrationRequest $postBody
182 * @param array $optParams Optional parameters.
183 * @return Operation
184 * @throws \Google\Service\Exception
185 */
186 public function enableMigration($domain, EnableMigrationRequest $postBody, $optParams = [])
187 {
188 $params = ['domain' => $domain, 'postBody' => $postBody];
189 $params = array_merge($params, $optParams);
190 return $this->call('enableMigration', [$params], Operation::class);
191 }
192 /**
193 * Extend Schema for Domain (domains.extendSchema)
194 *
195 * @param string $domain Required. The domain resource name using the form:
196 * `projects/{project_id}/locations/global/domains/{domain_name}`
197 * @param ExtendSchemaRequest $postBody
198 * @param array $optParams Optional parameters.
199 * @return Operation
200 * @throws \Google\Service\Exception
201 */
202 public function extendSchema($domain, ExtendSchemaRequest $postBody, $optParams = [])
203 {
204 $params = ['domain' => $domain, 'postBody' => $postBody];
205 $params = array_merge($params, $optParams);
206 return $this->call('extendSchema', [$params], Operation::class);
207 }
208 /**
209 * Gets information about a domain. (domains.get)
210 *
211 * @param string $name Required. The domain resource name using the form:
212 * `projects/{project_id}/locations/global/domains/{domain_name}`
213 * @param array $optParams Optional parameters.
214 * @return Domain
215 * @throws \Google\Service\Exception
216 */
217 public function get($name, $optParams = [])
218 {
219 $params = ['name' => $name];
220 $params = array_merge($params, $optParams);
221 return $this->call('get', [$params], Domain::class);
222 }
223 /**
224 * Gets the access control policy for a resource. Returns an empty policy if the
225 * resource exists and does not have a policy set. (domains.getIamPolicy)
226 *
227 * @param string $resource REQUIRED: The resource for which the policy is being
228 * requested. See [Resource
229 * names](https://cloud.google.com/apis/design/resource_names) for the
230 * appropriate value for this field.
231 * @param array $optParams Optional parameters.
232 *
233 * @opt_param int options.requestedPolicyVersion Optional. The maximum policy
234 * version that will be used to format the policy. Valid values are 0, 1, and 3.
235 * Requests specifying an invalid value will be rejected. Requests for policies
236 * with any conditional role bindings must specify version 3. Policies with no
237 * conditional role bindings may specify any valid value or leave the field
238 * unset. The policy in the response might use the policy version that you
239 * specified, or it might use a lower policy version. For example, if you
240 * specify version 3, but the policy has no conditional role bindings, the
241 * response uses version 1. To learn which resources support conditions in their
242 * IAM policies, see the [IAM
243 * documentation](https://cloud.google.com/iam/help/conditions/resource-
244 * policies).
245 * @return Policy
246 * @throws \Google\Service\Exception
247 */
248 public function getIamPolicy($resource, $optParams = [])
249 {
250 $params = ['resource' => $resource];
251 $params = array_merge($params, $optParams);
252 return $this->call('getIamPolicy', [$params], Policy::class);
253 }
254 /**
255 * Gets the domain ldaps settings. (domains.getLdapssettings)
256 *
257 * @param string $name Required. The domain resource name using the form:
258 * `projects/{project_id}/locations/global/domains/{domain_name}`
259 * @param array $optParams Optional parameters.
260 * @return LDAPSSettings
261 * @throws \Google\Service\Exception
262 */
263 public function getLdapssettings($name, $optParams = [])
264 {
265 $params = ['name' => $name];
266 $params = array_merge($params, $optParams);
267 return $this->call('getLdapssettings', [$params], LDAPSSettings::class);
268 }
269 /**
270 * Lists domains in a project.
271 * (domains.listProjectsLocationsManagedidentitiesGlobalDomains)
272 *
273 * @param string $parent Required. The resource name of the domain location
274 * using the form: `projects/{project_id}/locations/global`
275 * @param array $optParams Optional parameters.
276 *
277 * @opt_param string filter Optional. A filter specifying constraints of a list
278 * operation. For example, `Domain.fqdn="mydomain.myorginization"`.
279 * @opt_param string orderBy Optional. Specifies the ordering of results. See
280 * [Sorting
281 * order](https://cloud.google.com/apis/design/design_patterns#sorting_order)
282 * for more information.
283 * @opt_param int pageSize Optional. The maximum number of items to return. If
284 * not specified, a default value of 1000 will be used. Regardless of the
285 * page_size value, the response may include a partial list. Callers should rely
286 * on a response's next_page_token to determine if there are additional results
287 * to list.
288 * @opt_param string pageToken Optional. The `next_page_token` value returned
289 * from a previous ListDomainsRequest request, if any.
290 * @return ListDomainsResponse
291 * @throws \Google\Service\Exception
292 */
293 public function listProjectsLocationsManagedidentitiesGlobalDomains($parent, $optParams = [])
294 {
295 $params = ['parent' => $parent];
296 $params = array_merge($params, $optParams);
297 return $this->call('list', [$params], ListDomainsResponse::class);
298 }
299 /**
300 * Updates the metadata and configuration of a domain. (domains.patch)
301 *
302 * @param string $name Required. The unique name of the domain using the form:
303 * `projects/{project_id}/locations/global/domains/{domain_name}`.
304 * @param Domain $postBody
305 * @param array $optParams Optional parameters.
306 *
307 * @opt_param string updateMask Required. Mask of fields to update. At least one
308 * path must be supplied in this field. The elements of the repeated paths field
309 * may only include fields from Domain: * `labels` * `locations` *
310 * `authorized_networks` * `audit_logs_enabled`
311 * @return Operation
312 * @throws \Google\Service\Exception
313 */
314 public function patch($name, Domain $postBody, $optParams = [])
315 {
316 $params = ['name' => $name, 'postBody' => $postBody];
317 $params = array_merge($params, $optParams);
318 return $this->call('patch', [$params], Operation::class);
319 }
320 /**
321 * Updates the DNS conditional forwarder. (domains.reconfigureTrust)
322 *
323 * @param string $name Required. The resource domain name, project name and
324 * location using the form:
325 * `projects/{project_id}/locations/global/domains/{domain_name}`
326 * @param ReconfigureTrustRequest $postBody
327 * @param array $optParams Optional parameters.
328 * @return Operation
329 * @throws \Google\Service\Exception
330 */
331 public function reconfigureTrust($name, ReconfigureTrustRequest $postBody, $optParams = [])
332 {
333 $params = ['name' => $name, 'postBody' => $postBody];
334 $params = array_merge($params, $optParams);
335 return $this->call('reconfigureTrust', [$params], Operation::class);
336 }
337 /**
338 * Resets a domain's administrator password. (domains.resetAdminPassword)
339 *
340 * @param string $name Required. The domain resource name using the form:
341 * `projects/{project_id}/locations/global/domains/{domain_name}`
342 * @param ResetAdminPasswordRequest $postBody
343 * @param array $optParams Optional parameters.
344 * @return ResetAdminPasswordResponse
345 * @throws \Google\Service\Exception
346 */
347 public function resetAdminPassword($name, ResetAdminPasswordRequest $postBody, $optParams = [])
348 {
349 $params = ['name' => $name, 'postBody' => $postBody];
350 $params = array_merge($params, $optParams);
351 return $this->call('resetAdminPassword', [$params], ResetAdminPasswordResponse::class);
352 }
353 /**
354 * RestoreDomain restores domain backup mentioned in the RestoreDomainRequest
355 * (domains.restore)
356 *
357 * @param string $name Required. Resource name for the domain to which the
358 * backup belongs
359 * @param RestoreDomainRequest $postBody
360 * @param array $optParams Optional parameters.
361 * @return Operation
362 * @throws \Google\Service\Exception
363 */
364 public function restore($name, RestoreDomainRequest $postBody, $optParams = [])
365 {
366 $params = ['name' => $name, 'postBody' => $postBody];
367 $params = array_merge($params, $optParams);
368 return $this->call('restore', [$params], Operation::class);
369 }
370 /**
371 * Sets the access control policy on the specified resource. Replaces any
372 * existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
373 * `PERMISSION_DENIED` errors. (domains.setIamPolicy)
374 *
375 * @param string $resource REQUIRED: The resource for which the policy is being
376 * specified. See [Resource
377 * names](https://cloud.google.com/apis/design/resource_names) for the
378 * appropriate value for this field.
379 * @param SetIamPolicyRequest $postBody
380 * @param array $optParams Optional parameters.
381 * @return Policy
382 * @throws \Google\Service\Exception
383 */
384 public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
385 {
386 $params = ['resource' => $resource, 'postBody' => $postBody];
387 $params = array_merge($params, $optParams);
388 return $this->call('setIamPolicy', [$params], Policy::class);
389 }
390 /**
391 * Returns permissions that a caller has on the specified resource. If the
392 * resource does not exist, this will return an empty set of permissions, not a
393 * `NOT_FOUND` error. Note: This operation is designed to be used for building
394 * permission-aware UIs and command-line tools, not for authorization checking.
395 * This operation may "fail open" without warning. (domains.testIamPermissions)
396 *
397 * @param string $resource REQUIRED: The resource for which the policy detail is
398 * being requested. See [Resource
399 * names](https://cloud.google.com/apis/design/resource_names) for the
400 * appropriate value for this field.
401 * @param TestIamPermissionsRequest $postBody
402 * @param array $optParams Optional parameters.
403 * @return TestIamPermissionsResponse
404 * @throws \Google\Service\Exception
405 */
406 public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
407 {
408 $params = ['resource' => $resource, 'postBody' => $postBody];
409 $params = array_merge($params, $optParams);
410 return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
411 }
412 /**
413 * Patches a single ldaps settings. (domains.updateLdapssettings)
414 *
415 * @param string $name The resource name of the LDAPS settings. Uses the form:
416 * `projects/{project}/locations/{location}/domains/{domain}`.
417 * @param LDAPSSettings $postBody
418 * @param array $optParams Optional parameters.
419 *
420 * @opt_param string updateMask Required. Mask of fields to update. At least one
421 * path must be supplied in this field. For the `FieldMask` definition, see
422 * https://developers.google.com/protocol-
423 * buffers/docs/reference/google.protobuf#fieldmask
424 * @return Operation
425 * @throws \Google\Service\Exception
426 */
427 public function updateLdapssettings($name, LDAPSSettings $postBody, $optParams = [])
428 {
429 $params = ['name' => $name, 'postBody' => $postBody];
430 $params = array_merge($params, $optParams);
431 return $this->call('updateLdapssettings', [$params], Operation::class);
432 }
433 /**
434 * Validates a trust state, that the target domain is reachable, and that the
435 * target domain is able to accept incoming trust requests.
436 * (domains.validateTrust)
437 *
438 * @param string $name Required. The resource domain name, project name, and
439 * location using the form:
440 * `projects/{project_id}/locations/global/domains/{domain_name}`
441 * @param ValidateTrustRequest $postBody
442 * @param array $optParams Optional parameters.
443 * @return Operation
444 * @throws \Google\Service\Exception
445 */
446 public function validateTrust($name, ValidateTrustRequest $postBody, $optParams = [])
447 {
448 $params = ['name' => $name, 'postBody' => $postBody];
449 $params = array_merge($params, $optParams);
450 return $this->call('validateTrust', [$params], Operation::class);
451 }
452}
453
454// Adding a class alias for backwards compatibility with the previous class name.
455class_alias(ProjectsLocationsManagedidentitiesGlobalDomains::class, 'Google_Service_ManagedServiceforMicrosoftActiveDirectoryConsumerAPI_Resource_ProjectsLocationsManagedidentitiesGlobalDomains');
Note: See TracBrowser for help on using the repository browser.