source: vendor/google/apiclient-services/src/SASPortalTesting/Resource/NodesNodesDevices.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: 3.5 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\SasPortalCreateSignedDeviceRequest;
21use Google\Service\SASPortalTesting\SasPortalDevice;
22use Google\Service\SASPortalTesting\SasPortalListDevicesResponse;
23
24/**
25 * The "devices" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $prod_tt_sasportalService = new Google\Service\SASPortalTesting(...);
29 * $devices = $prod_tt_sasportalService->nodes_nodes_devices;
30 * </code>
31 */
32class NodesNodesDevices extends \Google\Service\Resource
33{
34 /**
35 * Creates a device under a node or customer. (devices.create)
36 *
37 * @param string $parent Required. The name of the parent resource.
38 * @param SasPortalDevice $postBody
39 * @param array $optParams Optional parameters.
40 * @return SasPortalDevice
41 * @throws \Google\Service\Exception
42 */
43 public function create($parent, SasPortalDevice $postBody, $optParams = [])
44 {
45 $params = ['parent' => $parent, 'postBody' => $postBody];
46 $params = array_merge($params, $optParams);
47 return $this->call('create', [$params], SasPortalDevice::class);
48 }
49 /**
50 * Creates a signed device under a node or customer. (devices.createSigned)
51 *
52 * @param string $parent Required. The name of the parent resource.
53 * @param SasPortalCreateSignedDeviceRequest $postBody
54 * @param array $optParams Optional parameters.
55 * @return SasPortalDevice
56 * @throws \Google\Service\Exception
57 */
58 public function createSigned($parent, SasPortalCreateSignedDeviceRequest $postBody, $optParams = [])
59 {
60 $params = ['parent' => $parent, 'postBody' => $postBody];
61 $params = array_merge($params, $optParams);
62 return $this->call('createSigned', [$params], SasPortalDevice::class);
63 }
64 /**
65 * Lists devices under a node or customer. (devices.listNodesNodesDevices)
66 *
67 * @param string $parent Required. The name of the parent resource.
68 * @param array $optParams Optional parameters.
69 *
70 * @opt_param string filter The filter expression. The filter should have one of
71 * the following formats: "sn=123454" or "display_name=MyDevice". sn corresponds
72 * to serial number of the device. The filter is case insensitive.
73 * @opt_param int pageSize The maximum number of devices to return in the
74 * response. If empty or zero, all devices will be listed. Must be in the range
75 * [0, 1000].
76 * @opt_param string pageToken A pagination token returned from a previous call
77 * to ListDevices that indicates where this listing should continue from.
78 * @return SasPortalListDevicesResponse
79 * @throws \Google\Service\Exception
80 */
81 public function listNodesNodesDevices($parent, $optParams = [])
82 {
83 $params = ['parent' => $parent];
84 $params = array_merge($params, $optParams);
85 return $this->call('list', [$params], SasPortalListDevicesResponse::class);
86 }
87}
88
89// Adding a class alias for backwards compatibility with the previous class name.
90class_alias(NodesNodesDevices::class, 'Google_Service_SASPortalTesting_Resource_NodesNodesDevices');
Note: See TracBrowser for help on using the repository browser.