source: vendor/google/apiclient-services/src/SASPortalTesting/Resource/DeploymentsDevices.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: 4.6 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\SASPortalTesting\Resource;
19
20use Google\Service\SASPortalTesting\SasPortalDevice;
21use Google\Service\SASPortalTesting\SasPortalEmpty;
22use Google\Service\SASPortalTesting\SasPortalMoveDeviceRequest;
23use Google\Service\SASPortalTesting\SasPortalOperation;
24use Google\Service\SASPortalTesting\SasPortalSignDeviceRequest;
25use Google\Service\SASPortalTesting\SasPortalUpdateSignedDeviceRequest;
26
27/**
28 * The "devices" collection of methods.
29 * Typical usage is:
30 * <code>
31 * $prod_tt_sasportalService = new Google\Service\SASPortalTesting(...);
32 * $devices = $prod_tt_sasportalService->deployments_devices;
33 * </code>
34 */
35class DeploymentsDevices extends \Google\Service\Resource
36{
37 /**
38 * Deletes a device. (devices.delete)
39 *
40 * @param string $name Required. The name of the device.
41 * @param array $optParams Optional parameters.
42 * @return SasPortalEmpty
43 * @throws \Google\Service\Exception
44 */
45 public function delete($name, $optParams = [])
46 {
47 $params = ['name' => $name];
48 $params = array_merge($params, $optParams);
49 return $this->call('delete', [$params], SasPortalEmpty::class);
50 }
51 /**
52 * Gets details about a device. (devices.get)
53 *
54 * @param string $name Required. The name of the device.
55 * @param array $optParams Optional parameters.
56 * @return SasPortalDevice
57 * @throws \Google\Service\Exception
58 */
59 public function get($name, $optParams = [])
60 {
61 $params = ['name' => $name];
62 $params = array_merge($params, $optParams);
63 return $this->call('get', [$params], SasPortalDevice::class);
64 }
65 /**
66 * Moves a device under another node or customer. (devices.move)
67 *
68 * @param string $name Required. The name of the device to move.
69 * @param SasPortalMoveDeviceRequest $postBody
70 * @param array $optParams Optional parameters.
71 * @return SasPortalOperation
72 * @throws \Google\Service\Exception
73 */
74 public function move($name, SasPortalMoveDeviceRequest $postBody, $optParams = [])
75 {
76 $params = ['name' => $name, 'postBody' => $postBody];
77 $params = array_merge($params, $optParams);
78 return $this->call('move', [$params], SasPortalOperation::class);
79 }
80 /**
81 * Updates a device. (devices.patch)
82 *
83 * @param string $name Output only. The resource path name.
84 * @param SasPortalDevice $postBody
85 * @param array $optParams Optional parameters.
86 *
87 * @opt_param string updateMask Fields to be updated.
88 * @return SasPortalDevice
89 * @throws \Google\Service\Exception
90 */
91 public function patch($name, SasPortalDevice $postBody, $optParams = [])
92 {
93 $params = ['name' => $name, 'postBody' => $postBody];
94 $params = array_merge($params, $optParams);
95 return $this->call('patch', [$params], SasPortalDevice::class);
96 }
97 /**
98 * Signs a device. (devices.signDevice)
99 *
100 * @param string $name Output only. The resource path name.
101 * @param SasPortalSignDeviceRequest $postBody
102 * @param array $optParams Optional parameters.
103 * @return SasPortalEmpty
104 * @throws \Google\Service\Exception
105 */
106 public function signDevice($name, SasPortalSignDeviceRequest $postBody, $optParams = [])
107 {
108 $params = ['name' => $name, 'postBody' => $postBody];
109 $params = array_merge($params, $optParams);
110 return $this->call('signDevice', [$params], SasPortalEmpty::class);
111 }
112 /**
113 * Updates a signed device. (devices.updateSigned)
114 *
115 * @param string $name Required. The name of the device to update.
116 * @param SasPortalUpdateSignedDeviceRequest $postBody
117 * @param array $optParams Optional parameters.
118 * @return SasPortalDevice
119 * @throws \Google\Service\Exception
120 */
121 public function updateSigned($name, SasPortalUpdateSignedDeviceRequest $postBody, $optParams = [])
122 {
123 $params = ['name' => $name, 'postBody' => $postBody];
124 $params = array_merge($params, $optParams);
125 return $this->call('updateSigned', [$params], SasPortalDevice::class);
126 }
127}
128
129// Adding a class alias for backwards compatibility with the previous class name.
130class_alias(DeploymentsDevices::class, 'Google_Service_SASPortalTesting_Resource_DeploymentsDevices');
Note: See TracBrowser for help on using the repository browser.