source: vendor/google/apiclient-services/src/AndroidProvisioningPartner/Resource/CustomersConfigurations.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 5.0 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\AndroidProvisioningPartner\Resource;
19
20use Google\Service\AndroidProvisioningPartner\AndroiddeviceprovisioningEmpty;
21use Google\Service\AndroidProvisioningPartner\Configuration;
22use Google\Service\AndroidProvisioningPartner\CustomerListConfigurationsResponse;
23
24/**
25 * The "configurations" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $androiddeviceprovisioningService = new Google\Service\AndroidProvisioningPartner(...);
29 * $configurations = $androiddeviceprovisioningService->customers_configurations;
30 * </code>
31 */
32class CustomersConfigurations extends \Google\Service\Resource
33{
34 /**
35 * Creates a new configuration. Once created, a customer can apply the
36 * configuration to devices. (configurations.create)
37 *
38 * @param string $parent Required. The customer that manages the configuration.
39 * An API resource name in the format `customers/[CUSTOMER_ID]`. This field has
40 * custom validation in CreateConfigurationRequestValidator
41 * @param Configuration $postBody
42 * @param array $optParams Optional parameters.
43 * @return Configuration
44 * @throws \Google\Service\Exception
45 */
46 public function create($parent, Configuration $postBody, $optParams = [])
47 {
48 $params = ['parent' => $parent, 'postBody' => $postBody];
49 $params = array_merge($params, $optParams);
50 return $this->call('create', [$params], Configuration::class);
51 }
52 /**
53 * Deletes an unused configuration. The API call fails if the customer has
54 * devices with the configuration applied. (configurations.delete)
55 *
56 * @param string $name Required. The configuration to delete. An API resource
57 * name in the format
58 * `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. If the
59 * configuration is applied to any devices, the API call fails.
60 * @param array $optParams Optional parameters.
61 * @return AndroiddeviceprovisioningEmpty
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], AndroiddeviceprovisioningEmpty::class);
69 }
70 /**
71 * Gets the details of a configuration. (configurations.get)
72 *
73 * @param string $name Required. The configuration to get. An API resource name
74 * in the format `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`.
75 * @param array $optParams Optional parameters.
76 * @return Configuration
77 * @throws \Google\Service\Exception
78 */
79 public function get($name, $optParams = [])
80 {
81 $params = ['name' => $name];
82 $params = array_merge($params, $optParams);
83 return $this->call('get', [$params], Configuration::class);
84 }
85 /**
86 * Lists a customer's configurations.
87 * (configurations.listCustomersConfigurations)
88 *
89 * @param string $parent Required. The customer that manages the listed
90 * configurations. An API resource name in the format `customers/[CUSTOMER_ID]`.
91 * @param array $optParams Optional parameters.
92 * @return CustomerListConfigurationsResponse
93 * @throws \Google\Service\Exception
94 */
95 public function listCustomersConfigurations($parent, $optParams = [])
96 {
97 $params = ['parent' => $parent];
98 $params = array_merge($params, $optParams);
99 return $this->call('list', [$params], CustomerListConfigurationsResponse::class);
100 }
101 /**
102 * Updates a configuration's field values. (configurations.patch)
103 *
104 * @param string $name Output only. The API resource name in the format
105 * `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. Assigned by the
106 * server.
107 * @param Configuration $postBody
108 * @param array $optParams Optional parameters.
109 *
110 * @opt_param string updateMask Required. The field mask applied to the target
111 * `Configuration` before updating the fields. To learn more about using field
112 * masks, read [FieldMask](/protocol-
113 * buffers/docs/reference/google.protobuf#fieldmask) in the Protocol Buffers
114 * documentation.
115 * @return Configuration
116 * @throws \Google\Service\Exception
117 */
118 public function patch($name, Configuration $postBody, $optParams = [])
119 {
120 $params = ['name' => $name, 'postBody' => $postBody];
121 $params = array_merge($params, $optParams);
122 return $this->call('patch', [$params], Configuration::class);
123 }
124}
125
126// Adding a class alias for backwards compatibility with the previous class name.
127class_alias(CustomersConfigurations::class, 'Google_Service_AndroidProvisioningPartner_Resource_CustomersConfigurations');
Note: See TracBrowser for help on using the repository browser.