source: vendor/google/apiclient-services/src/Sasportal/Resource/CustomersDeploymentsDevices.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: 3.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\Sasportal\Resource;
19
20use Google\Service\Sasportal\SasPortalCreateSignedDeviceRequest;
21use Google\Service\Sasportal\SasPortalDevice;
22use Google\Service\Sasportal\SasPortalListDevicesResponse;
23
24/**
25 * The "devices" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $sasportalService = new Google\Service\Sasportal(...);
29 * $devices = $sasportalService->customers_deployments_devices;
30 * </code>
31 */
32class CustomersDeploymentsDevices 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.
66 * (devices.listCustomersDeploymentsDevices)
67 *
68 * @param string $parent Required. The name of the parent resource.
69 * @param array $optParams Optional parameters.
70 *
71 * @opt_param string filter The filter expression. The filter should have one of
72 * the following formats: "sn=123454" or "display_name=MyDevice". sn corresponds
73 * to serial number of the device. The filter is case insensitive.
74 * @opt_param int pageSize The maximum number of devices to return in the
75 * response. If empty or zero, all devices will be listed. Must be in the range
76 * [0, 1000].
77 * @opt_param string pageToken A pagination token returned from a previous call
78 * to ListDevices that indicates where this listing should continue from.
79 * @return SasPortalListDevicesResponse
80 * @throws \Google\Service\Exception
81 */
82 public function listCustomersDeploymentsDevices($parent, $optParams = [])
83 {
84 $params = ['parent' => $parent];
85 $params = array_merge($params, $optParams);
86 return $this->call('list', [$params], SasPortalListDevicesResponse::class);
87 }
88}
89
90// Adding a class alias for backwards compatibility with the previous class name.
91class_alias(CustomersDeploymentsDevices::class, 'Google_Service_Sasportal_Resource_CustomersDeploymentsDevices');
Note: See TracBrowser for help on using the repository browser.