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 | namespace Google\Service\NetAppFiles\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\NetAppFiles\ActiveDirectory;
|
---|
21 | use Google\Service\NetAppFiles\ListActiveDirectoriesResponse;
|
---|
22 | use Google\Service\NetAppFiles\Operation;
|
---|
23 |
|
---|
24 | /**
|
---|
25 | * The "activeDirectories" collection of methods.
|
---|
26 | * Typical usage is:
|
---|
27 | * <code>
|
---|
28 | * $netappService = new Google\Service\NetAppFiles(...);
|
---|
29 | * $activeDirectories = $netappService->projects_locations_activeDirectories;
|
---|
30 | * </code>
|
---|
31 | */
|
---|
32 | class ProjectsLocationsActiveDirectories extends \Google\Service\Resource
|
---|
33 | {
|
---|
34 | /**
|
---|
35 | * CreateActiveDirectory Creates the active directory specified in the request.
|
---|
36 | * (activeDirectories.create)
|
---|
37 | *
|
---|
38 | * @param string $parent Required. Value for parent.
|
---|
39 | * @param ActiveDirectory $postBody
|
---|
40 | * @param array $optParams Optional parameters.
|
---|
41 | *
|
---|
42 | * @opt_param string activeDirectoryId Required. ID of the active directory to
|
---|
43 | * create. Must be unique within the parent resource. Must contain only letters,
|
---|
44 | * numbers and hyphen, with the first character a letter , the last a letter or
|
---|
45 | * a number, and a 63 character maximum.
|
---|
46 | * @return Operation
|
---|
47 | * @throws \Google\Service\Exception
|
---|
48 | */
|
---|
49 | public function create($parent, ActiveDirectory $postBody, $optParams = [])
|
---|
50 | {
|
---|
51 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
52 | $params = array_merge($params, $optParams);
|
---|
53 | return $this->call('create', [$params], Operation::class);
|
---|
54 | }
|
---|
55 | /**
|
---|
56 | * Delete the active directory specified in the request.
|
---|
57 | * (activeDirectories.delete)
|
---|
58 | *
|
---|
59 | * @param string $name Required. Name of the active directory.
|
---|
60 | * @param array $optParams Optional parameters.
|
---|
61 | * @return Operation
|
---|
62 | * @throws \Google\Service\Exception
|
---|
63 | */
|
---|
64 | public function delete($name, $optParams = [])
|
---|
65 | {
|
---|
66 | $params = ['name' => $name];
|
---|
67 | $params = array_merge($params, $optParams);
|
---|
68 | return $this->call('delete', [$params], Operation::class);
|
---|
69 | }
|
---|
70 | /**
|
---|
71 | * Describes a specified active directory. (activeDirectories.get)
|
---|
72 | *
|
---|
73 | * @param string $name Required. Name of the active directory.
|
---|
74 | * @param array $optParams Optional parameters.
|
---|
75 | * @return ActiveDirectory
|
---|
76 | * @throws \Google\Service\Exception
|
---|
77 | */
|
---|
78 | public function get($name, $optParams = [])
|
---|
79 | {
|
---|
80 | $params = ['name' => $name];
|
---|
81 | $params = array_merge($params, $optParams);
|
---|
82 | return $this->call('get', [$params], ActiveDirectory::class);
|
---|
83 | }
|
---|
84 | /**
|
---|
85 | * Lists active directories.
|
---|
86 | * (activeDirectories.listProjectsLocationsActiveDirectories)
|
---|
87 | *
|
---|
88 | * @param string $parent Required. Parent value for ListActiveDirectoriesRequest
|
---|
89 | * @param array $optParams Optional parameters.
|
---|
90 | *
|
---|
91 | * @opt_param string filter Filtering results
|
---|
92 | * @opt_param string orderBy Hint for how to order the results
|
---|
93 | * @opt_param int pageSize Requested page size. Server may return fewer items
|
---|
94 | * than requested. If unspecified, the server will pick an appropriate default.
|
---|
95 | * @opt_param string pageToken A token identifying a page of results the server
|
---|
96 | * should return.
|
---|
97 | * @return ListActiveDirectoriesResponse
|
---|
98 | * @throws \Google\Service\Exception
|
---|
99 | */
|
---|
100 | public function listProjectsLocationsActiveDirectories($parent, $optParams = [])
|
---|
101 | {
|
---|
102 | $params = ['parent' => $parent];
|
---|
103 | $params = array_merge($params, $optParams);
|
---|
104 | return $this->call('list', [$params], ListActiveDirectoriesResponse::class);
|
---|
105 | }
|
---|
106 | /**
|
---|
107 | * Update the parameters of an active directories. (activeDirectories.patch)
|
---|
108 | *
|
---|
109 | * @param string $name Identifier. The resource name of the active directory.
|
---|
110 | * Format: `projects/{project_number}/locations/{location_id}/activeDirectories/
|
---|
111 | * {active_directory_id}`.
|
---|
112 | * @param ActiveDirectory $postBody
|
---|
113 | * @param array $optParams Optional parameters.
|
---|
114 | *
|
---|
115 | * @opt_param string updateMask Required. Field mask is used to specify the
|
---|
116 | * fields to be overwritten in the Active Directory resource by the update. The
|
---|
117 | * fields specified in the update_mask are relative to the resource, not the
|
---|
118 | * full request. A field will be overwritten if it is in the mask. If the user
|
---|
119 | * does not provide a mask then all fields will be overwritten.
|
---|
120 | * @return Operation
|
---|
121 | * @throws \Google\Service\Exception
|
---|
122 | */
|
---|
123 | public function patch($name, ActiveDirectory $postBody, $optParams = [])
|
---|
124 | {
|
---|
125 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
126 | $params = array_merge($params, $optParams);
|
---|
127 | return $this->call('patch', [$params], Operation::class);
|
---|
128 | }
|
---|
129 | }
|
---|
130 |
|
---|
131 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
132 | class_alias(ProjectsLocationsActiveDirectories::class, 'Google_Service_NetAppFiles_Resource_ProjectsLocationsActiveDirectories');
|
---|