source: vendor/google/apiclient-services/src/SmartDeviceManagement.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 5.4 KB
RevLine 
[e3d4e0a]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;
19
20use Google\Client;
21
22/**
23 * Service definition for SmartDeviceManagement (v1).
24 *
25 * <p>
26 * Allow select enterprise partners to access, control, and manage Google and
27 * Nest devices programmatically.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://developers.google.com/nest/device-access" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class SmartDeviceManagement extends \Google\Service
37{
38 /** See and/or control the devices that you selected. */
39 const SDM_SERVICE =
40 "https://www.googleapis.com/auth/sdm.service";
41
42 public $enterprises_devices;
43 public $enterprises_structures;
44 public $enterprises_structures_rooms;
45 public $rootUrlTemplate;
46
47 /**
48 * Constructs the internal representation of the SmartDeviceManagement
49 * service.
50 *
51 * @param Client|array $clientOrConfig The client used to deliver requests, or a
52 * config array to pass to a new Client instance.
53 * @param string $rootUrl The root URL used for requests to the service.
54 */
55 public function __construct($clientOrConfig = [], $rootUrl = null)
56 {
57 parent::__construct($clientOrConfig);
58 $this->rootUrl = $rootUrl ?: 'https://smartdevicemanagement.googleapis.com/';
59 $this->rootUrlTemplate = $rootUrl ?: 'https://smartdevicemanagement.UNIVERSE_DOMAIN/';
60 $this->servicePath = '';
61 $this->batchPath = 'batch';
62 $this->version = 'v1';
63 $this->serviceName = 'smartdevicemanagement';
64
65 $this->enterprises_devices = new SmartDeviceManagement\Resource\EnterprisesDevices(
66 $this,
67 $this->serviceName,
68 'devices',
69 [
70 'methods' => [
71 'executeCommand' => [
72 'path' => 'v1/{+name}:executeCommand',
73 'httpMethod' => 'POST',
74 'parameters' => [
75 'name' => [
76 'location' => 'path',
77 'type' => 'string',
78 'required' => true,
79 ],
80 ],
81 ],'get' => [
82 'path' => 'v1/{+name}',
83 'httpMethod' => 'GET',
84 'parameters' => [
85 'name' => [
86 'location' => 'path',
87 'type' => 'string',
88 'required' => true,
89 ],
90 ],
91 ],'list' => [
92 'path' => 'v1/{+parent}/devices',
93 'httpMethod' => 'GET',
94 'parameters' => [
95 'parent' => [
96 'location' => 'path',
97 'type' => 'string',
98 'required' => true,
99 ],
100 'filter' => [
101 'location' => 'query',
102 'type' => 'string',
103 ],
104 ],
105 ],
106 ]
107 ]
108 );
109 $this->enterprises_structures = new SmartDeviceManagement\Resource\EnterprisesStructures(
110 $this,
111 $this->serviceName,
112 'structures',
113 [
114 'methods' => [
115 'get' => [
116 'path' => 'v1/{+name}',
117 'httpMethod' => 'GET',
118 'parameters' => [
119 'name' => [
120 'location' => 'path',
121 'type' => 'string',
122 'required' => true,
123 ],
124 ],
125 ],'list' => [
126 'path' => 'v1/{+parent}/structures',
127 'httpMethod' => 'GET',
128 'parameters' => [
129 'parent' => [
130 'location' => 'path',
131 'type' => 'string',
132 'required' => true,
133 ],
134 'filter' => [
135 'location' => 'query',
136 'type' => 'string',
137 ],
138 ],
139 ],
140 ]
141 ]
142 );
143 $this->enterprises_structures_rooms = new SmartDeviceManagement\Resource\EnterprisesStructuresRooms(
144 $this,
145 $this->serviceName,
146 'rooms',
147 [
148 'methods' => [
149 'get' => [
150 'path' => 'v1/{+name}',
151 'httpMethod' => 'GET',
152 'parameters' => [
153 'name' => [
154 'location' => 'path',
155 'type' => 'string',
156 'required' => true,
157 ],
158 ],
159 ],'list' => [
160 'path' => 'v1/{+parent}/rooms',
161 'httpMethod' => 'GET',
162 'parameters' => [
163 'parent' => [
164 'location' => 'path',
165 'type' => 'string',
166 'required' => true,
167 ],
168 ],
169 ],
170 ]
171 ]
172 );
173 }
174}
175
176// Adding a class alias for backwards compatibility with the previous class name.
177class_alias(SmartDeviceManagement::class, 'Google_Service_SmartDeviceManagement');
Note: See TracBrowser for help on using the repository browser.