Initial commit: Complete WooCommerce Smart Google Pricing plugin with vendor dependencies

This commit is contained in:
2025-12-23 07:48:45 +01:00
commit 9b66109ca1
32472 changed files with 4065017 additions and 0 deletions

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\CloudIot;
class BindDeviceToGatewayRequest extends \Google\Model
{
/**
* @var string
*/
public $deviceId;
/**
* @var string
*/
public $gatewayId;
/**
* @param string
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
}
/**
* @return string
*/
public function getDeviceId()
{
return $this->deviceId;
}
/**
* @param string
*/
public function setGatewayId($gatewayId)
{
$this->gatewayId = $gatewayId;
}
/**
* @return string
*/
public function getGatewayId()
{
return $this->gatewayId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BindDeviceToGatewayRequest::class, 'Google_Service_CloudIot_BindDeviceToGatewayRequest');

View File

@@ -0,0 +1,25 @@
<?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\CloudIot;
class BindDeviceToGatewayResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BindDeviceToGatewayResponse::class, 'Google_Service_CloudIot_BindDeviceToGatewayResponse');

View File

@@ -0,0 +1,79 @@
<?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\CloudIot;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* @var string[]
*/
public $members;
/**
* @var string
*/
public $role;
/**
* @param Expr
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* @param string[]
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* @param string
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Binding::class, 'Google_Service_CloudIot_Binding');

View File

@@ -0,0 +1,25 @@
<?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\CloudIot;
class CloudiotEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudiotEmpty::class, 'Google_Service_CloudIot_CloudiotEmpty');

View File

@@ -0,0 +1,323 @@
<?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\CloudIot;
class Device extends \Google\Collection
{
protected $collection_key = 'credentials';
/**
* @var bool
*/
public $blocked;
protected $configType = DeviceConfig::class;
protected $configDataType = '';
protected $credentialsType = DeviceCredential::class;
protected $credentialsDataType = 'array';
protected $gatewayConfigType = GatewayConfig::class;
protected $gatewayConfigDataType = '';
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $lastConfigAckTime;
/**
* @var string
*/
public $lastConfigSendTime;
protected $lastErrorStatusType = Status::class;
protected $lastErrorStatusDataType = '';
/**
* @var string
*/
public $lastErrorTime;
/**
* @var string
*/
public $lastEventTime;
/**
* @var string
*/
public $lastHeartbeatTime;
/**
* @var string
*/
public $lastStateTime;
/**
* @var string
*/
public $logLevel;
/**
* @var string[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $numId;
protected $stateType = DeviceState::class;
protected $stateDataType = '';
/**
* @param bool
*/
public function setBlocked($blocked)
{
$this->blocked = $blocked;
}
/**
* @return bool
*/
public function getBlocked()
{
return $this->blocked;
}
/**
* @param DeviceConfig
*/
public function setConfig(DeviceConfig $config)
{
$this->config = $config;
}
/**
* @return DeviceConfig
*/
public function getConfig()
{
return $this->config;
}
/**
* @param DeviceCredential[]
*/
public function setCredentials($credentials)
{
$this->credentials = $credentials;
}
/**
* @return DeviceCredential[]
*/
public function getCredentials()
{
return $this->credentials;
}
/**
* @param GatewayConfig
*/
public function setGatewayConfig(GatewayConfig $gatewayConfig)
{
$this->gatewayConfig = $gatewayConfig;
}
/**
* @return GatewayConfig
*/
public function getGatewayConfig()
{
return $this->gatewayConfig;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setLastConfigAckTime($lastConfigAckTime)
{
$this->lastConfigAckTime = $lastConfigAckTime;
}
/**
* @return string
*/
public function getLastConfigAckTime()
{
return $this->lastConfigAckTime;
}
/**
* @param string
*/
public function setLastConfigSendTime($lastConfigSendTime)
{
$this->lastConfigSendTime = $lastConfigSendTime;
}
/**
* @return string
*/
public function getLastConfigSendTime()
{
return $this->lastConfigSendTime;
}
/**
* @param Status
*/
public function setLastErrorStatus(Status $lastErrorStatus)
{
$this->lastErrorStatus = $lastErrorStatus;
}
/**
* @return Status
*/
public function getLastErrorStatus()
{
return $this->lastErrorStatus;
}
/**
* @param string
*/
public function setLastErrorTime($lastErrorTime)
{
$this->lastErrorTime = $lastErrorTime;
}
/**
* @return string
*/
public function getLastErrorTime()
{
return $this->lastErrorTime;
}
/**
* @param string
*/
public function setLastEventTime($lastEventTime)
{
$this->lastEventTime = $lastEventTime;
}
/**
* @return string
*/
public function getLastEventTime()
{
return $this->lastEventTime;
}
/**
* @param string
*/
public function setLastHeartbeatTime($lastHeartbeatTime)
{
$this->lastHeartbeatTime = $lastHeartbeatTime;
}
/**
* @return string
*/
public function getLastHeartbeatTime()
{
return $this->lastHeartbeatTime;
}
/**
* @param string
*/
public function setLastStateTime($lastStateTime)
{
$this->lastStateTime = $lastStateTime;
}
/**
* @return string
*/
public function getLastStateTime()
{
return $this->lastStateTime;
}
/**
* @param string
*/
public function setLogLevel($logLevel)
{
$this->logLevel = $logLevel;
}
/**
* @return string
*/
public function getLogLevel()
{
return $this->logLevel;
}
/**
* @param string[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return string[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setNumId($numId)
{
$this->numId = $numId;
}
/**
* @return string
*/
public function getNumId()
{
return $this->numId;
}
/**
* @param DeviceState
*/
public function setState(DeviceState $state)
{
$this->state = $state;
}
/**
* @return DeviceState
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Device::class, 'Google_Service_CloudIot_Device');

View File

@@ -0,0 +1,98 @@
<?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\CloudIot;
class DeviceConfig extends \Google\Model
{
/**
* @var string
*/
public $binaryData;
/**
* @var string
*/
public $cloudUpdateTime;
/**
* @var string
*/
public $deviceAckTime;
/**
* @var string
*/
public $version;
/**
* @param string
*/
public function setBinaryData($binaryData)
{
$this->binaryData = $binaryData;
}
/**
* @return string
*/
public function getBinaryData()
{
return $this->binaryData;
}
/**
* @param string
*/
public function setCloudUpdateTime($cloudUpdateTime)
{
$this->cloudUpdateTime = $cloudUpdateTime;
}
/**
* @return string
*/
public function getCloudUpdateTime()
{
return $this->cloudUpdateTime;
}
/**
* @param string
*/
public function setDeviceAckTime($deviceAckTime)
{
$this->deviceAckTime = $deviceAckTime;
}
/**
* @return string
*/
public function getDeviceAckTime()
{
return $this->deviceAckTime;
}
/**
* @param string
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceConfig::class, 'Google_Service_CloudIot_DeviceConfig');

View File

@@ -0,0 +1,60 @@
<?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\CloudIot;
class DeviceCredential extends \Google\Model
{
/**
* @var string
*/
public $expirationTime;
protected $publicKeyType = PublicKeyCredential::class;
protected $publicKeyDataType = '';
/**
* @param string
*/
public function setExpirationTime($expirationTime)
{
$this->expirationTime = $expirationTime;
}
/**
* @return string
*/
public function getExpirationTime()
{
return $this->expirationTime;
}
/**
* @param PublicKeyCredential
*/
public function setPublicKey(PublicKeyCredential $publicKey)
{
$this->publicKey = $publicKey;
}
/**
* @return PublicKeyCredential
*/
public function getPublicKey()
{
return $this->publicKey;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceCredential::class, 'Google_Service_CloudIot_DeviceCredential');

View File

@@ -0,0 +1,161 @@
<?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\CloudIot;
class DeviceRegistry extends \Google\Collection
{
protected $collection_key = 'eventNotificationConfigs';
protected $credentialsType = RegistryCredential::class;
protected $credentialsDataType = 'array';
protected $eventNotificationConfigsType = EventNotificationConfig::class;
protected $eventNotificationConfigsDataType = 'array';
protected $httpConfigType = HttpConfig::class;
protected $httpConfigDataType = '';
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $logLevel;
protected $mqttConfigType = MqttConfig::class;
protected $mqttConfigDataType = '';
/**
* @var string
*/
public $name;
protected $stateNotificationConfigType = StateNotificationConfig::class;
protected $stateNotificationConfigDataType = '';
/**
* @param RegistryCredential[]
*/
public function setCredentials($credentials)
{
$this->credentials = $credentials;
}
/**
* @return RegistryCredential[]
*/
public function getCredentials()
{
return $this->credentials;
}
/**
* @param EventNotificationConfig[]
*/
public function setEventNotificationConfigs($eventNotificationConfigs)
{
$this->eventNotificationConfigs = $eventNotificationConfigs;
}
/**
* @return EventNotificationConfig[]
*/
public function getEventNotificationConfigs()
{
return $this->eventNotificationConfigs;
}
/**
* @param HttpConfig
*/
public function setHttpConfig(HttpConfig $httpConfig)
{
$this->httpConfig = $httpConfig;
}
/**
* @return HttpConfig
*/
public function getHttpConfig()
{
return $this->httpConfig;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setLogLevel($logLevel)
{
$this->logLevel = $logLevel;
}
/**
* @return string
*/
public function getLogLevel()
{
return $this->logLevel;
}
/**
* @param MqttConfig
*/
public function setMqttConfig(MqttConfig $mqttConfig)
{
$this->mqttConfig = $mqttConfig;
}
/**
* @return MqttConfig
*/
public function getMqttConfig()
{
return $this->mqttConfig;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param StateNotificationConfig
*/
public function setStateNotificationConfig(StateNotificationConfig $stateNotificationConfig)
{
$this->stateNotificationConfig = $stateNotificationConfig;
}
/**
* @return StateNotificationConfig
*/
public function getStateNotificationConfig()
{
return $this->stateNotificationConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceRegistry::class, 'Google_Service_CloudIot_DeviceRegistry');

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\CloudIot;
class DeviceState extends \Google\Model
{
/**
* @var string
*/
public $binaryData;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setBinaryData($binaryData)
{
$this->binaryData = $binaryData;
}
/**
* @return string
*/
public function getBinaryData()
{
return $this->binaryData;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceState::class, 'Google_Service_CloudIot_DeviceState');

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\CloudIot;
class EventNotificationConfig extends \Google\Model
{
/**
* @var string
*/
public $pubsubTopicName;
/**
* @var string
*/
public $subfolderMatches;
/**
* @param string
*/
public function setPubsubTopicName($pubsubTopicName)
{
$this->pubsubTopicName = $pubsubTopicName;
}
/**
* @return string
*/
public function getPubsubTopicName()
{
return $this->pubsubTopicName;
}
/**
* @param string
*/
public function setSubfolderMatches($subfolderMatches)
{
$this->subfolderMatches = $subfolderMatches;
}
/**
* @return string
*/
public function getSubfolderMatches()
{
return $this->subfolderMatches;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventNotificationConfig::class, 'Google_Service_CloudIot_EventNotificationConfig');

View File

@@ -0,0 +1,98 @@
<?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\CloudIot;
class Expr extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $expression;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Expr::class, 'Google_Service_CloudIot_Expr');

View File

@@ -0,0 +1,98 @@
<?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\CloudIot;
class GatewayConfig extends \Google\Model
{
/**
* @var string
*/
public $gatewayAuthMethod;
/**
* @var string
*/
public $gatewayType;
/**
* @var string
*/
public $lastAccessedGatewayId;
/**
* @var string
*/
public $lastAccessedGatewayTime;
/**
* @param string
*/
public function setGatewayAuthMethod($gatewayAuthMethod)
{
$this->gatewayAuthMethod = $gatewayAuthMethod;
}
/**
* @return string
*/
public function getGatewayAuthMethod()
{
return $this->gatewayAuthMethod;
}
/**
* @param string
*/
public function setGatewayType($gatewayType)
{
$this->gatewayType = $gatewayType;
}
/**
* @return string
*/
public function getGatewayType()
{
return $this->gatewayType;
}
/**
* @param string
*/
public function setLastAccessedGatewayId($lastAccessedGatewayId)
{
$this->lastAccessedGatewayId = $lastAccessedGatewayId;
}
/**
* @return string
*/
public function getLastAccessedGatewayId()
{
return $this->lastAccessedGatewayId;
}
/**
* @param string
*/
public function setLastAccessedGatewayTime($lastAccessedGatewayTime)
{
$this->lastAccessedGatewayTime = $lastAccessedGatewayTime;
}
/**
* @return string
*/
public function getLastAccessedGatewayTime()
{
return $this->lastAccessedGatewayTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GatewayConfig::class, 'Google_Service_CloudIot_GatewayConfig');

View File

@@ -0,0 +1,42 @@
<?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\CloudIot;
class GetIamPolicyRequest extends \Google\Model
{
protected $optionsType = GetPolicyOptions::class;
protected $optionsDataType = '';
/**
* @param GetPolicyOptions
*/
public function setOptions(GetPolicyOptions $options)
{
$this->options = $options;
}
/**
* @return GetPolicyOptions
*/
public function getOptions()
{
return $this->options;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetIamPolicyRequest::class, 'Google_Service_CloudIot_GetIamPolicyRequest');

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\CloudIot;
class GetPolicyOptions extends \Google\Model
{
/**
* @var int
*/
public $requestedPolicyVersion;
/**
* @param int
*/
public function setRequestedPolicyVersion($requestedPolicyVersion)
{
$this->requestedPolicyVersion = $requestedPolicyVersion;
}
/**
* @return int
*/
public function getRequestedPolicyVersion()
{
return $this->requestedPolicyVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetPolicyOptions::class, 'Google_Service_CloudIot_GetPolicyOptions');

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\CloudIot;
class HttpConfig extends \Google\Model
{
/**
* @var string
*/
public $httpEnabledState;
/**
* @param string
*/
public function setHttpEnabledState($httpEnabledState)
{
$this->httpEnabledState = $httpEnabledState;
}
/**
* @return string
*/
public function getHttpEnabledState()
{
return $this->httpEnabledState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpConfig::class, 'Google_Service_CloudIot_HttpConfig');

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\CloudIot;
class ListDeviceConfigVersionsResponse extends \Google\Collection
{
protected $collection_key = 'deviceConfigs';
protected $deviceConfigsType = DeviceConfig::class;
protected $deviceConfigsDataType = 'array';
/**
* @param DeviceConfig[]
*/
public function setDeviceConfigs($deviceConfigs)
{
$this->deviceConfigs = $deviceConfigs;
}
/**
* @return DeviceConfig[]
*/
public function getDeviceConfigs()
{
return $this->deviceConfigs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDeviceConfigVersionsResponse::class, 'Google_Service_CloudIot_ListDeviceConfigVersionsResponse');

View File

@@ -0,0 +1,61 @@
<?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\CloudIot;
class ListDeviceRegistriesResponse extends \Google\Collection
{
protected $collection_key = 'deviceRegistries';
protected $deviceRegistriesType = DeviceRegistry::class;
protected $deviceRegistriesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param DeviceRegistry[]
*/
public function setDeviceRegistries($deviceRegistries)
{
$this->deviceRegistries = $deviceRegistries;
}
/**
* @return DeviceRegistry[]
*/
public function getDeviceRegistries()
{
return $this->deviceRegistries;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDeviceRegistriesResponse::class, 'Google_Service_CloudIot_ListDeviceRegistriesResponse');

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\CloudIot;
class ListDeviceStatesResponse extends \Google\Collection
{
protected $collection_key = 'deviceStates';
protected $deviceStatesType = DeviceState::class;
protected $deviceStatesDataType = 'array';
/**
* @param DeviceState[]
*/
public function setDeviceStates($deviceStates)
{
$this->deviceStates = $deviceStates;
}
/**
* @return DeviceState[]
*/
public function getDeviceStates()
{
return $this->deviceStates;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDeviceStatesResponse::class, 'Google_Service_CloudIot_ListDeviceStatesResponse');

View File

@@ -0,0 +1,61 @@
<?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\CloudIot;
class ListDevicesResponse extends \Google\Collection
{
protected $collection_key = 'devices';
protected $devicesType = Device::class;
protected $devicesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Device[]
*/
public function setDevices($devices)
{
$this->devices = $devices;
}
/**
* @return Device[]
*/
public function getDevices()
{
return $this->devices;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDevicesResponse::class, 'Google_Service_CloudIot_ListDevicesResponse');

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\CloudIot;
class ModifyCloudToDeviceConfigRequest extends \Google\Model
{
/**
* @var string
*/
public $binaryData;
/**
* @var string
*/
public $versionToUpdate;
/**
* @param string
*/
public function setBinaryData($binaryData)
{
$this->binaryData = $binaryData;
}
/**
* @return string
*/
public function getBinaryData()
{
return $this->binaryData;
}
/**
* @param string
*/
public function setVersionToUpdate($versionToUpdate)
{
$this->versionToUpdate = $versionToUpdate;
}
/**
* @return string
*/
public function getVersionToUpdate()
{
return $this->versionToUpdate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ModifyCloudToDeviceConfigRequest::class, 'Google_Service_CloudIot_ModifyCloudToDeviceConfigRequest');

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\CloudIot;
class MqttConfig extends \Google\Model
{
/**
* @var string
*/
public $mqttEnabledState;
/**
* @param string
*/
public function setMqttEnabledState($mqttEnabledState)
{
$this->mqttEnabledState = $mqttEnabledState;
}
/**
* @return string
*/
public function getMqttEnabledState()
{
return $this->mqttEnabledState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MqttConfig::class, 'Google_Service_CloudIot_MqttConfig');

View File

@@ -0,0 +1,79 @@
<?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\CloudIot;
class Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $bindingsType = Binding::class;
protected $bindingsDataType = 'array';
/**
* @var string
*/
public $etag;
/**
* @var int
*/
public $version;
/**
* @param Binding[]
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return Binding[]
*/
public function getBindings()
{
return $this->bindings;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param int
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return int
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policy::class, 'Google_Service_CloudIot_Policy');

View File

@@ -0,0 +1,78 @@
<?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\CloudIot;
class PublicKeyCertificate extends \Google\Model
{
/**
* @var string
*/
public $certificate;
/**
* @var string
*/
public $format;
protected $x509DetailsType = X509CertificateDetails::class;
protected $x509DetailsDataType = '';
/**
* @param string
*/
public function setCertificate($certificate)
{
$this->certificate = $certificate;
}
/**
* @return string
*/
public function getCertificate()
{
return $this->certificate;
}
/**
* @param string
*/
public function setFormat($format)
{
$this->format = $format;
}
/**
* @return string
*/
public function getFormat()
{
return $this->format;
}
/**
* @param X509CertificateDetails
*/
public function setX509Details(X509CertificateDetails $x509Details)
{
$this->x509Details = $x509Details;
}
/**
* @return X509CertificateDetails
*/
public function getX509Details()
{
return $this->x509Details;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PublicKeyCertificate::class, 'Google_Service_CloudIot_PublicKeyCertificate');

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\CloudIot;
class PublicKeyCredential extends \Google\Model
{
/**
* @var string
*/
public $format;
/**
* @var string
*/
public $key;
/**
* @param string
*/
public function setFormat($format)
{
$this->format = $format;
}
/**
* @return string
*/
public function getFormat()
{
return $this->format;
}
/**
* @param string
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PublicKeyCredential::class, 'Google_Service_CloudIot_PublicKeyCredential');

View File

@@ -0,0 +1,42 @@
<?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\CloudIot;
class RegistryCredential extends \Google\Model
{
protected $publicKeyCertificateType = PublicKeyCertificate::class;
protected $publicKeyCertificateDataType = '';
/**
* @param PublicKeyCertificate
*/
public function setPublicKeyCertificate(PublicKeyCertificate $publicKeyCertificate)
{
$this->publicKeyCertificate = $publicKeyCertificate;
}
/**
* @return PublicKeyCertificate
*/
public function getPublicKeyCertificate()
{
return $this->publicKeyCertificate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RegistryCredential::class, 'Google_Service_CloudIot_RegistryCredential');

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\CloudIot\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $cloudiotService = new Google\Service\CloudIot(...);
* $projects = $cloudiotService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_CloudIot_Resource_Projects');

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\CloudIot\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $cloudiotService = new Google\Service\CloudIot(...);
* $locations = $cloudiotService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_CloudIot_Resource_ProjectsLocations');

View File

@@ -0,0 +1,220 @@
<?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\CloudIot\Resource;
use Google\Service\CloudIot\BindDeviceToGatewayRequest;
use Google\Service\CloudIot\BindDeviceToGatewayResponse;
use Google\Service\CloudIot\CloudiotEmpty;
use Google\Service\CloudIot\DeviceRegistry;
use Google\Service\CloudIot\GetIamPolicyRequest;
use Google\Service\CloudIot\ListDeviceRegistriesResponse;
use Google\Service\CloudIot\Policy;
use Google\Service\CloudIot\SetIamPolicyRequest;
use Google\Service\CloudIot\TestIamPermissionsRequest;
use Google\Service\CloudIot\TestIamPermissionsResponse;
use Google\Service\CloudIot\UnbindDeviceFromGatewayRequest;
use Google\Service\CloudIot\UnbindDeviceFromGatewayResponse;
/**
* The "registries" collection of methods.
* Typical usage is:
* <code>
* $cloudiotService = new Google\Service\CloudIot(...);
* $registries = $cloudiotService->projects_locations_registries;
* </code>
*/
class ProjectsLocationsRegistries extends \Google\Service\Resource
{
/**
* Associates the device with the gateway. (registries.bindDeviceToGateway)
*
* @param string $parent Required. The name of the registry. For example,
* `projects/example-project/locations/us-central1/registries/my-registry`.
* @param BindDeviceToGatewayRequest $postBody
* @param array $optParams Optional parameters.
* @return BindDeviceToGatewayResponse
*/
public function bindDeviceToGateway($parent, BindDeviceToGatewayRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('bindDeviceToGateway', [$params], BindDeviceToGatewayResponse::class);
}
/**
* Creates a device registry that contains devices. (registries.create)
*
* @param string $parent Required. The project and cloud region where this
* device registry must be created. For example, `projects/example-
* project/locations/us-central1`.
* @param DeviceRegistry $postBody
* @param array $optParams Optional parameters.
* @return DeviceRegistry
*/
public function create($parent, DeviceRegistry $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], DeviceRegistry::class);
}
/**
* Deletes a device registry configuration. (registries.delete)
*
* @param string $name Required. The name of the device registry. For example,
* `projects/example-project/locations/us-central1/registries/my-registry`.
* @param array $optParams Optional parameters.
* @return CloudiotEmpty
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], CloudiotEmpty::class);
}
/**
* Gets a device registry configuration. (registries.get)
*
* @param string $name Required. The name of the device registry. For example,
* `projects/example-project/locations/us-central1/registries/my-registry`.
* @param array $optParams Optional parameters.
* @return DeviceRegistry
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DeviceRegistry::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (registries.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param GetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
*/
public function getIamPolicy($resource, GetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists device registries. (registries.listProjectsLocationsRegistries)
*
* @param string $parent Required. The project and cloud region path. For
* example, `projects/example-project/locations/us-central1`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of registries to return in the
* response. If this value is zero, the service will select a default size. A
* call may return fewer objects than requested. A non-empty `next_page_token`
* in the response indicates that more data is available.
* @opt_param string pageToken The value returned by the last
* `ListDeviceRegistriesResponse`; indicates that this is a continuation of a
* prior `ListDeviceRegistries` call and the system should return the next page
* of data.
* @return ListDeviceRegistriesResponse
*/
public function listProjectsLocationsRegistries($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDeviceRegistriesResponse::class);
}
/**
* Updates a device registry configuration. (registries.patch)
*
* @param string $name The resource path name. For example, `projects/example-
* project/locations/us-central1/registries/my-registry`.
* @param DeviceRegistry $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Only updates the `device_registry`
* fields indicated by this mask. The field mask must not be empty, and it must
* not contain fields that are immutable or only set by the server. Mutable top-
* level fields: `event_notification_config`, `http_config`, `mqtt_config`, and
* `state_notification_config`.
* @return DeviceRegistry
*/
public function patch($name, DeviceRegistry $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], DeviceRegistry::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. (registries.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* NOT_FOUND error. (registries.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
/**
* Deletes the association between the device and the gateway.
* (registries.unbindDeviceFromGateway)
*
* @param string $parent Required. The name of the registry. For example,
* `projects/example-project/locations/us-central1/registries/my-registry`.
* @param UnbindDeviceFromGatewayRequest $postBody
* @param array $optParams Optional parameters.
* @return UnbindDeviceFromGatewayResponse
*/
public function unbindDeviceFromGateway($parent, UnbindDeviceFromGatewayRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('unbindDeviceFromGateway', [$params], UnbindDeviceFromGatewayResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRegistries::class, 'Google_Service_CloudIot_Resource_ProjectsLocationsRegistries');

View File

@@ -0,0 +1,206 @@
<?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\CloudIot\Resource;
use Google\Service\CloudIot\CloudiotEmpty;
use Google\Service\CloudIot\Device;
use Google\Service\CloudIot\DeviceConfig;
use Google\Service\CloudIot\ListDevicesResponse;
use Google\Service\CloudIot\ModifyCloudToDeviceConfigRequest;
use Google\Service\CloudIot\SendCommandToDeviceRequest;
use Google\Service\CloudIot\SendCommandToDeviceResponse;
/**
* The "devices" collection of methods.
* Typical usage is:
* <code>
* $cloudiotService = new Google\Service\CloudIot(...);
* $devices = $cloudiotService->projects_locations_registries_devices;
* </code>
*/
class ProjectsLocationsRegistriesDevices extends \Google\Service\Resource
{
/**
* Creates a device in a device registry. (devices.create)
*
* @param string $parent Required. The name of the device registry where this
* device should be created. For example, `projects/example-project/locations
* /us-central1/registries/my-registry`.
* @param Device $postBody
* @param array $optParams Optional parameters.
* @return Device
*/
public function create($parent, Device $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Device::class);
}
/**
* Deletes a device. (devices.delete)
*
* @param string $name Required. The name of the device. For example,
* `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
* `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
* @param array $optParams Optional parameters.
* @return CloudiotEmpty
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], CloudiotEmpty::class);
}
/**
* Gets details about a device. (devices.get)
*
* @param string $name Required. The name of the device. For example,
* `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
* `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
* @param array $optParams Optional parameters.
*
* @opt_param string fieldMask The fields of the `Device` resource to be
* returned in the response. If the field mask is unset or empty, all fields are
* returned. Fields have to be provided in snake_case format, for example:
* `last_heartbeat_time`.
* @return Device
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Device::class);
}
/**
* List devices in a device registry.
* (devices.listProjectsLocationsRegistriesDevices)
*
* @param string $parent Required. The device registry path. Required. For
* example, `projects/my-project/locations/us-central1/registries/my-registry`.
* @param array $optParams Optional parameters.
*
* @opt_param string deviceIds A list of device string IDs. For example,
* `['device0', 'device12']`. If empty, this field is ignored. Maximum IDs:
* 10,000
* @opt_param string deviceNumIds A list of device numeric IDs. If empty, this
* field is ignored. Maximum IDs: 10,000.
* @opt_param string fieldMask The fields of the `Device` resource to be
* returned in the response. The fields `id` and `num_id` are always returned,
* along with any other fields specified in snake_case format, for example:
* `last_heartbeat_time`.
* @opt_param string gatewayListOptions.associationsDeviceId If set, returns
* only the gateways with which the specified device is associated. The device
* ID can be numeric (`num_id`) or the user-defined string (`id`). For example,
* if `456` is specified, returns only the gateways to which the device with
* `num_id` 456 is bound.
* @opt_param string gatewayListOptions.associationsGatewayId If set, only
* devices associated with the specified gateway are returned. The gateway ID
* can be numeric (`num_id`) or the user-defined string (`id`). For example, if
* `123` is specified, only devices bound to the gateway with `num_id` 123 are
* returned.
* @opt_param string gatewayListOptions.gatewayType If `GATEWAY` is specified,
* only gateways are returned. If `NON_GATEWAY` is specified, only non-gateway
* devices are returned. If `GATEWAY_TYPE_UNSPECIFIED` is specified, all devices
* are returned.
* @opt_param int pageSize The maximum number of devices to return in the
* response. If this value is zero, the service will select a default size. A
* call may return fewer objects than requested. A non-empty `next_page_token`
* in the response indicates that more data is available.
* @opt_param string pageToken The value returned by the last
* `ListDevicesResponse`; indicates that this is a continuation of a prior
* `ListDevices` call and the system should return the next page of data.
* @return ListDevicesResponse
*/
public function listProjectsLocationsRegistriesDevices($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDevicesResponse::class);
}
/**
* Modifies the configuration for the device, which is eventually sent from the
* Cloud IoT Core servers. Returns the modified configuration version and its
* metadata. (devices.modifyCloudToDeviceConfig)
*
* @param string $name Required. The name of the device. For example,
* `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
* `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
* @param ModifyCloudToDeviceConfigRequest $postBody
* @param array $optParams Optional parameters.
* @return DeviceConfig
*/
public function modifyCloudToDeviceConfig($name, ModifyCloudToDeviceConfigRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('modifyCloudToDeviceConfig', [$params], DeviceConfig::class);
}
/**
* Updates a device. (devices.patch)
*
* @param string $name The resource path name. For example,
* `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
* `projects/p1/locations/us-central1/registries/registry0/devices/{num_id}`.
* When `name` is populated as a response from the service, it always ends in
* the device numeric ID.
* @param Device $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Only updates the `device` fields
* indicated by this mask. The field mask must not be empty, and it must not
* contain fields that are immutable or only set by the server. Mutable top-
* level fields: `credentials`, `blocked`, and `metadata`
* @return Device
*/
public function patch($name, Device $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Device::class);
}
/**
* Sends a command to the specified device. In order for a device to be able to
* receive commands, it must: 1) be connected to Cloud IoT Core using the MQTT
* protocol, and 2) be subscribed to the group of MQTT topics specified by
* /devices/{device-id}/commands/#. This subscription will receive commands at
* the top-level topic /devices/{device-id}/commands as well as commands for
* subfolders, like /devices/{device-id}/commands/subfolder. Note that
* subscribing to specific subfolders is not supported. If the command could not
* be delivered to the device, this method will return an error; in particular,
* if the device is not subscribed, this method will return FAILED_PRECONDITION.
* Otherwise, this method will return OK. If the subscription is QoS 1, at least
* once delivery will be guaranteed; for QoS 0, no acknowledgment will be
* expected from the device. (devices.sendCommandToDevice)
*
* @param string $name Required. The name of the device. For example,
* `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
* `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
* @param SendCommandToDeviceRequest $postBody
* @param array $optParams Optional parameters.
* @return SendCommandToDeviceResponse
*/
public function sendCommandToDevice($name, SendCommandToDeviceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('sendCommandToDevice', [$params], SendCommandToDeviceResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRegistriesDevices::class, 'Google_Service_CloudIot_Resource_ProjectsLocationsRegistriesDevices');

View File

@@ -0,0 +1,57 @@
<?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\CloudIot\Resource;
use Google\Service\CloudIot\ListDeviceConfigVersionsResponse;
/**
* The "configVersions" collection of methods.
* Typical usage is:
* <code>
* $cloudiotService = new Google\Service\CloudIot(...);
* $configVersions = $cloudiotService->projects_locations_registries_devices_configVersions;
* </code>
*/
class ProjectsLocationsRegistriesDevicesConfigVersions extends \Google\Service\Resource
{
/**
* Lists the last few versions of the device configuration in descending order
* (i.e.: newest first).
* (configVersions.listProjectsLocationsRegistriesDevicesConfigVersions)
*
* @param string $name Required. The name of the device. For example,
* `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
* `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
* @param array $optParams Optional parameters.
*
* @opt_param int numVersions The number of versions to list. Versions are
* listed in decreasing order of the version number. The maximum number of
* versions retained is 10. If this value is zero, it will return all the
* versions available.
* @return ListDeviceConfigVersionsResponse
*/
public function listProjectsLocationsRegistriesDevicesConfigVersions($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDeviceConfigVersionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRegistriesDevicesConfigVersions::class, 'Google_Service_CloudIot_Resource_ProjectsLocationsRegistriesDevicesConfigVersions');

View File

@@ -0,0 +1,55 @@
<?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\CloudIot\Resource;
use Google\Service\CloudIot\ListDeviceStatesResponse;
/**
* The "states" collection of methods.
* Typical usage is:
* <code>
* $cloudiotService = new Google\Service\CloudIot(...);
* $states = $cloudiotService->projects_locations_registries_devices_states;
* </code>
*/
class ProjectsLocationsRegistriesDevicesStates extends \Google\Service\Resource
{
/**
* Lists the last few versions of the device state in descending order (i.e.:
* newest first). (states.listProjectsLocationsRegistriesDevicesStates)
*
* @param string $name Required. The name of the device. For example,
* `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
* `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
* @param array $optParams Optional parameters.
*
* @opt_param int numStates The number of states to list. States are listed in
* descending order of update time. The maximum number of states retained is 10.
* If this value is zero, it will return all the states available.
* @return ListDeviceStatesResponse
*/
public function listProjectsLocationsRegistriesDevicesStates($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDeviceStatesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRegistriesDevicesStates::class, 'Google_Service_CloudIot_Resource_ProjectsLocationsRegistriesDevicesStates');

View File

@@ -0,0 +1,94 @@
<?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\CloudIot\Resource;
use Google\Service\CloudIot\GetIamPolicyRequest;
use Google\Service\CloudIot\Policy;
use Google\Service\CloudIot\SetIamPolicyRequest;
use Google\Service\CloudIot\TestIamPermissionsRequest;
use Google\Service\CloudIot\TestIamPermissionsResponse;
/**
* The "groups" collection of methods.
* Typical usage is:
* <code>
* $cloudiotService = new Google\Service\CloudIot(...);
* $groups = $cloudiotService->projects_locations_registries_groups;
* </code>
*/
class ProjectsLocationsRegistriesGroups extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (groups.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param GetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
*/
public function getIamPolicy($resource, GetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. (groups.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* NOT_FOUND error. (groups.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRegistriesGroups::class, 'Google_Service_CloudIot_Resource_ProjectsLocationsRegistriesGroups');

View File

@@ -0,0 +1,81 @@
<?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\CloudIot\Resource;
use Google\Service\CloudIot\ListDevicesResponse;
/**
* The "devices" collection of methods.
* Typical usage is:
* <code>
* $cloudiotService = new Google\Service\CloudIot(...);
* $devices = $cloudiotService->projects_locations_registries_groups_devices;
* </code>
*/
class ProjectsLocationsRegistriesGroupsDevices extends \Google\Service\Resource
{
/**
* List devices in a device registry.
* (devices.listProjectsLocationsRegistriesGroupsDevices)
*
* @param string $parent Required. The device registry path. Required. For
* example, `projects/my-project/locations/us-central1/registries/my-registry`.
* @param array $optParams Optional parameters.
*
* @opt_param string deviceIds A list of device string IDs. For example,
* `['device0', 'device12']`. If empty, this field is ignored. Maximum IDs:
* 10,000
* @opt_param string deviceNumIds A list of device numeric IDs. If empty, this
* field is ignored. Maximum IDs: 10,000.
* @opt_param string fieldMask The fields of the `Device` resource to be
* returned in the response. The fields `id` and `num_id` are always returned,
* along with any other fields specified in snake_case format, for example:
* `last_heartbeat_time`.
* @opt_param string gatewayListOptions.associationsDeviceId If set, returns
* only the gateways with which the specified device is associated. The device
* ID can be numeric (`num_id`) or the user-defined string (`id`). For example,
* if `456` is specified, returns only the gateways to which the device with
* `num_id` 456 is bound.
* @opt_param string gatewayListOptions.associationsGatewayId If set, only
* devices associated with the specified gateway are returned. The gateway ID
* can be numeric (`num_id`) or the user-defined string (`id`). For example, if
* `123` is specified, only devices bound to the gateway with `num_id` 123 are
* returned.
* @opt_param string gatewayListOptions.gatewayType If `GATEWAY` is specified,
* only gateways are returned. If `NON_GATEWAY` is specified, only non-gateway
* devices are returned. If `GATEWAY_TYPE_UNSPECIFIED` is specified, all devices
* are returned.
* @opt_param int pageSize The maximum number of devices to return in the
* response. If this value is zero, the service will select a default size. A
* call may return fewer objects than requested. A non-empty `next_page_token`
* in the response indicates that more data is available.
* @opt_param string pageToken The value returned by the last
* `ListDevicesResponse`; indicates that this is a continuation of a prior
* `ListDevices` call and the system should return the next page of data.
* @return ListDevicesResponse
*/
public function listProjectsLocationsRegistriesGroupsDevices($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDevicesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRegistriesGroupsDevices::class, 'Google_Service_CloudIot_Resource_ProjectsLocationsRegistriesGroupsDevices');

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\CloudIot;
class SendCommandToDeviceRequest extends \Google\Model
{
/**
* @var string
*/
public $binaryData;
/**
* @var string
*/
public $subfolder;
/**
* @param string
*/
public function setBinaryData($binaryData)
{
$this->binaryData = $binaryData;
}
/**
* @return string
*/
public function getBinaryData()
{
return $this->binaryData;
}
/**
* @param string
*/
public function setSubfolder($subfolder)
{
$this->subfolder = $subfolder;
}
/**
* @return string
*/
public function getSubfolder()
{
return $this->subfolder;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SendCommandToDeviceRequest::class, 'Google_Service_CloudIot_SendCommandToDeviceRequest');

View File

@@ -0,0 +1,25 @@
<?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\CloudIot;
class SendCommandToDeviceResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SendCommandToDeviceResponse::class, 'Google_Service_CloudIot_SendCommandToDeviceResponse');

View File

@@ -0,0 +1,42 @@
<?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\CloudIot;
class SetIamPolicyRequest extends \Google\Model
{
protected $policyType = Policy::class;
protected $policyDataType = '';
/**
* @param Policy
*/
public function setPolicy(Policy $policy)
{
$this->policy = $policy;
}
/**
* @return Policy
*/
public function getPolicy()
{
return $this->policy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SetIamPolicyRequest::class, 'Google_Service_CloudIot_SetIamPolicyRequest');

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\CloudIot;
class StateNotificationConfig extends \Google\Model
{
/**
* @var string
*/
public $pubsubTopicName;
/**
* @param string
*/
public function setPubsubTopicName($pubsubTopicName)
{
$this->pubsubTopicName = $pubsubTopicName;
}
/**
* @return string
*/
public function getPubsubTopicName()
{
return $this->pubsubTopicName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StateNotificationConfig::class, 'Google_Service_CloudIot_StateNotificationConfig');

View File

@@ -0,0 +1,81 @@
<?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\CloudIot;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* @var int
*/
public $code;
/**
* @var array[]
*/
public $details;
/**
* @var string
*/
public $message;
/**
* @param int
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_CloudIot_Status');

View File

@@ -0,0 +1,45 @@
<?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\CloudIot;
class TestIamPermissionsRequest extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* @var string[]
*/
public $permissions;
/**
* @param string[]
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return string[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestIamPermissionsRequest::class, 'Google_Service_CloudIot_TestIamPermissionsRequest');

View File

@@ -0,0 +1,45 @@
<?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\CloudIot;
class TestIamPermissionsResponse extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* @var string[]
*/
public $permissions;
/**
* @param string[]
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return string[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestIamPermissionsResponse::class, 'Google_Service_CloudIot_TestIamPermissionsResponse');

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\CloudIot;
class UnbindDeviceFromGatewayRequest extends \Google\Model
{
/**
* @var string
*/
public $deviceId;
/**
* @var string
*/
public $gatewayId;
/**
* @param string
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
}
/**
* @return string
*/
public function getDeviceId()
{
return $this->deviceId;
}
/**
* @param string
*/
public function setGatewayId($gatewayId)
{
$this->gatewayId = $gatewayId;
}
/**
* @return string
*/
public function getGatewayId()
{
return $this->gatewayId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UnbindDeviceFromGatewayRequest::class, 'Google_Service_CloudIot_UnbindDeviceFromGatewayRequest');

View File

@@ -0,0 +1,25 @@
<?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\CloudIot;
class UnbindDeviceFromGatewayResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UnbindDeviceFromGatewayResponse::class, 'Google_Service_CloudIot_UnbindDeviceFromGatewayResponse');

View File

@@ -0,0 +1,134 @@
<?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\CloudIot;
class X509CertificateDetails extends \Google\Model
{
/**
* @var string
*/
public $expiryTime;
/**
* @var string
*/
public $issuer;
/**
* @var string
*/
public $publicKeyType;
/**
* @var string
*/
public $signatureAlgorithm;
/**
* @var string
*/
public $startTime;
/**
* @var string
*/
public $subject;
/**
* @param string
*/
public function setExpiryTime($expiryTime)
{
$this->expiryTime = $expiryTime;
}
/**
* @return string
*/
public function getExpiryTime()
{
return $this->expiryTime;
}
/**
* @param string
*/
public function setIssuer($issuer)
{
$this->issuer = $issuer;
}
/**
* @return string
*/
public function getIssuer()
{
return $this->issuer;
}
/**
* @param string
*/
public function setPublicKeyType($publicKeyType)
{
$this->publicKeyType = $publicKeyType;
}
/**
* @return string
*/
public function getPublicKeyType()
{
return $this->publicKeyType;
}
/**
* @param string
*/
public function setSignatureAlgorithm($signatureAlgorithm)
{
$this->signatureAlgorithm = $signatureAlgorithm;
}
/**
* @return string
*/
public function getSignatureAlgorithm()
{
return $this->signatureAlgorithm;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* @param string
*/
public function setSubject($subject)
{
$this->subject = $subject;
}
/**
* @return string
*/
public function getSubject()
{
return $this->subject;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(X509CertificateDetails::class, 'Google_Service_CloudIot_X509CertificateDetails');