Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SmartDeviceManagement;
class GoogleHomeEnterpriseSdmV1Device extends \Google\Collection
{
protected $collection_key = 'parentRelations';
/**
* @var string
*/
public $name;
protected $parentRelationsType = GoogleHomeEnterpriseSdmV1ParentRelation::class;
protected $parentRelationsDataType = 'array';
/**
* @var array[]
*/
public $traits;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param GoogleHomeEnterpriseSdmV1ParentRelation[]
*/
public function setParentRelations($parentRelations)
{
$this->parentRelations = $parentRelations;
}
/**
* @return GoogleHomeEnterpriseSdmV1ParentRelation[]
*/
public function getParentRelations()
{
return $this->parentRelations;
}
/**
* @param array[]
*/
public function setTraits($traits)
{
$this->traits = $traits;
}
/**
* @return array[]
*/
public function getTraits()
{
return $this->traits;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleHomeEnterpriseSdmV1Device::class, 'Google_Service_SmartDeviceManagement_GoogleHomeEnterpriseSdmV1Device');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SmartDeviceManagement;
class GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest extends \Google\Model
{
/**
* @var string
*/
public $command;
/**
* @var array[]
*/
public $params;
/**
* @param string
*/
public function setCommand($command)
{
$this->command = $command;
}
/**
* @return string
*/
public function getCommand()
{
return $this->command;
}
/**
* @param array[]
*/
public function setParams($params)
{
$this->params = $params;
}
/**
* @return array[]
*/
public function getParams()
{
return $this->params;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest::class, 'Google_Service_SmartDeviceManagement_GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SmartDeviceManagement;
class GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse extends \Google\Model
{
/**
* @var array[]
*/
public $results;
/**
* @param array[]
*/
public function setResults($results)
{
$this->results = $results;
}
/**
* @return array[]
*/
public function getResults()
{
return $this->results;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse::class, 'Google_Service_SmartDeviceManagement_GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse');

View File

@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SmartDeviceManagement;
class GoogleHomeEnterpriseSdmV1ListDevicesResponse extends \Google\Collection
{
protected $collection_key = 'devices';
protected $devicesType = GoogleHomeEnterpriseSdmV1Device::class;
protected $devicesDataType = 'array';
/**
* @param GoogleHomeEnterpriseSdmV1Device[]
*/
public function setDevices($devices)
{
$this->devices = $devices;
}
/**
* @return GoogleHomeEnterpriseSdmV1Device[]
*/
public function getDevices()
{
return $this->devices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleHomeEnterpriseSdmV1ListDevicesResponse::class, 'Google_Service_SmartDeviceManagement_GoogleHomeEnterpriseSdmV1ListDevicesResponse');

View File

@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SmartDeviceManagement;
class GoogleHomeEnterpriseSdmV1ListRoomsResponse extends \Google\Collection
{
protected $collection_key = 'rooms';
protected $roomsType = GoogleHomeEnterpriseSdmV1Room::class;
protected $roomsDataType = 'array';
/**
* @param GoogleHomeEnterpriseSdmV1Room[]
*/
public function setRooms($rooms)
{
$this->rooms = $rooms;
}
/**
* @return GoogleHomeEnterpriseSdmV1Room[]
*/
public function getRooms()
{
return $this->rooms;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleHomeEnterpriseSdmV1ListRoomsResponse::class, 'Google_Service_SmartDeviceManagement_GoogleHomeEnterpriseSdmV1ListRoomsResponse');

View File

@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SmartDeviceManagement;
class GoogleHomeEnterpriseSdmV1ListStructuresResponse extends \Google\Collection
{
protected $collection_key = 'structures';
protected $structuresType = GoogleHomeEnterpriseSdmV1Structure::class;
protected $structuresDataType = 'array';
/**
* @param GoogleHomeEnterpriseSdmV1Structure[]
*/
public function setStructures($structures)
{
$this->structures = $structures;
}
/**
* @return GoogleHomeEnterpriseSdmV1Structure[]
*/
public function getStructures()
{
return $this->structures;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleHomeEnterpriseSdmV1ListStructuresResponse::class, 'Google_Service_SmartDeviceManagement_GoogleHomeEnterpriseSdmV1ListStructuresResponse');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SmartDeviceManagement;
class GoogleHomeEnterpriseSdmV1ParentRelation extends \Google\Model
{
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $parent;
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleHomeEnterpriseSdmV1ParentRelation::class, 'Google_Service_SmartDeviceManagement_GoogleHomeEnterpriseSdmV1ParentRelation');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SmartDeviceManagement;
class GoogleHomeEnterpriseSdmV1Room extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @var array[]
*/
public $traits;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param array[]
*/
public function setTraits($traits)
{
$this->traits = $traits;
}
/**
* @return array[]
*/
public function getTraits()
{
return $this->traits;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleHomeEnterpriseSdmV1Room::class, 'Google_Service_SmartDeviceManagement_GoogleHomeEnterpriseSdmV1Room');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SmartDeviceManagement;
class GoogleHomeEnterpriseSdmV1Structure extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @var array[]
*/
public $traits;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param array[]
*/
public function setTraits($traits)
{
$this->traits = $traits;
}
/**
* @return array[]
*/
public function getTraits()
{
return $this->traits;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleHomeEnterpriseSdmV1Structure::class, 'Google_Service_SmartDeviceManagement_GoogleHomeEnterpriseSdmV1Structure');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SmartDeviceManagement\Resource;
/**
* The "enterprises" collection of methods.
* Typical usage is:
* <code>
* $smartdevicemanagementService = new Google\Service\SmartDeviceManagement(...);
* $enterprises = $smartdevicemanagementService->enterprises;
* </code>
*/
class Enterprises extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Enterprises::class, 'Google_Service_SmartDeviceManagement_Resource_Enterprises');

View File

@@ -0,0 +1,88 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SmartDeviceManagement\Resource;
use Google\Service\SmartDeviceManagement\GoogleHomeEnterpriseSdmV1Device;
use Google\Service\SmartDeviceManagement\GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest;
use Google\Service\SmartDeviceManagement\GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse;
use Google\Service\SmartDeviceManagement\GoogleHomeEnterpriseSdmV1ListDevicesResponse;
/**
* The "devices" collection of methods.
* Typical usage is:
* <code>
* $smartdevicemanagementService = new Google\Service\SmartDeviceManagement(...);
* $devices = $smartdevicemanagementService->enterprises_devices;
* </code>
*/
class EnterprisesDevices extends \Google\Service\Resource
{
/**
* Executes a command to device managed by the enterprise.
* (devices.executeCommand)
*
* @param string $name The name of the device requested. For example:
* "enterprises/XYZ/devices/123"
* @param GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse
* @throws \Google\Service\Exception
*/
public function executeCommand($name, GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('executeCommand', [$params], GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse::class);
}
/**
* Gets a device managed by the enterprise. (devices.get)
*
* @param string $name The name of the device requested. For example:
* "enterprises/XYZ/devices/123"
* @param array $optParams Optional parameters.
* @return GoogleHomeEnterpriseSdmV1Device
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleHomeEnterpriseSdmV1Device::class);
}
/**
* Lists devices managed by the enterprise. (devices.listEnterprisesDevices)
*
* @param string $parent The parent enterprise to list devices under. E.g.
* "enterprises/XYZ".
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional filter to list devices. Filters can be done
* on: Device custom name (substring match): 'customName=wing'
* @return GoogleHomeEnterpriseSdmV1ListDevicesResponse
* @throws \Google\Service\Exception
*/
public function listEnterprisesDevices($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleHomeEnterpriseSdmV1ListDevicesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnterprisesDevices::class, 'Google_Service_SmartDeviceManagement_Resource_EnterprisesDevices');

View File

@@ -0,0 +1,69 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SmartDeviceManagement\Resource;
use Google\Service\SmartDeviceManagement\GoogleHomeEnterpriseSdmV1ListStructuresResponse;
use Google\Service\SmartDeviceManagement\GoogleHomeEnterpriseSdmV1Structure;
/**
* The "structures" collection of methods.
* Typical usage is:
* <code>
* $smartdevicemanagementService = new Google\Service\SmartDeviceManagement(...);
* $structures = $smartdevicemanagementService->enterprises_structures;
* </code>
*/
class EnterprisesStructures extends \Google\Service\Resource
{
/**
* Gets a structure managed by the enterprise. (structures.get)
*
* @param string $name The name of the structure requested. For example:
* "enterprises/XYZ/structures/ABC".
* @param array $optParams Optional parameters.
* @return GoogleHomeEnterpriseSdmV1Structure
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleHomeEnterpriseSdmV1Structure::class);
}
/**
* Lists structures managed by the enterprise.
* (structures.listEnterprisesStructures)
*
* @param string $parent The parent enterprise to list structures under. E.g.
* "enterprises/XYZ".
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional filter to list structures.
* @return GoogleHomeEnterpriseSdmV1ListStructuresResponse
* @throws \Google\Service\Exception
*/
public function listEnterprisesStructures($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleHomeEnterpriseSdmV1ListStructuresResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnterprisesStructures::class, 'Google_Service_SmartDeviceManagement_Resource_EnterprisesStructures');

View File

@@ -0,0 +1,66 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SmartDeviceManagement\Resource;
use Google\Service\SmartDeviceManagement\GoogleHomeEnterpriseSdmV1ListRoomsResponse;
use Google\Service\SmartDeviceManagement\GoogleHomeEnterpriseSdmV1Room;
/**
* The "rooms" collection of methods.
* Typical usage is:
* <code>
* $smartdevicemanagementService = new Google\Service\SmartDeviceManagement(...);
* $rooms = $smartdevicemanagementService->enterprises_structures_rooms;
* </code>
*/
class EnterprisesStructuresRooms extends \Google\Service\Resource
{
/**
* Gets a room managed by the enterprise. (rooms.get)
*
* @param string $name The name of the room requested. For example:
* "enterprises/XYZ/structures/ABC/rooms/123".
* @param array $optParams Optional parameters.
* @return GoogleHomeEnterpriseSdmV1Room
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleHomeEnterpriseSdmV1Room::class);
}
/**
* Lists rooms managed by the enterprise. (rooms.listEnterprisesStructuresRooms)
*
* @param string $parent The parent resource name of the rooms requested. For
* example: "enterprises/XYZ/structures/ABC".
* @param array $optParams Optional parameters.
* @return GoogleHomeEnterpriseSdmV1ListRoomsResponse
* @throws \Google\Service\Exception
*/
public function listEnterprisesStructuresRooms($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleHomeEnterpriseSdmV1ListRoomsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnterprisesStructuresRooms::class, 'Google_Service_SmartDeviceManagement_Resource_EnterprisesStructuresRooms');