source: vendor/google/apiclient-services/src/Directory/Resource/ResourcesFeatures.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 6.2 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\Directory\Resource;
19
20use Google\Service\Directory\Feature;
21use Google\Service\Directory\FeatureRename;
22use Google\Service\Directory\Features;
23
24/**
25 * The "features" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $adminService = new Google\Service\Directory(...);
29 * $features = $adminService->resources_features;
30 * </code>
31 */
32class ResourcesFeatures extends \Google\Service\Resource
33{
34 /**
35 * Deletes a feature. (features.delete)
36 *
37 * @param string $customer The unique ID for the customer's Google Workspace
38 * account. As an account administrator, you can also use the `my_customer`
39 * alias to represent your account's customer ID.
40 * @param string $featureKey The unique ID of the feature to delete.
41 * @param array $optParams Optional parameters.
42 * @throws \Google\Service\Exception
43 */
44 public function delete($customer, $featureKey, $optParams = [])
45 {
46 $params = ['customer' => $customer, 'featureKey' => $featureKey];
47 $params = array_merge($params, $optParams);
48 return $this->call('delete', [$params]);
49 }
50 /**
51 * Retrieves a feature. (features.get)
52 *
53 * @param string $customer The unique ID for the customer's Google Workspace
54 * account. As an account administrator, you can also use the `my_customer`
55 * alias to represent your account's customer ID.
56 * @param string $featureKey The unique ID of the feature to retrieve.
57 * @param array $optParams Optional parameters.
58 * @return Feature
59 * @throws \Google\Service\Exception
60 */
61 public function get($customer, $featureKey, $optParams = [])
62 {
63 $params = ['customer' => $customer, 'featureKey' => $featureKey];
64 $params = array_merge($params, $optParams);
65 return $this->call('get', [$params], Feature::class);
66 }
67 /**
68 * Inserts a feature. (features.insert)
69 *
70 * @param string $customer The unique ID for the customer's Google Workspace
71 * account. As an account administrator, you can also use the `my_customer`
72 * alias to represent your account's customer ID.
73 * @param Feature $postBody
74 * @param array $optParams Optional parameters.
75 * @return Feature
76 * @throws \Google\Service\Exception
77 */
78 public function insert($customer, Feature $postBody, $optParams = [])
79 {
80 $params = ['customer' => $customer, 'postBody' => $postBody];
81 $params = array_merge($params, $optParams);
82 return $this->call('insert', [$params], Feature::class);
83 }
84 /**
85 * Retrieves a list of features for an account. (features.listResourcesFeatures)
86 *
87 * @param string $customer The unique ID for the customer's Google Workspace
88 * account. As an account administrator, you can also use the `my_customer`
89 * alias to represent your account's customer ID.
90 * @param array $optParams Optional parameters.
91 *
92 * @opt_param int maxResults Maximum number of results to return.
93 * @opt_param string pageToken Token to specify the next page in the list.
94 * @return Features
95 * @throws \Google\Service\Exception
96 */
97 public function listResourcesFeatures($customer, $optParams = [])
98 {
99 $params = ['customer' => $customer];
100 $params = array_merge($params, $optParams);
101 return $this->call('list', [$params], Features::class);
102 }
103 /**
104 * Patches a feature. (features.patch)
105 *
106 * @param string $customer The unique ID for the customer's Google Workspace
107 * account. As an account administrator, you can also use the `my_customer`
108 * alias to represent your account's customer ID.
109 * @param string $featureKey The unique ID of the feature to update.
110 * @param Feature $postBody
111 * @param array $optParams Optional parameters.
112 * @return Feature
113 * @throws \Google\Service\Exception
114 */
115 public function patch($customer, $featureKey, Feature $postBody, $optParams = [])
116 {
117 $params = ['customer' => $customer, 'featureKey' => $featureKey, 'postBody' => $postBody];
118 $params = array_merge($params, $optParams);
119 return $this->call('patch', [$params], Feature::class);
120 }
121 /**
122 * Renames a feature. (features.rename)
123 *
124 * @param string $customer The unique ID for the customer's Google Workspace
125 * account. As an account administrator, you can also use the `my_customer`
126 * alias to represent your account's customer ID.
127 * @param string $oldName The unique ID of the feature to rename.
128 * @param FeatureRename $postBody
129 * @param array $optParams Optional parameters.
130 * @throws \Google\Service\Exception
131 */
132 public function rename($customer, $oldName, FeatureRename $postBody, $optParams = [])
133 {
134 $params = ['customer' => $customer, 'oldName' => $oldName, 'postBody' => $postBody];
135 $params = array_merge($params, $optParams);
136 return $this->call('rename', [$params]);
137 }
138 /**
139 * Updates a feature. (features.update)
140 *
141 * @param string $customer The unique ID for the customer's Google Workspace
142 * account. As an account administrator, you can also use the `my_customer`
143 * alias to represent your account's customer ID.
144 * @param string $featureKey The unique ID of the feature to update.
145 * @param Feature $postBody
146 * @param array $optParams Optional parameters.
147 * @return Feature
148 * @throws \Google\Service\Exception
149 */
150 public function update($customer, $featureKey, Feature $postBody, $optParams = [])
151 {
152 $params = ['customer' => $customer, 'featureKey' => $featureKey, 'postBody' => $postBody];
153 $params = array_merge($params, $optParams);
154 return $this->call('update', [$params], Feature::class);
155 }
156}
157
158// Adding a class alias for backwards compatibility with the previous class name.
159class_alias(ResourcesFeatures::class, 'Google_Service_Directory_Resource_ResourcesFeatures');
Note: See TracBrowser for help on using the repository browser.